@lovrabet/rabetbase-cli 2.0.4-beta.5 → 2.0.5
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
|
-
const
|
|
1
|
+
const a36_0x165ff5=a36_0x478b;(function(_0x4340f3,_0x58d2c6){const _0x5dc903=a36_0x478b,_0x2b7b74=_0x4340f3();while(!![]){try{const _0x1b6dab=-parseInt(_0x5dc903(0x144))/0x1+parseInt(_0x5dc903(0x14d))/0x2+parseInt(_0x5dc903(0x14f))/0x3+parseInt(_0x5dc903(0x151))/0x4+-parseInt(_0x5dc903(0x155))/0x5+parseInt(_0x5dc903(0x14c))/0x6+parseInt(_0x5dc903(0x157))/0x7*(-parseInt(_0x5dc903(0x152))/0x8);if(_0x1b6dab===_0x58d2c6)break;else _0x2b7b74['push'](_0x2b7b74['shift']());}catch(_0x19d1ca){_0x2b7b74['push'](_0x2b7b74['shift']());}}}(a36_0x3d9a,0xdd4f9));function a36_0x478b(_0xd87b0b,_0xbb4de4){_0xd87b0b=_0xd87b0b-0x142;const _0x3d9a03=a36_0x3d9a();let _0x478bce=_0x3d9a03[_0xd87b0b];return _0x478bce;}function a36_0x3d9a(){const _0x3bee3a=['bool','boolean','codegen','name','string','read','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','8685612KelsbN','596264YBlNpG','sdk','2874726iEKnSz','operation','6940416rVOjQl','10725704fynxTh','str','appCode','4012705gszVfm','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','14qYToBN','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Omit\x20import\x20statements\x20from\x20generated\x20code','code','skip-imports','48624YqgWQO'];a36_0x3d9a=function(){return _0x3bee3a;};return a36_0x3d9a();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a36_0x165ff5(0x147),'command':a36_0x165ff5(0x14e),'description':a36_0x165ff5(0x14b),'risk':a36_0x165ff5(0x14a),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x165ff5(0x149),'description':a36_0x165ff5(0x156)},{'name':a36_0x165ff5(0x150),'type':a36_0x165ff5(0x149),'required':!![],'description':a36_0x165ff5(0x158)},{'name':a36_0x165ff5(0x143),'type':a36_0x165ff5(0x146),'description':a36_0x165ff5(0x159)}],async 'execute'(_0xe93cad){const _0x5e2bed=a36_0x165ff5,{dataset:_0x1b1680,operation:_0x4ec757}=await getOperationDetail(_0xe93cad[_0x5e2bed(0x154)],_0xe93cad[_0x5e2bed(0x153)]('code'),_0xe93cad['str']('operation')),_0x3eccd6=generateSdkCode(_0x1b1680,_0x4ec757,{'includeImports':!_0xe93cad[_0x5e2bed(0x145)](_0x5e2bed(0x143))});return{'ok':!![],'data':{'dataset':{'name':_0x1b1680[_0x5e2bed(0x148)],'code':_0x1b1680[_0x5e2bed(0x142)],'tableName':_0x1b1680['tableName']},'operation':_0xe93cad[_0x5e2bed(0x153)](_0x5e2bed(0x150)),'code':_0x3eccd6}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x31d0bc=a37_0x59ff;function a37_0x3613(){const _0x49f971=['100RnBzCi','bool','sdk','sqlcode','11XwPGmE','14DZfHRX','appCode','codegen','91671Trzbov','sql','8RfQcnH','bff','target','821009zmbKnR','236997aZhUZD','Omit\x20import\x20statements\x20from\x20generated\x20code','str','5DLtLZJ','140346GkgZOg','1374678jmDVQt','sqlName','sqlCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','string','818332UcMgSQ','no-imports','145596jOSHAh'];a37_0x3613=function(){return _0x49f971;};return a37_0x3613();}(function(_0x2bdd20,_0xe0ec8d){const _0x5f4be6=a37_0x59ff,_0x1c10be=_0x2bdd20();while(!![]){try{const _0x578eaf=parseInt(_0x5f4be6(0x111))/0x1+parseInt(_0x5f4be6(0x104))/0x2*(parseInt(_0x5f4be6(0x107))/0x3)+parseInt(_0x5f4be6(0xfc))/0x4*(parseInt(_0x5f4be6(0x110))/0x5)+-parseInt(_0x5f4be6(0x112))/0x6+-parseInt(_0x5f4be6(0x10c))/0x7*(-parseInt(_0x5f4be6(0x109))/0x8)+parseInt(_0x5f4be6(0x10d))/0x9*(-parseInt(_0x5f4be6(0xff))/0xa)+parseInt(_0x5f4be6(0x103))/0xb*(-parseInt(_0x5f4be6(0xfe))/0xc);if(_0x578eaf===_0xe0ec8d)break;else _0x1c10be['push'](_0x1c10be['shift']());}catch(_0x4380df){_0x1c10be['push'](_0x1c10be['shift']());}}}(a37_0x3613,0x29e13));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x59ff(_0x2a5c3b,_0x292e0c){_0x2a5c3b=_0x2a5c3b-0xfa;const _0x361375=a37_0x3613();let _0x59ff0c=_0x361375[_0x2a5c3b];return _0x59ff0c;}import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a37_0x31d0bc(0x106),'command':a37_0x31d0bc(0x108),'description':a37_0x31d0bc(0x115),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x31d0bc(0x10b),'type':a37_0x31d0bc(0xfb),'description':a37_0x31d0bc(0xfa),'default':a37_0x31d0bc(0x101),'enum':['sdk',a37_0x31d0bc(0x10a)]},{'name':'no-imports','type':'boolean','description':a37_0x31d0bc(0x10e)}],async 'execute'(_0x1d2a35){const _0x1eb5a1=a37_0x31d0bc,_0x36bde7=await getSqlQueryInfo(_0x1d2a35[_0x1eb5a1(0x105)],_0x1d2a35[_0x1eb5a1(0x10f)](_0x1eb5a1(0x102))),_0x167457=_0x1d2a35[_0x1eb5a1(0x10f)](_0x1eb5a1(0x10b))||_0x1eb5a1(0x101),_0x23c371=generateSqlCodeTemplate(_0x36bde7,{'target':_0x167457,'includeImports':!_0x1d2a35[_0x1eb5a1(0x100)](_0x1eb5a1(0xfd))});return{'ok':!![],'data':{'sqlCode':_0x36bde7[_0x1eb5a1(0x114)],'sqlName':_0x36bde7[_0x1eb5a1(0x113)],'target':_0x167457,'code':_0x23c371}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x500c29,_0x5231fc){const _0x4db55c=a38_0x39ed,_0x599153=_0x500c29();while(!![]){try{const _0x41ba28=-parseInt(_0x4db55c(0x107))/0x1*(-parseInt(_0x4db55c(0x121))/0x2)+-parseInt(_0x4db55c(0x122))/0x3+-parseInt(_0x4db55c(0x101))/0x4+parseInt(_0x4db55c(0x106))/0x5*(parseInt(_0x4db55c(0x109))/0x6)+-parseInt(_0x4db55c(0x118))/0x7*(-parseInt(_0x4db55c(0x10b))/0x8)+parseInt(_0x4db55c(0x112))/0x9+-parseInt(_0x4db55c(0x105))/0xa;if(_0x41ba28===_0x5231fc)break;else _0x599153['push'](_0x599153['shift']());}catch(_0x5bbefb){_0x599153['push'](_0x599153['shift']());}}}(a38_0x411c,0x70280));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x39ed(_0x32a289,_0x3cf129){_0x32a289=_0x32a289-0x100;const _0x411c8d=a38_0x411c();let _0x39edd9=_0x411c8d[_0x32a289];return _0x39edd9;}import a38_0x1057ab from'chalk';function a38_0x411c(){const _0x2144a4=['includes','message','App\x20Code:','3073lgokQS','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','valid','skip','gray','find','\x0a无法获取远程应用列表,请手动输入。','log','\x20\x20(','8AKybZg','685398WRaWHq','custom','16276ZlqnGk','appCode','length','无法获取远程应用列表,请手动输入。','7613220yFQwHa','110kGXmvP','170218SCaeoT','yellow','71994Bvrqmp','map','384MtLUbe','appName','✎\x20自定义输入\x20appcode','正在获取可用应用列表...','\x0a未找到可用应用。','trim','manual','4385943RgGpYk','未找到可用应用。','请选择要绑定的应用:'];a38_0x411c=function(){return _0x2144a4;};return a38_0x411c();}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 _0x5b3663=a38_0x39ed,_0x377434=await input({'message':'请输入\x20App\x20Code:','validate':_0x5b669e=>{const _0x295503=a38_0x39ed,_0x38a575=validateAppcode(_0x5b669e[_0x295503(0x110)]());return _0x38a575[_0x295503(0x11a)]||_0x38a575[_0x295503(0x116)]||'Invalid\x20App\x20Code';}});return _0x377434[_0x5b3663(0x110)]();}export async function promptAppSelection(_0x485c46){const _0x1fde08=a38_0x39ed,_0x581dd7=[{'name':a38_0x1057ab[_0x1fde08(0x108)](_0x1fde08(0x10d)),'value':-0x1},..._0x485c46[_0x1fde08(0x10a)]((_0x32786e,_0x143079)=>({'name':_0x32786e[_0x1fde08(0x10c)]+'\x20\x20'+a38_0x1057ab['gray']('('+_0x32786e['appCode']+')'),'value':_0x143079}))],_0xe90421=await checkbox({'message':'获取到\x20'+a38_0x1057ab['cyan'](_0x485c46[_0x1fde08(0x103)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x581dd7,'loop':![]});if(_0xe90421[_0x1fde08(0x115)](-0x1))return _0x1fde08(0x100);if(_0xe90421[_0x1fde08(0x103)]===0x0)return _0x1fde08(0x100);return _0xe90421['map'](_0x329335=>_0x485c46[_0x329335]);}export async function promptSingleAppSelection(_0x3c64a2){const _0x534911=a38_0x39ed,_0x12e22f=[{'name':a38_0x1057ab[_0x534911(0x11c)](_0x534911(0x119)),'value':_0x534911(0x11b)},{'name':a38_0x1057ab[_0x534911(0x108)]('✎\x20自定义输入\x20appcode'),'value':_0x534911(0x100)},..._0x3c64a2[_0x534911(0x10a)](_0x1d6591=>({'name':_0x1d6591[_0x534911(0x10c)]+'\x20\x20'+a38_0x1057ab['gray']('('+_0x1d6591[_0x534911(0x102)]+')'),'value':_0x1d6591['appCode']}))],_0x5f46b0=await select({'message':_0x534911(0x114),'choices':_0x12e22f});if(_0x5f46b0===_0x534911(0x11b))return _0x534911(0x11b);if(_0x5f46b0===_0x534911(0x100))return _0x534911(0x100);return _0x3c64a2[_0x534911(0x11d)](_0x47110a=>_0x47110a[_0x534911(0x102)]===_0x5f46b0);}export async function selectSingleAppcode(_0x333400){const _0x51edc1=a38_0x39ed;if(!_0x333400)return console['log'](a38_0x1057ab[_0x51edc1(0x11c)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x51edc1(0x11f)](_0x51edc1(0x10e));let _0x5a3123;try{_0x5a3123=await withActiveCookie(_0x333400,()=>listRemoteApps());}catch(_0x1033fb){console['log'](a38_0x1057ab['yellow'](_0x51edc1(0x104)));if(_0x1033fb instanceof Error)console[_0x51edc1(0x11f)](a38_0x1057ab['gray'](_0x51edc1(0x120)+_0x1033fb[_0x51edc1(0x116)]+')'));return _fallbackOrSkip();}if(_0x5a3123['length']===0x0)return console[_0x51edc1(0x11f)](a38_0x1057ab[_0x51edc1(0x108)](_0x51edc1(0x113))),_fallbackOrSkip();const _0x29d106=await promptSingleAppSelection(_0x5a3123);if(_0x29d106===_0x51edc1(0x11b))return'';if(_0x29d106===_0x51edc1(0x100))return promptCustomAppcode();return _0x29d106[_0x51edc1(0x102)];}export async function selectMultipleApps(_0xe55872){const _0x1f7153=a38_0x39ed;console['log'](_0x1f7153(0x10e));let _0xa6bd39;try{_0xa6bd39=await withActiveCookie(_0xe55872,()=>listRemoteApps());}catch(_0x35984b){console[_0x1f7153(0x11f)](_0x1f7153(0x11e));if(_0x35984b instanceof Error)console['log']('\x20\x20('+_0x35984b[_0x1f7153(0x116)]+')');return'custom';}if(_0xa6bd39['length']===0x0)return console[_0x1f7153(0x11f)](_0x1f7153(0x10f)),_0x1f7153(0x100);return promptAppSelection(_0xa6bd39);}async function _fallbackOrSkip(){const _0x56d9b5=a38_0x39ed,_0x477442=await select({'message':_0x56d9b5(0x117),'choices':[{'name':a38_0x1057ab[_0x56d9b5(0x11c)]('(跳过,稍后配置)'),'value':_0x56d9b5(0x11b)},{'name':a38_0x1057ab[_0x56d9b5(0x108)]('✎\x20手动输入'),'value':_0x56d9b5(0x111)}]});if(_0x477442===_0x56d9b5(0x11b))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x159778=a39_0x5782;(function(_0x2f578c,_0x41c375){const _0x4b3a66=a39_0x5782,_0xd1c047=_0x2f578c();while(!![]){try{const _0x4daa8a=parseInt(_0x4b3a66(0x10d))/0x1+-parseInt(_0x4b3a66(0x108))/0x2+parseInt(_0x4b3a66(0x10e))/0x3+parseInt(_0x4b3a66(0x10f))/0x4*(-parseInt(_0x4b3a66(0x106))/0x5)+-parseInt(_0x4b3a66(0x10a))/0x6*(parseInt(_0x4b3a66(0x114))/0x7)+parseInt(_0x4b3a66(0x109))/0x8*(parseInt(_0x4b3a66(0x113))/0x9)+parseInt(_0x4b3a66(0x10c))/0xa;if(_0x4daa8a===_0x41c375)break;else _0xd1c047['push'](_0xd1c047['shift']());}catch(_0x45d4ca){_0xd1c047['push'](_0xd1c047['shift']());}}}(a39_0x90d3,0x3446b));function a39_0x5782(_0x1bfb01,_0x2a5692){_0x1bfb01=_0x1bfb01-0x106;const _0x90d389=a39_0x90d3();let _0x578202=_0x90d389[_0x1bfb01];return _0x578202;}export const CODE_FLAG={'name':'code','type':a39_0x159778(0x107),'required':!![],'description':a39_0x159778(0x10b),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a39_0x159778(0x116)}};function a39_0x90d3(){const _0x102d6a=['9LRTCTQ','133Anwotr','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','5ntQLDG','string','103254cHkZXs','2176216kGGYOa','104478XzbnAy','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1109270wsfuQV','202848OMEPFp','825894TCQEEd','1058012hutxBr','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a39_0x90d3=function(){return _0x102d6a;};return a39_0x90d3();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a39_0x159778(0x112),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x159778(0x115)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x159778(0x111),'type':'string','required':![],'description':a39_0x159778(0x110)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a40_0x51f4(){const _0x3e550f=['1320894eBUdfK','377754SXakzC','5023872OysHAJ','trim','4087204MxnpnU','test','20VWrNcE','135OCmaxi','6487474bJcvEu','2229pDrskB','2570NduKjI','App\x20Code\x20cannot\x20be\x20empty','826910spcJQD'];a40_0x51f4=function(){return _0x3e550f;};return a40_0x51f4();}(function(_0x561960,_0x258c76){const _0x524237=a40_0x4dde,_0x4b91be=_0x561960();while(!![]){try{const _0x505f8b=parseInt(_0x524237(0xfb))/0x1+parseInt(_0x524237(0xf7))/0x2*(parseInt(_0x524237(0xf6))/0x3)+parseInt(_0x524237(0xfe))/0x4+-parseInt(_0x524237(0xf3))/0x5*(parseInt(_0x524237(0xfa))/0x6)+parseInt(_0x524237(0xf5))/0x7+-parseInt(_0x524237(0xfc))/0x8+-parseInt(_0x524237(0xf4))/0x9*(parseInt(_0x524237(0xf9))/0xa);if(_0x505f8b===_0x258c76)break;else _0x4b91be['push'](_0x4b91be['shift']());}catch(_0x3e848a){_0x4b91be['push'](_0x4b91be['shift']());}}}(a40_0x51f4,0x81eb3));function a40_0x4dde(_0x4b8f1c,_0x1d0e1f){_0x4b8f1c=_0x4b8f1c-0xf2;const _0x51f40b=a40_0x51f4();let _0x4ddeb6=_0x51f40b[_0x4b8f1c];return _0x4ddeb6;}export function validateAppcode(_0x46203f){const _0x2e9372=a40_0x4dde,_0x6feb94=_0x46203f[_0x2e9372(0xfd)]();if(!_0x6feb94)return{'valid':![],'message':_0x2e9372(0xf8)};if(_0x6feb94['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x2e9372(0xf2)](_0x6feb94))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41_0x9e3e1c=a41_0x9f4a;(function(_0x163c7f,_0x32a6d8){const _0x210be7=a41_0x9f4a,_0x456f20=_0x163c7f();while(!![]){try{const _0x37b2d2=-parseInt(_0x210be7(0xa0))/0x1+parseInt(_0x210be7(0x9d))/0x2*(-parseInt(_0x210be7(0x9f))/0x3)+-parseInt(_0x210be7(0x91))/0x4*(-parseInt(_0x210be7(0x98))/0x5)+parseInt(_0x210be7(0x94))/0x6*(parseInt(_0x210be7(0x95))/0x7)+parseInt(_0x210be7(0xa3))/0x8+parseInt(_0x210be7(0xa2))/0x9*(-parseInt(_0x210be7(0x97))/0xa)+parseInt(_0x210be7(0x99))/0xb*(parseInt(_0x210be7(0xa4))/0xc);if(_0x37b2d2===_0x32a6d8)break;else _0x456f20['push'](_0x456f20['shift']());}catch(_0x32c646){_0x456f20['push'](_0x456f20['shift']());}}}(a41_0x1cd7,0xa248c));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a41_0x9f4a(_0x12a38b,_0x345738){_0x12a38b=_0x12a38b-0x8d;const _0x1cd711=a41_0x1cd7();let _0x9f4aae=_0x1cd711[_0x12a38b];return _0x9f4aae;}import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x33596a){const _0x374c50=a41_0x9f4a,_0x50f93f=_0x33596a['str'](_0x374c50(0x96));if(!_0x50f93f)throw CliErrors[_0x374c50(0x92)](_0x374c50(0x9e),'Usage:\x20'+CLI_BIN_NAME+_0x374c50(0x93));const _0x3e5332=readConfig(),_0x592d73=_0x50f93f===_0x374c50(0x9c)?_0x374c50(0x9b):_0x50f93f,_0x12abbb=_0x3e5332[_0x592d73];if(_0x12abbb===undefined)throw CliErrors[_0x374c50(0x92)](_0x374c50(0x90)+_0x50f93f);return{'ok':!![],'data':typeof _0x12abbb===_0x374c50(0x8f)?_0x12abbb:{[_0x592d73]:_0x12abbb},'message':typeof _0x12abbb==='object'?undefined:String(_0x12abbb)};}function a41_0x1cd7(){const _0x3e00a8=['244578AsduVR','63CybOzF','key','6407770ZuoUfX','150OzhNbW','418209dXkglh','get','appcode','app','969426zwZSGO','Missing\x20key.','6Snpcmf','782088TrYWRE','read','9fjogKt','9425096GlmYSh','204lFpubJ','Get\x20a\x20config\x20value\x20by\x20key','config','object','Key\x20not\x20found:\x20','115424NMJhNZ','validation','\x20config\x20get\x20--key\x20<key>'];a41_0x1cd7=function(){return _0x3e00a8;};return a41_0x1cd7();}export const configGetDefinition={'service':a41_0x9e3e1c(0x8e),'command':a41_0x9e3e1c(0x9a),'description':a41_0x9e3e1c(0x8d),'risk':a41_0x9e3e1c(0xa1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':'Config\x20key\x20to\x20read','required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18d796,_0x551318){const _0x4c48b9=a42_0x3949,_0x38284b=_0x18d796();while(!![]){try{const _0x469cff=parseInt(_0x4c48b9(0x16b))/0x1*(parseInt(_0x4c48b9(0x173))/0x2)+parseInt(_0x4c48b9(0x16e))/0x3+-parseInt(_0x4c48b9(0x170))/0x4*(-parseInt(_0x4c48b9(0x16f))/0x5)+parseInt(_0x4c48b9(0x172))/0x6*(parseInt(_0x4c48b9(0x174))/0x7)+-parseInt(_0x4c48b9(0x16a))/0x8*(parseInt(_0x4c48b9(0x16c))/0x9)+parseInt(_0x4c48b9(0x16d))/0xa+-parseInt(_0x4c48b9(0x171))/0xb;if(_0x469cff===_0x551318)break;else _0x38284b['push'](_0x38284b['shift']());}catch(_0x345bbf){_0x38284b['push'](_0x38284b['shift']());}}}(a42_0x290d,0x2e36c));import{configListDefinition}from'./list.js';function a42_0x3949(_0x1e245a,_0x45bfd3){_0x1e245a=_0x1e245a-0x16a;const _0x290d6c=a42_0x290d();let _0x394950=_0x290d6c[_0x1e245a];return _0x394950;}import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';function a42_0x290d(){const _0x5f1122=['663158KbkJJK','429520MUYMLI','2176744XcbMdf','1agtnGc','9YTcXsK','3254110vgGAjw','709806vJVRvO','918185yFasnN','8BuIgHh','10819171ZAWFxx','18BniowT'];a42_0x290d=function(){return _0x5f1122;};return a42_0x290d();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a43_0x18e9(_0x3a4b27,_0x729ae2){_0x3a4b27=_0x3a4b27-0x1ec;const _0x1aeab5=a43_0x1aea();let _0x18e9bb=_0x1aeab5[_0x3a4b27];return _0x18e9bb;}const a43_0x2f06ad=a43_0x18e9;(function(_0x4d25c3,_0x52a4ef){const _0x1a120a=a43_0x18e9,_0x740772=_0x4d25c3();while(!![]){try{const _0x2557de=parseInt(_0x1a120a(0x1fa))/0x1*(-parseInt(_0x1a120a(0x1f0))/0x2)+parseInt(_0x1a120a(0x1ec))/0x3+parseInt(_0x1a120a(0x1ef))/0x4*(parseInt(_0x1a120a(0x1ed))/0x5)+parseInt(_0x1a120a(0x1f3))/0x6*(-parseInt(_0x1a120a(0x1ee))/0x7)+parseInt(_0x1a120a(0x1f2))/0x8+-parseInt(_0x1a120a(0x1fc))/0x9+parseInt(_0x1a120a(0x1f7))/0xa;if(_0x2557de===_0x52a4ef)break;else _0x740772['push'](_0x740772['shift']());}catch(_0xf19017){_0x740772['push'](_0x740772['shift']());}}}(a43_0x1aea,0x8bfae));function a43_0x1aea(){const _0x5a24d0=['1372782BGJcek','5sjfkRd','2408ZDPqGx','755024UniLSw','6mgKUeg','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','5232536peyiOc','7320mKywIY','boolean','List\x20all\x20config\x20values','global','1049010nPYDJk','read','config','66828JoaKZf','bool','1906164GBIDeN'];a43_0x1aea=function(){return _0x5a24d0;};return a43_0x1aea();}import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x339b3a){const _0x2fbbb6=a43_0x18e9,_0x141fda=_0x339b3a[_0x2fbbb6(0x1fb)](_0x2fbbb6(0x1f6))?readScopedConfig(_0x2fbbb6(0x1f6)):readConfig();return{'ok':!![],'data':_0x141fda};}export const configListDefinition={'service':a43_0x2f06ad(0x1f9),'command':'list','description':a43_0x2f06ad(0x1f5),'risk':a43_0x2f06ad(0x1f8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a43_0x2f06ad(0x1f4),'description':a43_0x2f06ad(0x1f1),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a44_0x14ad(_0x2a3e14,_0x16eae6){_0x2a3e14=_0x2a3e14-0x152;const _0x3cef99=a44_0x3cef();let _0x14ad2a=_0x3cef99[_0x2a3e14];return _0x14ad2a;}const a44_0x19817e=a44_0x14ad;(function(_0x3e3672,_0x3333ba){const _0x44d88b=a44_0x14ad,_0x22b64a=_0x3e3672();while(!![]){try{const _0x44a3dc=-parseInt(_0x44d88b(0x16b))/0x1*(-parseInt(_0x44d88b(0x172))/0x2)+parseInt(_0x44d88b(0x174))/0x3+-parseInt(_0x44d88b(0x156))/0x4*(-parseInt(_0x44d88b(0x16e))/0x5)+parseInt(_0x44d88b(0x170))/0x6*(-parseInt(_0x44d88b(0x15b))/0x7)+-parseInt(_0x44d88b(0x178))/0x8+parseInt(_0x44d88b(0x169))/0x9+parseInt(_0x44d88b(0x152))/0xa*(-parseInt(_0x44d88b(0x164))/0xb);if(_0x44a3dc===_0x3333ba)break;else _0x22b64a['push'](_0x22b64a['shift']());}catch(_0x3e4b7e){_0x22b64a['push'](_0x22b64a['shift']());}}}(a44_0x3cef,0xa58d1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x379425){const _0x3b90dd=a44_0x14ad,_0x37f9fb=_0x379425[_0x3b90dd(0x15c)](_0x3b90dd(0x16d)),_0x1e77df=_0x379425[_0x3b90dd(0x15c)](_0x3b90dd(0x154));if(!_0x37f9fb)throw CliErrors[_0x3b90dd(0x16a)](_0x3b90dd(0x160),_0x3b90dd(0x153)+CLI_BIN_NAME+_0x3b90dd(0x157));if(_0x1e77df===undefined||_0x1e77df==='')throw CliErrors[_0x3b90dd(0x16a)](_0x3b90dd(0x176),_0x3b90dd(0x153)+CLI_BIN_NAME+_0x3b90dd(0x157));if(_0x1e77df[_0x3b90dd(0x159)]>0x1f4)throw CliErrors['validation'](_0x3b90dd(0x16f));if(_0x37f9fb===_0x3b90dd(0x15f)&&!['online',_0x3b90dd(0x167),_0x3b90dd(0x155)]['includes'](_0x1e77df))throw CliErrors[_0x3b90dd(0x16a)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x37f9fb===_0x3b90dd(0x161)&&!normalizeLocale(_0x1e77df))throw CliErrors['validation'](_0x3b90dd(0x158),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x44c3f9={'global':_0x379425['bool'](_0x3b90dd(0x166))},_0xd8c005=resolveWriteScope(_0x44c3f9),_0x1d42b6=readScopedConfig(_0xd8c005);let _0xc031bf=_0x37f9fb,_0x51ce8f=_0x1e77df;_0x37f9fb===_0x3b90dd(0x168)&&(_0xc031bf=_0x3b90dd(0x163),delete _0x1d42b6['app']);_0x37f9fb===_0x3b90dd(0x163)&&delete _0x1d42b6['app'];_0x37f9fb==='locale'&&(_0x51ce8f=normalizeLocale(_0x1e77df));_0x1d42b6[_0xc031bf]=_0x51ce8f,writeScopedConfig(_0x1d42b6,_0xd8c005);const _0x54345b=_0xd8c005==='global'?_0x3b90dd(0x165):'Project';return{'ok':!![],'message':'✓\x20'+_0x54345b+'\x20'+_0xc031bf+_0x3b90dd(0x15a)+_0x51ce8f};}export const configSetDefinition={'service':'config','command':a44_0x19817e(0x177),'description':a44_0x19817e(0x15d),'risk':a44_0x19817e(0x171),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x19817e(0x16d),'type':a44_0x19817e(0x173),'description':a44_0x19817e(0x175),'required':!![]},{'name':a44_0x19817e(0x154),'type':a44_0x19817e(0x173),'description':a44_0x19817e(0x15e),'required':!![]},{'name':'global','type':a44_0x19817e(0x162),'description':a44_0x19817e(0x16c),'default':![]}],'execute':execute};function a44_0x3cef(){const _0x3c2f0a=['str','Set\x20a\x20config\x20value','Config\x20value','env','Missing\x20key.','locale','boolean','appcode','1658855qOcwPa','Global','global','production','app','11894418IEqJnG','validation','584081onPxAp','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','key','1204005nPZGiW','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','13494gfyjur','write','4uKrbFz','string','3399294zblKkH','Config\x20key','Missing\x20value.','set','8939144LBDalY','110ILtblc','Usage:\x20','value','daily','4ZYKKGM','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Invalid\x20locale\x20value.','length','\x20set\x20to:\x20','1274igmNPD'];a44_0x3cef=function(){return _0x3c2f0a;};return a44_0x3cef();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x3b3084=a45_0xf9df;(function(_0x26ae9d,_0x111f61){const _0x5654fa=a45_0xf9df,_0x278310=_0x26ae9d();while(!![]){try{const _0x25f851=-parseInt(_0x5654fa(0x161))/0x1*(-parseInt(_0x5654fa(0x15b))/0x2)+parseInt(_0x5654fa(0x15a))/0x3*(-parseInt(_0x5654fa(0x15e))/0x4)+parseInt(_0x5654fa(0x168))/0x5+parseInt(_0x5654fa(0x166))/0x6+parseInt(_0x5654fa(0x15d))/0x7+-parseInt(_0x5654fa(0x160))/0x8*(-parseInt(_0x5654fa(0x15f))/0x9)+-parseInt(_0x5654fa(0x163))/0xa*(parseInt(_0x5654fa(0x165))/0xb);if(_0x25f851===_0x111f61)break;else _0x278310['push'](_0x278310['shift']());}catch(_0x29dfd5){_0x278310['push'](_0x278310['shift']());}}}(a45_0x3cce,0x43419));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};function a45_0xf9df(_0x5c457b,_0x1184a0){_0x5c457b=_0x5c457b-0x15a;const _0x3cceeb=a45_0x3cce();let _0xf9dff4=_0x3cceeb[_0x5c457b];return _0xf9dff4;}const LOCALE_MAP={'zh':a45_0x3b3084(0x167),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a45_0x3b3084(0x162),'en-us':a45_0x3b3084(0x162),'en_us':a45_0x3b3084(0x162)};export function normalizeLocale(_0x45072f){if(!_0x45072f)return null;return LOCALE_MAP[_0x45072f['toLowerCase']()]??null;}export function resolveWriteScope(_0x1f08e3){const _0x52b137=a45_0x3b3084;if(_0x1f08e3[_0x52b137(0x15c)])return _0x52b137(0x15c);return isInProject()?_0x52b137(0x164):_0x52b137(0x15c);}function a45_0x3cce(){const _0x3530cd=['1927868IEcuNX','261pqGeoK','26552fiURtS','169NFmqVg','en-US','2380470QaVmjN','project','11RXOOjq','2221074TzpqEp','zh-CN','692230nglpMF','3yztJgi','3698aEtjkN','global','546966cRUBnb'];a45_0x3cce=function(){return _0x3530cd;};return a45_0x3cce();}export function readScopedConfig(_0x40d663){return readConfigFile(resolveWriteConfigPath(_0x40d663));}export function writeScopedConfig(_0x2c59b2,_0x53f99f){writeConfigFile(resolveWriteConfigPath(_0x53f99f),_0x2c59b2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x55ab13=a46_0x2f26;(function(_0x24d4a2,_0x559e5b){const _0x3f9fed=a46_0x2f26,_0x1e295b=_0x24d4a2();while(!![]){try{const _0x2cb457=-parseInt(_0x3f9fed(0x1a5))/0x1+-parseInt(_0x3f9fed(0x1bc))/0x2+parseInt(_0x3f9fed(0x1cc))/0x3+-parseInt(_0x3f9fed(0x1a2))/0x4*(parseInt(_0x3f9fed(0x1c3))/0x5)+-parseInt(_0x3f9fed(0x1cf))/0x6*(-parseInt(_0x3f9fed(0x1b6))/0x7)+-parseInt(_0x3f9fed(0x1ba))/0x8+parseInt(_0x3f9fed(0x1af))/0x9;if(_0x2cb457===_0x559e5b)break;else _0x1e295b['push'](_0x1e295b['shift']());}catch(_0x40ea53){_0x1e295b['push'](_0x1e295b['shift']());}}}(a46_0x4419,0xae2d1));function a46_0x2f26(_0xb0514f,_0x2e3b5c){_0xb0514f=_0xb0514f-0x19f;const _0x4419fd=a46_0x4419();let _0x2f2604=_0x4419fd[_0xb0514f];return _0x2f2604;}function a46_0x4419(){const _0x3f753f=['toFieldLabel','type','fromField','tableComment','2436665hbwkte','dbtableConfig','operations','isArray','337160CaosDs','options','1755280OleHAi','path','code','sourceType','verbose','name','dataset','1690EncCrc','datasetKey','Return\x20full\x20raw\x20detail\x20object','pkField','dataType','method','toTableName','filter','entries','471492JldVKm','tableName','indexes','6WNpeuX','detail','toField','length','required','description','push','boolean','string','6716mUPWuS','dbType','modelCode','1342905dMwgTK','relations','fields','bool','read','modelId','object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','doType','27345222FpmxvJ','deleted','displayName'];a46_0x4419=function(){return _0x3f753f;};return a46_0x4419();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x3ef44c){const _0x5dd601=a46_0x2f26;if(_0x3ef44c[_0x5dd601(0x1b0)])return null;const _0x37a3f8=Boolean(_0x3ef44c[_0x5dd601(0x1b1)]!==undefined||_0x3ef44c[_0x5dd601(0x1ae)]!==undefined);let _0x3f1375={};if(!_0x37a3f8&&typeof _0x3ef44c['extend']===_0x5dd601(0x1a1))try{_0x3f1375=JSON['parse'](_0x3ef44c['extend']);}catch{}const _0x4e2fab=_0x37a3f8?_0x3ef44c['name']:_0x3ef44c[_0x5dd601(0x1be)],_0xdb143d=_0x37a3f8?_0x3ef44c[_0x5dd601(0x1b1)]:_0x3ef44c[_0x5dd601(0x1c1)],_0x28718d=_0x37a3f8?_0x3ef44c[_0x5dd601(0x1ae)]:_0x3ef44c[_0x5dd601(0x1b3)]||_0x3ef44c[_0x5dd601(0x1c7)],_0x29835a=_0x37a3f8?_0x3ef44c[_0x5dd601(0x1c6)]===!![]:_0x3f1375[_0x5dd601(0x1c6)]===!![],_0x5155e3=_0x37a3f8?_0x3ef44c[_0x5dd601(0x1d3)]===!![]:_0x3f1375[_0x5dd601(0x1d3)]===!![],_0x4cb5e7=_0x37a3f8?_0x3ef44c[_0x5dd601(0x1bb)]??null:_0x3f1375[_0x5dd601(0x1bb)]??null,_0x1892ee={'name':_0x4e2fab,'displayName':_0xdb143d||_0x4e2fab,'type':_0x28718d,'dbType':_0x3ef44c[_0x5dd601(0x1a3)],'pk':_0x29835a,'required':_0x5155e3,'description':_0x3ef44c[_0x5dd601(0x1d4)]||undefined};return Array[_0x5dd601(0x1b9)](_0x4cb5e7)&&_0x4cb5e7['length']>0x0&&(_0x1892ee[_0x5dd601(0x1bb)]=_0x4cb5e7),_0x1892ee;}export const datasetDetail={'service':a46_0x55ab13(0x1c2),'command':a46_0x55ab13(0x1d0),'description':a46_0x55ab13(0x1ac),'risk':a46_0x55ab13(0x1a9),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a46_0x55ab13(0x1a1),'description':a46_0x55ab13(0x1ad)},{'name':a46_0x55ab13(0x1c0),'type':a46_0x55ab13(0x1a0),'description':a46_0x55ab13(0x1c5)}],async 'execute'(_0x3e4851){const _0x367a7b=a46_0x55ab13,_0x3ff64f=await getDatasetDetail(_0x3e4851['str'](_0x367a7b(0x1be))),_0x14bd60=_0x3e4851[_0x367a7b(0x1a8)](_0x367a7b(0x1c0));if(_0x14bd60)return{'ok':!![],'data':_0x3ff64f};const _0x1391ed=Array[_0x367a7b(0x1b9)](_0x3ff64f[_0x367a7b(0x1a7)])?_0x3ff64f['fields']:Array[_0x367a7b(0x1b9)](_0x3ff64f['properties'])?_0x3ff64f['properties']:[],_0x275ac1=_0x1391ed['map'](_0xad4e0f=>normalizeField(_0xad4e0f))[_0x367a7b(0x1ca)](_0x4db74f=>_0x4db74f!==null),_0x4d09f3=_0x3ff64f[_0x367a7b(0x1b8)]??{},_0x4f99b1=[];for(const [_0xd224b4,_0x38eb61]of Object[_0x367a7b(0x1cb)](_0x4d09f3)){if(_0x38eb61&&typeof _0x38eb61===_0x367a7b(0x1ab)){const _0x3d15b2=_0x38eb61;_0x3d15b2[_0x367a7b(0x1c8)]&&_0x3d15b2[_0x367a7b(0x1bd)]&&_0x4f99b1[_0x367a7b(0x19f)]({'name':_0xd224b4,'method':_0x3d15b2[_0x367a7b(0x1c8)],'path':_0x3d15b2['path']});}}const _0x3d103a=_0x3ff64f[_0x367a7b(0x1b7)]??{},_0x5c2810=_0x3ff64f[_0x367a7b(0x1c2)]??{};return{'ok':!![],'data':{'id':_0x3ff64f[_0x367a7b(0x1aa)]??_0x3ff64f['id'],'name':_0x3ff64f['name'],'code':_0x3ff64f[_0x367a7b(0x1a4)]||_0x3ff64f[_0x367a7b(0x1be)],'description':_0x3ff64f[_0x367a7b(0x1d4)]||_0x5c2810[_0x367a7b(0x1b5)]||undefined,'source':_0x3ff64f['source']||_0x5c2810[_0x367a7b(0x1bf)],'table':_0x3d103a[_0x367a7b(0x1cd)]||_0x5c2810[_0x367a7b(0x1cd)],'datasetKey':_0x3d103a[_0x367a7b(0x1c4)],'pk':_0x3d103a[_0x367a7b(0x1c6)],'fields':_0x275ac1,'operations':_0x4f99b1,'indexes':Array[_0x367a7b(0x1b9)](_0x5c2810[_0x367a7b(0x1ce)])?_0x5c2810[_0x367a7b(0x1ce)]:[],'relations':Array[_0x367a7b(0x1b9)](_0x3ff64f[_0x367a7b(0x1a6)])?_0x3ff64f[_0x367a7b(0x1a6)]['map'](_0x120c3d=>({'fromField':_0x120c3d[_0x367a7b(0x1b4)],'toDataset':_0x120c3d['toDatasetName'],'toCode':_0x120c3d['toDatasetCode'],'toTable':_0x120c3d[_0x367a7b(0x1c9)],'toField':_0x120c3d[_0x367a7b(0x1d1)],'labelField':_0x120c3d[_0x367a7b(0x1b2)]||undefined})):[],'stats':{'fieldCount':_0x275ac1['length'],'operationCount':_0x4f99b1[_0x367a7b(0x1d2)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15f153,_0x11b0cf){const _0x4bbb0b=a47_0x3a3e,_0x3bfbc3=_0x15f153();while(!![]){try{const _0x11fbf4=parseInt(_0x4bbb0b(0x191))/0x1+parseInt(_0x4bbb0b(0x18f))/0x2+-parseInt(_0x4bbb0b(0x190))/0x3+-parseInt(_0x4bbb0b(0x193))/0x4*(parseInt(_0x4bbb0b(0x192))/0x5)+-parseInt(_0x4bbb0b(0x18d))/0x6*(parseInt(_0x4bbb0b(0x195))/0x7)+-parseInt(_0x4bbb0b(0x18e))/0x8+parseInt(_0x4bbb0b(0x194))/0x9;if(_0x11fbf4===_0x11b0cf)break;else _0x3bfbc3['push'](_0x3bfbc3['shift']());}catch(_0x491b81){_0x3bfbc3['push'](_0x3bfbc3['shift']());}}}(a47_0x1b71,0x4e754));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';function a47_0x3a3e(_0x44e743,_0xfe3aff){_0x44e743=_0x44e743-0x18d;const _0x1b7189=a47_0x1b71();let _0x3a3e94=_0x1b7189[_0x44e743];return _0x3a3e94;}function a47_0x1b71(){const _0xe2c4c2=['679166unMpeD','1005069dexvIz','307075IIluXO','4915McCoop','1108oxQHyB','9709290FZUZvV','592445IWNUwS','12XJbjJl','5020160UMXRbL'];a47_0x1b71=function(){return _0xe2c4c2;};return a47_0x1b71();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0x3cd0(){const _0xfae516=['Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','stats','isForeignKey','toDatasetName','dbName','filter','4041477aRqSTt','dataset','5vwDQRS','654840NyPkki','meta','2430030FTeRgy','8988060hxgYup','toDataset','datasetId','displayName','datasetName','\x20database(s)','Fetched\x20link\x20graph\x20for\x20','4651136UQwAao','dbId','tableComment','LEFT','282LuSVAz','tableName','3702HDmSqH','relations','relationCount','377764eaOrqz','\x20database(s),\x20','name','Link\x20graph:\x20','appCode','toField','string','fields','map','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','isPrimaryKey','7ovSqeo','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','reduce','length','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','dbType','verbose','joinType','\x20dataset(s),\x20','\x20relation(s)','fromField'];a48_0x3cd0=function(){return _0xfae516;};return a48_0x3cd0();}const a48_0x134649=a48_0x3d5b;function a48_0x3d5b(_0x2ad383,_0x19b337){_0x2ad383=_0x2ad383-0x113;const _0x3cd0b2=a48_0x3cd0();let _0x3d5b3d=_0x3cd0b2[_0x2ad383];return _0x3d5b3d;}(function(_0x5f06a2,_0x94fb29){const _0x342c53=a48_0x3d5b,_0x8ad402=_0x5f06a2();while(!![]){try{const _0x32a340=-parseInt(_0x342c53(0x117))/0x1*(parseInt(_0x342c53(0x119))/0x2)+parseInt(_0x342c53(0x13b))/0x3+parseInt(_0x342c53(0x11c))/0x4*(parseInt(_0x342c53(0x13a))/0x5)+parseInt(_0x342c53(0x13d))/0x6*(parseInt(_0x342c53(0x127))/0x7)+parseInt(_0x342c53(0x113))/0x8+parseInt(_0x342c53(0x138))/0x9+-parseInt(_0x342c53(0x13e))/0xa;if(_0x32a340===_0x94fb29)break;else _0x8ad402['push'](_0x8ad402['shift']());}catch(_0x2fd578){_0x8ad402['push'](_0x8ad402['shift']());}}}(a48_0x3cd0,0x4fed7));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':a48_0x134649(0x139),'command':'links','description':a48_0x134649(0x128)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x134649(0x122),'description':a48_0x134649(0x12b)+a48_0x134649(0x132)},{'name':a48_0x134649(0x12d),'type':'boolean','description':a48_0x134649(0x125)}],async 'execute'(_0x238b4e){const _0x56a5ba=a48_0x134649,_0x19b840=_0x238b4e['bool'](_0x56a5ba(0x12d)),{resolved:_0x93d50d,error:_0x309ce8}=await resolveDb(_0x238b4e[_0x56a5ba(0x120)],_0x238b4e['str']('db')||undefined);if(_0x309ce8)return{'ok':![],'message':_0x309ce8};const _0x37def1=_0x93d50d[_0x56a5ba(0x124)](_0x3600a0=>_0x3600a0[_0x56a5ba(0x114)]),_0x49842b=await Promise['all'](_0x37def1[_0x56a5ba(0x124)](_0x195bb2=>getErConfig(_0x238b4e[_0x56a5ba(0x120)],_0x195bb2)));if(_0x19b840)return{'ok':!![],'data':_0x49842b[_0x56a5ba(0x12a)]===0x1?_0x49842b[0x0]:_0x49842b,'message':_0x56a5ba(0x144)+_0x37def1[_0x56a5ba(0x12a)]+_0x56a5ba(0x143)};const _0x53aaa1=_0x49842b[_0x56a5ba(0x124)](_0x3ba19f=>{const _0x5a504e=_0x56a5ba,_0x1b7add=(_0x3ba19f['datasets']??[])['map'](_0x4f814d=>{const _0x322e16=a48_0x3d5b,_0x5b2819=_0x4f814d['fields']?.[_0x322e16(0x137)](_0x332908=>_0x332908[_0x322e16(0x126)])[_0x322e16(0x124)](_0x37f162=>_0x37f162['name'])??[],_0x1f2462=_0x4f814d[_0x322e16(0x123)]?.[_0x322e16(0x137)](_0x3848b7=>_0x3848b7[_0x322e16(0x134)])[_0x322e16(0x124)](_0x20e0ff=>_0x20e0ff[_0x322e16(0x11e)])??[];return{'id':_0x4f814d[_0x322e16(0x140)],'name':_0x4f814d[_0x322e16(0x142)],'code':_0x4f814d['datasetCode'],'table':_0x4f814d[_0x322e16(0x118)],'comment':_0x4f814d[_0x322e16(0x115)]||undefined,'fields':(_0x4f814d['fields']??[])[_0x322e16(0x124)](_0x117cc2=>({'name':_0x117cc2[_0x322e16(0x11e)],'displayName':_0x117cc2[_0x322e16(0x141)],'type':_0x117cc2[_0x322e16(0x12c)],'pk':_0x117cc2[_0x322e16(0x126)],'fk':_0x117cc2['isForeignKey']})),'relations':(_0x4f814d['relations']??[])[_0x322e16(0x137)](_0x5e83b1=>_0x5e83b1[_0x322e16(0x131)]&&_0x5e83b1['toDataset'])[_0x322e16(0x124)](_0x27a7b0=>({'from':_0x27a7b0[_0x322e16(0x131)],'toDataset':_0x27a7b0[_0x322e16(0x135)],'toCode':_0x27a7b0[_0x322e16(0x13f)],'toField':_0x27a7b0[_0x322e16(0x121)],'joinType':_0x27a7b0[_0x322e16(0x12e)]||_0x322e16(0x116)})),'stats':{'fieldCount':_0x4f814d[_0x322e16(0x123)]?.[_0x322e16(0x12a)]??0x0,'pkCount':_0x5b2819['length'],'fkCount':_0x1f2462['length'],'relationCount':_0x4f814d[_0x322e16(0x11a)]?.[_0x322e16(0x12a)]??0x0}};}),_0x2d2160=_0x1b7add[_0x5a504e(0x137)](_0x131430=>_0x131430[_0x5a504e(0x133)][_0x5a504e(0x11b)]>0x0)[_0x5a504e(0x124)](_0x3d698b=>_0x3d698b[_0x5a504e(0x11e)]);return{'db':_0x3ba19f[_0x5a504e(0x13c)]?.[_0x5a504e(0x136)],'dbId':_0x3ba19f[_0x5a504e(0x13c)]?.[_0x5a504e(0x114)],'appCode':_0x3ba19f[_0x5a504e(0x13c)]?.[_0x5a504e(0x120)],'datasetCount':_0x1b7add[_0x5a504e(0x12a)],'connectedDatasets':_0x2d2160,'datasets':_0x1b7add};}),_0x2ea1b5=_0x53aaa1['reduce']((_0x36e9d3,_0x36cc60)=>_0x36e9d3+_0x36cc60['datasetCount'],0x0),_0x1ed81c=_0x53aaa1[_0x56a5ba(0x129)]((_0x5e6488,_0x2dfd4d)=>_0x5e6488+_0x2dfd4d['datasets'][_0x56a5ba(0x129)]((_0x592e35,_0x5d9cbe)=>_0x592e35+_0x5d9cbe[_0x56a5ba(0x133)][_0x56a5ba(0x11b)],0x0),0x0);return{'ok':!![],'data':_0x53aaa1[_0x56a5ba(0x12a)]===0x1?_0x53aaa1[0x0]:{'databases':_0x53aaa1},'message':_0x56a5ba(0x11f)+_0x53aaa1[_0x56a5ba(0x12a)]+_0x56a5ba(0x11d)+_0x2ea1b5+_0x56a5ba(0x12f)+_0x1ed81c+_0x56a5ba(0x130)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x3ee22b=a49_0x57c2;(function(_0x2c2782,_0x1cb28a){const _0x32a23a=a49_0x57c2,_0x4c753b=_0x2c2782();while(!![]){try{const _0x112dcc=-parseInt(_0x32a23a(0x181))/0x1+-parseInt(_0x32a23a(0x165))/0x2+parseInt(_0x32a23a(0x168))/0x3+-parseInt(_0x32a23a(0x17a))/0x4*(-parseInt(_0x32a23a(0x178))/0x5)+parseInt(_0x32a23a(0x16a))/0x6+parseInt(_0x32a23a(0x171))/0x7*(parseInt(_0x32a23a(0x17d))/0x8)+-parseInt(_0x32a23a(0x175))/0x9*(-parseInt(_0x32a23a(0x172))/0xa);if(_0x112dcc===_0x1cb28a)break;else _0x4c753b['push'](_0x4c753b['shift']());}catch(_0x46d7d9){_0x4c753b['push'](_0x4c753b['shift']());}}}(a49_0x9560,0xdb0d8));function a49_0x57c2(_0x2c9b74,_0x18960a){_0x2c9b74=_0x2c9b74-0x162;const _0x9560e2=a49_0x9560();let _0x57c2ec=_0x9560e2[_0x2c9b74];return _0x57c2ec;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function a49_0x9560(){const _0x31343d=['83601hTHxLn','boolean','\x20dataset(s)','5ghrBkm','allFields','797288eqlJdF','name','string','133072iJQMEz','List\x20all\x20datasets\x20with\x20metadata','trim','description','1635280FjznNa','length','str','source','2108316ACUfFV','read','datasetKey','3243975QHczMw','bool','2172156aJhTET','dataset','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','map','pkField','dbtableConfig','code','392nrALaX','1090jKukkz','Found\x20','verbose'];a49_0x9560=function(){return _0x31343d;};return a49_0x9560();}export const datasetList={'service':a49_0x3ee22b(0x16b),'command':'list','description':a49_0x3ee22b(0x17e),'risk':a49_0x3ee22b(0x166),'flags':[{'name':a49_0x3ee22b(0x17b),'type':a49_0x3ee22b(0x17c),'description':a49_0x3ee22b(0x16c)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x3ee22b(0x174),'type':a49_0x3ee22b(0x176),'description':'Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations'}],async 'execute'(_0x4b0adc){const _0x301bb7=a49_0x3ee22b,_0x56f168=_0x4b0adc[_0x301bb7(0x163)](_0x301bb7(0x17b)),_0x57b263=_0x4b0adc[_0x301bb7(0x163)](_0x301bb7(0x170)),_0x46ec9e=_0x4b0adc[_0x301bb7(0x169)](_0x301bb7(0x174)),_0x2728fd=await listDatasets(_0x4b0adc['appCode'],{..._0x56f168&&{'name':_0x56f168},..._0x57b263&&{'code':_0x57b263}}),_0x5a0079=_0x46ec9e?_0x2728fd:_0x2728fd[_0x301bb7(0x16d)](_0x597480=>{const _0x29725a=_0x301bb7,_0x3d2004=_0x597480[_0x29725a(0x16f)]??{};return{'id':_0x597480['id'],'name':_0x597480[_0x29725a(0x17b)],'code':_0x597480[_0x29725a(0x170)],'description':_0x597480[_0x29725a(0x180)],'source':_0x597480[_0x29725a(0x164)],'db':_0x3d2004['dbName'],'table':_0x3d2004['tableName'],'datasetKey':_0x3d2004[_0x29725a(0x167)],'pk':_0x3d2004[_0x29725a(0x16e)],'fields':_0x3d2004[_0x29725a(0x179)]?_0x3d2004['allFields']['split'](',')[_0x29725a(0x16d)](_0x96ae4b=>_0x96ae4b[_0x29725a(0x17f)]()):[]};});return{'ok':!![],'data':{'total':_0x5a0079[_0x301bb7(0x162)],'datasets':_0x5a0079},'message':_0x301bb7(0x173)+_0x5a0079[_0x301bb7(0x162)]+_0x301bb7(0x177)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x1d0640=a50_0x437c;(function(_0x295d63,_0x30994f){const _0x38c88a=a50_0x437c,_0x4c1d17=_0x295d63();while(!![]){try{const _0x511a0a=parseInt(_0x38c88a(0x88))/0x1*(parseInt(_0x38c88a(0x7f))/0x2)+-parseInt(_0x38c88a(0x72))/0x3+parseInt(_0x38c88a(0x76))/0x4+-parseInt(_0x38c88a(0x89))/0x5*(-parseInt(_0x38c88a(0x84))/0x6)+-parseInt(_0x38c88a(0x8b))/0x7+-parseInt(_0x38c88a(0x79))/0x8+-parseInt(_0x38c88a(0x7d))/0x9;if(_0x511a0a===_0x30994f)break;else _0x4c1d17['push'](_0x4c1d17['shift']());}catch(_0x33c5db){_0x4c1d17['push'](_0x4c1d17['shift']());}}}(a50_0x461e,0xd33a1));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x1d0640(0x7c),'command':a50_0x1d0640(0x87),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a50_0x1d0640(0x75),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x1d0640(0x8c),'type':'string','description':a50_0x1d0640(0x73)},{'name':a50_0x1d0640(0x85),'type':a50_0x1d0640(0x8a),'description':a50_0x1d0640(0x7a)},{'name':a50_0x1d0640(0x80),'type':'boolean','description':a50_0x1d0640(0x82)}],async 'execute'(_0x471f52){const _0x539c78=a50_0x1d0640,_0x42ee7b=_0x471f52['str']('code'),_0x2b009c=_0x471f52[_0x539c78(0x81)](_0x539c78(0x85)),_0x503ca3=_0x471f52[_0x539c78(0x86)](_0x539c78(0x80));if(_0x2b009c){const {dataset:_0x5c3944,operation:_0x18a212}=await getOperationDetail(_0x471f52[_0x539c78(0x74)],_0x42ee7b,_0x2b009c);return{'ok':!![],'data':{'dataset':_0x5c3944,'operation':_0x18a212}};}const {dataset:_0x9bfff6,operations:_0x1b0f8e}=await getDatasetOperations(_0x42ee7b);return{'ok':!![],'data':{'dataset':_0x9bfff6,'total':_0x1b0f8e[_0x539c78(0x83)],'operations':_0x503ca3?_0x1b0f8e:_0x1b0f8e['map'](_0x224489=>({'name':_0x224489[_0x539c78(0x78)],'displayName':_0x224489[_0x539c78(0x77)],'type':_0x224489[_0x539c78(0x7e)],'method':_0x224489['method'],'enabled':_0x224489[_0x539c78(0x7b)]}))}};}};function a50_0x437c(_0x30f631,_0x388159){_0x30f631=_0x30f631-0x72;const _0x461e6e=a50_0x461e();let _0x437c02=_0x461e6e[_0x30f631];return _0x437c02;}function a50_0x461e(){const _0x3777f0=['1315449TfbDth','5131955aOyxsx','string','3568257nPuDAf','alias','4004010HbcojF','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','appCode','read','5931656FSGYkC','displayName','name','7094168HVbkHd','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','enabled','dataset','2055393VpGMUY','type','2lduwsv','verbose','str','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','length','6daVrnd','operation','bool','operations'];a50_0x461e=function(){return _0x3777f0;};return a50_0x461e();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x451a9d=a51_0x107f;(function(_0x4e6805,_0x37947a){const _0x3c26b1=a51_0x107f,_0xb8bf6b=_0x4e6805();while(!![]){try{const _0x4caf25=parseInt(_0x3c26b1(0xf4))/0x1+parseInt(_0x3c26b1(0x11e))/0x2*(parseInt(_0x3c26b1(0x11d))/0x3)+-parseInt(_0x3c26b1(0x100))/0x4+-parseInt(_0x3c26b1(0x119))/0x5+-parseInt(_0x3c26b1(0xfa))/0x6*(-parseInt(_0x3c26b1(0x123))/0x7)+parseInt(_0x3c26b1(0x107))/0x8*(-parseInt(_0x3c26b1(0x116))/0x9)+-parseInt(_0x3c26b1(0x11f))/0xa*(-parseInt(_0x3c26b1(0x111))/0xb);if(_0x4caf25===_0x37947a)break;else _0xb8bf6b['push'](_0xb8bf6b['shift']());}catch(_0x25af7f){_0xb8bf6b['push'](_0xb8bf6b['shift']());}}}(a51_0x4bfd,0x43ef1));import a51_0x4c581a from'chalk';import{getCliVersion}from'../utils/version.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a51_0x107f(_0x525dcd,_0x44ab1c){_0x525dcd=_0x525dcd-0xe6;const _0x4bfd46=a51_0x4bfd();let _0x107fcd=_0x4bfd46[_0x525dcd];return _0x107fcd;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a51_0x4bfd(){const _0x2400ba=['doctor','read','(not\x20set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','(set,\x20length=','verbose','log','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','11vYjvnH','(default:\x20pretty)','unknown','\x20(default)','\x20\x20explicitAppName:\x20','819zIhSBD','appcode','\x20doctor','835230zYmfsY','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','114gVcbyc','17666rSOmlw','4038020ppMsFo','\x20\x20runtimeDomain:\x20\x20\x20','gray','✗\x20Not\x20logged\x20in','27727QWyYiF','✓\x20Valid','length','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','riskLevel','apiDir','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Merged\x20Config','bold','currentApp','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','green','slice','(inherit)','(none)','\x20\x20─','\x20\x20Apps','format','red','175960EGVilc','\x20\x20\x20\x20cookie:\x20\x20\x20','keys','platform','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','132PTSkAP','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','cookie','914616WJKDve','repeat','locale','appCode','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','28888ZccEQR'];a51_0x4bfd=function(){return _0x2400ba;};return a51_0x4bfd();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function execute(_0x5a690f){const _0x24dbf0=a51_0x107f,_0x296890=getCliVersion(),_0x1b53a0=GIT_COMMIT!==_0x24dbf0(0x113)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x24dbf0(0xed)](0x0,0xa)+')':VERSION,_0x18d3f6=buildConfigFromFlags({});console[_0x24dbf0(0x10f)](),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0xe7)](CLI_BIN_NAME+_0x24dbf0(0x118))),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0x121)]('─'[_0x24dbf0(0x101)](0x32))),console[_0x24dbf0(0x10f)](_0x24dbf0(0xeb)+_0x1b53a0),console[_0x24dbf0(0x10f)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console['log'](_0x24dbf0(0xfd)+process[_0x24dbf0(0xf7)]+'\x20'+process['arch']),console['log'](),console[_0x24dbf0(0x10f)](a51_0x4c581a['bold']('\x20\x20Config\x20Files')),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xf0)[_0x24dbf0(0x101)](0x1e)));const _0x4d1c1d=getGlobalConfigPath(),_0x5f1028=getProjectConfigPath();console[_0x24dbf0(0x10f)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4d1c1d||a51_0x4c581a['gray']('(not\x20found)'))),console[_0x24dbf0(0x10f)](_0x24dbf0(0x11b)+(_0x5f1028||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xfc)))),console[_0x24dbf0(0x10f)](),console[_0x24dbf0(0x10f)](a51_0x4c581a['bold'](_0x24dbf0(0xe6))),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xf0)[_0x24dbf0(0x101)](0x1e))),console[_0x24dbf0(0x10f)](_0x24dbf0(0x105)+(_0x18d3f6[_0x24dbf0(0x103)]||a51_0x4c581a[_0x24dbf0(0xf3)](_0x24dbf0(0x10a)))),console['log'](_0x24dbf0(0x10b)+_0x18d3f6[_0x24dbf0(0x10c)]),console[_0x24dbf0(0x10f)](_0x24dbf0(0x106)+_0x18d3f6[_0x24dbf0(0x102)]),console[_0x24dbf0(0x10f)](_0x24dbf0(0xfb)+_0x18d3f6[_0x24dbf0(0x129)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x18d3f6['defaultApp']||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xef)))),console[_0x24dbf0(0x10f)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x18d3f6[_0x24dbf0(0xe8)]||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xef)))),console[_0x24dbf0(0x10f)](_0x24dbf0(0x115)+(_0x18d3f6['explicitAppName']||a51_0x4c581a['gray'](_0x24dbf0(0xef)))),console[_0x24dbf0(0x10f)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x18d3f6[_0x24dbf0(0xf2)]||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0x112)))),console['log'](_0x24dbf0(0x11c)+(_0x18d3f6[_0x24dbf0(0xfe)]??a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0x12a)))),console[_0x24dbf0(0x10f)](_0x24dbf0(0x11a)+_0x18d3f6[_0x24dbf0(0x128)]),console[_0x24dbf0(0x10f)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x18d3f6[_0x24dbf0(0x10e)]),console[_0x24dbf0(0x10f)](_0x24dbf0(0xf8)+(_0x18d3f6[_0x24dbf0(0xff)]?a51_0x4c581a['green'](_0x24dbf0(0x10d)+_0x18d3f6[_0x24dbf0(0xff)][_0x24dbf0(0x125)]+')'):a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xef))));const _0x561e9a=Object[_0x24dbf0(0xf6)](_0x18d3f6['apps']);if(_0x561e9a['length']>0x0){console[_0x24dbf0(0x10f)](),console[_0x24dbf0(0x10f)](a51_0x4c581a['bold'](_0x24dbf0(0xf1))),console[_0x24dbf0(0x10f)](a51_0x4c581a['gray']('\x20\x20─'[_0x24dbf0(0x101)](0x1e)));for(const _0x1d49bb of _0x561e9a){const _0x3d6fa3=_0x18d3f6['apps'][_0x1d49bb],_0x2e1891=_0x1d49bb===_0x18d3f6[_0x24dbf0(0xea)],_0x3bb9a9=_0x1d49bb===_0x18d3f6[_0x24dbf0(0xe8)],_0x1eb3ca=_0x3bb9a9?a51_0x4c581a['green']('\x20←\x20current'):'',_0x5c1bbc=_0x2e1891?_0x24dbf0(0x114):'';console[_0x24dbf0(0x10f)]('\x20\x20'+_0x1d49bb+_0x5c1bbc+_0x1eb3ca),console[_0x24dbf0(0x10f)](_0x24dbf0(0x12c)+_0x3d6fa3[_0x24dbf0(0x117)]),console['log'](_0x24dbf0(0x104)+(_0x3d6fa3[_0x24dbf0(0x10c)]||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xee)))),console[_0x24dbf0(0x10f)](_0x24dbf0(0x12b)+(_0x3d6fa3[_0x24dbf0(0x129)]||a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xee)))),console[_0x24dbf0(0x10f)](_0x24dbf0(0xf5)+(_0x3d6fa3[_0x24dbf0(0xff)]?a51_0x4c581a[_0x24dbf0(0xec)]('(set)'):a51_0x4c581a['gray'](_0x24dbf0(0xee))));}}console[_0x24dbf0(0x10f)](),console[_0x24dbf0(0x10f)](a51_0x4c581a['bold']('\x20\x20API\x20Endpoints')),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xf0)[_0x24dbf0(0x101)](0x1e))),console[_0x24dbf0(0x10f)](_0x24dbf0(0xe9)+getApiDomain()),console[_0x24dbf0(0x10f)](_0x24dbf0(0x110)+getUserDomain()),console[_0x24dbf0(0x10f)](_0x24dbf0(0x120)+getRuntimeDomain()),console[_0x24dbf0(0x10f)](),console[_0x24dbf0(0x10f)](a51_0x4c581a[_0x24dbf0(0xe7)]('\x20\x20Auth')),console['log'](a51_0x4c581a[_0x24dbf0(0x121)](_0x24dbf0(0xf0)[_0x24dbf0(0x101)](0x1e)));const _0x1e50ae=_0x18d3f6[_0x24dbf0(0xff)];if(_0x1e50ae){const _0x596fc1=await getIsSessionValid();console[_0x24dbf0(0x10f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x596fc1?a51_0x4c581a[_0x24dbf0(0xec)](_0x24dbf0(0x124)):a51_0x4c581a[_0x24dbf0(0xf3)]('✗\x20Expired')));}else console[_0x24dbf0(0x10f)](_0x24dbf0(0x126)+a51_0x4c581a['red'](_0x24dbf0(0x122)));return console[_0x24dbf0(0x10f)](),{'ok':!![]};}export const doctorDefinition={'service':a51_0x451a9d(0x108),'command':a51_0x451a9d(0x127),'description':a51_0x451a9d(0xf9),'risk':a51_0x451a9d(0x109),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x5d9179=a52_0x444c;(function(_0x501852,_0x393fb1){const _0x3e1fd6=a52_0x444c,_0x39606a=_0x501852();while(!![]){try{const _0x9bf618=-parseInt(_0x3e1fd6(0xc5))/0x1+parseInt(_0x3e1fd6(0xb1))/0x2+-parseInt(_0x3e1fd6(0xc3))/0x3+-parseInt(_0x3e1fd6(0xa8))/0x4*(parseInt(_0x3e1fd6(0xb4))/0x5)+parseInt(_0x3e1fd6(0xc0))/0x6*(parseInt(_0x3e1fd6(0xa3))/0x7)+-parseInt(_0x3e1fd6(0xb7))/0x8*(-parseInt(_0x3e1fd6(0xb8))/0x9)+parseInt(_0x3e1fd6(0xac))/0xa;if(_0x9bf618===_0x393fb1)break;else _0x39606a['push'](_0x39606a['shift']());}catch(_0x387456){_0x39606a['push'](_0x39606a['shift']());}}}(a52_0x5bdf,0x9560c));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a52_0x5bdf(){const _0x1f5d4e=['Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','map','custom','App\x20code\x20to\x20initialize\x20with','7aGGSzK','join','production','env','bool','8yxrCmz','\x20config','Use\x20`','string','2373710KLxTTL','defaultApp','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','appCode','226210HsqJPW','appcode','flagMissing','795155zljrTO','Target\x20environment','Write\x20to\x20global\x20config\x20instead\x20of\x20project','8282056YuXykq','9KzxCPz','\x0a✓\x20Successfully\x20initialized\x20','project','Auto-confirm\x20prompts','length','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','boolean','run','2856894GyyxoY','some','cwd','2786085HqTJWP','apps','3273qqAFQJ','\x20\x20Config:\x20','log','str','toLocaleString','valid','yes','validation','daily','global','\x20\x20Default:\x20','../../init/main.js'];a52_0x5bdf=function(){return _0x1f5d4e;};return a52_0x5bdf();}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(_0x2b9679){return{'appCode':_0x2b9679,'appName':_0x2b9679};}function writeInitConfig(_0x4586d8,_0x5671da,_0x565e4f){const _0x2dbb5f=a52_0x444c,_0x5ec4fc=resolveWriteConfigPath(_0x4586d8),_0x44dbf7={'version':getCliVersion(),'createdAt':new Date()[_0x2dbb5f(0xc9)](),'env':_0x565e4f};if(_0x5671da['length']===0x1)_0x44dbf7['appcode']=_0x5671da[0x0]['appCode'];else{_0x44dbf7[_0x2dbb5f(0xc4)]={};for(const _0x242a6d of _0x5671da){_0x44dbf7[_0x2dbb5f(0xc4)][_0x242a6d[_0x2dbb5f(0xb0)]]={'appcode':_0x242a6d[_0x2dbb5f(0xb0)],'env':_0x565e4f};}_0x44dbf7[_0x2dbb5f(0xad)]=_0x5671da[0x0][_0x2dbb5f(0xb0)];}writeConfigFile(_0x5ec4fc,_0x44dbf7);const _0x1cf505=_0x4586d8===_0x2dbb5f(0xce)?_0x2dbb5f(0xce):_0x2dbb5f(0xba);console['log'](_0x2dbb5f(0xb9)+_0x1cf505+_0x2dbb5f(0xa9)),_0x5671da[_0x2dbb5f(0xbc)]===0x1?console[_0x2dbb5f(0xc7)]('\x20\x20AppCode:\x20'+_0x5671da[0x0][_0x2dbb5f(0xb0)]):(console[_0x2dbb5f(0xc7)]('\x20\x20Apps:\x20'+_0x5671da[_0x2dbb5f(0xa0)](_0x23ca1b=>_0x23ca1b['appCode'])[_0x2dbb5f(0xa4)](',\x20')),console[_0x2dbb5f(0xc7)](_0x2dbb5f(0xcf)+_0x44dbf7['defaultApp'])),console['log']('\x20\x20Env:\x20'+_0x44dbf7['env']),console[_0x2dbb5f(0xc7)](_0x2dbb5f(0xc6)+_0x5ec4fc);}async function runSmartInit(_0x514789){const _0x316c28=a52_0x444c,_0x3f6bb4=process[_0x316c28(0xc2)](),_0x1727e5=_0x514789['bool']('global')?_0x316c28(0xce):_0x316c28(0xba),_0x5aea88=_0x514789[_0x316c28(0xc8)](_0x316c28(0xa6))||_0x316c28(0xa5),_0x362821=_0x514789[_0x316c28(0xc8)](_0x316c28(0xb2))||undefined,_0x60c669=_0x514789[_0x316c28(0xa7)](_0x316c28(0xba));if(_0x60c669){const {initConfig:_0x1431d8}=await import(_0x316c28(0xd0));return _0x1431d8({'appcode':_0x362821,'env':_0x5aea88,'autoYes':_0x514789[_0x316c28(0xa7)](_0x316c28(0xcb))});}if(_0x1727e5===_0x316c28(0xba)){const _0x16fa3d=existsSync(resolve(_0x3f6bb4,NEW_CONFIG_NAME)),_0x5c4de9=LEGACY_CONFIG_NAMES[_0x316c28(0xc1)](_0x2432cf=>existsSync(resolve(_0x3f6bb4,_0x2432cf)));if(_0x5c4de9&&!_0x16fa3d)return console[_0x316c28(0xc7)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x514789['nonInteractive'],{'yes':_0x514789['bool']('yes')});if(_0x16fa3d)throw CliErrors[_0x316c28(0xcc)](_0x316c28(0xbd),_0x316c28(0xaa)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x362821){const _0x236269=validateAppcode(_0x362821);if(!_0x236269[_0x316c28(0xca)])throw CliErrors[_0x316c28(0xcc)](_0x236269['message']);writeInitConfig(_0x1727e5,[syntheticApp(_0x362821)],_0x5aea88);return;}if(_0x514789['nonInteractive'])throw CliErrors[_0x316c28(0xb3)](_0x316c28(0xb2),'Usage:\x20'+CLI_BIN_NAME+_0x316c28(0xae));const _0x436605=getCookie(),_0x543790=await selectMultipleApps(_0x436605),_0x366dac=_0x543790===_0x316c28(0xa1)?[syntheticApp(await promptCustomAppcode())]:_0x543790;writeInitConfig(_0x1727e5,_0x366dac,_0x5aea88);}function a52_0x444c(_0x4afd0f,_0x27d279){_0x4afd0f=_0x4afd0f-0x9f;const _0x5bdfda=a52_0x5bdf();let _0x444c2c=_0x5bdfda[_0x4afd0f];return _0x444c2c;}const initFlags=[{'name':'global','type':'boolean','description':a52_0x5d9179(0xb6),'default':![]},{'name':a52_0x5d9179(0xa6),'type':a52_0x5d9179(0xab),'description':a52_0x5d9179(0xb5),'default':'production','enum':[a52_0x5d9179(0xa5),a52_0x5d9179(0xcd)]},{'name':a52_0x5d9179(0xb2),'type':a52_0x5d9179(0xab),'description':a52_0x5d9179(0xa2)},{'name':a52_0x5d9179(0xba),'type':'boolean','description':a52_0x5d9179(0xaf),'default':![]},{'name':'yes','type':a52_0x5d9179(0xbe),'description':a52_0x5d9179(0xbb),'default':![]}];export const initDefinitions=[{'service':'init','command':a52_0x5d9179(0xbf),'description':a52_0x5d9179(0x9f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x577ee3){return await runSmartInit(_0x577ee3),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x87854a=a53_0x1374;(function(_0x47ff5a,_0x286f2e){const _0x42bb34=a53_0x1374,_0x1c786e=_0x47ff5a();while(!![]){try{const _0x1bb7f0=-parseInt(_0x42bb34(0x135))/0x1+parseInt(_0x42bb34(0x12c))/0x2+parseInt(_0x42bb34(0x148))/0x3*(parseInt(_0x42bb34(0x13c))/0x4)+parseInt(_0x42bb34(0x145))/0x5+-parseInt(_0x42bb34(0x136))/0x6+-parseInt(_0x42bb34(0x12e))/0x7+-parseInt(_0x42bb34(0x141))/0x8*(parseInt(_0x42bb34(0x131))/0x9);if(_0x1bb7f0===_0x286f2e)break;else _0x1c786e['push'](_0x1c786e['shift']());}catch(_0x19aff1){_0x1c786e['push'](_0x1c786e['shift']());}}}(a53_0x5948,0x82352));function a53_0x1374(_0x2b96bc,_0x1e02f1){_0x2b96bc=_0x2b96bc-0x129;const _0x594817=a53_0x5948();let _0x13740f=_0x594817[_0x2b96bc];return _0x13740f;}import{logger}from'../../utils/logger.js';function printLogs(_0x10513c){const _0x23d55f=a53_0x1374;if(_0x10513c[_0x23d55f(0x149)]===0x0){console['log'](_0x23d55f(0x140));return;}console[_0x23d55f(0x146)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x10513c[_0x23d55f(0x13f)]((_0x462fed,_0x5c3c20)=>{const _0x2a2c54=_0x23d55f,_0x312b0c=new Date(_0x462fed[_0x2a2c54(0x130)])[_0x2a2c54(0x12b)](_0x2a2c54(0x142)),_0x2801d3=_0x462fed['level']===_0x2a2c54(0x13e)?'√':_0x462fed[_0x2a2c54(0x144)]==='error'?'×':_0x462fed[_0x2a2c54(0x144)]==='warn'?'!':'i';console['log'](_0x5c3c20+0x1+'.\x20'+_0x2801d3+'\x20['+_0x462fed[_0x2a2c54(0x12d)]+']\x20'+_0x462fed[_0x2a2c54(0x13a)]),console[_0x2a2c54(0x146)]('\x20\x20\x20Time:\x20'+_0x312b0c),_0x462fed['duration']&&console[_0x2a2c54(0x146)](_0x2a2c54(0x134)+_0x462fed[_0x2a2c54(0x137)]+'ms'),_0x462fed[_0x2a2c54(0x13b)]&&Object[_0x2a2c54(0x13d)](_0x462fed['details'])[_0x2a2c54(0x149)]>0x0&&console[_0x2a2c54(0x146)](_0x2a2c54(0x12f)+JSON[_0x2a2c54(0x139)](_0x462fed[_0x2a2c54(0x13b)],null,0x2)),console['log']('');});}function a53_0x5948(){const _0x54dc0d=['3246656soafuE','\x20\x20\x20Details:\x20','timestamp','27aixxQk','write','logs','\x20\x20\x20Duration:\x20','468846eHbcly','2450940SUBRas','duration','*\x20Logs\x20cleared','stringify','message','details','12MvQmnY','keys','success','forEach','*\x20No\x20logs\x20found','193016EKnmOI','en-US','Clear\x20command\x20history\x20logs','level','1271650DHpcVY','log','clearLogs','1053981tAdHNj','length','View\x20command\x20history\x20logs','readLogs','toLocaleString','1277088VGhzCM','command'];a53_0x5948=function(){return _0x54dc0d;};return a53_0x5948();}export const logsDefinitions=[{'service':a53_0x87854a(0x133),'command':'show','description':a53_0x87854a(0x129),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4156bf){const _0x41d33b=a53_0x87854a;return printLogs(logger[_0x41d33b(0x12a)]()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a53_0x87854a(0x143),'risk':a53_0x87854a(0x132),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xfbafa3){const _0x4719f2=a53_0x87854a;return logger[_0x4719f2(0x147)](),console[_0x4719f2(0x146)](_0x4719f2(0x138)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a54_0x279f(){const _0x25a301=['1740233ZYPyRv','85632xOdaEq','20nCwsZT','28RYyDVf','677299aqvNfr','67056SlasYB','428BtGDoE','195XWVcKn','1454370IuRMHp','13335zAdPDV','4669209EaMnih'];a54_0x279f=function(){return _0x25a301;};return a54_0x279f();}function a54_0x567a(_0x35dc07,_0x3113da){_0x35dc07=_0x35dc07-0x7a;const _0x279f59=a54_0x279f();let _0x567abf=_0x279f59[_0x35dc07];return _0x567abf;}(function(_0x211c0a,_0x34e046){const _0x5d738a=a54_0x567a,_0x2c071d=_0x211c0a();while(!![]){try{const _0x52abcd=-parseInt(_0x5d738a(0x7a))/0x1+-parseInt(_0x5d738a(0x7c))/0x2*(-parseInt(_0x5d738a(0x7f))/0x3)+parseInt(_0x5d738a(0x82))/0x4*(-parseInt(_0x5d738a(0x7d))/0x5)+parseInt(_0x5d738a(0x7e))/0x6+parseInt(_0x5d738a(0x84))/0x7*(parseInt(_0x5d738a(0x7b))/0x8)+parseInt(_0x5d738a(0x80))/0x9*(parseInt(_0x5d738a(0x83))/0xa)+-parseInt(_0x5d738a(0x81))/0xb;if(_0x52abcd===_0x34e046)break;else _0x2c071d['push'](_0x2c071d['shift']());}catch(_0x255160){_0x2c071d['push'](_0x2c071d['shift']());}}}(a54_0x279f,0x911a5));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
|