@lovrabet/rabetbase-cli 2.0.4-beta.5 → 2.0.6
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/build.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/preview.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project-upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.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/commands/start.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/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/create-app/enhanced-guided-create.js +1 -1
- package/lib/create-app/format-elapsed.js +1 -1
- package/lib/create-app/main.js +1 -1
- package/lib/create-app/non-interactive.js +1 -1
- package/lib/create-app/use-copy-project-template.js +1 -1
- package/lib/create-app/use-format-code.js +1 -1
- package/lib/create-app/use-install-dependencies.js +1 -1
- package/lib/errors.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/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/init/main.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/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a35_0x2f10(){const _0x505929=['1646860dTpyvf','76140ftnXCT','983630nKOEnZ','652NcVKkw','28rSmrFu','5493uqxbAS','18bUZtOO','144656EonThI','454026TUfVnC','261802nTynsA'];a35_0x2f10=function(){return _0x505929;};return a35_0x2f10();}(function(_0x236695,_0x41cff9){const _0x3df97a=a35_0x2442,_0x28430f=_0x236695();while(!![]){try{const _0x46c862=parseInt(_0x3df97a(0x12a))/0x1+-parseInt(_0x3df97a(0x12b))/0x2+-parseInt(_0x3df97a(0x127))/0x3*(parseInt(_0x3df97a(0x12f))/0x4)+parseInt(_0x3df97a(0x12c))/0x5+-parseInt(_0x3df97a(0x12d))/0x6*(-parseInt(_0x3df97a(0x130))/0x7)+parseInt(_0x3df97a(0x129))/0x8*(-parseInt(_0x3df97a(0x128))/0x9)+-parseInt(_0x3df97a(0x12e))/0xa;if(_0x46c862===_0x41cff9)break;else _0x28430f['push'](_0x28430f['shift']());}catch(_0xf79ae8){_0x28430f['push'](_0x28430f['shift']());}}}(a35_0x2f10,0x41fc5));import{codegenSdk}from'./sdk.js';import{codegenSql}from'./sql.js';function a35_0x2442(_0x11eb9c,_0x3c4ea6){_0x11eb9c=_0x11eb9c-0x127;const _0x2f1033=a35_0x2f10();let _0x244297=_0x2f1033[_0x11eb9c];return _0x244297;}export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x59246d=a36_0x10f3;(function(_0xd1154b,_0x29599e){const _0x472958=a36_0x10f3,_0x2f6556=_0xd1154b();while(!![]){try{const _0x55ec26=-parseInt(_0x472958(0xa1))/0x1*(-parseInt(_0x472958(0x87))/0x2)+parseInt(_0x472958(0x97))/0x3+parseInt(_0x472958(0x9e))/0x4+-parseInt(_0x472958(0x91))/0x5*(-parseInt(_0x472958(0x9c))/0x6)+parseInt(_0x472958(0x9b))/0x7+-parseInt(_0x472958(0x90))/0x8+-parseInt(_0x472958(0x8a))/0x9*(parseInt(_0x472958(0xa0))/0xa);if(_0x55ec26===_0x29599e)break;else _0x2f6556['push'](_0x2f6556['shift']());}catch(_0x1a724a){_0x2f6556['push'](_0x2f6556['shift']());}}}(a36_0x12b3,0xb6a21));function a36_0x10f3(_0xd3287d,_0x4196c9){_0xd3287d=_0xd3287d-0x86;const _0x12b308=a36_0x12b3();let _0x10f379=_0x12b308[_0xd3287d];return _0x10f379;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a36_0x59246d(0x9a),'command':a36_0x59246d(0x8f),'description':a36_0x59246d(0x96),'risk':a36_0x59246d(0x88),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x59246d(0x92),'type':a36_0x59246d(0x86),'description':a36_0x59246d(0x8e)},{'name':a36_0x59246d(0x94),'type':a36_0x59246d(0x86),'required':!![],'description':a36_0x59246d(0x89)},{'name':a36_0x59246d(0x8b),'type':a36_0x59246d(0x9d),'description':a36_0x59246d(0x99)}],async 'execute'(_0x33482b){const _0x1c9db8=a36_0x59246d,{dataset:_0x4c4a18,operation:_0x4892fd}=await getOperationDetail(_0x33482b[_0x1c9db8(0x8d)],_0x33482b[_0x1c9db8(0x9f)](_0x1c9db8(0x98)),_0x33482b['str'](_0x1c9db8(0x94))),_0x314785=generateSdkCode(_0x4c4a18,_0x4892fd,{'includeImports':!_0x33482b[_0x1c9db8(0x8c)](_0x1c9db8(0x8b))});return{'ok':!![],'data':{'dataset':{'name':_0x4c4a18[_0x1c9db8(0x95)],'code':_0x4c4a18['code'],'tableName':_0x4c4a18[_0x1c9db8(0x93)]},'operation':_0x33482b[_0x1c9db8(0x9f)]('operation'),'code':_0x314785}};}};function a36_0x12b3(){const _0x215021=['5859217iIscHl','138VWhXfb','boolean','2161144HDLyaD','str','14350zESGGQ','988CqRuVh','string','1780LBKIIG','read','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','14571EwzCAC','skip-imports','bool','appCode','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','sdk','8267728Welpaj','241095XppKBX','alias','tableName','operation','name','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','2217366DggoIx','code','Omit\x20import\x20statements\x20from\x20generated\x20code','codegen'];a36_0x12b3=function(){return _0x215021;};return a36_0x12b3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x4a95c0=a37_0x4947;(function(_0x50aadc,_0x29eccc){const _0x97fb60=a37_0x4947,_0x5d7566=_0x50aadc();while(!![]){try{const _0x2ad38a=parseInt(_0x97fb60(0x17c))/0x1*(-parseInt(_0x97fb60(0x175))/0x2)+-parseInt(_0x97fb60(0x18d))/0x3*(-parseInt(_0x97fb60(0x177))/0x4)+-parseInt(_0x97fb60(0x17d))/0x5+-parseInt(_0x97fb60(0x181))/0x6*(parseInt(_0x97fb60(0x18b))/0x7)+-parseInt(_0x97fb60(0x17f))/0x8*(parseInt(_0x97fb60(0x187))/0x9)+parseInt(_0x97fb60(0x18a))/0xa+parseInt(_0x97fb60(0x182))/0xb;if(_0x2ad38a===_0x29eccc)break;else _0x5d7566['push'](_0x5d7566['shift']());}catch(_0x887275){_0x5d7566['push'](_0x5d7566['shift']());}}}(a37_0x1cb1,0x749e5));function a37_0x1cb1(){const _0x358bde=['str','5oZsvLc','1146995wybuqG','target','1767064MGZrvm','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','6CFJFHP','6633506oTkBEP','codegen','no-imports','read','bff','9gfGmah','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sqlCode','6960980FIEVKd','1812818OGADZk','appCode','18zxHtFM','bool','352318ilJFOC','Omit\x20import\x20statements\x20from\x20generated\x20code','512384qtGIFU','sdk','sqlName','string'];a37_0x1cb1=function(){return _0x358bde;};return a37_0x1cb1();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x4947(_0x5d97cb,_0x5bc8c7){_0x5d97cb=_0x5d97cb-0x174;const _0x1cb158=a37_0x1cb1();let _0x494704=_0x1cb158[_0x5d97cb];return _0x494704;}import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a37_0x4a95c0(0x183),'command':'sql','description':a37_0x4a95c0(0x180),'risk':a37_0x4a95c0(0x185),'flags':[SQLCODE_FLAG,{'name':a37_0x4a95c0(0x17e),'type':a37_0x4a95c0(0x17a),'description':a37_0x4a95c0(0x188),'default':a37_0x4a95c0(0x178),'enum':[a37_0x4a95c0(0x178),a37_0x4a95c0(0x186)]},{'name':a37_0x4a95c0(0x184),'type':'boolean','description':a37_0x4a95c0(0x176)}],async 'execute'(_0x17d5da){const _0x5b0006=a37_0x4a95c0,_0x577fbf=await getSqlQueryInfo(_0x17d5da[_0x5b0006(0x18c)],_0x17d5da[_0x5b0006(0x17b)]('sqlcode')),_0x4ac39c=_0x17d5da[_0x5b0006(0x17b)](_0x5b0006(0x17e))||'sdk',_0x34d5cb=generateSqlCodeTemplate(_0x577fbf,{'target':_0x4ac39c,'includeImports':!_0x17d5da[_0x5b0006(0x174)](_0x5b0006(0x184))});return{'ok':!![],'data':{'sqlCode':_0x577fbf[_0x5b0006(0x189)],'sqlName':_0x577fbf[_0x5b0006(0x179)],'target':_0x4ac39c,'code':_0x34d5cb}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a38_0x5be8(_0x11d25a,_0x274916){_0x11d25a=_0x11d25a-0x1a0;const _0x19b20f=a38_0x19b2();let _0x5be8f9=_0x19b20f[_0x11d25a];return _0x5be8f9;}function a38_0x19b2(){const _0x2407c=['4dqRVRM','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','skip','map','appName','未找到可用应用。','获取到\x20','includes','manual','App\x20Code:','正在获取可用应用列表...','cyan','\x0a无法获取远程应用列表,请手动输入。','18LGHheR','length','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','find','appCode','2175448JToqmU','1030187fmLEBa','2780372GGEybH','gray','\x20\x20(','1134183wTBdlR','yellow','log','无法获取远程应用列表,请手动输入。','custom','message','24630489dSyZoP','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','请选择要绑定的应用:','trim','1356920MPDCWV','✎\x20自定义输入\x20appcode','valid','\x0a未找到可用应用。','请输入\x20App\x20Code:','2793808KzpQvP','Invalid\x20App\x20Code'];a38_0x19b2=function(){return _0x2407c;};return a38_0x19b2();}(function(_0x5ef396,_0x5df7a1){const _0x5d9d31=a38_0x5be8,_0x962273=_0x5ef396();while(!![]){try{const _0x53d3ec=-parseInt(_0x5d9d31(0x1aa))/0x1+parseInt(_0x5d9d31(0x1a9))/0x2+-parseInt(_0x5d9d31(0x1ae))/0x3*(parseInt(_0x5d9d31(0x1bf))/0x4)+-parseInt(_0x5d9d31(0x1b8))/0x5+-parseInt(_0x5d9d31(0x1a4))/0x6*(parseInt(_0x5d9d31(0x1ab))/0x7)+-parseInt(_0x5d9d31(0x1bd))/0x8+parseInt(_0x5d9d31(0x1b4))/0x9;if(_0x53d3ec===_0x5df7a1)break;else _0x962273['push'](_0x962273['shift']());}catch(_0x26ac22){_0x962273['push'](_0x962273['shift']());}}}(a38_0x19b2,0x9375f));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x4353ea from'chalk';import{validateAppcode}from'./validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x55193c=a38_0x5be8,_0x29e80c=await input({'message':_0x55193c(0x1bc),'validate':_0x3ca0d0=>{const _0x38e785=_0x55193c,_0x5c6132=validateAppcode(_0x3ca0d0[_0x38e785(0x1b7)]());return _0x5c6132[_0x38e785(0x1ba)]||_0x5c6132[_0x38e785(0x1b3)]||_0x38e785(0x1be);}});return _0x29e80c[_0x55193c(0x1b7)]();}export async function promptAppSelection(_0x524439){const _0x5ad3ba=a38_0x5be8,_0x43538a=[{'name':a38_0x4353ea[_0x5ad3ba(0x1af)](_0x5ad3ba(0x1b9)),'value':-0x1},..._0x524439[_0x5ad3ba(0x1c2)]((_0x1f8c2b,_0x37933b)=>({'name':_0x1f8c2b[_0x5ad3ba(0x1c3)]+'\x20\x20'+a38_0x4353ea['gray']('('+_0x1f8c2b[_0x5ad3ba(0x1a8)]+')'),'value':_0x37933b}))],_0x46bb16=await checkbox({'message':_0x5ad3ba(0x1c5)+a38_0x4353ea[_0x5ad3ba(0x1a2)](_0x524439[_0x5ad3ba(0x1a5)])+_0x5ad3ba(0x1c0),'choices':_0x43538a,'loop':![]});if(_0x46bb16[_0x5ad3ba(0x1c6)](-0x1))return _0x5ad3ba(0x1b2);if(_0x46bb16[_0x5ad3ba(0x1a5)]===0x0)return _0x5ad3ba(0x1b2);return _0x46bb16['map'](_0x391114=>_0x524439[_0x391114]);}export async function promptSingleAppSelection(_0x326d1a){const _0x1bdabe=a38_0x5be8,_0x4da96a=[{'name':a38_0x4353ea['gray'](_0x1bdabe(0x1b5)),'value':_0x1bdabe(0x1c1)},{'name':a38_0x4353ea[_0x1bdabe(0x1af)](_0x1bdabe(0x1b9)),'value':'custom'},..._0x326d1a[_0x1bdabe(0x1c2)](_0x2a5974=>({'name':_0x2a5974[_0x1bdabe(0x1c3)]+'\x20\x20'+a38_0x4353ea['gray']('('+_0x2a5974[_0x1bdabe(0x1a8)]+')'),'value':_0x2a5974[_0x1bdabe(0x1a8)]}))],_0x11d7bf=await select({'message':_0x1bdabe(0x1b6),'choices':_0x4da96a});if(_0x11d7bf==='skip')return'skip';if(_0x11d7bf===_0x1bdabe(0x1b2))return _0x1bdabe(0x1b2);return _0x326d1a[_0x1bdabe(0x1a7)](_0x218899=>_0x218899[_0x1bdabe(0x1a8)]===_0x11d7bf);}export async function selectSingleAppcode(_0x2fec5a){const _0x1c10ab=a38_0x5be8;if(!_0x2fec5a)return console[_0x1c10ab(0x1b0)](a38_0x4353ea['gray'](_0x1c10ab(0x1a6))),_fallbackOrSkip();console[_0x1c10ab(0x1b0)](_0x1c10ab(0x1a1));let _0x431c9e;try{_0x431c9e=await withActiveCookie(_0x2fec5a,()=>listRemoteApps());}catch(_0x12b714){console['log'](a38_0x4353ea[_0x1c10ab(0x1af)](_0x1c10ab(0x1b1)));if(_0x12b714 instanceof Error)console[_0x1c10ab(0x1b0)](a38_0x4353ea[_0x1c10ab(0x1ac)]('\x20\x20('+_0x12b714[_0x1c10ab(0x1b3)]+')'));return _fallbackOrSkip();}if(_0x431c9e[_0x1c10ab(0x1a5)]===0x0)return console[_0x1c10ab(0x1b0)](a38_0x4353ea[_0x1c10ab(0x1af)](_0x1c10ab(0x1c4))),_fallbackOrSkip();const _0x5e6b16=await promptSingleAppSelection(_0x431c9e);if(_0x5e6b16===_0x1c10ab(0x1c1))return'';if(_0x5e6b16===_0x1c10ab(0x1b2))return promptCustomAppcode();return _0x5e6b16[_0x1c10ab(0x1a8)];}export async function selectMultipleApps(_0x561ba0){const _0x1c8683=a38_0x5be8;console['log'](_0x1c8683(0x1a1));let _0x330919;try{_0x330919=await withActiveCookie(_0x561ba0,()=>listRemoteApps());}catch(_0x1f0009){console[_0x1c8683(0x1b0)](_0x1c8683(0x1a3));if(_0x1f0009 instanceof Error)console[_0x1c8683(0x1b0)](_0x1c8683(0x1ad)+_0x1f0009[_0x1c8683(0x1b3)]+')');return _0x1c8683(0x1b2);}if(_0x330919[_0x1c8683(0x1a5)]===0x0)return console[_0x1c8683(0x1b0)](_0x1c8683(0x1bb)),_0x1c8683(0x1b2);return promptAppSelection(_0x330919);}async function _fallbackOrSkip(){const _0x57c45e=a38_0x5be8,_0x6ba137=await select({'message':_0x57c45e(0x1a0),'choices':[{'name':a38_0x4353ea[_0x57c45e(0x1ac)]('(跳过,稍后配置)'),'value':_0x57c45e(0x1c1)},{'name':a38_0x4353ea['yellow']('✎\x20手动输入'),'value':_0x57c45e(0x1c7)}]});if(_0x6ba137===_0x57c45e(0x1c1))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0xfbbbbf=a39_0x479b;(function(_0x5f1f90,_0x2effcc){const _0x2a5ffa=a39_0x479b,_0x199569=_0x5f1f90();while(!![]){try{const _0x1294d1=-parseInt(_0x2a5ffa(0x1c9))/0x1+parseInt(_0x2a5ffa(0x1c7))/0x2*(-parseInt(_0x2a5ffa(0x1cb))/0x3)+parseInt(_0x2a5ffa(0x1ca))/0x4*(-parseInt(_0x2a5ffa(0x1c3))/0x5)+-parseInt(_0x2a5ffa(0x1ce))/0x6+parseInt(_0x2a5ffa(0x1c6))/0x7+-parseInt(_0x2a5ffa(0x1d0))/0x8*(parseInt(_0x2a5ffa(0x1cf))/0x9)+parseInt(_0x2a5ffa(0x1d2))/0xa;if(_0x1294d1===_0x2effcc)break;else _0x199569['push'](_0x199569['shift']());}catch(_0x2c9ead){_0x199569['push'](_0x199569['shift']());}}}(a39_0x39c0,0x7a178));export const CODE_FLAG={'name':'code','type':a39_0xfbbbbf(0x1c5),'required':!![],'description':a39_0xfbbbbf(0x1c4),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a39_0xfbbbbf(0x1cd)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a39_0x479b(_0x110ec4,_0x49cf51){_0x110ec4=_0x110ec4-0x1c2;const _0x39c02c=a39_0x39c0();let _0x479b84=_0x39c02c[_0x110ec4];return _0x479b84;}function a39_0x39c0(){const _0x36ce17=['285642oJiggO','48LuCnBl','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','27882680qSeVUd','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','25rgtKGn','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','4794027MvuEDn','628698mmcjvK','sqlcode','433159gfVbeP','485612cSnNuL','9XyqkLB','appcode','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','4796352jgQktC'];a39_0x39c0=function(){return _0x36ce17;};return a39_0x39c0();}export const SQLCODE_FLAG={'name':a39_0xfbbbbf(0x1c8),'type':a39_0xfbbbbf(0x1c5),'required':!![],'description':a39_0xfbbbbf(0x1d1),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0xfbbbbf(0x1c2)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0xfbbbbf(0x1cc),'type':a39_0xfbbbbf(0x1c5),'required':![],'description':a39_0xfbbbbf(0x1d3)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a40_0x331d(_0x1ecae1,_0x322f19){_0x1ecae1=_0x1ecae1-0x187;const _0x5bd6ed=a40_0x5bd6();let _0x331d87=_0x5bd6ed[_0x1ecae1];return _0x331d87;}(function(_0x540735,_0x37dc2d){const _0x4aa0ac=a40_0x331d,_0x27d894=_0x540735();while(!![]){try{const _0x35c143=parseInt(_0x4aa0ac(0x195))/0x1*(-parseInt(_0x4aa0ac(0x189))/0x2)+parseInt(_0x4aa0ac(0x192))/0x3+parseInt(_0x4aa0ac(0x18d))/0x4*(-parseInt(_0x4aa0ac(0x18c))/0x5)+parseInt(_0x4aa0ac(0x191))/0x6+-parseInt(_0x4aa0ac(0x18b))/0x7*(parseInt(_0x4aa0ac(0x18f))/0x8)+parseInt(_0x4aa0ac(0x188))/0x9*(parseInt(_0x4aa0ac(0x193))/0xa)+parseInt(_0x4aa0ac(0x187))/0xb;if(_0x35c143===_0x37dc2d)break;else _0x27d894['push'](_0x27d894['shift']());}catch(_0x23e2f1){_0x27d894['push'](_0x27d894['shift']());}}}(a40_0x5bd6,0x5f020));export function validateAppcode(_0x2f6691){const _0x2c2931=a40_0x331d,_0x281315=_0x2f6691['trim']();if(!_0x281315)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x281315[_0x2c2931(0x190)]>0x64)return{'valid':![],'message':_0x2c2931(0x194)};if(!/^[A-Za-z0-9_-]+$/[_0x2c2931(0x18a)](_0x281315))return{'valid':![],'message':_0x2c2931(0x18e)};return{'valid':!![]};}function a40_0x5bd6(){const _0x3c7eca=['App\x20Code\x20cannot\x20exceed\x20100\x20characters','3378zivlpx','5713994RoCTvs','9ikBIMk','262hUYRMN','test','3164903ucqgci','183805AaUeXj','44VyxJRo','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','8qlvntu','length','4529448VaWAwm','802167HIsWch','1464190GnxFtL'];a40_0x5bd6=function(){return _0x3c7eca;};return a40_0x5bd6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41_0x3fefc1=a41_0x2e82;(function(_0x244be4,_0x4b6839){const _0x3ce60d=a41_0x2e82,_0x5a68a2=_0x244be4();while(!![]){try{const _0x48a4ec=-parseInt(_0x3ce60d(0x8e))/0x1*(parseInt(_0x3ce60d(0x82))/0x2)+parseInt(_0x3ce60d(0x7f))/0x3*(-parseInt(_0x3ce60d(0x8c))/0x4)+parseInt(_0x3ce60d(0x86))/0x5*(parseInt(_0x3ce60d(0x7c))/0x6)+-parseInt(_0x3ce60d(0x85))/0x7+-parseInt(_0x3ce60d(0x89))/0x8*(-parseInt(_0x3ce60d(0x7b))/0x9)+-parseInt(_0x3ce60d(0x8d))/0xa*(-parseInt(_0x3ce60d(0x8f))/0xb)+parseInt(_0x3ce60d(0x90))/0xc*(parseInt(_0x3ce60d(0x88))/0xd);if(_0x48a4ec===_0x4b6839)break;else _0x5a68a2['push'](_0x5a68a2['shift']());}catch(_0x8a43a4){_0x5a68a2['push'](_0x5a68a2['shift']());}}}(a41_0x1d7e,0xe572f));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x57584b){const _0x1bcadc=a41_0x2e82,_0xb99ff=_0x57584b['str']('key');if(!_0xb99ff)throw CliErrors[_0x1bcadc(0x81)](_0x1bcadc(0x84),_0x1bcadc(0x7d)+CLI_BIN_NAME+_0x1bcadc(0x78));const _0x597465=readConfig(),_0x406954=_0xb99ff===_0x1bcadc(0x83)?'appcode':_0xb99ff,_0x5c40e1=_0x597465[_0x406954];if(_0x5c40e1===undefined)throw CliErrors[_0x1bcadc(0x81)](_0x1bcadc(0x8b)+_0xb99ff);return{'ok':!![],'data':typeof _0x5c40e1===_0x1bcadc(0x79)?_0x5c40e1:{[_0x406954]:_0x5c40e1},'message':typeof _0x5c40e1===_0x1bcadc(0x79)?undefined:String(_0x5c40e1)};}function a41_0x2e82(_0x276e21,_0x2407e7){_0x276e21=_0x276e21-0x78;const _0x1d7e53=a41_0x1d7e();let _0x2e827b=_0x1d7e53[_0x276e21];return _0x2e827b;}function a41_0x1d7e(){const _0x4eeb7c=['4SQCwNZ','40NoRuUa','2SvfALN','939829BdxVIS','5151312OUilkx','config','\x20config\x20get\x20--key\x20<key>','object','string','27Ltkoll','1182fIYsOr','Usage:\x20','Config\x20key\x20to\x20read','953790qkEkFH','get','validation','794862vvGZgY','app','Missing\x20key.','7702758SIGAME','8905CetYbc','Get\x20a\x20config\x20value\x20by\x20key','52HiGknM','1982112USxHuP','key','Key\x20not\x20found:\x20'];a41_0x1d7e=function(){return _0x4eeb7c;};return a41_0x1d7e();}export const configGetDefinition={'service':a41_0x3fefc1(0x91),'command':a41_0x3fefc1(0x80),'description':a41_0x3fefc1(0x87),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x3fefc1(0x8a),'type':a41_0x3fefc1(0x7a),'description':a41_0x3fefc1(0x7e),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10d8d8,_0x151465){const _0x299a11=a42_0x8ed6,_0x2baf70=_0x10d8d8();while(!![]){try{const _0x5396f7=parseInt(_0x299a11(0xd3))/0x1*(parseInt(_0x299a11(0xd9))/0x2)+parseInt(_0x299a11(0xd1))/0x3*(-parseInt(_0x299a11(0xd2))/0x4)+-parseInt(_0x299a11(0xd8))/0x5+-parseInt(_0x299a11(0xd4))/0x6*(parseInt(_0x299a11(0xcf))/0x7)+parseInt(_0x299a11(0xd7))/0x8+-parseInt(_0x299a11(0xd5))/0x9*(-parseInt(_0x299a11(0xd6))/0xa)+-parseInt(_0x299a11(0xd0))/0xb*(-parseInt(_0x299a11(0xce))/0xc);if(_0x5396f7===_0x151465)break;else _0x2baf70['push'](_0x2baf70['shift']());}catch(_0x1b0d21){_0x2baf70['push'](_0x2baf70['shift']());}}}(a42_0x452f,0x6e943));function a42_0x452f(){const _0x1f8242=['48915dPVtul','860MMgEJx','2153936dyWuWU','522750xWzdIF','214442PWYdvr','84ZljmsX','73367FgOFbQ','537911LrFkNo','1883586eznXNE','4rrZhbL','5QgQCdd','246bgySaf'];a42_0x452f=function(){return _0x1f8242;};return a42_0x452f();}import{configListDefinition}from'./list.js';import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';function a42_0x8ed6(_0x5770dd,_0x497dc9){_0x5770dd=_0x5770dd-0xce;const _0x452ff9=a42_0x452f();let _0x8ed621=_0x452ff9[_0x5770dd];return _0x8ed621;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x569414=a43_0xc292;(function(_0x48af9c,_0x27988e){const _0x1c10c6=a43_0xc292,_0x39795b=_0x48af9c();while(!![]){try{const _0x11cb03=-parseInt(_0x1c10c6(0x161))/0x1+parseInt(_0x1c10c6(0x15d))/0x2*(parseInt(_0x1c10c6(0x162))/0x3)+parseInt(_0x1c10c6(0x163))/0x4*(-parseInt(_0x1c10c6(0x15e))/0x5)+-parseInt(_0x1c10c6(0x16b))/0x6*(-parseInt(_0x1c10c6(0x167))/0x7)+parseInt(_0x1c10c6(0x165))/0x8*(parseInt(_0x1c10c6(0x164))/0x9)+parseInt(_0x1c10c6(0x16a))/0xa+-parseInt(_0x1c10c6(0x168))/0xb;if(_0x11cb03===_0x27988e)break;else _0x39795b['push'](_0x39795b['shift']());}catch(_0x486ad1){_0x39795b['push'](_0x39795b['shift']());}}}(a43_0x5704,0x5b66f));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x5de728){const _0x1d9b6a=a43_0xc292,_0x476849=_0x5de728[_0x1d9b6a(0x160)](_0x1d9b6a(0x15c))?readScopedConfig(_0x1d9b6a(0x15c)):readConfig();return{'ok':!![],'data':_0x476849};}function a43_0xc292(_0x14806b,_0x302769){_0x14806b=_0x14806b-0x15b;const _0x570475=a43_0x5704();let _0xc292b4=_0x570475[_0x14806b];return _0xc292b4;}export const configListDefinition={'service':a43_0x569414(0x15b),'command':a43_0x569414(0x169),'description':'List\x20all\x20config\x20values','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x569414(0x15c),'type':a43_0x569414(0x15f),'description':a43_0x569414(0x166),'default':![]}],'execute':execute};function a43_0x5704(){const _0x2ab6c3=['4986bUYiAD','8312YZcDGa','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','1194256VmnAlP','15080692xIJGIV','list','6141930pwAOJN','18oQNgKe','config','global','429326SXMkFh','10765DvSlqY','boolean','bool','46057yMBrwb','3KICHBY','232MFwtud'];a43_0x5704=function(){return _0x2ab6c3;};return a43_0x5704();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x35bb(_0x115d90,_0x5d4193){_0x115d90=_0x115d90-0x65;const _0x2d0489=a44_0x2d04();let _0x35bb50=_0x2d0489[_0x115d90];return _0x35bb50;}const a44_0x25dca5=a44_0x35bb;(function(_0x21eb5e,_0x488e97){const _0x3cec04=a44_0x35bb,_0x1bbf4a=_0x21eb5e();while(!![]){try{const _0x5312f1=parseInt(_0x3cec04(0x81))/0x1*(parseInt(_0x3cec04(0x67))/0x2)+parseInt(_0x3cec04(0x6c))/0x3+-parseInt(_0x3cec04(0x87))/0x4+parseInt(_0x3cec04(0x7c))/0x5+-parseInt(_0x3cec04(0x8c))/0x6*(parseInt(_0x3cec04(0x66))/0x7)+-parseInt(_0x3cec04(0x69))/0x8*(-parseInt(_0x3cec04(0x88))/0x9)+-parseInt(_0x3cec04(0x84))/0xa*(parseInt(_0x3cec04(0x86))/0xb);if(_0x5312f1===_0x488e97)break;else _0x1bbf4a['push'](_0x1bbf4a['shift']());}catch(_0x202f3d){_0x1bbf4a['push'](_0x1bbf4a['shift']());}}}(a44_0x2d04,0xb0f81));import{CliErrors}from'../../errors.js';function a44_0x2d04(){const _0xc0aab=['\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','2472qBFjTV','set','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','2689149jnJwjE','value','daily','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','key','string','global','config','validation','bool','length','online','app','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','riskLevel','Invalid\x20locale\x20value.','2033295dNObNY','env','Usage:\x20','Set\x20a\x20config\x20value','Missing\x20value.','2DFURIx','\x20set\x20to:\x20','Config\x20value','270FCfDBj','locale','6325IACJnT','4114116Gczhlv','14211IlxmhX','appcode','Missing\x20key.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','996CqqWEu','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','write','24584DxUIIP','560958omPsFN'];a44_0x2d04=function(){return _0xc0aab;};return a44_0x2d04();}import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x315209){const _0x2c6fc4=a44_0x35bb,_0x3bdb82=_0x315209['str'](_0x2c6fc4(0x70)),_0x152843=_0x315209['str']('value');if(!_0x3bdb82)throw CliErrors[_0x2c6fc4(0x74)](_0x2c6fc4(0x8a),_0x2c6fc4(0x7e)+CLI_BIN_NAME+_0x2c6fc4(0x68));if(_0x152843===undefined||_0x152843==='')throw CliErrors[_0x2c6fc4(0x74)](_0x2c6fc4(0x80),_0x2c6fc4(0x7e)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x152843[_0x2c6fc4(0x76)]>0x1f4)throw CliErrors['validation'](_0x2c6fc4(0x6f));if(_0x3bdb82===_0x2c6fc4(0x7d)&&![_0x2c6fc4(0x77),'production',_0x2c6fc4(0x6e)]['includes'](_0x152843))throw CliErrors['validation'](_0x2c6fc4(0x79));if(_0x3bdb82===_0x2c6fc4(0x7a))throw CliErrors[_0x2c6fc4(0x74)](_0x2c6fc4(0x8b));if(_0x3bdb82===_0x2c6fc4(0x85)&&!normalizeLocale(_0x152843))throw CliErrors[_0x2c6fc4(0x74)](_0x2c6fc4(0x7b),_0x2c6fc4(0x6b));const _0x46d3a1={'global':_0x315209[_0x2c6fc4(0x75)](_0x2c6fc4(0x72))},_0x54f0c6=resolveWriteScope(_0x46d3a1),_0xb4384e=readScopedConfig(_0x54f0c6);let _0x5da454=_0x3bdb82,_0x8dd26f=_0x152843;_0x3bdb82===_0x2c6fc4(0x78)&&(_0x5da454=_0x2c6fc4(0x89),delete _0xb4384e[_0x2c6fc4(0x78)]);_0x3bdb82==='appcode'&&delete _0xb4384e['app'];_0x3bdb82===_0x2c6fc4(0x85)&&(_0x8dd26f=normalizeLocale(_0x152843));_0xb4384e[_0x5da454]=_0x8dd26f,writeScopedConfig(_0xb4384e,_0x54f0c6);const _0x1bd8c7=_0x54f0c6==='global'?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x1bd8c7+'\x20'+_0x5da454+_0x2c6fc4(0x82)+_0x8dd26f};}export const configSetDefinition={'service':a44_0x25dca5(0x73),'command':a44_0x25dca5(0x6a),'description':a44_0x25dca5(0x7f),'risk':a44_0x25dca5(0x65),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x25dca5(0x70),'type':a44_0x25dca5(0x71),'description':'Config\x20key','required':!![]},{'name':a44_0x25dca5(0x6d),'type':a44_0x25dca5(0x71),'description':a44_0x25dca5(0x83),'required':!![]},{'name':a44_0x25dca5(0x72),'type':'boolean','description':a44_0x25dca5(0x8d),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x5376a8=a45_0x2772;(function(_0x10cff2,_0x5f2110){const _0x5da984=a45_0x2772,_0x16c967=_0x10cff2();while(!![]){try{const _0x5c874e=-parseInt(_0x5da984(0x144))/0x1+-parseInt(_0x5da984(0x142))/0x2+parseInt(_0x5da984(0x146))/0x3+parseInt(_0x5da984(0x13d))/0x4+-parseInt(_0x5da984(0x13b))/0x5*(parseInt(_0x5da984(0x13a))/0x6)+-parseInt(_0x5da984(0x13f))/0x7*(-parseInt(_0x5da984(0x143))/0x8)+parseInt(_0x5da984(0x145))/0x9*(parseInt(_0x5da984(0x140))/0xa);if(_0x5c874e===_0x5f2110)break;else _0x16c967['push'](_0x16c967['shift']());}catch(_0x4cfa9e){_0x16c967['push'](_0x16c967['shift']());}}}(a45_0x2c09,0x9d234));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x2772(_0x5527d3,_0x419387){_0x5527d3=_0x5527d3-0x139;const _0x2c09a9=a45_0x2c09();let _0x277230=_0x2c09a9[_0x5527d3];return _0x277230;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a45_0x2c09(){const _0x1cf63c=['4560692qQOmjn','global','50659UBAgRS','590tLbzBv','project','530862okPfbt','424lbIzUm','1142301jBjdss','85851vzrbdL','419400tvELyE','zh-CN','toLowerCase','3354dUvxWj','1565bsOPyY','en-US'];a45_0x2c09=function(){return _0x1cf63c;};return a45_0x2c09();}export{CLI_BIN_NAME};const LOCALE_MAP={'zh':'zh-CN','zh-cn':a45_0x5376a8(0x147),'zh_cn':a45_0x5376a8(0x147),'en':a45_0x5376a8(0x13c),'en-us':a45_0x5376a8(0x13c),'en_us':a45_0x5376a8(0x13c)};export function normalizeLocale(_0xf2f51a){const _0x26c08f=a45_0x5376a8;if(!_0xf2f51a)return null;return LOCALE_MAP[_0xf2f51a[_0x26c08f(0x139)]()]??null;}export function resolveWriteScope(_0x2c3fe7){const _0x2565e3=a45_0x5376a8;if(_0x2c3fe7[_0x2565e3(0x13e)])return _0x2565e3(0x13e);return isInProject()?_0x2565e3(0x141):_0x2565e3(0x13e);}export function readScopedConfig(_0x306f70){return readConfigFile(resolveWriteConfigPath(_0x306f70));}export function writeScopedConfig(_0x2ce2fa,_0x366f0f){writeConfigFile(resolveWriteConfigPath(_0x366f0f),_0x2ce2fa);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a46_0x3cd6(){const _0x13ab6d=['boolean','displayName','104rWqRez','str','options','properties','448778pwYiXM','fromField','dbType','verbose','name','toFieldLabel','pkField','indexes','dbtableConfig','sourceType','45055vDNsvj','dataset','130scaPqS','type','731329csVxVA','relations','description','dbName','2lBMETP','code','45444opNlil','tableName','tableComment','alias','push','120PxanyV','operations','length','toField','toTableName','bool','dbId','string','doType','dataType','toDatasetCode','parse','method','toDatasetName','fields','isArray','entries','4560516sWPwIX','modelId','1064598yiXBAX','4677384dxHkvC','extend','filter','map','datasetKey','modelCode','detail','path','required','read'];a46_0x3cd6=function(){return _0x13ab6d;};return a46_0x3cd6();}const a46_0x2efdc3=a46_0x29df;(function(_0x5867a6,_0x130b8a){const _0x421ef1=a46_0x29df,_0x549121=_0x5867a6();while(!![]){try{const _0x2b67d2=parseInt(_0x421ef1(0x1e0))/0x1+-parseInt(_0x421ef1(0x1e4))/0x2*(parseInt(_0x421ef1(0x1c1))/0x3)+parseInt(_0x421ef1(0x1ce))/0x4*(-parseInt(_0x421ef1(0x1dc))/0x5)+-parseInt(_0x421ef1(0x1eb))/0x6*(parseInt(_0x421ef1(0x1e6))/0x7)+-parseInt(_0x421ef1(0x1c2))/0x8+parseInt(_0x421ef1(0x1fc))/0x9+-parseInt(_0x421ef1(0x1de))/0xa*(-parseInt(_0x421ef1(0x1d2))/0xb);if(_0x2b67d2===_0x130b8a)break;else _0x549121['push'](_0x549121['shift']());}catch(_0x3e9901){_0x549121['push'](_0x549121['shift']());}}}(a46_0x3cd6,0x7177a));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x39421f){const _0x5f0891=a46_0x29df;if(_0x39421f['deleted'])return null;const _0x6f24e1=Boolean(_0x39421f[_0x5f0891(0x1cd)]!==undefined||_0x39421f[_0x5f0891(0x1f3)]!==undefined);let _0x33b9d2={};if(!_0x6f24e1&&typeof _0x39421f[_0x5f0891(0x1c3)]===_0x5f0891(0x1f2))try{_0x33b9d2=JSON[_0x5f0891(0x1f6)](_0x39421f[_0x5f0891(0x1c3)]);}catch{}const _0xc70bb4=_0x6f24e1?_0x39421f[_0x5f0891(0x1d6)]:_0x39421f['code'],_0x242711=_0x6f24e1?_0x39421f['displayName']:_0x39421f[_0x5f0891(0x1d6)],_0x30f9fa=_0x6f24e1?_0x39421f[_0x5f0891(0x1f3)]:_0x39421f[_0x5f0891(0x1df)]||_0x39421f[_0x5f0891(0x1f4)],_0x50e147=_0x6f24e1?_0x39421f[_0x5f0891(0x1d8)]===!![]:_0x33b9d2[_0x5f0891(0x1d8)]===!![],_0x439475=_0x6f24e1?_0x39421f[_0x5f0891(0x1ca)]===!![]:_0x33b9d2[_0x5f0891(0x1ca)]===!![],_0x5ed0e8=_0x6f24e1?_0x39421f[_0x5f0891(0x1d0)]??null:_0x33b9d2[_0x5f0891(0x1d0)]??null,_0x24d955={'name':_0xc70bb4,'displayName':_0x242711||_0xc70bb4,'type':_0x30f9fa,'dbType':_0x39421f[_0x5f0891(0x1d4)],'pk':_0x50e147,'required':_0x439475,'description':_0x39421f[_0x5f0891(0x1e2)]||undefined};return Array[_0x5f0891(0x1fa)](_0x5ed0e8)&&_0x5ed0e8[_0x5f0891(0x1ed)]>0x0&&(_0x24d955[_0x5f0891(0x1d0)]=_0x5ed0e8),_0x24d955;}function a46_0x29df(_0x41884c,_0x56585a){_0x41884c=_0x41884c-0x1c1;const _0x3cd6ed=a46_0x3cd6();let _0x29df93=_0x3cd6ed[_0x41884c];return _0x29df93;}export const datasetDetail={'service':a46_0x2efdc3(0x1dd),'command':a46_0x2efdc3(0x1c8),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a46_0x2efdc3(0x1cb),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x2efdc3(0x1e9),'type':a46_0x2efdc3(0x1f2),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':a46_0x2efdc3(0x1d5),'type':a46_0x2efdc3(0x1cc),'description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0x598a1d){const _0x562d37=a46_0x2efdc3,_0x2c7381=await getDatasetDetail(_0x598a1d[_0x562d37(0x1cf)](_0x562d37(0x1e5))),_0x318bed=_0x598a1d[_0x562d37(0x1f0)](_0x562d37(0x1d5));if(_0x318bed)return{'ok':!![],'data':_0x2c7381};const _0x2be636=Array[_0x562d37(0x1fa)](_0x2c7381['fields'])?_0x2c7381[_0x562d37(0x1f9)]:Array[_0x562d37(0x1fa)](_0x2c7381[_0x562d37(0x1d1)])?_0x2c7381[_0x562d37(0x1d1)]:[],_0x26c350=_0x2be636['map'](_0x497052=>normalizeField(_0x497052))[_0x562d37(0x1c4)](_0x245eea=>_0x245eea!==null),_0x583b42=_0x2c7381[_0x562d37(0x1ec)]??{},_0xd5f8da=[];for(const [_0x2d9fed,_0x28dd72]of Object[_0x562d37(0x1fb)](_0x583b42)){if(_0x28dd72&&typeof _0x28dd72==='object'){const _0x1b9e35=_0x28dd72;_0x1b9e35['method']&&_0x1b9e35['path']&&_0xd5f8da[_0x562d37(0x1ea)]({'name':_0x2d9fed,'method':_0x1b9e35[_0x562d37(0x1f7)],'path':_0x1b9e35[_0x562d37(0x1c9)]});}}const _0x3a13d0=_0x2c7381[_0x562d37(0x1da)]??{},_0x301432=_0x2c7381[_0x562d37(0x1dd)]??{},_0x2d08b5=_0x3a13d0['dbId']!=null?{'id':_0x3a13d0[_0x562d37(0x1f1)],'name':_0x3a13d0[_0x562d37(0x1e3)]??null}:undefined;return{'ok':!![],'data':{'id':_0x2c7381[_0x562d37(0x1fd)]??_0x2c7381['id'],'name':_0x2c7381['name'],'code':_0x2c7381[_0x562d37(0x1c7)]||_0x2c7381[_0x562d37(0x1e5)],'description':_0x2c7381['description']||_0x301432[_0x562d37(0x1e8)]||undefined,'source':_0x2c7381['source']||_0x301432[_0x562d37(0x1db)],'table':_0x3a13d0[_0x562d37(0x1e7)]||_0x301432[_0x562d37(0x1e7)],'datasetKey':_0x3a13d0[_0x562d37(0x1c6)],'pk':_0x3a13d0['pkField'],'db':_0x2d08b5,'fields':_0x26c350,'operations':_0xd5f8da,'indexes':Array[_0x562d37(0x1fa)](_0x301432[_0x562d37(0x1d9)])?_0x301432[_0x562d37(0x1d9)]:[],'relations':Array['isArray'](_0x2c7381['relations'])?_0x2c7381[_0x562d37(0x1e1)][_0x562d37(0x1c5)](_0x1b7303=>({'fromField':_0x1b7303[_0x562d37(0x1d3)],'toDataset':_0x1b7303[_0x562d37(0x1f8)],'toCode':_0x1b7303[_0x562d37(0x1f5)],'toTable':_0x1b7303[_0x562d37(0x1ef)],'toField':_0x1b7303[_0x562d37(0x1ee)],'labelField':_0x1b7303[_0x562d37(0x1d7)]||undefined})):[],'stats':{'fieldCount':_0x26c350[_0x562d37(0x1ed)],'operationCount':_0xd5f8da[_0x562d37(0x1ed)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x594f58,_0x1eac04){const _0x2e83e3=a47_0x4b5b,_0x151579=_0x594f58();while(!![]){try{const _0x29a9b5=-parseInt(_0x2e83e3(0xa7))/0x1+parseInt(_0x2e83e3(0xac))/0x2*(parseInt(_0x2e83e3(0xaa))/0x3)+parseInt(_0x2e83e3(0xab))/0x4+parseInt(_0x2e83e3(0xa4))/0x5*(parseInt(_0x2e83e3(0xa5))/0x6)+-parseInt(_0x2e83e3(0xa8))/0x7*(parseInt(_0x2e83e3(0xa6))/0x8)+parseInt(_0x2e83e3(0xa9))/0x9+-parseInt(_0x2e83e3(0xa3))/0xa;if(_0x29a9b5===_0x1eac04)break;else _0x151579['push'](_0x151579['shift']());}catch(_0x13ed16){_0x151579['push'](_0x151579['shift']());}}}(a47_0x429a,0x9bf61));function a47_0x429a(){const _0x2bcba4=['2RaMjBc','18432450AvVUyO','5NOqiPP','3181938zyAFRs','1548464REVnxB','312262xcFKGM','14FdmALy','8126361yeyswt','1479540LqorTz','5020032RGSKaY'];a47_0x429a=function(){return _0x2bcba4;};return a47_0x429a();}function a47_0x4b5b(_0x2bc6c7,_0x529115){_0x2bc6c7=_0x2bc6c7-0xa3;const _0x429ab0=a47_0x429a();let _0x4b5b6c=_0x429ab0[_0x2bc6c7];return _0x4b5b6c;}import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x51d137=a48_0x4824;(function(_0x133b87,_0x462375){const _0x4be273=a48_0x4824,_0x49cb9b=_0x133b87();while(!![]){try{const _0x2f687f=-parseInt(_0x4be273(0xdd))/0x1*(-parseInt(_0x4be273(0xe1))/0x2)+parseInt(_0x4be273(0xeb))/0x3*(parseInt(_0x4be273(0xd9))/0x4)+-parseInt(_0x4be273(0xdf))/0x5*(parseInt(_0x4be273(0xf1))/0x6)+-parseInt(_0x4be273(0xf7))/0x7+-parseInt(_0x4be273(0xed))/0x8+-parseInt(_0x4be273(0xe6))/0x9*(parseInt(_0x4be273(0xfa))/0xa)+parseInt(_0x4be273(0x104))/0xb*(parseInt(_0x4be273(0xd5))/0xc);if(_0x2f687f===_0x462375)break;else _0x49cb9b['push'](_0x49cb9b['shift']());}catch(_0x114248){_0x49cb9b['push'](_0x49cb9b['shift']());}}}(a48_0x4ec7,0x96c9e));import{getErConfig}from'../../core/api-client.js';function a48_0x4ec7(){const _0x362cb0=['fromField','107556MZuBPF','toDatasetName','relationCount','string','16hrsJGp','str','read','\x20relation(s)','50107nPGGRa','appCode','495DSmQeO','fields','4yDXhPk','toDataset','meta','toField','datasetCount','9yVMjFn','datasetCode','links','isPrimaryKey','tableComment','743361KMgIBc','verbose','9120632BDNIWl','filter','dbName','boolean','34254qIPFRD','all','bool','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','datasets','map','5058585GuQZgo','\x20dataset(s),\x20','dbId','4030760BofpGt','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','reduce','Link\x20graph:\x20','datasetId','Fetched\x20link\x20graph\x20for\x20','stats','length','name','relations','2893HLnsWg','isForeignKey'];a48_0x4ec7=function(){return _0x362cb0;};return a48_0x4ec7();}function a48_0x4824(_0x7c3201,_0x347ad6){_0x7c3201=_0x7c3201-0xd5;const _0x4ec755=a48_0x4ec7();let _0x48241e=_0x4ec755[_0x7c3201];return _0x48241e;}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':'dataset','command':a48_0x51d137(0xe8),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+a48_0x51d137(0xf4)+a48_0x51d137(0xfb),'risk':a48_0x51d137(0xdb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x51d137(0xd8),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a48_0x51d137(0xec),'type':a48_0x51d137(0xf0),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x198a18){const _0x171e3a=a48_0x51d137,_0x15a8d2=_0x198a18[_0x171e3a(0xf3)]('verbose'),{resolved:_0x10984c,error:_0x1f9ac4}=await resolveDb(_0x198a18['appCode'],_0x198a18[_0x171e3a(0xda)]('db')||undefined);if(_0x1f9ac4)return{'ok':![],'message':_0x1f9ac4};const _0x16cf3f=_0x10984c[_0x171e3a(0xf6)](_0x452e7c=>_0x452e7c[_0x171e3a(0xf9)]),_0x1fc8ed=await Promise[_0x171e3a(0xf2)](_0x16cf3f['map'](_0x49f42c=>getErConfig(_0x198a18[_0x171e3a(0xde)],_0x49f42c)));if(_0x15a8d2)return{'ok':!![],'data':_0x1fc8ed[_0x171e3a(0x101)]===0x1?_0x1fc8ed[0x0]:_0x1fc8ed,'message':_0x171e3a(0xff)+_0x16cf3f[_0x171e3a(0x101)]+'\x20database(s)'};const _0x4dfe60=_0x1fc8ed['map'](_0x3888a1=>{const _0x3b7670=_0x171e3a,_0x5610b9=(_0x3888a1[_0x3b7670(0xf5)]??[])[_0x3b7670(0xf6)](_0x5829e6=>{const _0x4ea4b5=_0x3b7670,_0x1b7021=_0x5829e6[_0x4ea4b5(0xe0)]?.[_0x4ea4b5(0xee)](_0x28d3c9=>_0x28d3c9[_0x4ea4b5(0xe9)])[_0x4ea4b5(0xf6)](_0x2042c5=>_0x2042c5[_0x4ea4b5(0x102)])??[],_0x437d5e=_0x5829e6[_0x4ea4b5(0xe0)]?.['filter'](_0x19ad47=>_0x19ad47['isForeignKey'])[_0x4ea4b5(0xf6)](_0x3651eb=>_0x3651eb['name'])??[];return{'id':_0x5829e6[_0x4ea4b5(0xfe)],'name':_0x5829e6['datasetName'],'code':_0x5829e6[_0x4ea4b5(0xe7)],'table':_0x5829e6['tableName'],'comment':_0x5829e6[_0x4ea4b5(0xea)]||undefined,'fields':(_0x5829e6[_0x4ea4b5(0xe0)]??[])[_0x4ea4b5(0xf6)](_0x63173b=>({'name':_0x63173b[_0x4ea4b5(0x102)],'displayName':_0x63173b['displayName'],'type':_0x63173b['dbType'],'pk':_0x63173b[_0x4ea4b5(0xe9)],'fk':_0x63173b[_0x4ea4b5(0x105)]})),'relations':(_0x5829e6[_0x4ea4b5(0x103)]??[])[_0x4ea4b5(0xee)](_0x4b2aa8=>_0x4b2aa8[_0x4ea4b5(0x106)]&&_0x4b2aa8[_0x4ea4b5(0xe2)])[_0x4ea4b5(0xf6)](_0x5a2a96=>({'from':_0x5a2a96[_0x4ea4b5(0x106)],'toDataset':_0x5a2a96[_0x4ea4b5(0xd6)],'toCode':_0x5a2a96['toDataset'],'toField':_0x5a2a96[_0x4ea4b5(0xe4)],'joinType':_0x5a2a96['joinType']||'LEFT'})),'stats':{'fieldCount':_0x5829e6[_0x4ea4b5(0xe0)]?.[_0x4ea4b5(0x101)]??0x0,'pkCount':_0x1b7021[_0x4ea4b5(0x101)],'fkCount':_0x437d5e[_0x4ea4b5(0x101)],'relationCount':_0x5829e6[_0x4ea4b5(0x103)]?.['length']??0x0}};}),_0x18a9a8=_0x5610b9[_0x3b7670(0xee)](_0x417c11=>_0x417c11[_0x3b7670(0x100)]['relationCount']>0x0)['map'](_0x27fc6d=>_0x27fc6d[_0x3b7670(0x102)]);return{'db':_0x3888a1[_0x3b7670(0xe3)]?.[_0x3b7670(0xef)],'dbId':_0x3888a1[_0x3b7670(0xe3)]?.[_0x3b7670(0xf9)],'appCode':_0x3888a1[_0x3b7670(0xe3)]?.[_0x3b7670(0xde)],'datasetCount':_0x5610b9[_0x3b7670(0x101)],'connectedDatasets':_0x18a9a8,'datasets':_0x5610b9};}),_0x144b09=_0x4dfe60[_0x171e3a(0xfc)]((_0x190fb5,_0x1eb44a)=>_0x190fb5+_0x1eb44a[_0x171e3a(0xe5)],0x0),_0x1812cd=_0x4dfe60['reduce']((_0x89fcc1,_0x48c7f9)=>_0x89fcc1+_0x48c7f9[_0x171e3a(0xf5)][_0x171e3a(0xfc)]((_0x580d6f,_0x2b8f49)=>_0x580d6f+_0x2b8f49[_0x171e3a(0x100)][_0x171e3a(0xd7)],0x0),0x0);return{'ok':!![],'data':_0x4dfe60[_0x171e3a(0x101)]===0x1?_0x4dfe60[0x0]:{'databases':_0x4dfe60},'message':_0x171e3a(0xfd)+_0x4dfe60[_0x171e3a(0x101)]+'\x20database(s),\x20'+_0x144b09+_0x171e3a(0xf8)+_0x1812cd+_0x171e3a(0xdc)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x411d30=a49_0x4112;function a49_0x370b(){const _0x4e655f=['229115OhmXiX','boolean','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','name','trim','2017269aCzNHc','24MxLgPD','appCode','\x20dataset(s)','split','read','description','935142vYNPZE','verbose','List\x20all\x20datasets\x20with\x20metadata','dbtableConfig','code','source','bool','4927876oTjgAe','dataset','datasetKey','allFields','Found\x20','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','dbName','1020208foKGBT','map','11310656BiUFnw','length','str','pkField','9LxlYaV','107775hfyalP','list'];a49_0x370b=function(){return _0x4e655f;};return a49_0x370b();}(function(_0x376245,_0x23fd8d){const _0x44cb0d=a49_0x4112,_0x2375b2=_0x376245();while(!![]){try{const _0x185946=parseInt(_0x44cb0d(0x121))/0x1+parseInt(_0x44cb0d(0x12f))/0x2+parseInt(_0x44cb0d(0x128))/0x3+parseInt(_0x44cb0d(0x136))/0x4+-parseInt(_0x44cb0d(0x123))/0x5*(parseInt(_0x44cb0d(0x129))/0x6)+-parseInt(_0x44cb0d(0x11c))/0x7+parseInt(_0x44cb0d(0x11a))/0x8*(parseInt(_0x44cb0d(0x120))/0x9);if(_0x185946===_0x23fd8d)break;else _0x2375b2['push'](_0x2375b2['shift']());}catch(_0x2e082e){_0x2375b2['push'](_0x2375b2['shift']());}}}(a49_0x370b,0xc54e4));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function a49_0x4112(_0x24b992,_0x14c878){_0x24b992=_0x24b992-0x116;const _0x370b60=a49_0x370b();let _0x411252=_0x370b60[_0x24b992];return _0x411252;}export const datasetList={'service':a49_0x411d30(0x137),'command':a49_0x411d30(0x122),'description':a49_0x411d30(0x131),'risk':a49_0x411d30(0x12d),'flags':[{'name':a49_0x411d30(0x126),'type':'string','description':a49_0x411d30(0x125)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x411d30(0x130),'type':a49_0x411d30(0x124),'description':a49_0x411d30(0x118)}],async 'execute'(_0x1ea188){const _0x14d6ce=a49_0x411d30,_0x2bf153=_0x1ea188[_0x14d6ce(0x11e)]('name'),_0x5f5237=_0x1ea188[_0x14d6ce(0x11e)](_0x14d6ce(0x133)),_0x5124d4=_0x1ea188[_0x14d6ce(0x135)](_0x14d6ce(0x130)),_0x10d74f=await listDatasets(_0x1ea188[_0x14d6ce(0x12a)],{..._0x2bf153&&{'name':_0x2bf153},..._0x5f5237&&{'code':_0x5f5237}}),_0x5a7d53=_0x5124d4?_0x10d74f:_0x10d74f[_0x14d6ce(0x11b)](_0x8c6bb3=>{const _0x561ff7=_0x14d6ce,_0x46e1a8=_0x8c6bb3[_0x561ff7(0x132)]??{};return{'id':_0x8c6bb3['id'],'name':_0x8c6bb3[_0x561ff7(0x126)],'code':_0x8c6bb3[_0x561ff7(0x133)],'description':_0x8c6bb3[_0x561ff7(0x12e)],'source':_0x8c6bb3[_0x561ff7(0x134)],'db':_0x46e1a8[_0x561ff7(0x119)],'table':_0x46e1a8['tableName'],'datasetKey':_0x46e1a8[_0x561ff7(0x138)],'pk':_0x46e1a8[_0x561ff7(0x11f)],'fields':_0x46e1a8[_0x561ff7(0x116)]?_0x46e1a8[_0x561ff7(0x116)][_0x561ff7(0x12c)](',')[_0x561ff7(0x11b)](_0x2e0443=>_0x2e0443[_0x561ff7(0x127)]()):[]};});return{'ok':!![],'data':{'total':_0x5a7d53[_0x14d6ce(0x11d)],'datasets':_0x5a7d53},'message':_0x14d6ce(0x117)+_0x5a7d53[_0x14d6ce(0x11d)]+_0x14d6ce(0x12b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a50_0x1bca(_0x2c050b,_0x1e221e){_0x2c050b=_0x2c050b-0x79;const _0x20ed71=a50_0x20ed();let _0x1bcad5=_0x20ed71[_0x2c050b];return _0x1bcad5;}const a50_0x20df20=a50_0x1bca;(function(_0x20cc8d,_0x35e779){const _0x77c647=a50_0x1bca,_0x1cd6ab=_0x20cc8d();while(!![]){try{const _0x576852=-parseInt(_0x77c647(0x94))/0x1*(parseInt(_0x77c647(0x8e))/0x2)+-parseInt(_0x77c647(0x8d))/0x3+-parseInt(_0x77c647(0x86))/0x4*(parseInt(_0x77c647(0x96))/0x5)+parseInt(_0x77c647(0x89))/0x6+-parseInt(_0x77c647(0x91))/0x7*(parseInt(_0x77c647(0x90))/0x8)+-parseInt(_0x77c647(0x88))/0x9*(-parseInt(_0x77c647(0x95))/0xa)+parseInt(_0x77c647(0x8a))/0xb;if(_0x576852===_0x35e779)break;else _0x1cd6ab['push'](_0x1cd6ab['shift']());}catch(_0x22dfc2){_0x1cd6ab['push'](_0x1cd6ab['shift']());}}}(a50_0x20ed,0xa93ef));function a50_0x20ed(){const _0x12fe4a=['alias','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','displayName','string','operations','bool','appCode','enabled','type','length','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','str','read','1278548qjyKHl','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','9gzgMzw','1314636HUvXKp','35082575pqUjDo','map','dataset','2893590jsKuFw','598630GGMBho','method','336msqyNG','158690ztgKDl','verbose','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1lvVnFl','1400590vAwVCI','10fDVXBr'];a50_0x20ed=function(){return _0x12fe4a;};return a50_0x20ed();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x20df20(0x8c),'command':a50_0x20df20(0x7d),'description':a50_0x20df20(0x83),'risk':a50_0x20df20(0x85),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x20df20(0x97),'type':a50_0x20df20(0x7c),'description':a50_0x20df20(0x7a)},{'name':a50_0x20df20(0x79),'type':a50_0x20df20(0x7c),'description':a50_0x20df20(0x87)},{'name':a50_0x20df20(0x92),'type':'boolean','description':a50_0x20df20(0x93)}],async 'execute'(_0x5d51b5){const _0x5db71b=a50_0x20df20,_0x5ecded=_0x5d51b5[_0x5db71b(0x84)]('code'),_0x5551e4=_0x5d51b5['str'](_0x5db71b(0x79)),_0x556e0d=_0x5d51b5[_0x5db71b(0x7e)]('verbose');if(_0x5551e4){const {dataset:_0x3d033f,operation:_0x7cff91}=await getOperationDetail(_0x5d51b5[_0x5db71b(0x7f)],_0x5ecded,_0x5551e4);return{'ok':!![],'data':{'dataset':_0x3d033f,'operation':_0x7cff91}};}const {dataset:_0x3e9e73,operations:_0x2c0e86}=await getDatasetOperations(_0x5ecded);return{'ok':!![],'data':{'dataset':_0x3e9e73,'total':_0x2c0e86[_0x5db71b(0x82)],'operations':_0x556e0d?_0x2c0e86:_0x2c0e86[_0x5db71b(0x8b)](_0x50d851=>({'name':_0x50d851['name'],'displayName':_0x50d851[_0x5db71b(0x7b)],'type':_0x50d851[_0x5db71b(0x81)],'method':_0x50d851[_0x5db71b(0x8f)],'enabled':_0x50d851[_0x5db71b(0x80)]}))}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x65bef7=a51_0x595e;(function(_0x58bcda,_0x45bd9f){const _0x4284fa=a51_0x595e,_0x274588=_0x58bcda();while(!![]){try{const _0x4b7eed=-parseInt(_0x4284fa(0x186))/0x1*(-parseInt(_0x4284fa(0x18f))/0x2)+parseInt(_0x4284fa(0x188))/0x3*(parseInt(_0x4284fa(0x169))/0x4)+parseInt(_0x4284fa(0x196))/0x5*(parseInt(_0x4284fa(0x175))/0x6)+-parseInt(_0x4284fa(0x180))/0x7+parseInt(_0x4284fa(0x19d))/0x8+parseInt(_0x4284fa(0x18b))/0x9+parseInt(_0x4284fa(0x16b))/0xa*(-parseInt(_0x4284fa(0x177))/0xb);if(_0x4b7eed===_0x45bd9f)break;else _0x274588['push'](_0x274588['shift']());}catch(_0x4f42fd){_0x274588['push'](_0x274588['shift']());}}}(a51_0x1907,0x2fd3f));import a51_0x4d717c from'chalk';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}from'../context.js';function a51_0x1907(){const _0x20a0e5=['\x20\x20explicitAppName:\x20','locale','cookie','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1UZcWfY','apiDir','81GmcGvb','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','710370BaxwLB','apps','(default:\x20pretty)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','703542eMFBwG','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','slice','(default)','red','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','475125pMlkxU','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(none)','gray','\x20\x20Merged\x20Config','189360vMTmlF','\x20\x20─','\x20←\x20current','\x20\x20runtimeDomain:\x20\x20\x20','\x20(default)','keys','format','arch','(not\x20set)','platform','repeat','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','log','8580PSajuN','(set\x20via\x20file,\x20length=','294380xinRyo','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','unknown','\x20\x20Auth','currentApp','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','appcode','6cecTVQ','appCode','11DkRUxz','bold','\x20\x20Apps','version','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(inherit)','doctor','2673790uqolWn','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a51_0x1907=function(){return _0x20a0e5;};return a51_0x1907();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a51_0x595e(_0x211e16,_0x40bfce){_0x211e16=_0x211e16-0x164;const _0x19073f=a51_0x1907();let _0x595ed3=_0x19073f[_0x211e16];return _0x595ed3;}import{getCookie}from'../auth/get-cookie.js';async function execute(_0x37329c){const _0x4cd41b=a51_0x595e,_0x4aab10=GIT_COMMIT!==_0x4cd41b(0x16f)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4cd41b(0x192)](0x0,0xa)+')':VERSION,_0x5b7217=buildConfigFromFlags({}),_0x148ca7=getCookie();console[_0x4cd41b(0x168)](),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x178)](CLI_BIN_NAME+_0x4cd41b(0x16e))),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x19b)]('─'['repeat'](0x32))),console[_0x4cd41b(0x168)](_0x4cd41b(0x199)+_0x4aab10),console[_0x4cd41b(0x168)](_0x4cd41b(0x185)+process[_0x4cd41b(0x17a)]),console[_0x4cd41b(0x168)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4cd41b(0x1a6)]+'\x20'+process[_0x4cd41b(0x1a4)]),console['log'](),console['log'](a51_0x4d717c[_0x4cd41b(0x178)](_0x4cd41b(0x18a))),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x19e)[_0x4cd41b(0x1a7)](0x1e)));const _0x2de8fc=getGlobalConfigPath(),_0x52e1f9=getProjectConfigPath();console[_0x4cd41b(0x168)](_0x4cd41b(0x172)+(_0x2de8fc||a51_0x4d717c[_0x4cd41b(0x19b)]('(not\x20found)'))),console[_0x4cd41b(0x168)](_0x4cd41b(0x166)+(_0x52e1f9||a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x167)))),console[_0x4cd41b(0x168)](),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x178)](_0x4cd41b(0x19c))),console[_0x4cd41b(0x168)](a51_0x4d717c['gray']('\x20\x20─'[_0x4cd41b(0x1a7)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5b7217[_0x4cd41b(0x176)]||a51_0x4d717c[_0x4cd41b(0x194)](_0x4cd41b(0x1a5)))),console[_0x4cd41b(0x168)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b7217[_0x4cd41b(0x173)]),console['log'](_0x4cd41b(0x181)+_0x5b7217[_0x4cd41b(0x183)]),console[_0x4cd41b(0x168)](_0x4cd41b(0x18e)+_0x5b7217[_0x4cd41b(0x187)]),console[_0x4cd41b(0x168)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5b7217['defaultApp']||a51_0x4d717c['gray'](_0x4cd41b(0x19a)))),console[_0x4cd41b(0x168)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5b7217[_0x4cd41b(0x171)]||a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x19a)))),console[_0x4cd41b(0x168)](_0x4cd41b(0x182)+(_0x5b7217[_0x4cd41b(0x198)]||a51_0x4d717c[_0x4cd41b(0x19b)]('(none)'))),console[_0x4cd41b(0x168)](_0x4cd41b(0x16d)+(_0x5b7217[_0x4cd41b(0x1a3)]||a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x18d)))),console[_0x4cd41b(0x168)](_0x4cd41b(0x189)+(_0x5b7217['pageSize']??a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x193)))),console[_0x4cd41b(0x168)](_0x4cd41b(0x191)+_0x5b7217['riskLevel']),console[_0x4cd41b(0x168)](_0x4cd41b(0x17b)+_0x5b7217['verbose']),console[_0x4cd41b(0x168)](_0x4cd41b(0x195)+(_0x5b7217[_0x4cd41b(0x184)]?a51_0x4d717c[_0x4cd41b(0x190)]('(set,\x20length='+_0x5b7217[_0x4cd41b(0x184)][_0x4cd41b(0x165)]+')'):_0x148ca7?a51_0x4d717c[_0x4cd41b(0x190)](_0x4cd41b(0x16a)+_0x148ca7[_0x4cd41b(0x165)]+')'):a51_0x4d717c['gray'](_0x4cd41b(0x19a))));const _0x34f4ba=Object[_0x4cd41b(0x1a2)](_0x5b7217[_0x4cd41b(0x18c)]);if(_0x34f4ba['length']>0x0){console[_0x4cd41b(0x168)](),console[_0x4cd41b(0x168)](a51_0x4d717c['bold'](_0x4cd41b(0x179))),console['log'](a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x19e)['repeat'](0x1e)));for(const _0x120cb7 of _0x34f4ba){const _0x573ec0=_0x5b7217[_0x4cd41b(0x18c)][_0x120cb7],_0x2837e9=_0x120cb7===_0x5b7217['defaultApp'],_0xdcf316=_0x120cb7===_0x5b7217[_0x4cd41b(0x171)],_0x127f58=_0xdcf316?a51_0x4d717c[_0x4cd41b(0x190)](_0x4cd41b(0x19f)):'',_0x4333e2=_0x2837e9?_0x4cd41b(0x1a1):'';console['log']('\x20\x20'+_0x120cb7+_0x4333e2+_0x127f58),console[_0x4cd41b(0x168)](_0x4cd41b(0x16c)+_0x573ec0[_0x4cd41b(0x174)]),console[_0x4cd41b(0x168)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x573ec0[_0x4cd41b(0x173)]||a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x17e)))),console[_0x4cd41b(0x168)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x573ec0[_0x4cd41b(0x187)]||a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x17e)))),console[_0x4cd41b(0x168)](_0x4cd41b(0x17c)+(_0x573ec0['cookie']?a51_0x4d717c[_0x4cd41b(0x190)]('(set)'):a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x17e))));}}console[_0x4cd41b(0x168)](),console['log'](a51_0x4d717c[_0x4cd41b(0x178)]('\x20\x20API\x20Endpoints')),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x19e)[_0x4cd41b(0x1a7)](0x1e))),console[_0x4cd41b(0x168)](_0x4cd41b(0x164)+getApiDomain()),console[_0x4cd41b(0x168)](_0x4cd41b(0x17d)+getUserDomain()),console[_0x4cd41b(0x168)](_0x4cd41b(0x1a0)+getRuntimeDomain()),console[_0x4cd41b(0x168)](),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x178)](_0x4cd41b(0x170))),console[_0x4cd41b(0x168)](a51_0x4d717c[_0x4cd41b(0x19b)](_0x4cd41b(0x19e)[_0x4cd41b(0x1a7)](0x1e)));if(_0x148ca7){const _0x1fefbd=await getIsSessionValid();console[_0x4cd41b(0x168)](_0x4cd41b(0x197)+(_0x1fefbd?a51_0x4d717c[_0x4cd41b(0x190)]('✓\x20Valid'):a51_0x4d717c[_0x4cd41b(0x194)]('✗\x20Expired')));}else console[_0x4cd41b(0x168)](_0x4cd41b(0x197)+a51_0x4d717c[_0x4cd41b(0x194)]('✗\x20Not\x20logged\x20in'));return console[_0x4cd41b(0x168)](),{'ok':!![]};}export const doctorDefinition={'service':a51_0x65bef7(0x17f),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x5dadcf=a52_0x41be;(function(_0x1318e2,_0x22072f){const _0x731afb=a52_0x41be,_0x950836=_0x1318e2();while(!![]){try{const _0x4c24d3=parseInt(_0x731afb(0x109))/0x1*(-parseInt(_0x731afb(0xd8))/0x2)+-parseInt(_0x731afb(0xfd))/0x3*(parseInt(_0x731afb(0xfa))/0x4)+-parseInt(_0x731afb(0xf6))/0x5*(-parseInt(_0x731afb(0xff))/0x6)+parseInt(_0x731afb(0xdf))/0x7*(parseInt(_0x731afb(0xfc))/0x8)+-parseInt(_0x731afb(0xe0))/0x9+-parseInt(_0x731afb(0xef))/0xa+-parseInt(_0x731afb(0xd7))/0xb*(-parseInt(_0x731afb(0xea))/0xc);if(_0x4c24d3===_0x22072f)break;else _0x950836['push'](_0x950836['shift']());}catch(_0x2c25ac){_0x950836['push'](_0x950836['shift']());}}}(a52_0x3a68,0x446e5));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../project-upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x7a8b3d){return{'appCode':_0x7a8b3d,'appName':_0x7a8b3d};}function writeInitConfig(_0x499530,_0x55aa02,_0x1f873d){const _0x23428a=a52_0x41be,_0x1e2416=resolveWriteConfigPath(_0x499530),_0x1d9a42={'version':getCliVersion(),'createdAt':new Date()[_0x23428a(0xf0)](),'env':_0x1f873d};if(_0x55aa02[_0x23428a(0xe1)]===0x1)_0x1d9a42[_0x23428a(0xfb)]=_0x55aa02[0x0]['appCode'];else{_0x1d9a42['apps']={};for(const _0x14c892 of _0x55aa02){_0x1d9a42['apps'][_0x14c892[_0x23428a(0x104)]]={'appcode':_0x14c892['appCode'],'env':_0x1f873d};}_0x1d9a42[_0x23428a(0xf3)]=_0x55aa02[0x0]['appCode'];}writeConfigFile(_0x1e2416,_0x1d9a42);const _0x42ce15=_0x499530===_0x23428a(0xde)?'global':_0x23428a(0xe8);console[_0x23428a(0xe9)](_0x23428a(0x102)+_0x42ce15+'\x20config'),_0x55aa02[_0x23428a(0xe1)]===0x1?console[_0x23428a(0xe9)](_0x23428a(0xec)+_0x55aa02[0x0]['appCode']):(console[_0x23428a(0xe9)](_0x23428a(0xe3)+_0x55aa02['map'](_0x2a0d15=>_0x2a0d15[_0x23428a(0x104)])[_0x23428a(0x101)](',\x20')),console[_0x23428a(0xe9)](_0x23428a(0xf5)+_0x1d9a42['defaultApp'])),console['log']('\x20\x20Env:\x20'+_0x1d9a42['env']),console['log']('\x20\x20Config:\x20'+_0x1e2416);}function a52_0x3a68(){const _0x4fd8de=['\x20\x20AppCode:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','message','5296870vfRoxR','toLocaleString','str','daily','defaultApp','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20\x20Default:\x20','5FHkBDZ','cwd','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','yes','24lANtLu','appcode','8vNcHsr','138246wmCOUi','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','1475934uGxMcx','some','join','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appCode','App\x20code\x20to\x20initialize\x20with','env','production','../../init/main.js','772DKnpJr','311982ekWJdl','674mNKGtU','validation','run','bool','Usage:\x20','nonInteractive','global','1472919LQCDeV','921960LDNlLf','length','valid','\x20\x20Apps:\x20','boolean','Target\x20environment','string','Write\x20to\x20global\x20config\x20instead\x20of\x20project','project','log','420NixFjk','flagMissing'];a52_0x3a68=function(){return _0x4fd8de;};return a52_0x3a68();}function a52_0x41be(_0xadf578,_0x5063d8){_0xadf578=_0xadf578-0xd7;const _0x3a68ce=a52_0x3a68();let _0x41be3e=_0x3a68ce[_0xadf578];return _0x41be3e;}async function runSmartInit(_0x3155e7){const _0xe646a=a52_0x41be,_0x7f85f3=process[_0xe646a(0xf7)](),_0x5f1c8e=_0x3155e7['bool'](_0xe646a(0xde))?_0xe646a(0xde):_0xe646a(0xe8),_0x562583=_0x3155e7['str'](_0xe646a(0x106))||_0xe646a(0x107),_0x168509=_0x3155e7[_0xe646a(0xf1)](_0xe646a(0xfb))||undefined,_0x3338c8=_0x3155e7[_0xe646a(0xdb)]('project');if(_0x3338c8){const {initConfig:_0x4885bb}=await import(_0xe646a(0x108));return _0x4885bb({'appcode':_0x168509,'env':_0x562583,'autoYes':_0x3155e7[_0xe646a(0xdb)](_0xe646a(0xf9))});}if(_0x5f1c8e===_0xe646a(0xe8)){const _0x225bb3=existsSync(resolve(_0x7f85f3,NEW_CONFIG_NAME)),_0x26ccd7=LEGACY_CONFIG_NAMES[_0xe646a(0x100)](_0x1e4330=>existsSync(resolve(_0x7f85f3,_0x1e4330)));if(_0x26ccd7&&!_0x225bb3)return console[_0xe646a(0xe9)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x3155e7[_0xe646a(0xdd)],{'yes':_0x3155e7[_0xe646a(0xdb)](_0xe646a(0xf9))});if(_0x225bb3)throw CliErrors[_0xe646a(0xd9)](_0xe646a(0x103),'Use\x20`'+CLI_BIN_NAME+_0xe646a(0xfe));}if(_0x168509){const _0x5f3b6f=validateAppcode(_0x168509);if(!_0x5f3b6f[_0xe646a(0xe2)])throw CliErrors[_0xe646a(0xd9)](_0x5f3b6f[_0xe646a(0xee)]);writeInitConfig(_0x5f1c8e,[syntheticApp(_0x168509)],_0x562583);return;}if(_0x3155e7[_0xe646a(0xdd)])throw CliErrors[_0xe646a(0xeb)]('appcode',_0xe646a(0xdc)+CLI_BIN_NAME+_0xe646a(0xf4));const _0x123a5c=getCookie(),_0x1b9694=await selectMultipleApps(_0x123a5c),_0x246577=_0x1b9694==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x1b9694;writeInitConfig(_0x5f1c8e,_0x246577,_0x562583);}const initFlags=[{'name':a52_0x5dadcf(0xde),'type':a52_0x5dadcf(0xe4),'description':a52_0x5dadcf(0xe7),'default':![]},{'name':a52_0x5dadcf(0x106),'type':a52_0x5dadcf(0xe6),'description':a52_0x5dadcf(0xe5),'default':a52_0x5dadcf(0x107),'enum':[a52_0x5dadcf(0x107),a52_0x5dadcf(0xf2)]},{'name':a52_0x5dadcf(0xfb),'type':a52_0x5dadcf(0xe6),'description':a52_0x5dadcf(0x105)},{'name':a52_0x5dadcf(0xe8),'type':a52_0x5dadcf(0xe4),'description':a52_0x5dadcf(0xed),'default':![]},{'name':a52_0x5dadcf(0xf9),'type':a52_0x5dadcf(0xe4),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a52_0x5dadcf(0xda),'description':a52_0x5dadcf(0xf8),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x473667){return await runSmartInit(_0x473667),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0xb1b09e=a53_0x33d8;(function(_0x37a0e9,_0x2ec375){const _0x52b916=a53_0x33d8,_0x41a4e4=_0x37a0e9();while(!![]){try{const _0xef3114=-parseInt(_0x52b916(0x1c4))/0x1*(parseInt(_0x52b916(0x1c1))/0x2)+-parseInt(_0x52b916(0x1d1))/0x3*(-parseInt(_0x52b916(0x1d8))/0x4)+parseInt(_0x52b916(0x1c8))/0x5+parseInt(_0x52b916(0x1c7))/0x6*(-parseInt(_0x52b916(0x1d2))/0x7)+parseInt(_0x52b916(0x1bd))/0x8+parseInt(_0x52b916(0x1be))/0x9*(parseInt(_0x52b916(0x1d3))/0xa)+parseInt(_0x52b916(0x1db))/0xb*(-parseInt(_0x52b916(0x1d9))/0xc);if(_0xef3114===_0x2ec375)break;else _0x41a4e4['push'](_0x41a4e4['shift']());}catch(_0x45ebec){_0x41a4e4['push'](_0x41a4e4['shift']());}}}(a53_0x48eb,0x7b617));function a53_0x33d8(_0x2f97e1,_0x258692){_0x2f97e1=_0x2f97e1-0x1bd;const _0x48ebdf=a53_0x48eb();let _0x33d88f=_0x48ebdf[_0x2f97e1];return _0x33d88f;}import{logger}from'../../utils/logger.js';function a53_0x48eb(){const _0x2ef24e=['Clear\x20command\x20history\x20logs','clearLogs','6jXBEhD','3096055YFoVHZ','success','logs','*\x20Logs\x20cleared','\x20\x20\x20Details:\x20','*\x20Lovrabet\x20CLI\x20logs:\x0a','duration','keys','View\x20command\x20history\x20logs','2991309waAkOU','1319549KlZeRQ','832380bHnlUH','level','write','log','details','4wNdfgo','56364fOCBoa','command','1969SeuxBF','stringify','clear','2884280kFdevH','27Dosaby','en-US','toLocaleString','1383852pzoSSf','length','timestamp','1MMawtK'];a53_0x48eb=function(){return _0x2ef24e;};return a53_0x48eb();}function printLogs(_0x3b2fe6){const _0x2e8f5e=a53_0x33d8;if(_0x3b2fe6[_0x2e8f5e(0x1c2)]===0x0){console[_0x2e8f5e(0x1d6)]('*\x20No\x20logs\x20found');return;}console[_0x2e8f5e(0x1d6)](_0x2e8f5e(0x1cd)),_0x3b2fe6['forEach']((_0x327276,_0x1496ef)=>{const _0x3c02c8=_0x2e8f5e,_0x40ce77=new Date(_0x327276[_0x3c02c8(0x1c3)])[_0x3c02c8(0x1c0)](_0x3c02c8(0x1bf)),_0xd06125=_0x327276[_0x3c02c8(0x1d4)]===_0x3c02c8(0x1c9)?'√':_0x327276['level']==='error'?'×':_0x327276['level']==='warn'?'!':'i';console[_0x3c02c8(0x1d6)](_0x1496ef+0x1+'.\x20'+_0xd06125+'\x20['+_0x327276[_0x3c02c8(0x1da)]+']\x20'+_0x327276['message']),console['log']('\x20\x20\x20Time:\x20'+_0x40ce77),_0x327276[_0x3c02c8(0x1ce)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x327276[_0x3c02c8(0x1ce)]+'ms'),_0x327276['details']&&Object[_0x3c02c8(0x1cf)](_0x327276[_0x3c02c8(0x1d7)])[_0x3c02c8(0x1c2)]>0x0&&console[_0x3c02c8(0x1d6)](_0x3c02c8(0x1cc)+JSON[_0x3c02c8(0x1dc)](_0x327276[_0x3c02c8(0x1d7)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a53_0xb1b09e(0x1ca),'command':'show','description':a53_0xb1b09e(0x1d0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3a2b8f){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a53_0xb1b09e(0x1ca),'command':a53_0xb1b09e(0x1dd),'description':a53_0xb1b09e(0x1c5),'risk':a53_0xb1b09e(0x1d5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5ba3bd){const _0x2f37c4=a53_0xb1b09e;return logger[_0x2f37c4(0x1c6)](),console[_0x2f37c4(0x1d6)](_0x2f37c4(0x1cb)),{'ok':!![]};}}];
|