@lovrabet/rabetbase-cli 2.0.8 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/new.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/paths.js +1 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/package.json +5 -4
package/lib/api/api-doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x43b32c=a0_0x1c32;(function(_0x1397a8,_0x1203ef){const _0x3ebe03=a0_0x1c32,_0x2a9992=_0x1397a8();while(!![]){try{const _0x1b9d03=parseInt(_0x3ebe03(0xf7))/0x1*(-parseInt(_0x3ebe03(0xf9))/0x2)+parseInt(_0x3ebe03(0xf2))/0x3*(-parseInt(_0x3ebe03(0x106))/0x4)+parseInt(_0x3ebe03(0xe9))/0x5*(-parseInt(_0x3ebe03(0xef))/0x6)+parseInt(_0x3ebe03(0x104))/0x7+parseInt(_0x3ebe03(0xf5))/0x8+-parseInt(_0x3ebe03(0x109))/0x9+-parseInt(_0x3ebe03(0xfc))/0xa*(-parseInt(_0x3ebe03(0x102))/0xb);if(_0x1b9d03===_0x1203ef)break;else _0x2a9992['push'](_0x2a9992['shift']());}catch(_0x409fd8){_0x2a9992['push'](_0x2a9992['shift']());}}}(a0_0x5a89,0x97811));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x36f9e3 from'node:path';function a0_0x5a89(){const _0x252021=['327TUNhic','error','message','3152520RIZZUX','Waiting\x203\x20seconds...\x0a','1987yraWEd','datasetCode','446HRcYfM','string','✓\x20Generated:\x20','30ChiCtU','✗\x20Failed:\x20','Fetch\x20doc\x20(','./docs','.md\x20-\x20','join','7532503gXQRJx','api-doc','8073114reZrAZ','生成文档失败:\x20','10604UWXnbx','log','push','10213650wOEEQx','tableName','markdown','/api/node-toolbox/api-doc-generator','生成文档成功:\x20','success','31475rihkKu','.md','name','length','Invalid\x20response\x20format\x20(','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','1062ZZPyyO','utf8','):\x20missing\x20data.markdown\x20field'];a0_0x5a89=function(){return _0x252021;};return a0_0x5a89();}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a0_0x1c32(_0x2f15a3,_0x465f85){_0x2f15a3=_0x2f15a3-0xe7;const _0x5a898f=a0_0x5a89();let _0x1c321c=_0x5a898f[_0x2f15a3];return _0x1c321c;}import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x1cab6c){const _0x54c16e=a0_0x1c32,{appCode:_0x59c659,cookie:_0x5dc8c2,datasetCode:_0x3ec003,datasetId:_0x5b4053,extraParams:_0x737de7}=_0x1cab6c,_0x64c0aa=getApiDomain()+_0x54c16e(0x10c),_0x4326c9=await platformFetch(_0x64c0aa,{'method':'POST','body':{'appCode':_0x59c659,'datasetCode':_0x3ec003,'datasetId':_0x5b4053,..._0x737de7||{}},'cookie':_0x5dc8c2,'label':_0x54c16e(0xfe)+_0x3ec003+')'});if(!_0x4326c9||typeof _0x4326c9[_0x54c16e(0x10b)]!==_0x54c16e(0xfa))throw new Error(_0x54c16e(0xed)+_0x3ec003+_0x54c16e(0xf1));return _0x4326c9[_0x54c16e(0x10b)];}function delay(_0x2703e8){return new Promise(_0x4c1d17=>setTimeout(_0x4c1d17,_0x2703e8));}export async function generateDatasetDocs(_0x38bf2b,_0x2b6ae1,_0x301a3b,_0x3b6ea8=a0_0x43b32c(0xff),_0x3d27e6,_0x3df70f){const _0x4629d2=a0_0x43b32c;mkdirSync(_0x3b6ea8,{'recursive':!![]});const _0x1e0b1f=[],_0x7ba5ac=_0x38bf2b[_0x4629d2(0xec)];console['log']('\x0a'+_0x7ba5ac+_0x4629d2(0xee));for(let _0x19e6e2=0x0;_0x19e6e2<_0x38bf2b[_0x4629d2(0xec)];_0x19e6e2++){const _0x311686=_0x38bf2b[_0x19e6e2],_0x532c7d=_0x19e6e2+0x1,_0x4035dc=_0x311686[_0x4629d2(0x10a)];try{console[_0x4629d2(0x107)]('['+_0x532c7d+'/'+_0x7ba5ac+']\x20Generating:\x20'+_0x4035dc+'.md\x20('+_0x311686['name']+')');if(_0x3d27e6)_0x3d27e6(_0x532c7d,_0x7ba5ac,_0x4035dc);const _0x15dc4a=await fetchDatasetDoc({'appCode':_0x2b6ae1,'cookie':_0x301a3b,'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetId':_0x311686['id'],'enableAI':![],'extraParams':_0x3df70f}),_0x488104=a0_0x36f9e3[_0x4629d2(0x101)](_0x3b6ea8,_0x4035dc+_0x4629d2(0xea));writeFileSync(_0x488104,_0x15dc4a,{'encoding':_0x4629d2(0xf0)}),console[_0x4629d2(0x107)](_0x4629d2(0xfb)+_0x4035dc+_0x4629d2(0xea)),logger[_0x4629d2(0xe8)](_0x4629d2(0x103),_0x4629d2(0xe7)+_0x4035dc,undefined,{'datasetCode':_0x311686['datasetCode'],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':_0x488104,'progress':_0x532c7d+'/'+_0x7ba5ac}),_0x1e0b1f[_0x4629d2(0x108)]({'datasetCode':_0x311686['datasetCode'],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':_0x488104,'success':!![]});if(_0x532c7d<_0x7ba5ac)await delay(0x1388);}catch(_0xd3fd26){const _0x435b81=_0xd3fd26 instanceof Error?_0xd3fd26[_0x4629d2(0xf4)]:String(_0xd3fd26);console[_0x4629d2(0x107)](_0x4629d2(0xfd)+_0x4035dc+_0x4629d2(0x100)+_0x435b81),logger[_0x4629d2(0xf3)]('api-doc',_0x4629d2(0x105)+_0x311686['datasetCode'],{'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetName':_0x311686[_0x4629d2(0xeb)],'error':_0x435b81,'progress':_0x532c7d+'/'+_0x7ba5ac}),_0x1e0b1f[_0x4629d2(0x108)]({'datasetCode':_0x311686[_0x4629d2(0xf8)],'datasetName':_0x311686[_0x4629d2(0xeb)],'filePath':'','success':![],'error':_0x435b81}),_0x532c7d<_0x7ba5ac&&(console['log'](_0x4629d2(0xf6)),await delay(0xbb8));}}return _0x1e0b1f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4caf64,_0x4193ff){const _0x238d36=a1_0x1770,_0x2f01ee=_0x4caf64();while(!![]){try{const _0x1e956e=-parseInt(_0x238d36(0xc2))/0x1+-parseInt(_0x238d36(0xbb))/0x2+parseInt(_0x238d36(0xc3))/0x3*(-parseInt(_0x238d36(0xc4))/0x4)+parseInt(_0x238d36(0xb8))/0x5*(-parseInt(_0x238d36(0xbe))/0x6)+-parseInt(_0x238d36(0xc8))/0x7*(parseInt(_0x238d36(0xc9))/0x8)+parseInt(_0x238d36(0xb6))/0x9*(-parseInt(_0x238d36(0xc6))/0xa)+parseInt(_0x238d36(0xbc))/0xb*(parseInt(_0x238d36(0xc7))/0xc);if(_0x1e956e===_0x4193ff)break;else _0x2f01ee['push'](_0x2f01ee['shift']());}catch(_0x537d28){_0x2f01ee['push'](_0x2f01ee['shift']());}}}(a1_0x5865,0x89d81));import{getApiDomain}from'../constant/domain.js';function a1_0x1770(_0x3cb89e,_0x2ab538){_0x3cb89e=_0x3cb89e-0xb6;const _0x58654e=a1_0x5865();let _0x17705b=_0x58654e[_0x3cb89e];return _0x17705b;}import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x5865(){const _0x20aa98=['94179kZRkyU','44qWjHDp','Fetch\x20datasets','150340uTMMAV','2865036uyAugQ','5661397aXjKNB','8GdHEbh','198hQjMFI','info','31230KYokmZ','&otype=array','fetch-model-list','1030084UnYGFi','176cPmOzV','name','1014eoEZFs','map','trim','/api/node-toolbox/dataset/model-list?appcode=','199981qupIla'];a1_0x5865=function(){return _0x20aa98;};return a1_0x5865();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x178ed0){const _0x1c00c8=a1_0x1770;return _0x178ed0['replace'](/[\r\n]+/g,'\x20')[_0x1c00c8(0xc0)]();}function cleanDatasetName(_0x524312){const _0x4914f3=a1_0x1770;if(!_0x524312[_0x4914f3(0xbd)])return _0x524312;return{..._0x524312,'name':cleanNewlines(_0x524312[_0x4914f3(0xbd)])};}export async function fetchModelList(_0x41a499,_0x4c822b){const _0x3e0cd2=a1_0x1770,_0x2ae1bd=getEnv(),_0x5bad27=getApiDomain()+_0x3e0cd2(0xc1)+_0x41a499+_0x3e0cd2(0xb9);logger[_0x3e0cd2(0xb7)](_0x3e0cd2(0xba),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x2ae1bd+')',{'apiUrl':_0x5bad27});const _0x2968e1=await platformFetch(_0x5bad27,{'cookie':_0x4c822b,'label':_0x3e0cd2(0xc5)}),_0x4ec3c1=(_0x2968e1['configArray']??[])[_0x3e0cd2(0xbf)](cleanDatasetName);return{'configArray':_0x4ec3c1,'count':_0x4ec3c1['length']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36cafb,_0x503350){const _0x38ebe6=a2_0x13d5,_0x180c10=_0x36cafb();while(!![]){try{const _0x5eea3b=parseInt(_0x38ebe6(0x1f5))/0x1*(-parseInt(_0x38ebe6(0x1f7))/0x2)+parseInt(_0x38ebe6(0x1fb))/0x3+parseInt(_0x38ebe6(0x1e0))/0x4*(parseInt(_0x38ebe6(0x1dc))/0x5)+parseInt(_0x38ebe6(0x1fa))/0x6+-parseInt(_0x38ebe6(0x1f6))/0x7*(parseInt(_0x38ebe6(0x1ed))/0x8)+parseInt(_0x38ebe6(0x1f9))/0x9*(-parseInt(_0x38ebe6(0x1ee))/0xa)+parseInt(_0x38ebe6(0x1f1))/0xb*(parseInt(_0x38ebe6(0x1f8))/0xc);if(_0x5eea3b===_0x503350)break;else _0x180c10['push'](_0x180c10['shift']());}catch(_0x158586){_0x180c10['push'](_0x180c10['shift']());}}}(a2_0x5345,0x43c00));import a2_0x482dca from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x1aa51d from'node:path';function a2_0x13d5(_0x3bdf26,_0x14ae8d){_0x3bdf26=_0x3bdf26-0x1d9;const _0x5345be=a2_0x5345();let _0x13d509=_0x5345be[_0x3bdf26];return _0x13d509;}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a2_0x5345(){const _0x213f25=['format','Please\x20configure\x20app\x20code\x20first\x20via\x20`','2845doDnSN','client','../..','utf8','1144BlGjkr','alias','init-api','\x20config\x20set\x20app\x20<value>`','API\x20文件生成成功!','.ts','resolve','test','key','tableName','\x22\x20}','client.ts.tpl','join','2924696xxKNvp','2690TQyjhX','replaceApiContent','{\x20apiConfigName:\x20\x22','1181367kJaQml','{\x20apiConfigName:\x20','toUpperCase','forEach','122131XLmeLu','7kDrfPJ','6KKAZjM','72yquxfi','10170jyIFjg','2081250kwpDps','478389joTjGQ','CONFIG_NAMES.DEFAULT','name','-client','push','dirname','replace'];a2_0x5345=function(){return _0x213f25;};return a2_0x5345();}import{logger}from'../utils/logger.js';export async function generateApiFile(_0x5bfe4e,_0x19a1dc,_0x43eb51,_0x1cda34,_0x3b0263,_0x24db79,_0x3c0b7b){const _0x2e53bb=a2_0x13d5;if(!_0x43eb51)throw new Error(_0x2e53bb(0x1db)+CLI_BIN_NAME+_0x2e53bb(0x1e3));const _0x4d3ea8=_0x1cda34&&!_0x3c0b7b,_0x2b2315=_0x3c0b7b||_0x43eb51,_0x1978a7=_0x4d3ea8?_0x2e53bb(0x1fc):'\x22'+_0x2b2315+'\x22',_0x38916b=_0x3b0263!=='production';let _0x42298e;if(_0x4d3ea8)_0x38916b?_0x42298e=_0x2e53bb(0x1f2)+_0x1978a7+',\x20env:\x20\x22'+_0x3b0263+_0x2e53bb(0x1ea):_0x42298e='';else{const _0x210055=_0x38916b?',\x20env:\x20\x22'+_0x3b0263+'\x22':'';_0x42298e=_0x2e53bb(0x1f0)+_0x2b2315+'\x22'+_0x210055+'\x20}';}const _0x553af7=_0x19a1dc?_0x19a1dc+'-api':'api',_0x193afc=_0x19a1dc?_0x19a1dc+_0x2e53bb(0x1fe):_0x2e53bb(0x1dd),_0x124378=_0x19a1dc&&!/^app-[a-f0-9]+$/i[_0x2e53bb(0x1e7)](_0x19a1dc)?_0x19a1dc[_0x2e53bb(0x1d9)](/-/g,'_')[_0x2e53bb(0x1f3)]():'LOVRABET',_0x24c67f=[];_0x5bfe4e[_0x2e53bb(0x1f4)](_0x1fe45b=>{const _0x5ce453=_0x2e53bb;_0x24c67f[_0x5ce453(0x1ff)]({'datasetCode':_0x1fe45b['datasetCode'],'tableName':_0x1fe45b[_0x5ce453(0x1e9)],'name':_0x1fe45b[_0x5ce453(0x1fd)]||'','alias':_0x1fe45b[_0x5ce453(0x1e1)]||_0x1fe45b[_0x5ce453(0x1e8)]});});const _0x2231d2=fileURLToPath(import.meta.url),_0x51aa91=a2_0x1aa51d[_0x2e53bb(0x1e6)](a2_0x1aa51d[_0x2e53bb(0x200)](_0x2231d2),_0x2e53bb(0x1de)),_0x5d1486=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x51aa91,'templates/generate-api'),_0x3c6f09=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5d1486,'api.ts.tpl'),_0x25d055=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5d1486,_0x2e53bb(0x1eb)),_0x5b379f=_0x24db79;mkdirSync(_0x5b379f,{'recursive':!![]});const _0x443838=_0x24c67f[0x0]?.[_0x2e53bb(0x1e1)],_0xb3a064=readFileSync(_0x3c6f09,_0x2e53bb(0x1df)),_0x41f185=TemplateReplacer[_0x2e53bb(0x1ef)](_0xb3a064,_0x43eb51,_0x24c67f,_0x443838,_0x553af7,_0x1978a7,undefined,_0x124378),_0x4e33f5=await a2_0x482dca[_0x2e53bb(0x1da)](_0x41f185,{'parser':'typescript'}),_0x2cf049=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5b379f,_0x553af7+_0x2e53bb(0x1e5));writeFileSync(_0x2cf049,_0x4e33f5,{'encoding':_0x2e53bb(0x1df)});const _0x5951e8=readFileSync(_0x25d055,_0x2e53bb(0x1df)),_0x480087=TemplateReplacer[_0x2e53bb(0x1ef)](_0x5951e8,_0x43eb51,_0x24c67f,_0x443838,_0x553af7,_0x1978a7,_0x42298e,_0x124378),_0x550fcd=await a2_0x482dca[_0x2e53bb(0x1da)](_0x480087,{'parser':'typescript'}),_0x42a294=a2_0x1aa51d[_0x2e53bb(0x1ec)](_0x5b379f,_0x193afc+_0x2e53bb(0x1e5));writeFileSync(_0x42a294,_0x550fcd,{'encoding':'utf8'});const _0x557c57=_0x24c67f['length'];return logger['success'](_0x2e53bb(0x1e2),_0x2e53bb(0x1e4),undefined,{'apiFile':_0x2cf049,'clientFile':_0x42a294,'modelCount':_0x557c57,'configName':_0x1978a7}),{'modelCount':_0x557c57,'apiFilePath':_0x2cf049,'clientFilePath':_0x42a294,'configName':_0x1978a7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d2c7c,_0x12c01b){const _0x2f54cd=a3_0x50a8,_0x576814=_0x4d2c7c();while(!![]){try{const _0x139fd9=parseInt(_0x2f54cd(0x139))/0x1+parseInt(_0x2f54cd(0x13a))/0x2*(-parseInt(_0x2f54cd(0x138))/0x3)+-parseInt(_0x2f54cd(0x131))/0x4+parseInt(_0x2f54cd(0x133))/0x5+-parseInt(_0x2f54cd(0x137))/0x6+-parseInt(_0x2f54cd(0x13e))/0x7*(parseInt(_0x2f54cd(0x13d))/0x8)+parseInt(_0x2f54cd(0x13c))/0x9;if(_0x139fd9===_0x12c01b)break;else _0x576814['push'](_0x576814['shift']());}catch(_0x158a98){_0x576814['push'](_0x576814['shift']());}}}(a3_0x4ec8,0x31b30));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';function a3_0x50a8(_0x1d9c83,_0x3a262f){_0x1d9c83=_0x1d9c83-0x12e;const _0x4ec87e=a3_0x4ec8();let _0x50a813=_0x4ec87e[_0x1d9c83];return _0x50a813;}import a3_0x519ead from'ora';export async function runAuthServer(){const _0x1d58a2=a3_0x50a8,_0x48f502=await getIsSessionValid();if(_0x48f502){console[_0x1d58a2(0x136)](_0x1d58a2(0x130));return;}const _0x4136df=await confirm({'message':_0x1d58a2(0x132),'default':!![]});if(!_0x4136df)return;const _0x5d846a=a3_0x519ead(_0x1d58a2(0x135))[_0x1d58a2(0x134)](),_0x21e5df=await authServer({'silent':!![]});_0x5d846a[_0x1d58a2(0x12f)](),_0x21e5df?console['log'](_0x1d58a2(0x13b)):console[_0x1d58a2(0x136)](_0x1d58a2(0x12e));}function a3_0x4ec8(){const _0x29c212=['151036wlOyZP','2pfNXRk','*\x20Login\x20successful!','10136646YJCBdS','8ajukZX','1904609AULDWX','!\x20Login\x20failed.','stop','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1062456qkcSGH','No\x20valid\x20session.\x20Login\x20now?','31205WTjHtp','start','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','log','2392860FsMCWw','430476iXWjYK'];a3_0x4ec8=function(){return _0x29c212;};return a3_0x4ec8();}
|
package/lib/auth/auth-server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x2de9ed=a4_0x286f;(function(_0x1bf878,_0x3b1656){const _0x4df05b=a4_0x286f,_0x507ee6=_0x1bf878();while(!![]){try{const _0x4e8001=parseInt(_0x4df05b(0x155))/0x1+parseInt(_0x4df05b(0x139))/0x2*(-parseInt(_0x4df05b(0x136))/0x3)+-parseInt(_0x4df05b(0x12f))/0x4+parseInt(_0x4df05b(0x12a))/0x5+parseInt(_0x4df05b(0x12e))/0x6+-parseInt(_0x4df05b(0x142))/0x7*(parseInt(_0x4df05b(0x13c))/0x8)+-parseInt(_0x4df05b(0x13e))/0x9;if(_0x4e8001===_0x3b1656)break;else _0x507ee6['push'](_0x507ee6['shift']());}catch(_0x45be35){_0x507ee6['push'](_0x507ee6['shift']());}}}(a4_0x457e,0xbe7cb));import{writeFileSync}from'node:fs';import a4_0x78f87c from'node:https';import{getUserDomain}from'../constant/domain.js';function a4_0x286f(_0xccc345,_0x3f2e47){_0xccc345=_0xccc345-0x122;const _0x457e65=a4_0x457e();let _0x286fee=_0x457e65[_0xccc345];return _0x286fee;}import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';export async function authServer(_0x58fc6d){const _0x139741=a4_0x286f,_0x3857a0=_0x58fc6d?.[_0x139741(0x131)]||![];if(await getIsSessionValid())return!![];const _0x43577b=await(await fetch(_0x139741(0x144)))['json']();return new Promise(async(_0x17cbba,_0x1c8b90)=>{const _0x314acd=_0x139741;let _0x254b3b=0x0;const _0x542aae=a4_0x78f87c[_0x314acd(0x124)](_0x43577b,async(_0x1ed8e1,_0x47fe5a)=>{const _0x4e498e=_0x314acd,_0x5cbe03=getUserDomain(),_0x3bfbe1=_0x1ed8e1[_0x4e498e(0x14f)][_0x4e498e(0x150)]||'',_0x3ec234=await fetch(_0x5cbe03+_0x4e498e(0x140),{'headers':{'cookie':_0x3bfbe1}})[_0x4e498e(0x14a)](_0x46ded6=>_0x46ded6[_0x4e498e(0x133)]()),_0xe8f239=_0x3ec234&&_0x3ec234[_0x4e498e(0x143)]&&_0x3ec234['user'];if(_0xe8f239){writeFileSync(cookieFile,_0x3bfbe1,_0x4e498e(0x148)),_0x17cbba(!![]);const _0x2b8765=_0x4e498e(0x145),_0x357777=_0x4e498e(0x129)+_0x4e498e(0x153)+_0x4e498e(0x123),_0x427d51=_0x4e498e(0x151),_0x57341a=_0x4e498e(0x122)+_0x2b8765+_0x4e498e(0x14b)+_0x357777+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x427d51+_0x4e498e(0x152);_0x47fe5a['writeHead'](0xc8,{'Content-Type':_0x4e498e(0x12b)}),_0x47fe5a[_0x4e498e(0x126)](_0x57341a),_0x542aae[_0x4e498e(0x14c)]();}else{const _0x2f1038=''+encodeURIComponent(_0x4e498e(0x12d)+_0x254b3b);_0x47fe5a[_0x4e498e(0x128)](0x12e,{'location':_0x5cbe03+'/sign-in?redirect='+_0x2f1038}),_0x47fe5a[_0x4e498e(0x126)]();return;}});_0x542aae[_0x314acd(0x13d)](0x0,_0x314acd(0x127),()=>{const _0x249d50=_0x314acd,_0x4b998f=_0x542aae[_0x249d50(0x14d)]();_0x254b3b=typeof _0x4b998f===_0x249d50(0x134)&&_0x4b998f?_0x4b998f[_0x249d50(0x132)]:Number(_0x4b998f);const _0x36e86c=_0x249d50(0x12d)+_0x254b3b;!_0x3857a0&&(console[_0x249d50(0x125)](_0x249d50(0x13a)),console['log'](_0x249d50(0x130),_0x36e86c),console[_0x249d50(0x125)](_0x249d50(0x138)),console['log'](''),console[_0x249d50(0x125)](_0x249d50(0x141)),console[_0x249d50(0x125)]('')),openInBrowser(_0x36e86c)[_0x249d50(0x14a)](_0x39f783=>{const _0xb9d4b=_0x249d50;!_0x3857a0&&(_0x39f783?console[_0xb9d4b(0x125)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0xb9d4b(0x125)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0xb9d4b(0x125)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x36e86c)),console[_0xb9d4b(0x125)](''));})[_0x249d50(0x14e)](()=>{const _0x2ea416=_0x249d50;!_0x3857a0&&(console[_0x2ea416(0x125)](_0x2ea416(0x154)),console['log'](_0x2ea416(0x137),_0x36e86c),console['log'](''));});}),_0x542aae['on']('error',_0x4e804f=>{const _0x8dd7ad=_0x314acd;!_0x3857a0&&console['error'](_0x8dd7ad(0x135),_0x4e804f),_0x1c8b90(_0x4e804f);});});}function openInBrowser(_0x2e82c2){return new Promise(_0xe92f2d=>{const _0x4c16c1=a4_0x286f,_0x229b30=process[_0x4c16c1(0x13f)];let _0x422922;if(_0x229b30==='win32')_0x422922=_0x4c16c1(0x12c)+_0x2e82c2+'\x22';else _0x229b30===_0x4c16c1(0x146)?_0x422922=_0x4c16c1(0x149)+_0x2e82c2+'\x22':_0x422922=_0x4c16c1(0x13b)+_0x2e82c2+'\x22';exec(_0x422922,_0x41188b=>{_0x41188b?_0xe92f2d(![]):_0xe92f2d(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x2de9ed(0x125)](a4_0x2de9ed(0x147),isAuth);}function a4_0x457e(){const _0x39c51e=['darwin','isAuth','utf-8','open\x20\x22','then','</title></head>\x0a<body>\x0a\x20\x20<div>','close','address','catch','headers','cookie','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','<span\x20id=\x22t\x22>5</span>','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','1080413MAyRph','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>','\x20seconds.','createServer','log','end','127.0.0.1','writeHead','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','6327005CudOUE','text/html;\x20charset=utf-8','cmd\x20/c\x20start\x20\x22\x22\x20\x22','https://dev.lovrabet.com:','2686326eNhRpO','820240BurQuV','📍\x20Login\x20URL:','silent','port','json','object','Auth\x20server\x20error:','162PnVaAG','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','15822ygeosb','🔐\x20Starting\x20login\x20service...','xdg-open\x20\x22','80cCRpGa','listen','1453554WiOWIm','platform','/api/auth/get-session','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','853678DVkUEP','session','https://g.yuntooai.com/cert/lovrabet-dev.json','Login\x20Successful'];a4_0x457e=function(){return _0x39c51e;};return a4_0x457e();}
|
package/lib/auth/constant.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0xf4caef=a5_0x569f;(function(_0x3cfab1,_0x4be6f7){const _0xa913b9=a5_0x569f,_0x1cf64b=_0x3cfab1();while(!![]){try{const _0x3767d3=parseInt(_0xa913b9(0xdf))/0x1*(-parseInt(_0xa913b9(0xd7))/0x2)+-parseInt(_0xa913b9(0xe0))/0x3+-parseInt(_0xa913b9(0xdd))/0x4*(parseInt(_0xa913b9(0xd8))/0x5)+parseInt(_0xa913b9(0xdb))/0x6+-parseInt(_0xa913b9(0xd5))/0x7+-parseInt(_0xa913b9(0xd6))/0x8*(parseInt(_0xa913b9(0xda))/0x9)+parseInt(_0xa913b9(0xd9))/0xa;if(_0x3767d3===_0x4be6f7)break;else _0x1cf64b['push'](_0x1cf64b['shift']());}catch(_0x1812e9){_0x1cf64b['push'](_0x1cf64b['shift']());}}}(a5_0x5be7,0xd92d3));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a5_0x5be7(){const _0x5453cb=['3037347MfRtwV','6895296RMqwPa','.lovrabet','1678596iCudMd','cookie','119909HYGMhI','521055jorJoB','5142298PXgSCV','40YDkhgS','24fxMapG','10cxKJXL','46142590juYKcn'];a5_0x5be7=function(){return _0x5453cb;};return a5_0x5be7();}function a5_0x569f(_0x1b9f26,_0x491b78){_0x1b9f26=_0x1b9f26-0xd5;const _0x5be75b=a5_0x5be7();let _0x569fac=_0x5be75b[_0x1b9f26];return _0x569fac;}export const configDir=join(homedir(),a5_0xf4caef(0xdc));export const cookieFile=join(configDir,a5_0xf4caef(0xde));mkdirSync(configDir,{'recursive':!![]});
|
package/lib/auth/get-cookie.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f6394,_0xa279ba){var _0x135986=a6_0x319c,_0x41bdc6=_0x3f6394();while(!![]){try{var _0x5d951c=parseInt(_0x135986(0x168))/0x1+-parseInt(_0x135986(0x166))/0x2+parseInt(_0x135986(0x162))/0x3*(-parseInt(_0x135986(0x165))/0x4)+-parseInt(_0x135986(0x164))/0x5*(-parseInt(_0x135986(0x169))/0x6)+parseInt(_0x135986(0x16a))/0x7*(-parseInt(_0x135986(0x167))/0x8)+-parseInt(_0x135986(0x163))/0x9+parseInt(_0x135986(0x16b))/0xa;if(_0x5d951c===_0xa279ba)break;else _0x41bdc6['push'](_0x41bdc6['shift']());}catch(_0x4cb953){_0x41bdc6['push'](_0x41bdc6['shift']());}}}(a6_0x3195,0xd18a6));function a6_0x319c(_0x33ae51,_0x266cf5){_0x33ae51=_0x33ae51-0x162;var _0x31956d=a6_0x3195();var _0x319c0d=_0x31956d[_0x33ae51];return _0x319c0d;}import{readFileSync}from'node:fs';function a6_0x3195(){var _0x3815e3=['36280430GhdfGX','436503gARfVa','105930oDiVQP','2349595RRbThF','36WmakpF','1337376CmHfqh','812192eqXbUl','273143zzXeDq','6meowDZ','105JtpedJ'];a6_0x3195=function(){return _0x3815e3;};return a6_0x3195();}import{cookieFile}from'../auth/constant.js';export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0x15c1(){const _0x26598f=['5572950StvPzV','1847944wxlGRh','session','63239nVJAOG','json','1268YDPQzk','720lAMgiC','16537476VnktSN','/api/auth/get-session','1894hHmmXO','2160tvEtpU','88731fLKCNC','303WweOve','5UMZPcQ','user','7516qzXnjn'];a7_0x15c1=function(){return _0x26598f;};return a7_0x15c1();}function a7_0x43d0(_0x333488,_0x101231){_0x333488=_0x333488-0xa3;const _0x15c1c7=a7_0x15c1();let _0x43d064=_0x15c1c7[_0x333488];return _0x43d064;}(function(_0x10f25d,_0x549e23){const _0x3a9c91=a7_0x43d0,_0x54f2df=_0x10f25d();while(!![]){try{const _0x1dd671=-parseInt(_0x3a9c91(0xa8))/0x1*(-parseInt(_0x3a9c91(0xac))/0x2)+-parseInt(_0x3a9c91(0xaf))/0x3*(parseInt(_0x3a9c91(0xb2))/0x4)+parseInt(_0x3a9c91(0xb0))/0x5*(-parseInt(_0x3a9c91(0xa3))/0x6)+-parseInt(_0x3a9c91(0xa4))/0x7+-parseInt(_0x3a9c91(0xa9))/0x8*(-parseInt(_0x3a9c91(0xae))/0x9)+-parseInt(_0x3a9c91(0xad))/0xa*(parseInt(_0x3a9c91(0xa6))/0xb)+parseInt(_0x3a9c91(0xaa))/0xc;if(_0x1dd671===_0x549e23)break;else _0x54f2df['push'](_0x54f2df['shift']());}catch(_0x43e5e1){_0x54f2df['push'](_0x54f2df['shift']());}}}(a7_0x15c1,0xcd879));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x19a3d3=a7_0x43d0;try{if(!existsSync(cookieFile))return null;const _0x78fcc9=readFileSync(cookieFile,'utf-8'),_0x3a59eb=await fetch(getUserDomain()+_0x19a3d3(0xab),{'headers':{'cookie':_0x78fcc9}});if(!_0x3a59eb['ok'])return null;const _0x3cbd5d=await _0x3a59eb[_0x19a3d3(0xa7)]();if(!_0x3cbd5d[_0x19a3d3(0xa5)]||!_0x3cbd5d[_0x19a3d3(0xb1)])return null;return _0x3cbd5d;}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36bd9b,_0x28b9e7){const _0x35b4ff=a8_0x40ff,_0x52a7b2=_0x36bd9b();while(!![]){try{const _0x38daad=parseInt(_0x35b4ff(0x7d))/0x1+parseInt(_0x35b4ff(0x70))/0x2*(-parseInt(_0x35b4ff(0x79))/0x3)+-parseInt(_0x35b4ff(0x81))/0x4*(-parseInt(_0x35b4ff(0x7a))/0x5)+-parseInt(_0x35b4ff(0x71))/0x6*(-parseInt(_0x35b4ff(0x7e))/0x7)+-parseInt(_0x35b4ff(0x80))/0x8*(-parseInt(_0x35b4ff(0x7b))/0x9)+-parseInt(_0x35b4ff(0x73))/0xa*(-parseInt(_0x35b4ff(0x76))/0xb)+-parseInt(_0x35b4ff(0x78))/0xc;if(_0x38daad===_0x28b9e7)break;else _0x52a7b2['push'](_0x52a7b2['shift']());}catch(_0x3bfd83){_0x52a7b2['push'](_0x52a7b2['shift']());}}}(a8_0x36a9,0xebbbb));import{existsSync,readFileSync}from'node:fs';function a8_0x36a9(){const _0x449df5=['3089430OeWBAP','user','1643448fGphjX','1299431DQrklh','/api/auth/get-session','24bazXiR','28584ZdCwOc','8IXviwi','42sbzGzc','then','5142520WCWYDV','utf-8','json','22wXGHOS','session','57457992HjsXdz','518217hIzBwF','1010RfLKww'];a8_0x36a9=function(){return _0x449df5;};return a8_0x36a9();}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x40ff(_0x521d52,_0x4f5253){_0x521d52=_0x521d52-0x70;const _0x36a99d=a8_0x36a9();let _0x40ffe3=_0x36a99d[_0x521d52];return _0x40ffe3;}export async function getIsSessionValid(){const _0x57f7a0=a8_0x40ff;try{if(!existsSync(cookieFile))return![];const _0x49e79d=readFileSync(cookieFile,_0x57f7a0(0x74)),_0x13f50e=await fetch(getUserDomain()+_0x57f7a0(0x7f),{'headers':{'cookie':_0x49e79d}})[_0x57f7a0(0x72)](_0xae9cd3=>_0xae9cd3[_0x57f7a0(0x75)]());return _0x13f50e&&_0x13f50e[_0x57f7a0(0x77)]&&_0x13f50e[_0x57f7a0(0x7c)];}catch{}return![];}
|
package/lib/auth/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e06a3,_0x153c97){var _0x4bab15=a9_0x1626,_0x1e29d5=_0x4e06a3();while(!![]){try{var _0x49407e=parseInt(_0x4bab15(0x163))/0x1+-parseInt(_0x4bab15(0x161))/0x2*(parseInt(_0x4bab15(0x15d))/0x3)+parseInt(_0x4bab15(0x167))/0x4+parseInt(_0x4bab15(0x15c))/0x5*(-parseInt(_0x4bab15(0x162))/0x6)+parseInt(_0x4bab15(0x15e))/0x7*(-parseInt(_0x4bab15(0x15f))/0x8)+-parseInt(_0x4bab15(0x165))/0x9*(-parseInt(_0x4bab15(0x166))/0xa)+-parseInt(_0x4bab15(0x160))/0xb*(-parseInt(_0x4bab15(0x169))/0xc);if(_0x49407e===_0x153c97)break;else _0x1e29d5['push'](_0x1e29d5['shift']());}catch(_0xe2245f){_0x1e29d5['push'](_0x1e29d5['shift']());}}}(a9_0x5c8c,0xc643c));import{unlinkSync,existsSync}from'node:fs';function a9_0x1626(_0x3ff8c4,_0x4c4fff){_0x3ff8c4=_0x3ff8c4-0x15c;var _0x5c8c4f=a9_0x5c8c();var _0x1626ea=_0x5c8c4f[_0x3ff8c4];return _0x1626ea;}import{cookieFile}from'../auth/constant.js';function a9_0x5c8c(){var _0x41d858=['log','27RjMnrM','4232760VQBfav','2951560lDlJeu','!\x20Not\x20logged\x20in','1544748FsTZfl','1342830tNvTAu','763611JRVtCa','389963qnEUAj','8dIgwco','55QutvZq','10cddiit','12rarmgv','26255hbkRjc'];a9_0x5c8c=function(){return _0x41d858;};return a9_0x5c8c();}export function logout(){var _0x3e3cc=a9_0x1626;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3e3cc(0x164)]('✓\x20Logged\x20out')):console[_0x3e3cc(0x164)](_0x3e3cc(0x168));}
|
package/lib/cli-flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a10_0x5d834d=a10_0x2d9b;function a10_0x2d9b(_0x391193,_0xaf2ed5){_0x391193=_0x391193-0x12a;const _0x415ed3=a10_0x415e();let _0x2d9bd3=_0x415ed3[_0x391193];return _0x2d9bd3;}(function(_0x279457,_0x2aa06f){const _0x1f9998=a10_0x2d9b,_0xd27bab=_0x279457();while(!![]){try{const _0x597653=-parseInt(_0x1f9998(0x12f))/0x1*(parseInt(_0x1f9998(0x134))/0x2)+parseInt(_0x1f9998(0x135))/0x3*(-parseInt(_0x1f9998(0x12e))/0x4)+parseInt(_0x1f9998(0x130))/0x5+-parseInt(_0x1f9998(0x12b))/0x6*(parseInt(_0x1f9998(0x12d))/0x7)+-parseInt(_0x1f9998(0x12c))/0x8+parseInt(_0x1f9998(0x12a))/0x9+parseInt(_0x1f9998(0x132))/0xa*(parseInt(_0x1f9998(0x131))/0xb);if(_0x597653===_0x2aa06f)break;else _0xd27bab['push'](_0xd27bab['shift']());}catch(_0x404bdf){_0xd27bab['push'](_0xd27bab['shift']());}}}(a10_0x415e,0x5f914));function a10_0x415e(){const _0x3ef94c=['1518IBXzEX','49390vVdize','boolean','717026wYURwc','75801neFrGO','6032376mfxsrA','72SZlanp','708312IhQkRo','185619BQRMFp','52uFLSCj','1ixkxKM','666625TgChwh'];a10_0x415e=function(){return _0x3ef94c;};return a10_0x415e();}export const dynamicCliFlags={'enableBffSave':{'type':a10_0x5d834d(0x133)}};
|
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
function a11_0x578a(){const _0x5d0b39=['hint','log','⚠\x20`','error','explicitAppName','riskLevel','`\x20in\x20v2.0.\x0a','format','runtimeDomain','help','10BYfkvi','userDomain','./cli-flags.js','raw','`\x20has\x20been\x20moved\x20to\x20`','5957382FMqCUJ','cookie','unknown_service','96mmhazD','145292CHDKqj','Hint:\x20','dynamicCliFlags','7211610EBABJK','unknownCommand','4406945yQyhih','pageSize','exitCode','message','defaultCommand','slice','code','14630099jpINGd','env','12099Knjgky','stderr','verbose','./constant/env.js','write','./context.js','global','apiDir','wildcardDef','9529352HLJAYZ','input','name','7vabWUE','34XOieSy','Error:\x20','now','apiDomain'];a11_0x578a=function(){return _0x5d0b39;};return a11_0x578a();}const a11_0x1606ed=a11_0x5c7e;(function(_0x2d4b03,_0x5465d8){const _0x27bebc=a11_0x5c7e,_0x446ddb=_0x2d4b03();while(!![]){try{const _0x7ee78c=-parseInt(_0x27bebc(0xd7))/0x1*(-parseInt(_0x27bebc(0xb2))/0x2)+-parseInt(_0x27bebc(0xc8))/0x3*(parseInt(_0x27bebc(0xc9))/0x4)+parseInt(_0x27bebc(0xce))/0x5+parseInt(_0x27bebc(0xc5))/0x6*(-parseInt(_0x27bebc(0xb1))/0x7)+parseInt(_0x27bebc(0xae))/0x8+-parseInt(_0x27bebc(0xcc))/0x9+parseInt(_0x27bebc(0xc0))/0xa*(parseInt(_0x27bebc(0xd5))/0xb);if(_0x7ee78c===_0x5465d8)break;else _0x446ddb['push'](_0x446ddb['shift']());}catch(_0x45782c){_0x446ddb['push'](_0x446ddb['shift']());}}}(a11_0x578a,0x9f1cf));import a11_0xaa727 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{getCookie}from'./auth/get-cookie.js';function a11_0x5c7e(_0x182833,_0x521920){_0x182833=_0x182833-0xa9;const _0x578a2c=a11_0x578a();let _0x5c7ebd=_0x578a2c[_0x182833];return _0x5c7ebd;}import{getApiDomain}from'./constant/domain.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{isNonInteractive as a11_0x14672d}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a11_0x1606ed(0xc2)))[a11_0x1606ed(0xcb)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x1606ed(0xd3)](0x0,0xa)+')':VERSION,cli=a11_0xaa727(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x533f8a=a11_0x1606ed;let _0x176c6b=cli[_0x533f8a(0xaf)][0x0],_0x2929db=cli['input'][0x1];const _0x83f101=cli['flags'];if(!_0x176c6b){await reportCliHelpTrace(_0x533f8a(0xab)),showHelp();return;}const _0xf3957f=deprecatedAliases[_0x176c6b];if(_0xf3957f&&!isKnownService(_0x176c6b)){const _0x42bafb=_0x2929db?CLI_BIN_NAME+'\x20'+_0x176c6b+'\x20'+_0x2929db:CLI_BIN_NAME+'\x20'+_0x176c6b,_0x2726ec=CLI_BIN_NAME+'\x20'+_0xf3957f['service']+'\x20'+_0xf3957f['command'];console[_0x533f8a(0xb9)](_0x533f8a(0xb8)+_0x42bafb+_0x533f8a(0xc4)+_0x2726ec+_0x533f8a(0xbc)+'\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a'),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x176c6b)){await reportCliHelpTrace(_0x533f8a(0xc7),{'service':_0x176c6b}),showHelp();return;}const _0xb04478=getServiceEntry(_0x176c6b);if(_0x83f101['env']&&typeof _0x83f101[_0x533f8a(0xd6)]==='string'){const {initEnv:_0x59fbfc}=await import(_0x533f8a(0xda));_0x59fbfc(_0x83f101['env']);}const {buildConfigFromFlags:_0x5f5e90}=await import(_0x533f8a(0xaa)),_0x235d81=_0x5f5e90(_0x83f101);if(!_0x83f101[_0x533f8a(0xd6)]&&_0x235d81[_0x533f8a(0xd6)]){const {initEnv:_0x5541bc}=await import('./constant/env.js');_0x5541bc(_0x235d81[_0x533f8a(0xd6)]);}if(_0x235d81[_0x533f8a(0xc3)]?.[_0x533f8a(0xb5)]||_0x235d81[_0x533f8a(0xc3)]?.[_0x533f8a(0xc1)]||_0x235d81[_0x533f8a(0xc3)]?.['runtimeDomain']){const {initDomains:_0x1123a0}=await import('./constant/domain.js');_0x1123a0({'apiDomain':_0x235d81[_0x533f8a(0xc3)][_0x533f8a(0xb5)]||undefined,'userDomain':_0x235d81['raw'][_0x533f8a(0xc1)]||undefined,'runtimeDomain':_0x235d81['raw'][_0x533f8a(0xbe)]||undefined});}if(!_0x2929db){if(_0xb04478[_0x533f8a(0xd2)])_0x2929db=_0xb04478[_0x533f8a(0xd2)];else{if(_0xb04478[_0x533f8a(0xad)]){if(_0x83f101['help']){console[_0x533f8a(0xb7)](generateCommandHelp(_0xb04478['wildcardDef']));return;}await dispatchDeclarative(_0xb04478['wildcardDef'],_0x176c6b,'',[],_0x83f101,_0x235d81);return;}else{printServiceHelp(_0x176c6b);return;}}}if(_0x83f101[_0x533f8a(0xbf)]&&!findDefinition(_0x176c6b,_0x2929db)){printServiceHelp(_0x176c6b);return;}{let _0x4bf9fe=findDefinition(_0x176c6b,_0x2929db),_0x315278=cli[_0x533f8a(0xaf)][_0x533f8a(0xd3)](0x2);if(!_0x4bf9fe){if(_0xb04478[_0x533f8a(0xad)]){if(_0x83f101[_0x533f8a(0xbf)]){console['log'](generateCommandHelp(_0xb04478[_0x533f8a(0xad)]));return;}_0x4bf9fe=_0xb04478['wildcardDef'],_0x315278=[_0x2929db,...cli['input'][_0x533f8a(0xd3)](0x2)];}else{printServiceHelp(_0x176c6b),await handleErrorAsync(CliErrors[_0x533f8a(0xcd)](_0x176c6b+'\x20'+_0x2929db));return;}}if(_0x83f101['help']){console[_0x533f8a(0xb7)](generateCommandHelp(_0x4bf9fe));return;}await dispatchDeclarative(_0x4bf9fe,_0x176c6b,_0x2929db,_0x315278,_0x83f101,_0x235d81);}}async function dispatchDeclarative(_0x5e8b91,_0x1dc6c7,_0x483d29,_0x2c92dd,_0x356975,_0x39bbe8){const _0x43f67c=a11_0x1606ed,_0x239b69=Date[_0x43f67c(0xb4)]();let _0x6e07f3;try{await runCommand(_0x5e8b91,{'rawFlags':_0x356975,'args':_0x2c92dd,'resolveAppCode':()=>_0x39bbe8['appCode']||_0x356975['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x39bbe8[_0x43f67c(0xc6)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x14672d(_0x356975),'defaultFormat':_0x39bbe8[_0x43f67c(0xbd)],'defaultPageSize':_0x39bbe8[_0x43f67c(0xcf)],'defaultVerbose':_0x39bbe8[_0x43f67c(0xd9)],'apiDir':_0x39bbe8[_0x43f67c(0xac)],'riskLevel':_0x39bbe8[_0x43f67c(0xbb)],'selectedAppName':_0x39bbe8[_0x43f67c(0xba)]});}catch(_0x38dcbb){_0x6e07f3=_0x38dcbb;}await reportCommandTrace({'service':_0x1dc6c7,'command':_0x483d29,'flags':_0x356975,'durationMs':Date[_0x43f67c(0xb4)]()-_0x239b69,'error':_0x6e07f3});if(_0x6e07f3)await handleErrorAsync(_0x6e07f3);}function printServiceHelp(_0x3ff429){const _0x218fc9=a11_0x1606ed;console[_0x218fc9(0xb7)](generateServiceHelp(_0x3ff429));}async function handleErrorAsync(_0x5c35be){const _0x43f74f=a11_0x1606ed;if(_0x5c35be instanceof Error&&_0x5c35be[_0x43f74f(0xb0)]==='ExitPromptError')return process[_0x43f74f(0xd8)][_0x43f74f(0xa9)]('\x0aCancelled.\x0a'),await exitWithOtelShutdown(0x0);if(_0x5c35be instanceof CliError){if(_0x5c35be[_0x43f74f(0xd4)]==='cancelled')return process[_0x43f74f(0xd8)]['write']('\x0a'+_0x5c35be[_0x43f74f(0xd1)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x43f74f(0xb9)](_0x43f74f(0xb3)+_0x5c35be[_0x43f74f(0xd1)]);if(_0x5c35be['hint'])console[_0x43f74f(0xb9)](_0x43f74f(0xca)+_0x5c35be[_0x43f74f(0xb6)]);return await exitWithOtelShutdown(_0x5c35be[_0x43f74f(0xd0)]);}return console[_0x43f74f(0xb9)]('Unexpected\x20error:',_0x5c35be),await exitWithOtelShutdown(0x1);}
|
package/lib/commands/api/doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a12_0x202d(){const _0x307ae2=['cookie','\x20doc(s)\x20in\x20','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','string','--datasetcode\x20cannot\x20be\x20empty.','Output\x20directory\x20(default:\x20./docs)','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','Fetching\x20dataset\x20list\x20for\x20','output','fail','message','datasetcode','object','succeed','str','params','65107XMWssB','!\x20No\x20datasets\x20found.','362388ssdzsj','split','has','\x20succeeded,\x20','\x20failed','Invalid\x20--params:\x20','doc','success','12tCuuRs','filter','\x1b[0m','454226RzasBP','api','184017TxXSzj','log','datasetCode','appCode','trim','\x20\x20•\x20','Doc\x20generation\x20complete:\x20','parse','isArray','40nAElWP','Fetched\x20','validation','length','error','./docs','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','7608186RIuXiT','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','.md','write','some','join','\x20dataset(s)\x1b[0m','\x1b[90m*\x20Filtered\x20','datasetName','stdout','856690vaMmdK','start','\x20doc(s)\x20failed','146984bkdmGV','...','):\x20'];a12_0x202d=function(){return _0x307ae2;};return a12_0x202d();}function a12_0x4c77(_0x303077,_0x28b20e){_0x303077=_0x303077-0x174;const _0x202d09=a12_0x202d();let _0x4c7785=_0x202d09[_0x303077];return _0x4c7785;}const a12_0x5e4261=a12_0x4c77;(function(_0x4b5599,_0x187067){const _0x28ac3c=a12_0x4c77,_0x5763ce=_0x4b5599();while(!![]){try{const _0x4d8807=-parseInt(_0x28ac3c(0x1a0))/0x1+-parseInt(_0x28ac3c(0x181))/0x2+-parseInt(_0x28ac3c(0x183))/0x3*(parseInt(_0x28ac3c(0x17e))/0x4)+-parseInt(_0x28ac3c(0x19d))/0x5+parseInt(_0x28ac3c(0x176))/0x6+parseInt(_0x28ac3c(0x174))/0x7*(-parseInt(_0x28ac3c(0x18c))/0x8)+parseInt(_0x28ac3c(0x193))/0x9;if(_0x4d8807===_0x187067)break;else _0x5763ce['push'](_0x5763ce['shift']());}catch(_0x28fcd0){_0x5763ce['push'](_0x5763ce['shift']());}}}(a12_0x202d,0x1fb03));import a12_0x1b076e from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const apiDoc={'service':a12_0x5e4261(0x182),'command':a12_0x5e4261(0x17c),'description':a12_0x5e4261(0x1a5),'risk':a12_0x5e4261(0x196),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x5e4261(0x1ab),'type':'string','description':a12_0x5e4261(0x1a8)},{'name':a12_0x5e4261(0x1ae),'type':a12_0x5e4261(0x1a6),'description':a12_0x5e4261(0x1a9)},{'name':a12_0x5e4261(0x1b2),'type':a12_0x5e4261(0x1a6),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x3cd4b4){const _0x3488b2=a12_0x5e4261,_0x46b6fe=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1ab))||_0x3488b2(0x191),_0xf6d11f=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1ae)),_0x505ea3=_0x3cd4b4[_0x3488b2(0x1b1)](_0x3488b2(0x1b2));let _0x5e2b4f;if(_0x505ea3)try{_0x5e2b4f=JSON[_0x3488b2(0x18a)](_0x505ea3);if(typeof _0x5e2b4f!==_0x3488b2(0x1af)||_0x5e2b4f===null||Array[_0x3488b2(0x18b)](_0x5e2b4f))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x5b3d05){throw CliErrors[_0x3488b2(0x18e)](_0x3488b2(0x17b)+(_0x5b3d05 instanceof Error?_0x5b3d05[_0x3488b2(0x1ad)]:String(_0x5b3d05)),_0x3488b2(0x192));}let _0x1ca3fc;if(_0xf6d11f){const _0x5ba2ed=_0xf6d11f[_0x3488b2(0x177)](',')['map'](_0x412df3=>_0x412df3[_0x3488b2(0x187)]())[_0x3488b2(0x17f)](_0x3f0c45=>_0x3f0c45[_0x3488b2(0x18f)]>0x0);if(_0x5ba2ed[_0x3488b2(0x18f)]===0x0)throw CliErrors[_0x3488b2(0x18e)](_0x3488b2(0x1a7));_0x1ca3fc=new Set(_0x5ba2ed),console[_0x3488b2(0x184)]('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x5ba2ed[_0x3488b2(0x198)](',\x20')+_0x3488b2(0x180));}const _0x24e1bd=a12_0x1b076e(_0x3488b2(0x1aa)+_0x3cd4b4[_0x3488b2(0x186)]+_0x3488b2(0x1a1))[_0x3488b2(0x19e)]();let _0x234274;try{({configArray:_0x234274}=await fetchModelList(_0x3cd4b4['appCode'],_0x3cd4b4[_0x3488b2(0x1a3)]),_0x24e1bd[_0x3488b2(0x1b0)](_0x3488b2(0x18d)+_0x234274[_0x3488b2(0x18f)]+'\x20dataset(s)'));}catch(_0x118dac){_0x24e1bd[_0x3488b2(0x1ac)]('Failed\x20to\x20fetch\x20datasets');throw _0x118dac;}if(_0x234274['length']===0x0)return console[_0x3488b2(0x184)](_0x3488b2(0x175)),{'ok':!![]};let _0x23abaa=_0x234274;if(_0x1ca3fc){_0x23abaa=_0x234274[_0x3488b2(0x17f)](_0x4b6579=>_0x1ca3fc[_0x3488b2(0x178)](_0x4b6579['datasetCode']));const _0x525740=[..._0x1ca3fc][_0x3488b2(0x17f)](_0x354351=>!_0x234274[_0x3488b2(0x197)](_0x1c4c59=>_0x1c4c59[_0x3488b2(0x185)]===_0x354351));_0x525740[_0x3488b2(0x18f)]>0x0&&console[_0x3488b2(0x184)](_0x3488b2(0x194)+_0x525740[_0x3488b2(0x198)](',\x20')+_0x3488b2(0x180));if(_0x23abaa[_0x3488b2(0x18f)]===0x0)throw CliErrors[_0x3488b2(0x18e)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x1ca3fc][_0x3488b2(0x198)](',\x20'));console[_0x3488b2(0x184)](_0x3488b2(0x19a)+_0x23abaa[_0x3488b2(0x18f)]+'\x20of\x20'+_0x234274['length']+_0x3488b2(0x199));}let _0x41c67b=0x0;const _0x4a6be0=await generateDatasetDocs(_0x23abaa,_0x3cd4b4[_0x3488b2(0x186)],_0x3cd4b4[_0x3488b2(0x1a3)],_0x46b6fe,(_0x5eb0d4,_0x3bed85,_0x38f96d)=>{const _0x21500d=_0x3488b2;_0x41c67b=_0x5eb0d4,process[_0x21500d(0x19c)][_0x21500d(0x196)]('\x0d\x20\x20['+String(_0x5eb0d4)['padStart'](String(_0x3bed85)[_0x21500d(0x18f)])+'/'+_0x3bed85+']\x20'+_0x38f96d+_0x21500d(0x195));},_0x5e2b4f);if(_0x41c67b>0x0)process[_0x3488b2(0x19c)][_0x3488b2(0x196)]('\x0a');const _0x5ee831=_0x4a6be0[_0x3488b2(0x17f)](_0x45f257=>_0x45f257[_0x3488b2(0x17d)])['length'],_0xa1abc0=_0x4a6be0[_0x3488b2(0x17f)](_0x50d36b=>!_0x50d36b['success'])[_0x3488b2(0x18f)];console[_0x3488b2(0x184)](),console[_0x3488b2(0x184)]('✓\x20Generated\x20'+_0x5ee831+_0x3488b2(0x1a4)+_0x46b6fe);if(_0xa1abc0>0x0){console[_0x3488b2(0x190)]('!\x20'+_0xa1abc0+_0x3488b2(0x19f));for(const _0x185800 of _0x4a6be0[_0x3488b2(0x17f)](_0x1411b5=>!_0x1411b5['success'])){console[_0x3488b2(0x190)](_0x3488b2(0x188)+_0x185800[_0x3488b2(0x19b)]+'\x20('+_0x185800[_0x3488b2(0x185)]+_0x3488b2(0x1a2)+_0x185800[_0x3488b2(0x190)]);}}return{'ok':_0xa1abc0===0x0,'message':_0xa1abc0>0x0?'Doc\x20generation:\x20'+_0x5ee831+_0x3488b2(0x179)+_0xa1abc0+_0x3488b2(0x17a):_0x3488b2(0x189)+_0x5ee831+'\x20file(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x333743,_0x3d8e18){const _0x3381d4=a13_0x584b,_0x3a3c7e=_0x333743();while(!![]){try{const _0x3f6c8a=parseInt(_0x3381d4(0x7c))/0x1*(parseInt(_0x3381d4(0x7e))/0x2)+-parseInt(_0x3381d4(0x77))/0x3*(-parseInt(_0x3381d4(0x7f))/0x4)+-parseInt(_0x3381d4(0x7b))/0x5+-parseInt(_0x3381d4(0x80))/0x6*(parseInt(_0x3381d4(0x7d))/0x7)+-parseInt(_0x3381d4(0x78))/0x8*(-parseInt(_0x3381d4(0x76))/0x9)+-parseInt(_0x3381d4(0x79))/0xa+parseInt(_0x3381d4(0x7a))/0xb*(parseInt(_0x3381d4(0x75))/0xc);if(_0x3f6c8a===_0x3d8e18)break;else _0x3a3c7e['push'](_0x3a3c7e['shift']());}catch(_0x5b0f53){_0x3a3c7e['push'](_0x3a3c7e['shift']());}}}(a13_0x2d6d,0xb6007));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';function a13_0x2d6d(){const _0x5315fa=['4517840wuAKug','3444700WDSHvS','33VEtTfQ','6584780FWPqGR','7bCfoWD','2211503ATdUOt','240668ghQqgn','4OoxNRP','24CRPTYZ','6529668BBiNaf','18tSIYur','199218VspZsB'];a13_0x2d6d=function(){return _0x5315fa;};return a13_0x2d6d();}function a13_0x584b(_0x34fc01,_0x11b05a){_0x34fc01=_0x34fc01-0x75;const _0x2d6dc0=a13_0x2d6d();let _0x584b5c=_0x2d6dc0[_0x34fc01];return _0x584b5c;}import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
|
package/lib/commands/api/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x512de6=a14_0x3c6a;function a14_0x3c6a(_0x1c9aa9,_0x3b1388){_0x1c9aa9=_0x1c9aa9-0x163;const _0x3faecb=a14_0x3fae();let _0x3c6a63=_0x3faecb[_0x1c9aa9];return _0x3c6a63;}(function(_0x46825a,_0xf11c42){const _0x46f573=a14_0x3c6a,_0x599a1d=_0x46825a();while(!![]){try{const _0x314da5=parseInt(_0x46f573(0x171))/0x1+parseInt(_0x46f573(0x16d))/0x2+parseInt(_0x46f573(0x177))/0x3*(-parseInt(_0x46f573(0x16e))/0x4)+-parseInt(_0x46f573(0x164))/0x5*(parseInt(_0x46f573(0x170))/0x6)+parseInt(_0x46f573(0x179))/0x7+parseInt(_0x46f573(0x169))/0x8*(parseInt(_0x46f573(0x174))/0x9)+-parseInt(_0x46f573(0x172))/0xa;if(_0x314da5===_0xf11c42)break;else _0x599a1d['push'](_0x599a1d['shift']());}catch(_0x508ca0){_0x599a1d['push'](_0x599a1d['shift']());}}}(a14_0x3fae,0x59437));function a14_0x3fae(){const _0x541e7c=['str','45jxZQqe','cookie','name','168027yCOTKk','isDefault','2155342HzfxIe','appcode','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','3855Gtdztn','api','global','read','env','1150520OTJANK','boolean','list','appCode','1305554KNpfmk','4jszGBv','production','1758LZKryZ','457838hWIeVo','14900610ddhNPJ'];a14_0x3fae=function(){return _0x541e7c;};return a14_0x3fae();}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a14_0x512de6(0x165),'command':a14_0x512de6(0x16b),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a14_0x512de6(0x167),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x512de6(0x166),'type':a14_0x512de6(0x16a),'description':a14_0x512de6(0x163),'default':![]}],async 'execute'(_0x1d6243){const _0x440919=a14_0x512de6,_0x547929=_0x1d6243[_0x440919(0x173)]('appcode'),_0x22875f=resolveTargetApps(_0x1d6243,_0x547929);if(_0x22875f){const _0x19d43d=[];for(const _0x3516c0 of _0x22875f){const _0x4e6853=_0x3516c0[_0x440919(0x175)]||_0x1d6243[_0x440919(0x175)],_0x5246c4=_0x3516c0[_0x440919(0x168)]||_0x440919(0x16f);initEnv(_0x5246c4);const {configArray:_0x29d4c0}=await fetchModelList(_0x3516c0[_0x440919(0x17a)],_0x4e6853);_0x19d43d['push'](..._0x29d4c0['map'](_0xc2694c=>({..._0xc2694c,'_appName':_0x3516c0[_0x440919(0x176)],'_appCode':_0x3516c0[_0x440919(0x17a)],'_env':_0x5246c4,'_isDefault':_0x3516c0[_0x440919(0x178)]})));}return{'ok':!![],'data':_0x19d43d};}const {configArray:_0x4473b5}=await fetchModelList(_0x1d6243[_0x440919(0x16c)],_0x1d6243['cookie']);return{'ok':!![],'data':_0x4473b5};}};
|
package/lib/commands/api/pull.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x480104=a15_0x5f82;(function(_0x5882e3,_0x541bcc){const _0x52d4c6=a15_0x5f82,_0x25a4cf=_0x5882e3();while(!![]){try{const _0x1a58c9=parseInt(_0x52d4c6(0x17c))/0x1*(parseInt(_0x52d4c6(0x17e))/0x2)+parseInt(_0x52d4c6(0x181))/0x3*(parseInt(_0x52d4c6(0x199))/0x4)+-parseInt(_0x52d4c6(0x16d))/0x5*(parseInt(_0x52d4c6(0x167))/0x6)+-parseInt(_0x52d4c6(0x19c))/0x7+-parseInt(_0x52d4c6(0x180))/0x8+parseInt(_0x52d4c6(0x16b))/0x9*(-parseInt(_0x52d4c6(0x174))/0xa)+-parseInt(_0x52d4c6(0x19a))/0xb*(-parseInt(_0x52d4c6(0x189))/0xc);if(_0x1a58c9===_0x541bcc)break;else _0x25a4cf['push'](_0x25a4cf['shift']());}catch(_0x3fc8e2){_0x25a4cf['push'](_0x25a4cf['shift']());}}}(a15_0x58ed,0x80b95));import a15_0x2d5f0d from'ora';import a15_0x1a2659 from'node:path';function a15_0x5f82(_0x444904,_0x4079b7){_0x444904=_0x444904-0x164;const _0x58ed6a=a15_0x58ed();let _0x5f8278=_0x58ed6a[_0x444904];return _0x5f8278;}import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x58ed(){const _0x51255d=['\x20app(s)\x20failed','996pTrnys','includes','Pulling\x20API\x20config\x20for\x20','\x20dataset(s),\x20generated\x20','Done:\x20','string','appCode','name','length',')...','write','join','cookie','message','output','modelCount','8CbLJuL','183117EwIUut','env','5778591lpCjVY','appcode','\x20dataset(s)\x20→\x20','str','761916caTJCL','error','Output\x20directory\x20(default:\x20','fail','2638908XXNJJx','api','5AEUlyT','apiDir','pull','apiFilePath','isDefault','log','split','10BBvQQG','clientFilePath','-client','Pulled\x20','\x20failed','Failed:\x20','global','Pulling\x20','1tnLHXU','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','1799090qjWXMW','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','4754464gZZvco','129039bonUrK','\x20succeeded,\x20','succeed','production','\x20\x20•\x20','start','...'];a15_0x58ed=function(){return _0x51255d;};return a15_0x58ed();}import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiPull={'service':a15_0x480104(0x16c),'command':a15_0x480104(0x16f),'description':a15_0x480104(0x17f)+DEFAULT_API_DIR+'/)','risk':a15_0x480104(0x193),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x480104(0x197),'type':a15_0x480104(0x18e),'description':a15_0x480104(0x169)+DEFAULT_API_DIR+'/)'},{'name':a15_0x480104(0x17a),'type':'boolean','description':a15_0x480104(0x17d),'default':![]}],async 'execute'(_0x5ab613){const _0x30f56c=a15_0x480104,_0x15464c=_0x5ab613['str']('appcode'),_0x55e748=_0x5ab613[_0x30f56c(0x166)](_0x30f56c(0x197))||undefined,_0x43038d=resolveTargetApps(_0x5ab613,_0x15464c);if(_0x43038d){let _0x489710=0x0,_0x43293f=0x0;for(const _0x50a6f2 of _0x43038d){const _0x47e425=_0x50a6f2[_0x30f56c(0x195)]||_0x5ab613[_0x30f56c(0x195)],_0x16bb65=_0x50a6f2[_0x30f56c(0x19b)]||_0x30f56c(0x184);initEnv(_0x16bb65);const _0xfefca7=_0x50a6f2[_0x30f56c(0x16e)]||_0x55e748||_0x5ab613['apiDir']||DEFAULT_API_DIR,_0x59e975=_0x50a6f2[_0x30f56c(0x171)]?'':_0x50a6f2[_0x30f56c(0x190)]||_0x50a6f2[_0x30f56c(0x164)],_0x1908d9=a15_0x2d5f0d(_0x30f56c(0x17b)+_0x50a6f2[_0x30f56c(0x190)]+'\x20('+_0x50a6f2[_0x30f56c(0x164)]+_0x30f56c(0x192))[_0x30f56c(0x186)]();try{const {configArray:_0x41c21a}=await fetchModelList(_0x50a6f2['appcode'],_0x47e425),_0x4737a9=await generateApiFile(_0x41c21a,_0x59e975,_0x50a6f2[_0x30f56c(0x164)],_0x50a6f2['isDefault'],_0x16bb65,_0xfefca7,_0x50a6f2[_0x30f56c(0x190)]);_0x1908d9[_0x30f56c(0x183)](_0x50a6f2[_0x30f56c(0x190)]+':\x20'+_0x41c21a[_0x30f56c(0x191)]+_0x30f56c(0x165)+_0x4737a9[_0x30f56c(0x198)]+'\x20model(s)'),console['log'](_0x30f56c(0x185)+_0x4737a9[_0x30f56c(0x170)]),console[_0x30f56c(0x172)]('\x20\x20•\x20'+_0x4737a9[_0x30f56c(0x175)]),_0x489710++;}catch(_0x1828dc){_0x1908d9[_0x30f56c(0x16a)](_0x50a6f2[_0x30f56c(0x190)]+':\x20'+(_0x1828dc instanceof Error?_0x1828dc[_0x30f56c(0x196)]:String(_0x1828dc))),_0x43293f++;}}console[_0x30f56c(0x172)]();if(_0x43293f>0x0)console[_0x30f56c(0x168)]('!\x20'+_0x43293f+_0x30f56c(0x188));return{'ok':_0x43293f===0x0,'message':_0x30f56c(0x18d)+_0x489710+_0x30f56c(0x182)+_0x43293f+_0x30f56c(0x178)};}const _0x418f78=_0x15464c&&_0x15464c[_0x30f56c(0x18a)]('-')?_0x15464c[_0x30f56c(0x173)]('-')['slice'](0x1)[_0x30f56c(0x194)]('-'):'',_0x1e4830=_0x55e748||_0x5ab613[_0x30f56c(0x16e)]||DEFAULT_API_DIR,_0x542e67=!_0x15464c,_0x18f7ae=a15_0x2d5f0d(_0x30f56c(0x18b)+_0x5ab613[_0x30f56c(0x18f)]+_0x30f56c(0x187))[_0x30f56c(0x186)]();try{const {configArray:_0x15042c}=await fetchModelList(_0x5ab613[_0x30f56c(0x18f)],_0x5ab613[_0x30f56c(0x195)]),_0x2eefb5=await generateApiFile(_0x15042c,_0x418f78,_0x5ab613['appCode'],_0x542e67,getEnv(),_0x1e4830);_0x18f7ae[_0x30f56c(0x183)](_0x30f56c(0x177)+_0x15042c['length']+_0x30f56c(0x18c)+_0x2eefb5['modelCount']+'\x20model(s)');const _0x19bdf7=_0x418f78?_0x418f78+'-api':_0x30f56c(0x16c),_0x1b4fbb=_0x418f78?_0x418f78+_0x30f56c(0x176):'client';return console[_0x30f56c(0x172)](_0x30f56c(0x185)+a15_0x1a2659[_0x30f56c(0x194)](_0x1e4830,_0x19bdf7+'.ts')),console[_0x30f56c(0x172)](_0x30f56c(0x185)+a15_0x1a2659[_0x30f56c(0x194)](_0x1e4830,_0x1b4fbb+'.ts')),{'ok':!![],'data':{'datasetCount':_0x15042c[_0x30f56c(0x191)],'modelCount':_0x2eefb5[_0x30f56c(0x198)]}};}catch(_0x31546a){_0x18f7ae[_0x30f56c(0x16a)](_0x30f56c(0x179)+(_0x31546a instanceof Error?_0x31546a[_0x30f56c(0x196)]:String(_0x31546a)));throw _0x31546a;}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a16_0xe87b(_0x3876e9,_0x34f846){_0x3876e9=_0x3876e9-0x12f;const _0x24f8da=a16_0x24f8();let _0xe87b6e=_0x24f8da[_0x3876e9];return _0xe87b6e;}(function(_0x4f722e,_0x19b1c8){const _0xe94226=a16_0xe87b,_0xc18313=_0x4f722e();while(!![]){try{const _0x4e66b5=-parseInt(_0xe94226(0x141))/0x1*(parseInt(_0xe94226(0x134))/0x2)+-parseInt(_0xe94226(0x144))/0x3*(parseInt(_0xe94226(0x142))/0x4)+-parseInt(_0xe94226(0x132))/0x5*(parseInt(_0xe94226(0x133))/0x6)+-parseInt(_0xe94226(0x143))/0x7*(-parseInt(_0xe94226(0x135))/0x8)+-parseInt(_0xe94226(0x13d))/0x9*(parseInt(_0xe94226(0x138))/0xa)+-parseInt(_0xe94226(0x139))/0xb+-parseInt(_0xe94226(0x136))/0xc*(-parseInt(_0xe94226(0x12f))/0xd);if(_0x4e66b5===_0x19b1c8)break;else _0xc18313['push'](_0xc18313['shift']());}catch(_0xf8c2c3){_0xc18313['push'](_0xc18313['shift']());}}}(a16_0x24f8,0x81b56));import{getMultiAppConfigs}from'../../utils/config.js';function a16_0x24f8(){const _0x5e497f=['2vgeJfn','4lwcAng','7WayaCf','262557UlTSln','selectedAppName','26rycMht','map','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','29395FndSuN','906cJQWJT','755562VBiYKQ','1885632MAkKJR','17151972SnXOia','merged','330QnkFXq','8989079aRiXBY','global','project','filter','4113YvGiKW','length','App\x20\x22','name'];a16_0x24f8=function(){return _0x5e497f;};return a16_0x24f8();}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0xfc788f,_0x431c28){const _0x280973=a16_0xe87b;if(_0x431c28)return null;const _0x4135e7=_0xfc788f['bool'](_0x280973(0x13a))?_0x280973(0x137):_0x280973(0x13b);let _0x10f227=getMultiAppConfigs(_0x4135e7);if(!_0x10f227||_0x10f227[_0x280973(0x13e)]===0x0)return null;if(_0xfc788f[_0x280973(0x145)]){const _0x32fe38=_0x10f227[_0x280973(0x13c)](_0x3ee125=>_0x3ee125[_0x280973(0x140)]===_0xfc788f[_0x280973(0x145)]);if(_0x32fe38[_0x280973(0x13e)]===0x0){const _0x5d27be=_0x10f227[_0x280973(0x130)](_0x2e1892=>_0x2e1892[_0x280973(0x140)])['join'](',\x20');throw CliErrors['validation'](_0x280973(0x13f)+_0xfc788f[_0x280973(0x145)]+_0x280973(0x131)+_0x5d27be);}_0x10f227=_0x32fe38;}return _0x10f227;}
|
package/lib/commands/app/add.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0xca0240=a17_0x1fd0;(function(_0x230b6b,_0x529748){const _0x5d67db=a17_0x1fd0,_0xe6a75b=_0x230b6b();while(!![]){try{const _0x4cbc8b=parseInt(_0x5d67db(0xf2))/0x1*(parseInt(_0x5d67db(0xf8))/0x2)+parseInt(_0x5d67db(0xe7))/0x3+-parseInt(_0x5d67db(0xe5))/0x4*(-parseInt(_0x5d67db(0x101))/0x5)+-parseInt(_0x5d67db(0x116))/0x6*(-parseInt(_0x5d67db(0xf3))/0x7)+-parseInt(_0x5d67db(0xfc))/0x8*(parseInt(_0x5d67db(0x10c))/0x9)+parseInt(_0x5d67db(0xec))/0xa*(-parseInt(_0x5d67db(0xe8))/0xb)+-parseInt(_0x5d67db(0x112))/0xc;if(_0x4cbc8b===_0x529748)break;else _0xe6a75b['push'](_0xe6a75b['shift']());}catch(_0x10de4f){_0xe6a75b['push'](_0xe6a75b['shift']());}}}(a17_0x543c,0xc4086));import{CliErrors}from'../../errors.js';function a17_0x543c(){const _0x3bf7de=['\x20Set\x20as\x20default\x20app.','14496eTowlm','global','1303953BMpZhX','11XnBJAl','defaultApp','number','validation','239870YHRhsC','riskLevel','\x22\x20(appcode:\x20','app','format','Use\x20global\x20config\x20scope','679891iVIreR','249165RNIWWt','entries','name','API\x20directory\x20path','string','2qzQWPw','bool','\x20app\x20add\x20<name>\x20--appcode\x20<code>','apps','104UEzsUy','Updated','appcode','Access\x20key','keys','455HFWRuk','Usage:\x20','accessKey','str','Risk\x20level','Target\x20environment','Add\x20or\x20update\x20an\x20app\x20in\x20config','Auth\x20cookie','args','length','cookie','585171RvwsEj','Missing\x20app\x20name.','locale','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','trim','App\x20profile\x20name','2818524ckSpqD','apiDir','env','boolean','78QAlHlj','pageSize','write','App\x20code'];a17_0x543c=function(){return _0x3bf7de;};return a17_0x543c();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a17_0x1fd0(_0xf2de9c,_0x5301f6){_0xf2de9c=_0xf2de9c-0xe3;const _0x543c64=a17_0x543c();let _0x1fd08c=_0x543c64[_0xf2de9c];return _0x1fd08c;}import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':a17_0xca0240(0x114),'apiDir':a17_0xca0240(0x113),'cookie':'cookie','accessKey':a17_0xca0240(0x103),'defaultFormat':a17_0xca0240(0xf0),'pageSize':a17_0xca0240(0x117),'riskLevel':a17_0xca0240(0xed),'locale':'locale'};async function validateArgs(_0x248a6d){const _0x41b300=a17_0xca0240,_0x3f44c7=_0x248a6d[_0x41b300(0x109)][0x0]?.[_0x41b300(0x110)]();if(!_0x3f44c7)throw CliErrors[_0x41b300(0xeb)](_0x41b300(0x10d),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x1b9a95){const _0x32e4c7=a17_0xca0240,_0xe0ffd8=_0x1b9a95[_0x32e4c7(0x109)][0x0]?.[_0x32e4c7(0x110)]();if(!_0xe0ffd8)throw CliErrors[_0x32e4c7(0xeb)](_0x32e4c7(0x10d),_0x32e4c7(0x102)+CLI_BIN_NAME+_0x32e4c7(0xfa));const _0x24d790=_0x1b9a95['str'](_0x32e4c7(0xfe));if(!_0x24d790)throw CliErrors['flagMissing'](_0x32e4c7(0xfe),_0x32e4c7(0x102)+CLI_BIN_NAME+_0x32e4c7(0xfa));const _0x11febf={'global':_0x1b9a95[_0x32e4c7(0xf9)](_0x32e4c7(0xe6))},_0x537024=readConfig(_0x11febf);if(!_0x537024[_0x32e4c7(0xfb)])_0x537024[_0x32e4c7(0xfb)]={};Object[_0x32e4c7(0x100)](_0x537024[_0x32e4c7(0xfb)])[_0x32e4c7(0x10a)]===0x0&&migrateLegacySingleApp(_0x537024,_0xe0ffd8);const _0x24722e={'appcode':_0x24d790};for(const [_0x38a67,_0x4a0830]of Object[_0x32e4c7(0xf4)](PROFILE_FLAG_KEYS)){const _0xc99757=_0x1b9a95[_0x32e4c7(0x104)](_0x38a67);_0xc99757&&(_0x24722e[_0x4a0830]=_0x4a0830===_0x32e4c7(0x117)?Number(_0xc99757):_0xc99757);}const _0x19608f=_0x537024['apps'],_0x20b6b9=!!_0x19608f[_0xe0ffd8];_0x19608f[_0xe0ffd8]=_0x24722e;if(!_0x537024[_0x32e4c7(0xe9)])_0x537024['defaultApp']=_0xe0ffd8;writeConfig(_0x537024,_0x11febf);const _0x4656b1=!_0x20b6b9&&_0x537024[_0x32e4c7(0xe9)]===_0xe0ffd8?_0x32e4c7(0xe4):'';return{'ok':!![],'message':(_0x20b6b9?_0x32e4c7(0xfd):'Added')+'\x20app\x20\x22'+_0xe0ffd8+_0x32e4c7(0xee)+_0x24d790+')'+scopeLabel(_0x11febf)+'.'+_0x4656b1};}export const appAddDefinition={'service':a17_0xca0240(0xef),'command':'add','description':a17_0xca0240(0x107),'risk':a17_0xca0240(0x118),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0xca0240(0xf5),'description':a17_0xca0240(0x111),'required':!![]}],'flags':[{'name':'appcode','type':'string','description':a17_0xca0240(0xe3),'required':!![]},{'name':a17_0xca0240(0xe6),'type':a17_0xca0240(0x115),'description':a17_0xca0240(0xf1),'default':![]},{'name':a17_0xca0240(0x114),'type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x106)},{'name':a17_0xca0240(0x113),'type':a17_0xca0240(0xf7),'description':a17_0xca0240(0xf6)},{'name':a17_0xca0240(0x10b),'type':'string','description':a17_0xca0240(0x108),'hidden':!![]},{'name':a17_0xca0240(0x103),'type':'string','description':a17_0xca0240(0xff),'hidden':!![]},{'name':'defaultFormat','type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x10f)},{'name':a17_0xca0240(0x117),'type':a17_0xca0240(0xea),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':a17_0xca0240(0xf7),'description':a17_0xca0240(0x105)},{'name':a17_0xca0240(0x10e),'type':a17_0xca0240(0xf7),'description':'Locale'}],'validate':validateArgs,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d1d88,_0x3cadc6){const _0x2fc22c=a18_0x2154,_0xf8643=_0x1d1d88();while(!![]){try{const _0x3cc42e=parseInt(_0x2fc22c(0x135))/0x1*(-parseInt(_0x2fc22c(0x12e))/0x2)+-parseInt(_0x2fc22c(0x134))/0x3*(parseInt(_0x2fc22c(0x130))/0x4)+parseInt(_0x2fc22c(0x132))/0x5*(parseInt(_0x2fc22c(0x136))/0x6)+-parseInt(_0x2fc22c(0x131))/0x7*(-parseInt(_0x2fc22c(0x137))/0x8)+-parseInt(_0x2fc22c(0x139))/0x9*(parseInt(_0x2fc22c(0x133))/0xa)+-parseInt(_0x2fc22c(0x138))/0xb+parseInt(_0x2fc22c(0x12f))/0xc;if(_0x3cc42e===_0x3cadc6)break;else _0xf8643['push'](_0xf8643['shift']());}catch(_0x44437e){_0xf8643['push'](_0xf8643['shift']());}}}(a18_0x27ae,0xd087a));import{appListDefinition}from'../../commands/app/list.js';import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';function a18_0x27ae(){const _0x3eabac=['79974METgfV','8hIHiXD','17216210TgQruz','9gmDooj','86UmJpfr','34802412xYmkjo','9456gTveRC','9442769nphNWC','190pOlDFa','10057010rKBoor','1548QQhkQY','2579ufYrQw'];a18_0x27ae=function(){return _0x3eabac;};return a18_0x27ae();}import{appAddDefinition}from'../../commands/app/add.js';function a18_0x2154(_0x1662d7,_0x3d97f8){_0x1662d7=_0x1662d7-0x12e;const _0x27aeb1=a18_0x27ae();let _0x215489=_0x27aeb1[_0x1662d7];return _0x215489;}import{appRemoveDefinition}from'../../commands/app/remove.js';export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];
|