@lovrabet/lovrabet-cli 2.0.14-beta.2 → 2.0.14-beta.3
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/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/update.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.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/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a39_0x348a(){const _0x402d9e=['Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','json\x20|\x20pretty\x20|\x20compress','Select\x20app\x20profile\x20by\x20name','type','65Ipxlah','<expr>','6YQLvea','appcode','help','<code>','params','boolean','verbose','Skip\x20confirmation\x20for\x20high-risk\x20writes','Override\x20appcode','name','9362276MWqvYp','env','Output\x20format','236916pifAom','production\x20|\x20development\x20|\x20daily','41398WXbZVP','Use\x20global\x20config\x20scope','1021712fcjXTD','string','global','Verbose\x20output','35rIqtMS','app','fromEntries','314252fSXnHn','non-interactive','240GoAeaF','sqlcode','yes','clear','Clear\x20output','<name>','SQL\x20query\x20code','dry-run','Name\x20filter','1021886OIjvYY','Record\x20ID','874590ymiKAL','Show\x20help','format'];a39_0x348a=function(){return _0x402d9e;};return a39_0x348a();}const a39_0x1a2d33=a39_0x499b;(function(_0x4457a8,_0x3fdbc3){const _0x4e7c48=a39_0x499b,_0x9f973c=_0x4457a8();while(!![]){try{const _0x3dfd2b=-parseInt(_0x4e7c48(0xa4))/0x1+-parseInt(_0x4e7c48(0x90))/0x2*(-parseInt(_0x4e7c48(0xaf))/0x3)+parseInt(_0x4e7c48(0x99))/0x4*(parseInt(_0x4e7c48(0xad))/0x5)+parseInt(_0x4e7c48(0xa6))/0x6+parseInt(_0x4e7c48(0x96))/0x7*(parseInt(_0x4e7c48(0x92))/0x8)+parseInt(_0x4e7c48(0x8e))/0x9*(parseInt(_0x4e7c48(0x9b))/0xa)+-parseInt(_0x4e7c48(0x8b))/0xb;if(_0x3dfd2b===_0x3fdbc3)break;else _0x9f973c['push'](_0x9f973c['shift']());}catch(_0x45d4e3){_0x9f973c['push'](_0x9f973c['shift']());}}}(a39_0x348a,0x93e82));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a39_0x499b(_0x869156,_0x3271){_0x869156=_0x869156-0x89;const _0x348a1e=a39_0x348a();let _0x499b23=_0x348a1e[_0x869156];return _0x499b23;}export const GLOBAL_FLAGS=[{'name':a39_0x1a2d33(0xb0),'meowKey':a39_0x1a2d33(0xb0),'type':a39_0x1a2d33(0x93),'description':a39_0x1a2d33(0x89),'hint':a39_0x1a2d33(0xb2)},{'name':'app','meowKey':a39_0x1a2d33(0x97),'type':a39_0x1a2d33(0x93),'description':a39_0x1a2d33(0xab),'hint':a39_0x1a2d33(0xa0)},{'name':a39_0x1a2d33(0x8c),'meowKey':a39_0x1a2d33(0x8c),'type':'string','description':'Environment','hint':a39_0x1a2d33(0x8f)},{'name':a39_0x1a2d33(0xa8),'meowKey':'format','type':'string','description':a39_0x1a2d33(0x8d),'hint':a39_0x1a2d33(0xaa)},{'name':'jq','meowKey':'jq','type':a39_0x1a2d33(0x93),'description':a39_0x1a2d33(0xa9),'hint':a39_0x1a2d33(0xae)},{'name':a39_0x1a2d33(0xa2),'meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a39_0x1a2d33(0x9d),'meowKey':a39_0x1a2d33(0x9d),'type':a39_0x1a2d33(0xb4),'description':a39_0x1a2d33(0xb6)},{'name':a39_0x1a2d33(0x9a),'meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a39_0x1a2d33(0x94),'type':a39_0x1a2d33(0xb4),'description':a39_0x1a2d33(0x91)},{'name':'ci','meowKey':'ci','type':a39_0x1a2d33(0xb4),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a39_0x1a2d33(0xb1),'meowKey':a39_0x1a2d33(0xb1),'type':a39_0x1a2d33(0xb4),'description':a39_0x1a2d33(0xa7)},{'name':'id','meowKey':'id','type':'string','description':a39_0x1a2d33(0xa5),'hidden':!![]},{'name':a39_0x1a2d33(0x8a),'meowKey':a39_0x1a2d33(0x8a),'type':a39_0x1a2d33(0x93),'description':a39_0x1a2d33(0xa3),'hidden':!![]},{'name':a39_0x1a2d33(0x9c),'meowKey':'sqlcode','type':a39_0x1a2d33(0x93),'description':a39_0x1a2d33(0xa1),'hidden':!![]},{'name':a39_0x1a2d33(0xb3),'meowKey':a39_0x1a2d33(0xb3),'type':a39_0x1a2d33(0x93),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a39_0x1a2d33(0xb5),'meowKey':'verbose','type':a39_0x1a2d33(0xb4),'description':a39_0x1a2d33(0x95),'hidden':!![]},{'name':a39_0x1a2d33(0x9e),'meowKey':a39_0x1a2d33(0x9e),'type':a39_0x1a2d33(0xb4),'description':a39_0x1a2d33(0x9f),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a39_0x1a2d33(0xb0),a39_0x1a2d33(0x97),a39_0x1a2d33(0x8c),a39_0x1a2d33(0xa8),'jq',a39_0x1a2d33(0xa2),a39_0x1a2d33(0x9d),a39_0x1a2d33(0x9a),'ci']);export function buildMeowFlags(){const _0x4086d0=a39_0x1a2d33;return Object[_0x4086d0(0x98)](GLOBAL_FLAGS['map'](_0x8d321e=>[_0x8d321e['meowKey'],{'type':_0x8d321e[_0x4086d0(0xac)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a40_0x5b91(){const _0x51b3eb=['compress','1766765XaYEUA','5aUUCEX','670032HeIZOi','write','9kUQcST','5046204opdblF','5024440BCVovq','production','162UawfAi','1184109OTGlpF','9668030vKVmgx','en-US','main','41892skZKIx','18BiubZv'];a40_0x5b91=function(){return _0x51b3eb;};return a40_0x5b91();}function a40_0x3c9f(_0x30da7e,_0x1ff99f){_0x30da7e=_0x30da7e-0x109;const _0x5b91d0=a40_0x5b91();let _0x3c9f83=_0x5b91d0[_0x30da7e];return _0x3c9f83;}const a40_0x2b068f=a40_0x3c9f;(function(_0x28d14a,_0x44404b){const _0x2de5c5=a40_0x3c9f,_0x2acd97=_0x28d14a();while(!![]){try{const _0x1162ef=-parseInt(_0x2de5c5(0x117))/0x1+-parseInt(_0x2de5c5(0x116))/0x2*(-parseInt(_0x2de5c5(0x10b))/0x3)+parseInt(_0x2de5c5(0x113))/0x4*(parseInt(_0x2de5c5(0x10f))/0x5)+parseInt(_0x2de5c5(0x10c))/0x6*(-parseInt(_0x2de5c5(0x10e))/0x7)+-parseInt(_0x2de5c5(0x114))/0x8*(parseInt(_0x2de5c5(0x112))/0x9)+parseInt(_0x2de5c5(0x118))/0xa+-parseInt(_0x2de5c5(0x110))/0xb;if(_0x1162ef===_0x44404b)break;else _0x2acd97['push'](_0x2acd97['shift']());}catch(_0x3ae6a6){_0x2acd97['push'](_0x2acd97['shift']());}}}(a40_0x5b91,0xb2059));export const DEFAULT_APP_PROFILE_NAME=a40_0x2b068f(0x10a);export const DEFAULT_CONFIG_VALUES={'env':a40_0x2b068f(0x115),'format':a40_0x2b068f(0x10d),'locale':a40_0x2b068f(0x109),'riskLevel':a40_0x2b068f(0x111)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a40_0x2b068f(0x10d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41_0x484dd8=a41_0x4c3f;(function(_0x17fa57,_0x3b2e3a){const _0x5e9d46=a41_0x4c3f,_0x326df9=_0x17fa57();while(!![]){try{const _0x54a4aa=-parseInt(_0x5e9d46(0x152))/0x1+parseInt(_0x5e9d46(0x15a))/0x2+-parseInt(_0x5e9d46(0x15b))/0x3+-parseInt(_0x5e9d46(0x154))/0x4+-parseInt(_0x5e9d46(0x153))/0x5*(parseInt(_0x5e9d46(0x159))/0x6)+-parseInt(_0x5e9d46(0x150))/0x7*(parseInt(_0x5e9d46(0x158))/0x8)+parseInt(_0x5e9d46(0x155))/0x9*(parseInt(_0x5e9d46(0x151))/0xa);if(_0x54a4aa===_0x3b2e3a)break;else _0x326df9['push'](_0x326df9['shift']());}catch(_0x332e04){_0x326df9['push'](_0x326df9['shift']());}}}(a41_0x2fe6,0x647d4));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a41_0x484dd8(0x156)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a41_0x4c3f(_0x40c208,_0x4df1b6){_0x40c208=_0x40c208-0x150;const _0x2fe6a7=a41_0x2fe6();let _0x4c3f33=_0x2fe6a7[_0x40c208];return _0x4c3f33;}function a41_0x2fe6(){const _0x1bb1a3=['1252947qYsaXx','14pnHERL','20nspsid','291045jdqUym','410PaGSBO','1971300SeQreT','7497981KKRPFe','npmPackageName','npmRegistryBaseUrl','1447688LujsxX','11034RtPxZf','919250HxxRsp'];a41_0x2fe6=function(){return _0x1bb1a3;};return a41_0x2fe6();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a41_0x484dd8(0x157)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a42_0x23b8(_0x81ae2f,_0x5d481f){_0x81ae2f=_0x81ae2f-0x110;const _0x1c31b1=a42_0x1c31();let _0x23b870=_0x1c31b1[_0x81ae2f];return _0x23b870;}const a42_0x29f70f=a42_0x23b8;(function(_0x51c7d4,_0x56d5f9){const _0x512ab5=a42_0x23b8,_0x10b1f4=_0x51c7d4();while(!![]){try{const _0x55aad9=parseInt(_0x512ab5(0x120))/0x1*(-parseInt(_0x512ab5(0x119))/0x2)+parseInt(_0x512ab5(0x113))/0x3*(parseInt(_0x512ab5(0x11f))/0x4)+parseInt(_0x512ab5(0x122))/0x5*(-parseInt(_0x512ab5(0x123))/0x6)+parseInt(_0x512ab5(0x121))/0x7*(parseInt(_0x512ab5(0x11e))/0x8)+-parseInt(_0x512ab5(0x116))/0x9+parseInt(_0x512ab5(0x117))/0xa*(-parseInt(_0x512ab5(0x114))/0xb)+parseInt(_0x512ab5(0x11c))/0xc*(parseInt(_0x512ab5(0x118))/0xd);if(_0x55aad9===_0x56d5f9)break;else _0x10b1f4['push'](_0x10b1f4['shift']());}catch(_0x1ae59e){_0x10b1f4['push'](_0x10b1f4['shift']());}}}(a42_0x1c31,0xc3a56));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x834bf4){const _0xf06b3f=a42_0x23b8;customApiDomain=_0x834bf4?.[_0xf06b3f(0x111)],customUserDomain=_0x834bf4?.[_0xf06b3f(0x125)],customRuntimeDomain=_0x834bf4?.[_0xf06b3f(0x110)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a42_0x29f70f(0x124)][a42_0x29f70f(0x112)][a42_0x29f70f(0x115)]:PRODUCT_CONFIG[a42_0x29f70f(0x124)][a42_0x29f70f(0x11d)]['user']);function a42_0x1c31(){const _0x50550e=['30MJMKyT','193713CAOmFM','623782RZZrlw','runtime','api','1812qumjsG','nonProduction','200pPJFQp','2380EqNsCp','2csscRW','430934KiorHo','20WGmmNk','183756xOhteg','domains','userDomain','runtimeDomain','apiDomain','production','2121aBeHpC','5759083KpBHYJ','user','9823095jgYhTn'];a42_0x1c31=function(){return _0x50550e;};return a42_0x1c31();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a42_0x29f70f(0x11b)]:PRODUCT_CONFIG[a42_0x29f70f(0x124)][a42_0x29f70f(0x11d)][a42_0x29f70f(0x11b)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a42_0x29f70f(0x124)]['production'][a42_0x29f70f(0x11a)]:PRODUCT_CONFIG[a42_0x29f70f(0x124)][a42_0x29f70f(0x11d)]['runtime']);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a43_0x45e6f3=a43_0x353a;(function(_0x37c228,_0x14304f){const _0x1a00ee=a43_0x353a,_0x50978d=_0x37c228();while(!![]){try{const _0x3aa647=-parseInt(_0x1a00ee(0x113))/0x1*(-parseInt(_0x1a00ee(0x11a))/0x2)+parseInt(_0x1a00ee(0x116))/0x3*(-parseInt(_0x1a00ee(0x111))/0x4)+-parseInt(_0x1a00ee(0x10e))/0x5*(-parseInt(_0x1a00ee(0x110))/0x6)+parseInt(_0x1a00ee(0x11e))/0x7*(-parseInt(_0x1a00ee(0x114))/0x8)+parseInt(_0x1a00ee(0x119))/0x9+-parseInt(_0x1a00ee(0x112))/0xa+parseInt(_0x1a00ee(0x118))/0xb;if(_0x3aa647===_0x14304f)break;else _0x50978d['push'](_0x50978d['shift']());}catch(_0x55512f){_0x50978d['push'](_0x50978d['shift']());}}}(a43_0x5d66,0xdffd5));import{productEnv}from'../constant/product.js';function a43_0x353a(_0x4b5b38,_0x29f8ca){_0x4b5b38=_0x4b5b38-0x10e;const _0x5d6639=a43_0x5d66();let _0x353a75=_0x5d6639[_0x4b5b38];return _0x353a75;}export const RUNTIME_ENV_VALUES=[a43_0x45e6f3(0x11c),a43_0x45e6f3(0x115),a43_0x45e6f3(0x10f)];export function normalizeEnv(_0x6b7df8){const _0x45a14b=a43_0x45e6f3;return _0x6b7df8===_0x45a14b(0x11b)?_0x45a14b(0x11c):_0x6b7df8;}export function isProduction(_0x204673){const _0x306cba=a43_0x45e6f3;return normalizeEnv(_0x204673)===_0x306cba(0x11c);}export function isDaily(_0x59ba6b){const _0x1c3a0f=a43_0x45e6f3;return normalizeEnv(_0x59ba6b)===_0x1c3a0f(0x10f);}export function isDev(_0x398c85){const _0x4d8e41=a43_0x45e6f3,_0x34784f=normalizeEnv(_0x398c85);return _0x34784f===_0x4d8e41(0x115)||_0x34784f===_0x4d8e41(0x117);}let env=normalizeEnv(productEnv(a43_0x45e6f3(0x11d))||'production');export function getEnv(){return env;}export function initEnv(_0x400d3b){env=normalizeEnv(_0x400d3b);}function a43_0x5d66(){const _0xfe8bfb=['dev','17814049DsJydl','14787306zXCGEa','316RFhhhE','online','production','ENV','110117HFjOGH','325vvODPP','daily','128130FBtLcm','44jmDpHO','14416990GUuztp','3545sGCheW','872eEZQhp','development','310047VlfpBs'];a43_0x5d66=function(){return _0xfe8bfb;};return a43_0x5d66();}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a44_0x2bb1(_0x3488b9,_0x27a554){_0x3488b9=_0x3488b9-0x149;const _0x557963=a44_0x5579();let _0x2bb1cc=_0x557963[_0x3488b9];return _0x2bb1cc;}function a44_0x5579(){const _0x22a2a4=['1299596GPqHhR','5371450COiZhL','58uDyyss','2791128xrneKC','55259ysRbOH','6109614DSjnhg','8193360yoCozy','compress','47772jywuJF','5240UsYYkf'];a44_0x5579=function(){return _0x22a2a4;};return a44_0x5579();}const a44_0x12fd46=a44_0x2bb1;(function(_0x337d82,_0x132948){const _0x2c6150=a44_0x2bb1,_0x4b35b8=_0x337d82();while(!![]){try{const _0x47a504=parseInt(_0x2c6150(0x14c))/0x1*(parseInt(_0x2c6150(0x14a))/0x2)+parseInt(_0x2c6150(0x14b))/0x3+parseInt(_0x2c6150(0x152))/0x4+parseInt(_0x2c6150(0x149))/0x5+parseInt(_0x2c6150(0x14e))/0x6+-parseInt(_0x2c6150(0x14d))/0x7+-parseInt(_0x2c6150(0x151))/0x8*(parseInt(_0x2c6150(0x150))/0x9);if(_0x47a504===_0x132948)break;else _0x4b35b8['push'](_0x4b35b8['shift']());}catch(_0x2daf8e){_0x4b35b8['push'](_0x4b35b8['shift']());}}}(a44_0x5579,0xe777e));export const OUTPUT_FORMAT_VALUES=['json','pretty',a44_0x12fd46(0x14f)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x370265=a45_0x43ca;(function(_0x258679,_0x18ac28){const _0x179a1e=a45_0x43ca,_0x5913f3=_0x258679();while(!![]){try{const _0x105cee=parseInt(_0x179a1e(0x138))/0x1*(-parseInt(_0x179a1e(0x12e))/0x2)+-parseInt(_0x179a1e(0x13a))/0x3+-parseInt(_0x179a1e(0x126))/0x4+-parseInt(_0x179a1e(0x130))/0x5*(-parseInt(_0x179a1e(0x124))/0x6)+parseInt(_0x179a1e(0x12f))/0x7+-parseInt(_0x179a1e(0x133))/0x8*(parseInt(_0x179a1e(0x131))/0x9)+parseInt(_0x179a1e(0x132))/0xa*(parseInt(_0x179a1e(0x139))/0xb);if(_0x105cee===_0x18ac28)break;else _0x5913f3['push'](_0x5913f3['shift']());}catch(_0xec1ba4){_0x5913f3['push'](_0x5913f3['shift']());}}}(a45_0x4e7d,0x1ecea));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a45_0x370265(0x128),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a45_0x370265(0x13d),'envPrefix':a45_0x370265(0x129),'legacyEnvPrefixes':[a45_0x370265(0x136)],'configFileNames':[a45_0x370265(0x13c),'.lovrabetrc'],'newConfigFileName':a45_0x370265(0x13c),'homeDirName':a45_0x370265(0x137),'logFileName':a45_0x370265(0x12a),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a45_0x370265(0x12c),'skipNpxSkillsEnvSuffix':a45_0x370265(0x12d),'domains':{'production':{'user':a45_0x370265(0x13b),'api':a45_0x370265(0x12b),'runtime':a45_0x370265(0x134)},'nonProduction':{'user':a45_0x370265(0x13e),'api':a45_0x370265(0x135),'runtime':'https://daily-runtime.lovrabet.com'}},'accessKeyCreatePath':a45_0x370265(0x13f)};function a45_0x43ca(_0x293595,_0x361330){_0x293595=_0x293595-0x124;const _0x4e7d4f=a45_0x4e7d();let _0x43ca1b=_0x4e7d4f[_0x293595];return _0x43ca1b;}export function productEnvName(_0x45cd47){const _0x38aead=a45_0x370265;return PRODUCT_CONFIG[_0x38aead(0x127)]+'_'+_0x45cd47;}export function productEnvNames(_0x3e2d34){const _0x5c840e=a45_0x370265;return[productEnvName(_0x3e2d34),...PRODUCT_CONFIG[_0x5c840e(0x140)][_0x5c840e(0x125)](_0x49b128=>_0x49b128+'_'+_0x3e2d34)];}export function productEnv(_0x571042){for(const _0x4e2e62 of productEnvNames(_0x571042)){const _0x16f284=process.env[_0x4e2e62];if(_0x16f284!==undefined)return _0x16f284;}return undefined;}function a45_0x4e7d(){const _0x4de05f=['.lovrabet-runtime.log','https://api.lovrabet.com','Lovrabet\x20User\x20Center','SKIP_NPX_SKILLS','2TboyKV','305214kAtKrP','5DhGKBe','9fNmNKu','10CEHaEj','567016LqGwSI','https://runtime.lovrabet.com','https://daily-api.lovrabet.com','RABETBASE','.lovrabet','244817sOHunn','4389913MqSJMd','472125ldEALq','https://user.lovrabet.com','.lovrabet.json','https://registry.npmjs.org','https://user-daily.lovrabet.com','/user/ak','legacyEnvPrefixes','1127526WmxonH','map','125404KtSsRU','envPrefix','Lovrabet\x20Runtime\x20CLI','LOVRABET'];a45_0x4e7d=function(){return _0x4de05f;};return a45_0x4e7d();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x36ea60=a46_0x16aa;function a46_0x16aa(_0x76b6be,_0x4f40ed){_0x76b6be=_0x76b6be-0x1e4;const _0x4a1d11=a46_0x4a1d();let _0x16aa67=_0x4a1d11[_0x76b6be];return _0x16aa67;}(function(_0x46fc99,_0x3e48cb){const _0x113c96=a46_0x16aa,_0x301f79=_0x46fc99();while(!![]){try{const _0x46bade=-parseInt(_0x113c96(0x1ef))/0x1*(parseInt(_0x113c96(0x1e8))/0x2)+-parseInt(_0x113c96(0x1ec))/0x3+-parseInt(_0x113c96(0x1e7))/0x4+parseInt(_0x113c96(0x1eb))/0x5+parseInt(_0x113c96(0x1ee))/0x6*(-parseInt(_0x113c96(0x1e6))/0x7)+-parseInt(_0x113c96(0x1ea))/0x8*(-parseInt(_0x113c96(0x1e9))/0x9)+parseInt(_0x113c96(0x1e5))/0xa;if(_0x46bade===_0x3e48cb)break;else _0x301f79['push'](_0x301f79['shift']());}catch(_0x57ee22){_0x301f79['push'](_0x301f79['shift']());}}}(a46_0x4a1d,0x78c5b));function a46_0x4a1d(){const _0x44c07c=['25CLVhns','high-risk-write','12394880UgrYaO','287GusrnK','2763604yySZTw','21620NvquuU','27rcQjmf','832280ZxqaPb','3794245GNmzUG','159297kxBbOx','read','117294dKjFYC'];a46_0x4a1d=function(){return _0x44c07c;};return a46_0x4a1d();}export const RISK_LEVEL_VALUES=[a46_0x36ea60(0x1ed),'write',a46_0x36ea60(0x1e4)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x3546ef=a47_0x82b9;(function(_0x4aea9b,_0x286167){const _0x35d33e=a47_0x82b9,_0x185495=_0x4aea9b();while(!![]){try{const _0x1dd433=parseInt(_0x35d33e(0x15b))/0x1*(parseInt(_0x35d33e(0x169))/0x2)+parseInt(_0x35d33e(0x15e))/0x3+parseInt(_0x35d33e(0x165))/0x4+-parseInt(_0x35d33e(0x166))/0x5*(parseInt(_0x35d33e(0x164))/0x6)+parseInt(_0x35d33e(0x161))/0x7*(-parseInt(_0x35d33e(0x15c))/0x8)+parseInt(_0x35d33e(0x160))/0x9*(parseInt(_0x35d33e(0x168))/0xa)+parseInt(_0x35d33e(0x15f))/0xb*(-parseInt(_0x35d33e(0x15d))/0xc);if(_0x1dd433===_0x286167)break;else _0x185495['push'](_0x185495['shift']());}catch(_0x2667d1){_0x185495['push'](_0x185495['shift']());}}}(a47_0x2381,0x97448));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a47_0x3546ef(0x163)][a47_0x3546ef(0x167)][a47_0x3546ef(0x162)]+PRODUCT_CONFIG['accessKeyCreatePath'];function a47_0x82b9(_0x4ed6e6,_0x57ac3c){_0x4ed6e6=_0x4ed6e6-0x15b;const _0x23818f=a47_0x2381();let _0x82b921=_0x23818f[_0x4ed6e6];return _0x82b921;}function a47_0x2381(){const _0x3f1497=['120mIohBz','1315536KdzyZV','252362TkYfDz','18HRlnKP','42mqnRcF','user','domains','31656PImJff','4369536jYMhxE','525SgaaTV','production','712450MRFCZd','52CjaTfg','30760eiDRMS','1426872ayrtDa'];a47_0x2381=function(){return _0x3f1497;};return a47_0x2381();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48_0x3ae05f=a48_0x2d35;(function(_0x595852,_0x3fb7ab){const _0x15f271=a48_0x2d35,_0x4cc253=_0x595852();while(!![]){try{const _0x199d04=parseInt(_0x15f271(0x1eb))/0x1*(parseInt(_0x15f271(0x1e3))/0x2)+parseInt(_0x15f271(0x1cc))/0x3+-parseInt(_0x15f271(0x1f5))/0x4*(-parseInt(_0x15f271(0x1bc))/0x5)+parseInt(_0x15f271(0x1d8))/0x6*(parseInt(_0x15f271(0x1fa))/0x7)+-parseInt(_0x15f271(0x1ed))/0x8+parseInt(_0x15f271(0x1f9))/0x9*(parseInt(_0x15f271(0x1fb))/0xa)+-parseInt(_0x15f271(0x1c0))/0xb;if(_0x199d04===_0x3fb7ab)break;else _0x4cc253['push'](_0x4cc253['shift']());}catch(_0x3f2982){_0x4cc253['push'](_0x4cc253['shift']());}}}(a48_0x3535,0x89b71));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';function a48_0x3535(){const _0x348a87=['runtimeDomain','values','message','setRawMode','online','join','accessKey','95636mywMoH','true','projectConfig','userDomain','stdin','apiDomain','./constant/domain.js','stdout','5mqDanI','locale','1878832EywOjA','EACCES','isTTY','project','format','missing','nonInteractive','daily','2324ODlulq','high-risk-write','empty','parse','58518pOnLBu','830627MxRdLc','340BVFNVC','argv','inherit','object','host','pageSize','env','configFileNames','maxRisk','setLogPath','./constant/env.js','8320xqQJDg','development','isRaw','apps','20604738Lvethl','riskLevel','string','APP','ACCESS_KEY','raw','code','ENV','defaultApp','global','FORMAT','production','3379470ibcevV','authRequired','cwd','cache','appcode','trim','local-alias','find','utf8','stringify','app','read','6ZShvOp','.tmp','EPERM','error'];a48_0x3535=function(){return _0x348a87;};return a48_0x3535();}import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a48_0x3ae05f(0x202)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x4aecdf){for(const _0x40a396 of CONFIG_NAMES){const _0x2d3ea4=resolve(_0x4aecdf,_0x40a396);if(existsSync(_0x2d3ea4))return _0x2d3ea4;}return undefined;}export function resolveWriteConfigPath(_0x30b423){const _0x3ba5e0=a48_0x3ae05f,_0x49ca4a=_0x30b423==='project'?process[_0x3ba5e0(0x1ce)]():homedir(),_0x1a2107=resolveConfigPath(_0x49ca4a);return _0x1a2107??resolve(_0x49ca4a,NEW_CONFIG_NAME);}export function readConfigFile(_0x180be6){const _0x43c319=a48_0x3ae05f;try{if(existsSync(_0x180be6)){const _0x54b034=readFileSync(_0x180be6,{'encoding':'utf8'});if(_0x54b034){const _0x1ad8d0=JSON[_0x43c319(0x1f8)](_0x54b034);return migrateOnlineEnv(_0x180be6,_0x1ad8d0),_0x1ad8d0;}}}catch{}return{};}function migrateOnlineEnv(_0x5c576f,_0x1c6d99){const _0x10bd81=a48_0x3ae05f;let _0x30e61b=![];_0x1c6d99[_0x10bd81(0x201)]===_0x10bd81(0x1e0)&&(_0x1c6d99[_0x10bd81(0x201)]=_0x10bd81(0x1cb),_0x30e61b=!![]);if(_0x1c6d99[_0x10bd81(0x1bf)]&&typeof _0x1c6d99[_0x10bd81(0x1bf)]===_0x10bd81(0x1fe))for(const _0x27b5ec of Object[_0x10bd81(0x1dd)](_0x1c6d99[_0x10bd81(0x1bf)])){_0x27b5ec&&_0x27b5ec[_0x10bd81(0x201)]===_0x10bd81(0x1e0)&&(_0x27b5ec['env']=_0x10bd81(0x1cb),_0x30e61b=!![]);}if(_0x30e61b)try{writeConfigFile(_0x5c576f,_0x1c6d99);}catch{}}export function writeConfigFile(_0x2394fb,_0x28b0c7){const _0x4c6ad6=a48_0x3ae05f,_0x1512c7=dirname(_0x2394fb);!existsSync(_0x1512c7)&&mkdirSync(_0x1512c7,{'recursive':!![]});const _0x289aee=_0x2394fb+_0x4c6ad6(0x1d9);try{writeFileSync(_0x289aee,JSON[_0x4c6ad6(0x1d5)](_0x28b0c7,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x289aee,_0x2394fb);}catch(_0x15b525){if(_0x15b525['code']===_0x4c6ad6(0x1da)||_0x15b525[_0x4c6ad6(0x1c6)]==='EXDEV'||_0x15b525['code']===_0x4c6ad6(0x1ee)){writeFileSync(_0x2394fb,JSON[_0x4c6ad6(0x1d5)](_0x28b0c7,null,0x2)+'\x0a',{'encoding':_0x4c6ad6(0x1d4)});try{unlinkSync(_0x289aee);}catch{}}else throw _0x15b525;}}catch(_0x1c367b){try{unlinkSync(_0x289aee);}catch{}throw _0x1c367b;}}export function isNonInteractiveMode(_0x5886f5){const _0x24fb34=a48_0x3ae05f;return!!(_0x5886f5[_0x24fb34(0x1f3)]||_0x5886f5['ci']||productEnvNames('CI')['some'](_0x3c93f0=>process.env[_0x3c93f0]===_0x24fb34(0x1e4))||process.env.CI===_0x24fb34(0x1e4)||!process[_0x24fb34(0x1ea)][_0x24fb34(0x1ef)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x467b16=a48_0x3ae05f;if(!process[_0x467b16(0x1e7)][_0x467b16(0x1ef)])return![];try{const _0x5dbd79=process[_0x467b16(0x1e7)][_0x467b16(0x1be)];return process[_0x467b16(0x1e7)][_0x467b16(0x1df)](!![]),process[_0x467b16(0x1e7)]['setRawMode'](_0x5dbd79??![]),!![];}catch{return![];}}export async function createContext(_0xc6fcc4){const _0xe22a3=a48_0x3ae05f,_0x406a2f=readRawConfig(),_0x234f73=buildConfig(_0x406a2f,_0xc6fcc4);await initGlobalEnvironment(_0x234f73);const {getUserDomain:_0x259919,getApiDomain:_0x3d537f}=await import(_0xe22a3(0x1e9)),_0x5c1632={'apiDomain':_0x3d537f(),'userDomain':_0x259919()},_0x2f7b3b=await buildAuth(_0x234f73);logger[_0xe22a3(0x204)](process[_0xe22a3(0x1ce)]());const _0x52793a=(CLI_BIN_NAME+'\x20'+process[_0xe22a3(0x1fc)]['slice'](0x2)[_0xe22a3(0x1e1)]('\x20'))[_0xe22a3(0x1d1)]();logger['setRawCommand'](_0x52793a);const _0x2d6d56=isNonInteractiveMode(_0xc6fcc4);return{'config':_0x234f73,'auth':_0x2f7b3b,'logger':logger,'env':_0x5c1632,'nonInteractive':_0x2d6d56};}export function buildConfigFromFlags(_0x20a95c){return buildConfig(readRawConfig(),_0x20a95c);}export function getLocalAppAliases(_0x82b480){const _0x1eab1c=a48_0x3ae05f;return _0x82b480[_0x1eab1c(0x1bf)]&&typeof _0x82b480[_0x1eab1c(0x1bf)]===_0x1eab1c(0x1fe)?_0x82b480[_0x1eab1c(0x1bf)]:{};}export function resolveLocalAppAliasCode(_0x4ae456,_0x4b2bdf){const _0x2aa6d3=a48_0x3ae05f;if(!_0x4b2bdf)return undefined;const _0x12f2d6=getLocalAppAliases(_0x4ae456)[_0x4b2bdf],_0x187c3c=_0x12f2d6?.[_0x2aa6d3(0x1d0)];return typeof _0x187c3c===_0x2aa6d3(0x1c2)&&_0x187c3c[_0x2aa6d3(0x1d1)]()?_0x187c3c['trim']():undefined;}export function readAppCodeFromConfig(){const _0x205555=a48_0x3ae05f,_0x18999c=readRawConfig(),_0x32ccc3=_0x18999c[_0x205555(0x1d0)]??_0x18999c['app'];if(typeof _0x32ccc3===_0x205555(0x1c2)&&_0x32ccc3['trim']())return _0x32ccc3[_0x205555(0x1d1)]();const _0x457d8c=resolveLocalAppAliasCode(_0x18999c,typeof _0x18999c[_0x205555(0x1c8)]==='string'?_0x18999c[_0x205555(0x1c8)]:undefined);if(_0x457d8c)return _0x457d8c;const _0x4cac45=normalizeEnv(String(_0x18999c[_0x205555(0x201)]||_0x205555(0x1cb))),_0x3c97ac=isDaily(_0x4cac45)?_0x205555(0x1f4):isDev(_0x4cac45)?_0x205555(0x1bd):'production',_0xb4aa21=resolveCachedAppCode(typeof _0x18999c[_0x205555(0x1c8)]==='string'?_0x18999c[_0x205555(0x1c8)]:undefined,_0x3c97ac,typeof _0x18999c[_0x205555(0x1e2)]==='string'?_0x18999c['accessKey']:undefined);if(_0xb4aa21)return _0xb4aa21;const _0xcdc95e=Object[_0x205555(0x1dd)](getLocalAppAliases(_0x18999c))[_0x205555(0x1d3)](_0x591d76=>_0x591d76?.[_0x205555(0x1d0)]);return typeof _0xcdc95e?.[_0x205555(0x1d0)]===_0x205555(0x1c2)&&_0xcdc95e[_0x205555(0x1d0)][_0x205555(0x1d1)]()?_0xcdc95e['appcode'][_0x205555(0x1d1)]():undefined;}export function readScopedConfig(_0x3ee63c){const _0x32bc07=a48_0x3ae05f,_0x463f28=_0x3ee63c[_0x32bc07(0x1c9)]?_0x32bc07(0x1c9):_0x32bc07(0x1f0);return readConfigFile(resolveWriteConfigPath(_0x463f28));}export function writeScopedConfig(_0x36483a,_0x3352e5){const _0x343e90=a48_0x3ae05f,_0x4aab9b=_0x3352e5[_0x343e90(0x1c9)]?_0x343e90(0x1c9):_0x343e90(0x1f0);writeConfigFile(resolveWriteConfigPath(_0x4aab9b),_0x36483a);}export async function initGlobalEnvironment(_0x2fdca5){const _0x581bcf=a48_0x3ae05f,{initEnv:_0x2c3b9c}=await import(_0x581bcf(0x1bb));_0x2c3b9c(_0x2fdca5[_0x581bcf(0x201)]);const {initDomains:_0x8c6555}=await import(_0x581bcf(0x1e9));_0x8c6555({'apiDomain':_0x2fdca5[_0x581bcf(0x1c5)][_0x581bcf(0x1e8)]||_0x2fdca5[_0x581bcf(0x1c5)][_0x581bcf(0x1ff)]||undefined,'userDomain':_0x2fdca5[_0x581bcf(0x1c5)][_0x581bcf(0x1e6)]||undefined,'runtimeDomain':_0x2fdca5[_0x581bcf(0x1c5)][_0x581bcf(0x1dc)]||undefined});}export function getProjectConfigPath(){const _0x2096b7=a48_0x3ae05f;return resolveConfigPath(process[_0x2096b7(0x1ce)]());}function a48_0x2d35(_0x5bf09f,_0x1b58f8){_0x5bf09f=_0x5bf09f-0x1bb;const _0x353524=a48_0x3535();let _0x2d354d=_0x353524[_0x5bf09f];return _0x2d354d;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x3332f2){const _0x5cc68f=a48_0x3ae05f;if(!existsSync(_0x3332f2))return{'status':_0x5cc68f(0x1f2)};try{const _0x474f18=readFileSync(_0x3332f2,{'encoding':'utf8'});if(!_0x474f18?.['trim']())return{'status':_0x5cc68f(0x1f7)};const _0x4d44d4=JSON[_0x5cc68f(0x1f8)](_0x474f18);return{'status':'ok','data':_0x4d44d4};}catch(_0x1f81af){return{'status':_0x5cc68f(0x1db),'message':_0x1f81af instanceof Error?_0x1f81af[_0x5cc68f(0x1de)]:String(_0x1f81af)};}}export function loadRawConfigLayers(_0x5c9a37){const _0x2dd26b=a48_0x3ae05f;let _0x32be04={},_0x3a0846={},_0x38fdd0,_0x5df360;try{_0x38fdd0=resolveConfigPath(homedir());if(_0x38fdd0){const _0x2deaf7=readFileSync(_0x38fdd0,{'encoding':_0x2dd26b(0x1d4)});if(_0x2deaf7)_0x32be04=JSON[_0x2dd26b(0x1f8)](_0x2deaf7);}}catch{}try{const _0x36e493=_0x5c9a37||process[_0x2dd26b(0x1ce)]();_0x5df360=resolveConfigPath(_0x36e493);if(_0x5df360){const _0x27a601=readFileSync(_0x5df360,{'encoding':'utf8'});if(_0x27a601)_0x3a0846=JSON[_0x2dd26b(0x1f8)](_0x27a601);}}catch{}return{'globalPath':_0x38fdd0,'projectPath':_0x5df360,'globalConfig':_0x32be04,'projectConfig':_0x3a0846};}function mergeRawConfigLayers(_0x269521){const _0x54d3c6=a48_0x3ae05f,{globalConfig:_0x35b626,projectConfig:_0x2e234d}=_0x269521;if(_0x2e234d[_0x54d3c6(0x1fd)]===![]){const _0x1985b6={..._0x2e234d};return delete _0x1985b6[_0x54d3c6(0x1fd)],_0x1985b6;}const _0x1bf6a2={..._0x35b626,..._0x2e234d};if(_0x54d3c6(0x1c8)in _0x2e234d)_0x1bf6a2['defaultApp']=_0x2e234d[_0x54d3c6(0x1c8)];else _0x35b626[_0x54d3c6(0x1c8)]&&(_0x1bf6a2[_0x54d3c6(0x1c8)]=_0x35b626[_0x54d3c6(0x1c8)]);return _0x1bf6a2;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5acaf3){return mergeRawConfigLayers(loadRawConfigLayers(_0x5acaf3));}export function readRawConfigWithLayers(_0x4b37aa){const _0x49b2fa=loadRawConfigLayers(_0x4b37aa);return{'config':mergeRawConfigLayers(_0x49b2fa),'layers':_0x49b2fa};}export function resolveDefaultAppSource(_0x9ad674){const _0x425aaf=a48_0x3ae05f;if('defaultApp'in _0x9ad674[_0x425aaf(0x1e5)])return _0x425aaf(0x1f0);if(_0x9ad674[_0x425aaf(0x1e5)][_0x425aaf(0x1fd)]===![])return null;if(_0x9ad674['globalConfig'][_0x425aaf(0x1c8)])return _0x425aaf(0x1c9);return null;}function buildConfig(_0x545f26,_0x5d708d){const _0x5b973a=a48_0x3ae05f,_0x500184=_0x545f26['defaultApp']||undefined,_0x3e010c=_0x5d708d[_0x5b973a(0x1d6)]||env(_0x5b973a(0x1c3))||undefined,_0x16223b=_0x3e010c||_0x500184||undefined,_0x35085f=env(_0x5b973a(0x1c4))||_0x545f26[_0x5b973a(0x1e2)]||undefined,_0xa73d50=_0x5d708d[_0x5b973a(0x201)]||env(_0x5b973a(0x1c7))||_0x545f26[_0x5b973a(0x201)]||DEFAULT_CONFIG_VALUES['env'],_0x347fd=normalizeEnv(String(_0xa73d50)),_0x2e341b=isDaily(_0x347fd)?_0x5b973a(0x1f4):isDev(_0x347fd)?_0x5b973a(0x1bd):'production',_0x56ff22=resolveLocalAppAliasCode(_0x545f26,_0x16223b),_0x2acf67=resolveCachedAppCode(_0x16223b,_0x2e341b,_0x35085f),_0x278b50=typeof _0x5d708d['appcode']==='string'?_0x5d708d[_0x5b973a(0x1d0)]:undefined,_0x4c3aaa=env('APPCODE'),_0x3a82d9=_0x3e010c?undefined:_0x545f26[_0x5b973a(0x1d0)]||_0x545f26[_0x5b973a(0x1d6)]||undefined,_0x2b4318=_0x278b50||_0x4c3aaa||_0x56ff22||_0x2acf67||_0x3a82d9||undefined,_0x8fe430=_0x278b50?'explicit':_0x4c3aaa?_0x5b973a(0x201):_0x56ff22?_0x5b973a(0x1d2):_0x2acf67?_0x5b973a(0x1cf):_0x3a82d9?'top-level':undefined,_0x2b784c=_0x545f26[_0x5b973a(0x1ec)]||DEFAULT_CONFIG_VALUES[_0x5b973a(0x1ec)],_0x56764a=undefined,_0x45df5b=_0x5d708d[_0x5b973a(0x1f1)]||env(_0x5b973a(0x1ca))||_0x545f26[_0x5b973a(0x1f1)],_0x401adb=normalizeLegacyOutputFormat(_0x45df5b),_0xa32ccb=env('PAGE_SIZE')||_0x545f26[_0x5b973a(0x200)],_0x24c5fa=_0xa32ccb?Number(_0xa32ccb)||undefined:undefined,_0x274922=_0x545f26[_0x5b973a(0x1c1)]||_0x545f26[_0x5b973a(0x203)],_0x424b51=_0x274922===_0x5b973a(0x1d7)||_0x274922==='write'||_0x274922===_0x5b973a(0x1f6)?_0x274922:DEFAULT_CONFIG_VALUES['riskLevel'],_0x455c2d=env('VERBOSE'),_0x2110ef=_0x455c2d==='1'||_0x455c2d===_0x5b973a(0x1e4);return{'appCode':typeof _0x2b4318==='string'&&_0x2b4318['trim']()?_0x2b4318['trim']():undefined,'appCodeSource':_0x8fe430,'env':_0x2e341b,'locale':_0x2b784c,'cookie':_0x56764a,'accessKey':_0x35085f,'format':_0x401adb,'pageSize':_0x24c5fa,'riskLevel':_0x424b51,'verbose':_0x2110ef,'defaultApp':_0x500184,'currentApp':typeof _0x16223b===_0x5b973a(0x1c2)?_0x16223b:undefined,'raw':_0x545f26};}function env(_0x5bc148){return productEnv(_0x5bc148);}async function buildAuth(_0xd9506a){const _0x4e863c=a48_0x3ae05f,_0x39634b='',_0x2510e6=!!_0xd9506a[_0x4e863c(0x1e2)];return{'cookie':_0x39634b,'isLoggedIn':_0x2510e6,async 'getOrLogin'(){const _0xe67784=_0x4e863c;if(_0x2510e6)return _0x39634b;throw CliErrors[_0xe67784(0x1cd)]();}};}
|
|
1
|
+
const a48_0x4366f7=a48_0x12c5;(function(_0x940eea,_0x4dca2f){const _0x39cdbd=a48_0x12c5,_0x443203=_0x940eea();while(!![]){try{const _0x2cf010=parseInt(_0x39cdbd(0x171))/0x1*(-parseInt(_0x39cdbd(0x141))/0x2)+-parseInt(_0x39cdbd(0x14e))/0x3*(parseInt(_0x39cdbd(0x158))/0x4)+-parseInt(_0x39cdbd(0x168))/0x5*(-parseInt(_0x39cdbd(0x15c))/0x6)+-parseInt(_0x39cdbd(0x138))/0x7+parseInt(_0x39cdbd(0x167))/0x8+-parseInt(_0x39cdbd(0x144))/0x9*(-parseInt(_0x39cdbd(0x160))/0xa)+parseInt(_0x39cdbd(0x140))/0xb*(parseInt(_0x39cdbd(0x136))/0xc);if(_0x2cf010===_0x4dca2f)break;else _0x443203['push'](_0x443203['shift']());}catch(_0x33e35e){_0x443203['push'](_0x443203['shift']());}}}(a48_0x7295,0x62952));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';function a48_0x12c5(_0xf70b75,_0x2fc49a){_0xf70b75=_0xf70b75-0x136;const _0x729546=a48_0x7295();let _0x12c584=_0x729546[_0xf70b75];return _0x12c584;}import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a48_0x7295(){const _0x39e741=['945867oxztuG','development','global','riskLevel','locale','globalConfig','argv','code','read','empty','8FMgQxZ','cwd','join','ENV','6UErFPO','APPCODE','appcode','inherit','3293570HNPjAw','APP','format','project','app','setRawMode','host','3199112fmZmTm','1018055udhxiL','configFileNames','stdout','env','FORMAT','newConfigFileName','./constant/env.js','stdin','string','5843vejLQB','explicit','stringify','write','apps','PAGE_SIZE','daily','projectConfig','cache','setLogPath','VERBOSE','missing','defaultApp','error','isRaw','126876XFUqFi','ACCESS_KEY','4541677cQhhWW','production','EPERM','local-alias','runtimeDomain','true','raw','utf8','1210uzgClN','254qAgzmu','find','object','18snDVMw','isTTY','nonInteractive','high-risk-write','accessKey','parse','trim','./constant/domain.js','EXDEV','some'];a48_0x7295=function(){return _0x39e741;};return a48_0x7295();}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a48_0x4366f7(0x169)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a48_0x4366f7(0x16d)];function resolveConfigPath(_0x475cee){for(const _0x31addc of CONFIG_NAMES){const _0x1bcc41=resolve(_0x475cee,_0x31addc);if(existsSync(_0x1bcc41))return _0x1bcc41;}return undefined;}export function resolveWriteConfigPath(_0x3279ac){const _0x4db40f=a48_0x4366f7,_0x459e69=_0x3279ac==='project'?process[_0x4db40f(0x159)]():homedir(),_0x506697=resolveConfigPath(_0x459e69);return _0x506697??resolve(_0x459e69,NEW_CONFIG_NAME);}export function readConfigFile(_0x4906f2){const _0x4f97b8=a48_0x4366f7;try{if(existsSync(_0x4906f2)){const _0x3620db=readFileSync(_0x4906f2,{'encoding':_0x4f97b8(0x13f)});if(_0x3620db){const _0x33fa17=JSON[_0x4f97b8(0x149)](_0x3620db);return migrateOnlineEnv(_0x4906f2,_0x33fa17),_0x33fa17;}}}catch{}return{};}function migrateOnlineEnv(_0x166394,_0x1b84ae){const _0x1aa466=a48_0x4366f7;let _0x57b99c=![];_0x1b84ae[_0x1aa466(0x16b)]==='online'&&(_0x1b84ae[_0x1aa466(0x16b)]='production',_0x57b99c=!![]);if(_0x1b84ae[_0x1aa466(0x175)]&&typeof _0x1b84ae[_0x1aa466(0x175)]===_0x1aa466(0x143))for(const _0x128e57 of Object['values'](_0x1b84ae['apps'])){_0x128e57&&_0x128e57[_0x1aa466(0x16b)]==='online'&&(_0x128e57[_0x1aa466(0x16b)]='production',_0x57b99c=!![]);}if(_0x57b99c)try{writeConfigFile(_0x166394,_0x1b84ae);}catch{}}export function writeConfigFile(_0x9f952,_0x10de28){const _0x169547=a48_0x4366f7,_0x38c9b3=dirname(_0x9f952);!existsSync(_0x38c9b3)&&mkdirSync(_0x38c9b3,{'recursive':!![]});const _0x2cbeac=_0x9f952+'.tmp';try{writeFileSync(_0x2cbeac,JSON[_0x169547(0x173)](_0x10de28,null,0x2)+'\x0a',{'encoding':_0x169547(0x13f),'mode':0x180});try{renameSync(_0x2cbeac,_0x9f952);}catch(_0x6707fd){if(_0x6707fd[_0x169547(0x155)]===_0x169547(0x13a)||_0x6707fd['code']===_0x169547(0x14c)||_0x6707fd[_0x169547(0x155)]==='EACCES'){writeFileSync(_0x9f952,JSON['stringify'](_0x10de28,null,0x2)+'\x0a',{'encoding':_0x169547(0x13f)});try{unlinkSync(_0x2cbeac);}catch{}}else throw _0x6707fd;}}catch(_0x4b1631){try{unlinkSync(_0x2cbeac);}catch{}throw _0x4b1631;}}export function isNonInteractiveMode(_0x213d4e){const _0x182fa2=a48_0x4366f7;return!!(_0x213d4e[_0x182fa2(0x146)]||_0x213d4e['ci']||productEnvNames('CI')[_0x182fa2(0x14d)](_0x3c9b82=>process.env[_0x3c9b82]===_0x182fa2(0x13d))||process.env.CI===_0x182fa2(0x13d)||!process[_0x182fa2(0x16a)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x295c9f=a48_0x4366f7;if(!process[_0x295c9f(0x16f)][_0x295c9f(0x145)])return![];try{const _0x557663=process[_0x295c9f(0x16f)][_0x295c9f(0x17f)];return process[_0x295c9f(0x16f)][_0x295c9f(0x165)](!![]),process[_0x295c9f(0x16f)][_0x295c9f(0x165)](_0x557663??![]),!![];}catch{return![];}}export async function createContext(_0x274988){const _0xe98835=a48_0x4366f7,_0x3c9562=readRawConfig(),_0x33bf27=buildConfig(_0x3c9562,_0x274988);await initGlobalEnvironment(_0x33bf27);const {getUserDomain:_0x20c310,getApiDomain:_0x1bc267}=await import(_0xe98835(0x14b)),_0x2116ed={'apiDomain':_0x1bc267(),'userDomain':_0x20c310()},_0xaba448=await buildAuth(_0x33bf27);logger[_0xe98835(0x17a)](process[_0xe98835(0x159)]());const _0x5a3cbe=(CLI_BIN_NAME+'\x20'+process[_0xe98835(0x154)]['slice'](0x2)[_0xe98835(0x15a)]('\x20'))['trim']();logger['setRawCommand'](_0x5a3cbe);const _0x129001=isNonInteractiveMode(_0x274988);return{'config':_0x33bf27,'auth':_0xaba448,'logger':logger,'env':_0x2116ed,'nonInteractive':_0x129001};}export function buildConfigFromFlags(_0x43a4c3){return buildConfig(readRawConfig(),_0x43a4c3);}export function getLocalAppAliases(_0x1c286b){const _0x18aca4=a48_0x4366f7;return _0x1c286b[_0x18aca4(0x175)]&&typeof _0x1c286b[_0x18aca4(0x175)]===_0x18aca4(0x143)?_0x1c286b[_0x18aca4(0x175)]:{};}export function resolveLocalAppAliasCode(_0x472409,_0x19a0e7){const _0x134051=a48_0x4366f7;if(!_0x19a0e7)return undefined;const _0x7dfa9=getLocalAppAliases(_0x472409)[_0x19a0e7],_0x241876=_0x7dfa9?.['appcode'];return typeof _0x241876===_0x134051(0x170)&&_0x241876[_0x134051(0x14a)]()?_0x241876['trim']():undefined;}export function readAppCodeFromConfig(){const _0x1be8fe=a48_0x4366f7,_0x6f3137=readRawConfig(),_0x43619e=_0x6f3137['appcode']??_0x6f3137[_0x1be8fe(0x164)];if(typeof _0x43619e===_0x1be8fe(0x170)&&_0x43619e[_0x1be8fe(0x14a)]())return _0x43619e[_0x1be8fe(0x14a)]();const _0x178ba3=resolveLocalAppAliasCode(_0x6f3137,typeof _0x6f3137['defaultApp']===_0x1be8fe(0x170)?_0x6f3137[_0x1be8fe(0x17d)]:undefined);if(_0x178ba3)return _0x178ba3;const _0x317ac8=normalizeEnv(String(_0x6f3137[_0x1be8fe(0x16b)]||_0x1be8fe(0x139))),_0x4a0478=isDaily(_0x317ac8)?_0x1be8fe(0x177):isDev(_0x317ac8)?_0x1be8fe(0x14f):_0x1be8fe(0x139),_0x1a6426=resolveCachedAppCode(typeof _0x6f3137[_0x1be8fe(0x17d)]===_0x1be8fe(0x170)?_0x6f3137[_0x1be8fe(0x17d)]:undefined,_0x4a0478,typeof _0x6f3137[_0x1be8fe(0x148)]===_0x1be8fe(0x170)?_0x6f3137[_0x1be8fe(0x148)]:undefined);if(_0x1a6426)return _0x1a6426;const _0x1f2ca6=Object['values'](getLocalAppAliases(_0x6f3137))[_0x1be8fe(0x142)](_0x4837d2=>_0x4837d2?.[_0x1be8fe(0x15e)]);return typeof _0x1f2ca6?.[_0x1be8fe(0x15e)]==='string'&&_0x1f2ca6['appcode']['trim']()?_0x1f2ca6[_0x1be8fe(0x15e)][_0x1be8fe(0x14a)]():undefined;}export function readScopedConfig(_0x106e41){const _0x308c3c=a48_0x4366f7,_0x2cf88d=_0x106e41[_0x308c3c(0x150)]?_0x308c3c(0x150):'project';return readConfigFile(resolveWriteConfigPath(_0x2cf88d));}export function writeScopedConfig(_0x27a42c,_0x26f900){const _0x5a161f=a48_0x4366f7,_0x57ed8a=_0x26f900[_0x5a161f(0x150)]?_0x5a161f(0x150):_0x5a161f(0x163);writeConfigFile(resolveWriteConfigPath(_0x57ed8a),_0x27a42c);}export async function initGlobalEnvironment(_0x520f38){const _0x5811e7=a48_0x4366f7,{initEnv:_0x1e72f4}=await import(_0x5811e7(0x16e));_0x1e72f4(_0x520f38[_0x5811e7(0x16b)]);const {initDomains:_0x237212}=await import('./constant/domain.js');_0x237212({'apiDomain':_0x520f38[_0x5811e7(0x13e)]['apiDomain']||_0x520f38[_0x5811e7(0x13e)][_0x5811e7(0x166)]||undefined,'userDomain':_0x520f38['raw']['userDomain']||undefined,'runtimeDomain':_0x520f38[_0x5811e7(0x13e)][_0x5811e7(0x13c)]||undefined});}export function getProjectConfigPath(){const _0x12e577=a48_0x4366f7;return resolveConfigPath(process[_0x12e577(0x159)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1a2b56){const _0x1879bf=a48_0x4366f7;if(!existsSync(_0x1a2b56))return{'status':_0x1879bf(0x17c)};try{const _0x33ac5b=readFileSync(_0x1a2b56,{'encoding':_0x1879bf(0x13f)});if(!_0x33ac5b?.[_0x1879bf(0x14a)]())return{'status':_0x1879bf(0x157)};const _0x3ead60=JSON[_0x1879bf(0x149)](_0x33ac5b);return{'status':'ok','data':_0x3ead60};}catch(_0x5569a9){return{'status':_0x1879bf(0x17e),'message':_0x5569a9 instanceof Error?_0x5569a9['message']:String(_0x5569a9)};}}export function loadRawConfigLayers(_0x41364d){const _0x3999c7=a48_0x4366f7;let _0x8e6b3c={},_0x39476d={},_0x1593b6,_0x2ece79;try{_0x1593b6=resolveConfigPath(homedir());if(_0x1593b6){const _0x21fc13=readFileSync(_0x1593b6,{'encoding':_0x3999c7(0x13f)});if(_0x21fc13)_0x8e6b3c=JSON[_0x3999c7(0x149)](_0x21fc13);}}catch{}try{const _0x42d88f=_0x41364d||process['cwd']();_0x2ece79=resolveConfigPath(_0x42d88f);if(_0x2ece79){const _0x18bb84=readFileSync(_0x2ece79,{'encoding':_0x3999c7(0x13f)});if(_0x18bb84)_0x39476d=JSON[_0x3999c7(0x149)](_0x18bb84);}}catch{}return{'globalPath':_0x1593b6,'projectPath':_0x2ece79,'globalConfig':_0x8e6b3c,'projectConfig':_0x39476d};}function mergeRawConfigLayers(_0x4949d4){const _0x29fea8=a48_0x4366f7,{globalConfig:_0x1c4ca2,projectConfig:_0x7f8968}=_0x4949d4;if(_0x7f8968[_0x29fea8(0x15f)]===![]){const _0x3f12e4={..._0x7f8968};return delete _0x3f12e4[_0x29fea8(0x15f)],_0x3f12e4;}const _0x4d5679={..._0x1c4ca2,..._0x7f8968};if(_0x29fea8(0x17d)in _0x7f8968)_0x4d5679[_0x29fea8(0x17d)]=_0x7f8968['defaultApp'];else _0x1c4ca2[_0x29fea8(0x17d)]&&(_0x4d5679[_0x29fea8(0x17d)]=_0x1c4ca2[_0x29fea8(0x17d)]);return _0x4d5679;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5d8fe4){return mergeRawConfigLayers(loadRawConfigLayers(_0x5d8fe4));}export function readRawConfigWithLayers(_0xcc3e6b){const _0x4cc99c=loadRawConfigLayers(_0xcc3e6b);return{'config':mergeRawConfigLayers(_0x4cc99c),'layers':_0x4cc99c};}export function resolveDefaultAppSource(_0x7e2e06){const _0x22e0fc=a48_0x4366f7;if(_0x22e0fc(0x17d)in _0x7e2e06[_0x22e0fc(0x178)])return _0x22e0fc(0x163);if(_0x7e2e06[_0x22e0fc(0x178)][_0x22e0fc(0x15f)]===![])return null;if(_0x7e2e06[_0x22e0fc(0x153)][_0x22e0fc(0x17d)])return'global';return null;}function buildConfig(_0x50d0d7,_0x4ce85d){const _0x3372f6=a48_0x4366f7,_0xb68d85=_0x50d0d7[_0x3372f6(0x17d)]||undefined,_0x5cbe20=_0x4ce85d[_0x3372f6(0x164)]||env(_0x3372f6(0x161))||undefined,_0x25b08b=_0x5cbe20||_0xb68d85||undefined,_0x24416d=env(_0x3372f6(0x137))||_0x50d0d7[_0x3372f6(0x148)]||undefined,_0x5abd30=_0x4ce85d['env']||env(_0x3372f6(0x15b))||_0x50d0d7[_0x3372f6(0x16b)]||DEFAULT_CONFIG_VALUES['env'],_0x2dba85=normalizeEnv(String(_0x5abd30)),_0x34e8af=isDaily(_0x2dba85)?_0x3372f6(0x177):isDev(_0x2dba85)?_0x3372f6(0x14f):'production',_0x383fac=resolveLocalAppAliasCode(_0x50d0d7,_0x25b08b),_0x6b2a34=resolveCachedAppCode(_0x25b08b,_0x34e8af,_0x24416d),_0x400a83=typeof _0x4ce85d[_0x3372f6(0x15e)]==='string'?_0x4ce85d['appcode']:undefined,_0x1f8b90=env(_0x3372f6(0x15d)),_0x4d1539=_0x5cbe20?undefined:_0x50d0d7[_0x3372f6(0x15e)]||_0x50d0d7[_0x3372f6(0x164)]||undefined,_0x35efc1=_0x400a83||_0x1f8b90||_0x383fac||_0x6b2a34||_0x4d1539||undefined,_0x26b12c=_0x400a83?_0x3372f6(0x172):_0x1f8b90?'env':_0x383fac?_0x3372f6(0x13b):_0x6b2a34?_0x3372f6(0x179):_0x4d1539?'top-level':undefined,_0x23ef0e=_0x50d0d7[_0x3372f6(0x152)]||DEFAULT_CONFIG_VALUES['locale'],_0x163084=undefined,_0x3181b5=_0x4ce85d['format']||env(_0x3372f6(0x16c))||_0x50d0d7[_0x3372f6(0x162)],_0x58ec57=normalizeLegacyOutputFormat(_0x3181b5),_0x591c22=env(_0x3372f6(0x176))||_0x50d0d7['pageSize'],_0x12d144=_0x591c22?Number(_0x591c22)||undefined:undefined,_0x308cfb=_0x50d0d7[_0x3372f6(0x151)]||_0x50d0d7['maxRisk'],_0x458471=_0x308cfb===_0x3372f6(0x156)||_0x308cfb===_0x3372f6(0x174)||_0x308cfb===_0x3372f6(0x147)?_0x308cfb:DEFAULT_CONFIG_VALUES[_0x3372f6(0x151)],_0x43f29e=env(_0x3372f6(0x17b)),_0x12b316=_0x43f29e==='1'||_0x43f29e==='true';return{'appCode':typeof _0x35efc1==='string'&&_0x35efc1[_0x3372f6(0x14a)]()?_0x35efc1[_0x3372f6(0x14a)]():undefined,'appCodeSource':_0x26b12c,'env':_0x34e8af,'locale':_0x23ef0e,'cookie':_0x163084,'accessKey':_0x24416d,'format':_0x58ec57,'pageSize':_0x12d144,'riskLevel':_0x458471,'verbose':_0x12b316,'defaultApp':_0xb68d85,'currentApp':typeof _0x25b08b===_0x3372f6(0x170)?_0x25b08b:undefined,'raw':_0x50d0d7};}function env(_0x10ac9a){return productEnv(_0x10ac9a);}async function buildAuth(_0x5689ca){const _0x2e4712=a48_0x4366f7,_0xe07fa6='',_0x427cee=!!_0x5689ca[_0x2e4712(0x148)];return{'cookie':_0xe07fa6,'isLoggedIn':_0x427cee,async 'getOrLogin'(){if(_0x427cee)return _0xe07fa6;throw CliErrors['authRequired']();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x373eea,_0x1a9337){const _0xfc5813=a49_0x1a65,_0x21c16c=_0x373eea();while(!![]){try{const _0x3d5b40=parseInt(_0xfc5813(0x22c))/0x1*(-parseInt(_0xfc5813(0x1f8))/0x2)+parseInt(_0xfc5813(0x1f2))/0x3+parseInt(_0xfc5813(0x224))/0x4+-parseInt(_0xfc5813(0x227))/0x5*(-parseInt(_0xfc5813(0x1dc))/0x6)+-parseInt(_0xfc5813(0x1fe))/0x7+parseInt(_0xfc5813(0x20f))/0x8+-parseInt(_0xfc5813(0x1f5))/0x9;if(_0x3d5b40===_0x1a9337)break;else _0x21c16c['push'](_0x21c16c['shift']());}catch(_0x3d2697){_0x21c16c['push'](_0x21c16c['shift']());}}}(a49_0x5165,0x3a4f8));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a49_0x1a65(_0x1cd177,_0xbfe0f5){_0x1cd177=_0x1cd177-0x1da;const _0x516506=a49_0x5165();let _0x1a6589=_0x516506[_0x1cd177];return _0x1a6589;}function a49_0x5165(){const _0x317049=['authRequired','status','object','586392RfVMaH','/client/user/loginUserInfo','errorCode','3211461IoRMyN','POST','isArray','4rGzFEN','Artifact\x20not\x20found:\x20id=','API\x20error\x20code:\x20','set','/client/artifact/','API\x20error:\x20','582253bMZuuf','artifactType','Request\x20timeout:\x20','/client/knowledge-base/search','newConfigFileName','errorMsg','Toolbox\x20API\x20error','/client/runtime-bff/personal/list?appCode=','Download\x20failed:\x20','filter','message','/client/skill/','markdown','/execute?appCode=','success','source','signal','3186096UUOLbi','searchParams','AbortError','invokeSource','Toolbox\x20error\x20code:\x20','replace','favorite','?appCode=','from','/client/skill/personal/create','/client/skill/company/list?appCode=','Knowledge-base\x20entry\x20not\x20found:\x20id=','GET','tableData','catch','/client/bff/query/','string','code','apiError','/client/skill/personal/list?appCode=','/client/knowledge-base/personal/','936644jYnRXR','boolean','/client/skill/personal/','572195YxbaVl','application/json','json','SQL\x20query\x20not\x20found:\x20','data','131739JUcTaL','/update','Configure\x20accessKey\x20in\x20','6hWzzSW','toString','/client/artifact/create','appName','test','/client/skill/list?appCode=','/api/node-toolbox/','sqlCode','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','stringify','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/dataset/list','/client/dataset/query?','name','entries','/client/runtime-bff/personal/','abort','validation'];a49_0x5165=function(){return _0x317049;};return a49_0x5165();}import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x30191c){_activeAK=_0x30191c||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x452ebe,_0x1ef48a={}){const _0x44bba6=a49_0x1a65,{method:method=_0x44bba6(0x21b),body:_0x5d711d,headers:headers={},timeout:timeout=0x7530}=_0x1ef48a,_0x258f64=_activeAK,_0x30a815=getRuntimeDomain();if(!_0x258f64)throw CliErrors[_0x44bba6(0x1ef)](_0x44bba6(0x1db)+PRODUCT_CONFIG[_0x44bba6(0x202)]+'.');const _0x42c441=''+_0x30a815+_0x452ebe,_0x50be89={'X-User-AK':_0x258f64},_0x321403=new AbortController(),_0x249e70=setTimeout(()=>_0x321403[_0x44bba6(0x1ed)](),timeout);try{const _0x4eff4c=await fetch(_0x42c441,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x44bba6(0x212)],..._0x50be89,...headers},'body':_0x5d711d?JSON[_0x44bba6(0x1e6)](_0x5d711d):undefined,'signal':_0x321403['signal']});let _0x3b4d56;try{_0x3b4d56=await _0x4eff4c[_0x44bba6(0x229)]();}catch{throw CliErrors[_0x44bba6(0x221)](_0x44bba6(0x1e4)+_0x4eff4c[_0x44bba6(0x1f0)]+')',_0x4eff4c[_0x44bba6(0x1f0)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x4eff4c['ok']||_0x3b4d56['success']===![])throw CliErrors[_0x44bba6(0x221)](_0x3b4d56['errorMsg']||_0x3b4d56[_0x44bba6(0x208)]||'API\x20error:\x20'+_0x4eff4c[_0x44bba6(0x1f0)],_0x3b4d56[_0x44bba6(0x1f4)]?_0x44bba6(0x1fa)+_0x3b4d56[_0x44bba6(0x1f4)]:undefined);return _0x3b4d56;}catch(_0xc6be6f){if(_0xc6be6f instanceof Error&&_0xc6be6f['name']===_0x44bba6(0x211))throw CliErrors[_0x44bba6(0x221)](_0x44bba6(0x200)+_0x42c441);throw _0xc6be6f;}finally{clearTimeout(_0x249e70);}}async function apiBinaryRequest(_0x59e841,_0x1dff2a={}){const _0x5e079c=a49_0x1a65,{method:method=_0x5e079c(0x21b),headers:headers={},timeout:timeout=0x7530}=_0x1dff2a,_0x172e6a=_activeAK,_0x2d806b=getRuntimeDomain();if(!_0x172e6a)throw CliErrors[_0x5e079c(0x1ef)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x2b76d1=''+_0x2d806b+_0x59e841,_0x1b0c4a=new AbortController(),_0x25e631=setTimeout(()=>_0x1b0c4a[_0x5e079c(0x1ed)](),timeout);try{const _0x21d0b6=await fetch(_0x2b76d1,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5e079c(0x212)],'X-User-AK':_0x172e6a,...headers},'signal':_0x1b0c4a['signal']});if(!_0x21d0b6['ok']){let _0x15fe4f;try{const _0x2be038=await _0x21d0b6[_0x5e079c(0x229)]();_0x15fe4f=_0x2be038[_0x5e079c(0x203)]||_0x2be038[_0x5e079c(0x208)]||_0x2be038[_0x5e079c(0x1f4)];}catch{_0x15fe4f=await _0x21d0b6['text']()[_0x5e079c(0x21d)](()=>undefined);}throw CliErrors[_0x5e079c(0x221)](_0x15fe4f||_0x5e079c(0x1fd)+_0x21d0b6['status'],_0x5e079c(0x206)+_0x2b76d1);}return Buffer[_0x5e079c(0x217)](await _0x21d0b6['arrayBuffer']());}catch(_0x251080){if(_0x251080 instanceof Error&&_0x251080[_0x5e079c(0x1ea)]==='AbortError')throw CliErrors[_0x5e079c(0x221)](_0x5e079c(0x200)+_0x2b76d1);throw _0x251080;}finally{clearTimeout(_0x25e631);}}async function toolboxRequest(_0x4152d9,_0x12a13b,_0x77b5={}){const _0x2ff66a=a49_0x1a65,{method:method=_0x2ff66a(0x21b),headers:headers={},timeout:timeout=0x7530}=_0x77b5,_0x18f5e6=_activeAK;if(!_0x18f5e6)throw CliErrors[_0x2ff66a(0x1ef)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x2ff66a(0x202)]+'.');const _0x5e7c64=getApiDomain()[_0x2ff66a(0x214)](/\/$/,''),_0xa98b0d=new URL(_0x4152d9,_0x5e7c64+_0x2ff66a(0x1e2));if(_0x12a13b)for(const [_0xf2036d,_0x365450]of Object[_0x2ff66a(0x1eb)](_0x12a13b)){_0x365450!==undefined&&_0x365450!==null&&_0xa98b0d[_0x2ff66a(0x210)][_0x2ff66a(0x1fb)](_0xf2036d,String(_0x365450));}const _0x3cac2b=new AbortController(),_0x1a96d6=setTimeout(()=>_0x3cac2b[_0x2ff66a(0x1ed)](),timeout);try{const _0x21f815=await fetch(_0xa98b0d,{'method':method,'headers':{'Content-Type':_0x2ff66a(0x228),'X-Invoke-Source':PRODUCT_CONFIG[_0x2ff66a(0x212)],'X-User-AK':_0x18f5e6,...headers},'signal':_0x3cac2b[_0x2ff66a(0x20e)]});let _0x17b7bb;try{_0x17b7bb=await _0x21f815[_0x2ff66a(0x229)]();}catch{throw CliErrors[_0x2ff66a(0x221)](_0x2ff66a(0x1e5)+_0x21f815[_0x2ff66a(0x1f0)]+')',_0x21f815['status']>=0x190?_0x2ff66a(0x1e7):undefined);}if(!_0x21f815['ok']){const _0x2a7c15=_0x17b7bb&&typeof _0x17b7bb===_0x2ff66a(0x1f1)?_0x17b7bb:{};throw CliErrors[_0x2ff66a(0x221)](_0x2a7c15['errorMsg']||_0x2a7c15['message']||'Toolbox\x20API\x20error:\x20'+_0x21f815['status'],_0x2a7c15[_0x2ff66a(0x1f4)]?_0x2ff66a(0x213)+_0x2a7c15['errorCode']:undefined);}if(_0x17b7bb&&typeof _0x17b7bb===_0x2ff66a(0x1f1)&&_0x2ff66a(0x20c)in _0x17b7bb&&typeof _0x17b7bb['success']===_0x2ff66a(0x225)){const _0x2320ee=_0x17b7bb;if(!_0x2320ee['success'])throw CliErrors[_0x2ff66a(0x221)](_0x2320ee[_0x2ff66a(0x203)]||_0x2320ee[_0x2ff66a(0x208)]||_0x2ff66a(0x204),_0x2320ee[_0x2ff66a(0x1f4)]?'Toolbox\x20error\x20code:\x20'+_0x2320ee['errorCode']:undefined);return _0x2320ee['data'];}return _0x17b7bb;}catch(_0x415b5f){if(_0x415b5f instanceof Error&&_0x415b5f[_0x2ff66a(0x1ea)]===_0x2ff66a(0x211))throw CliErrors[_0x2ff66a(0x221)]('Request\x20timeout:\x20'+_0xa98b0d['toString']());throw _0x415b5f;}finally{clearTimeout(_0x1a96d6);}}export async function getBffScriptInfo(_0x532df4){const _0x15a2d9=a49_0x1a65,_0x49cede=await apiRequest(_0x15a2d9(0x21e)+_0x532df4);if(!_0x49cede[_0x15a2d9(0x22b)])throw CliErrors['validation']('BFF\x20script\x20not\x20found:\x20id='+_0x532df4);return _0x49cede[_0x15a2d9(0x22b)];}export async function getSqlQueryInfo(_0x33192a,_0x564fca){const _0x564895=a49_0x1a65,_0x514ff0=await apiRequest('/client/sql/query',{'method':_0x564895(0x1f6),'body':{'appCode':_0x33192a,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x564fca}}),_0x1d81df=_0x514ff0['data'],_0x4e1aff=_0x1d81df&&typeof _0x1d81df===_0x564895(0x1f1)&&'tableData'in _0x1d81df?_0x1d81df[_0x564895(0x21c)]?.[0x0]:_0x1d81df&&typeof _0x1d81df===_0x564895(0x1f1)&&_0x564895(0x1e3)in _0x1d81df?_0x1d81df:undefined;if(!_0x4e1aff)throw CliErrors[_0x564895(0x1ee)](_0x564895(0x22a)+_0x564fca);return _0x4e1aff;}function isRemoteAppItem(_0x225ba9){const _0x1244ac=a49_0x1a65;return!!_0x225ba9&&typeof _0x225ba9===_0x1244ac(0x1f1)&&typeof _0x225ba9['appCode']===_0x1244ac(0x21f)&&typeof _0x225ba9[_0x1244ac(0x1df)]===_0x1244ac(0x21f);}function extractRemoteAppItems(_0x574129){const _0x9235b0=a49_0x1a65;if(Array[_0x9235b0(0x1f7)](_0x574129))return _0x574129[_0x9235b0(0x207)](isRemoteAppItem);if(!_0x574129||typeof _0x574129!=='object')throw CliErrors[_0x9235b0(0x221)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0xe63c2b=_0x574129;if(Array[_0x9235b0(0x1f7)](_0xe63c2b[_0x9235b0(0x21c)]))return _0xe63c2b[_0x9235b0(0x21c)][_0x9235b0(0x207)](isRemoteAppItem);if(_0xe63c2b[_0x9235b0(0x22b)]&&typeof _0xe63c2b[_0x9235b0(0x22b)]==='object'){const _0x5202f1=_0xe63c2b['data'];if(Array['isArray'](_0x5202f1[_0x9235b0(0x21c)]))return _0x5202f1[_0x9235b0(0x21c)][_0x9235b0(0x207)](isRemoteAppItem);}throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x385930=a49_0x1a65,_0x3e6c6a=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x3e6c6a[_0x385930(0x22b)]);}export async function getLoginUserInfo(){const _0x371cff=a49_0x1a65,_0x511d18=await apiRequest(_0x371cff(0x1f3));if(!_0x511d18[_0x371cff(0x22b)]||typeof _0x511d18['data']!=='object'||Array[_0x371cff(0x1f7)](_0x511d18[_0x371cff(0x22b)]))throw CliErrors['apiError']('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x511d18['data'];}export async function listDatasets(_0x2a57b4,_0x43ebf8){const _0x4ef380=a49_0x1a65,_0x1d51ae=await apiRequest(_0x4ef380(0x1e8),{'method':_0x4ef380(0x1f6),'body':{'appCode':_0x2a57b4,..._0x43ebf8?.['code']&&{'code':_0x43ebf8['code']},..._0x43ebf8?.['name']&&{'name':_0x43ebf8[_0x4ef380(0x1ea)]}}});return extractList(_0x1d51ae[_0x4ef380(0x22b)]);}export async function getDatasetDetail(_0x5dccd8){const _0x230984=a49_0x1a65,_0x13f8f3=/^\d+$/[_0x230984(0x1e0)](_0x5dccd8)?'id':_0x230984(0x220),_0x205a83=await apiRequest(_0x230984(0x1e9)+_0x13f8f3+'='+_0x5dccd8);return _0x205a83[_0x230984(0x22b)];}export async function getDatasetSdkUsageDoc(_0x46661e,_0x24cd1f){const _0x343ea3=a49_0x1a65,_0x24d3e9=await toolboxRequest('api-doc-generator',{'datasetCode':_0x46661e,'appCode':_0x24cd1f});return typeof _0x24d3e9?.[_0x343ea3(0x20a)]==='string'?_0x24d3e9[_0x343ea3(0x20a)]:'';}export async function listRuntimeArtifacts(_0x31af39,_0x2c5403){const _0x4ede6a=a49_0x1a65,_0x34aa60=new URLSearchParams({'appCode':_0x31af39});if(_0x2c5403?.['artifactType'])_0x34aa60[_0x4ede6a(0x1fb)](_0x4ede6a(0x1ff),_0x2c5403[_0x4ede6a(0x1ff)]);if(_0x2c5403?.[_0x4ede6a(0x20d)])_0x34aa60[_0x4ede6a(0x1fb)]('source',_0x2c5403[_0x4ede6a(0x20d)]);if(_0x2c5403?.['favorite']!==undefined)_0x34aa60[_0x4ede6a(0x1fb)](_0x4ede6a(0x215),String(_0x2c5403[_0x4ede6a(0x215)]));const _0x3c3d79=await apiRequest('/client/artifact/list?'+_0x34aa60[_0x4ede6a(0x1dd)]());return Array[_0x4ede6a(0x1f7)](_0x3c3d79[_0x4ede6a(0x22b)])?_0x3c3d79[_0x4ede6a(0x22b)]:[];}export async function getRuntimeArtifact(_0x1782f1,_0x1d25cd){const _0x3ae85c=a49_0x1a65,_0x476d75=await apiRequest('/client/artifact/'+_0x1782f1+_0x3ae85c(0x216)+encodeURIComponent(_0x1d25cd));if(!_0x476d75['data'])throw CliErrors[_0x3ae85c(0x1ee)](_0x3ae85c(0x1f9)+_0x1782f1);return _0x476d75[_0x3ae85c(0x22b)];}export async function createRuntimeArtifact(_0x68c0ba,_0x56a9cd){const _0x13aa40=a49_0x1a65,_0x4d663e=await apiRequest(_0x13aa40(0x1de),{'method':_0x13aa40(0x1f6),'body':{'appCode':_0x68c0ba,..._0x56a9cd}});return _0x4d663e[_0x13aa40(0x22b)];}export async function updateRuntimeArtifact(_0x5589ca,_0x18be39,_0x126482){const _0x5d4ef5=a49_0x1a65,_0x45e4e4=await apiRequest(_0x5d4ef5(0x1fc)+_0x5589ca+_0x5d4ef5(0x1da),{'method':_0x5d4ef5(0x1f6),'body':{'appCode':_0x18be39,..._0x126482}});return _0x45e4e4[_0x5d4ef5(0x22b)];}export async function listPersonalBffs(_0x2825d0){const _0x1da5ba=a49_0x1a65,_0x33c488=await apiRequest(_0x1da5ba(0x205)+encodeURIComponent(_0x2825d0));return Array[_0x1da5ba(0x1f7)](_0x33c488['data'])?_0x33c488['data']:[];}export async function getPersonalBff(_0x945544,_0x3771c2){const _0x49ec00=a49_0x1a65,_0xb8673b=await apiRequest(_0x49ec00(0x1ec)+_0x945544+'?appCode='+encodeURIComponent(_0x3771c2));if(!_0xb8673b[_0x49ec00(0x22b)])throw CliErrors[_0x49ec00(0x1ee)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x945544);return _0xb8673b['data'];}export async function createPersonalBff(_0xa8cf5a,_0x3ac9ac){const _0x9329b4=a49_0x1a65,_0xb487a4=await apiRequest('/client/runtime-bff/personal/create',{'method':'POST','body':{'appCode':_0xa8cf5a,..._0x3ac9ac}});return _0xb487a4[_0x9329b4(0x22b)];}export async function updatePersonalBff(_0x3addeb,_0x108599,_0x51d005){const _0x35c1bd=a49_0x1a65,_0x3cc4f2=await apiRequest(_0x35c1bd(0x1ec)+_0x3addeb+_0x35c1bd(0x1da),{'method':_0x35c1bd(0x1f6),'body':{'appCode':_0x108599,..._0x51d005}});return _0x3cc4f2[_0x35c1bd(0x22b)];}export async function executePersonalBff(_0x1a45d9,_0x33064d,_0x43d8d8){const _0x4d9e3a=a49_0x1a65,_0x19da7e=await apiRequest(_0x4d9e3a(0x1ec)+_0x1a45d9+_0x4d9e3a(0x20b)+encodeURIComponent(_0x33064d),{'method':_0x4d9e3a(0x1f6),'body':_0x43d8d8});return _0x19da7e[_0x4d9e3a(0x22b)];}export async function listPersonalKnowledgeBaseItems(_0x5b54c9){const _0x526279=a49_0x1a65,_0x3b0be3=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x5b54c9));return Array['isArray'](_0x3b0be3[_0x526279(0x22b)])?_0x3b0be3[_0x526279(0x22b)]:[];}export async function getPersonalKnowledgeBaseItem(_0x300a02,_0x5d958f){const _0x436fed=a49_0x1a65,_0x1bea23=await apiRequest(_0x436fed(0x223)+_0x300a02+'?appCode='+encodeURIComponent(_0x5d958f));if(!_0x1bea23[_0x436fed(0x22b)])throw CliErrors[_0x436fed(0x1ee)](_0x436fed(0x21a)+_0x300a02);return _0x1bea23['data'];}export async function createPersonalKnowledgeBaseItem(_0x303177,_0x3f0c2e){const _0x1b7704=a49_0x1a65,_0x313300=await apiRequest('/client/knowledge-base/personal/create',{'method':'POST','body':{'appCode':_0x303177,..._0x3f0c2e}});return _0x313300[_0x1b7704(0x22b)];}export async function updatePersonalKnowledgeBaseItem(_0x1ba665,_0x5d8797,_0x2c8a05){const _0x45424e=a49_0x1a65,_0x86ca91=await apiRequest(_0x45424e(0x223)+_0x1ba665+'/update',{'method':_0x45424e(0x1f6),'body':{'appCode':_0x5d8797,..._0x2c8a05}});return _0x86ca91[_0x45424e(0x22b)];}export async function searchKnowledgeBase(_0x2b4a2f,_0x34e75a){const _0x5beaba=a49_0x1a65,_0x2fe0bd=await apiRequest(_0x5beaba(0x201),{'method':'POST','body':{'appCode':_0x2b4a2f,'query':_0x34e75a['query'],..._0x34e75a['topK']!==undefined?{'topK':_0x34e75a['topK']}:{}}});return Array[_0x5beaba(0x1f7)](_0x2fe0bd[_0x5beaba(0x22b)])?_0x2fe0bd[_0x5beaba(0x22b)]:[];}export async function listPersonalRuntimeSkills(_0x4fa61a){const _0x14adfe=a49_0x1a65,_0x3eccb2=await apiRequest(_0x14adfe(0x222)+encodeURIComponent(_0x4fa61a));return Array[_0x14adfe(0x1f7)](_0x3eccb2[_0x14adfe(0x22b)])?_0x3eccb2[_0x14adfe(0x22b)]:[];}export async function listCompanyRuntimeSkills(_0x5a3b67){const _0x3bb903=a49_0x1a65,_0x4d13e8=await apiRequest(_0x3bb903(0x219)+encodeURIComponent(_0x5a3b67));return Array['isArray'](_0x4d13e8[_0x3bb903(0x22b)])?_0x4d13e8['data']:[];}export async function listVisibleRuntimeSkills(_0x110a2b){const _0x4cfbc4=a49_0x1a65,_0x3b617f=await apiRequest(_0x4cfbc4(0x1e1)+encodeURIComponent(_0x110a2b));return Array[_0x4cfbc4(0x1f7)](_0x3b617f[_0x4cfbc4(0x22b)])?_0x3b617f['data']:[];}export async function createPersonalRuntimeSkill(_0x2d1bed,_0x2c46ca){const _0x116cb2=a49_0x1a65,_0x5e8b87=await apiRequest(_0x116cb2(0x218),{'method':_0x116cb2(0x1f6),'body':{'appCode':_0x2d1bed,..._0x2c46ca}});return _0x5e8b87[_0x116cb2(0x22b)];}export async function updatePersonalRuntimeSkill(_0x29acb7,_0x41e222,_0x1a2c4d){const _0x2b8f95=a49_0x1a65,_0x217004=await apiRequest(_0x2b8f95(0x226)+encodeURIComponent(_0x29acb7)+_0x2b8f95(0x1da),{'method':_0x2b8f95(0x1f6),'body':{'appCode':_0x41e222,..._0x1a2c4d}});return _0x217004['data'];}export async function downloadRuntimeSkillPackage(_0x1f977d,_0x2e46bb,_0x489019){const _0x252763=a49_0x1a65;return apiBinaryRequest(_0x252763(0x209)+encodeURIComponent(_0x1f977d)+'/'+encodeURIComponent(_0x2e46bb)+'/package?appCode='+encodeURIComponent(_0x489019));}
|
|
1
|
+
(function(_0x553a51,_0x14d2ae){const _0x361631=a49_0x5d4e,_0x28ade5=_0x553a51();while(!![]){try{const _0x3dbdb4=parseInt(_0x361631(0xaf))/0x1*(parseInt(_0x361631(0x92))/0x2)+-parseInt(_0x361631(0x95))/0x3*(parseInt(_0x361631(0xb1))/0x4)+-parseInt(_0x361631(0xe0))/0x5+parseInt(_0x361631(0x9a))/0x6+parseInt(_0x361631(0xbc))/0x7*(parseInt(_0x361631(0x9d))/0x8)+-parseInt(_0x361631(0xe8))/0x9*(parseInt(_0x361631(0xb9))/0xa)+parseInt(_0x361631(0x9b))/0xb*(parseInt(_0x361631(0xcf))/0xc);if(_0x3dbdb4===_0x14d2ae)break;else _0x28ade5['push'](_0x28ade5['shift']());}catch(_0x56b437){_0x28ade5['push'](_0x28ade5['shift']());}}}(a49_0x2d63,0xde241));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x2aac94){_activeAK=_0x2aac94||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x29e85d,_0x4f472d={}){const _0x320ced=a49_0x5d4e,{method:method=_0x320ced(0xe5),body:_0x3c1624,headers:headers={},timeout:timeout=0x7530}=_0x4f472d,_0x50afb7=_activeAK,_0x28bb3b=getRuntimeDomain();if(!_0x50afb7)throw CliErrors[_0x320ced(0xb3)](_0x320ced(0xb2)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x57d62a=''+_0x28bb3b+_0x29e85d,_0x520879={'X-User-AK':_0x50afb7},_0x2810a1=new AbortController(),_0x335d15=setTimeout(()=>_0x2810a1['abort'](),timeout);try{const _0x5ba441=await fetch(_0x57d62a,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x320ced(0xd2)],..._0x520879,...headers},'body':_0x3c1624?JSON['stringify'](_0x3c1624):undefined,'signal':_0x2810a1[_0x320ced(0xc3)]});let _0x1f20a6;try{_0x1f20a6=await _0x5ba441[_0x320ced(0x9e)]();}catch{throw CliErrors[_0x320ced(0xcd)](_0x320ced(0xa6)+_0x5ba441[_0x320ced(0xbd)]+')',_0x5ba441[_0x320ced(0xbd)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x5ba441['ok']||_0x1f20a6['success']===![])throw CliErrors[_0x320ced(0xcd)](_0x1f20a6[_0x320ced(0xd4)]||_0x1f20a6[_0x320ced(0xc5)]||'API\x20error:\x20'+_0x5ba441[_0x320ced(0xbd)],_0x1f20a6['errorCode']?_0x320ced(0x99)+_0x1f20a6[_0x320ced(0xb5)]:undefined);return _0x1f20a6;}catch(_0x2d40d7){if(_0x2d40d7 instanceof Error&&_0x2d40d7[_0x320ced(0xe9)]==='AbortError')throw CliErrors[_0x320ced(0xcd)]('Request\x20timeout:\x20'+_0x57d62a);throw _0x2d40d7;}finally{clearTimeout(_0x335d15);}}async function apiBinaryRequest(_0x131651,_0x37ac3e={}){const _0x384516=a49_0x5d4e,{method:method=_0x384516(0xe5),headers:headers={},timeout:timeout=0x7530}=_0x37ac3e,_0x455094=_activeAK,_0x1b750c=getRuntimeDomain();if(!_0x455094)throw CliErrors['authRequired'](_0x384516(0xb2)+PRODUCT_CONFIG[_0x384516(0xb8)]+'.');const _0x4cfb1e=''+_0x1b750c+_0x131651,_0x17d8b6=new AbortController(),_0x489a2a=setTimeout(()=>_0x17d8b6[_0x384516(0xc2)](),timeout);try{const _0x450e31=await fetch(_0x4cfb1e,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x384516(0xd2)],'X-User-AK':_0x455094,...headers},'signal':_0x17d8b6[_0x384516(0xc3)]});if(!_0x450e31['ok']){let _0x270145;try{const _0x206f01=await _0x450e31['json']();_0x270145=_0x206f01['errorMsg']||_0x206f01[_0x384516(0xc5)]||_0x206f01[_0x384516(0xb5)];}catch{_0x270145=await _0x450e31[_0x384516(0xe1)]()[_0x384516(0xde)](()=>undefined);}throw CliErrors['apiError'](_0x270145||'API\x20error:\x20'+_0x450e31[_0x384516(0xbd)],_0x384516(0xe4)+_0x4cfb1e);}return Buffer[_0x384516(0xe6)](await _0x450e31[_0x384516(0xd8)]());}catch(_0x4f7a8c){if(_0x4f7a8c instanceof Error&&_0x4f7a8c[_0x384516(0xe9)]===_0x384516(0xd6))throw CliErrors[_0x384516(0xcd)](_0x384516(0x9f)+_0x4cfb1e);throw _0x4f7a8c;}finally{clearTimeout(_0x489a2a);}}async function toolboxRequest(_0x126ae8,_0xa71f30,_0x18b344={}){const _0x3d4068=a49_0x5d4e,{method:method=_0x3d4068(0xe5),headers:headers={},timeout:timeout=0x7530}=_0x18b344,_0x4abf60=_activeAK;if(!_0x4abf60)throw CliErrors[_0x3d4068(0xb3)](_0x3d4068(0xb2)+PRODUCT_CONFIG[_0x3d4068(0xb8)]+'.');const _0x521494=getApiDomain()[_0x3d4068(0xad)](/\/$/,''),_0xdd42fb=new URL(_0x126ae8,_0x521494+_0x3d4068(0xd9));if(_0xa71f30)for(const [_0x565fdd,_0xd389b3]of Object[_0x3d4068(0xcc)](_0xa71f30)){_0xd389b3!==undefined&&_0xd389b3!==null&&_0xdd42fb[_0x3d4068(0xd0)]['set'](_0x565fdd,String(_0xd389b3));}const _0x163482=new AbortController(),_0x11d31e=setTimeout(()=>_0x163482[_0x3d4068(0xc2)](),timeout);try{const _0x270580=await fetch(_0xdd42fb,{'method':method,'headers':{'Content-Type':_0x3d4068(0xaa),'X-Invoke-Source':PRODUCT_CONFIG[_0x3d4068(0xd2)],'X-User-AK':_0x4abf60,...headers},'signal':_0x163482[_0x3d4068(0xc3)]});let _0x5e22b3;try{_0x5e22b3=await _0x270580[_0x3d4068(0x9e)]();}catch{throw CliErrors[_0x3d4068(0xcd)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x270580[_0x3d4068(0xbd)]+')',_0x270580[_0x3d4068(0xbd)]>=0x190?_0x3d4068(0xba):undefined);}if(!_0x270580['ok']){const _0x311c1c=_0x5e22b3&&typeof _0x5e22b3===_0x3d4068(0xe2)?_0x5e22b3:{};throw CliErrors[_0x3d4068(0xcd)](_0x311c1c[_0x3d4068(0xd4)]||_0x311c1c['message']||_0x3d4068(0xa2)+_0x270580['status'],_0x311c1c['errorCode']?_0x3d4068(0xa4)+_0x311c1c[_0x3d4068(0xb5)]:undefined);}if(_0x5e22b3&&typeof _0x5e22b3===_0x3d4068(0xe2)&&_0x3d4068(0x90)in _0x5e22b3&&typeof _0x5e22b3['success']===_0x3d4068(0xb6)){const _0x142335=_0x5e22b3;if(!_0x142335[_0x3d4068(0x90)])throw CliErrors[_0x3d4068(0xcd)](_0x142335[_0x3d4068(0xd4)]||_0x142335[_0x3d4068(0xc5)]||_0x3d4068(0xd1),_0x142335['errorCode']?_0x3d4068(0xa4)+_0x142335['errorCode']:undefined);return _0x142335[_0x3d4068(0x9c)];}return _0x5e22b3;}catch(_0x3ddaf6){if(_0x3ddaf6 instanceof Error&&_0x3ddaf6[_0x3d4068(0xe9)]===_0x3d4068(0xd6))throw CliErrors[_0x3d4068(0xcd)]('Request\x20timeout:\x20'+_0xdd42fb[_0x3d4068(0xb0)]());throw _0x3ddaf6;}finally{clearTimeout(_0x11d31e);}}export async function getBffScriptInfo(_0x1ba7ed){const _0x47f798=a49_0x5d4e,_0x48b56d=await apiRequest(_0x47f798(0xa7)+_0x1ba7ed);if(!_0x48b56d['data'])throw CliErrors[_0x47f798(0xb4)](_0x47f798(0xab)+_0x1ba7ed);return _0x48b56d[_0x47f798(0x9c)];}export async function getSqlQueryInfo(_0x2b01c8,_0x38656d){const _0x37f6fa=a49_0x5d4e,_0x79c217=await apiRequest('/client/sql/query',{'method':_0x37f6fa(0x94),'body':{'appCode':_0x2b01c8,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x38656d}}),_0x3044b0=_0x79c217[_0x37f6fa(0x9c)],_0x54e004=_0x3044b0&&typeof _0x3044b0===_0x37f6fa(0xe2)&&_0x37f6fa(0xe3)in _0x3044b0?_0x3044b0[_0x37f6fa(0xe3)]?.[0x0]:_0x3044b0&&typeof _0x3044b0===_0x37f6fa(0xe2)&&_0x37f6fa(0xc4)in _0x3044b0?_0x3044b0:undefined;if(!_0x54e004)throw CliErrors[_0x37f6fa(0xb4)](_0x37f6fa(0xa9)+_0x38656d);return _0x54e004;}function isRemoteAppItem(_0x4f35f4){const _0x2549d4=a49_0x5d4e;return!!_0x4f35f4&&typeof _0x4f35f4==='object'&&typeof _0x4f35f4[_0x2549d4(0xbf)]===_0x2549d4(0xda)&&typeof _0x4f35f4[_0x2549d4(0xc6)]==='string';}function extractRemoteAppItems(_0xd31e97){const _0x321819=a49_0x5d4e;if(Array[_0x321819(0xec)](_0xd31e97))return _0xd31e97['filter'](isRemoteAppItem);if(!_0xd31e97||typeof _0xd31e97!==_0x321819(0xe2))throw CliErrors[_0x321819(0xcd)](_0x321819(0xc9));const _0x18b7b9=_0xd31e97;if(Array[_0x321819(0xec)](_0x18b7b9['tableData']))return _0x18b7b9['tableData'][_0x321819(0xcb)](isRemoteAppItem);if(_0x18b7b9[_0x321819(0x9c)]&&typeof _0x18b7b9[_0x321819(0x9c)]===_0x321819(0xe2)){const _0x2888e7=_0x18b7b9[_0x321819(0x9c)];if(Array[_0x321819(0xec)](_0x2888e7[_0x321819(0xe3)]))return _0x2888e7[_0x321819(0xe3)][_0x321819(0xcb)](isRemoteAppItem);}throw CliErrors[_0x321819(0xcd)](_0x321819(0xdc));}export async function getMyApps(){const _0x1b35d8=a49_0x5d4e,_0x47e7c3=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x47e7c3[_0x1b35d8(0x9c)]);}export async function getLoginUserInfo(){const _0x5f483a=a49_0x5d4e,_0x15313e=await apiRequest(_0x5f483a(0x91));if(!_0x15313e['data']||typeof _0x15313e[_0x5f483a(0x9c)]!==_0x5f483a(0xe2)||Array[_0x5f483a(0xec)](_0x15313e[_0x5f483a(0x9c)]))throw CliErrors[_0x5f483a(0xcd)](_0x5f483a(0xce));return _0x15313e[_0x5f483a(0x9c)];}export async function listDatasets(_0x2e4edd,_0x5ab946){const _0x311e02=a49_0x5d4e,_0x5073d5=await apiRequest(_0x311e02(0xca),{'method':_0x311e02(0x94),'body':{'appCode':_0x2e4edd,..._0x5ab946?.['code']&&{'code':_0x5ab946[_0x311e02(0xc7)]},..._0x5ab946?.[_0x311e02(0xe9)]&&{'name':_0x5ab946[_0x311e02(0xe9)]}}});return extractList(_0x5073d5[_0x311e02(0x9c)]);}export async function getDatasetDetail(_0x1bde56){const _0x5e8e29=a49_0x5d4e,_0x332f16=/^\d+$/[_0x5e8e29(0xa3)](_0x1bde56)?'id':_0x5e8e29(0xc7),_0x5f0d81=await apiRequest('/client/dataset/query?'+_0x332f16+'='+_0x1bde56);return _0x5f0d81[_0x5e8e29(0x9c)];}export async function getDatasetSdkUsageDoc(_0xce2785,_0x4e7a90){const _0x5eaadb=a49_0x5d4e,_0x4de65f=await toolboxRequest('api-doc-generator',{'datasetCode':_0xce2785,'appCode':_0x4e7a90});return typeof _0x4de65f?.[_0x5eaadb(0xc0)]==='string'?_0x4de65f[_0x5eaadb(0xc0)]:'';}export async function listRuntimeArtifacts(_0x4a7288,_0x180493){const _0x571bcb=a49_0x5d4e,_0x126afb=new URLSearchParams({'appCode':_0x4a7288});if(_0x180493?.[_0x571bcb(0x96)])_0x126afb['set']('artifactType',_0x180493[_0x571bcb(0x96)]);if(_0x180493?.[_0x571bcb(0xdd)])_0x126afb[_0x571bcb(0xb7)](_0x571bcb(0xdd),_0x180493['source']);if(_0x180493?.[_0x571bcb(0xd3)]!==undefined)_0x126afb[_0x571bcb(0xb7)](_0x571bcb(0xd3),String(_0x180493[_0x571bcb(0xd3)]));const _0x45c496=await apiRequest(_0x571bcb(0xc8)+_0x126afb[_0x571bcb(0xb0)]());return Array[_0x571bcb(0xec)](_0x45c496[_0x571bcb(0x9c)])?_0x45c496['data']:[];}export async function getRuntimeArtifact(_0xa5e5fb,_0x156253){const _0x315e3b=a49_0x5d4e,_0x2f741b=await apiRequest(_0x315e3b(0xae)+_0xa5e5fb+_0x315e3b(0x98)+encodeURIComponent(_0x156253));if(!_0x2f741b[_0x315e3b(0x9c)])throw CliErrors[_0x315e3b(0xb4)](_0x315e3b(0x97)+_0xa5e5fb);return _0x2f741b[_0x315e3b(0x9c)];}function a49_0x2d63(){const _0x5820e0=['825396cPeqUF','198022ulqncu','data','744536fejZiI','json','Request\x20timeout:\x20','/client/skill/','/client/knowledge-base/personal/','Toolbox\x20API\x20error:\x20','test','Toolbox\x20error\x20code:\x20','/client/runtime-bff/personal/','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/bff/query/','/client/skill/company/list?appCode=','SQL\x20query\x20not\x20found:\x20','application/json','BFF\x20script\x20not\x20found:\x20id=','/client/skill/list?appCode=','replace','/client/artifact/','21191EYxvkF','toString','28536afkMjH','Configure\x20accessKey\x20in\x20','authRequired','validation','errorCode','boolean','set','newConfigFileName','121070tXvknb','Check\x20your\x20credentials\x20and\x20try\x20again.','/execute?appCode=','7ztrtib','status','/package?appCode=','appCode','markdown','query','abort','signal','sqlCode','message','appName','code','/client/artifact/list?','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/dataset/list','filter','entries','apiError','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','672lQxqgi','searchParams','Toolbox\x20API\x20error','invokeSource','favorite','errorMsg','topK','AbortError','/client/skill/personal/','arrayBuffer','/api/node-toolbox/','string','/client/knowledge-base/personal/list?appCode=','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','source','catch','/client/knowledge-base/personal/create','693690fsAQtG','text','object','tableData','Download\x20failed:\x20','GET','from','/client/runtime-bff/personal/create','99JEtbLU','name','/update','/client/artifact/create','isArray','success','/client/user/loginUserInfo','134MgInfo','/client/skill/personal/create','POST','621JPYyjh','artifactType','Artifact\x20not\x20found:\x20id=','?appCode=','API\x20error\x20code:\x20'];a49_0x2d63=function(){return _0x5820e0;};return a49_0x2d63();}export async function createRuntimeArtifact(_0x29e70c,_0x388b51){const _0x56122b=a49_0x5d4e,_0x57d819=await apiRequest(_0x56122b(0xeb),{'method':_0x56122b(0x94),'body':{'appCode':_0x29e70c,..._0x388b51}});return _0x57d819[_0x56122b(0x9c)];}export async function updateRuntimeArtifact(_0x5da2ff,_0x45b93f,_0x540303){const _0xea0856=a49_0x5d4e,_0x5f5cbd=await apiRequest('/client/artifact/'+_0x5da2ff+_0xea0856(0xea),{'method':_0xea0856(0x94),'body':{'appCode':_0x45b93f,..._0x540303}});return _0x5f5cbd[_0xea0856(0x9c)];}export async function listPersonalBffs(_0x17efd1){const _0x46b79c=a49_0x5d4e,_0xc547e6=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x17efd1));return Array[_0x46b79c(0xec)](_0xc547e6[_0x46b79c(0x9c)])?_0xc547e6['data']:[];}export async function getPersonalBff(_0x31ae0c,_0x140204){const _0x415573=a49_0x5d4e,_0x272070=await apiRequest('/client/runtime-bff/personal/'+_0x31ae0c+_0x415573(0x98)+encodeURIComponent(_0x140204));if(!_0x272070[_0x415573(0x9c)])throw CliErrors['validation']('Personal\x20BFF\x20not\x20found:\x20id='+_0x31ae0c);return _0x272070['data'];}export async function createPersonalBff(_0x2dee70,_0x2c3c14){const _0x31bd50=a49_0x5d4e,_0x47892d=await apiRequest(_0x31bd50(0xe7),{'method':_0x31bd50(0x94),'body':{'appCode':_0x2dee70,..._0x2c3c14}});return _0x47892d[_0x31bd50(0x9c)];}export async function updatePersonalBff(_0x1e53fd,_0x37577c,_0x152fe9){const _0x550974=a49_0x5d4e,_0x2a9419=await apiRequest(_0x550974(0xa5)+_0x1e53fd+_0x550974(0xea),{'method':'POST','body':{'appCode':_0x37577c,..._0x152fe9}});return _0x2a9419['data'];}export async function executePersonalBff(_0x2479ec,_0x44e651,_0x248a8f){const _0x54c551=a49_0x5d4e,_0x4b21eb=await apiRequest(_0x54c551(0xa5)+_0x2479ec+_0x54c551(0xbb)+encodeURIComponent(_0x44e651),{'method':_0x54c551(0x94),'body':_0x248a8f});return _0x4b21eb[_0x54c551(0x9c)];}export async function listPersonalKnowledgeBaseItems(_0x32dfcd){const _0x301982=a49_0x5d4e,_0x5c01e4=await apiRequest(_0x301982(0xdb)+encodeURIComponent(_0x32dfcd));return Array[_0x301982(0xec)](_0x5c01e4[_0x301982(0x9c)])?_0x5c01e4['data']:[];}function a49_0x5d4e(_0x88c660,_0xddbbc7){_0x88c660=_0x88c660-0x90;const _0x2d631f=a49_0x2d63();let _0x5d4e8e=_0x2d631f[_0x88c660];return _0x5d4e8e;}export async function getPersonalKnowledgeBaseItem(_0x308ea1,_0xe8c0fd){const _0x5b55c5=a49_0x5d4e,_0x1ca491=await apiRequest(_0x5b55c5(0xa1)+_0x308ea1+_0x5b55c5(0x98)+encodeURIComponent(_0xe8c0fd));if(!_0x1ca491['data'])throw CliErrors[_0x5b55c5(0xb4)]('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x308ea1);return _0x1ca491['data'];}export async function createPersonalKnowledgeBaseItem(_0x5ec69d,_0x5a6277){const _0x65c530=a49_0x5d4e,_0x3b4d4a=await apiRequest(_0x65c530(0xdf),{'method':_0x65c530(0x94),'body':{'appCode':_0x5ec69d,..._0x5a6277}});return _0x3b4d4a[_0x65c530(0x9c)];}export async function updatePersonalKnowledgeBaseItem(_0x5e1cba,_0x5816ab,_0x14a75d){const _0x5f05bb=a49_0x5d4e,_0x242211=await apiRequest(_0x5f05bb(0xa1)+_0x5e1cba+_0x5f05bb(0xea),{'method':_0x5f05bb(0x94),'body':{'appCode':_0x5816ab,..._0x14a75d}});return _0x242211[_0x5f05bb(0x9c)];}export async function searchKnowledgeBase(_0x323235,_0x352d2d){const _0x1596ab=a49_0x5d4e,_0x4a9fb7=await apiRequest('/client/knowledge-base/search',{'method':'POST','body':{'appCode':_0x323235,'query':_0x352d2d[_0x1596ab(0xc1)],..._0x352d2d['topK']!==undefined?{'topK':_0x352d2d[_0x1596ab(0xd5)]}:{}}});return Array[_0x1596ab(0xec)](_0x4a9fb7[_0x1596ab(0x9c)])?_0x4a9fb7['data']:[];}export async function listPersonalRuntimeSkills(_0x40543a){const _0x577eee=a49_0x5d4e,_0x342900=await apiRequest('/client/skill/personal/list?appCode='+encodeURIComponent(_0x40543a));return Array[_0x577eee(0xec)](_0x342900['data'])?_0x342900[_0x577eee(0x9c)]:[];}export async function listCompanyRuntimeSkills(_0x43480c){const _0x13d48d=a49_0x5d4e,_0x562786=await apiRequest(_0x13d48d(0xa8)+encodeURIComponent(_0x43480c));return Array[_0x13d48d(0xec)](_0x562786[_0x13d48d(0x9c)])?_0x562786['data']:[];}export async function listVisibleRuntimeSkills(_0x42a7c0){const _0x1a9089=a49_0x5d4e,_0x1885bf=await apiRequest(_0x1a9089(0xac)+encodeURIComponent(_0x42a7c0));return Array[_0x1a9089(0xec)](_0x1885bf['data'])?_0x1885bf['data']:[];}export async function createPersonalRuntimeSkill(_0x1f777d,_0x37f523){const _0x5d28be=a49_0x5d4e,_0x1b20d7=await apiRequest(_0x5d28be(0x93),{'method':_0x5d28be(0x94),'body':{'appCode':_0x1f777d,..._0x37f523}});return _0x1b20d7['data'];}export async function updatePersonalRuntimeSkill(_0x41c1d0,_0x136af0,_0xd4a0a5){const _0x2ca476=a49_0x5d4e,_0x3c8c53=await apiRequest(_0x2ca476(0xd7)+encodeURIComponent(_0x41c1d0)+_0x2ca476(0xea),{'method':_0x2ca476(0x94),'body':{'appCode':_0x136af0,..._0xd4a0a5}});return _0x3c8c53[_0x2ca476(0x9c)];}export async function downloadRuntimeSkillPackage(_0x37d89c,_0x5a43eb,_0x1a3740){const _0x4b3131=a49_0x5d4e;return apiBinaryRequest(_0x4b3131(0xa0)+encodeURIComponent(_0x37d89c)+'/'+encodeURIComponent(_0x5a43eb)+_0x4b3131(0xbe)+encodeURIComponent(_0x1a3740));}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a50_0x193e(){const _0x213fd3=['db-','map','6993575BZFlgL','17114499oHTBtO','120roTxXO','dbName','get','718146SbrzjU','dbId','20HoZTak','371034IOqgAD','dbtableConfig','657643tInXgg','set','317865gMJCPB','has','entries','629359mkHzQk'];a50_0x193e=function(){return _0x213fd3;};return a50_0x193e();}(function(_0x314c41,_0x562c38){const _0x3d1261=a50_0x2fba,_0x2620df=_0x314c41();while(!![]){try{const _0x10edd2=-parseInt(_0x3d1261(0x15a))/0x1+-parseInt(_0x3d1261(0x165))/0x2+parseInt(_0x3d1261(0x169))/0x3*(parseInt(_0x3d1261(0x164))/0x4)+parseInt(_0x3d1261(0x15d))/0x5+parseInt(_0x3d1261(0x162))/0x6+-parseInt(_0x3d1261(0x167))/0x7*(-parseInt(_0x3d1261(0x15f))/0x8)+-parseInt(_0x3d1261(0x15e))/0x9;if(_0x10edd2===_0x562c38)break;else _0x2620df['push'](_0x2620df['shift']());}catch(_0x456a65){_0x2620df['push'](_0x2620df['shift']());}}}(a50_0x193e,0xb4e41));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4277c7){const _0x292bc2=a50_0x2fba;if(cache[_0x292bc2(0x16a)](_0x4277c7))return cache[_0x292bc2(0x161)](_0x4277c7);const _0x2466ca=await listDatasets(_0x4277c7),_0x16c7fd=new Map();for(const _0x5f1251 of _0x2466ca){const _0x5a85d6=_0x5f1251[_0x292bc2(0x166)];_0x5a85d6?.[_0x292bc2(0x163)]!=null&&_0x16c7fd[_0x292bc2(0x168)](_0x5a85d6[_0x292bc2(0x163)],_0x5a85d6['dbName']??_0x292bc2(0x15b)+_0x5a85d6['dbId']);}const _0x5beabd=[..._0x16c7fd[_0x292bc2(0x16b)]()][_0x292bc2(0x15c)](([_0x2b2d33,_0x49eba6])=>({'dbId':_0x2b2d33,'dbName':_0x49eba6}));return cache['set'](_0x4277c7,_0x5beabd),_0x5beabd;}function a50_0x2fba(_0x9055f9,_0x30b355){_0x9055f9=_0x9055f9-0x15a;const _0x193ef3=a50_0x193e();let _0x2fbabc=_0x193ef3[_0x9055f9];return _0x2fbabc;}export async function getDbName(_0x35ce07,_0x111c8e){const _0x5bba0f=a50_0x2fba;try{const _0x1f32f1=await listDatabases(_0x35ce07);return _0x1f32f1['find'](_0x56b47c=>_0x56b47c[_0x5bba0f(0x163)]===_0x111c8e)?.[_0x5bba0f(0x160)];}catch{return undefined;}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40fd93,_0x236b80){const _0x64ba05=a51_0x5469,_0x17c87f=_0x40fd93();while(!![]){try{const _0x3639b7=-parseInt(_0x64ba05(0xb2))/0x1*(parseInt(_0x64ba05(0xac))/0x2)+-parseInt(_0x64ba05(0xb7))/0x3+-parseInt(_0x64ba05(0xad))/0x4*(parseInt(_0x64ba05(0xb0))/0x5)+-parseInt(_0x64ba05(0xba))/0x6*(parseInt(_0x64ba05(0xab))/0x7)+parseInt(_0x64ba05(0xa9))/0x8*(-parseInt(_0x64ba05(0xa2))/0x9)+parseInt(_0x64ba05(0xa8))/0xa+parseInt(_0x64ba05(0xa7))/0xb;if(_0x3639b7===_0x236b80)break;else _0x17c87f['push'](_0x17c87f['shift']());}catch(_0x335b35){_0x17c87f['push'](_0x17c87f['shift']());}}}(a51_0x1ec1,0x852bb));function a51_0x5469(_0x3dd968,_0x5221e8){_0x3dd968=_0x3dd968-0x9d;const _0x1ec1a3=a51_0x1ec1();let _0x546990=_0x1ec1a3[_0x3dd968];return _0x546990;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x494cf6){const _0x5e9c91=a51_0x5469;_client=createClient({'appCode':_0x494cf6[_0x5e9c91(0xb8)],'env':_0x494cf6[_0x5e9c91(0xb3)],'authMode':_0x494cf6[_0x5e9c91(0xa1)],..._0x494cf6[_0x5e9c91(0xa0)]?{'accessKey':_0x494cf6[_0x5e9c91(0xa0)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5e9c91(0xb6)]}}});}function ensureClient(){const _0x251cfc=a51_0x5469;if(!_client)throw new Error(_0x251cfc(0xaa));return _client;}export async function executeData(_0x4cbaec,_0x2d9678,_0x5a163a){const _0x129669=a51_0x5469,_0x299650=ensureClient(),_0x5a7405=_0x129669(0xb4)+_0x4cbaec,_0x5da745=_0x299650['models'][_0x5a7405];if(!_0x5da745||typeof _0x5da745[_0x2d9678]!=='function')throw new Error(_0x129669(0xa4)+_0x2d9678+_0x129669(0xaf)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x2d9678===_0x129669(0xae))return _0x5da745['batchCreate'](parseBatchCreateItemsFromParams(_0x5a163a));const _0x4a284b=_0x5a163a!==undefined&&_0x5a163a!==null&&!Array[_0x129669(0xb1)](_0x5a163a)?_0x5a163a:{};switch(_0x2d9678){case _0x129669(0xa6):{const _0xe48f83=_0x4a284b['id'];if(_0xe48f83===undefined||_0xe48f83===null)throw new Error(_0x129669(0xa3));return _0x5da745[_0x129669(0xa6)](_0xe48f83);}case _0x129669(0xb5):{const {id:_0x430ed6,..._0x2607a4}=_0x4a284b;if(_0x430ed6===undefined||_0x430ed6===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x5da745[_0x129669(0xb5)](_0x430ed6,_0x2607a4);}case _0x129669(0x9f):{const _0x15c891=_0x4a284b['id'];if(_0x15c891===undefined||_0x15c891===null)throw new Error(_0x129669(0xb9));return _0x5da745[_0x129669(0x9f)](_0x15c891);}default:return _0x5da745[_0x2d9678](_0x4a284b);}}export async function executeSdkSql(_0x2118b7,_0x14e93d){const _0x4d1e5a=a51_0x5469,_0x184eac=ensureClient();return _0x184eac[_0x4d1e5a(0x9d)][_0x4d1e5a(0x9e)]({'sqlCode':_0x2118b7,'params':_0x14e93d});}export async function executeSdkBff(_0xf24460,_0x12495b){const _0x6f1053=a51_0x5469,_0x3bf854=ensureClient();return _0x3bf854[_0x6f1053(0xa5)][_0x6f1053(0x9e)]({'scriptName':_0xf24460,'params':_0x12495b});}function a51_0x1ec1(){const _0x550f18=['SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','4487gwYXxl','992408DWTBNL','292192GklRTl','batchCreate','\x22.\x20','25EODCwZ','isArray','1BpnILO','env','dataset_','update','invokeSource','903153LsmqmB','appCode','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','6546LFSYXj','sql','execute','delete','accessKey','authMode','909aTHXOv','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','bff','getOne','21764578qtsPZI','8775390HbpFGB','35552XtgkBB'];a51_0x1ec1=function(){return _0x550f18;};return a51_0x1ec1();}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x15adb0=a52_0x3021;(function(_0x8f03a,_0x2ff77d){const _0x579cfc=a52_0x3021,_0x3d16b2=_0x8f03a();while(!![]){try{const _0x1321f3=parseInt(_0x579cfc(0x1c4))/0x1*(-parseInt(_0x579cfc(0x1bf))/0x2)+-parseInt(_0x579cfc(0x1bd))/0x3+-parseInt(_0x579cfc(0x1c2))/0x4*(parseInt(_0x579cfc(0x1bc))/0x5)+parseInt(_0x579cfc(0x1b9))/0x6*(-parseInt(_0x579cfc(0x1ba))/0x7)+-parseInt(_0x579cfc(0x1be))/0x8+-parseInt(_0x579cfc(0x1b6))/0x9+parseInt(_0x579cfc(0x1c3))/0xa*(parseInt(_0x579cfc(0x1b8))/0xb);if(_0x1321f3===_0x2ff77d)break;else _0x3d16b2['push'](_0x3d16b2['shift']());}catch(_0x1a51f3){_0x3d16b2['push'](_0x3d16b2['shift']());}}}(a52_0x1383,0x81dd5));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a52_0x1383(){const _0x46f3b8=['3618856VfEovQ','12310xIifRl','112924xwOMaY','\x20auth\x20login`.','702675gzygTb','\x20or\x20run\x20`','29051DddfFq','150cFtenn','78274kYicKu','newConfigFileName','5YNKfET','1611300TnkyAE','3744088UhfxFx','8XzJdoo','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Configure\x20accessKey\x20in\x20'];a52_0x1383=function(){return _0x46f3b8;};return a52_0x1383();}function a52_0x3021(_0x520178,_0xff80b){_0x520178=_0x520178-0x1b6;const _0x13832a=a52_0x1383();let _0x30213d=_0x13832a[_0x520178];return _0x30213d;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a52_0x15adb0(0x1c1)+PRODUCT_CONFIG[a52_0x15adb0(0x1bb)]+a52_0x15adb0(0x1b7)+CLI_BIN_NAME+a52_0x15adb0(0x1c5),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a52_0x15adb0(0x1bb)]+'.','notInProjectHint':a52_0x15adb0(0x1c0)+PRODUCT_CONFIG[a52_0x15adb0(0x1bb)]+'\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56a8e8,_0x1d979f){var _0x218f1d=a53_0x4da7,_0x2588eb=_0x56a8e8();while(!![]){try{var _0x1f311c=-parseInt(_0x218f1d(0x13f))/0x1*(-parseInt(_0x218f1d(0x142))/0x2)+parseInt(_0x218f1d(0x137))/0x3+-parseInt(_0x218f1d(0x13c))/0x4*(parseInt(_0x218f1d(0x139))/0x5)+parseInt(_0x218f1d(0x13d))/0x6*(parseInt(_0x218f1d(0x13a))/0x7)+parseInt(_0x218f1d(0x13e))/0x8+parseInt(_0x218f1d(0x13b))/0x9*(parseInt(_0x218f1d(0x141))/0xa)+parseInt(_0x218f1d(0x138))/0xb*(-parseInt(_0x218f1d(0x140))/0xc);if(_0x1f311c===_0x1d979f)break;else _0x2588eb['push'](_0x2588eb['shift']());}catch(_0x21e7f4){_0x2588eb['push'](_0x2588eb['shift']());}}}(a53_0x4fad,0x4c6eb));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a53_0x4fad(){var _0x428e05=['8EAnIPh','1308NKzfwO','2022120fZXkVg','67PHHpnj','3025812fkTJJt','181030fCuUBA','1310efTMTP','1438362YcwfDu','22Zzwtwk','239165yuPsDm','2653cGokbQ','27wLIUhl'];a53_0x4fad=function(){return _0x428e05;};return a53_0x4fad();}import{buildAllFlags as a53_0x41c15e}from'@lovrabet/cli-framework';function a53_0x4da7(_0x8ebe38,_0x33373b){_0x8ebe38=_0x8ebe38-0x137;var _0x4fad85=a53_0x4fad();var _0x4da74d=_0x4fad85[_0x8ebe38];return _0x4da74d;}export function buildAllFlags(_0x8a745e){return a53_0x41c15e(_0x8a745e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a54_0xfb67(_0x41289b,_0x484bec){_0x41289b=_0x41289b-0x118;const _0x2e5cea=a54_0x2e5c();let _0xfb67b4=_0x2e5cea[_0x41289b];return _0xfb67b4;}(function(_0x42ee7a,_0x49844a){const _0x210ee1=a54_0xfb67,_0x16e441=_0x42ee7a();while(!![]){try{const _0x13de90=parseInt(_0x210ee1(0x11d))/0x1*(parseInt(_0x210ee1(0x11f))/0x2)+parseInt(_0x210ee1(0x11e))/0x3*(-parseInt(_0x210ee1(0x121))/0x4)+parseInt(_0x210ee1(0x11a))/0x5*(parseInt(_0x210ee1(0x11c))/0x6)+parseInt(_0x210ee1(0x11b))/0x7*(-parseInt(_0x210ee1(0x125))/0x8)+-parseInt(_0x210ee1(0x118))/0x9*(-parseInt(_0x210ee1(0x120))/0xa)+-parseInt(_0x210ee1(0x124))/0xb+-parseInt(_0x210ee1(0x119))/0xc;if(_0x13de90===_0x49844a)break;else _0x16e441['push'](_0x16e441['shift']());}catch(_0x2b5f3f){_0x16e441['push'](_0x16e441['shift']());}}}(a54_0x2e5c,0x86ed4));export function dryRun(_0x3a894a,_0x507f82){const _0x389ec1={'method':_0x3a894a,'url':_0x507f82},_0x204d1c={'body'(_0x1ab506){const _0x3b6d33=a54_0xfb67;return _0x389ec1[_0x3b6d33(0x122)]=_0x1ab506,_0x204d1c;},'description'(_0x2f7b9b){const _0x76468c=a54_0xfb67;return _0x389ec1[_0x76468c(0x123)]=_0x2f7b9b,_0x204d1c;},'build'(){return{..._0x389ec1};}};return _0x204d1c;}function a54_0x2e5c(){const _0x7d0a6=['911980TVwxob','673386TFxLgE','30NwpPcM','233PLVVdj','966VpfRLM','126UDViWw','170bITyBj','2636uaFpEn','body','description','7882314FtSUly','16xEtWKC','516249CtRrgv','2735616Thygsw'];a54_0x2e5c=function(){return _0x7d0a6;};return a54_0x2e5c();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x40a386=a55_0x2519;function a55_0x2519(_0x377817,_0x34c618){_0x377817=_0x377817-0x68;const _0x537590=a55_0x5375();let _0x251980=_0x537590[_0x377817];return _0x251980;}function a55_0x5375(){const _0xb5b802=['125380AyyStK','2764958Iilrnb','2715BYISsf','validateFlags','parseFlags','130874PrvUrY','276zlphCg','11stxUEe','13rHBLhn','3892cQPmIY','8HxTZJl','3926184qKJlBU','5322294sJQyUG','1119XCaSJZ'];a55_0x5375=function(){return _0xb5b802;};return a55_0x5375();}(function(_0x3d2e05,_0x5a420a){const _0x48dc72=a55_0x2519,_0xb5302d=_0x3d2e05();while(!![]){try{const _0x3430c4=-parseInt(_0x48dc72(0x69))/0x1*(-parseInt(_0x48dc72(0x74))/0x2)+-parseInt(_0x48dc72(0x6e))/0x3*(-parseInt(_0x48dc72(0x6a))/0x4)+parseInt(_0x48dc72(0x71))/0x5*(parseInt(_0x48dc72(0x75))/0x6)+-parseInt(_0x48dc72(0x70))/0x7*(-parseInt(_0x48dc72(0x6b))/0x8)+-parseInt(_0x48dc72(0x6d))/0x9+-parseInt(_0x48dc72(0x6f))/0xa+parseInt(_0x48dc72(0x68))/0xb*(-parseInt(_0x48dc72(0x6c))/0xc);if(_0x3430c4===_0x5a420a)break;else _0xb5302d['push'](_0xb5302d['shift']());}catch(_0x54e62e){_0xb5302d['push'](_0xb5302d['shift']());}}}(a55_0x5375,0xab820));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a55_0x40a386(0x73)];export const validateFlags=helpers[a55_0x40a386(0x72)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a56_0x5bdfbf=a56_0x4247;(function(_0x26b070,_0x4bfa1a){const _0x4d516f=a56_0x4247,_0x4db2d8=_0x26b070();while(!![]){try{const _0x23fde6=parseInt(_0x4d516f(0x77))/0x1+-parseInt(_0x4d516f(0x6d))/0x2*(-parseInt(_0x4d516f(0x6b))/0x3)+-parseInt(_0x4d516f(0x76))/0x4+-parseInt(_0x4d516f(0x71))/0x5*(-parseInt(_0x4d516f(0x73))/0x6)+parseInt(_0x4d516f(0x75))/0x7+-parseInt(_0x4d516f(0x6c))/0x8*(-parseInt(_0x4d516f(0x74))/0x9)+-parseInt(_0x4d516f(0x78))/0xa;if(_0x23fde6===_0x4bfa1a)break;else _0x4db2d8['push'](_0x4db2d8['shift']());}catch(_0x33eda0){_0x4db2d8['push'](_0x4db2d8['shift']());}}}(a56_0x3908,0xb24b9));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a56_0x4247(_0x52b335,_0x228a6b){_0x52b335=_0x52b335-0x6b;const _0x390823=a56_0x3908();let _0x42478f=_0x390823[_0x52b335];return _0x42478f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x104655=>serviceGroups[a56_0x5bdfbf(0x70)](_0x104655),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[a56_0x5bdfbf(0x6e)]+'\x20or\x20--appcode).'});export function generateCommandHelp(_0x4e5ffd){const _0x18cb90=a56_0x5bdfbf;return generators[_0x18cb90(0x6f)](_0x4e5ffd);}function a56_0x3908(){const _0x391daf=['15522010YkoDXL','49659GYFizs','2618848qlpwFd','84LioxJf','newConfigFileName','generateCommandHelp','get','10FLbswD','generateServiceHelp','1385286GEKSGi','27QQxasm','7550445GohOEB','5102136CCBUMq','340341Ahqcgm'];a56_0x3908=function(){return _0x391daf;};return a56_0x3908();}export const generateServiceHelp=generators[a56_0x5bdfbf(0x72)];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a3924,_0x2f02c8){var _0x441cfd=a57_0x465e,_0xf1149e=_0x1a3924();while(!![]){try{var _0x29f52b=parseInt(_0x441cfd(0x8f))/0x1*(parseInt(_0x441cfd(0x93))/0x2)+parseInt(_0x441cfd(0x92))/0x3*(-parseInt(_0x441cfd(0x8e))/0x4)+parseInt(_0x441cfd(0x94))/0x5+parseInt(_0x441cfd(0x8c))/0x6*(-parseInt(_0x441cfd(0x90))/0x7)+parseInt(_0x441cfd(0x8d))/0x8*(-parseInt(_0x441cfd(0x95))/0x9)+-parseInt(_0x441cfd(0x91))/0xa+parseInt(_0x441cfd(0x8b))/0xb;if(_0x29f52b===_0x2f02c8)break;else _0xf1149e['push'](_0xf1149e['shift']());}catch(_0x4c73d7){_0xf1149e['push'](_0xf1149e['shift']());}}}(a57_0x2d61,0xd4021));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a57_0x2d61(){var _0x449c8e=['16227156hSMlkS','82206EuUZWb','5472872gFQKlT','12236wjwtvQ','1rhMWFf','371WjbaZF','2760320bHNeWt','525arEAYH','1566226Isvwdi','7579020BrbUkr','18xdQmyl'];a57_0x2d61=function(){return _0x449c8e;};return a57_0x2d61();}function a57_0x465e(_0x4aee8c,_0x313d94){_0x4aee8c=_0x4aee8c-0x8b;var _0x2d619b=a57_0x2d61();var _0x465e49=_0x2d619b[_0x4aee8c];return _0x465e49;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41f62c,_0xe6ba8a){const _0x118342=a58_0x1c48,_0x2bc174=_0x41f62c();while(!![]){try{const _0x248708=parseInt(_0x118342(0x87))/0x1*(parseInt(_0x118342(0x90))/0x2)+-parseInt(_0x118342(0x91))/0x3+-parseInt(_0x118342(0x8a))/0x4+parseInt(_0x118342(0x8d))/0x5+-parseInt(_0x118342(0x93))/0x6+-parseInt(_0x118342(0x89))/0x7+parseInt(_0x118342(0x86))/0x8*(parseInt(_0x118342(0x85))/0x9);if(_0x248708===_0xe6ba8a)break;else _0x2bc174['push'](_0x2bc174['shift']());}catch(_0x1a6a8d){_0x2bc174['push'](_0x2bc174['shift']());}}}(a58_0x4158,0xc67d5));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a58_0x4158(){const _0x47b94f=['110448XQTGsM','format','message','4214110xIACMF','pretty','url','4wAYDjM','2028156Otzghr','_notice','8013204uxVfSb','error','53127knGXEm','928VkbIFy','744874VXwJaZ','update','1155749ElkjIn'];a58_0x4158=function(){return _0x47b94f;};return a58_0x4158();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a58_0x1c48(_0x5b801e,_0x20bd88){_0x5b801e=_0x5b801e-0x84;const _0x415828=a58_0x4158();let _0x1c4873=_0x415828[_0x5b801e];return _0x1c4873;}export function formatOutput(_0x1cc344,_0x369020){const _0xf257bb=a58_0x1c48,_0x1fe5b2=_0x1cc344[_0xf257bb(0x92)],{_notice:_0x5449ce,..._0x3f1c55}=_0x1cc344;void _0x5449ce,baseFormatOutput(_0x3f1c55,_0x369020),_0x369020[_0xf257bb(0x8b)]===_0xf257bb(0x8e)&&printPrettyNotice(_0x1fe5b2);}function printPrettyNotice(_0x2bd221){const _0x444f89=a58_0x1c48;if(!_0x2bd221?.[_0x444f89(0x88)])return;console[_0x444f89(0x84)](_0x2bd221['update'][_0x444f89(0x8c)]+'\x20('+_0x2bd221[_0x444f89(0x88)][_0x444f89(0x8f)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c2025,_0x5bb48d){const _0x31da56=a59_0x4792,_0x54bd46=_0x5c2025();while(!![]){try{const _0x35661d=-parseInt(_0x31da56(0x162))/0x1+parseInt(_0x31da56(0x15f))/0x2+parseInt(_0x31da56(0x14a))/0x3*(-parseInt(_0x31da56(0x164))/0x4)+parseInt(_0x31da56(0x15b))/0x5+parseInt(_0x31da56(0x169))/0x6+parseInt(_0x31da56(0x15d))/0x7*(-parseInt(_0x31da56(0x158))/0x8)+parseInt(_0x31da56(0x14b))/0x9;if(_0x35661d===_0x5bb48d)break;else _0x54bd46['push'](_0x54bd46['shift']());}catch(_0x4700ce){_0x54bd46['push'](_0x54bd46['shift']());}}}(a59_0x10b5,0x892e4));function toKebab(_0x1a3820){const _0xf38d2e=a59_0x4792;return _0x1a3820[_0xf38d2e(0x155)](/_/g,'-')[_0xf38d2e(0x155)](/-([A-Z]+)/g,(_0x26de96,_0x49392a)=>'-'+_0x49392a['toLowerCase']())['replace'](/([a-z0-9])([A-Z])/g,(_0x2bef18,_0x153288,_0x3d0944)=>_0x153288+'-'+_0x3d0944)[_0xf38d2e(0x153)]();}function buildKnownFlags(_0x249f2f){const _0x31f642=a59_0x4792,_0x51a007=new Set();for(const _0x2434da of _0x249f2f){_0x51a007[_0x31f642(0x156)](_0x2434da[_0x31f642(0x167)]),_0x51a007[_0x31f642(0x156)](toCamelCase(_0x2434da[_0x31f642(0x167)]));}for(const _0x218143 of[_0x31f642(0x160),_0x31f642(0x148),_0x31f642(0x165),_0x31f642(0x159)]){_0x51a007[_0x31f642(0x156)](_0x218143);}for(const _0x162634 of['help','env',_0x31f642(0x154),_0x31f642(0x149),'nonInteractive','non-interactive','ci',_0x31f642(0x14d),'version']){_0x51a007[_0x31f642(0x156)](_0x162634);}return _0x51a007;}function a59_0x10b5(){const _0x3bb492=['original','16oWgXeF','yes','toUpperCase','name','corrected','744372BUjCEP','get','dryRun','app','630822woqDsp','6336279OlcgVs','type','global','number','string','length','slice','indexOf','toLowerCase','appcode','replace','add','sticky','17840hYVOcs','format','entries','3497025CcFYMo','alias','427yqkrze','has','300856DxTEsM','dry-run','set','138908ytDSyN'];a59_0x10b5=function(){return _0x3bb492;};return a59_0x10b5();}function buildFlagTypeMap(_0x182955){const _0x1287ff=a59_0x4792,_0x17446d=new Map();for(const _0x2a42f3 of _0x182955){_0x17446d['set'](_0x2a42f3['name'],_0x2a42f3[_0x1287ff(0x14c)]),_0x17446d[_0x1287ff(0x161)](toCamelCase(_0x2a42f3[_0x1287ff(0x167)]),_0x2a42f3[_0x1287ff(0x14c)]);}return _0x17446d;}function a59_0x4792(_0xc83168,_0x1d02f0){_0xc83168=_0xc83168-0x147;const _0x10b552=a59_0x10b5();let _0x479275=_0x10b552[_0xc83168];return _0x479275;}function toCamelCase(_0x7605da){const _0x3023c7=a59_0x4792;return _0x7605da['replace'](/-([a-z])/g,(_0x13a5dc,_0x4bc8ef)=>_0x4bc8ef[_0x3023c7(0x166)]());}function aliasHandler(_0x2eabe8,_0x3dfa4c){const _0x195c92=a59_0x4792,_0x5c4ec0=[];for(const _0x9302e5 of Object['keys'](_0x2eabe8)){if(_0x3dfa4c[_0x195c92(0x15e)](_0x9302e5))continue;const _0x3c1333=toKebab(_0x9302e5);_0x3c1333!==_0x9302e5&&_0x3dfa4c[_0x195c92(0x15e)](_0x3c1333)&&_0x5c4ec0['push']({'original':_0x9302e5,'corrected':_0x3c1333,'handler':_0x195c92(0x15c)});}return _0x5c4ec0;}function stickyHandler(_0x390359,_0x1b8c36,_0x4d1791){const _0x4d5161=a59_0x4792,_0x78093b=[];for(const [_0x4324f1,_0x518611]of Object[_0x4d5161(0x15a)](_0x390359)){if(_0x518611!==!![])continue;for(let _0x21c8e6=_0x4324f1[_0x4d5161(0x150)]-0x1;_0x21c8e6>0x0;_0x21c8e6--){const _0x35eca9=_0x4324f1[_0x4d5161(0x151)](0x0,_0x21c8e6),_0x53e45f=_0x4324f1[_0x4d5161(0x151)](_0x21c8e6),_0x42e18d=toKebab(_0x35eca9),_0x201b64=toCamelCase(_0x35eca9),_0x15ec59=_0x1b8c36['has'](_0x35eca9)?_0x35eca9:_0x1b8c36[_0x4d5161(0x15e)](_0x42e18d)?_0x42e18d:_0x1b8c36[_0x4d5161(0x15e)](_0x201b64)?_0x201b64:null;if(!_0x15ec59)continue;const _0x3f2635=_0x4d1791['get'](_0x15ec59)??_0x4d5161(0x14f);let _0x16c89b;if(_0x3f2635===_0x4d5161(0x14e)){const _0x2da72b=Number(_0x53e45f);if(isNaN(_0x2da72b)||_0x53e45f==='')continue;_0x16c89b=_0x2da72b;}else{if(_0x3f2635==='boolean')continue;else{if(_0x53e45f==='')continue;_0x16c89b=_0x53e45f;}}_0x78093b['push']({'original':_0x4324f1,'corrected':_0x15ec59+'='+_0x16c89b,'handler':_0x4d5161(0x157)});break;}}return _0x78093b;}export function correctFlags(_0xbf3910,_0x355a29){const _0x4969c5=a59_0x4792,_0x26841c=buildKnownFlags(_0x355a29),_0xb8f1db=buildFlagTypeMap(_0x355a29),_0x5b1d16=aliasHandler(_0xbf3910,_0x26841c),_0x5515ac=stickyHandler(_0xbf3910,_0x26841c,_0xb8f1db),_0x4422cd=[..._0x5b1d16,..._0x5515ac];if(_0x4422cd[_0x4969c5(0x150)]===0x0)return{'flags':_0xbf3910,'corrections':[]};const _0x38b632={..._0xbf3910},_0x12e1cb=new Set();for(const _0x3e33a6 of _0x5b1d16){_0x38b632[_0x3e33a6[_0x4969c5(0x168)]]=_0xbf3910[_0x3e33a6[_0x4969c5(0x163)]],_0x12e1cb[_0x4969c5(0x156)](_0x3e33a6[_0x4969c5(0x163)]);}for(const _0x16eaf0 of _0x5515ac){const _0x52f3ba=_0x16eaf0[_0x4969c5(0x168)][_0x4969c5(0x152)]('='),_0x340388=_0x16eaf0[_0x4969c5(0x168)][_0x4969c5(0x151)](0x0,_0x52f3ba),_0x227bfd=_0x16eaf0[_0x4969c5(0x168)]['slice'](_0x52f3ba+0x1),_0xfa51bb=_0xb8f1db[_0x4969c5(0x147)](_0x340388)??'string';_0xfa51bb===_0x4969c5(0x14e)?_0x38b632[_0x340388]=Number(_0x227bfd):_0x38b632[_0x340388]=_0x227bfd,_0x12e1cb[_0x4969c5(0x156)](_0x16eaf0[_0x4969c5(0x163)]);}for(const _0x4e1e57 of _0x12e1cb){delete _0x38b632[_0x4e1e57];}return{'flags':_0x38b632,'corrections':_0x4422cd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a60_0x9820(_0x865a13,_0x3e2a5f){_0x865a13=_0x865a13-0xe0;var _0x1f063d=a60_0x1f06();var _0x98200a=_0x1f063d[_0x865a13];return _0x98200a;}(function(_0x3037e4,_0x1c5677){var _0x2b9575=a60_0x9820,_0x1b16ae=_0x3037e4();while(!![]){try{var _0x89c9e=-parseInt(_0x2b9575(0xe4))/0x1+-parseInt(_0x2b9575(0xe3))/0x2+-parseInt(_0x2b9575(0xe6))/0x3+-parseInt(_0x2b9575(0xe8))/0x4+parseInt(_0x2b9575(0xe5))/0x5*(-parseInt(_0x2b9575(0xe1))/0x6)+-parseInt(_0x2b9575(0xe2))/0x7+-parseInt(_0x2b9575(0xe7))/0x8*(-parseInt(_0x2b9575(0xe0))/0x9);if(_0x89c9e===_0x1c5677)break;else _0x1b16ae['push'](_0x1b16ae['shift']());}catch(_0x33a7b2){_0x1b16ae['push'](_0x1b16ae['shift']());}}}(a60_0x1f06,0x5c5e8));function a60_0x1f06(){var _0x59c4df=['33442JBTJzP','557833JTrChz','28725Hmgfaj','2229651YAGAZs','1816wBvUuW','518652QEkaYx','102177rVeVYP','438IjJOXi','2323776BmESwo'];a60_0x1f06=function(){return _0x59c4df;};return a60_0x1f06();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|