@lovrabet/rabetbase-cli 2.0.11 → 2.0.13
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/pull.js +1 -0
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -0
- 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_0x49dd94=a33_0x4b5b;(function(_0x3eb1e2,_0x138da7){const _0x15cc48=a33_0x4b5b,_0x62fa79=_0x3eb1e2();while(!![]){try{const _0x2e26fb=parseInt(_0x15cc48(0x1d0))/0x1+parseInt(_0x15cc48(0x1d7))/0x2+parseInt(_0x15cc48(0x1d1))/0x3+-parseInt(_0x15cc48(0x1db))/0x4*(-parseInt(_0x15cc48(0x1cc))/0x5)+-parseInt(_0x15cc48(0x1bb))/0x6*(-parseInt(_0x15cc48(0x1be))/0x7)+parseInt(_0x15cc48(0x1e4))/0x8+-parseInt(_0x15cc48(0x1b9))/0x9*(parseInt(_0x15cc48(0x1cb))/0xa);if(_0x2e26fb===_0x138da7)break;else _0x62fa79['push'](_0x62fa79['shift']());}catch(_0xb90c0f){_0x62fa79['push'](_0x62fa79['shift']());}}}(a33_0x31c0,0x77dff));function a33_0x4b5b(_0x43a03c,_0x1e3511){_0x43a03c=_0x43a03c-0x1b5;const _0x31c0d2=a33_0x31c0();let _0x4b5b89=_0x31c0d2[_0x43a03c];return _0x4b5b89;}import a33_0x2f494c from'chalk';import a33_0x3e5284 from'ora';import a33_0x43b2f4 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';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_0x31c0(){const _0x575dab=['yellow','/latest','27998150egqySD','4528155BHaKyz','succeed','stableVersion','...','968599sYdlGd','1427046KngODN','slice','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','red','start','\x20install\x20-g\x20','567874pIeXVf','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed','install','4xpmkcm','Unable\x20to\x20check\x20for\x20updates','message','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Checking\x20for\x20updates...','https://registry.npmjs.org/','Updated\x20to\x20v','green','info','3609040OUetFo','gray','coerce','@latest','bun','fail','9ohJRVA','includes','112278VVRais','toLowerCase','write','77Vlcnah','run','execPath','Updating\x20via\x20','npm','pipe','json','timeout','log','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Update\x20failed'];a33_0x31c0=function(){return _0x575dab;};return a33_0x31c0();}function getCurrentVersion(){const _0x50eb76=a33_0x4b5b;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x50eb76(0x1d2)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xda850=a33_0x4b5b,_0x3d44a7=process[_0xda850(0x1c0)][_0xda850(0x1bc)]();if(_0x3d44a7[_0xda850(0x1ba)](_0xda850(0x1b7)))return _0xda850(0x1b7);return _0xda850(0x1c2);}async function fetchLatestNpmVersion(){const _0x1544e9=a33_0x4b5b;try{const _0x56c22c=await fetch(_0x1544e9(0x1e0)+NPM_PACKAGE_NAME+_0x1544e9(0x1ca),{'signal':AbortSignal[_0x1544e9(0x1c5)](0x2710)});if(!_0x56c22c['ok'])return null;const _0x53b6de=await _0x56c22c[_0x1544e9(0x1c4)]();return _0x53b6de['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x30ee5b=a33_0x4b5b,_0x176035=await fetchLatestNpmVersion();if(_0x176035)return _0x176035;const _0x59f4bf=await getCdnConfig();return _0x59f4bf?.['cli']?.[_0x30ee5b(0x1ce)]??null;}async function execute(_0x3f06bf){const _0x5c1220=a33_0x4b5b,_0x429ffe=getCurrentVersion();console[_0x5c1220(0x1c6)]('Current\x20version:\x20'+_0x429ffe);const _0x1132ec=a33_0x3e5284(_0x5c1220(0x1df))['start'](),_0x41c916=await fetchLatestVersion();if(!_0x41c916)return _0x1132ec[_0x5c1220(0x1b8)](_0x5c1220(0x1d3)),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1c7)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x5c1220(0x1dc)};const _0x27667b=a33_0x43b2f4[_0x5c1220(0x1b5)](_0x429ffe),_0x29454f=a33_0x43b2f4['coerce'](_0x41c916);if(!_0x27667b||!_0x29454f)return _0x1132ec[_0x5c1220(0x1b8)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x5c1220(0x1d9)};if(!a33_0x43b2f4['lt'](_0x27667b,_0x29454f))return _0x1132ec[_0x5c1220(0x1cd)]('Already\x20up\x20to\x20date\x20(v'+_0x41c916+')'),{'ok':!![]};_0x1132ec[_0x5c1220(0x1e3)]('Update\x20available:\x20'+a33_0x2f494c[_0x5c1220(0x1c9)](_0x429ffe)+'\x20→\x20'+a33_0x2f494c[_0x5c1220(0x1e2)](_0x41c916));const _0x39d346=detectPackageManager(),_0x12d160=_0x39d346===_0x5c1220(0x1c2)?resolveNpmBin(_0x5c1220(0x1c2)):_0x39d346,_0x3920f0=a33_0x3e5284(_0x5c1220(0x1c1)+_0x39d346+_0x5c1220(0x1cf))[_0x5c1220(0x1d5)]();try{return await execa(_0x12d160,[_0x5c1220(0x1da),'-g',NPM_PACKAGE_NAME+_0x5c1220(0x1b6)],{'stdio':_0x5c1220(0x1c3)}),_0x3920f0['succeed'](_0x5c1220(0x1e1)+_0x41c916),console['log'](a33_0x2f494c[_0x5c1220(0x1e5)](_0x5c1220(0x1d8))),{'ok':!![]};}catch(_0x5e9e61){return _0x3920f0[_0x5c1220(0x1b8)](_0x5c1220(0x1c8)),console['error'](a33_0x2f494c[_0x5c1220(0x1d4)]('\x20\x20'+_0x5e9e61['message'])),console[_0x5c1220(0x1c6)](a33_0x2f494c[_0x5c1220(0x1e5)]('\x20\x20Try\x20manually:\x20'+_0x39d346+_0x5c1220(0x1d6)+NPM_PACKAGE_NAME+_0x5c1220(0x1b6))),{'ok':![],'message':_0x5e9e61[_0x5c1220(0x1dd)]};}}export const updateDefinition={'service':'update','command':a33_0x49dd94(0x1bf),'description':a33_0x49dd94(0x1de),'risk':a33_0x49dd94(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19974f,_0x37a631){const _0x43c572=a34_0x2bd3,_0x54c5a6=_0x19974f();while(!![]){try{const _0x4a83b6=-parseInt(_0x43c572(0x73))/0x1*(parseInt(_0x43c572(0x72))/0x2)+-parseInt(_0x43c572(0x6d))/0x3*(-parseInt(_0x43c572(0x6c))/0x4)+-parseInt(_0x43c572(0x6e))/0x5+-parseInt(_0x43c572(0x75))/0x6+-parseInt(_0x43c572(0x71))/0x7+-parseInt(_0x43c572(0x6f))/0x8*(parseInt(_0x43c572(0x6b))/0x9)+-parseInt(_0x43c572(0x74))/0xa*(-parseInt(_0x43c572(0x70))/0xb);if(_0x4a83b6===_0x37a631)break;else _0x54c5a6['push'](_0x54c5a6['shift']());}catch(_0x59fa4d){_0x54c5a6['push'](_0x54c5a6['shift']());}}}(a34_0x2312,0x50ae0));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x2bd3(_0x790a7,_0x6a7929){_0x790a7=_0x790a7-0x6b;const _0x231292=a34_0x2312();let _0x2bd398=_0x231292[_0x790a7];return _0x2bd398;}import{codegenSql}from'../../commands/codegen/sql.js';function a34_0x2312(){const _0x3c4e39=['343300oDeHRp','1083600XqIXZx','1541223xwCPyu','196yQMrza','3231lgJhYC','253245MUDjuk','16RhAYmu','583OjjwOX','4242063NYBJbw','103442cVUifI','7qkUcFI'];a34_0x2312=function(){return _0x3c4e39;};return a34_0x2312();}export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a35_0x44e71c=a35_0xafe6;(function(_0x8c667,_0x3d8cec){const _0x372e73=a35_0xafe6,_0x44c295=_0x8c667();while(!![]){try{const _0x4c8b1c=-parseInt(_0x372e73(0xb3))/0x1*(parseInt(_0x372e73(0xae))/0x2)+-parseInt(_0x372e73(0xad))/0x3+-parseInt(_0x372e73(0xaa))/0x4+-parseInt(_0x372e73(0xa4))/0x5*(-parseInt(_0x372e73(0xa8))/0x6)+parseInt(_0x372e73(0xa6))/0x7*(-parseInt(_0x372e73(0x9e))/0x8)+-parseInt(_0x372e73(0x9c))/0x9*(-parseInt(_0x372e73(0xab))/0xa)+parseInt(_0x372e73(0xb0))/0xb;if(_0x4c8b1c===_0x3d8cec)break;else _0x44c295['push'](_0x44c295['shift']());}catch(_0x12b05b){_0x44c295['push'](_0x44c295['shift']());}}}(a35_0x9d25,0x44b54));function a35_0x9d25(){const _0x2a92c7=['13698ShLJTv','appCode','3779435vQOMNn','read','boolean','9TyxBDR','alias','bool','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','31536tAIGuE','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','3271448nVMxrF','operation','sdk','Omit\x20import\x20statements\x20from\x20generated\x20code','string','skip-imports','8365xryjYh','str','7upbrNC','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1974kIIxqF','code','519668tQbnTJ','1110kYkznv','name','1203087hhxzIM'];a35_0x9d25=function(){return _0x2a92c7;};return a35_0x9d25();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a35_0xafe6(_0x3b9002,_0x1e6bf8){_0x3b9002=_0x3b9002-0x9a;const _0x9d25d7=a35_0x9d25();let _0xafe6b3=_0x9d25d7[_0x3b9002];return _0xafe6b3;}export const codegenSdk={'service':'codegen','command':a35_0x44e71c(0xa0),'description':a35_0x44e71c(0x9d),'risk':a35_0x44e71c(0xb1),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x44e71c(0xb4),'type':a35_0x44e71c(0xa2),'description':a35_0x44e71c(0x9b)},{'name':a35_0x44e71c(0x9f),'type':a35_0x44e71c(0xa2),'required':!![],'description':a35_0x44e71c(0xa7)},{'name':'skip-imports','type':a35_0x44e71c(0xb2),'description':a35_0x44e71c(0xa1)}],async 'execute'(_0x29d1f){const _0x54b44b=a35_0x44e71c,{dataset:_0x1bb10b,operation:_0x27507d}=await getOperationDetail(_0x29d1f[_0x54b44b(0xaf)],_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0xa9)),_0x29d1f[_0x54b44b(0xa5)]('operation')),_0x477b8d=generateSdkCode(_0x1bb10b,_0x27507d,{'includeImports':!_0x29d1f[_0x54b44b(0x9a)](_0x54b44b(0xa3))});return{'ok':!![],'data':{'dataset':{'name':_0x1bb10b[_0x54b44b(0xac)],'code':_0x1bb10b['code'],'tableName':_0x1bb10b['tableName']},'operation':_0x29d1f[_0x54b44b(0xa5)](_0x54b44b(0x9f)),'code':_0x477b8d}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x2e352b=a36_0x3205;(function(_0x2857e4,_0x329942){const _0x5be661=a36_0x3205,_0x345ff7=_0x2857e4();while(!![]){try{const _0x51160d=parseInt(_0x5be661(0x9f))/0x1+-parseInt(_0x5be661(0xa4))/0x2+-parseInt(_0x5be661(0x9c))/0x3+-parseInt(_0x5be661(0x9b))/0x4+parseInt(_0x5be661(0xac))/0x5+-parseInt(_0x5be661(0xa0))/0x6+-parseInt(_0x5be661(0xa9))/0x7*(-parseInt(_0x5be661(0x9d))/0x8);if(_0x51160d===_0x329942)break;else _0x345ff7['push'](_0x345ff7['shift']());}catch(_0x48ee42){_0x345ff7['push'](_0x345ff7['shift']());}}}(a36_0x16ab,0x9d8de));function a36_0x3205(_0x2eeb22,_0x5d359a){_0x2eeb22=_0x2eeb22-0x9a;const _0x16ab3b=a36_0x16ab();let _0x3205f4=_0x16ab3b[_0x2eeb22];return _0x3205f4;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a36_0x16ab(){const _0x530bbd=['162016hhykEB','2491896IJYOnj','24hVmPFT','sqlCode','1061571PLhGyw','4908606zPMNLd','read','sdk','sql','1196140VLcYSB','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','string','sqlcode','3619637yPzMwf','codegen','str','1599025zzLLvo','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','Omit\x20import\x20statements\x20from\x20generated\x20code'];a36_0x16ab=function(){return _0x530bbd;};return a36_0x16ab();}export const codegenSql={'service':a36_0x2e352b(0xaa),'command':a36_0x2e352b(0xa3),'description':a36_0x2e352b(0xad),'risk':a36_0x2e352b(0xa1),'flags':[SQLCODE_FLAG,{'name':'target','type':a36_0x2e352b(0xa7),'description':a36_0x2e352b(0xa6),'default':'sdk','enum':['sdk','bff']},{'name':'no-imports','type':'boolean','description':a36_0x2e352b(0x9a)}],async 'execute'(_0x3cac8c){const _0x5823cc=a36_0x2e352b,_0x1f89b7=await getSqlQueryInfo(_0x3cac8c['appCode'],_0x3cac8c[_0x5823cc(0xab)](_0x5823cc(0xa8))),_0x18ba16=_0x3cac8c['str'](_0x5823cc(0xa5))||_0x5823cc(0xa2),_0x4ef187=generateSqlCodeTemplate(_0x1f89b7,{'target':_0x18ba16,'includeImports':!_0x3cac8c['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x1f89b7[_0x5823cc(0x9e)],'sqlName':_0x1f89b7['sqlName'],'target':_0x18ba16,'code':_0x4ef187}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31eddc,_0x92962e){const _0x1e3367=a37_0x5aa7,_0x5e02ad=_0x31eddc();while(!![]){try{const _0x543476=-parseInt(_0x1e3367(0x1ac))/0x1+parseInt(_0x1e3367(0x19d))/0x2*(parseInt(_0x1e3367(0x198))/0x3)+-parseInt(_0x1e3367(0x1a8))/0x4*(-parseInt(_0x1e3367(0x1ad))/0x5)+-parseInt(_0x1e3367(0x1a5))/0x6+-parseInt(_0x1e3367(0x1b6))/0x7*(parseInt(_0x1e3367(0x197))/0x8)+-parseInt(_0x1e3367(0x1a0))/0x9+parseInt(_0x1e3367(0x1a4))/0xa;if(_0x543476===_0x92962e)break;else _0x5e02ad['push'](_0x5e02ad['shift']());}catch(_0x4b2b92){_0x5e02ad['push'](_0x5e02ad['shift']());}}}(a37_0x5460,0x8640e));function a37_0x5aa7(_0x4c94db,_0x42dcf0){_0x4c94db=_0x4c94db-0x194;const _0x54606c=a37_0x5460();let _0x5aa7dd=_0x54606c[_0x4c94db];return _0x5aa7dd;}import{input,checkbox,select}from'@inquirer/prompts';import a37_0x1fc9b8 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 _0x50f339=a37_0x5aa7,_0x5cb518=await input({'message':_0x50f339(0x195),'validate':_0xda241e=>{const _0x7ca1fd=_0x50f339,_0x71d2e3=validateAppcode(_0xda241e['trim']());return _0x71d2e3[_0x7ca1fd(0x1a9)]||_0x71d2e3['message']||'Invalid\x20App\x20Code';}});return _0x5cb518[_0x50f339(0x194)]();}export async function promptAppSelection(_0x2508e3){const _0x328407=a37_0x5aa7,_0x1b3009=[{'name':a37_0x1fc9b8['yellow'](_0x328407(0x1aa)),'value':-0x1},..._0x2508e3[_0x328407(0x1a7)]((_0x46b33f,_0x4deefe)=>({'name':_0x46b33f[_0x328407(0x1b1)]+'\x20\x20'+a37_0x1fc9b8[_0x328407(0x1ae)]('('+_0x46b33f[_0x328407(0x1b5)]+')'),'value':_0x4deefe}))],_0x4c512c=await checkbox({'message':_0x328407(0x1ab)+a37_0x1fc9b8[_0x328407(0x1a1)](_0x2508e3[_0x328407(0x1a6)])+_0x328407(0x19a),'choices':_0x1b3009,'loop':![]});if(_0x4c512c[_0x328407(0x1b4)](-0x1))return'custom';if(_0x4c512c[_0x328407(0x1a6)]===0x0)return _0x328407(0x1b3);return _0x4c512c[_0x328407(0x1a7)](_0x39ed94=>_0x2508e3[_0x39ed94]);}function a37_0x5460(){const _0x58dab5=['trim','请输入\x20App\x20Code:','✎\x20手动输入','8402144zEgwRG','3fXEdDt','\x0a无法获取远程应用列表,请手动输入。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','无法获取远程应用列表,请手动输入。','yellow','1647394YtraRR','(跳过,稍后配置)','manual','4649859IWRIIT','cyan','skip','正在获取可用应用列表...','11456280Qmirdq','4027104KXcSar','length','map','8RVtuzL','valid','✎\x20自定义输入\x20appcode','获取到\x20','232028ANudHP','2626770eOGeCt','gray','\x0a未找到可用应用。','\x20\x20(','appName','log','custom','includes','appCode','7DXpZFg'];a37_0x5460=function(){return _0x58dab5;};return a37_0x5460();}export async function promptSingleAppSelection(_0x4eee34){const _0x39c080=a37_0x5aa7,_0x452fa6=[{'name':a37_0x1fc9b8[_0x39c080(0x1ae)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x39c080(0x1a2)},{'name':a37_0x1fc9b8['yellow'](_0x39c080(0x1aa)),'value':'custom'},..._0x4eee34[_0x39c080(0x1a7)](_0x30da68=>({'name':_0x30da68[_0x39c080(0x1b1)]+'\x20\x20'+a37_0x1fc9b8['gray']('('+_0x30da68[_0x39c080(0x1b5)]+')'),'value':_0x30da68[_0x39c080(0x1b5)]}))],_0xe02af8=await select({'message':'请选择要绑定的应用:','choices':_0x452fa6});if(_0xe02af8===_0x39c080(0x1a2))return _0x39c080(0x1a2);if(_0xe02af8==='custom')return _0x39c080(0x1b3);return _0x4eee34['find'](_0x5d787f=>_0x5d787f[_0x39c080(0x1b5)]===_0xe02af8);}export async function selectSingleAppcode(_0x26d0b4){const _0x1a75f8=a37_0x5aa7;if(!_0x26d0b4)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['gray']('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x1a75f8(0x1b2)](_0x1a75f8(0x1a3));let _0x3a3e3e;try{_0x3a3e3e=await withActiveCookie(_0x26d0b4,()=>listRemoteApps());}catch(_0x4b6d8c){console[_0x1a75f8(0x1b2)](a37_0x1fc9b8[_0x1a75f8(0x19c)](_0x1a75f8(0x19b)));if(_0x4b6d8c instanceof Error)console['log'](a37_0x1fc9b8[_0x1a75f8(0x1ae)](_0x1a75f8(0x1b0)+_0x4b6d8c['message']+')'));return _fallbackOrSkip();}if(_0x3a3e3e[_0x1a75f8(0x1a6)]===0x0)return console[_0x1a75f8(0x1b2)](a37_0x1fc9b8['yellow']('未找到可用应用。')),_fallbackOrSkip();const _0x232951=await promptSingleAppSelection(_0x3a3e3e);if(_0x232951===_0x1a75f8(0x1a2))return'';if(_0x232951===_0x1a75f8(0x1b3))return promptCustomAppcode();return _0x232951[_0x1a75f8(0x1b5)];}export async function selectMultipleApps(_0x50c665){const _0x4a1a92=a37_0x5aa7;console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1a3));let _0x58d30f;try{_0x58d30f=await withActiveCookie(_0x50c665,()=>listRemoteApps());}catch(_0x3f3a5e){console[_0x4a1a92(0x1b2)](_0x4a1a92(0x199));if(_0x3f3a5e instanceof Error)console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1b0)+_0x3f3a5e['message']+')');return _0x4a1a92(0x1b3);}if(_0x58d30f['length']===0x0)return console[_0x4a1a92(0x1b2)](_0x4a1a92(0x1af)),_0x4a1a92(0x1b3);return promptAppSelection(_0x58d30f);}async function _fallbackOrSkip(){const _0x2c0418=a37_0x5aa7,_0x4c9684=await select({'message':'App\x20Code:','choices':[{'name':a37_0x1fc9b8[_0x2c0418(0x1ae)](_0x2c0418(0x19e)),'value':'skip'},{'name':a37_0x1fc9b8[_0x2c0418(0x19c)](_0x2c0418(0x196)),'value':_0x2c0418(0x19f)}]});if(_0x4c9684==='skip')return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x9a5c6b=a38_0x1474;function a38_0xfb56(){const _0x4f9a9a=['4858495jQOgMV','7204414BhrOBS','530376pMItUG','sqlcode','755754QFmYJj','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','3006651nGfNaE','appcode','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','4222696neZGBA','1378122XTlXVr','8sGdehz'];a38_0xfb56=function(){return _0x4f9a9a;};return a38_0xfb56();}(function(_0x3ff5c9,_0x1631a9){const _0xfffb38=a38_0x1474,_0x2f133e=_0x3ff5c9();while(!![]){try{const _0x3d90a7=-parseInt(_0xfffb38(0xad))/0x1+-parseInt(_0xfffb38(0xa7))/0x2+-parseInt(_0xfffb38(0xb0))/0x3+parseInt(_0xfffb38(0xa6))/0x4+parseInt(_0xfffb38(0xa9))/0x5+parseInt(_0xfffb38(0xab))/0x6+parseInt(_0xfffb38(0xaa))/0x7*(parseInt(_0xfffb38(0xa8))/0x8);if(_0x3d90a7===_0x1631a9)break;else _0x2f133e['push'](_0x2f133e['shift']());}catch(_0xa86809){_0x2f133e['push'](_0x2f133e['shift']());}}}(a38_0xfb56,0xaa653));export const CODE_FLAG={'name':a38_0x9a5c6b(0xa3),'type':'string','required':!![],'description':a38_0x9a5c6b(0xa2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x9a5c6b(0xa4)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x9a5c6b(0xac),'type':a38_0x9a5c6b(0xa1),'required':!![],'description':a38_0x9a5c6b(0xae),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x9a5c6b(0xa5)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x9a5c6b(0xb1),'type':a38_0x9a5c6b(0xa1),'required':![],'description':a38_0x9a5c6b(0xaf)};function a38_0x1474(_0x51c8b2,_0x43b042){_0x51c8b2=_0x51c8b2-0xa1;const _0xfb56d5=a38_0xfb56();let _0x14745c=_0xfb56d5[_0x51c8b2];return _0x14745c;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39_0x15e8(_0x38d2ae,_0x249ff8){_0x38d2ae=_0x38d2ae-0x154;const _0x582752=a39_0x5827();let _0x15e893=_0x582752[_0x38d2ae];return _0x15e893;}(function(_0xc1aed,_0x455214){const _0x2eb2a9=a39_0x15e8,_0x5c0515=_0xc1aed();while(!![]){try{const _0x12a13d=-parseInt(_0x2eb2a9(0x159))/0x1+-parseInt(_0x2eb2a9(0x156))/0x2+parseInt(_0x2eb2a9(0x15d))/0x3*(parseInt(_0x2eb2a9(0x15e))/0x4)+-parseInt(_0x2eb2a9(0x154))/0x5+-parseInt(_0x2eb2a9(0x15a))/0x6*(-parseInt(_0x2eb2a9(0x15c))/0x7)+parseInt(_0x2eb2a9(0x15f))/0x8+-parseInt(_0x2eb2a9(0x15b))/0x9;if(_0x12a13d===_0x455214)break;else _0x5c0515['push'](_0x5c0515['shift']());}catch(_0x3d4de2){_0x5c0515['push'](_0x5c0515['shift']());}}}(a39_0x5827,0x8b989));export function validateAppcode(_0x53dfc2){const _0x37025a=a39_0x15e8,_0x17c277=_0x53dfc2[_0x37025a(0x155)]();if(!_0x17c277)return{'valid':![],'message':_0x37025a(0x157)};if(_0x17c277['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x37025a(0x158)](_0x17c277))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a39_0x5827(){const _0x11fe42=['test','1114889TWPPyJ','978KbmoTy','196470pRuRQn','44779QALAbB','3yEHUWb','2382076WcfldY','3161000pflpXc','1501100UdNQCQ','trim','49262HnEZLM','App\x20Code\x20cannot\x20be\x20empty'];a39_0x5827=function(){return _0x11fe42;};return a39_0x5827();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40_0x1f2baa=a40_0x5ace;(function(_0x4af94b,_0xbe6af2){const _0x954128=a40_0x5ace,_0x1e0255=_0x4af94b();while(!![]){try{const _0x3640a2=parseInt(_0x954128(0x8e))/0x1+parseInt(_0x954128(0x97))/0x2+-parseInt(_0x954128(0x93))/0x3+parseInt(_0x954128(0x89))/0x4+parseInt(_0x954128(0x88))/0x5+parseInt(_0x954128(0x8c))/0x6+-parseInt(_0x954128(0x98))/0x7*(parseInt(_0x954128(0x8a))/0x8);if(_0x3640a2===_0xbe6af2)break;else _0x1e0255['push'](_0x1e0255['shift']());}catch(_0x205846){_0x1e0255['push'](_0x1e0255['shift']());}}}(a40_0x1757,0x8fd24));function a40_0x1757(){const _0x2cec92=['5255394aqoVWA','read','922746peSIIh','key','\x20config\x20get\x20--key\x20<key>','object','str','1034052FlYdQq','app','Key\x20not\x20found:\x20','appcode','394310rmRPHw','2023Bvsinl','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','Config\x20key\x20to\x20read','validation','config','943660UpSUyu','124992uYXryL','35488BQaoMm','get'];a40_0x1757=function(){return _0x2cec92;};return a40_0x1757();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x5ace(_0x60845f,_0x511cba){_0x60845f=_0x60845f-0x86;const _0x17577d=a40_0x1757();let _0x5ace48=_0x17577d[_0x60845f];return _0x5ace48;}async function execute(_0x3ada1d){const _0x37bec1=a40_0x5ace,_0x3223ea=_0x3ada1d[_0x37bec1(0x92)](_0x37bec1(0x8f));if(!_0x3223ea)throw CliErrors['validation'](_0x37bec1(0x9a),'Usage:\x20'+CLI_BIN_NAME+_0x37bec1(0x90));const _0x1c790a=readConfig(),_0x34a593=_0x3223ea===_0x37bec1(0x94)?_0x37bec1(0x96):_0x3223ea,_0x3d48a9=_0x1c790a[_0x34a593];if(_0x3d48a9===undefined)throw CliErrors[_0x37bec1(0x86)](_0x37bec1(0x95)+_0x3223ea);return{'ok':!![],'data':typeof _0x3d48a9===_0x37bec1(0x91)?_0x3d48a9:{[_0x34a593]:_0x3d48a9},'message':typeof _0x3d48a9===_0x37bec1(0x91)?undefined:String(_0x3d48a9)};}export const configGetDefinition={'service':a40_0x1f2baa(0x87),'command':a40_0x1f2baa(0x8b),'description':a40_0x1f2baa(0x99),'risk':a40_0x1f2baa(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f2baa(0x8f),'type':'string','description':a40_0x1f2baa(0x9b),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x760c4d,_0x348f54){const _0x41627b=a41_0x5b36,_0x5c473b=_0x760c4d();while(!![]){try{const _0x3f508a=-parseInt(_0x41627b(0x10e))/0x1*(-parseInt(_0x41627b(0x111))/0x2)+-parseInt(_0x41627b(0x115))/0x3*(parseInt(_0x41627b(0x10b))/0x4)+-parseInt(_0x41627b(0x10f))/0x5+parseInt(_0x41627b(0x113))/0x6*(-parseInt(_0x41627b(0x110))/0x7)+-parseInt(_0x41627b(0x10c))/0x8+-parseInt(_0x41627b(0x114))/0x9*(-parseInt(_0x41627b(0x10d))/0xa)+parseInt(_0x41627b(0x112))/0xb*(parseInt(_0x41627b(0x116))/0xc);if(_0x3f508a===_0x348f54)break;else _0x5c473b['push'](_0x5c473b['shift']());}catch(_0x422bda){_0x5c473b['push'](_0x5c473b['shift']());}}}(a41_0x219d,0xc3c40));function a41_0x5b36(_0x1e1e70,_0x513a66){_0x1e1e70=_0x1e1e70-0x10b;const _0x219d0e=a41_0x219d();let _0x5b36b5=_0x219d0e[_0x1e1e70];return _0x5b36b5;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x219d(){const _0x397571=['242HSGkXy','6qtuNPA','2685141kyxsTl','60DZSuuO','1794624TqGbDw','46964XZLgCE','9967224qntLju','20chlMAX','2NNGgQd','5664605ssDVXT','4488162WiJSZl','169824rkcCCl'];a41_0x219d=function(){return _0x397571;};return a41_0x219d();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a42_0x628a10=a42_0x5d55;(function(_0x3ab4fc,_0x906207){const _0x4364d7=a42_0x5d55,_0x4f935b=_0x3ab4fc();while(!![]){try{const _0x35e068=parseInt(_0x4364d7(0x199))/0x1*(-parseInt(_0x4364d7(0x1a5))/0x2)+parseInt(_0x4364d7(0x1aa))/0x3+-parseInt(_0x4364d7(0x1a2))/0x4*(parseInt(_0x4364d7(0x19e))/0x5)+parseInt(_0x4364d7(0x19a))/0x6*(-parseInt(_0x4364d7(0x1a1))/0x7)+-parseInt(_0x4364d7(0x1a7))/0x8*(parseInt(_0x4364d7(0x19f))/0x9)+-parseInt(_0x4364d7(0x1a8))/0xa+-parseInt(_0x4364d7(0x19c))/0xb*(-parseInt(_0x4364d7(0x1a3))/0xc);if(_0x35e068===_0x906207)break;else _0x4f935b['push'](_0x4f935b['shift']());}catch(_0x22a53c){_0x4f935b['push'](_0x4f935b['shift']());}}}(a42_0x1764,0x9f28f));function a42_0x5d55(_0x2c593d,_0x20fb55){_0x2c593d=_0x2c593d-0x199;const _0x1764a4=a42_0x1764();let _0x5d55ce=_0x1764a4[_0x2c593d];return _0x5d55ce;}import{readScopedConfig}from'../../commands/config/shared.js';function a42_0x1764(){const _0x4ca947=['109299DBOzKH','1aLrLPk','558tGSQZt','config','39998992MQHhpT','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','310reLeFy','5436ylwlWW','List\x20all\x20config\x20values','34538KlnJeX','28592GHYNrV','12AxmoHI','read','1663342eipXeI','bool','9104iUafwX','5997250LbNvne','global'];a42_0x1764=function(){return _0x4ca947;};return a42_0x1764();}import{readConfig}from'../../utils/config.js';async function execute(_0x4a2ac0){const _0x528549=a42_0x5d55,_0x187321=_0x4a2ac0[_0x528549(0x1a6)](_0x528549(0x1a9))?readScopedConfig(_0x528549(0x1a9)):readConfig();return{'ok':!![],'data':_0x187321};}export const configListDefinition={'service':a42_0x628a10(0x19b),'command':'list','description':a42_0x628a10(0x1a0),'risk':a42_0x628a10(0x1a4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x628a10(0x1a9),'type':'boolean','description':a42_0x628a10(0x19d),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a43_0xa603(){const _0x5731f5=['app','production','bool','2072492foNkVm','Missing\x20value.','write','218383MdcBiC','value','\x20set\x20to:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','12000456arrtVJ','Usage:\x20','boolean','env','global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','online','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','1443862ZXbKjS','196102onICLE','length','Config\x20value','string','str','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','3195684nzJofB','726774nyAvYZ','Missing\x20key.','440relbBq','set','locale','33JEOblF','key','daily','appcode','config','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','14jJOMTZ','5UOkANk'];a43_0xa603=function(){return _0x5731f5;};return a43_0xa603();}const a43_0x315a50=a43_0xc5e4;(function(_0x388335,_0x52baef){const _0xbfa94=a43_0xc5e4,_0x11b0d9=_0x388335();while(!![]){try{const _0x568e1d=-parseInt(_0xbfa94(0x1e1))/0x1+parseInt(_0xbfa94(0x1e2))/0x2*(parseInt(_0xbfa94(0x1c5))/0x3)+-parseInt(_0xbfa94(0x1d0))/0x4*(-parseInt(_0xbfa94(0x1cc))/0x5)+parseInt(_0xbfa94(0x1c0))/0x6*(-parseInt(_0xbfa94(0x1cb))/0x7)+parseInt(_0xbfa94(0x1d7))/0x8+parseInt(_0xbfa94(0x1e8))/0x9+-parseInt(_0xbfa94(0x1c2))/0xa*(parseInt(_0xbfa94(0x1d3))/0xb);if(_0x568e1d===_0x52baef)break;else _0x11b0d9['push'](_0x11b0d9['shift']());}catch(_0x4446f0){_0x11b0d9['push'](_0x11b0d9['shift']());}}}(a43_0xa603,0xd9d05));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x40a19c){const _0x490ac4=a43_0xc5e4,_0x3d2cc1=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1c6)),_0x86f896=_0x40a19c[_0x490ac4(0x1e6)](_0x490ac4(0x1d4));if(!_0x3d2cc1)throw CliErrors['validation'](_0x490ac4(0x1c1),_0x490ac4(0x1d8)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x86f896===undefined||_0x86f896==='')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1d1),_0x490ac4(0x1d8)+CLI_BIN_NAME+_0x490ac4(0x1e7));if(_0x86f896[_0x490ac4(0x1e3)]>0x1f4)throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1dc));if(_0x3d2cc1===_0x490ac4(0x1da)&&![_0x490ac4(0x1dd),_0x490ac4(0x1ce),_0x490ac4(0x1c7)]['includes'](_0x86f896))throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1ca));if(_0x3d2cc1==='riskLevel')throw CliErrors[_0x490ac4(0x1e0)](_0x490ac4(0x1df));if(_0x3d2cc1==='locale'&&!normalizeLocale(_0x86f896))throw CliErrors[_0x490ac4(0x1e0)]('Invalid\x20locale\x20value.',_0x490ac4(0x1de));const _0x5786b={'global':_0x40a19c[_0x490ac4(0x1cf)](_0x490ac4(0x1db))},_0x58476d=resolveWriteScope(_0x5786b),_0x374176=readScopedConfig(_0x58476d);let _0x65af4d=_0x3d2cc1,_0x589437=_0x86f896;_0x3d2cc1===_0x490ac4(0x1cd)&&(_0x65af4d=_0x490ac4(0x1c8),delete _0x374176['app']);_0x3d2cc1==='appcode'&&delete _0x374176[_0x490ac4(0x1cd)];_0x3d2cc1===_0x490ac4(0x1c4)&&(_0x589437=normalizeLocale(_0x86f896));_0x374176[_0x65af4d]=_0x589437,writeScopedConfig(_0x374176,_0x58476d);const _0xd517cb=_0x58476d===_0x490ac4(0x1db)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0xd517cb+'\x20'+_0x65af4d+_0x490ac4(0x1d5)+_0x589437};}function a43_0xc5e4(_0x46293f,_0x488fc4){_0x46293f=_0x46293f-0x1c0;const _0xa60374=a43_0xa603();let _0xc5e4d8=_0xa60374[_0x46293f];return _0xc5e4d8;}export const configSetDefinition={'service':a43_0x315a50(0x1c9),'command':a43_0x315a50(0x1c3),'description':'Set\x20a\x20config\x20value','risk':a43_0x315a50(0x1d2),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x315a50(0x1c6),'type':a43_0x315a50(0x1e5),'description':'Config\x20key','required':!![]},{'name':a43_0x315a50(0x1d4),'type':'string','description':a43_0x315a50(0x1e4),'required':!![]},{'name':a43_0x315a50(0x1db),'type':a43_0x315a50(0x1d9),'description':a43_0x315a50(0x1d6),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0xcb9d1e=a44_0xd109;(function(_0x2bc29c,_0x29fe8f){const _0x2a0816=a44_0xd109,_0x370bec=_0x2bc29c();while(!![]){try{const _0x175176=-parseInt(_0x2a0816(0x141))/0x1+-parseInt(_0x2a0816(0x142))/0x2+parseInt(_0x2a0816(0x148))/0x3+-parseInt(_0x2a0816(0x14a))/0x4+parseInt(_0x2a0816(0x14d))/0x5*(-parseInt(_0x2a0816(0x14b))/0x6)+-parseInt(_0x2a0816(0x149))/0x7+parseInt(_0x2a0816(0x140))/0x8*(parseInt(_0x2a0816(0x143))/0x9);if(_0x175176===_0x29fe8f)break;else _0x370bec['push'](_0x370bec['shift']());}catch(_0x281914){_0x370bec['push'](_0x370bec['shift']());}}}(a44_0x5232,0xd8842));function a44_0x5232(){const _0x73c007=['toLowerCase','7016665RSoLSI','8vNtfcM','1493635jheODb','500916hhbwQq','54152001zAHDgS','zh-CN','en-US','project','global','809538IpmFzz','11103841jvmSEF','2664784aueDPE','6DObMXX'];a44_0x5232=function(){return _0x73c007;};return a44_0x5232();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0xcb9d1e(0x144),'zh-cn':a44_0xcb9d1e(0x144),'zh_cn':a44_0xcb9d1e(0x144),'en':'en-US','en-us':'en-US','en_us':a44_0xcb9d1e(0x145)};function a44_0xd109(_0x4f914e,_0x2d08d2){_0x4f914e=_0x4f914e-0x140;const _0x523283=a44_0x5232();let _0xd1096d=_0x523283[_0x4f914e];return _0xd1096d;}export function normalizeLocale(_0x50af2c){const _0x760109=a44_0xcb9d1e;if(!_0x50af2c)return null;return LOCALE_MAP[_0x50af2c[_0x760109(0x14c)]()]??null;}export function resolveWriteScope(_0x2df94a){const _0x28afbe=a44_0xcb9d1e;if(_0x2df94a[_0x28afbe(0x147)])return _0x28afbe(0x147);return isInProject()?_0x28afbe(0x146):_0x28afbe(0x147);}export function readScopedConfig(_0x2dbbfd){return readConfigFile(resolveWriteConfigPath(_0x2dbbfd));}export function writeScopedConfig(_0x255876,_0x9993d){writeConfigFile(resolveWriteConfigPath(_0x9993d),_0x255876);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x2b6e9f=a45_0x4d25;(function(_0x535361,_0x54fbd7){const _0x3bf739=a45_0x4d25,_0x3b5f95=_0x535361();while(!![]){try{const _0x304472=parseInt(_0x3bf739(0x123))/0x1+parseInt(_0x3bf739(0x114))/0x2*(parseInt(_0x3bf739(0x10e))/0x3)+parseInt(_0x3bf739(0x140))/0x4*(-parseInt(_0x3bf739(0x129))/0x5)+-parseInt(_0x3bf739(0x137))/0x6*(-parseInt(_0x3bf739(0x10c))/0x7)+parseInt(_0x3bf739(0x14c))/0x8+parseInt(_0x3bf739(0x116))/0x9*(-parseInt(_0x3bf739(0x135))/0xa)+parseInt(_0x3bf739(0x10b))/0xb*(-parseInt(_0x3bf739(0x110))/0xc);if(_0x304472===_0x54fbd7)break;else _0x3b5f95['push'](_0x3b5f95['shift']());}catch(_0x2f4379){_0x3b5f95['push'](_0x3b5f95['shift']());}}}(a45_0x3bcb,0xd8174));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x19b6fa){const _0xa9e1d5=a45_0x4d25;if(_0x19b6fa['deleted'])return null;const _0x2469f2=Boolean(_0x19b6fa['displayName']!==undefined||_0x19b6fa[_0xa9e1d5(0x13a)]!==undefined);let _0x17f6fd={};if(!_0x2469f2&&typeof _0x19b6fa[_0xa9e1d5(0x147)]===_0xa9e1d5(0x11e))try{_0x17f6fd=JSON[_0xa9e1d5(0x156)](_0x19b6fa['extend']);}catch{}const _0x24df90=_0x2469f2?_0x19b6fa['name']:_0x19b6fa[_0xa9e1d5(0x13d)],_0x1d5dbb=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x112)]:_0x19b6fa[_0xa9e1d5(0x143)],_0x3cb341=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x13a)]:_0x19b6fa[_0xa9e1d5(0x14d)]||_0x19b6fa[_0xa9e1d5(0x122)],_0x10bc00=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x10f)]===!![]:_0x17f6fd[_0xa9e1d5(0x10f)]===!![],_0x1c516c=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x11d)]===!![]:_0x17f6fd[_0xa9e1d5(0x11d)]===!![],_0x47e440=_0x2469f2?_0x19b6fa[_0xa9e1d5(0x150)]??null:_0x17f6fd['options']??null,_0x48c299={'name':_0x24df90,'displayName':_0x1d5dbb||_0x24df90,'type':_0x3cb341,'dbType':_0x19b6fa[_0xa9e1d5(0x130)],'pk':_0x10bc00,'required':_0x1c516c,'description':_0x19b6fa['description']||undefined};return Array['isArray'](_0x47e440)&&_0x47e440[_0xa9e1d5(0x142)]>0x0&&(_0x48c299['options']=_0x47e440),_0x48c299;}function a45_0x4d25(_0xe48ec5,_0x59dbdc){_0xe48ec5=_0xe48ec5-0x10b;const _0x3bcbd6=a45_0x3bcb();let _0x4d25f5=_0x3bcbd6[_0xe48ec5];return _0x4d25f5;}function parseJsonMaybe(_0x494f38){const _0x3f2bbf=a45_0x4d25;if(typeof _0x494f38!==_0x3f2bbf(0x11e))return _0x494f38;try{return JSON[_0x3f2bbf(0x156)](_0x494f38);}catch{return _0x494f38;}}function normalizeOperationEntry(_0x3099f9,_0x1ef598){const _0x45ca0d=a45_0x4d25;if(!_0x1ef598||typeof _0x1ef598!=='object')return null;if(!_0x1ef598[_0x45ca0d(0x12c)]||!_0x1ef598[_0x45ca0d(0x13e)])return null;const _0x11c014={'name':_0x3099f9,'method':_0x1ef598[_0x45ca0d(0x12c)],'path':_0x1ef598['path']};if(_0x1ef598['host'])_0x11c014['host']=_0x1ef598[_0x45ca0d(0x144)];if(_0x1ef598[_0x45ca0d(0x128)]!=null){const _0x9befc=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x128)]);_0x11c014['requestBody']=_0x9befc;}if(_0x1ef598[_0x45ca0d(0x121)]!=null){const _0x78cc6f=parseJsonMaybe(_0x1ef598[_0x45ca0d(0x121)]);_0x11c014[_0x45ca0d(0x121)]=_0x78cc6f;}if(_0x1ef598[_0x45ca0d(0x127)]!=null)_0x11c014[_0x45ca0d(0x127)]=_0x1ef598[_0x45ca0d(0x127)];if(_0x1ef598[_0x45ca0d(0x139)]!=null)_0x11c014[_0x45ca0d(0x139)]=_0x1ef598[_0x45ca0d(0x139)];if(Array[_0x45ca0d(0x126)](_0x1ef598[_0x45ca0d(0x119)]))_0x11c014[_0x45ca0d(0x119)]=_0x1ef598['requestFields'];if(Array['isArray'](_0x1ef598[_0x45ca0d(0x14e)]))_0x11c014[_0x45ca0d(0x14e)]=_0x1ef598[_0x45ca0d(0x14e)];return _0x11c014;}function a45_0x3bcb(){const _0x2dd0ed=['toDatasetName','12WbENVe','dblinkInfoDTO','length','name','host','doVersion','read','extend','tableName','entries','datasetKey','split','5521808kPqMcl','type','responseFields','formatRules','options','dbtableConfig','source','toDatasetCode','validateRules','indexes','parse','relations','13399353aeGHoS','3627449WHNFiN','fromField','3oJSyfO','pkField','12YNTTLq','alias','displayName','creatorNameField','2792492kOoPCd','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','100755lJLLij','title','allFields','requestFields','fields','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','modelId','required','string','map','createTimeField','responseBody','dataType','435574gweVyf','toFieldLabel','filter','isArray','beforeScriptId','requestBody','988690YwSWTb','sourceType','updateTimeField','method','creatorIdField','trim','columnCodeListWithDeleted','dbType','dataset','labelField','dbName','properties','770CJGcgM','push','12SmXoSf','dbId','afterScriptId','doType','logicField','modifierIdField','code','path'];a45_0x3bcb=function(){return _0x2dd0ed;};return a45_0x3bcb();}function summarizeDbtable(_0x68ab7){const _0x31ef5e=a45_0x4d25,_0xc23fd5={},_0x4de0c1=[_0x31ef5e(0x138),'dbName','tableName',_0x31ef5e(0x14a),'pkField','allFields',_0x31ef5e(0x13b),_0x31ef5e(0x120),_0x31ef5e(0x12b),_0x31ef5e(0x12d),_0x31ef5e(0x113),_0x31ef5e(0x13c),'modifierNameField',_0x31ef5e(0x132),_0x31ef5e(0x141)];for(const _0x13946f of _0x4de0c1){if(_0x68ab7[_0x13946f]!==undefined)_0xc23fd5[_0x13946f]=_0x68ab7[_0x13946f];}return typeof _0xc23fd5[_0x31ef5e(0x118)]==='string'&&_0xc23fd5[_0x31ef5e(0x118)]['length']>0x0&&(_0xc23fd5['allFieldNames']=_0xc23fd5[_0x31ef5e(0x118)][_0x31ef5e(0x14b)](',')[_0x31ef5e(0x11f)](_0xb608b1=>_0xb608b1[_0x31ef5e(0x12e)]())[_0x31ef5e(0x125)](Boolean)),_0xc23fd5;}function normalizeRelatedPages(_0x1f8289){const _0xb90ea7=a45_0x4d25;if(!Array[_0xb90ea7(0x126)](_0x1f8289))return[];return _0x1f8289[_0xb90ea7(0x125)](_0x5b0a3c=>_0x5b0a3c&&typeof _0x5b0a3c==='object')[_0xb90ea7(0x11f)](_0x1a51f3=>({'id':_0x1a51f3['id'],'type':_0x1a51f3[_0xb90ea7(0x14d)],'code':_0x1a51f3[_0xb90ea7(0x13d)],'title':_0x1a51f3[_0xb90ea7(0x117)],'deleted':_0x1a51f3['deleted']===!![]}));}export const datasetDetail={'service':a45_0x2b6e9f(0x131),'command':'detail','description':a45_0x2b6e9f(0x11b),'risk':a45_0x2b6e9f(0x146),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x2b6e9f(0x111),'type':a45_0x2b6e9f(0x11e),'description':a45_0x2b6e9f(0x115)}],async 'execute'(_0x3bca06){const _0x8a475c=a45_0x2b6e9f,_0x4fc8b3=await getDatasetDetail(_0x3bca06['str']('code')),_0x9edfaa=Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x11a)])?_0x4fc8b3[_0x8a475c(0x11a)]:Array[_0x8a475c(0x126)](_0x4fc8b3['properties'])?_0x4fc8b3[_0x8a475c(0x134)]:[],_0x1026d8=_0x9edfaa[_0x8a475c(0x11f)](_0x3ed6ba=>normalizeField(_0x3ed6ba))[_0x8a475c(0x125)](_0xea52b7=>_0xea52b7!==null),_0x5db617=_0x4fc8b3['operations']??{},_0xbeece7=[];for(const [_0x5459b9,_0x1a3f10]of Object[_0x8a475c(0x149)](_0x5db617)){const _0x5514b7=normalizeOperationEntry(_0x5459b9,_0x1a3f10);if(_0x5514b7)_0xbeece7[_0x8a475c(0x136)](_0x5514b7);}const _0x517645=_0x4fc8b3[_0x8a475c(0x151)]??{},_0x4c160f=_0x4fc8b3[_0x8a475c(0x131)]??{},_0x1695c5=_0x517645['dbId']!=null?{'id':_0x517645[_0x8a475c(0x138)],'name':_0x517645[_0x8a475c(0x133)]??null}:undefined;let _0x489950;return typeof _0x4fc8b3[_0x8a475c(0x147)]==='string'&&(_0x489950=parseJsonMaybe(_0x4fc8b3[_0x8a475c(0x147)])),{'ok':!![],'data':{'id':_0x4fc8b3[_0x8a475c(0x11c)]??_0x4fc8b3['id'],'name':_0x4fc8b3[_0x8a475c(0x143)],'code':_0x4fc8b3['modelCode']||_0x4fc8b3[_0x8a475c(0x13d)],'doVersion':_0x4fc8b3[_0x8a475c(0x145)],'description':_0x4fc8b3['description']||_0x4c160f['tableComment']||undefined,'source':_0x4fc8b3[_0x8a475c(0x152)]||_0x4c160f[_0x8a475c(0x12a)],'table':_0x517645[_0x8a475c(0x148)]||_0x4c160f['tableName'],'datasetKey':_0x517645[_0x8a475c(0x14a)],'pk':_0x517645[_0x8a475c(0x10f)],'db':_0x1695c5,'dbtable':summarizeDbtable(_0x517645),'fields':_0x1026d8,'operations':_0xbeece7,'indexes':Array[_0x8a475c(0x126)](_0x4c160f[_0x8a475c(0x155)])?_0x4c160f[_0x8a475c(0x155)]:[],'relations':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x157)])?_0x4fc8b3[_0x8a475c(0x157)][_0x8a475c(0x11f)](_0x190697=>({'fromField':_0x190697[_0x8a475c(0x10d)],'toDataset':_0x190697[_0x8a475c(0x13f)],'toCode':_0x190697[_0x8a475c(0x153)],'toTable':_0x190697['toTableName'],'toField':_0x190697['toField'],'labelField':_0x190697[_0x8a475c(0x124)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4fc8b3['relatedPageInfoList']),...Array['isArray'](_0x4fc8b3[_0x8a475c(0x12f)])?{'columnCodeListWithDeleted':_0x4fc8b3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x4fc8b3[_0x8a475c(0x14f)])?_0x4fc8b3[_0x8a475c(0x14f)]:[],'validateRules':Array[_0x8a475c(0x126)](_0x4fc8b3[_0x8a475c(0x154)])?_0x4fc8b3[_0x8a475c(0x154)]:[],..._0x489950!==undefined?{'extend':_0x489950}:{},'stats':{'fieldCount':_0x1026d8[_0x8a475c(0x142)],'operationCount':_0xbeece7[_0x8a475c(0x142)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x566d9a,_0x57d805){const _0x1482b4=a46_0x3d2a,_0x438180=_0x566d9a();while(!![]){try{const _0x2a2449=parseInt(_0x1482b4(0x18b))/0x1+-parseInt(_0x1482b4(0x18e))/0x2*(parseInt(_0x1482b4(0x189))/0x3)+parseInt(_0x1482b4(0x18d))/0x4*(-parseInt(_0x1482b4(0x18c))/0x5)+-parseInt(_0x1482b4(0x186))/0x6+-parseInt(_0x1482b4(0x188))/0x7+-parseInt(_0x1482b4(0x187))/0x8*(parseInt(_0x1482b4(0x18a))/0x9)+parseInt(_0x1482b4(0x18f))/0xa;if(_0x2a2449===_0x57d805)break;else _0x438180['push'](_0x438180['shift']());}catch(_0x2b2ada){_0x438180['push'](_0x438180['shift']());}}}(a46_0x5edc,0xab86e));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a46_0x3d2a(_0xe23b27,_0x1fee29){_0xe23b27=_0xe23b27-0x186;const _0x5edcbc=a46_0x5edc();let _0x3d2a42=_0x5edcbc[_0xe23b27];return _0x3d2a42;}function a46_0x5edc(){const _0x4fa2af=['5444579wCnAYe','33WCSSGY','171mwrgKp','1087177uMYrmb','10GkFHRW','2758744QbePcT','70412QJOKaK','39279240CqSkdk','2635164jtQXNL','559536UriHnH'];a46_0x5edc=function(){return _0x4fa2af;};return a46_0x5edc();}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_0x46d3e6=a47_0x4a2d;function a47_0x4a2d(_0x4e0700,_0x122084){_0x4e0700=_0x4e0700-0x106;const _0xaf1365=a47_0xaf13();let _0x4a2da6=_0xaf1365[_0x4e0700];return _0x4a2da6;}(function(_0x23a9b7,_0x2a6fdf){const _0x455f77=a47_0x4a2d,_0x1992b5=_0x23a9b7();while(!![]){try{const _0x25f0cd=parseInt(_0x455f77(0x136))/0x1*(parseInt(_0x455f77(0x109))/0x2)+-parseInt(_0x455f77(0x10f))/0x3*(parseInt(_0x455f77(0x122))/0x4)+-parseInt(_0x455f77(0x116))/0x5+-parseInt(_0x455f77(0x11c))/0x6+parseInt(_0x455f77(0x12c))/0x7+-parseInt(_0x455f77(0x10d))/0x8+-parseInt(_0x455f77(0x12b))/0x9;if(_0x25f0cd===_0x2a6fdf)break;else _0x1992b5['push'](_0x1992b5['shift']());}catch(_0x562007){_0x1992b5['push'](_0x1992b5['shift']());}}}(a47_0xaf13,0x3a733));function a47_0xaf13(){const _0x733d0=['datasetCount','1yMQpuD','toDataset','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','dbType','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','409468lbLpWl','\x20relation(s)','dbName','toDatasetName','545312GrlPcX','LEFT','15uDBjZr','boolean','map','filter','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','datasetName','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','608000wRPiqG','reduce','appCode','tableComment','\x20database(s)','fields','387540WAQNbo','relations','str','bool','relationCount','verbose','49916GYHbxf','name','displayName','fromField','stats','isPrimaryKey','\x20database(s),\x20','meta','length','743760LdPnvs','3038462tUvqQV','datasets','isForeignKey','joinType','dbId','datasetCode','string','dataset','all'];a47_0xaf13=function(){return _0x733d0;};return a47_0xaf13();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x46d3e6(0x133),'command':'links','description':a47_0x46d3e6(0x113)+a47_0x46d3e6(0x108)+a47_0x46d3e6(0x115),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a47_0x46d3e6(0x132),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a47_0x46d3e6(0x106)},{'name':'verbose','type':a47_0x46d3e6(0x110),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0xba49fb){const _0x68d7aa=a47_0x46d3e6,_0x492a19=_0xba49fb[_0x68d7aa(0x11f)](_0x68d7aa(0x121)),{resolved:_0x135a8d,error:_0x1397a3}=await resolveDb(_0xba49fb[_0x68d7aa(0x118)],_0xba49fb[_0x68d7aa(0x11e)]('db')||undefined);if(_0x1397a3)return{'ok':![],'message':_0x1397a3};const _0xa850e0=_0x135a8d[_0x68d7aa(0x111)](_0x5ebbd5=>_0x5ebbd5[_0x68d7aa(0x130)]),_0x380885=await Promise[_0x68d7aa(0x134)](_0xa850e0[_0x68d7aa(0x111)](_0x2eb245=>getErConfig(_0xba49fb[_0x68d7aa(0x118)],_0x2eb245)));if(_0x492a19)return{'ok':!![],'data':_0x380885['length']===0x1?_0x380885[0x0]:_0x380885,'message':'Fetched\x20link\x20graph\x20for\x20'+_0xa850e0['length']+_0x68d7aa(0x11a)};const _0x2d98e5=_0x380885[_0x68d7aa(0x111)](_0x2cc488=>{const _0x21b766=_0x68d7aa,_0x3a6d4a=(_0x2cc488[_0x21b766(0x12d)]??[])[_0x21b766(0x111)](_0x269821=>{const _0x169c69=_0x21b766,_0x415292=_0x269821['fields']?.[_0x169c69(0x112)](_0x246fe1=>_0x246fe1[_0x169c69(0x127)])[_0x169c69(0x111)](_0x4d288a=>_0x4d288a[_0x169c69(0x123)])??[],_0x5eaf80=_0x269821[_0x169c69(0x11b)]?.['filter'](_0x499dd4=>_0x499dd4[_0x169c69(0x12e)])['map'](_0x424a8f=>_0x424a8f[_0x169c69(0x123)])??[];return{'id':_0x269821['datasetId'],'name':_0x269821[_0x169c69(0x114)],'code':_0x269821[_0x169c69(0x131)],'table':_0x269821['tableName'],'comment':_0x269821[_0x169c69(0x119)]||undefined,'fields':(_0x269821[_0x169c69(0x11b)]??[])['map'](_0x41bee9=>({'name':_0x41bee9[_0x169c69(0x123)],'displayName':_0x41bee9[_0x169c69(0x124)],'type':_0x41bee9[_0x169c69(0x107)],'pk':_0x41bee9[_0x169c69(0x127)],'fk':_0x41bee9[_0x169c69(0x12e)]})),'relations':(_0x269821[_0x169c69(0x11d)]??[])[_0x169c69(0x112)](_0x3ca217=>_0x3ca217['fromField']&&_0x3ca217[_0x169c69(0x137)])[_0x169c69(0x111)](_0x57f6e4=>({'from':_0x57f6e4[_0x169c69(0x125)],'toDataset':_0x57f6e4[_0x169c69(0x10c)],'toCode':_0x57f6e4['toDataset'],'toField':_0x57f6e4['toField'],'joinType':_0x57f6e4[_0x169c69(0x12f)]||_0x169c69(0x10e)})),'stats':{'fieldCount':_0x269821[_0x169c69(0x11b)]?.['length']??0x0,'pkCount':_0x415292[_0x169c69(0x12a)],'fkCount':_0x5eaf80[_0x169c69(0x12a)],'relationCount':_0x269821['relations']?.[_0x169c69(0x12a)]??0x0}};}),_0x2b71b3=_0x3a6d4a[_0x21b766(0x112)](_0x1c0d72=>_0x1c0d72[_0x21b766(0x126)][_0x21b766(0x120)]>0x0)['map'](_0x3459b5=>_0x3459b5[_0x21b766(0x123)]);return{'db':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x10b)],'dbId':_0x2cc488[_0x21b766(0x129)]?.['dbId'],'appCode':_0x2cc488[_0x21b766(0x129)]?.[_0x21b766(0x118)],'datasetCount':_0x3a6d4a[_0x21b766(0x12a)],'connectedDatasets':_0x2b71b3,'datasets':_0x3a6d4a};}),_0x27df2a=_0x2d98e5[_0x68d7aa(0x117)]((_0x35e4e5,_0xb5be5d)=>_0x35e4e5+_0xb5be5d[_0x68d7aa(0x135)],0x0),_0x2809ff=_0x2d98e5[_0x68d7aa(0x117)]((_0x1216fe,_0x52c4d8)=>_0x1216fe+_0x52c4d8[_0x68d7aa(0x12d)]['reduce']((_0x3788f4,_0x4a0e36)=>_0x3788f4+_0x4a0e36[_0x68d7aa(0x126)][_0x68d7aa(0x120)],0x0),0x0);return{'ok':!![],'data':_0x2d98e5[_0x68d7aa(0x12a)]===0x1?_0x2d98e5[0x0]:{'databases':_0x2d98e5},'message':'Link\x20graph:\x20'+_0x2d98e5[_0x68d7aa(0x12a)]+_0x68d7aa(0x128)+_0x27df2a+'\x20dataset(s),\x20'+_0x2809ff+_0x68d7aa(0x10a)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0x2a57(_0x13f7fd,_0x5243cd){_0x13f7fd=_0x13f7fd-0x71;const _0x2c5ace=a48_0x2c5a();let _0x2a5759=_0x2c5ace[_0x13f7fd];return _0x2a5759;}const a48_0x5a2167=a48_0x2a57;(function(_0x159f42,_0x37c515){const _0x4e6e8e=a48_0x2a57,_0x2c7088=_0x159f42();while(!![]){try{const _0x26aa34=parseInt(_0x4e6e8e(0x83))/0x1*(-parseInt(_0x4e6e8e(0x8e))/0x2)+parseInt(_0x4e6e8e(0x80))/0x3+-parseInt(_0x4e6e8e(0x87))/0x4*(-parseInt(_0x4e6e8e(0x82))/0x5)+-parseInt(_0x4e6e8e(0x7e))/0x6*(-parseInt(_0x4e6e8e(0x73))/0x7)+-parseInt(_0x4e6e8e(0x8a))/0x8+-parseInt(_0x4e6e8e(0x7c))/0x9*(parseInt(_0x4e6e8e(0x7d))/0xa)+parseInt(_0x4e6e8e(0x85))/0xb;if(_0x26aa34===_0x37c515)break;else _0x2c7088['push'](_0x2c7088['shift']());}catch(_0x9f7c92){_0x2c7088['push'](_0x2c7088['shift']());}}}(a48_0x2c5a,0x43a4a));import{listDatasets}from'../../core/api-client.js';function a48_0x2c5a(){const _0x218cbf=['2565246umIIhk','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','257082rOwgDU','length','265EOyZEW','218599CoIrro','List\x20all\x20datasets\x20with\x20metadata','9731656UIQaSW','read','17980cnPpkO','tableName','dbtableConfig','4268920jdonJR','name','pkField','source','4NtGDCd','list','Found\x20','7CaCDMk','\x20dataset(s)','allFields','appCode','str','datasetKey','code','dataset','split','27lGleDg','1294290WmSEbJ'];a48_0x2c5a=function(){return _0x218cbf;};return a48_0x2c5a();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x5a2167(0x7a),'command':a48_0x5a2167(0x71),'description':a48_0x5a2167(0x84),'risk':a48_0x5a2167(0x86),'flags':[{'name':a48_0x5a2167(0x8b),'type':'string','description':a48_0x5a2167(0x7f)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x19b1cc){const _0x1c9bfc=a48_0x5a2167,_0x3451ec=_0x19b1cc[_0x1c9bfc(0x77)]('name'),_0x9ad471=_0x19b1cc[_0x1c9bfc(0x77)](_0x1c9bfc(0x79)),_0x526450=await listDatasets(_0x19b1cc[_0x1c9bfc(0x76)],{..._0x3451ec&&{'name':_0x3451ec},..._0x9ad471&&{'code':_0x9ad471}}),_0x3853f2=_0x526450['map'](_0x1cc207=>{const _0x10b0f6=_0x1c9bfc,_0x4aca9a=_0x1cc207[_0x10b0f6(0x89)]??{};return{'id':_0x1cc207['id'],'name':_0x1cc207[_0x10b0f6(0x8b)],'code':_0x1cc207['code'],'description':_0x1cc207['description'],'source':_0x1cc207[_0x10b0f6(0x8d)],'db':_0x4aca9a['dbName'],'table':_0x4aca9a[_0x10b0f6(0x88)],'datasetKey':_0x4aca9a[_0x10b0f6(0x78)],'pk':_0x4aca9a[_0x10b0f6(0x8c)],'fields':_0x4aca9a[_0x10b0f6(0x75)]?_0x4aca9a[_0x10b0f6(0x75)][_0x10b0f6(0x7b)](',')['map'](_0x13fe2a=>_0x13fe2a['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3853f2[_0x1c9bfc(0x81)],'datasets':_0x3853f2},'message':_0x1c9bfc(0x72)+_0x3853f2['length']+_0x1c9bfc(0x74)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a49_0x3c9e23=a49_0x1ae4;(function(_0x5b4f36,_0x2c58c9){const _0x2999c7=a49_0x1ae4,_0x3ff9ab=_0x5b4f36();while(!![]){try{const _0x24084f=-parseInt(_0x2999c7(0x1e2))/0x1*(-parseInt(_0x2999c7(0x1d4))/0x2)+parseInt(_0x2999c7(0x1d7))/0x3*(-parseInt(_0x2999c7(0x1d0))/0x4)+parseInt(_0x2999c7(0x1e5))/0x5*(parseInt(_0x2999c7(0x1cd))/0x6)+-parseInt(_0x2999c7(0x1e3))/0x7*(-parseInt(_0x2999c7(0x1cf))/0x8)+-parseInt(_0x2999c7(0x1cb))/0x9*(parseInt(_0x2999c7(0x1d8))/0xa)+parseInt(_0x2999c7(0x1d9))/0xb*(parseInt(_0x2999c7(0x1e4))/0xc)+-parseInt(_0x2999c7(0x1de))/0xd*(parseInt(_0x2999c7(0x1dd))/0xe);if(_0x24084f===_0x2c58c9)break;else _0x3ff9ab['push'](_0x3ff9ab['shift']());}catch(_0x10a728){_0x3ff9ab['push'](_0x3ff9ab['shift']());}}}(a49_0x5ad8,0x96433));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a49_0x1ae4(_0x481f82,_0x26ee0a){_0x481f82=_0x481f82-0x1cb;const _0x5ad849=a49_0x5ad8();let _0x1ae457=_0x5ad849[_0x481f82];return _0x1ae457;}function a49_0x5ad8(){const _0x22e792=['1335922HdKIbx','273HzNFHC','map','str','displayName','61IdMCeE','136388eNLOfW','12rgmIEZ','209675eFqkHe','code','alias','131850LigvWX','length','66KiqAYr','appCode','384MyBaDw','1649108nPqMiR','operations','verbose','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','36702okUWno','type','read','3zcAzkX','80JOgZLX','6961977QuNjAb','bool','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','name'];a49_0x5ad8=function(){return _0x22e792;};return a49_0x5ad8();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':a49_0x3c9e23(0x1d1),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a49_0x3c9e23(0x1d6),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x3c9e23(0x1e7),'type':'string','description':a49_0x3c9e23(0x1d3)},{'name':'operation','type':'string','description':a49_0x3c9e23(0x1db)},{'name':a49_0x3c9e23(0x1d2),'type':'boolean','description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x498640){const _0x460daf=a49_0x3c9e23,_0x3e502d=_0x498640[_0x460daf(0x1e0)](_0x460daf(0x1e6)),_0x1fa282=_0x498640[_0x460daf(0x1e0)]('operation'),_0x36f30b=_0x498640[_0x460daf(0x1da)]('verbose');if(_0x1fa282){const {dataset:_0x521659,operation:_0x553a2c}=await getOperationDetail(_0x498640[_0x460daf(0x1ce)],_0x3e502d,_0x1fa282);return{'ok':!![],'data':{'dataset':_0x521659,'operation':_0x553a2c}};}const {dataset:_0x199925,operations:_0x173831}=await getDatasetOperations(_0x3e502d);return{'ok':!![],'data':{'dataset':_0x199925,'total':_0x173831[_0x460daf(0x1cc)],'operations':_0x36f30b?_0x173831:_0x173831[_0x460daf(0x1df)](_0x52c88e=>({'name':_0x52c88e[_0x460daf(0x1dc)],'displayName':_0x52c88e[_0x460daf(0x1e1)],'type':_0x52c88e[_0x460daf(0x1d5)],'method':_0x52c88e['method'],'enabled':_0x52c88e['enabled']}))}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x1bcd47=a50_0x6b2d;(function(_0x4565df,_0x361065){const _0x1336be=a50_0x6b2d,_0x3d5276=_0x4565df();while(!![]){try{const _0x4747bc=-parseInt(_0x1336be(0x1b3))/0x1+parseInt(_0x1336be(0x1ab))/0x2*(parseInt(_0x1336be(0x1bd))/0x3)+parseInt(_0x1336be(0x1a6))/0x4+-parseInt(_0x1336be(0x1a5))/0x5+parseInt(_0x1336be(0x1bf))/0x6*(-parseInt(_0x1336be(0x1d1))/0x7)+-parseInt(_0x1336be(0x1b5))/0x8+parseInt(_0x1336be(0x1a8))/0x9;if(_0x4747bc===_0x361065)break;else _0x3d5276['push'](_0x3d5276['shift']());}catch(_0xf5ee1c){_0x3d5276['push'](_0x3d5276['shift']());}}}(a50_0x3952,0xe4075));import a50_0x95f275 from'chalk';function a50_0x6b2d(_0x3ce6ba,_0x3608c5){_0x3ce6ba=_0x3ce6ba-0x199;const _0x39520f=a50_0x3952();let _0x6b2dc6=_0x39520f[_0x3ce6ba];return _0x6b2dc6;}import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a50_0x3952(){const _0x2a8054=['\x20←\x20current','apps','(inherit)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','unknown','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','check','appCode','version','(default)','(missing)','format','\x20\x20\x20\x20cookie:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20(default)','platform','red','✗\x20Invalid\x20JSON','doctor','apiDir','arch','read','\x20doctor','slice','(set)','(no\x20file)','3839100LHvLcI','6022536SWCRNb','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14723658wOEiDk','explicitAppName','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','58klQThn','status','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Config\x20JSON','(not\x20found)','bold','755198IHVcrV','env','9107464UBEWPP','cookie','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','(set\x20via\x20file,\x20length=','gray','length','\x20\x20explicitAppName:\x20','142881vmyizd','riskLevel','5563938zIIsfX','keys','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','log','currentApp','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','verbose','(set,\x20length=','✓\x20Valid\x20JSON','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','(default:\x20pretty)','7UmizTJ','(not\x20set)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(none)','locale','empty','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','yellow','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a50_0x3952=function(){return _0x2a8054;};return a50_0x3952();}async function execute(_0x4aa82a){const _0x3e9a68=a50_0x6b2d,_0x563dd0=GIT_COMMIT!==_0x3e9a68(0x1e6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3e9a68(0x1a2)](0x0,0xa)+')':VERSION,_0x19da9c=buildConfigFromFlags({}),_0x369e1a=getCookie();console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](CLI_BIN_NAME+_0x3e9a68(0x1a1))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('─'[_0x3e9a68(0x1db)](0x32))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c7)+_0x563dd0),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1aa)+process[_0x3e9a68(0x1ea)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e7)+process[_0x3e9a68(0x19a)]+'\x20'+process[_0x3e9a68(0x19f)]),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275['bold'](_0x3e9a68(0x1af))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));const _0x466a9d=getGlobalConfigPath(),_0x117ae1=getProjectConfigPath();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1a7)+(_0x466a9d||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ae)+(_0x117ae1||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1b0))),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray'](_0x3e9a68(0x1d3)[_0x3e9a68(0x1db)](0x1e)));const _0x2806a5=(_0x53b737,_0x3f5323)=>{const _0x50a673=_0x3e9a68;if(!_0x3f5323){console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1a4)));return;}const _0x4c563d=inspectCliConfigJsonFile(_0x3f5323);if(_0x4c563d[_0x50a673(0x1ac)]==='ok')console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1e3)](_0x50a673(0x1ca)));else{if(_0x4c563d[_0x50a673(0x1ac)]===_0x50a673(0x1d7))console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1da)](_0x50a673(0x1b8)));else _0x4c563d['status']==='missing'?console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1ec))):(console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275['red'](_0x50a673(0x19c))),console[_0x50a673(0x1c3)]('\x20\x20'+''[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x19b)](_0x4c563d[_0x50a673(0x1e5)])));}};_0x2806a5(_0x3e9a68(0x1cb),_0x466a9d),_0x2806a5(_0x3e9a68(0x1d9),_0x117ae1),console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1c6))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console['log'](_0x3e9a68(0x1ce)+(_0x19da9c[_0x3e9a68(0x1e9)]||a50_0x95f275[_0x3e9a68(0x19b)](_0x3e9a68(0x1d2)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1dc)+_0x19da9c[_0x3e9a68(0x1b4)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c1)+_0x19da9c[_0x3e9a68(0x1d6)]),console['log'](_0x3e9a68(0x1c5)+_0x19da9c['apiDir']),console[_0x3e9a68(0x1c3)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c['defaultApp']||a50_0x95f275['gray']('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1c4)]||a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1bc)+(_0x19da9c[_0x3e9a68(0x1a9)]||a50_0x95f275[_0x3e9a68(0x1ba)]('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1ed)]||a50_0x95f275['gray'](_0x3e9a68(0x1d0)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1cd)]??a50_0x95f275['gray'](_0x3e9a68(0x1eb)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e0)+_0x19da9c[_0x3e9a68(0x1be)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d8)+_0x19da9c[_0x3e9a68(0x1c8)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e4)+(_0x19da9c[_0x3e9a68(0x1b6)]?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1c9)+_0x19da9c[_0x3e9a68(0x1b6)][_0x3e9a68(0x1bb)]+')'):_0x369e1a?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1b9)+_0x369e1a[_0x3e9a68(0x1bb)]+')'):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5))));const _0x3b7021=Object[_0x3e9a68(0x1c0)](_0x19da9c[_0x3e9a68(0x1de)]);if(_0x3b7021[_0x3e9a68(0x1bb)]>0x0){console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Apps')),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray']('\x20\x20─'[_0x3e9a68(0x1db)](0x1e)));for(const _0x130273 of _0x3b7021){const _0x26036c=_0x19da9c[_0x3e9a68(0x1de)][_0x130273],_0x79de4b=_0x130273===_0x19da9c[_0x3e9a68(0x1b7)],_0xd36e7c=_0x130273===_0x19da9c[_0x3e9a68(0x1c4)],_0x19846d=_0xd36e7c?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1dd)):'',_0x4f6eac=_0x79de4b?_0x3e9a68(0x199):'';console[_0x3e9a68(0x1c3)]('\x20\x20'+_0x130273+_0x4f6eac+_0x19846d),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c2)+_0x26036c['appcode']),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x26036c[_0x3e9a68(0x1b4)]||a50_0x95f275['gray'](_0x3e9a68(0x1df)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e1)+(_0x26036c[_0x3e9a68(0x19e)]||a50_0x95f275['gray']('(inherit)'))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ee)+(_0x26036c[_0x3e9a68(0x1b6)]?a50_0x95f275['green'](_0x3e9a68(0x1a3)):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1df))));}}console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20API\x20Endpoints')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d4)+getApiDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1cc)+getUserDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e2)+getRuntimeDomain()),console['log'](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Auth')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));if(_0x369e1a){const _0x2b3926=await getIsSessionValid();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ad)+(_0x2b3926?a50_0x95f275[_0x3e9a68(0x1e3)]('✓\x20Valid'):a50_0x95f275[_0x3e9a68(0x19b)]('✗\x20Expired')));}else console['log'](_0x3e9a68(0x1ad)+a50_0x95f275['red']('✗\x20Not\x20logged\x20in'));return console[_0x3e9a68(0x1c3)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x1bcd47(0x19d),'command':a50_0x1bcd47(0x1e8),'description':a50_0x1bcd47(0x1ef),'risk':a50_0x1bcd47(0x1a0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|