@lovrabet/rabetbase-cli 2.0.10 → 2.0.12
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/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/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.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/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.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/new.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-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-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/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/update.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/non-interactive.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/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.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/save.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/paths.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/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.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.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.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/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/config.js +1 -1
- package/lib/utils/copy-directory.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/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x5d6734=a33_0x2be5;(function(_0x5564b5,_0x30dd97){const _0x3bd47e=a33_0x2be5,_0x1d7f33=_0x5564b5();while(!![]){try{const _0x1de04b=-parseInt(_0x3bd47e(0x1d4))/0x1+-parseInt(_0x3bd47e(0x1e2))/0x2+-parseInt(_0x3bd47e(0x1c9))/0x3*(parseInt(_0x3bd47e(0x1c0))/0x4)+parseInt(_0x3bd47e(0x1cc))/0x5*(parseInt(_0x3bd47e(0x1d5))/0x6)+parseInt(_0x3bd47e(0x1d0))/0x7*(-parseInt(_0x3bd47e(0x1c5))/0x8)+parseInt(_0x3bd47e(0x1c4))/0x9*(-parseInt(_0x3bd47e(0x1b2))/0xa)+-parseInt(_0x3bd47e(0x1cd))/0xb*(-parseInt(_0x3bd47e(0x1d8))/0xc);if(_0x1de04b===_0x30dd97)break;else _0x1d7f33['push'](_0x1d7f33['shift']());}catch(_0x1d0836){_0x1d7f33['push'](_0x1d7f33['shift']());}}}(a33_0x4dec,0xb445e));import a33_0x2d49dd from'chalk';import a33_0x5d7943 from'ora';import a33_0xfd2a34 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a33_0x2be5(_0x49af16,_0xd2c0ef){_0x49af16=_0x49af16-0x1b2;const _0x4decd1=a33_0x4dec();let _0x2be5eb=_0x4decd1[_0x49af16];return _0x2be5eb;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a33_0x4dec(){const _0x43ad9e=['802750ZMIpUv','4210980RtUAzN','update','green','fail','slice','cli','gray','run','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','coerce','Already\x20up\x20to\x20date\x20(v','/latest','\x20\x20Try\x20manually:\x20','succeed','5932CNGFQI','Update\x20available:\x20','message','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','9kCUYwG','1279264GXnDlj','@latest','toLowerCase','execPath','1437MbIUbf','\x20install\x20-g\x20','Unable\x20to\x20check\x20for\x20updates','185dUuwOW','2651TtJjlp','Updated\x20to\x20v','bun','14ZqpwAZ','Current\x20version:\x20','info','\x20→\x20','528425PyChGD','53340hMBWjg','log','json','138948qyoELF','version','write','includes','error','Version\x20comparison\x20failed','unknown','npm','pipe','start'];a33_0x4dec=function(){return _0x43ad9e;};return a33_0x4dec();}function getCurrentVersion(){const _0x1eb629=a33_0x2be5;return GIT_COMMIT!==_0x1eb629(0x1de)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1eb629(0x1b6)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2b5872=a33_0x2be5,_0x2c1c46=process[_0x2b5872(0x1c8)][_0x2b5872(0x1c7)]();if(_0x2c1c46[_0x2b5872(0x1db)](_0x2b5872(0x1cf)))return _0x2b5872(0x1cf);return _0x2b5872(0x1df);}async function fetchLatestNpmVersion(){const _0x1ca7db=a33_0x2be5;try{const _0x1abed8=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x1ca7db(0x1bd),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x1abed8['ok'])return null;const _0x37c609=await _0x1abed8[_0x1ca7db(0x1d7)]();return _0x37c609[_0x1ca7db(0x1d9)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x53e5a3=a33_0x2be5,_0x18743e=await fetchLatestNpmVersion();if(_0x18743e)return _0x18743e;const _0x42f8bf=await getCdnConfig();return _0x42f8bf?.[_0x53e5a3(0x1b7)]?.['stableVersion']??null;}async function execute(_0x179efd){const _0x18f4ff=a33_0x2be5,_0x167c6f=getCurrentVersion();console[_0x18f4ff(0x1d6)](_0x18f4ff(0x1d1)+_0x167c6f);const _0x4920dd=a33_0x5d7943('Checking\x20for\x20updates...')[_0x18f4ff(0x1e1)](),_0x33cf69=await fetchLatestVersion();if(!_0x33cf69)return _0x4920dd[_0x18f4ff(0x1b5)](_0x18f4ff(0x1c3)),console[_0x18f4ff(0x1d6)](a33_0x2d49dd[_0x18f4ff(0x1b8)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x18f4ff(0x1c6))),{'ok':![],'message':_0x18f4ff(0x1cb)};const _0x1d3953=a33_0xfd2a34['coerce'](_0x167c6f),_0x3bf610=a33_0xfd2a34[_0x18f4ff(0x1bb)](_0x33cf69);if(!_0x1d3953||!_0x3bf610)return _0x4920dd['fail'](_0x18f4ff(0x1dd)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a33_0xfd2a34['lt'](_0x1d3953,_0x3bf610))return _0x4920dd['succeed'](_0x18f4ff(0x1bc)+_0x33cf69+')'),{'ok':!![]};_0x4920dd[_0x18f4ff(0x1d2)](_0x18f4ff(0x1c1)+a33_0x2d49dd['yellow'](_0x167c6f)+_0x18f4ff(0x1d3)+a33_0x2d49dd[_0x18f4ff(0x1b4)](_0x33cf69));const _0x5adb2a=detectPackageManager(),_0x345dd0=_0x5adb2a===_0x18f4ff(0x1df)?resolveNpmBin(_0x18f4ff(0x1df)):_0x5adb2a,_0x539d44=a33_0x5d7943('Updating\x20via\x20'+_0x5adb2a+'...')[_0x18f4ff(0x1e1)]();try{return await execa(_0x345dd0,['install','-g',NPM_PACKAGE_NAME+_0x18f4ff(0x1c6)],{'stdio':_0x18f4ff(0x1e0)}),_0x539d44[_0x18f4ff(0x1bf)](_0x18f4ff(0x1ce)+_0x33cf69),console['log'](a33_0x2d49dd[_0x18f4ff(0x1b8)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0x55162a){return _0x539d44[_0x18f4ff(0x1b5)]('Update\x20failed'),console[_0x18f4ff(0x1dc)](a33_0x2d49dd['red']('\x20\x20'+_0x55162a[_0x18f4ff(0x1c2)])),console[_0x18f4ff(0x1d6)](a33_0x2d49dd[_0x18f4ff(0x1b8)](_0x18f4ff(0x1be)+_0x5adb2a+_0x18f4ff(0x1ca)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x55162a['message']};}}export const updateDefinition={'service':a33_0x5d6734(0x1b3),'command':a33_0x5d6734(0x1b9),'description':a33_0x5d6734(0x1ba),'risk':a33_0x5d6734(0x1da),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a34_0x5c1f(){const _0x5504e7=['103299jbUaeE','770748kRxCqJ','180hRpaIz','3698640ExxPLY','382948tnRivn','652122gYPpIf','109818JDYHUG','2972190DSOInn','5MHcbkp','3vHfTAZ'];a34_0x5c1f=function(){return _0x5504e7;};return a34_0x5c1f();}(function(_0x294079,_0x5f072d){const _0x4a7fd8=a34_0x21ec,_0x58c27e=_0x294079();while(!![]){try{const _0x4ab9cc=parseInt(_0x4a7fd8(0xb3))/0x1+-parseInt(_0x4a7fd8(0xb5))/0x2*(parseInt(_0x4a7fd8(0xb8))/0x3)+-parseInt(_0x4a7fd8(0xb0))/0x4+-parseInt(_0x4a7fd8(0xb7))/0x5*(parseInt(_0x4a7fd8(0xb6))/0x6)+parseInt(_0x4a7fd8(0xaf))/0x7+-parseInt(_0x4a7fd8(0xb2))/0x8+-parseInt(_0x4a7fd8(0xb4))/0x9*(-parseInt(_0x4a7fd8(0xb1))/0xa);if(_0x4ab9cc===_0x5f072d)break;else _0x58c27e['push'](_0x58c27e['shift']());}catch(_0xbd3332){_0x58c27e['push'](_0x58c27e['shift']());}}}(a34_0x5c1f,0x79412));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a34_0x21ec(_0x137e6a,_0x330915){_0x137e6a=_0x137e6a-0xaf;const _0x5c1f88=a34_0x5c1f();let _0x21ec59=_0x5c1f88[_0x137e6a];return _0x21ec59;}export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a35_0x56e9(_0x46018b,_0x4f590a){_0x46018b=_0x46018b-0xb6;const _0x196f80=a35_0x196f();let _0x56e996=_0x196f80[_0x46018b];return _0x56e996;}const a35_0x3f839e=a35_0x56e9;(function(_0x2f1849,_0x288812){const _0x5706c0=a35_0x56e9,_0x455d4c=_0x2f1849();while(!![]){try{const _0xf1dcf0=-parseInt(_0x5706c0(0xbf))/0x1*(-parseInt(_0x5706c0(0xca))/0x2)+parseInt(_0x5706c0(0xc2))/0x3*(parseInt(_0x5706c0(0xcd))/0x4)+parseInt(_0x5706c0(0xce))/0x5*(parseInt(_0x5706c0(0xb6))/0x6)+parseInt(_0x5706c0(0xcc))/0x7*(parseInt(_0x5706c0(0xc3))/0x8)+parseInt(_0x5706c0(0xc4))/0x9*(parseInt(_0x5706c0(0xb9))/0xa)+-parseInt(_0x5706c0(0xcb))/0xb+-parseInt(_0x5706c0(0xc1))/0xc;if(_0xf1dcf0===_0x288812)break;else _0x455d4c['push'](_0x455d4c['shift']());}catch(_0x15aa5a){_0x455d4c['push'](_0x455d4c['shift']());}}}(a35_0x196f,0x1b6b5));function a35_0x196f(){const _0x1529a8=['842842mBCPWU','5383QbJfaq','4PKgFup','579260AHgyEH','codegen','6ojvZSf','string','read','581260emYzFV','operation','boolean','name','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','skip-imports','3LmkjKf','bool','2179308ccvPLg','139263XoCehv','72qgszqK','9JOHLqh','sdk','tableName','code','str','Omit\x20import\x20statements\x20from\x20generated\x20code','95480CYdlEG'];a35_0x196f=function(){return _0x1529a8;};return a35_0x196f();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a35_0x3f839e(0xcf),'command':a35_0x3f839e(0xc5),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a35_0x3f839e(0xb8),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a35_0x3f839e(0xb7),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a35_0x3f839e(0xba),'type':a35_0x3f839e(0xb7),'required':!![],'description':a35_0x3f839e(0xbd)},{'name':'skip-imports','type':a35_0x3f839e(0xbb),'description':a35_0x3f839e(0xc9)}],async 'execute'(_0x112773){const _0x1adb3b=a35_0x3f839e,{dataset:_0x88b0b,operation:_0x48f54e}=await getOperationDetail(_0x112773['appCode'],_0x112773[_0x1adb3b(0xc8)](_0x1adb3b(0xc7)),_0x112773[_0x1adb3b(0xc8)](_0x1adb3b(0xba))),_0xe8a346=generateSdkCode(_0x88b0b,_0x48f54e,{'includeImports':!_0x112773[_0x1adb3b(0xc0)](_0x1adb3b(0xbe))});return{'ok':!![],'data':{'dataset':{'name':_0x88b0b[_0x1adb3b(0xbc)],'code':_0x88b0b[_0x1adb3b(0xc7)],'tableName':_0x88b0b[_0x1adb3b(0xc6)]},'operation':_0x112773['str'](_0x1adb3b(0xba)),'code':_0xe8a346}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a36_0x53d4(){const _0x20e0eb=['sqlcode','769113zfwXBW','27045zyKoXh','8856484ijoXxY','read','codegen','target','sqlName','bool','5768TpRmaX','20vVuUNy','sqlCode','str','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','appCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','8161605FUSbVo','540053nLCPJE','no-imports','2888428wgbqwp','string','2989842YQLNUZ','sdk','sql','bff'];a36_0x53d4=function(){return _0x20e0eb;};return a36_0x53d4();}const a36_0xbb011a=a36_0xe96c;function a36_0xe96c(_0x2af41f,_0x3d83f2){_0x2af41f=_0x2af41f-0x1e3;const _0x53d437=a36_0x53d4();let _0xe96c30=_0x53d437[_0x2af41f];return _0xe96c30;}(function(_0x408f56,_0x1653fe){const _0x5b6e3c=a36_0xe96c,_0x406599=_0x408f56();while(!![]){try{const _0x311f66=parseInt(_0x5b6e3c(0x1ef))/0x1+-parseInt(_0x5b6e3c(0x1f1))/0x2+parseInt(_0x5b6e3c(0x1f8))/0x3*(-parseInt(_0x5b6e3c(0x1e8))/0x4)+parseInt(_0x5b6e3c(0x1ee))/0x5+parseInt(_0x5b6e3c(0x1f3))/0x6+-parseInt(_0x5b6e3c(0x1fa))/0x7+-parseInt(_0x5b6e3c(0x1e7))/0x8*(-parseInt(_0x5b6e3c(0x1f9))/0x9);if(_0x311f66===_0x1653fe)break;else _0x406599['push'](_0x406599['shift']());}catch(_0x2bc4a8){_0x406599['push'](_0x406599['shift']());}}}(a36_0x53d4,0xce8b5));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a36_0xbb011a(0x1e3),'command':a36_0xbb011a(0x1f5),'description':a36_0xbb011a(0x1ed),'risk':a36_0xbb011a(0x1fb),'flags':[SQLCODE_FLAG,{'name':a36_0xbb011a(0x1e4),'type':a36_0xbb011a(0x1f2),'description':a36_0xbb011a(0x1eb),'default':a36_0xbb011a(0x1f4),'enum':[a36_0xbb011a(0x1f4),a36_0xbb011a(0x1f6)]},{'name':'no-imports','type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x5e74ac){const _0x44a772=a36_0xbb011a,_0x360ea9=await getSqlQueryInfo(_0x5e74ac[_0x44a772(0x1ec)],_0x5e74ac['str'](_0x44a772(0x1f7))),_0x18b17f=_0x5e74ac[_0x44a772(0x1ea)]('target')||_0x44a772(0x1f4),_0x1d8e80=generateSqlCodeTemplate(_0x360ea9,{'target':_0x18b17f,'includeImports':!_0x5e74ac[_0x44a772(0x1e6)](_0x44a772(0x1f0))});return{'ok':!![],'data':{'sqlCode':_0x360ea9[_0x44a772(0x1e9)],'sqlName':_0x360ea9[_0x44a772(0x1e5)],'target':_0x18b17f,'code':_0x1d8e80}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a37_0x3200(_0x1401c4,_0xf2a78e){_0x1401c4=_0x1401c4-0x178;const _0x5a231b=a37_0x5a23();let _0x3200b1=_0x5a231b[_0x1401c4];return _0x3200b1;}(function(_0x3ea62c,_0x593a05){const _0xb81f43=a37_0x3200,_0x27b932=_0x3ea62c();while(!![]){try{const _0x19841d=parseInt(_0xb81f43(0x194))/0x1*(parseInt(_0xb81f43(0x19c))/0x2)+-parseInt(_0xb81f43(0x187))/0x3*(-parseInt(_0xb81f43(0x183))/0x4)+-parseInt(_0xb81f43(0x17d))/0x5*(-parseInt(_0xb81f43(0x198))/0x6)+-parseInt(_0xb81f43(0x18a))/0x7*(-parseInt(_0xb81f43(0x182))/0x8)+-parseInt(_0xb81f43(0x196))/0x9+-parseInt(_0xb81f43(0x197))/0xa+-parseInt(_0xb81f43(0x180))/0xb;if(_0x19841d===_0x593a05)break;else _0x27b932['push'](_0x27b932['shift']());}catch(_0x1dde22){_0x27b932['push'](_0x27b932['shift']());}}}(a37_0x5a23,0xaa550));function a37_0x5a23(){const _0x3ba4e6=['\x0a无法获取远程应用列表,请手动输入。','请输入\x20App\x20Code:','(跳过,稍后配置)','message','无法获取远程应用列表,请手动输入。','395404VosihY','length','9508563ySTtSQ','10749610NLsiLH','505356JfApZX','获取到\x20','skip','trim','4NfwWkv','未找到可用应用。','Invalid\x20App\x20Code','valid','map','正在获取可用应用列表...','log','5dHxZVJ','App\x20Code:','✎\x20自定义输入\x20appcode','306108IRlzpn','includes','848ZrBYCR','1176vyhTcH','gray','find','\x20\x20(','9453IcnEZU','appCode','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','69706hDTtpH','yellow','manual','请选择要绑定的应用:','custom'];a37_0x5a23=function(){return _0x3ba4e6;};return a37_0x5a23();}import{input,checkbox,select}from'@inquirer/prompts';import a37_0x18dc60 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x32e681=a37_0x3200,_0x5d92db=await input({'message':_0x32e681(0x190),'validate':_0x2a7075=>{const _0x5b2f91=_0x32e681,_0x4506a6=validateAppcode(_0x2a7075[_0x5b2f91(0x19b)]());return _0x4506a6[_0x5b2f91(0x179)]||_0x4506a6[_0x5b2f91(0x192)]||_0x5b2f91(0x178);}});return _0x5d92db[_0x32e681(0x19b)]();}export async function promptAppSelection(_0xfc9842){const _0x219f00=a37_0x3200,_0x3005e2=[{'name':a37_0x18dc60[_0x219f00(0x18b)](_0x219f00(0x17f)),'value':-0x1},..._0xfc9842[_0x219f00(0x17a)]((_0x56222c,_0x36cbbd)=>({'name':_0x56222c['appName']+'\x20\x20'+a37_0x18dc60['gray']('('+_0x56222c[_0x219f00(0x188)]+')'),'value':_0x36cbbd}))],_0x4f5b2d=await checkbox({'message':_0x219f00(0x199)+a37_0x18dc60['cyan'](_0xfc9842[_0x219f00(0x195)])+_0x219f00(0x189),'choices':_0x3005e2,'loop':![]});if(_0x4f5b2d[_0x219f00(0x181)](-0x1))return _0x219f00(0x18e);if(_0x4f5b2d[_0x219f00(0x195)]===0x0)return _0x219f00(0x18e);return _0x4f5b2d['map'](_0x5b9219=>_0xfc9842[_0x5b9219]);}export async function promptSingleAppSelection(_0x14b2be){const _0x371890=a37_0x3200,_0x182a59=[{'name':a37_0x18dc60['gray']('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':'skip'},{'name':a37_0x18dc60[_0x371890(0x18b)]('✎\x20自定义输入\x20appcode'),'value':'custom'},..._0x14b2be[_0x371890(0x17a)](_0x3b96b8=>({'name':_0x3b96b8['appName']+'\x20\x20'+a37_0x18dc60[_0x371890(0x184)]('('+_0x3b96b8[_0x371890(0x188)]+')'),'value':_0x3b96b8[_0x371890(0x188)]}))],_0xf54994=await select({'message':_0x371890(0x18d),'choices':_0x182a59});if(_0xf54994==='skip')return _0x371890(0x19a);if(_0xf54994===_0x371890(0x18e))return _0x371890(0x18e);return _0x14b2be[_0x371890(0x185)](_0x396d49=>_0x396d49[_0x371890(0x188)]===_0xf54994);}export async function selectSingleAppcode(_0x42c89b){const _0x1c67ba=a37_0x3200;if(!_0x42c89b)return console[_0x1c67ba(0x17c)](a37_0x18dc60['gray']('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x1c67ba(0x17c)]('正在获取可用应用列表...');let _0x22b40b;try{_0x22b40b=await withActiveCookie(_0x42c89b,()=>listRemoteApps());}catch(_0x3ca268){console['log'](a37_0x18dc60[_0x1c67ba(0x18b)](_0x1c67ba(0x193)));if(_0x3ca268 instanceof Error)console[_0x1c67ba(0x17c)](a37_0x18dc60[_0x1c67ba(0x184)](_0x1c67ba(0x186)+_0x3ca268[_0x1c67ba(0x192)]+')'));return _fallbackOrSkip();}if(_0x22b40b[_0x1c67ba(0x195)]===0x0)return console[_0x1c67ba(0x17c)](a37_0x18dc60[_0x1c67ba(0x18b)](_0x1c67ba(0x19d))),_fallbackOrSkip();const _0x3f67d8=await promptSingleAppSelection(_0x22b40b);if(_0x3f67d8===_0x1c67ba(0x19a))return'';if(_0x3f67d8==='custom')return promptCustomAppcode();return _0x3f67d8[_0x1c67ba(0x188)];}export async function selectMultipleApps(_0x2c4714){const _0x52ac80=a37_0x3200;console[_0x52ac80(0x17c)](_0x52ac80(0x17b));let _0x1811b2;try{_0x1811b2=await withActiveCookie(_0x2c4714,()=>listRemoteApps());}catch(_0x4e22ef){console[_0x52ac80(0x17c)](_0x52ac80(0x18f));if(_0x4e22ef instanceof Error)console[_0x52ac80(0x17c)](_0x52ac80(0x186)+_0x4e22ef[_0x52ac80(0x192)]+')');return _0x52ac80(0x18e);}if(_0x1811b2[_0x52ac80(0x195)]===0x0)return console['log']('\x0a未找到可用应用。'),_0x52ac80(0x18e);return promptAppSelection(_0x1811b2);}async function _fallbackOrSkip(){const _0x275aae=a37_0x3200,_0x520eb4=await select({'message':_0x275aae(0x17e),'choices':[{'name':a37_0x18dc60[_0x275aae(0x184)](_0x275aae(0x191)),'value':_0x275aae(0x19a)},{'name':a37_0x18dc60[_0x275aae(0x18b)]('✎\x20手动输入'),'value':_0x275aae(0x18c)}]});if(_0x520eb4===_0x275aae(0x19a))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a38_0x346c(_0x3010d4,_0x16825f){_0x3010d4=_0x3010d4-0x1b4;const _0x59a759=a38_0x59a7();let _0x346ca5=_0x59a759[_0x3010d4];return _0x346ca5;}const a38_0x4d31f7=a38_0x346c;(function(_0x37007a,_0x2d1825){const _0x417901=a38_0x346c,_0x498037=_0x37007a();while(!![]){try{const _0x133490=-parseInt(_0x417901(0x1bb))/0x1+parseInt(_0x417901(0x1b8))/0x2*(parseInt(_0x417901(0x1c3))/0x3)+-parseInt(_0x417901(0x1bf))/0x4+parseInt(_0x417901(0x1be))/0x5+-parseInt(_0x417901(0x1ba))/0x6*(parseInt(_0x417901(0x1b9))/0x7)+parseInt(_0x417901(0x1bc))/0x8+-parseInt(_0x417901(0x1bd))/0x9*(-parseInt(_0x417901(0x1c0))/0xa);if(_0x133490===_0x2d1825)break;else _0x498037['push'](_0x498037['shift']());}catch(_0xbf1ebb){_0x498037['push'](_0x498037['shift']());}}}(a38_0x59a7,0xcffae));export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a38_0x4d31f7(0x1b7),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x4d31f7(0x1c1)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a38_0x59a7(){const _0x3b9f31=['SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2186bbiqpW','118839vnwejg','30toZyUr','1452165gNQUge','6528288ZGjEXv','477XyaKLb','4107610OdnRbL','2792480DtrPda','198630DyUYTs','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','appcode','1089zISFyF','string','sqlcode'];a38_0x59a7=function(){return _0x3b9f31;};return a38_0x59a7();}export const SQLCODE_FLAG={'name':a38_0x4d31f7(0x1b5),'type':a38_0x4d31f7(0x1b4),'required':!![],'description':a38_0x4d31f7(0x1b6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x4d31f7(0x1c2),'type':a38_0x4d31f7(0x1b4),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c6276,_0x1631dc){const _0x35bbf7=a39_0x5e66,_0x72c33=_0x2c6276();while(!![]){try{const _0x168b56=-parseInt(_0x35bbf7(0x10f))/0x1*(-parseInt(_0x35bbf7(0x107))/0x2)+-parseInt(_0x35bbf7(0x10a))/0x3+-parseInt(_0x35bbf7(0x103))/0x4+parseInt(_0x35bbf7(0x10b))/0x5*(-parseInt(_0x35bbf7(0x105))/0x6)+parseInt(_0x35bbf7(0x104))/0x7*(parseInt(_0x35bbf7(0x10e))/0x8)+-parseInt(_0x35bbf7(0x110))/0x9*(parseInt(_0x35bbf7(0x10d))/0xa)+parseInt(_0x35bbf7(0x10c))/0xb;if(_0x168b56===_0x1631dc)break;else _0x72c33['push'](_0x72c33['shift']());}catch(_0x533ff1){_0x72c33['push'](_0x72c33['shift']());}}}(a39_0x4702,0x2af42));export function validateAppcode(_0x58b929){const _0x47a4d2=a39_0x5e66,_0xbd892c=_0x58b929[_0x47a4d2(0x108)]();if(!_0xbd892c)return{'valid':![],'message':_0x47a4d2(0x109)};if(_0xbd892c['length']>0x64)return{'valid':![],'message':_0x47a4d2(0x106)};if(!/^[A-Za-z0-9_-]+$/[_0x47a4d2(0x111)](_0xbd892c))return{'valid':![],'message':_0x47a4d2(0x112)};return{'valid':!![]};}function a39_0x5e66(_0x1e24d5,_0x36ce62){_0x1e24d5=_0x1e24d5-0x103;const _0x47025c=a39_0x4702();let _0x5e666b=_0x47025c[_0x1e24d5];return _0x5e666b;}function a39_0x4702(){const _0x20536b=['Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','742096fzIHoT','548450hDShbX','120gYiGVG','App\x20Code\x20cannot\x20exceed\x20100\x20characters','9878VJzSbj','trim','App\x20Code\x20cannot\x20be\x20empty','1004502bvhuAq','51685cCSOip','7325956kdEuRD','25150xlBSZX','32kKkRpH','10AqFtGt','450ULoyen','test'];a39_0x4702=function(){return _0x20536b;};return a39_0x4702();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x1f0a21=a40_0x58c2;function a40_0x58c2(_0x8c35cf,_0x40f8b0){_0x8c35cf=_0x8c35cf-0x123;const _0x27b80f=a40_0x27b8();let _0x58c242=_0x27b80f[_0x8c35cf];return _0x58c242;}(function(_0x5e797f,_0x50df58){const _0x3496f5=a40_0x58c2,_0x39a3c6=_0x5e797f();while(!![]){try{const _0x34aece=-parseInt(_0x3496f5(0x12e))/0x1*(parseInt(_0x3496f5(0x125))/0x2)+parseInt(_0x3496f5(0x12f))/0x3+-parseInt(_0x3496f5(0x123))/0x4*(parseInt(_0x3496f5(0x12d))/0x5)+-parseInt(_0x3496f5(0x12c))/0x6+parseInt(_0x3496f5(0x138))/0x7+parseInt(_0x3496f5(0x134))/0x8+-parseInt(_0x3496f5(0x136))/0x9*(-parseInt(_0x3496f5(0x135))/0xa);if(_0x34aece===_0x50df58)break;else _0x39a3c6['push'](_0x39a3c6['shift']());}catch(_0x1533f8){_0x39a3c6['push'](_0x39a3c6['shift']());}}}(a40_0x27b8,0xac7cc));function a40_0x27b8(){const _0x3f7b1d=['Get\x20a\x20config\x20value\x20by\x20key','Key\x20not\x20found:\x20','Config\x20key\x20to\x20read','validation','Missing\x20key.','app','3339672cUHxia','25340SlRYwH','157aYIUjD','235062MVyfAh','read','appcode','\x20config\x20get\x20--key\x20<key>','key','8140208eVWQBa','766670wazZSS','225cjInGu','object','213080wqJRqz','996RRtIsc','get','6598pWtBBx'];a40_0x27b8=function(){return _0x3f7b1d;};return a40_0x27b8();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x2e85e7){const _0x1eadfd=a40_0x58c2,_0x3190ea=_0x2e85e7['str'](_0x1eadfd(0x133));if(!_0x3190ea)throw CliErrors[_0x1eadfd(0x129)](_0x1eadfd(0x12a),'Usage:\x20'+CLI_BIN_NAME+_0x1eadfd(0x132));const _0x4197ed=readConfig(),_0x111bb4=_0x3190ea===_0x1eadfd(0x12b)?_0x1eadfd(0x131):_0x3190ea,_0x3bb32c=_0x4197ed[_0x111bb4];if(_0x3bb32c===undefined)throw CliErrors[_0x1eadfd(0x129)](_0x1eadfd(0x127)+_0x3190ea);return{'ok':!![],'data':typeof _0x3bb32c===_0x1eadfd(0x137)?_0x3bb32c:{[_0x111bb4]:_0x3bb32c},'message':typeof _0x3bb32c==='object'?undefined:String(_0x3bb32c)};}export const configGetDefinition={'service':'config','command':a40_0x1f0a21(0x124),'description':a40_0x1f0a21(0x126),'risk':a40_0x1f0a21(0x130),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f0a21(0x133),'type':'string','description':a40_0x1f0a21(0x128),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d2d61,_0x1bb17c){const _0x5b1d54=a41_0x2ce5,_0x22377a=_0x1d2d61();while(!![]){try{const _0x162fc9=-parseInt(_0x5b1d54(0x1ce))/0x1*(parseInt(_0x5b1d54(0x1d6))/0x2)+parseInt(_0x5b1d54(0x1d5))/0x3*(parseInt(_0x5b1d54(0x1d1))/0x4)+parseInt(_0x5b1d54(0x1d7))/0x5+-parseInt(_0x5b1d54(0x1d2))/0x6+parseInt(_0x5b1d54(0x1d4))/0x7*(-parseInt(_0x5b1d54(0x1d8))/0x8)+parseInt(_0x5b1d54(0x1d0))/0x9+-parseInt(_0x5b1d54(0x1cf))/0xa*(-parseInt(_0x5b1d54(0x1d3))/0xb);if(_0x162fc9===_0x1bb17c)break;else _0x22377a['push'](_0x22377a['shift']());}catch(_0x3a15b7){_0x22377a['push'](_0x22377a['shift']());}}}(a41_0x5efa,0x732fc));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x2ce5(_0x11dbf9,_0x731b14){_0x11dbf9=_0x11dbf9-0x1ce;const _0x5eface=a41_0x5efa();let _0x2ce52c=_0x5eface[_0x11dbf9];return _0x2ce52c;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a41_0x5efa(){const _0x183efb=['10kVovDw','1939527ULGDDc','52ZpwDcU','263316hBymhX','13304170PTkDBy','6043499hGCUJB','43944tOJWmK','373090yDmfyI','1616425EYzVNT','8HOhKwA','3nktXLk'];a41_0x5efa=function(){return _0x183efb;};return a41_0x5efa();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x23c2e9=a42_0x47c8;(function(_0x37bf03,_0x473779){const _0xb5fb88=a42_0x47c8,_0x3bba2e=_0x37bf03();while(!![]){try{const _0x106f65=-parseInt(_0xb5fb88(0x1be))/0x1+-parseInt(_0xb5fb88(0x1bf))/0x2*(-parseInt(_0xb5fb88(0x1c7))/0x3)+parseInt(_0xb5fb88(0x1ca))/0x4+-parseInt(_0xb5fb88(0x1bc))/0x5*(-parseInt(_0xb5fb88(0x1c3))/0x6)+-parseInt(_0xb5fb88(0x1bb))/0x7+-parseInt(_0xb5fb88(0x1c9))/0x8*(parseInt(_0xb5fb88(0x1cb))/0x9)+parseInt(_0xb5fb88(0x1c8))/0xa*(-parseInt(_0xb5fb88(0x1c6))/0xb);if(_0x106f65===_0x473779)break;else _0x3bba2e['push'](_0x3bba2e['shift']());}catch(_0x5f4bf9){_0x3bba2e['push'](_0x3bba2e['shift']());}}}(a42_0x24ed,0x9fdd3));import{readScopedConfig}from'../../commands/config/shared.js';function a42_0x47c8(_0x303f4c,_0x2f4b04){_0x303f4c=_0x303f4c-0x1ba;const _0x24ed7b=a42_0x24ed();let _0x47c800=_0x24ed7b[_0x303f4c];return _0x47c800;}import{readConfig}from'../../utils/config.js';async function execute(_0x217538){const _0xf8a917=a42_0x47c8,_0x1bbe33=_0x217538[_0xf8a917(0x1bd)](_0xf8a917(0x1c4))?readScopedConfig(_0xf8a917(0x1c4)):readConfig();return{'ok':!![],'data':_0x1bbe33};}export const configListDefinition={'service':a42_0x23c2e9(0x1c0),'command':a42_0x23c2e9(0x1c1),'description':a42_0x23c2e9(0x1c5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x23c2e9(0x1c4),'type':a42_0x23c2e9(0x1c2),'description':a42_0x23c2e9(0x1ba),'default':![]}],'execute':execute};function a42_0x24ed(){const _0x3ea479=['185002ebibVD','1196faZUXh','config','list','boolean','2404596DggIwl','global','List\x20all\x20config\x20values','22sxerig','21YvJVCQ','1080900eLYEfm','16sFhpCp','3621564NytWUm','7659spDTHr','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','7379316nYFjuS','15WXxkrK','bool'];a42_0x24ed=function(){return _0x3ea479;};return a42_0x24ed();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a43_0xcd2f(_0x11ec93,_0x3d36e4){_0x11ec93=_0x11ec93-0x19a;const _0x45c481=a43_0x45c4();let _0xcd2f14=_0x45c481[_0x11ec93];return _0xcd2f14;}const a43_0x23d0eb=a43_0xcd2f;(function(_0x30cc4b,_0x6f517d){const _0x24a3ee=a43_0xcd2f,_0x596318=_0x30cc4b();while(!![]){try{const _0x2f0ee7=-parseInt(_0x24a3ee(0x1a4))/0x1*(parseInt(_0x24a3ee(0x1bb))/0x2)+parseInt(_0x24a3ee(0x1af))/0x3+parseInt(_0x24a3ee(0x1ab))/0x4+-parseInt(_0x24a3ee(0x1a7))/0x5+parseInt(_0x24a3ee(0x19d))/0x6+-parseInt(_0x24a3ee(0x1b6))/0x7+parseInt(_0x24a3ee(0x1c0))/0x8*(-parseInt(_0x24a3ee(0x19b))/0x9);if(_0x2f0ee7===_0x6f517d)break;else _0x596318['push'](_0x596318['shift']());}catch(_0x5b1aa4){_0x596318['push'](_0x596318['shift']());}}}(a43_0x45c4,0x3aa41));function a43_0x45c4(){const _0x301d88=['Usage:\x20','400qKRuFR','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','locale','44811ggYops','includes','2465268ZERFaS','length','Config\x20value','Set\x20a\x20config\x20value','appcode','riskLevel','key','18121YgUDPG','Missing\x20value.','string','1646380UmPQuB','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','bool','write','797428AfdcYC','online','validation','set','1306572MshhmZ','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','daily','global','app','config','Project','1464533PHwXgY','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Global','Config\x20key','production','2kwHMOA','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','value','\x20set\x20to:\x20'];a43_0x45c4=function(){return _0x301d88;};return a43_0x45c4();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x33128c){const _0x88cb34=a43_0xcd2f,_0x33b3db=_0x33128c['str']('key'),_0x4eb2c5=_0x33128c['str'](_0x88cb34(0x1bd));if(!_0x33b3db)throw CliErrors[_0x88cb34(0x1ad)]('Missing\x20key.',_0x88cb34(0x1bf)+CLI_BIN_NAME+_0x88cb34(0x1c1));if(_0x4eb2c5===undefined||_0x4eb2c5==='')throw CliErrors['validation'](_0x88cb34(0x1a5),_0x88cb34(0x1bf)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x4eb2c5[_0x88cb34(0x19e)]>0x1f4)throw CliErrors[_0x88cb34(0x1ad)](_0x88cb34(0x1a8));if(_0x33b3db==='env'&&![_0x88cb34(0x1ac),_0x88cb34(0x1ba),_0x88cb34(0x1b1)][_0x88cb34(0x19c)](_0x4eb2c5))throw CliErrors[_0x88cb34(0x1ad)](_0x88cb34(0x1b0));if(_0x33b3db===_0x88cb34(0x1a2))throw CliErrors[_0x88cb34(0x1ad)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x33b3db===_0x88cb34(0x19a)&&!normalizeLocale(_0x4eb2c5))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x88cb34(0x1b7));const _0x1ef863={'global':_0x33128c[_0x88cb34(0x1a9)]('global')},_0x5c40c8=resolveWriteScope(_0x1ef863),_0x1914e9=readScopedConfig(_0x5c40c8);let _0x2078a9=_0x33b3db,_0x5f2477=_0x4eb2c5;_0x33b3db===_0x88cb34(0x1b3)&&(_0x2078a9=_0x88cb34(0x1a1),delete _0x1914e9[_0x88cb34(0x1b3)]);_0x33b3db===_0x88cb34(0x1a1)&&delete _0x1914e9['app'];_0x33b3db===_0x88cb34(0x19a)&&(_0x5f2477=normalizeLocale(_0x4eb2c5));_0x1914e9[_0x2078a9]=_0x5f2477,writeScopedConfig(_0x1914e9,_0x5c40c8);const _0x262150=_0x5c40c8===_0x88cb34(0x1b2)?_0x88cb34(0x1b8):_0x88cb34(0x1b5);return{'ok':!![],'message':'✓\x20'+_0x262150+'\x20'+_0x2078a9+_0x88cb34(0x1be)+_0x5f2477};}export const configSetDefinition={'service':a43_0x23d0eb(0x1b4),'command':a43_0x23d0eb(0x1ae),'description':a43_0x23d0eb(0x1a0),'risk':a43_0x23d0eb(0x1aa),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x23d0eb(0x1a3),'type':a43_0x23d0eb(0x1a6),'description':a43_0x23d0eb(0x1b9),'required':!![]},{'name':a43_0x23d0eb(0x1bd),'type':'string','description':a43_0x23d0eb(0x19f),'required':!![]},{'name':a43_0x23d0eb(0x1b2),'type':'boolean','description':a43_0x23d0eb(0x1bc),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x34c5da=a44_0x2531;(function(_0x216f99,_0x1e7e58){const _0xb2d8d6=a44_0x2531,_0x5a03c4=_0x216f99();while(!![]){try{const _0x3c18c8=parseInt(_0xb2d8d6(0xf7))/0x1*(-parseInt(_0xb2d8d6(0xf1))/0x2)+-parseInt(_0xb2d8d6(0xfb))/0x3*(parseInt(_0xb2d8d6(0xf3))/0x4)+-parseInt(_0xb2d8d6(0xfc))/0x5+-parseInt(_0xb2d8d6(0xf9))/0x6*(parseInt(_0xb2d8d6(0xf5))/0x7)+-parseInt(_0xb2d8d6(0xf2))/0x8+-parseInt(_0xb2d8d6(0xf6))/0x9+parseInt(_0xb2d8d6(0xfa))/0xa;if(_0x3c18c8===_0x1e7e58)break;else _0x5a03c4['push'](_0x5a03c4['shift']());}catch(_0x3ab0cc){_0x5a03c4['push'](_0x5a03c4['shift']());}}}(a44_0x28f6,0x25050));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':'zh-CN','zh-cn':a44_0x34c5da(0xee),'zh_cn':a44_0x34c5da(0xee),'en':a44_0x34c5da(0xf4),'en-us':a44_0x34c5da(0xf4),'en_us':a44_0x34c5da(0xf4)};export function normalizeLocale(_0x451c32){const _0x49e243=a44_0x34c5da;if(!_0x451c32)return null;return LOCALE_MAP[_0x451c32[_0x49e243(0xf0)]()]??null;}export function resolveWriteScope(_0x35b353){const _0xab355a=a44_0x34c5da;if(_0x35b353['global'])return _0xab355a(0xef);return isInProject()?_0xab355a(0xf8):'global';}export function readScopedConfig(_0x279deb){return readConfigFile(resolveWriteConfigPath(_0x279deb));}export function writeScopedConfig(_0x293b11,_0x159d5f){writeConfigFile(resolveWriteConfigPath(_0x159d5f),_0x293b11);}function a44_0x2531(_0x444bd3,_0x518d9c){_0x444bd3=_0x444bd3-0xee;const _0x28f630=a44_0x28f6();let _0x2531c0=_0x28f630[_0x444bd3];return _0x2531c0;}function a44_0x28f6(){const _0x1b8ef4=['1LQDmrU','project','271494NgPyRt','9829980JJjXGN','8133ZICtjF','866610pkNQSR','zh-CN','global','toLowerCase','474416EsbivE','1444872AfKgfy','228VNIThM','en-US','7cqtBDP','364059MotlJM'];a44_0x28f6=function(){return _0x1b8ef4;};return a44_0x28f6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x50b7cb=a45_0x276e;(function(_0x177d57,_0x4b1314){const _0x436b89=a45_0x276e,_0x5a1270=_0x177d57();while(!![]){try{const _0x5562a1=parseInt(_0x436b89(0xde))/0x1+-parseInt(_0x436b89(0xc3))/0x2*(parseInt(_0x436b89(0xf9))/0x3)+parseInt(_0x436b89(0x103))/0x4*(-parseInt(_0x436b89(0xec))/0x5)+-parseInt(_0x436b89(0xd2))/0x6*(-parseInt(_0x436b89(0xf2))/0x7)+-parseInt(_0x436b89(0x108))/0x8*(parseInt(_0x436b89(0xeb))/0x9)+-parseInt(_0x436b89(0x102))/0xa*(-parseInt(_0x436b89(0xc1))/0xb)+-parseInt(_0x436b89(0xf1))/0xc;if(_0x5562a1===_0x4b1314)break;else _0x5a1270['push'](_0x5a1270['shift']());}catch(_0x1812f0){_0x5a1270['push'](_0x5a1270['shift']());}}}(a45_0x1611,0x2d0a3));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2223cc){const _0x5a928f=a45_0x276e;if(_0x2223cc[_0x5a928f(0x10b)])return null;const _0x500d16=Boolean(_0x2223cc[_0x5a928f(0xcc)]!==undefined||_0x2223cc['doType']!==undefined);let _0x4cf0a9={};if(!_0x500d16&&typeof _0x2223cc[_0x5a928f(0xe7)]===_0x5a928f(0x101))try{_0x4cf0a9=JSON[_0x5a928f(0xe0)](_0x2223cc[_0x5a928f(0xe7)]);}catch{}const _0xb0b6f4=_0x500d16?_0x2223cc[_0x5a928f(0xdc)]:_0x2223cc[_0x5a928f(0xe2)],_0x355a77=_0x500d16?_0x2223cc[_0x5a928f(0xcc)]:_0x2223cc[_0x5a928f(0xdc)],_0x2ebfd4=_0x500d16?_0x2223cc[_0x5a928f(0xef)]:_0x2223cc[_0x5a928f(0xea)]||_0x2223cc[_0x5a928f(0x10f)],_0x3a1443=_0x500d16?_0x2223cc['pkField']===!![]:_0x4cf0a9[_0x5a928f(0xe5)]===!![],_0x4f3de5=_0x500d16?_0x2223cc[_0x5a928f(0xfc)]===!![]:_0x4cf0a9[_0x5a928f(0xfc)]===!![],_0x1faa48=_0x500d16?_0x2223cc['options']??null:_0x4cf0a9[_0x5a928f(0xc4)]??null,_0x441d95={'name':_0xb0b6f4,'displayName':_0x355a77||_0xb0b6f4,'type':_0x2ebfd4,'dbType':_0x2223cc[_0x5a928f(0xd1)],'pk':_0x3a1443,'required':_0x4f3de5,'description':_0x2223cc[_0x5a928f(0xf3)]||undefined};return Array[_0x5a928f(0xf5)](_0x1faa48)&&_0x1faa48[_0x5a928f(0xfd)]>0x0&&(_0x441d95[_0x5a928f(0xc4)]=_0x1faa48),_0x441d95;}function parseJsonMaybe(_0x507c2e){const _0x85596a=a45_0x276e;if(typeof _0x507c2e!==_0x85596a(0x101))return _0x507c2e;try{return JSON[_0x85596a(0xe0)](_0x507c2e);}catch{return _0x507c2e;}}function normalizeOperationEntry(_0x342bef,_0x59440e){const _0x304f41=a45_0x276e;if(!_0x59440e||typeof _0x59440e!==_0x304f41(0x10e))return null;if(!_0x59440e[_0x304f41(0xbf)]||!_0x59440e['path'])return null;const _0x1f17d3={'name':_0x342bef,'method':_0x59440e['method'],'path':_0x59440e[_0x304f41(0xfb)]};if(_0x59440e[_0x304f41(0xf6)])_0x1f17d3['host']=_0x59440e[_0x304f41(0xf6)];if(_0x59440e[_0x304f41(0xf7)]!=null){const _0x1ab1a4=parseJsonMaybe(_0x59440e[_0x304f41(0xf7)]);_0x1f17d3[_0x304f41(0xf7)]=_0x1ab1a4;}if(_0x59440e['responseBody']!=null){const _0x10eea9=parseJsonMaybe(_0x59440e[_0x304f41(0xc7)]);_0x1f17d3[_0x304f41(0xc7)]=_0x10eea9;}if(_0x59440e[_0x304f41(0xf8)]!=null)_0x1f17d3['beforeScriptId']=_0x59440e[_0x304f41(0xf8)];if(_0x59440e[_0x304f41(0x111)]!=null)_0x1f17d3['afterScriptId']=_0x59440e[_0x304f41(0x111)];if(Array['isArray'](_0x59440e['requestFields']))_0x1f17d3['requestFields']=_0x59440e[_0x304f41(0xd7)];if(Array[_0x304f41(0xf5)](_0x59440e[_0x304f41(0xc5)]))_0x1f17d3[_0x304f41(0xc5)]=_0x59440e[_0x304f41(0xc5)];return _0x1f17d3;}function a45_0x276e(_0xbe13a5,_0x2e8bbc){_0xbe13a5=_0xbe13a5-0xbc;const _0x161138=a45_0x1611();let _0x276e0e=_0x161138[_0xbe13a5];return _0x276e0e;}function summarizeDbtable(_0x13e3fa){const _0x23f6a0=a45_0x276e,_0x4c5b09={},_0x43bb5c=[_0x23f6a0(0xce),_0x23f6a0(0xdb),_0x23f6a0(0xfa),_0x23f6a0(0xbe),'pkField',_0x23f6a0(0x10c),_0x23f6a0(0xc9),_0x23f6a0(0xc6),_0x23f6a0(0x107),_0x23f6a0(0xc0),_0x23f6a0(0xff),_0x23f6a0(0x106),_0x23f6a0(0xca),_0x23f6a0(0xe1),_0x23f6a0(0xf4)];for(const _0x3babfc of _0x43bb5c){if(_0x13e3fa[_0x3babfc]!==undefined)_0x4c5b09[_0x3babfc]=_0x13e3fa[_0x3babfc];}return typeof _0x4c5b09[_0x23f6a0(0x10c)]==='string'&&_0x4c5b09[_0x23f6a0(0x10c)][_0x23f6a0(0xfd)]>0x0&&(_0x4c5b09[_0x23f6a0(0xd0)]=_0x4c5b09[_0x23f6a0(0x10c)][_0x23f6a0(0x10a)](',')['map'](_0x3771fa=>_0x3771fa[_0x23f6a0(0xd8)]())[_0x23f6a0(0x100)](Boolean)),_0x4c5b09;}function a45_0x1611(){const _0xcabadf=['beforeScriptId','1308eRMTgP','tableName','path','required','length','modelCode','creatorNameField','filter','string','170YBHbZm','10916WmmthX','validateRules','toTableName','modifierIdField','updateTimeField','36872lDSIHy','map','split','deleted','allFields','columnCodeListWithDeleted','object','dataType','dbtableConfig','afterScriptId','dataset','toField','datasetKey','method','creatorIdField','147169zAETeV','push','230rVkXzZ','options','responseFields','createTimeField','responseBody','doVersion','logicField','modifierNameField','fromField','displayName','read','dbId','fields','allFieldNames','dbType','12UApivf','detail','formatRules','properties','indexes','requestFields','trim','operations','source','dbName','name','relatedPageInfoList','239073PpCTIw','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','parse','labelField','code','toDatasetCode','sourceType','pkField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','extend','str','alias','type','234cExWnB','230tPPolY','relations','entries','doType','title','2918628tIaLny','898429QRzaTI','description','dblinkInfoDTO','isArray','host','requestBody'];a45_0x1611=function(){return _0xcabadf;};return a45_0x1611();}function normalizeRelatedPages(_0x1fa55b){const _0x313ae6=a45_0x276e;if(!Array[_0x313ae6(0xf5)](_0x1fa55b))return[];return _0x1fa55b[_0x313ae6(0x100)](_0x159202=>_0x159202&&typeof _0x159202===_0x313ae6(0x10e))[_0x313ae6(0x109)](_0x709dba=>({'id':_0x709dba['id'],'type':_0x709dba[_0x313ae6(0xea)],'code':_0x709dba[_0x313ae6(0xe2)],'title':_0x709dba[_0x313ae6(0xf0)],'deleted':_0x709dba[_0x313ae6(0x10b)]===!![]}));}export const datasetDetail={'service':a45_0x50b7cb(0xbc),'command':a45_0x50b7cb(0xd3),'description':a45_0x50b7cb(0xdf),'risk':a45_0x50b7cb(0xcd),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x50b7cb(0xe9),'type':a45_0x50b7cb(0x101),'description':a45_0x50b7cb(0xe6)}],async 'execute'(_0xb1b02f){const _0x2829ab=a45_0x50b7cb,_0x3cc9ab=await getDatasetDetail(_0xb1b02f[_0x2829ab(0xe8)](_0x2829ab(0xe2))),_0x2da8e0=Array[_0x2829ab(0xf5)](_0x3cc9ab[_0x2829ab(0xcf)])?_0x3cc9ab[_0x2829ab(0xcf)]:Array[_0x2829ab(0xf5)](_0x3cc9ab[_0x2829ab(0xd5)])?_0x3cc9ab['properties']:[],_0x3fcc8d=_0x2da8e0[_0x2829ab(0x109)](_0x18e0c4=>normalizeField(_0x18e0c4))[_0x2829ab(0x100)](_0x2d30cd=>_0x2d30cd!==null),_0x4004e7=_0x3cc9ab[_0x2829ab(0xd9)]??{},_0x169f2d=[];for(const [_0x5b0382,_0x31834b]of Object[_0x2829ab(0xee)](_0x4004e7)){const _0x49c3a6=normalizeOperationEntry(_0x5b0382,_0x31834b);if(_0x49c3a6)_0x169f2d[_0x2829ab(0xc2)](_0x49c3a6);}const _0x1de06f=_0x3cc9ab[_0x2829ab(0x110)]??{},_0x5a14dd=_0x3cc9ab[_0x2829ab(0xbc)]??{},_0x1e2219=_0x1de06f[_0x2829ab(0xce)]!=null?{'id':_0x1de06f[_0x2829ab(0xce)],'name':_0x1de06f[_0x2829ab(0xdb)]??null}:undefined;let _0x42b3dd;return typeof _0x3cc9ab[_0x2829ab(0xe7)]===_0x2829ab(0x101)&&(_0x42b3dd=parseJsonMaybe(_0x3cc9ab[_0x2829ab(0xe7)])),{'ok':!![],'data':{'id':_0x3cc9ab['modelId']??_0x3cc9ab['id'],'name':_0x3cc9ab[_0x2829ab(0xdc)],'code':_0x3cc9ab[_0x2829ab(0xfe)]||_0x3cc9ab['code'],'doVersion':_0x3cc9ab[_0x2829ab(0xc8)],'description':_0x3cc9ab[_0x2829ab(0xf3)]||_0x5a14dd['tableComment']||undefined,'source':_0x3cc9ab[_0x2829ab(0xda)]||_0x5a14dd[_0x2829ab(0xe4)],'table':_0x1de06f['tableName']||_0x5a14dd['tableName'],'datasetKey':_0x1de06f['datasetKey'],'pk':_0x1de06f[_0x2829ab(0xe5)],'db':_0x1e2219,'dbtable':summarizeDbtable(_0x1de06f),'fields':_0x3fcc8d,'operations':_0x169f2d,'indexes':Array['isArray'](_0x5a14dd[_0x2829ab(0xd6)])?_0x5a14dd[_0x2829ab(0xd6)]:[],'relations':Array[_0x2829ab(0xf5)](_0x3cc9ab[_0x2829ab(0xed)])?_0x3cc9ab['relations'][_0x2829ab(0x109)](_0x5e54d8=>({'fromField':_0x5e54d8[_0x2829ab(0xcb)],'toDataset':_0x5e54d8['toDatasetName'],'toCode':_0x5e54d8[_0x2829ab(0xe3)],'toTable':_0x5e54d8[_0x2829ab(0x105)],'toField':_0x5e54d8[_0x2829ab(0xbd)],'labelField':_0x5e54d8['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x3cc9ab[_0x2829ab(0xdd)]),...Array['isArray'](_0x3cc9ab['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x3cc9ab[_0x2829ab(0x10d)]}:{},'formatRules':Array[_0x2829ab(0xf5)](_0x3cc9ab['formatRules'])?_0x3cc9ab[_0x2829ab(0xd4)]:[],'validateRules':Array[_0x2829ab(0xf5)](_0x3cc9ab[_0x2829ab(0x104)])?_0x3cc9ab['validateRules']:[],..._0x42b3dd!==undefined?{'extend':_0x42b3dd}:{},'stats':{'fieldCount':_0x3fcc8d[_0x2829ab(0xfd)],'operationCount':_0x169f2d[_0x2829ab(0xfd)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59951b,_0x582405){const _0x4da531=a46_0x282a,_0x324873=_0x59951b();while(!![]){try{const _0x33cd67=-parseInt(_0x4da531(0x141))/0x1*(parseInt(_0x4da531(0x13f))/0x2)+parseInt(_0x4da531(0x140))/0x3+-parseInt(_0x4da531(0x146))/0x4+parseInt(_0x4da531(0x144))/0x5+parseInt(_0x4da531(0x143))/0x6+-parseInt(_0x4da531(0x145))/0x7+-parseInt(_0x4da531(0x142))/0x8;if(_0x33cd67===_0x582405)break;else _0x324873['push'](_0x324873['shift']());}catch(_0x30a246){_0x324873['push'](_0x324873['shift']());}}}(a46_0x2431,0xa3e8d));function a46_0x282a(_0x501e6a,_0x51b02e){_0x501e6a=_0x501e6a-0x13f;const _0x2431f7=a46_0x2431();let _0x282af7=_0x2431f7[_0x501e6a];return _0x282af7;}function a46_0x2431(){const _0x3b924c=['56vzDYUe','1892865VQiFyU','3854kpMYQa','125912AaSiBH','6568146FpIsTe','4103415wvCzVg','5241299FqnZri','4010192mWiZyV'];a46_0x2431=function(){return _0x3b924c;};return a46_0x2431();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x174b53=a47_0x38ed;function a47_0x38ed(_0x347972,_0xefbfd){_0x347972=_0x347972-0x192;const _0x58160d=a47_0x5816();let _0x38ed3e=_0x58160d[_0x347972];return _0x38ed3e;}(function(_0x186859,_0x59133b){const _0x136e43=a47_0x38ed,_0x367a2e=_0x186859();while(!![]){try{const _0x57baf8=parseInt(_0x136e43(0x1b2))/0x1*(parseInt(_0x136e43(0x1b5))/0x2)+-parseInt(_0x136e43(0x1bd))/0x3*(-parseInt(_0x136e43(0x199))/0x4)+-parseInt(_0x136e43(0x1c4))/0x5*(-parseInt(_0x136e43(0x1cb))/0x6)+-parseInt(_0x136e43(0x1b6))/0x7*(parseInt(_0x136e43(0x1aa))/0x8)+parseInt(_0x136e43(0x19d))/0x9+parseInt(_0x136e43(0x1a8))/0xa*(parseInt(_0x136e43(0x192))/0xb)+-parseInt(_0x136e43(0x1a9))/0xc;if(_0x57baf8===_0x59133b)break;else _0x367a2e['push'](_0x367a2e['shift']());}catch(_0x469ce5){_0x367a2e['push'](_0x367a2e['shift']());}}}(a47_0x5816,0x5de24));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a47_0x5816(){const _0x2b5810=['3285615MWREjT','isPrimaryKey','map','length','tableComment','appCode','displayName','6FpWdst','22GjNQbF','toDataset','tableName','datasets','joinType','filter','fields','24fiUYjW','string','\x20database(s),\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','2879820fFLOtK','dbId','fromField','name','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','\x20relation(s)','Fetched\x20link\x20graph\x20for\x20','verbose','toField','isForeignKey','str','732310yMudvQ','11422284ariZvM','66040bCQqYE','reduce','datasetCount','all','boolean','links','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','relationCount','406fklJiT','\x20database(s)','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','194YLPqCi','70xKDuSX','bool','dataset','meta','datasetName','dbType','toDatasetName','128004QaNJsY','Link\x20graph:\x20','dbName','datasetId','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','relations','stats'];a47_0x5816=function(){return _0x2b5810;};return a47_0x5816();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x174b53(0x1b8),'command':a47_0x174b53(0x1af),'description':a47_0x174b53(0x1a1)+a47_0x174b53(0x1c1)+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x174b53(0x19a),'description':a47_0x174b53(0x1b4)+a47_0x174b53(0x19c)},{'name':a47_0x174b53(0x1a4),'type':a47_0x174b53(0x1ae),'description':a47_0x174b53(0x1b0)}],async 'execute'(_0x136b8c){const _0x2c1d22=a47_0x174b53,_0x3f2b28=_0x136b8c[_0x2c1d22(0x1b7)](_0x2c1d22(0x1a4)),{resolved:_0x3faab3,error:_0x51acc8}=await resolveDb(_0x136b8c[_0x2c1d22(0x1c9)],_0x136b8c[_0x2c1d22(0x1a7)]('db')||undefined);if(_0x51acc8)return{'ok':![],'message':_0x51acc8};const _0x3b71ca=_0x3faab3['map'](_0xdfcbed=>_0xdfcbed[_0x2c1d22(0x19e)]),_0x633dbe=await Promise[_0x2c1d22(0x1ad)](_0x3b71ca[_0x2c1d22(0x1c6)](_0x4041cb=>getErConfig(_0x136b8c['appCode'],_0x4041cb)));if(_0x3f2b28)return{'ok':!![],'data':_0x633dbe['length']===0x1?_0x633dbe[0x0]:_0x633dbe,'message':_0x2c1d22(0x1a3)+_0x3b71ca[_0x2c1d22(0x1c7)]+_0x2c1d22(0x1b3)};const _0x200f63=_0x633dbe['map'](_0x12d28b=>{const _0x1af1e9=_0x2c1d22,_0x361d77=(_0x12d28b['datasets']??[])[_0x1af1e9(0x1c6)](_0x1db0f4=>{const _0x92cb05=_0x1af1e9,_0x50aa1e=_0x1db0f4['fields']?.[_0x92cb05(0x197)](_0x32e36b=>_0x32e36b[_0x92cb05(0x1c5)])[_0x92cb05(0x1c6)](_0x1b6bca=>_0x1b6bca[_0x92cb05(0x1a0)])??[],_0xa05c40=_0x1db0f4[_0x92cb05(0x198)]?.['filter'](_0x255629=>_0x255629[_0x92cb05(0x1a6)])[_0x92cb05(0x1c6)](_0x1f9d0c=>_0x1f9d0c[_0x92cb05(0x1a0)])??[];return{'id':_0x1db0f4[_0x92cb05(0x1c0)],'name':_0x1db0f4[_0x92cb05(0x1ba)],'code':_0x1db0f4['datasetCode'],'table':_0x1db0f4[_0x92cb05(0x194)],'comment':_0x1db0f4[_0x92cb05(0x1c8)]||undefined,'fields':(_0x1db0f4[_0x92cb05(0x198)]??[])[_0x92cb05(0x1c6)](_0x30ea9c=>({'name':_0x30ea9c['name'],'displayName':_0x30ea9c[_0x92cb05(0x1ca)],'type':_0x30ea9c[_0x92cb05(0x1bb)],'pk':_0x30ea9c[_0x92cb05(0x1c5)],'fk':_0x30ea9c[_0x92cb05(0x1a6)]})),'relations':(_0x1db0f4['relations']??[])[_0x92cb05(0x197)](_0x4d836d=>_0x4d836d[_0x92cb05(0x19f)]&&_0x4d836d[_0x92cb05(0x193)])[_0x92cb05(0x1c6)](_0x1d06ca=>({'from':_0x1d06ca[_0x92cb05(0x19f)],'toDataset':_0x1d06ca[_0x92cb05(0x1bc)],'toCode':_0x1d06ca[_0x92cb05(0x193)],'toField':_0x1d06ca[_0x92cb05(0x1a5)],'joinType':_0x1d06ca[_0x92cb05(0x196)]||'LEFT'})),'stats':{'fieldCount':_0x1db0f4[_0x92cb05(0x198)]?.[_0x92cb05(0x1c7)]??0x0,'pkCount':_0x50aa1e['length'],'fkCount':_0xa05c40[_0x92cb05(0x1c7)],'relationCount':_0x1db0f4[_0x92cb05(0x1c2)]?.['length']??0x0}};}),_0x5170c1=_0x361d77[_0x1af1e9(0x197)](_0x1fda2e=>_0x1fda2e['stats'][_0x1af1e9(0x1b1)]>0x0)[_0x1af1e9(0x1c6)](_0x2ee6cf=>_0x2ee6cf[_0x1af1e9(0x1a0)]);return{'db':_0x12d28b[_0x1af1e9(0x1b9)]?.[_0x1af1e9(0x1bf)],'dbId':_0x12d28b[_0x1af1e9(0x1b9)]?.[_0x1af1e9(0x19e)],'appCode':_0x12d28b['meta']?.['appCode'],'datasetCount':_0x361d77[_0x1af1e9(0x1c7)],'connectedDatasets':_0x5170c1,'datasets':_0x361d77};}),_0xc76f5c=_0x200f63[_0x2c1d22(0x1ab)]((_0xc642e4,_0x50c83f)=>_0xc642e4+_0x50c83f[_0x2c1d22(0x1ac)],0x0),_0x3d774d=_0x200f63['reduce']((_0x242ad9,_0x423a2d)=>_0x242ad9+_0x423a2d[_0x2c1d22(0x195)][_0x2c1d22(0x1ab)]((_0x147c93,_0xcbcad)=>_0x147c93+_0xcbcad[_0x2c1d22(0x1c3)][_0x2c1d22(0x1b1)],0x0),0x0);return{'ok':!![],'data':_0x200f63[_0x2c1d22(0x1c7)]===0x1?_0x200f63[0x0]:{'databases':_0x200f63},'message':_0x2c1d22(0x1be)+_0x200f63['length']+_0x2c1d22(0x19b)+_0xc76f5c+'\x20dataset(s),\x20'+_0x3d774d+_0x2c1d22(0x1a2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a48_0x35cb83=a48_0x2dd8;(function(_0x428478,_0x4bee09){const _0x5a8ba8=a48_0x2dd8,_0x11482c=_0x428478();while(!![]){try{const _0x18d9e5=-parseInt(_0x5a8ba8(0x189))/0x1+-parseInt(_0x5a8ba8(0x186))/0x2*(-parseInt(_0x5a8ba8(0x190))/0x3)+parseInt(_0x5a8ba8(0x17e))/0x4+-parseInt(_0x5a8ba8(0x176))/0x5*(-parseInt(_0x5a8ba8(0x173))/0x6)+parseInt(_0x5a8ba8(0x18e))/0x7+-parseInt(_0x5a8ba8(0x185))/0x8+-parseInt(_0x5a8ba8(0x183))/0x9*(parseInt(_0x5a8ba8(0x18b))/0xa);if(_0x18d9e5===_0x4bee09)break;else _0x11482c['push'](_0x11482c['shift']());}catch(_0x3b77c8){_0x11482c['push'](_0x11482c['shift']());}}}(a48_0x5e95,0x97ea0));function a48_0x2dd8(_0x2c6976,_0x2349f7){_0x2c6976=_0x2c6976-0x173;const _0x5e95a2=a48_0x5e95();let _0x2dd896=_0x5e95a2[_0x2c6976];return _0x2dd896;}import{listDatasets}from'../../core/api-client.js';function a48_0x5e95(){const _0x372094=['1653184KRsbfT','1062vkztMN','code','pkField','798147kyWNJE','allFields','20rBWHpG','split','map','7862771XMkSDt','name','3057FMQqyF','appCode','2000652JFPrWg','trim','source','15VJOIar','dbName','length','str','dbtableConfig','description','read','tableName','373044NeBGjt','list','string','dataset','List\x20all\x20datasets\x20with\x20metadata','5089023wjqDIw','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'];a48_0x5e95=function(){return _0x372094;};return a48_0x5e95();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x35cb83(0x181),'command':a48_0x35cb83(0x17f),'description':a48_0x35cb83(0x182),'risk':a48_0x35cb83(0x17c),'flags':[{'name':a48_0x35cb83(0x18f),'type':a48_0x35cb83(0x180),'description':a48_0x35cb83(0x184)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x136ffd){const _0x545e9d=a48_0x35cb83,_0x210c8f=_0x136ffd[_0x545e9d(0x179)](_0x545e9d(0x18f)),_0xd18533=_0x136ffd[_0x545e9d(0x179)](_0x545e9d(0x187)),_0x3389a1=await listDatasets(_0x136ffd[_0x545e9d(0x191)],{..._0x210c8f&&{'name':_0x210c8f},..._0xd18533&&{'code':_0xd18533}}),_0x44bb07=_0x3389a1[_0x545e9d(0x18d)](_0x412a39=>{const _0x427d65=_0x545e9d,_0x7f406f=_0x412a39[_0x427d65(0x17a)]??{};return{'id':_0x412a39['id'],'name':_0x412a39[_0x427d65(0x18f)],'code':_0x412a39[_0x427d65(0x187)],'description':_0x412a39[_0x427d65(0x17b)],'source':_0x412a39[_0x427d65(0x175)],'db':_0x7f406f[_0x427d65(0x177)],'table':_0x7f406f[_0x427d65(0x17d)],'datasetKey':_0x7f406f['datasetKey'],'pk':_0x7f406f[_0x427d65(0x188)],'fields':_0x7f406f[_0x427d65(0x18a)]?_0x7f406f[_0x427d65(0x18a)][_0x427d65(0x18c)](',')[_0x427d65(0x18d)](_0x22095a=>_0x22095a[_0x427d65(0x174)]()):[]};});return{'ok':!![],'data':{'total':_0x44bb07[_0x545e9d(0x178)],'datasets':_0x44bb07},'message':'Found\x20'+_0x44bb07[_0x545e9d(0x178)]+'\x20dataset(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a49_0x155b(){const _0x25a132=['code','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','displayName','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','string','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','20950XwvDxX','395464GaHNKi','3924cWDpXi','verbose','3248084GLFmVi','3391590jVAoty','str','boolean','operation','dataset','appCode','2828680XCwTKL','operations','461uGSlxd','bool','2442vEeYhK','alias','963000GXaNgm','method','9gsmmEC'];a49_0x155b=function(){return _0x25a132;};return a49_0x155b();}const a49_0x4e5c75=a49_0x3f58;(function(_0x2269b8,_0x558f64){const _0x4d7251=a49_0x3f58,_0xb37ba9=_0x2269b8();while(!![]){try{const _0x55f045=parseInt(_0x4d7251(0x14f))/0x1*(-parseInt(_0x4d7251(0x151))/0x2)+parseInt(_0x4d7251(0x155))/0x3*(-parseInt(_0x4d7251(0x15d))/0x4)+-parseInt(_0x4d7251(0x153))/0x5+parseInt(_0x4d7251(0x161))/0x6+-parseInt(_0x4d7251(0x160))/0x7+parseInt(_0x4d7251(0x14d))/0x8+-parseInt(_0x4d7251(0x15e))/0x9*(-parseInt(_0x4d7251(0x15c))/0xa);if(_0x55f045===_0x558f64)break;else _0xb37ba9['push'](_0xb37ba9['shift']());}catch(_0x5c21c1){_0xb37ba9['push'](_0xb37ba9['shift']());}}}(a49_0x155b,0x4d313));function a49_0x3f58(_0x2e6965,_0x45fbf7){_0x2e6965=_0x2e6965-0x14b;const _0x155b70=a49_0x155b();let _0x3f58b5=_0x155b70[_0x2e6965];return _0x3f58b5;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a49_0x4e5c75(0x14b),'command':a49_0x4e5c75(0x14e),'description':a49_0x4e5c75(0x159),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x4e5c75(0x152),'type':a49_0x4e5c75(0x15a),'description':a49_0x4e5c75(0x15b)},{'name':a49_0x4e5c75(0x164),'type':a49_0x4e5c75(0x15a),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a49_0x4e5c75(0x15f),'type':a49_0x4e5c75(0x163),'description':a49_0x4e5c75(0x157)}],async 'execute'(_0x353984){const _0x208677=a49_0x4e5c75,_0x45b8eb=_0x353984[_0x208677(0x162)](_0x208677(0x156)),_0x5442c4=_0x353984[_0x208677(0x162)](_0x208677(0x164)),_0x52d876=_0x353984[_0x208677(0x150)]('verbose');if(_0x5442c4){const {dataset:_0x2b7b21,operation:_0x3e583e}=await getOperationDetail(_0x353984[_0x208677(0x14c)],_0x45b8eb,_0x5442c4);return{'ok':!![],'data':{'dataset':_0x2b7b21,'operation':_0x3e583e}};}const {dataset:_0x2cb8bc,operations:_0x228a86}=await getDatasetOperations(_0x45b8eb);return{'ok':!![],'data':{'dataset':_0x2cb8bc,'total':_0x228a86['length'],'operations':_0x52d876?_0x228a86:_0x228a86['map'](_0x58e498=>({'name':_0x58e498['name'],'displayName':_0x58e498[_0x208677(0x158)],'type':_0x58e498['type'],'method':_0x58e498[_0x208677(0x154)],'enabled':_0x58e498['enabled']}))}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x490042=a50_0x536d;(function(_0x5de1fd,_0x4621be){const _0x552e94=a50_0x536d,_0x56b8f6=_0x5de1fd();while(!![]){try{const _0x391693=parseInt(_0x552e94(0x1d2))/0x1*(parseInt(_0x552e94(0x1d0))/0x2)+parseInt(_0x552e94(0x1e6))/0x3*(-parseInt(_0x552e94(0x209))/0x4)+-parseInt(_0x552e94(0x20d))/0x5+parseInt(_0x552e94(0x1fa))/0x6*(parseInt(_0x552e94(0x1d6))/0x7)+-parseInt(_0x552e94(0x208))/0x8+-parseInt(_0x552e94(0x1c6))/0x9+parseInt(_0x552e94(0x1e4))/0xa*(parseInt(_0x552e94(0x1f3))/0xb);if(_0x391693===_0x4621be)break;else _0x56b8f6['push'](_0x56b8f6['shift']());}catch(_0x19eedb){_0x56b8f6['push'](_0x56b8f6['shift']());}}}(a50_0x68cc,0xc8eb0));import a50_0x323550 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a50_0x68cc(){const _0x10fc43=['unknown','(none)','869RlUGWp','(inherit)','\x20\x20Auth','empty','\x20\x20Merged\x20Config','yellow','locale','24vkQaCx','bold','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Expired','\x20\x20Config\x20Files','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20─','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','(no\x20file)','(missing)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','711232PiXyUm','1604636NwXoaY','(set\x20via\x20file,\x20length=','gray','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','7339155mUVUtB','\x20\x20Apps','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(default:\x20pretty)','9932958zTughI','status','riskLevel','✗\x20Invalid\x20JSON','keys','\x20\x20\x20\x20appcode:\x20\x20','message','doctor','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','2551502HvdnBF','missing','1XNbcfY','env','check','version','1844430SKxIuL','cookie','format','(not\x20found)','green','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','Global','currentApp','log','\x20doctor','\x20\x20\x20\x20cookie:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','298370VQzqwk','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9iEkuis','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','length','red','repeat','(set)','pageSize','✗\x20Not\x20logged\x20in','defaultApp','\x20(default)'];a50_0x68cc=function(){return _0x10fc43;};return a50_0x68cc();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a50_0x536d(_0x4e5c0f,_0x447080){_0x4e5c0f=_0x4e5c0f-0x1be;const _0x68cc87=a50_0x68cc();let _0x536d1d=_0x68cc87[_0x4e5c0f];return _0x536d1d;}import{getCookie}from'../auth/get-cookie.js';async function execute(_0xb424c){const _0x46ddab=a50_0x536d,_0x391378=GIT_COMMIT!==_0x46ddab(0x1f1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x27da63=buildConfigFromFlags({}),_0x87bfa2=getCookie();console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x1fb)](CLI_BIN_NAME+_0x46ddab(0x1df))),console['log'](a50_0x323550[_0x46ddab(0x20b)]('─'[_0x46ddab(0x1eb)](0x32))),console[_0x46ddab(0x1de)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x391378),console[_0x46ddab(0x1de)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x46ddab(0x1d5)]),console[_0x46ddab(0x1de)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x46ddab(0x1ff)]),console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x1fb)](_0x46ddab(0x1fe))),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x202)[_0x46ddab(0x1eb)](0x1e)));const _0x130eb4=getGlobalConfigPath(),_0x44b4c2=getProjectConfigPath();console[_0x46ddab(0x1de)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x130eb4||a50_0x323550[_0x46ddab(0x20b)]('(not\x20found)'))),console[_0x46ddab(0x1de)](_0x46ddab(0x1ce)+(_0x44b4c2||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1d9)))),console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550['bold'](_0x46ddab(0x1e8))),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x202)['repeat'](0x1e)));const _0x420f0e=(_0x464c1f,_0x59bef2)=>{const _0x4ab568=_0x46ddab;if(!_0x59bef2){console['log']('\x20\x20'+_0x464c1f['padEnd'](0x11)+'\x20'+a50_0x323550[_0x4ab568(0x20b)](_0x4ab568(0x205)));return;}const _0x29ae89=inspectCliConfigJsonFile(_0x59bef2);if(_0x29ae89[_0x4ab568(0x1c7)]==='ok')console['log']('\x20\x20'+_0x464c1f[_0x4ab568(0x201)](0x11)+'\x20'+a50_0x323550['green'](_0x4ab568(0x1e1)));else{if(_0x29ae89[_0x4ab568(0x1c7)]===_0x4ab568(0x1f6))console[_0x4ab568(0x1de)]('\x20\x20'+_0x464c1f['padEnd'](0x11)+'\x20'+a50_0x323550[_0x4ab568(0x1f8)](_0x4ab568(0x1fc)));else _0x29ae89[_0x4ab568(0x1c7)]===_0x4ab568(0x1d1)?console[_0x4ab568(0x1de)]('\x20\x20'+_0x464c1f['padEnd'](0x11)+'\x20'+a50_0x323550['gray'](_0x4ab568(0x206))):(console[_0x4ab568(0x1de)]('\x20\x20'+_0x464c1f[_0x4ab568(0x201)](0x11)+'\x20'+a50_0x323550[_0x4ab568(0x1ea)](_0x4ab568(0x1c9))),console[_0x4ab568(0x1de)]('\x20\x20'+''[_0x4ab568(0x201)](0x11)+'\x20'+a50_0x323550[_0x4ab568(0x1ea)](_0x29ae89[_0x4ab568(0x1cc)])));}};_0x420f0e(_0x46ddab(0x1dc),_0x130eb4),_0x420f0e('Project',_0x44b4c2),console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x1fb)](_0x46ddab(0x1f7))),console[_0x46ddab(0x1de)](a50_0x323550['gray']('\x20\x20─'[_0x46ddab(0x1eb)](0x1e))),console[_0x46ddab(0x1de)](_0x46ddab(0x1c1)+(_0x27da63['appCode']||a50_0x323550[_0x46ddab(0x1ea)]('(not\x20set)'))),console[_0x46ddab(0x1de)](_0x46ddab(0x1e5)+_0x27da63[_0x46ddab(0x1d3)]),console[_0x46ddab(0x1de)](_0x46ddab(0x200)+_0x27da63[_0x46ddab(0x1f9)]),console[_0x46ddab(0x1de)](_0x46ddab(0x20c)+_0x27da63['apiDir']),console['log'](_0x46ddab(0x1c4)+(_0x27da63[_0x46ddab(0x1ef)]||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f2)))),console[_0x46ddab(0x1de)](_0x46ddab(0x1c0)+(_0x27da63[_0x46ddab(0x1dd)]||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f2)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x27da63['explicitAppName']||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f2)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x27da63[_0x46ddab(0x1d8)]||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1c5)))),console[_0x46ddab(0x1de)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x27da63[_0x46ddab(0x1ed)]??a50_0x323550[_0x46ddab(0x20b)]('(default)'))),console[_0x46ddab(0x1de)](_0x46ddab(0x1c2)+_0x27da63[_0x46ddab(0x1c8)]),console[_0x46ddab(0x1de)](_0x46ddab(0x203)+_0x27da63['verbose']),console[_0x46ddab(0x1de)](_0x46ddab(0x207)+(_0x27da63[_0x46ddab(0x1d7)]?a50_0x323550[_0x46ddab(0x1da)]('(set,\x20length='+_0x27da63[_0x46ddab(0x1d7)][_0x46ddab(0x1e9)]+')'):_0x87bfa2?a50_0x323550[_0x46ddab(0x1da)](_0x46ddab(0x20a)+_0x87bfa2[_0x46ddab(0x1e9)]+')'):a50_0x323550[_0x46ddab(0x20b)]('(none)')));const _0x1b405a=Object[_0x46ddab(0x1ca)](_0x27da63[_0x46ddab(0x204)]);if(_0x1b405a[_0x46ddab(0x1e9)]>0x0){console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x1fb)](_0x46ddab(0x20e))),console['log'](a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x202)[_0x46ddab(0x1eb)](0x1e)));for(const _0x360642 of _0x1b405a){const _0x419452=_0x27da63[_0x46ddab(0x204)][_0x360642],_0x4eb49d=_0x360642===_0x27da63['defaultApp'],_0x5c8535=_0x360642===_0x27da63['currentApp'],_0x54d460=_0x5c8535?a50_0x323550[_0x46ddab(0x1da)](_0x46ddab(0x1bf)):'',_0x1fddce=_0x4eb49d?_0x46ddab(0x1f0):'';console[_0x46ddab(0x1de)]('\x20\x20'+_0x360642+_0x1fddce+_0x54d460),console[_0x46ddab(0x1de)](_0x46ddab(0x1cb)+_0x419452['appcode']),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x419452[_0x46ddab(0x1d3)]||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f4)))),console[_0x46ddab(0x1de)](_0x46ddab(0x1c3)+(_0x419452['apiDir']||a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f4)))),console[_0x46ddab(0x1de)](_0x46ddab(0x1e0)+(_0x419452[_0x46ddab(0x1d7)]?a50_0x323550['green'](_0x46ddab(0x1ec)):a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x1f4))));}}console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550['bold'](_0x46ddab(0x1e7))),console[_0x46ddab(0x1de)](a50_0x323550[_0x46ddab(0x20b)](_0x46ddab(0x202)[_0x46ddab(0x1eb)](0x1e))),console[_0x46ddab(0x1de)](_0x46ddab(0x1be)+getApiDomain()),console['log'](_0x46ddab(0x1db)+getUserDomain()),console[_0x46ddab(0x1de)](_0x46ddab(0x1e2)+getRuntimeDomain()),console[_0x46ddab(0x1de)](),console[_0x46ddab(0x1de)](a50_0x323550['bold'](_0x46ddab(0x1f5))),console[_0x46ddab(0x1de)](a50_0x323550['gray']('\x20\x20─'[_0x46ddab(0x1eb)](0x1e)));if(_0x87bfa2){const _0x5036e7=await getIsSessionValid();console['log'](_0x46ddab(0x1e3)+(_0x5036e7?a50_0x323550[_0x46ddab(0x1da)]('✓\x20Valid'):a50_0x323550[_0x46ddab(0x1ea)](_0x46ddab(0x1fd))));}else console['log'](_0x46ddab(0x1e3)+a50_0x323550['red'](_0x46ddab(0x1ee)));return console[_0x46ddab(0x1de)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x490042(0x1cd),'command':a50_0x490042(0x1d4),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a50_0x490042(0x1cf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|