@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/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/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.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/create.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.js +1 -1
- package/lib/commands/logout.js +1 -1
- package/lib/commands/logs.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-upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run.js +1 -1
- package/lib/commands/skill.js +1 -1
- package/lib/commands/smart-init.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-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 +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x477f76=a35_0x6bd9;(function(_0x197893,_0x16ccec){const _0x4230be=a35_0x6bd9,_0x516ca9=_0x197893();while(!![]){try{const _0xf8b7d8=-parseInt(_0x4230be(0x7c))/0x1+parseInt(_0x4230be(0x70))/0x2+-parseInt(_0x4230be(0x7f))/0x3*(parseInt(_0x4230be(0x74))/0x4)+-parseInt(_0x4230be(0x78))/0x5*(-parseInt(_0x4230be(0x6e))/0x6)+parseInt(_0x4230be(0x75))/0x7+parseInt(_0x4230be(0x81))/0x8*(-parseInt(_0x4230be(0x72))/0x9)+parseInt(_0x4230be(0x7a))/0xa*(-parseInt(_0x4230be(0x7d))/0xb);if(_0xf8b7d8===_0x16ccec)break;else _0x516ca9['push'](_0x516ca9['shift']());}catch(_0x4c254e){_0x516ca9['push'](_0x516ca9['shift']());}}}(a35_0x4ca1,0x68da3));function a35_0x6bd9(_0x3c6e95,_0x1be4e1){_0x3c6e95=_0x3c6e95-0x6b;const _0x4ca172=a35_0x4ca1();let _0x6bd9ef=_0x4ca172[_0x3c6e95];return _0x6bd9ef;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a35_0x4ca1(){const _0x1fa77c=['2677048hbjtyh','name','4167UdHQCb','tableName','8jSKhDS','codegen','code','operation','892578sXXfvS','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','1418006mtKcpt','sdk','6429177OYswuP','str','612AsjjsO','1245482WKkLMK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','skip-imports','25UMqjHK','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','10qYCBdn','string','31031EHHpVE'];a35_0x4ca1=function(){return _0x1fa77c;};return a35_0x4ca1();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a35_0x477f76(0x6b),'command':a35_0x477f76(0x71),'description':a35_0x477f76(0x6f),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a35_0x477f76(0x7b),'description':a35_0x477f76(0x76)},{'name':a35_0x477f76(0x6d),'type':a35_0x477f76(0x7b),'required':!![],'description':a35_0x477f76(0x79)},{'name':a35_0x477f76(0x77),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x2fd78c){const _0x17c35f=a35_0x477f76,{dataset:_0x3023a8,operation:_0x26b2f8}=await getOperationDetail(_0x2fd78c['appCode'],_0x2fd78c[_0x17c35f(0x73)](_0x17c35f(0x6c)),_0x2fd78c[_0x17c35f(0x73)](_0x17c35f(0x6d))),_0xd1d4a0=generateSdkCode(_0x3023a8,_0x26b2f8,{'includeImports':!_0x2fd78c['bool'](_0x17c35f(0x77))});return{'ok':!![],'data':{'dataset':{'name':_0x3023a8[_0x17c35f(0x7e)],'code':_0x3023a8[_0x17c35f(0x6c)],'tableName':_0x3023a8[_0x17c35f(0x80)]},'operation':_0x2fd78c['str'](_0x17c35f(0x6d)),'code':_0xd1d4a0}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x4e2271=a36_0x1605;(function(_0x3e5031,_0x2e4794){const _0x2638ba=a36_0x1605,_0x78e40d=_0x3e5031();while(!![]){try{const _0x310340=parseInt(_0x2638ba(0x17d))/0x1*(parseInt(_0x2638ba(0x16d))/0x2)+parseInt(_0x2638ba(0x178))/0x3+-parseInt(_0x2638ba(0x169))/0x4*(parseInt(_0x2638ba(0x16c))/0x5)+-parseInt(_0x2638ba(0x171))/0x6*(parseInt(_0x2638ba(0x17c))/0x7)+-parseInt(_0x2638ba(0x17f))/0x8*(parseInt(_0x2638ba(0x174))/0x9)+parseInt(_0x2638ba(0x173))/0xa+-parseInt(_0x2638ba(0x17b))/0xb*(-parseInt(_0x2638ba(0x16b))/0xc);if(_0x310340===_0x2e4794)break;else _0x78e40d['push'](_0x78e40d['shift']());}catch(_0x5a9242){_0x78e40d['push'](_0x78e40d['shift']());}}}(a36_0x5d8f,0xf027c));function a36_0x1605(_0x119b9f,_0x4f56de){_0x119b9f=_0x119b9f-0x169;const _0x5d8f3d=a36_0x5d8f();let _0x160539=_0x5d8f3d[_0x119b9f];return _0x160539;}function a36_0x5d8f(){const _0x942e98=['codegen','boolean','352OKIjZq','154gjtmre','1iradRz','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','736184PeGQsL','appCode','sdk','no-imports','18604PViESK','sqlcode','1501692vPQkTL','1430oSnQqD','2677778jwsiAL','read','bff','target','395628FFFaRE','Omit\x20import\x20statements\x20from\x20generated\x20code','1080660ZdSfkR','180Hkekbu','str','sqlName','sql','460473BSCxDL'];a36_0x5d8f=function(){return _0x942e98;};return a36_0x5d8f();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a36_0x4e2271(0x179),'command':a36_0x4e2271(0x177),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a36_0x4e2271(0x16e),'flags':[SQLCODE_FLAG,{'name':a36_0x4e2271(0x170),'type':'string','description':a36_0x4e2271(0x17e),'default':a36_0x4e2271(0x181),'enum':[a36_0x4e2271(0x181),a36_0x4e2271(0x16f)]},{'name':'no-imports','type':a36_0x4e2271(0x17a),'description':a36_0x4e2271(0x172)}],async 'execute'(_0x328d1d){const _0x2ddd27=a36_0x4e2271,_0x3cd01e=await getSqlQueryInfo(_0x328d1d[_0x2ddd27(0x180)],_0x328d1d['str'](_0x2ddd27(0x16a))),_0x444b63=_0x328d1d[_0x2ddd27(0x175)](_0x2ddd27(0x170))||_0x2ddd27(0x181),_0x462f55=generateSqlCodeTemplate(_0x3cd01e,{'target':_0x444b63,'includeImports':!_0x328d1d['bool'](_0x2ddd27(0x182))});return{'ok':!![],'data':{'sqlCode':_0x3cd01e['sqlCode'],'sqlName':_0x3cd01e[_0x2ddd27(0x176)],'target':_0x444b63,'code':_0x462f55}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44e6ef,_0x2a7fe5){const _0x2b4921=a37_0x1825,_0x1cdbd8=_0x44e6ef();while(!![]){try{const _0x40b7fb=-parseInt(_0x2b4921(0xbd))/0x1+parseInt(_0x2b4921(0xbf))/0x2*(-parseInt(_0x2b4921(0xb9))/0x3)+parseInt(_0x2b4921(0xc6))/0x4+-parseInt(_0x2b4921(0xda))/0x5*(parseInt(_0x2b4921(0xcd))/0x6)+-parseInt(_0x2b4921(0xd0))/0x7+-parseInt(_0x2b4921(0xba))/0x8+parseInt(_0x2b4921(0xd3))/0x9;if(_0x40b7fb===_0x2a7fe5)break;else _0x1cdbd8['push'](_0x1cdbd8['shift']());}catch(_0x279586){_0x1cdbd8['push'](_0x1cdbd8['shift']());}}}(a37_0x201c,0x679d0));import{input,checkbox,select}from'@inquirer/prompts';function a37_0x201c(){const _0x20da10=['无法获取远程应用列表,请手动输入。','1879972kCSmLD','获取到\x20','gray','\x0a未找到可用应用。','log','custom','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','5520MgYJdi','App\x20Code:','yellow','1920800clwEoS','请选择要绑定的应用:','skip','13607622LySoRA','length','message','manual','\x0a无法获取远程应用列表,请手动输入。','appName','✎\x20自定义输入\x20appcode','2335EENvrt','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','(跳过,稍后配置)','899733NsPifG','171192qNCpSo','map','正在获取可用应用列表...','532201qVSQBI','find','2zUuBrY','trim','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appCode','valid','Invalid\x20App\x20Code'];a37_0x201c=function(){return _0x20da10;};return a37_0x201c();}import a37_0x4fd491 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 _0x79fe1a=a37_0x1825,_0xe985c=await input({'message':'请输入\x20App\x20Code:','validate':_0x398b2b=>{const _0x1dbf53=a37_0x1825,_0x3654b0=validateAppcode(_0x398b2b[_0x1dbf53(0xc0)]());return _0x3654b0[_0x1dbf53(0xc3)]||_0x3654b0[_0x1dbf53(0xd5)]||_0x1dbf53(0xc4);}});return _0xe985c[_0x79fe1a(0xc0)]();}export async function promptAppSelection(_0x4102fd){const _0x220918=a37_0x1825,_0x121ed0=[{'name':a37_0x4fd491[_0x220918(0xcf)](_0x220918(0xd9)),'value':-0x1},..._0x4102fd['map']((_0x14546b,_0xf68faf)=>({'name':_0x14546b[_0x220918(0xd8)]+'\x20\x20'+a37_0x4fd491[_0x220918(0xc8)]('('+_0x14546b[_0x220918(0xc2)]+')'),'value':_0xf68faf}))],_0x173e1a=await checkbox({'message':_0x220918(0xc7)+a37_0x4fd491['cyan'](_0x4102fd['length'])+_0x220918(0xcc),'choices':_0x121ed0,'loop':![]});if(_0x173e1a['includes'](-0x1))return _0x220918(0xcb);if(_0x173e1a[_0x220918(0xd4)]===0x0)return _0x220918(0xcb);return _0x173e1a[_0x220918(0xbb)](_0x245447=>_0x4102fd[_0x245447]);}function a37_0x1825(_0x2df1ca,_0x218f00){_0x2df1ca=_0x2df1ca-0xb8;const _0x201cd7=a37_0x201c();let _0x182577=_0x201cd7[_0x2df1ca];return _0x182577;}export async function promptSingleAppSelection(_0x10a7c4){const _0x45dd73=a37_0x1825,_0x42631a=[{'name':a37_0x4fd491['gray'](_0x45dd73(0xdc)),'value':_0x45dd73(0xd2)},{'name':a37_0x4fd491[_0x45dd73(0xcf)]('✎\x20自定义输入\x20appcode'),'value':_0x45dd73(0xcb)},..._0x10a7c4[_0x45dd73(0xbb)](_0x178406=>({'name':_0x178406[_0x45dd73(0xd8)]+'\x20\x20'+a37_0x4fd491[_0x45dd73(0xc8)]('('+_0x178406[_0x45dd73(0xc2)]+')'),'value':_0x178406[_0x45dd73(0xc2)]}))],_0x5ee117=await select({'message':_0x45dd73(0xd1),'choices':_0x42631a});if(_0x5ee117===_0x45dd73(0xd2))return _0x45dd73(0xd2);if(_0x5ee117===_0x45dd73(0xcb))return _0x45dd73(0xcb);return _0x10a7c4[_0x45dd73(0xbe)](_0x49003e=>_0x49003e[_0x45dd73(0xc2)]===_0x5ee117);}export async function selectSingleAppcode(_0x20bfbf){const _0x3d6d97=a37_0x1825;if(!_0x20bfbf)return console[_0x3d6d97(0xca)](a37_0x4fd491['gray'](_0x3d6d97(0xc1))),_fallbackOrSkip();console[_0x3d6d97(0xca)](_0x3d6d97(0xbc));let _0x4d5a84;try{_0x4d5a84=await withActiveCookie(_0x20bfbf,()=>listRemoteApps());}catch(_0x59c144){console[_0x3d6d97(0xca)](a37_0x4fd491[_0x3d6d97(0xcf)](_0x3d6d97(0xc5)));if(_0x59c144 instanceof Error)console[_0x3d6d97(0xca)](a37_0x4fd491['gray'](_0x3d6d97(0xdb)+_0x59c144['message']+')'));return _fallbackOrSkip();}if(_0x4d5a84['length']===0x0)return console[_0x3d6d97(0xca)](a37_0x4fd491[_0x3d6d97(0xcf)]('未找到可用应用。')),_fallbackOrSkip();const _0x53f52c=await promptSingleAppSelection(_0x4d5a84);if(_0x53f52c===_0x3d6d97(0xd2))return'';if(_0x53f52c===_0x3d6d97(0xcb))return promptCustomAppcode();return _0x53f52c[_0x3d6d97(0xc2)];}export async function selectMultipleApps(_0x382a50){const _0x15ded3=a37_0x1825;console[_0x15ded3(0xca)]('正在获取可用应用列表...');let _0x2effff;try{_0x2effff=await withActiveCookie(_0x382a50,()=>listRemoteApps());}catch(_0x16c6d4){console['log'](_0x15ded3(0xd7));if(_0x16c6d4 instanceof Error)console[_0x15ded3(0xca)](_0x15ded3(0xdb)+_0x16c6d4[_0x15ded3(0xd5)]+')');return _0x15ded3(0xcb);}if(_0x2effff[_0x15ded3(0xd4)]===0x0)return console[_0x15ded3(0xca)](_0x15ded3(0xc9)),_0x15ded3(0xcb);return promptAppSelection(_0x2effff);}async function _fallbackOrSkip(){const _0x286d28=a37_0x1825,_0x7abb22=await select({'message':_0x286d28(0xce),'choices':[{'name':a37_0x4fd491[_0x286d28(0xc8)](_0x286d28(0xb8)),'value':_0x286d28(0xd2)},{'name':a37_0x4fd491[_0x286d28(0xcf)]('✎\x20手动输入'),'value':_0x286d28(0xd6)}]});if(_0x7abb22===_0x286d28(0xd2))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x5bc37a=a38_0xa31c;(function(_0x2e6663,_0x42ecc4){const _0x434fa0=a38_0xa31c,_0x2f1ab0=_0x2e6663();while(!![]){try{const _0x834dae=-parseInt(_0x434fa0(0xd1))/0x1+parseInt(_0x434fa0(0xc7))/0x2*(parseInt(_0x434fa0(0xcc))/0x3)+parseInt(_0x434fa0(0xc0))/0x4*(parseInt(_0x434fa0(0xd2))/0x5)+parseInt(_0x434fa0(0xcf))/0x6+parseInt(_0x434fa0(0xc2))/0x7+-parseInt(_0x434fa0(0xd0))/0x8*(parseInt(_0x434fa0(0xc5))/0x9)+parseInt(_0x434fa0(0xc8))/0xa*(-parseInt(_0x434fa0(0xca))/0xb);if(_0x834dae===_0x42ecc4)break;else _0x2f1ab0['push'](_0x2f1ab0['shift']());}catch(_0x24d9d1){_0x2f1ab0['push'](_0x2f1ab0['shift']());}}}(a38_0x278e,0x809cb));function a38_0xa31c(_0x2d3b34,_0x4ef929){_0x2d3b34=_0x2d3b34-0xc0;const _0x278e0e=a38_0x278e();let _0xa31c7c=_0x278e0e[_0x2d3b34];return _0xa31c7c;}export const CODE_FLAG={'name':a38_0x5bc37a(0xc1),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};export const CODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xc1),'type':'string','required':![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};function a38_0x278e(){const _0xbeefd9=['code','1086610GsauCf','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','string','36gNJwVQ','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1506wHcVYV','370UCoeGJ','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','292611jMsZJz','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','3459Aralyj','sqlcode','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','5613906SQRXDS','1588624HzPtvf','176334LIhyyr','55nAzkKi','appcode','190032ImLFyr'];a38_0x278e=function(){return _0xbeefd9;};return a38_0x278e();}export const SQLCODE_FLAG={'name':a38_0x5bc37a(0xcd),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xcb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xd3),'type':'string','required':![],'description':a38_0x5bc37a(0xc3)};export const SQLCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xcd),'type':'string','required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a39_0x304d(_0x1ce8b7,_0x434ee4){_0x1ce8b7=_0x1ce8b7-0x1cf;const _0x1967be=a39_0x1967();let _0x304db8=_0x1967be[_0x1ce8b7];return _0x304db8;}function a39_0x1967(){const _0x3ffe5c=['4476672LSewss','18CWUPEV','3447684oPzVti','trim','116936iVMCRr','3252016YYxmVA','App\x20Code\x20cannot\x20exceed\x20100\x20characters','4GCakCI','1675950deWDEj','2045407yLYMyq','2326865BaIpyI','test','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a39_0x1967=function(){return _0x3ffe5c;};return a39_0x1967();}(function(_0x1c61ad,_0x1551fa){const _0xc5f43f=a39_0x304d,_0x49b0ce=_0x1c61ad();while(!![]){try{const _0x599774=parseInt(_0xc5f43f(0x1d3))/0x1+parseInt(_0xc5f43f(0x1d7))/0x2+-parseInt(_0xc5f43f(0x1d1))/0x3+parseInt(_0xc5f43f(0x1d6))/0x4*(-parseInt(_0xc5f43f(0x1d9))/0x5)+parseInt(_0xc5f43f(0x1cf))/0x6+-parseInt(_0xc5f43f(0x1d8))/0x7+-parseInt(_0xc5f43f(0x1d4))/0x8*(-parseInt(_0xc5f43f(0x1d0))/0x9);if(_0x599774===_0x1551fa)break;else _0x49b0ce['push'](_0x49b0ce['shift']());}catch(_0x5a309e){_0x49b0ce['push'](_0x49b0ce['shift']());}}}(a39_0x1967,0x943f9));export function validateAppcode(_0x25f537){const _0x410f7c=a39_0x304d,_0x42d2a9=_0x25f537[_0x410f7c(0x1d2)]();if(!_0x42d2a9)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x42d2a9['length']>0x64)return{'valid':![],'message':_0x410f7c(0x1d5)};if(!/^[A-Za-z0-9_-]+$/[_0x410f7c(0x1da)](_0x42d2a9))return{'valid':![],'message':_0x410f7c(0x1db)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a40_0x574b(_0x5b7c82,_0x5be1d0){_0x5b7c82=_0x5b7c82-0xdc;const _0x16621f=a40_0x1662();let _0x574bd2=_0x16621f[_0x5b7c82];return _0x574bd2;}const a40_0x189bc1=a40_0x574b;(function(_0x5b4034,_0x24749f){const _0x26e319=a40_0x574b,_0x229cb9=_0x5b4034();while(!![]){try{const _0x33f11e=-parseInt(_0x26e319(0xe3))/0x1+-parseInt(_0x26e319(0xe0))/0x2+parseInt(_0x26e319(0xec))/0x3*(parseInt(_0x26e319(0xeb))/0x4)+-parseInt(_0x26e319(0xe6))/0x5*(parseInt(_0x26e319(0xe5))/0x6)+-parseInt(_0x26e319(0xed))/0x7+parseInt(_0x26e319(0xee))/0x8+-parseInt(_0x26e319(0xef))/0x9*(-parseInt(_0x26e319(0xf1))/0xa);if(_0x33f11e===_0x24749f)break;else _0x229cb9['push'](_0x229cb9['shift']());}catch(_0x276897){_0x229cb9['push'](_0x229cb9['shift']());}}}(a40_0x1662,0xbb5fb));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x1662(){const _0x1406cd=['read','string','1225921VpXENn','Key\x20not\x20found:\x20','2898uTyYjn','3525koAIQX','validation','key','object','Get\x20a\x20config\x20value\x20by\x20key','1176432uqblld','15bJUGyn','1754081iaMxuV','12024952KaxeBm','9OwhwcT','app','30020uoftOZ','Usage:\x20','Config\x20key\x20to\x20read','Missing\x20key.','\x20config\x20get\x20--key\x20<key>','784318QWsYGs'];a40_0x1662=function(){return _0x1406cd;};return a40_0x1662();}async function execute(_0x402fa4){const _0x112a6b=a40_0x574b,_0x4a480a=_0x402fa4['str'](_0x112a6b(0xe8));if(!_0x4a480a)throw CliErrors[_0x112a6b(0xe7)](_0x112a6b(0xde),_0x112a6b(0xdc)+CLI_BIN_NAME+_0x112a6b(0xdf));const _0x138eb0=readConfig(),_0x29f0c0=_0x4a480a===_0x112a6b(0xf0)?'appcode':_0x4a480a,_0x27fc90=_0x138eb0[_0x29f0c0];if(_0x27fc90===undefined)throw CliErrors['validation'](_0x112a6b(0xe4)+_0x4a480a);return{'ok':!![],'data':typeof _0x27fc90===_0x112a6b(0xe9)?_0x27fc90:{[_0x29f0c0]:_0x27fc90},'message':typeof _0x27fc90===_0x112a6b(0xe9)?undefined:String(_0x27fc90)};}export const configGetDefinition={'service':'config','command':'get','description':a40_0x189bc1(0xea),'risk':a40_0x189bc1(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x189bc1(0xe8),'type':a40_0x189bc1(0xe2),'description':a40_0x189bc1(0xdd),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x184b19,_0x1fa213){const _0x3fafe3=a41_0x1cdb,_0x2c6bc9=_0x184b19();while(!![]){try{const _0x7a1bb7=-parseInt(_0x3fafe3(0x1b9))/0x1*(-parseInt(_0x3fafe3(0x1b7))/0x2)+-parseInt(_0x3fafe3(0x1bc))/0x3+parseInt(_0x3fafe3(0x1ba))/0x4+parseInt(_0x3fafe3(0x1b8))/0x5+-parseInt(_0x3fafe3(0x1be))/0x6*(parseInt(_0x3fafe3(0x1bd))/0x7)+parseInt(_0x3fafe3(0x1bb))/0x8*(parseInt(_0x3fafe3(0x1bf))/0x9)+parseInt(_0x3fafe3(0x1c0))/0xa;if(_0x7a1bb7===_0x1fa213)break;else _0x2c6bc9['push'](_0x2c6bc9['shift']());}catch(_0x3c14c9){_0x2c6bc9['push'](_0x2c6bc9['shift']());}}}(a41_0x5a47,0x8fd8d));import{configListDefinition}from'./list.js';function a41_0x1cdb(_0x164e83,_0x2cfbf2){_0x164e83=_0x164e83-0x1b7;const _0x5a4732=a41_0x5a47();let _0x1cdb7c=_0x5a4732[_0x164e83];return _0x1cdb7c;}import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a41_0x5a47(){const _0x3fd018=['7624xlIcJp','2860857YlIkvU','126zMvGlm','214386igCUII','990SPOefL','3636020SVqQQx','4WscuRl','4395865FZeEMT','333001EkdIFw','689468HauXKQ'];a41_0x5a47=function(){return _0x3fd018;};return a41_0x5a47();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a42_0x20bb(_0x42541f,_0x53c8d4){_0x42541f=_0x42541f-0xee;const _0x858d19=a42_0x858d();let _0x20bb81=_0x858d19[_0x42541f];return _0x20bb81;}const a42_0x101639=a42_0x20bb;function a42_0x858d(){const _0x425268=['4221476YOVupl','63jwbtQI','boolean','622466LOQyan','7656624AWHpQl','config','3VVOCjJ','global','10026764vsOJZQ','524280OaGmaW','list','5tjmEDQ','501090spQmto','7picVOj','List\x20all\x20config\x20values','1203949oaQRZH','bool'];a42_0x858d=function(){return _0x425268;};return a42_0x858d();}(function(_0x464228,_0x18f14c){const _0x30ea69=a42_0x20bb,_0x16f2be=_0x464228();while(!![]){try{const _0x2da3c8=-parseInt(_0x30ea69(0xef))/0x1+-parseInt(_0x30ea69(0xf4))/0x2*(-parseInt(_0x30ea69(0xf7))/0x3)+parseInt(_0x30ea69(0xf1))/0x4*(parseInt(_0x30ea69(0xfc))/0x5)+parseInt(_0x30ea69(0xfd))/0x6+-parseInt(_0x30ea69(0xfe))/0x7*(-parseInt(_0x30ea69(0xf5))/0x8)+-parseInt(_0x30ea69(0xf2))/0x9*(-parseInt(_0x30ea69(0xfa))/0xa)+-parseInt(_0x30ea69(0xf9))/0xb;if(_0x2da3c8===_0x18f14c)break;else _0x16f2be['push'](_0x16f2be['shift']());}catch(_0xcf3d5f){_0x16f2be['push'](_0x16f2be['shift']());}}}(a42_0x858d,0xa0d1e));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x2f6b62){const _0x40008f=a42_0x20bb,_0x46f45e=_0x2f6b62[_0x40008f(0xf0)](_0x40008f(0xf8))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x46f45e};}export const configListDefinition={'service':a42_0x101639(0xf6),'command':a42_0x101639(0xfb),'description':a42_0x101639(0xee),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x101639(0xf8),'type':a42_0x101639(0xf3),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a43_0x5723(_0xda0ec1,_0x26327e){_0xda0ec1=_0xda0ec1-0x16c;const _0x1b518e=a43_0x1b51();let _0x5723b2=_0x1b518e[_0xda0ec1];return _0x5723b2;}const a43_0x2066e5=a43_0x5723;function a43_0x1b51(){const _0x4dc305=['string','production','11777513wfNDMJ','Missing\x20value.','613404JqOcoA','25edIwLH','Project','30szdmjZ','includes','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','boolean','env','Config\x20value','bool','Global','value','3941eJZoer','appcode','Usage:\x20','7064ytcqSm','key','52FBwbuJ','Missing\x20key.','app','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','106521oMIgBn','\x20set\x20to:\x20','length','Set\x20a\x20config\x20value','daily','1376480KKGwKC','5891328OssFpE','global','Invalid\x20locale\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','set','validation','write','str','16598vBxkOz','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'];a43_0x1b51=function(){return _0x4dc305;};return a43_0x1b51();}(function(_0x6a5ddf,_0x42cf18){const _0x8481c7=a43_0x5723,_0x29e30a=_0x6a5ddf();while(!![]){try{const _0x1843b3=-parseInt(_0x8481c7(0x176))/0x1*(-parseInt(_0x8481c7(0x17f))/0x2)+-parseInt(_0x8481c7(0x191))/0x3*(-parseInt(_0x8481c7(0x18d))/0x4)+-parseInt(_0x8481c7(0x17d))/0x5*(-parseInt(_0x8481c7(0x17c))/0x6)+-parseInt(_0x8481c7(0x188))/0x7*(parseInt(_0x8481c7(0x18b))/0x8)+parseInt(_0x8481c7(0x16e))/0x9+parseInt(_0x8481c7(0x16d))/0xa+-parseInt(_0x8481c7(0x17a))/0xb;if(_0x1843b3===_0x42cf18)break;else _0x29e30a['push'](_0x29e30a['shift']());}catch(_0x4cd8d6){_0x29e30a['push'](_0x29e30a['shift']());}}}(a43_0x1b51,0x6cecf));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x3b8663){const _0x2a9542=a43_0x5723,_0x4c10a7=_0x3b8663[_0x2a9542(0x175)]('key'),_0x112a7b=_0x3b8663['str'](_0x2a9542(0x187));if(!_0x4c10a7)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x18e),'Usage:\x20'+CLI_BIN_NAME+_0x2a9542(0x181));if(_0x112a7b===undefined||_0x112a7b==='')throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x17b),_0x2a9542(0x18a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x112a7b[_0x2a9542(0x193)]>0x1f4)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x171));if(_0x4c10a7===_0x2a9542(0x183)&&!['online',_0x2a9542(0x179),_0x2a9542(0x16c)][_0x2a9542(0x180)](_0x112a7b))throw CliErrors[_0x2a9542(0x173)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x4c10a7==='locale'&&!normalizeLocale(_0x112a7b))throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x170),_0x2a9542(0x177));const _0x417435={'global':_0x3b8663[_0x2a9542(0x185)](_0x2a9542(0x16f))},_0x42be32=resolveWriteScope(_0x417435),_0x27d899=readScopedConfig(_0x42be32);let _0x248488=_0x4c10a7,_0x16275a=_0x112a7b;_0x4c10a7==='app'&&(_0x248488=_0x2a9542(0x189),delete _0x27d899[_0x2a9542(0x18f)]);_0x4c10a7===_0x2a9542(0x189)&&delete _0x27d899[_0x2a9542(0x18f)];_0x4c10a7==='locale'&&(_0x16275a=normalizeLocale(_0x112a7b));_0x27d899[_0x248488]=_0x16275a,writeScopedConfig(_0x27d899,_0x42be32);const _0x3c0be7=_0x42be32===_0x2a9542(0x16f)?_0x2a9542(0x186):_0x2a9542(0x17e);return{'ok':!![],'message':'✓\x20'+_0x3c0be7+'\x20'+_0x248488+_0x2a9542(0x192)+_0x16275a};}export const configSetDefinition={'service':'config','command':a43_0x2066e5(0x172),'description':a43_0x2066e5(0x194),'risk':a43_0x2066e5(0x174),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x2066e5(0x18c),'type':'string','description':'Config\x20key','required':!![]},{'name':a43_0x2066e5(0x187),'type':a43_0x2066e5(0x178),'description':a43_0x2066e5(0x184),'required':!![]},{'name':a43_0x2066e5(0x16f),'type':a43_0x2066e5(0x182),'description':a43_0x2066e5(0x190),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44_0x1ce9(_0x106b62,_0xa9f956){_0x106b62=_0x106b62-0x1a3;const _0x224ada=a44_0x224a();let _0x1ce969=_0x224ada[_0x106b62];return _0x1ce969;}const a44_0x58e28e=a44_0x1ce9;(function(_0x53f6af,_0x27a7de){const _0x5b6af7=a44_0x1ce9,_0x31182d=_0x53f6af();while(!![]){try{const _0x50c8b9=-parseInt(_0x5b6af7(0x1a6))/0x1+parseInt(_0x5b6af7(0x1a3))/0x2*(parseInt(_0x5b6af7(0x1ad))/0x3)+parseInt(_0x5b6af7(0x1b1))/0x4+-parseInt(_0x5b6af7(0x1ab))/0x5+-parseInt(_0x5b6af7(0x1a5))/0x6*(parseInt(_0x5b6af7(0x1a8))/0x7)+-parseInt(_0x5b6af7(0x1a4))/0x8*(parseInt(_0x5b6af7(0x1b0))/0x9)+-parseInt(_0x5b6af7(0x1a7))/0xa*(-parseInt(_0x5b6af7(0x1aa))/0xb);if(_0x50c8b9===_0x27a7de)break;else _0x31182d['push'](_0x31182d['shift']());}catch(_0x5284ab){_0x31182d['push'](_0x31182d['shift']());}}}(a44_0x224a,0x6023d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x58e28e(0x1ac),'zh-cn':a44_0x58e28e(0x1ac),'zh_cn':a44_0x58e28e(0x1ac),'en':a44_0x58e28e(0x1ae),'en-us':a44_0x58e28e(0x1ae),'en_us':a44_0x58e28e(0x1ae)};export function normalizeLocale(_0x5d0efd){if(!_0x5d0efd)return null;return LOCALE_MAP[_0x5d0efd['toLowerCase']()]??null;}export function resolveWriteScope(_0x1861f8){const _0x34d222=a44_0x58e28e;if(_0x1861f8['global'])return _0x34d222(0x1af);return isInProject()?_0x34d222(0x1a9):_0x34d222(0x1af);}function a44_0x224a(){const _0x2e31fb=['11155iyzzrI','600LPPCpv','4236463VrcaFY','project','255409DkYBfB','1930885aPQTGV','zh-CN','630903mbZVEL','en-US','global','9YgRdGP','477704wUViea','2dhshRi','2612296neNfon','6mMctqc'];a44_0x224a=function(){return _0x2e31fb;};return a44_0x224a();}export function readScopedConfig(_0x2621a3){return readConfigFile(resolveWriteConfigPath(_0x2621a3));}export function writeScopedConfig(_0x4255ee,_0x11de69){writeConfigFile(resolveWriteConfigPath(_0x11de69),_0x4255ee);}
|
package/lib/commands/create.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0xab7906=a45_0x3fe5;function a45_0x239e(){const _0x26de14=['auth','trim','logger','649280fasVvx','nonInteractive','6835293prXdRk','cookie','1266GXvnbz','rabetbase\x20project\x20create\x20[<project-name>]\x20[flags]','Project\x20name','name','../create-app/non-interactive.js','279860rnKAsN','validation','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','35394DkiwiP','901296QXQPdm','28042HitvpL','非交互模式创建项目:\x20','880360BwiroQ','create','appcode','Target\x20environment','12fEuheh','5tAVlqQ','env','string','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','info'];a45_0x239e=function(){return _0x26de14;};return a45_0x239e();}(function(_0x28d542,_0x419b11){const _0x5e1bd9=a45_0x3fe5,_0x2f0da0=_0x28d542();while(!![]){try{const _0x4823df=parseInt(_0x5e1bd9(0x81))/0x1+parseInt(_0x5e1bd9(0x78))/0x2*(-parseInt(_0x5e1bd9(0x70))/0x3)+-parseInt(_0x5e1bd9(0x6d))/0x4*(-parseInt(_0x5e1bd9(0x79))/0x5)+-parseInt(_0x5e1bd9(0x68))/0x6*(-parseInt(_0x5e1bd9(0x72))/0x7)+-parseInt(_0x5e1bd9(0x71))/0x8+-parseInt(_0x5e1bd9(0x66))/0x9+-parseInt(_0x5e1bd9(0x74))/0xa;if(_0x4823df===_0x419b11)break;else _0x2f0da0['push'](_0x2f0da0['shift']());}catch(_0x222c69){_0x2f0da0['push'](_0x2f0da0['shift']());}}}(a45_0x239e,0x8242c));import{createApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';function a45_0x3fe5(_0x3b5e58,_0x5e3f3d){_0x3b5e58=_0x3b5e58-0x65;const _0x239e92=a45_0x239e();let _0x3fe5e1=_0x239e92[_0x3b5e58];return _0x3fe5e1;}const flagDefs=[{'name':a45_0xab7906(0x6b),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x6a)},{'name':a45_0xab7906(0x7a),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x77)},{'name':a45_0xab7906(0x76),'type':'string','description':a45_0xab7906(0x6f)}];export const createCommand={'name':'create','description':'Create\x20a\x20new\x20project','usage':a45_0xab7906(0x69),'flags':flagDefs,async 'run'(_0xc8c59e,_0x14b99e,_0x13e040){const _0xa111a0=a45_0xab7906,_0xb35946=_0x13e040[_0xa111a0(0x6b)]?.[_0xa111a0(0x7f)]()||_0x14b99e[0x0]?.[_0xa111a0(0x7f)](),_0x3a436e=_0x13e040[_0xa111a0(0x7a)],_0x254e86=_0x13e040[_0xa111a0(0x76)];if(_0xc8c59e[_0xa111a0(0x65)]){if(!_0xb35946)throw CliErrors[_0xa111a0(0x6e)](_0xa111a0(0x7c),'Usage:\x20rabetbase\x20create\x20<project-name>\x20[--appcode\x20<code>]\x20[--ci]');_0xc8c59e[_0xa111a0(0x80)][_0xa111a0(0x7d)](_0xa111a0(0x75),_0xa111a0(0x73)+_0xb35946);const {createProjectNonInteractive:_0x30c985}=await import(_0xa111a0(0x6c));await _0x30c985(_0xb35946,_0x3a436e,_0x254e86,_0xc8c59e[_0xa111a0(0x7e)][_0xa111a0(0x67)]);}else await createApp({'projectCode':_0xb35946,'appCode':_0x254e86,'env':_0x3a436e,'cookie':_0xc8c59e[_0xa111a0(0x7e)]['cookie']});}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a46_0x3412(_0xdcdcb9,_0xe4b9b3){_0xdcdcb9=_0xdcdcb9-0x1b8;const _0x5a7735=a46_0x5a77();let _0x34122f=_0x5a7735[_0xdcdcb9];return _0x34122f;}const a46_0x5525cf=a46_0x3412;(function(_0x1a9aa6,_0xdff3df){const _0x2140bf=a46_0x3412,_0x214e62=_0x1a9aa6();while(!![]){try{const _0x42e434=parseInt(_0x2140bf(0x1bf))/0x1+-parseInt(_0x2140bf(0x1cc))/0x2+parseInt(_0x2140bf(0x1d7))/0x3+parseInt(_0x2140bf(0x1d3))/0x4*(-parseInt(_0x2140bf(0x1d8))/0x5)+-parseInt(_0x2140bf(0x1ce))/0x6+parseInt(_0x2140bf(0x1db))/0x7*(parseInt(_0x2140bf(0x1ec))/0x8)+-parseInt(_0x2140bf(0x1d0))/0x9*(-parseInt(_0x2140bf(0x1bd))/0xa);if(_0x42e434===_0xdff3df)break;else _0x214e62['push'](_0x214e62['shift']());}catch(_0x46ebfe){_0x214e62['push'](_0x214e62['shift']());}}}(a46_0x5a77,0x3c494));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x2ee327){const _0x1df60e=a46_0x3412;if(_0x2ee327['deleted'])return null;const _0x4169e9=Boolean(_0x2ee327['displayName']!==undefined||_0x2ee327[_0x1df60e(0x1e5)]!==undefined);let _0x2a365a={};if(!_0x4169e9&&typeof _0x2ee327['extend']===_0x1df60e(0x1e0))try{_0x2a365a=JSON[_0x1df60e(0x1ed)](_0x2ee327[_0x1df60e(0x1e2)]);}catch{}const _0x5b5d53=_0x4169e9?_0x2ee327[_0x1df60e(0x1ef)]:_0x2ee327[_0x1df60e(0x1d2)],_0x8b67f8=_0x4169e9?_0x2ee327[_0x1df60e(0x1e9)]:_0x2ee327['name'],_0x22b661=_0x4169e9?_0x2ee327['doType']:_0x2ee327[_0x1df60e(0x1cb)]||_0x2ee327[_0x1df60e(0x1d6)],_0x3b2853=_0x4169e9?_0x2ee327['pkField']===!![]:_0x2a365a['pkField']===!![],_0x374323=_0x4169e9?_0x2ee327[_0x1df60e(0x1e3)]===!![]:_0x2a365a[_0x1df60e(0x1e3)]===!![],_0x1898df=_0x4169e9?_0x2ee327[_0x1df60e(0x1bc)]??null:_0x2a365a[_0x1df60e(0x1bc)]??null,_0x49ed05={'name':_0x5b5d53,'displayName':_0x8b67f8||_0x5b5d53,'type':_0x22b661,'dbType':_0x2ee327[_0x1df60e(0x1c9)],'pk':_0x3b2853,'required':_0x374323,'description':_0x2ee327[_0x1df60e(0x1e1)]||undefined};return Array[_0x1df60e(0x1c0)](_0x1898df)&&_0x1898df[_0x1df60e(0x1b8)]>0x0&&(_0x49ed05[_0x1df60e(0x1bc)]=_0x1898df),_0x49ed05;}function a46_0x5a77(){const _0x271613=['datasetKey','toFieldLabel','read','path','dbType','modelId','type','370196jGcVSY','toField','2602668ufCJiS','detail','117AYwxIS','method','code','1065028DzvEkr','toDatasetName','tableName','dataType','292587QartTI','5xQXiLt','push','bool','108619ukHNsu','Return\x20full\x20raw\x20detail\x20object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','properties','modelCode','string','description','extend','required','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','doType','toTableName','dataset','verbose','displayName','object','operations','88YJwbLF','parse','indexes','name','length','relations','str','dbtableConfig','options','544590RQIyos','sourceType','155882QsRlAs','isArray','map','toDatasetCode','filter','fields'];a46_0x5a77=function(){return _0x271613;};return a46_0x5a77();}export const datasetDetail={'service':'dataset','command':a46_0x5525cf(0x1cf),'description':a46_0x5525cf(0x1dd),'risk':a46_0x5525cf(0x1c7),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a46_0x5525cf(0x1e0),'description':a46_0x5525cf(0x1e4)},{'name':a46_0x5525cf(0x1e8),'type':'boolean','description':a46_0x5525cf(0x1dc)}],async 'execute'(_0x35e739){const _0x345b5f=a46_0x5525cf,_0x533857=await getDatasetDetail(_0x35e739[_0x345b5f(0x1ba)](_0x345b5f(0x1d2))),_0x1aa2ae=_0x35e739[_0x345b5f(0x1da)](_0x345b5f(0x1e8));if(_0x1aa2ae)return{'ok':!![],'data':_0x533857};const _0x4276cc=Array[_0x345b5f(0x1c0)](_0x533857['fields'])?_0x533857[_0x345b5f(0x1c4)]:Array[_0x345b5f(0x1c0)](_0x533857[_0x345b5f(0x1de)])?_0x533857['properties']:[],_0x4a5f07=_0x4276cc['map'](_0x3343b3=>normalizeField(_0x3343b3))[_0x345b5f(0x1c3)](_0x31cbab=>_0x31cbab!==null),_0x1ba184=_0x533857[_0x345b5f(0x1eb)]??{},_0x19a70c=[];for(const [_0x2ef813,_0x2c413a]of Object['entries'](_0x1ba184)){if(_0x2c413a&&typeof _0x2c413a===_0x345b5f(0x1ea)){const _0x1d0306=_0x2c413a;_0x1d0306[_0x345b5f(0x1d1)]&&_0x1d0306[_0x345b5f(0x1c8)]&&_0x19a70c[_0x345b5f(0x1d9)]({'name':_0x2ef813,'method':_0x1d0306[_0x345b5f(0x1d1)],'path':_0x1d0306[_0x345b5f(0x1c8)]});}}const _0x198ecf=_0x533857[_0x345b5f(0x1bb)]??{},_0x5d3482=_0x533857[_0x345b5f(0x1e7)]??{};return{'ok':!![],'data':{'id':_0x533857[_0x345b5f(0x1ca)]??_0x533857['id'],'name':_0x533857[_0x345b5f(0x1ef)],'code':_0x533857[_0x345b5f(0x1df)]||_0x533857[_0x345b5f(0x1d2)],'description':_0x533857[_0x345b5f(0x1e1)]||_0x5d3482['tableComment']||undefined,'source':_0x533857['source']||_0x5d3482[_0x345b5f(0x1be)],'table':_0x198ecf['tableName']||_0x5d3482[_0x345b5f(0x1d5)],'datasetKey':_0x198ecf[_0x345b5f(0x1c5)],'pk':_0x198ecf['pkField'],'fields':_0x4a5f07,'operations':_0x19a70c,'indexes':Array[_0x345b5f(0x1c0)](_0x5d3482['indexes'])?_0x5d3482[_0x345b5f(0x1ee)]:[],'relations':Array[_0x345b5f(0x1c0)](_0x533857['relations'])?_0x533857[_0x345b5f(0x1b9)][_0x345b5f(0x1c1)](_0x212567=>({'fromField':_0x212567['fromField'],'toDataset':_0x212567[_0x345b5f(0x1d4)],'toCode':_0x212567[_0x345b5f(0x1c2)],'toTable':_0x212567[_0x345b5f(0x1e6)],'toField':_0x212567[_0x345b5f(0x1cd)],'labelField':_0x212567[_0x345b5f(0x1c6)]||undefined})):[],'stats':{'fieldCount':_0x4a5f07[_0x345b5f(0x1b8)],'operationCount':_0x19a70c['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x213174,_0x391349){const _0x2ab5d0=a47_0x3042,_0x15ccf5=_0x213174();while(!![]){try{const _0x2723a4=parseInt(_0x2ab5d0(0xf6))/0x1*(-parseInt(_0x2ab5d0(0xf3))/0x2)+parseInt(_0x2ab5d0(0xf4))/0x3+-parseInt(_0x2ab5d0(0xf7))/0x4+-parseInt(_0x2ab5d0(0xfa))/0x5+-parseInt(_0x2ab5d0(0xf9))/0x6+-parseInt(_0x2ab5d0(0xf8))/0x7+parseInt(_0x2ab5d0(0xf5))/0x8;if(_0x2723a4===_0x391349)break;else _0x15ccf5['push'](_0x15ccf5['shift']());}catch(_0x182325){_0x15ccf5['push'](_0x15ccf5['shift']());}}}(a47_0x538d,0x2ec0f));function a47_0x538d(){const _0x405a0c=['306789jrDIUw','5313736NNoEhh','258xuytsd','116384iPiMBN','1397270wWxpWY','1900788YgDFWC','72545BQEGJF','116nBWweG'];a47_0x538d=function(){return _0x405a0c;};return a47_0x538d();}import{datasetList}from'./list.js';function a47_0x3042(_0x5dff86,_0x52b8ef){_0x5dff86=_0x5dff86-0xf3;const _0x538dc0=a47_0x538d();let _0x30428b=_0x538dc0[_0x5dff86];return _0x30428b;}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
|
-
|
|
1
|
+
function a48_0x2973(){const _0x28ffdd=['tableName','relations','4tbhUnL','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','filter','42218680HkbgLW','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','\x20dataset(s),\x20','tableComment','joinType','Fetched\x20link\x20graph\x20for\x20','dbId','fields','788rKqqdm','7300734Dgndde','6AmcOxQ','string','fromField','532116foDkRx','length','toDatasetName','572285bwefJP','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','toDataset','3243OcDGLF','isPrimaryKey','LEFT','displayName','dbName','isForeignKey','\x20database(s),\x20','1588384nFKXMI','datasetCount','reduce','map','datasets','meta','relationCount','all','\x20relation(s)','stats','\x20database(s)','name','str','appCode','verbose','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasetId','dbType','4296340AFLKOT'];a48_0x2973=function(){return _0x28ffdd;};return a48_0x2973();}function a48_0x15f6(_0x155eed,_0x495c70){_0x155eed=_0x155eed-0x1c1;const _0x2973dc=a48_0x2973();let _0x15f6c5=_0x2973dc[_0x155eed];return _0x15f6c5;}const a48_0x442692=a48_0x15f6;(function(_0x1b297b,_0xd985a2){const _0xdff589=a48_0x15f6,_0xc69e64=_0x1b297b();while(!![]){try{const _0x53056c=parseInt(_0xdff589(0x1cf))/0x1*(-parseInt(_0xdff589(0x1ee))/0x2)+parseInt(_0xdff589(0x1d2))/0x3*(-parseInt(_0xdff589(0x1c7))/0x4)+parseInt(_0xdff589(0x1eb))/0x5*(-parseInt(_0xdff589(0x1c9))/0x6)+-parseInt(_0xdff589(0x1c8))/0x7+-parseInt(_0xdff589(0x1d9))/0x8+-parseInt(_0xdff589(0x1cc))/0x9+parseInt(_0xdff589(0x1f1))/0xa;if(_0x53056c===_0xd985a2)break;else _0xc69e64['push'](_0xc69e64['shift']());}catch(_0x3ea80d){_0xc69e64['push'](_0xc69e64['shift']());}}}(a48_0x2973,0xabfb7));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':'dataset','command':'links','description':a48_0x442692(0x1ef)+a48_0x442692(0x1f2)+a48_0x442692(0x1d0),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x442692(0x1ca),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x442692(0x1e8)},{'name':a48_0x442692(0x1e7),'type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x3545ce){const _0x25b1a5=a48_0x442692,_0x10ad07=_0x3545ce['bool']('verbose'),{resolved:_0x3abb22,error:_0x69708b}=await resolveDb(_0x3545ce[_0x25b1a5(0x1e6)],_0x3545ce[_0x25b1a5(0x1e5)]('db')||undefined);if(_0x69708b)return{'ok':![],'message':_0x69708b};const _0x329d63=_0x3abb22[_0x25b1a5(0x1dc)](_0x1d7119=>_0x1d7119['dbId']),_0x4eca6b=await Promise[_0x25b1a5(0x1e0)](_0x329d63['map'](_0x359546=>getErConfig(_0x3545ce[_0x25b1a5(0x1e6)],_0x359546)));if(_0x10ad07)return{'ok':!![],'data':_0x4eca6b[_0x25b1a5(0x1cd)]===0x1?_0x4eca6b[0x0]:_0x4eca6b,'message':_0x25b1a5(0x1c4)+_0x329d63[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1e3)};const _0x5681d7=_0x4eca6b[_0x25b1a5(0x1dc)](_0x326b68=>{const _0x144ecf=_0x25b1a5,_0x58531b=(_0x326b68['datasets']??[])[_0x144ecf(0x1dc)](_0x4a410f=>{const _0x46ca34=_0x144ecf,_0x29beab=_0x4a410f[_0x46ca34(0x1c6)]?.[_0x46ca34(0x1f0)](_0x112f54=>_0x112f54[_0x46ca34(0x1d3)])[_0x46ca34(0x1dc)](_0xf6a81d=>_0xf6a81d[_0x46ca34(0x1e4)])??[],_0x5d585a=_0x4a410f[_0x46ca34(0x1c6)]?.['filter'](_0x35e7fe=>_0x35e7fe[_0x46ca34(0x1d7)])[_0x46ca34(0x1dc)](_0x302e4c=>_0x302e4c[_0x46ca34(0x1e4)])??[];return{'id':_0x4a410f[_0x46ca34(0x1e9)],'name':_0x4a410f['datasetName'],'code':_0x4a410f['datasetCode'],'table':_0x4a410f[_0x46ca34(0x1ec)],'comment':_0x4a410f[_0x46ca34(0x1c2)]||undefined,'fields':(_0x4a410f[_0x46ca34(0x1c6)]??[])['map'](_0x1f03cb=>({'name':_0x1f03cb[_0x46ca34(0x1e4)],'displayName':_0x1f03cb[_0x46ca34(0x1d5)],'type':_0x1f03cb[_0x46ca34(0x1ea)],'pk':_0x1f03cb[_0x46ca34(0x1d3)],'fk':_0x1f03cb[_0x46ca34(0x1d7)]})),'relations':(_0x4a410f[_0x46ca34(0x1ed)]??[])['filter'](_0x5e5e8c=>_0x5e5e8c[_0x46ca34(0x1cb)]&&_0x5e5e8c[_0x46ca34(0x1d1)])['map'](_0x1e1c03=>({'from':_0x1e1c03[_0x46ca34(0x1cb)],'toDataset':_0x1e1c03[_0x46ca34(0x1ce)],'toCode':_0x1e1c03[_0x46ca34(0x1d1)],'toField':_0x1e1c03['toField'],'joinType':_0x1e1c03[_0x46ca34(0x1c3)]||_0x46ca34(0x1d4)})),'stats':{'fieldCount':_0x4a410f['fields']?.['length']??0x0,'pkCount':_0x29beab[_0x46ca34(0x1cd)],'fkCount':_0x5d585a[_0x46ca34(0x1cd)],'relationCount':_0x4a410f[_0x46ca34(0x1ed)]?.[_0x46ca34(0x1cd)]??0x0}};}),_0x350d28=_0x58531b[_0x144ecf(0x1f0)](_0x20a075=>_0x20a075[_0x144ecf(0x1e2)]['relationCount']>0x0)[_0x144ecf(0x1dc)](_0x9013ce=>_0x9013ce[_0x144ecf(0x1e4)]);return{'db':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1d6)],'dbId':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1c5)],'appCode':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1e6)],'datasetCount':_0x58531b[_0x144ecf(0x1cd)],'connectedDatasets':_0x350d28,'datasets':_0x58531b};}),_0x296224=_0x5681d7[_0x25b1a5(0x1db)]((_0x451517,_0x238b80)=>_0x451517+_0x238b80[_0x25b1a5(0x1da)],0x0),_0x31d655=_0x5681d7[_0x25b1a5(0x1db)]((_0x17a931,_0x209edf)=>_0x17a931+_0x209edf[_0x25b1a5(0x1dd)][_0x25b1a5(0x1db)]((_0x35e39b,_0x3cc49d)=>_0x35e39b+_0x3cc49d[_0x25b1a5(0x1e2)][_0x25b1a5(0x1df)],0x0),0x0);return{'ok':!![],'data':_0x5681d7['length']===0x1?_0x5681d7[0x0]:{'databases':_0x5681d7},'message':'Link\x20graph:\x20'+_0x5681d7[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1d8)+_0x296224+_0x25b1a5(0x1c1)+_0x31d655+_0x25b1a5(0x1e1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x314906=a49_0x4c0a;(function(_0xd35072,_0x241161){const _0x4b43b2=a49_0x4c0a,_0x26ece0=_0xd35072();while(!![]){try{const _0x45faa7=parseInt(_0x4b43b2(0x195))/0x1*(-parseInt(_0x4b43b2(0x18b))/0x2)+parseInt(_0x4b43b2(0x191))/0x3+-parseInt(_0x4b43b2(0x18a))/0x4*(-parseInt(_0x4b43b2(0x18f))/0x5)+parseInt(_0x4b43b2(0x17d))/0x6+-parseInt(_0x4b43b2(0x188))/0x7*(-parseInt(_0x4b43b2(0x17c))/0x8)+parseInt(_0x4b43b2(0x189))/0x9*(parseInt(_0x4b43b2(0x194))/0xa)+-parseInt(_0x4b43b2(0x193))/0xb*(parseInt(_0x4b43b2(0x182))/0xc);if(_0x45faa7===_0x241161)break;else _0x26ece0['push'](_0x26ece0['shift']());}catch(_0x42a8ce){_0x26ece0['push'](_0x26ece0['shift']());}}}(a49_0x5433,0x20fdd));function a49_0x5433(){const _0x6b7e7e=['bool','name','description','map','698896VhCaGv','268200zDeGDW','pkField','tableName','read','string','82212xfEewq','dbName','split','verbose','code','source','7LDhNVx','225KNlsCD','1408kaYijy','75906wOBuQm','trim','allFields','boolean','2395YeLhaK','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','641256ZNgVBg','list','671rxWvpI','30630QUqHIk','1ykIGwI','Found\x20','appCode','str','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','List\x20all\x20datasets\x20with\x20metadata','length','\x20dataset(s)'];a49_0x5433=function(){return _0x6b7e7e;};return a49_0x5433();}import{listDatasets}from'../../core/api-client.js';function a49_0x4c0a(_0x19612f,_0x51de55){_0x19612f=_0x19612f-0x177;const _0x543362=a49_0x5433();let _0x4c0a3b=_0x543362[_0x19612f];return _0x4c0a3b;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':'dataset','command':a49_0x314906(0x192),'description':a49_0x314906(0x19a),'risk':a49_0x314906(0x180),'flags':[{'name':'name','type':a49_0x314906(0x181),'description':a49_0x314906(0x190)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x314906(0x185),'type':a49_0x314906(0x18e),'description':a49_0x314906(0x199)}],async 'execute'(_0x4ec002){const _0x38adea=a49_0x314906,_0x5f1fb5=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x179)),_0x430462=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x186)),_0x457949=_0x4ec002[_0x38adea(0x178)](_0x38adea(0x185)),_0x8c64bf=await listDatasets(_0x4ec002[_0x38adea(0x197)],{..._0x5f1fb5&&{'name':_0x5f1fb5},..._0x430462&&{'code':_0x430462}}),_0x883cfb=_0x457949?_0x8c64bf:_0x8c64bf[_0x38adea(0x17b)](_0x2d3b2d=>{const _0x1d68ce=_0x38adea,_0x2a8b73=_0x2d3b2d['dbtableConfig']??{};return{'id':_0x2d3b2d['id'],'name':_0x2d3b2d[_0x1d68ce(0x179)],'code':_0x2d3b2d['code'],'description':_0x2d3b2d[_0x1d68ce(0x17a)],'source':_0x2d3b2d[_0x1d68ce(0x187)],'db':_0x2a8b73[_0x1d68ce(0x183)],'table':_0x2a8b73[_0x1d68ce(0x17f)],'datasetKey':_0x2a8b73['datasetKey'],'pk':_0x2a8b73[_0x1d68ce(0x17e)],'fields':_0x2a8b73['allFields']?_0x2a8b73[_0x1d68ce(0x18d)][_0x1d68ce(0x184)](',')['map'](_0x949365=>_0x949365[_0x1d68ce(0x18c)]()):[]};});return{'ok':!![],'data':{'total':_0x883cfb[_0x38adea(0x19b)],'datasets':_0x883cfb},'message':_0x38adea(0x196)+_0x883cfb[_0x38adea(0x19b)]+_0x38adea(0x177)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a50_0x1ce2(){const _0x29db61=['dataset','operation','131888eOWvBP','boolean','bool','verbose','appCode','map','35kbNyLw','1237660lsKogm','length','10foRwHq','string','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1215981aDWlDA','operations','enabled','462792ZOmFZT','28530330jBZshR','9860121DKIodF','2ksLaKW','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','str','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1263737YZJVYE','name','alias'];a50_0x1ce2=function(){return _0x29db61;};return a50_0x1ce2();}const a50_0x2d554d=a50_0x5705;(function(_0x4ea11,_0x1ec413){const _0xe436c2=a50_0x5705,_0x427c49=_0x4ea11();while(!![]){try{const _0x57a2e1=parseInt(_0xe436c2(0x1e2))/0x1*(-parseInt(_0xe436c2(0x1f9))/0x2)+-parseInt(_0xe436c2(0x1f3))/0x3+parseInt(_0xe436c2(0x1ee))/0x4+-parseInt(_0xe436c2(0x1f0))/0x5*(-parseInt(_0xe436c2(0x1f6))/0x6)+parseInt(_0xe436c2(0x1ed))/0x7*(parseInt(_0xe436c2(0x1e7))/0x8)+-parseInt(_0xe436c2(0x1f8))/0x9+parseInt(_0xe436c2(0x1f7))/0xa;if(_0x57a2e1===_0x1ec413)break;else _0x427c49['push'](_0x427c49['shift']());}catch(_0x3bdc69){_0x427c49['push'](_0x427c49['shift']());}}}(a50_0x1ce2,0x9ae8d));function a50_0x5705(_0x5dd55f,_0x5a14a4){_0x5dd55f=_0x5dd55f-0x1e2;const _0x1ce248=a50_0x1ce2();let _0x570546=_0x1ce248[_0x5dd55f];return _0x570546;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x2d554d(0x1e5),'command':a50_0x2d554d(0x1f4),'description':a50_0x2d554d(0x1fc),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x2d554d(0x1e4),'type':a50_0x2d554d(0x1f1),'description':a50_0x2d554d(0x1fa)},{'name':a50_0x2d554d(0x1e6),'type':a50_0x2d554d(0x1f1),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':a50_0x2d554d(0x1e8),'description':a50_0x2d554d(0x1f2)}],async 'execute'(_0x38b79d){const _0x3cc355=a50_0x2d554d,_0x462ec1=_0x38b79d['str']('code'),_0x565140=_0x38b79d[_0x3cc355(0x1fb)](_0x3cc355(0x1e6)),_0x508700=_0x38b79d[_0x3cc355(0x1e9)](_0x3cc355(0x1ea));if(_0x565140){const {dataset:_0x3f470c,operation:_0x471514}=await getOperationDetail(_0x38b79d[_0x3cc355(0x1eb)],_0x462ec1,_0x565140);return{'ok':!![],'data':{'dataset':_0x3f470c,'operation':_0x471514}};}const {dataset:_0x16047e,operations:_0x48c5c9}=await getDatasetOperations(_0x462ec1);return{'ok':!![],'data':{'dataset':_0x16047e,'total':_0x48c5c9[_0x3cc355(0x1ef)],'operations':_0x508700?_0x48c5c9:_0x48c5c9[_0x3cc355(0x1ec)](_0x224912=>({'name':_0x224912[_0x3cc355(0x1e3)],'displayName':_0x224912['displayName'],'type':_0x224912['type'],'method':_0x224912['method'],'enabled':_0x224912[_0x3cc355(0x1f5)]}))}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a51_0x5bd9(){const _0x3d7b4a=['\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(default:\x20pretty)','\x20doctor','appCode','\x20\x20Merged\x20Config','pageSize','(set)','(default)','11194048JMYfyy','defaultApp','explicitAppName','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','bold','cookie','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','5210364ZqQfEq','arch','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','gray','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','red','version','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Auth','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','length','\x20\x20explicitAppName:\x20','\x20\x20Config\x20Files','24jOiHlE','5513410bgzgyG','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','repeat','\x20(default)','43198aknikB','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20─','2521720sOofFP','\x20\x20\x20\x20cookie:\x20\x20\x20','keys','1046498EsTRhe','✗\x20Expired','(not\x20found)','(set,\x20length=','env','(none)','(inherit)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','apps','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1254384WnYlkN','\x20←\x20current','log','green'];a51_0x5bd9=function(){return _0x3d7b4a;};return a51_0x5bd9();}const a51_0x2ceeb1=a51_0xcebb;function a51_0xcebb(_0x2a930b,_0x977222){_0x2a930b=_0x2a930b-0xfa;const _0x5bd976=a51_0x5bd9();let _0xcebbdc=_0x5bd976[_0x2a930b];return _0xcebbdc;}(function(_0x23ecc1,_0x10fe93){const _0x14b5cf=a51_0xcebb,_0x2e74bb=_0x23ecc1();while(!![]){try{const _0x1c4527=parseInt(_0x14b5cf(0x100))/0x1+parseInt(_0x14b5cf(0x137))/0x2*(parseInt(_0x14b5cf(0x130))/0x3)+parseInt(_0x14b5cf(0x10b))/0x4+parseInt(_0x14b5cf(0xfd))/0x5+-parseInt(_0x14b5cf(0x11f))/0x6+parseInt(_0x14b5cf(0x131))/0x7+-parseInt(_0x14b5cf(0x117))/0x8;if(_0x1c4527===_0x10fe93)break;else _0x2e74bb['push'](_0x2e74bb['shift']());}catch(_0x38bdba){_0x2e74bb['push'](_0x2e74bb['shift']());}}}(a51_0x5bd9,0x8809a));import a51_0x5229f7 from'chalk';import{getCliVersion}from'../utils/version.js';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';import{getIsSessionValid}from'../auth/is-session-valid.js';async function execute(_0x47b07f){const _0x138711=a51_0xcebb,_0x57b5bf=getCliVersion(),_0x851eb7=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x138711(0x12c)](0x0,0xa)+')':VERSION,_0x118ef8=buildConfigFromFlags({});console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](CLI_BIN_NAME+_0x138711(0x111))),console['log'](a51_0x5229f7[_0x138711(0x125)]('─'[_0x138711(0x135)](0x32))),console[_0x138711(0x10d)](_0x138711(0x11a)+_0x851eb7),console[_0x138711(0x10d)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x138711(0x128)]),console[_0x138711(0x10d)](_0x138711(0x126)+process['platform']+'\x20'+process[_0x138711(0x120)]),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12f))),console[_0x138711(0x10d)](a51_0x5229f7['gray']('\x20\x20─'[_0x138711(0x135)](0x1e)));const _0x45e014=getGlobalConfigPath(),_0x4ed641=getProjectConfigPath();console[_0x138711(0x10d)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x45e014||a51_0x5229f7[_0x138711(0x125)]('(not\x20found)'))),console[_0x138711(0x10d)](_0x138711(0x13b)+(_0x4ed641||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x102)))),console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x113))),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)['repeat'](0x1e))),console[_0x138711(0x10d)](_0x138711(0x11d)+(_0x118ef8[_0x138711(0x112)]||a51_0x5229f7['red'](_0x138711(0x13a)))),console[_0x138711(0x10d)](_0x138711(0x121)+_0x118ef8[_0x138711(0x104)]),console[_0x138711(0x10d)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x118ef8['locale']),console['log'](_0x138711(0x138)+_0x118ef8[_0x138711(0x134)]),console[_0x138711(0x10d)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x118)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console[_0x138711(0x10d)](_0x138711(0x133)+(_0x118ef8[_0x138711(0x132)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console['log'](_0x138711(0x12e)+(_0x118ef8[_0x138711(0x119)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105)))),console[_0x138711(0x10d)](_0x138711(0x10a)+(_0x118ef8[_0x138711(0x13d)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x110)))),console[_0x138711(0x10d)](_0x138711(0x12b)+(_0x118ef8[_0x138711(0x114)]??a51_0x5229f7['gray'](_0x138711(0x116)))),console[_0x138711(0x10d)](_0x138711(0x13c)+_0x118ef8['riskLevel']),console['log'](_0x138711(0xfa)+_0x118ef8[_0x138711(0x122)]),console[_0x138711(0x10d)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x103)+_0x118ef8[_0x138711(0x11c)][_0x138711(0x12d)]+')'):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105))));const _0x5c21bc=Object[_0x138711(0xff)](_0x118ef8['apps']);if(_0x5c21bc[_0x138711(0x12d)]>0x0){console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0xfb))),console[_0x138711(0x10d)](a51_0x5229f7['gray'](_0x138711(0xfc)['repeat'](0x1e)));for(const _0x7d74e3 of _0x5c21bc){const _0x58f275=_0x118ef8[_0x138711(0x108)][_0x7d74e3],_0x452634=_0x7d74e3===_0x118ef8[_0x138711(0x118)],_0x2762bc=_0x7d74e3===_0x118ef8[_0x138711(0x132)],_0x455ad9=_0x2762bc?a51_0x5229f7['green'](_0x138711(0x10c)):'',_0x278e51=_0x452634?_0x138711(0x136):'';console[_0x138711(0x10d)]('\x20\x20'+_0x7d74e3+_0x278e51+_0x455ad9),console[_0x138711(0x10d)](_0x138711(0x129)+_0x58f275[_0x138711(0x139)]),console[_0x138711(0x10d)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x58f275[_0x138711(0x104)]||a51_0x5229f7['gray'](_0x138711(0x106)))),console[_0x138711(0x10d)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x58f275['apiDir']||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106)))),console[_0x138711(0x10d)](_0x138711(0xfe)+(_0x58f275[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x115)):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106))));}}console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7['bold'](_0x138711(0x124))),console['log'](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)[_0x138711(0x135)](0x1e))),console[_0x138711(0x10d)](_0x138711(0x10f)+getApiDomain()),console[_0x138711(0x10d)](_0x138711(0x123)+getUserDomain()),console[_0x138711(0x10d)](_0x138711(0x109)+getRuntimeDomain()),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12a))),console['log'](a51_0x5229f7['gray'](_0x138711(0xfc)[_0x138711(0x135)](0x1e)));const _0x37feca=_0x118ef8[_0x138711(0x11c)];if(_0x37feca){const _0x3a6af3=await getIsSessionValid();console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3a6af3?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x11e)):a51_0x5229f7[_0x138711(0x127)](_0x138711(0x101))));}else console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a51_0x5229f7[_0x138711(0x127)]('✗\x20Not\x20logged\x20in'));return console[_0x138711(0x10d)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a51_0x2ceeb1(0x107),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a52_0x2eca8a=a52_0x51bf;(function(_0x310fb4,_0x66c3fc){const _0x25cb89=a52_0x51bf,_0x370265=_0x310fb4();while(!![]){try{const _0x4fdbe7=-parseInt(_0x25cb89(0x82))/0x1+-parseInt(_0x25cb89(0x8c))/0x2+-parseInt(_0x25cb89(0x83))/0x3+parseInt(_0x25cb89(0x76))/0x4*(-parseInt(_0x25cb89(0x84))/0x5)+parseInt(_0x25cb89(0x7e))/0x6*(-parseInt(_0x25cb89(0x81))/0x7)+parseInt(_0x25cb89(0x77))/0x8*(parseInt(_0x25cb89(0x86))/0x9)+parseInt(_0x25cb89(0x78))/0xa*(parseInt(_0x25cb89(0x85))/0xb);if(_0x4fdbe7===_0x66c3fc)break;else _0x370265['push'](_0x370265['shift']());}catch(_0x3d2908){_0x370265['push'](_0x370265['shift']());}}}(a52_0x2b8d,0xba4a0));import{initConfig}from'../init/main.js';function a52_0x2b8d(){const _0x3d9225=['Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','22752fKUdfW','Auto-confirm\x20prompts','info','2261OHDkPq','694902dTgkmP','1349160GSImCe','40140mdaSLG','1075547gffHTk','9ODKZIj','boolean','appcode','string','env','App\x20code\x20to\x20initialize','781038onxPbR','logger','92dgiomt','4630216skPMMp','320FEXWem','yes','执行初始化配置命令','Target\x20environment','init'];a52_0x2b8d=function(){return _0x3d9225;};return a52_0x2b8d();}function a52_0x51bf(_0x30ab09,_0x2ea7fe){_0x30ab09=_0x30ab09-0x75;const _0x2b8dd7=a52_0x2b8d();let _0x51bfb3=_0x2b8dd7[_0x30ab09];return _0x51bfb3;}const flagDefs=[{'name':a52_0x2eca8a(0x88),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x8b)},{'name':a52_0x2eca8a(0x8a),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x7b)},{'name':a52_0x2eca8a(0x79),'type':a52_0x2eca8a(0x87),'description':a52_0x2eca8a(0x7f),'default':![]}];export const initCommand={'name':a52_0x2eca8a(0x7c),'description':a52_0x2eca8a(0x7d),'flags':flagDefs,async 'run'(_0x4dd3e8,_0x5a3eb5,_0x2ef927){const _0x573047=a52_0x2eca8a;_0x4dd3e8[_0x573047(0x75)][_0x573047(0x80)](_0x573047(0x7c),_0x573047(0x7a)),await initConfig({'appcode':_0x2ef927[_0x573047(0x88)],'env':_0x2ef927[_0x573047(0x8a)],'autoYes':_0x2ef927[_0x573047(0x79)]});}};
|
package/lib/commands/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a53_0x493783=a53_0xe244;function a53_0xe244(_0x2f8578,_0x354b08){_0x2f8578=_0x2f8578-0x1e8;const _0x3276b7=a53_0x3276();let _0xe24484=_0x3276b7[_0x2f8578];return _0xe24484;}(function(_0x49f3c0,_0x3508f9){const _0x28cded=a53_0xe244,_0x357b8f=_0x49f3c0();while(!![]){try{const _0x1b139d=parseInt(_0x28cded(0x1ed))/0x1*(parseInt(_0x28cded(0x1eb))/0x2)+-parseInt(_0x28cded(0x1f3))/0x3*(-parseInt(_0x28cded(0x1ee))/0x4)+-parseInt(_0x28cded(0x1f6))/0x5+-parseInt(_0x28cded(0x1f1))/0x6+parseInt(_0x28cded(0x1ea))/0x7*(parseInt(_0x28cded(0x1ec))/0x8)+parseInt(_0x28cded(0x1f2))/0x9*(parseInt(_0x28cded(0x1f4))/0xa)+-parseInt(_0x28cded(0x1e9))/0xb;if(_0x1b139d===_0x3508f9)break;else _0x357b8f['push'](_0x357b8f['shift']());}catch(_0x5a485a){_0x357b8f['push'](_0x357b8f['shift']());}}}(a53_0x3276,0xedb97));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a53_0x493783(0x1ef),'description':'Logout\x20from\x20rabetbase',async 'run'(_0x3a9539,_0x3574bd,_0x51b911){const _0x39c089=a53_0x493783;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x39c089(0x1f0)](_0x39c089(0x1f5))):console['log'](_0x39c089(0x1e8));}};function a53_0x3276(){const _0x435422=['72340RxbNje','✓\x20Logged\x20out','5278255lgaARe','!\x20Not\x20logged\x20in','23599587kJUBbz','42YrenIB','1365638iiKQpt','2388576TebZeI','1NIHdPi','588184AfnFmA','logout','log','10945464nWpyAI','2007fNhYIX','39RCBPPO'];a53_0x3276=function(){return _0x435422;};return a53_0x3276();}
|
package/lib/commands/logs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a54_0x383d(){const _0x4de112=['level','length','clear','command','526930tXixpX','log','\x20\x20\x20Details:\x20','16ajKoLl','Clear\x20all\x20logs','logger','en-US','stringify','2631760wVnZEP','601364VXkLcl','details','clearLogs','\x20\x20\x20Duration:\x20','*\x20Logs\x20cleared','712ppuPFt','27ZOVvxL','logs','12EZLjdw','success','13482161YcZAAB','26236mZamyP','toLocaleString','*\x20No\x20logs\x20found','58479rpXrHN','View\x20or\x20clear\x20CLI\x20logs','\x20\x20\x20Time:\x20','boolean','357808vbfYlX','*\x20Lovrabet\x20CLI\x20logs:\x0a'];a54_0x383d=function(){return _0x4de112;};return a54_0x383d();}const a54_0x1c41cb=a54_0x3a04;(function(_0x4f13d8,_0x482c6d){const _0xac15a9=a54_0x3a04,_0x4c91ba=_0x4f13d8();while(!![]){try{const _0x49e45d=-parseInt(_0xac15a9(0x1ef))/0x1+-parseInt(_0xac15a9(0x1e9))/0x2*(-parseInt(_0xac15a9(0x1fd))/0x3)+-parseInt(_0xac15a9(0x201))/0x4+-parseInt(_0xac15a9(0x1e6))/0x5*(-parseInt(_0xac15a9(0x1f7))/0x6)+parseInt(_0xac15a9(0x1fa))/0x7*(parseInt(_0xac15a9(0x1f4))/0x8)+parseInt(_0xac15a9(0x1f5))/0x9*(-parseInt(_0xac15a9(0x1ee))/0xa)+parseInt(_0xac15a9(0x1f9))/0xb;if(_0x49e45d===_0x482c6d)break;else _0x4c91ba['push'](_0x4c91ba['shift']());}catch(_0x154f29){_0x4c91ba['push'](_0x4c91ba['shift']());}}}(a54_0x383d,0x6cc9b));function showLogs(_0x322d51){const _0x11b52a=a54_0x3a04,_0x4736b0=_0x322d51[_0x11b52a(0x1eb)]['readLogs']();if(_0x4736b0[_0x11b52a(0x1e3)]===0x0){console[_0x11b52a(0x1e7)](_0x11b52a(0x1fc));return;}console['log'](_0x11b52a(0x1e1)),_0x4736b0['forEach']((_0x273f89,_0x21a89b)=>{const _0x31e7ab=_0x11b52a,_0x1bc5b9=new Date(_0x273f89['timestamp'])[_0x31e7ab(0x1fb)](_0x31e7ab(0x1ec)),_0xd1de7d=_0x273f89[_0x31e7ab(0x1e2)]===_0x31e7ab(0x1f8)?'√':_0x273f89[_0x31e7ab(0x1e2)]==='error'?'×':_0x273f89[_0x31e7ab(0x1e2)]==='warn'?'!':'i';console[_0x31e7ab(0x1e7)](_0x21a89b+0x1+'.\x20'+_0xd1de7d+'\x20['+_0x273f89[_0x31e7ab(0x1e5)]+']\x20'+_0x273f89['message']),console['log'](_0x31e7ab(0x1ff)+_0x1bc5b9),_0x273f89['duration']&&console['log'](_0x31e7ab(0x1f2)+_0x273f89['duration']+'ms'),_0x273f89[_0x31e7ab(0x1f0)]&&Object['keys'](_0x273f89['details'])[_0x31e7ab(0x1e3)]>0x0&&console[_0x31e7ab(0x1e7)](_0x31e7ab(0x1e8)+JSON[_0x31e7ab(0x1ed)](_0x273f89[_0x31e7ab(0x1f0)],null,0x2)),console[_0x31e7ab(0x1e7)]('');});}function clearLogs(_0x8a6959){const _0x4c825a=a54_0x3a04;_0x8a6959[_0x4c825a(0x1eb)][_0x4c825a(0x1f1)](),console[_0x4c825a(0x1e7)](_0x4c825a(0x1f3));}function a54_0x3a04(_0x277c79,_0x5b56ab){_0x277c79=_0x277c79-0x1e1;const _0x383d98=a54_0x383d();let _0x3a04a5=_0x383d98[_0x277c79];return _0x3a04a5;}const flagDefs=[{'name':'clear','type':a54_0x1c41cb(0x200),'description':a54_0x1c41cb(0x1ea),'default':![]}];export const logsCommand={'name':a54_0x1c41cb(0x1f6),'description':a54_0x1c41cb(0x1fe),'flags':flagDefs,async 'run'(_0x1b18a6,_0x12aa59,_0x2b515d){const _0x184874=a54_0x1c41cb;_0x2b515d[_0x184874(0x1e4)]?clearLogs(_0x1b18a6):showLogs(_0x1b18a6);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c4e02,_0x3bd341){const _0x21479e=a55_0x5ceb,_0x3e6036=_0x5c4e02();while(!![]){try{const _0x15e9bc=-parseInt(_0x21479e(0x104))/0x1+-parseInt(_0x21479e(0xff))/0x2+-parseInt(_0x21479e(0x101))/0x3*(parseInt(_0x21479e(0x105))/0x4)+parseInt(_0x21479e(0x102))/0x5+-parseInt(_0x21479e(0xfd))/0x6*(parseInt(_0x21479e(0x103))/0x7)+-parseInt(_0x21479e(0x100))/0x8+parseInt(_0x21479e(0xfe))/0x9;if(_0x15e9bc===_0x3bd341)break;else _0x3e6036['push'](_0x3e6036['shift']());}catch(_0x204ae7){_0x3e6036['push'](_0x3e6036['shift']());}}}(a55_0x1a2a,0x72a05));function a55_0x5ceb(_0x10af02,_0xd94322){_0x10af02=_0x10af02-0xfd;const _0x1a2a0f=a55_0x1a2a();let _0x5cebbd=_0x1a2a0f[_0x10af02];return _0x5cebbd;}import{menuSync}from'./sync.js';function a55_0x1a2a(){const _0x3d76a1=['4116296UvbjNw','60KrAgRb','3420290JRzjUE','1687FpFLPk','92184lBmvXe','14888PTdfQM','12630tldvLG','13846023spwBAC','1129060iVncMl'];a55_0x1a2a=function(){return _0x3d76a1;};return a55_0x1a2a();}import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
|