@lovrabet/lovrabet-cli 2.0.14-beta.7 → 2.0.14-beta.8
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/eligibility.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/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.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/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.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 +2 -2
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const a0_0x1f53ad=a0_0x1d31;(function(_0x54d57d,_0x1140cc){const _0x11bfa4=a0_0x1d31,_0x348d00=_0x54d57d();while(!![]){try{const _0x4033ac=parseInt(_0x11bfa4(0x147))/0x1+parseInt(_0x11bfa4(0x148))/0x2*(parseInt(_0x11bfa4(0x14b))/0x3)+-parseInt(_0x11bfa4(0x13b))/0x4+parseInt(_0x11bfa4(0x131))/0x5*(-parseInt(_0x11bfa4(0x136))/0x6)+parseInt(_0x11bfa4(0x132))/0x7+parseInt(_0x11bfa4(0x144))/0x8+parseInt(_0x11bfa4(0x13e))/0x9*(parseInt(_0x11bfa4(0x13d))/0xa);if(_0x4033ac===_0x1140cc)break;else _0x348d00['push'](_0x348d00['shift']());}catch(_0x470e8d){_0x348d00['push'](_0x348d00['shift']());}}}(a0_0x3ab9,0x6716a));import{jsx as a0_0x335443}from'react/jsx-runtime';import a0_0x19f33b from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a0_0x1d31(_0x2934e2,_0x7d8af7){_0x2934e2=_0x2934e2-0x12e;const _0x3ab9f7=a0_0x3ab9();let _0x1d310b=_0x3ab9f7[_0x2934e2];return _0x1d310b;}import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x19f33b(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x1f53ad(0x14a)](handleError);async function main(){try{await run();}catch(_0x231b39){handleError(_0x231b39);}}async function run(){const _0x3d0ffe=a0_0x1f53ad;let _0x5dde5f=cli[_0x3d0ffe(0x152)][0x0],_0x14af77=cli[_0x3d0ffe(0x152)][0x1];const _0x359566=cli['flags'];try{const {correctFlags:_0x3d3945}=await import(_0x3d0ffe(0x149)),_0x212763=getAllDefinitions()[_0x3d0ffe(0x130)](_0x96c9bb=>_0x96c9bb['flags']??[]),{flags:_0x6a9815,corrections:_0x23b0b9}=_0x3d3945(_0x359566,_0x212763);if(_0x23b0b9[_0x3d0ffe(0x156)]>0x0){for(const _0x5247ce of _0x23b0b9){process[_0x3d0ffe(0x143)]['write'](_0x3d0ffe(0x153)+_0x5247ce['handler']+_0x3d0ffe(0x140)+_0x5247ce[_0x3d0ffe(0x151)]+_0x3d0ffe(0x13c)+_0x5247ce[_0x3d0ffe(0x13a)]+'\x0a');}Object[_0x3d0ffe(0x134)](_0x359566,_0x6a9815);}}catch{}if(!_0x5dde5f){const {waitUntilExit:_0x42ef7c}=render(a0_0x335443(Help,{}));await _0x42ef7c();return;}if(!isKnownService(_0x5dde5f)){const _0x4b1819=resolveDynamicServiceCommand(cli[_0x3d0ffe(0x152)],_0x359566);if(_0x4b1819){if(_0x359566[_0x3d0ffe(0x13f)]){console[_0x3d0ffe(0x137)](generateCommandHelp(_0x4b1819['definition']));return;}Object[_0x3d0ffe(0x134)](_0x359566,_0x4b1819['flags']);const _0x356d09=buildConfigFromFlags(_0x359566);await initGlobalEnvironment(_0x356d09);const _0x43a737=createPipelineEnv(_0x356d09,_0x359566);_0x43a737[_0x3d0ffe(0x12e)]=_0x4b1819[_0x3d0ffe(0x12e)],await runCommand(_0x4b1819['definition'],_0x43a737);return;}if(_0x359566[_0x3d0ffe(0x13f)]){const _0x30339c=generateDynamicServiceHelp(_0x5dde5f);if(_0x30339c){console[_0x3d0ffe(0x137)](_0x30339c);return;}}const {waitUntilExit:_0x1668e3}=render(a0_0x335443(Help,{}));await _0x1668e3();return;}const _0x97de1f=getServiceEntry(_0x5dde5f);if(!_0x14af77){if(_0x359566[_0x3d0ffe(0x13f)]){console['log'](generateServiceHelp(_0x5dde5f));return;}if(_0x97de1f['defaultCommand'])_0x14af77=_0x97de1f[_0x3d0ffe(0x141)];else{console[_0x3d0ffe(0x137)](generateServiceHelp(_0x5dde5f));return;}}const _0x2bd2ef=findDefinition(_0x5dde5f,_0x14af77);!_0x2bd2ef&&(console[_0x3d0ffe(0x137)](generateServiceHelp(_0x5dde5f)),handleError(CliErrors[_0x3d0ffe(0x142)](_0x5dde5f+'\x20'+_0x14af77)));if(_0x359566['help']){console[_0x3d0ffe(0x137)](generateCommandHelp(_0x2bd2ef));return;}const _0xfc94b9=buildConfigFromFlags(_0x359566);await initGlobalEnvironment(_0xfc94b9);const _0x5ee01c=createPipelineEnv(_0xfc94b9,_0x359566);_0x5ee01c[_0x3d0ffe(0x12e)]=cli[_0x3d0ffe(0x152)][_0x3d0ffe(0x155)](0x2),await runCommand(_0x2bd2ef,_0x5ee01c);}function a0_0x3ab9(){const _0x4563e7=['stderr','2448544vqvdWy','exit','ERR_STREAM_DESTROYED','251177YMiIlz','2gFSRez','./framework/preparse.js','catch','128106TOhAmN','exitCode','error','cancelled','write','message','original','input','[preparse]\x20','ERR_USE_AFTER_CLOSE','slice','length','args','hint','flatMap','111665BKPdAv','1120420FfbXVD','code','assign','\x0aCancelled.\x0a','168ZxHPjS','log','Error:\x20','name','corrected','2556972GnaojS','\x20->\x20--','1853620JtXrJF','45wRjCDv','help',':\x20--','defaultCommand','unknownCommand'];a0_0x3ab9=function(){return _0x4563e7;};return a0_0x3ab9();}function handleError(_0xb19ca7){const _0x4e7ab7=a0_0x1f53ad;if(_0xb19ca7 instanceof CliError){_0xb19ca7[_0x4e7ab7(0x133)]===_0x4e7ab7(0x14e)&&(process['stderr'][_0x4e7ab7(0x14f)](_0x4e7ab7(0x135)),process[_0x4e7ab7(0x145)](0x0));console[_0x4e7ab7(0x14d)](_0x4e7ab7(0x138)+_0xb19ca7[_0x4e7ab7(0x150)]);if(_0xb19ca7['hint'])console[_0x4e7ab7(0x14d)]('Hint:\x20'+_0xb19ca7[_0x4e7ab7(0x12f)]);process[_0x4e7ab7(0x145)](_0xb19ca7[_0x4e7ab7(0x14c)]);}isUserCancellation(_0xb19ca7)&&(process[_0x4e7ab7(0x143)][_0x4e7ab7(0x14f)](_0x4e7ab7(0x135)),process[_0x4e7ab7(0x145)](0x0)),console['error']('Unexpected\x20error:',_0xb19ca7),process[_0x4e7ab7(0x145)](0x1);}function isUserCancellation(_0x59c5f6){const _0xa9803c=a0_0x1f53ad;if(!(_0x59c5f6 instanceof Error))return![];if(_0x59c5f6[_0xa9803c(0x139)]==='ExitPromptError')return!![];if(_0x59c5f6[_0xa9803c(0x133)]===_0xa9803c(0x154))return!![];if(_0x59c5f6[_0xa9803c(0x133)]===_0xa9803c(0x146))return!![];return![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a1_0x368d(_0xe99b16,_0x188e41){_0xe99b16=_0xe99b16-0x145;const _0x1d73c9=a1_0x1d73();let _0x368ddc=_0x1d73c9[_0xe99b16];return _0x368ddc;}const a1_0x2ddcf8=a1_0x368d;(function(_0xfdaf6b,_0x37fcaa){const _0x3b7f3b=a1_0x368d,_0x48267b=_0xfdaf6b();while(!![]){try{const _0x30b372=-parseInt(_0x3b7f3b(0x1ba))/0x1*(-parseInt(_0x3b7f3b(0x1ab))/0x2)+parseInt(_0x3b7f3b(0x193))/0x3*(-parseInt(_0x3b7f3b(0x177))/0x4)+-parseInt(_0x3b7f3b(0x1b1))/0x5+parseInt(_0x3b7f3b(0x18b))/0x6+parseInt(_0x3b7f3b(0x1ad))/0x7+-parseInt(_0x3b7f3b(0x150))/0x8*(-parseInt(_0x3b7f3b(0x197))/0x9)+-parseInt(_0x3b7f3b(0x1b0))/0xa*(parseInt(_0x3b7f3b(0x189))/0xb);if(_0x30b372===_0x37fcaa)break;else _0x48267b['push'](_0x48267b['shift']());}catch(_0x343b85){_0x48267b['push'](_0x48267b['shift']());}}}(a1_0x1d73,0xeab66));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x2ddcf8(0x14a),'type':'string','description':a1_0x2ddcf8(0x1b8)},KEYWORD_FLAG={'name':a1_0x2ddcf8(0x1b7),'type':a1_0x2ddcf8(0x153),'description':a1_0x2ddcf8(0x16c)},DOC_CODE_FLAG={'name':'code','type':a1_0x2ddcf8(0x153),'required':!![],'description':a1_0x2ddcf8(0x171)},DOCS=[{'code':a1_0x2ddcf8(0x1bb),'category':a1_0x2ddcf8(0x1a3),'title':a1_0x2ddcf8(0x19a),'method':'POST','path':a1_0x2ddcf8(0x16f),'summary':a1_0x2ddcf8(0x170),'whenToUse':a1_0x2ddcf8(0x161),'pathParams':[],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x1a2),'responseHighlights':[a1_0x2ddcf8(0x166),a1_0x2ddcf8(0x15e)],'examples':[a1_0x2ddcf8(0x1a4)],'notes':[a1_0x2ddcf8(0x147)],'markdown':[a1_0x2ddcf8(0x1b2),'',a1_0x2ddcf8(0x179)][a1_0x2ddcf8(0x1a1)]('\x0a')},{'code':a1_0x2ddcf8(0x165),'category':'dataset','title':'Dataset\x20detail','method':a1_0x2ddcf8(0x187),'path':a1_0x2ddcf8(0x14c),'summary':a1_0x2ddcf8(0x18a),'whenToUse':a1_0x2ddcf8(0x160),'pathParams':[],'queryParams':[{'name':a1_0x2ddcf8(0x1b3),'description':a1_0x2ddcf8(0x184)}],'bodySchema':a1_0x2ddcf8(0x14b),'responseHighlights':[a1_0x2ddcf8(0x168),a1_0x2ddcf8(0x1a8)],'examples':[a1_0x2ddcf8(0x164)],'notes':[a1_0x2ddcf8(0x1a0)],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x2ddcf8(0x1a1)]('\x0a')},{'code':a1_0x2ddcf8(0x1b6),'category':a1_0x2ddcf8(0x1a3),'title':a1_0x2ddcf8(0x1a7),'method':a1_0x2ddcf8(0x186),'path':a1_0x2ddcf8(0x182),'summary':a1_0x2ddcf8(0x178),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x2ddcf8(0x15d),'description':a1_0x2ddcf8(0x1ae)},{'name':a1_0x2ddcf8(0x16b),'description':a1_0x2ddcf8(0x184)}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':['tableData\x20contains\x20records',a1_0x2ddcf8(0x154)],'examples':[a1_0x2ddcf8(0x19d)],'notes':[a1_0x2ddcf8(0x181)],'markdown':[a1_0x2ddcf8(0x173),'',a1_0x2ddcf8(0x183)][a1_0x2ddcf8(0x1a1)]('\x0a')},{'code':a1_0x2ddcf8(0x1a6),'category':a1_0x2ddcf8(0x1a3),'title':a1_0x2ddcf8(0x1af),'method':a1_0x2ddcf8(0x186),'path':a1_0x2ddcf8(0x185),'summary':a1_0x2ddcf8(0x162),'whenToUse':a1_0x2ddcf8(0x159),'pathParams':[{'name':a1_0x2ddcf8(0x15d),'description':a1_0x2ddcf8(0x1ae)},{'name':a1_0x2ddcf8(0x16b),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases','where\x20filters\x20before\x20aggregation'],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x2ddcf8(0x1a5)],'markdown':[a1_0x2ddcf8(0x16d),'',a1_0x2ddcf8(0x199)][a1_0x2ddcf8(0x1a1)]('\x0a')},{'code':a1_0x2ddcf8(0x14d),'category':a1_0x2ddcf8(0x1a3),'title':a1_0x2ddcf8(0x16a),'method':a1_0x2ddcf8(0x186),'path':a1_0x2ddcf8(0x16e),'summary':'查询单条数据','whenToUse':a1_0x2ddcf8(0x19e),'pathParams':[{'name':'appCode','description':a1_0x2ddcf8(0x1ae)},{'name':a1_0x2ddcf8(0x16b),'description':a1_0x2ddcf8(0x184)}],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x192),'responseHighlights':[a1_0x2ddcf8(0x176)],'examples':[a1_0x2ddcf8(0x191)],'notes':[a1_0x2ddcf8(0x17e)],'markdown':a1_0x2ddcf8(0x18f)},{'code':a1_0x2ddcf8(0x146),'category':a1_0x2ddcf8(0x1a3),'title':'Create\x20dataset\x20record','method':a1_0x2ddcf8(0x186),'path':a1_0x2ddcf8(0x15b),'summary':'创建数据','whenToUse':a1_0x2ddcf8(0x14e),'pathParams':[{'name':a1_0x2ddcf8(0x15d),'description':a1_0x2ddcf8(0x1ae)},{'name':a1_0x2ddcf8(0x16b),'description':a1_0x2ddcf8(0x184)}],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x1ac),'responseHighlights':[a1_0x2ddcf8(0x156)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x2ddcf8(0x18e)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x2ddcf8(0x1bc),'category':'bf','title':a1_0x2ddcf8(0x198),'method':'GET','path':'/api/endpoint/{appCode}/functions','summary':a1_0x2ddcf8(0x14f),'whenToUse':a1_0x2ddcf8(0x17b),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x14b),'responseHighlights':[a1_0x2ddcf8(0x1b4)],'examples':[a1_0x2ddcf8(0x151)],'notes':[a1_0x2ddcf8(0x175)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':a1_0x2ddcf8(0x1a9),'category':'bf','title':a1_0x2ddcf8(0x149),'method':a1_0x2ddcf8(0x186),'path':'/api/endpoint/{appCode}/{scriptName}','summary':a1_0x2ddcf8(0x163),'whenToUse':a1_0x2ddcf8(0x145),'pathParams':[{'name':a1_0x2ddcf8(0x15d),'description':'Current\x20app\x20code'},{'name':a1_0x2ddcf8(0x195),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x167),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x2ddcf8(0x158)],'notes':[a1_0x2ddcf8(0x17c)],'markdown':a1_0x2ddcf8(0x1aa)},{'code':a1_0x2ddcf8(0x190),'category':a1_0x2ddcf8(0x19c),'title':a1_0x2ddcf8(0x174),'method':'POST','path':a1_0x2ddcf8(0x157),'summary':a1_0x2ddcf8(0x18d),'whenToUse':a1_0x2ddcf8(0x17a),'pathParams':[],'queryParams':[],'bodySchema':a1_0x2ddcf8(0x172),'responseHighlights':[a1_0x2ddcf8(0x18c)],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':[a1_0x2ddcf8(0x169)],'markdown':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function entrySummary(_0x54d406){const _0x1d8a5c=a1_0x2ddcf8;return{'code':_0x54d406[_0x1d8a5c(0x1b3)],'category':_0x54d406[_0x1d8a5c(0x14a)],'method':_0x54d406[_0x1d8a5c(0x155)],'path':_0x54d406[_0x1d8a5c(0x188)],'summary':_0x54d406[_0x1d8a5c(0x194)],'whenToUse':_0x54d406[_0x1d8a5c(0x196)]};}export function listApiDocEntries(_0x15b6cf={}){const _0x4f5c66=a1_0x2ddcf8,_0x30d294=String(_0x15b6cf[_0x4f5c66(0x14a)]||'')['trim'](),_0x12f2a2=String(_0x15b6cf[_0x4f5c66(0x1b7)]||'')[_0x4f5c66(0x19b)]()[_0x4f5c66(0x15a)]();return DOCS[_0x4f5c66(0x17d)](_0x1c212e=>{const _0xb53d0d=_0x4f5c66;if(_0x30d294&&_0x1c212e[_0xb53d0d(0x14a)]!==_0x30d294)return![];if(!_0x12f2a2)return!![];return[_0x1c212e[_0xb53d0d(0x1b3)],_0x1c212e[_0xb53d0d(0x14a)],_0x1c212e['method'],_0x1c212e[_0xb53d0d(0x188)],_0x1c212e['summary'],_0x1c212e['whenToUse'],_0x1c212e['title']][_0xb53d0d(0x1a1)]('\x20')['toLowerCase']()[_0xb53d0d(0x1b9)](_0x12f2a2);})[_0x4f5c66(0x152)](entrySummary);}function a1_0x1d73(){const _0x4e846c=['paging.totalCount\x20gives\x20total\x20rows','find','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','聚合查询数据集数据','执行指定\x20BF\x20函数','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','dataset_detail','tableData\x20contains\x20dataset\x20id/code/name','{\x22param\x22:\x22value\x22}','fields/properties\x20describe\x20data\x20shape','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Get\x20one\x20dataset\x20record','datasetCode','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','##\x20Aggregate\x20dataset\x20data','/api/{appCode}/{datasetCode}/getOne','/api/dataset/get-dataset-list-by-app-code','分页获取数据集列表','API\x20doc\x20code,\x20for\x20example\x20dataset_list','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','##\x20Filter\x20dataset\x20data','Execute\x20custom\x20SQL','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','Returns\x20one\x20matching\x20business\x20record','4pTXZko','条件过滤查询数据','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','filter','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','length','detail','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','/api/{appCode}/{datasetCode}/filter','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','32-character\x20dataset\x20code','/api/{appCode}/{datasetCode}/aggregate','POST','GET','path','44836DKqtjN','获取数据集详情','1792446iOYkzG','Returns\x20SQL\x20execution\x20payload','执行自定义\x20SQL','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','custom_sql_execute','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','{\x22id\x22:123}','1926897aWrRVp','summary','scriptName','whenToUse','9bQIWli','List\x20BF\x20endpoint\x20functions','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','List\x20datasets','trim','custom_sql','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','str','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','join','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','dataset','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','dataset_data_aggregate','Filter\x20dataset\x20data','operations\x20describes\x20runtime\x20APIs','bf_execute','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','38LJHLXh','{\x22fieldName\x22:\x22value\x22}','7826343KJLBZL','Current\x20app\x20code','Aggregate\x20dataset\x20data','3820GRXYcS','159980PkGTMM','##\x20List\x20datasets','code','Returns\x20endpoint\x20functionName/id/description','read','dataset_data_filter','keyword','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','includes','71789AXhnVk','dataset_list','bf_function_list','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','dataset_data_create','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','api-doc','Execute\x20BF\x20endpoint\x20function','category','None','/api/dataset/getOneByCode?code={datasetCode}','dataset_data_get_one','需要向指定数据集新增一条业务数据时使用','获取应用下可调用的\x20BF\x20函数列表','3295424QpbrwN','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','map','string','paging\x20contains\x20pagination','method','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','/api/custom/executeSql','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','toLowerCase','/api/{appCode}/{datasetCode}/create','List\x20available\x20runtime\x20API\x20documentation\x20entries','appCode'];a1_0x1d73=function(){return _0x4e846c;};return a1_0x1d73();}export function getApiDocDetail(_0x218de1){const _0x31cde2=a1_0x2ddcf8,_0x12d79b=DOCS[_0x31cde2(0x15f)](_0x5e8f30=>_0x5e8f30['code']===_0x218de1);if(!_0x12d79b)throw CliErrors['validation']('API\x20doc\x20code\x20not\x20found:\x20'+_0x218de1);return{..._0x12d79b};}const apiDocList={'service':a1_0x2ddcf8(0x148),'command':'list','description':a1_0x2ddcf8(0x15c),'risk':a1_0x2ddcf8(0x1b5),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x3293d9){const _0x2d9939=a1_0x2ddcf8,_0x3ed8dc=listApiDocEntries({'category':_0x3293d9[_0x2d9939(0x19f)](_0x2d9939(0x14a)),'keyword':_0x3293d9['str'](_0x2d9939(0x1b7))});return{'ok':!![],'data':{'total':_0x3ed8dc[_0x2d9939(0x17f)],'items':_0x3ed8dc}};}},apiDocDetail={'service':a1_0x2ddcf8(0x148),'command':a1_0x2ddcf8(0x180),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0x2ddcf8(0x1b5),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x3665f4){const _0x3404ce=a1_0x2ddcf8;return{'ok':!![],'data':getApiDocDetail(_0x3665f4['str'](_0x3404ce(0x1b3)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
|
|
1
|
+
const a1_0x50a375=a1_0x1458;(function(_0x18ae12,_0x3142f5){const _0x1d4a2f=a1_0x1458,_0x288b33=_0x18ae12();while(!![]){try{const _0x2d2082=parseInt(_0x1d4a2f(0x19e))/0x1*(-parseInt(_0x1d4a2f(0x19a))/0x2)+parseInt(_0x1d4a2f(0x179))/0x3*(parseInt(_0x1d4a2f(0x1a3))/0x4)+-parseInt(_0x1d4a2f(0x1ad))/0x5*(parseInt(_0x1d4a2f(0x176))/0x6)+parseInt(_0x1d4a2f(0x17b))/0x7*(-parseInt(_0x1d4a2f(0x1bc))/0x8)+-parseInt(_0x1d4a2f(0x191))/0x9+-parseInt(_0x1d4a2f(0x1cf))/0xa+parseInt(_0x1d4a2f(0x187))/0xb;if(_0x2d2082===_0x3142f5)break;else _0x288b33['push'](_0x288b33['shift']());}catch(_0x446c0d){_0x288b33['push'](_0x288b33['shift']());}}}(a1_0x54cb,0xdeb11));import{CliErrors}from'../../errors.js';function a1_0x54cb(){const _0x4565db=['category','Returns\x20script\x20business\x20payload','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','filter','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','5DjbcJc','includes','/api/custom/executeSql','where\x20filters\x20before\x20aggregation','Current\x20app\x20code','Create\x20dataset\x20record','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','string','##\x20Aggregate\x20dataset\x20data','获取应用下可调用的\x20BF\x20函数列表','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Aggregate\x20dataset\x20data','/api/{appCode}/{datasetCode}/create','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','14304IxvWTF','None','/api/{appCode}/{datasetCode}/getOne','POST','read','Get\x20one\x20dataset\x20record','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','tableData\x20contains\x20records','条件过滤查询数据','whenToUse','dataset_data_get_one','List\x20BF\x20endpoint\x20functions','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','str','##\x20List\x20datasets','detail','result\x20rows\x20contain\x20aggregate\x20aliases','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','6824110rqIQDR','keyword','api-doc','API\x20doc\x20code,\x20for\x20example\x20dataset_list','{\x22id\x22:123}','/api/{appCode}/{datasetCode}/filter','执行自定义\x20SQL','join','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','fields/properties\x20describe\x20data\x20shape','dataset_list','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Returns\x20endpoint\x20functionName/id/description','custom_sql_execute','datasetCode','dataset','需要向指定数据集新增一条业务数据时使用','dataset_data_create','/api/endpoint/{appCode}/functions','map','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','6489804tUPiEm','list','summary','207fxFRdu','Returns\x20SQL\x20execution\x20payload','4207YnCcAE','Endpoint\x20function\x20name','appCode','operations\x20describes\x20runtime\x20APIs','查询单条数据','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','scriptName','Returns\x20one\x20matching\x20business\x20record','method','dataset_data_aggregate','/api/dataset/get-dataset-list-by-app-code','bf_function_list','57780030IDjTnY','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','trim','获取数据集详情','Dataset\x20detail','/api/endpoint/{appCode}/{scriptName}','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','##\x20Filter\x20dataset\x20data','code','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','6191226qrPPtS','聚合查询数据集数据','{\x22fieldName\x22:\x22value\x22}','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','32-character\x20dataset\x20code','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','Show\x20runtime\x20API\x20documentation\x20by\x20code','validation','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','18852AuDMCn','List\x20datasets','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','paging.totalCount\x20gives\x20total\x20rows','144MrflGR','path','length','##\x20Dataset\x20detail','GET','31496iQtVKF','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Filter\x20dataset\x20data','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'];a1_0x54cb=function(){return _0x4565db;};return a1_0x54cb();}const CATEGORY_FLAG={'name':a1_0x50a375(0x1a8),'type':'string','description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':'keyword','type':a1_0x50a375(0x1b4),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0x50a375(0x18f),'type':'string','required':!![],'description':a1_0x50a375(0x1d2)},DOCS=[{'code':a1_0x50a375(0x1d9),'category':a1_0x50a375(0x1de),'title':a1_0x50a375(0x19b),'method':a1_0x50a375(0x1bf),'path':a1_0x50a375(0x185),'summary':'分页获取数据集列表','whenToUse':a1_0x50a375(0x180),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0x50a375(0x19d)],'examples':[a1_0x50a375(0x1c2)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x50a375(0x1ca),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x50a375(0x1d6)]('\x0a')},{'code':'dataset_detail','category':a1_0x50a375(0x1de),'title':a1_0x50a375(0x18b),'method':a1_0x50a375(0x1a2),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x50a375(0x18a),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','pathParams':[],'queryParams':[{'name':a1_0x50a375(0x18f),'description':a1_0x50a375(0x195)}],'bodySchema':a1_0x50a375(0x1bd),'responseHighlights':[a1_0x50a375(0x1d8),a1_0x50a375(0x17e)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x50a375(0x196)],'markdown':[a1_0x50a375(0x1a1),'',a1_0x50a375(0x19c)]['join']('\x0a')},{'code':'dataset_data_filter','category':a1_0x50a375(0x1de),'title':a1_0x50a375(0x1a5),'method':a1_0x50a375(0x1bf),'path':a1_0x50a375(0x1d4),'summary':a1_0x50a375(0x1c4),'whenToUse':a1_0x50a375(0x188),'pathParams':[{'name':a1_0x50a375(0x17d),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x50a375(0x1c3),'paging\x20contains\x20pagination'],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x50a375(0x1ac)],'markdown':[a1_0x50a375(0x18e),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x50a375(0x1d6)]('\x0a')},{'code':a1_0x50a375(0x184),'category':'dataset','title':a1_0x50a375(0x1b8),'method':'POST','path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x50a375(0x192),'whenToUse':a1_0x50a375(0x1b7),'pathParams':[{'name':a1_0x50a375(0x17d),'description':a1_0x50a375(0x1b1)},{'name':'datasetCode','description':a1_0x50a375(0x195)}],'queryParams':[],'bodySchema':a1_0x50a375(0x1ce),'responseHighlights':[a1_0x50a375(0x1cc),a1_0x50a375(0x1b0)],'examples':[a1_0x50a375(0x1cd)],'notes':[a1_0x50a375(0x199),a1_0x50a375(0x190)],'markdown':[a1_0x50a375(0x1b5),'',a1_0x50a375(0x1c8)][a1_0x50a375(0x1d6)]('\x0a')},{'code':a1_0x50a375(0x1c6),'category':a1_0x50a375(0x1de),'title':a1_0x50a375(0x1c1),'method':a1_0x50a375(0x1bf),'path':a1_0x50a375(0x1be),'summary':a1_0x50a375(0x17f),'whenToUse':a1_0x50a375(0x18d),'pathParams':[{'name':a1_0x50a375(0x17d),'description':a1_0x50a375(0x1b1)},{'name':'datasetCode','description':a1_0x50a375(0x195)}],'queryParams':[],'bodySchema':a1_0x50a375(0x1d3),'responseHighlights':[a1_0x50a375(0x182)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x50a375(0x1da)],'markdown':a1_0x50a375(0x1a6)},{'code':a1_0x50a375(0x171),'category':a1_0x50a375(0x1de),'title':a1_0x50a375(0x1b2),'method':'POST','path':a1_0x50a375(0x1b9),'summary':'创建数据','whenToUse':a1_0x50a375(0x170),'pathParams':[{'name':'appCode','description':a1_0x50a375(0x1b1)},{'name':a1_0x50a375(0x1dd),'description':a1_0x50a375(0x195)}],'queryParams':[],'bodySchema':a1_0x50a375(0x193),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x50a375(0x194)],'markdown':a1_0x50a375(0x1ba)},{'code':a1_0x50a375(0x186),'category':'bf','title':a1_0x50a375(0x1c7),'method':a1_0x50a375(0x1a2),'path':a1_0x50a375(0x172),'summary':a1_0x50a375(0x1b6),'whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':'appCode','description':a1_0x50a375(0x1b1)}],'queryParams':[],'bodySchema':a1_0x50a375(0x1bd),'responseHighlights':[a1_0x50a375(0x1db)],'examples':[a1_0x50a375(0x1a7)],'notes':[a1_0x50a375(0x1aa)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':'bf_execute','category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x50a375(0x1bf),'path':a1_0x50a375(0x18c),'summary':'执行指定\x20BF\x20函数','whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':a1_0x50a375(0x17d),'description':a1_0x50a375(0x1b1)},{'name':a1_0x50a375(0x181),'description':a1_0x50a375(0x17c)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x50a375(0x1a9)],'examples':[a1_0x50a375(0x1b3)],'notes':[a1_0x50a375(0x174)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':a1_0x50a375(0x1dc),'category':'custom_sql','title':'Execute\x20custom\x20SQL','method':a1_0x50a375(0x1bf),'path':a1_0x50a375(0x1af),'summary':a1_0x50a375(0x1d5),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x50a375(0x1d7),'responseHighlights':[a1_0x50a375(0x17a)],'examples':[a1_0x50a375(0x1bb)],'notes':[a1_0x50a375(0x1a4)],'markdown':a1_0x50a375(0x175)}];function entrySummary(_0x49f277){const _0x29505b=a1_0x50a375;return{'code':_0x49f277['code'],'category':_0x49f277['category'],'method':_0x49f277[_0x29505b(0x183)],'path':_0x49f277[_0x29505b(0x19f)],'summary':_0x49f277[_0x29505b(0x178)],'whenToUse':_0x49f277['whenToUse']};}export function listApiDocEntries(_0x4457b1={}){const _0x3fca7a=a1_0x50a375,_0x348e32=String(_0x4457b1[_0x3fca7a(0x1a8)]||'')[_0x3fca7a(0x189)](),_0x49b40a=String(_0x4457b1[_0x3fca7a(0x1d0)]||'')[_0x3fca7a(0x189)]()['toLowerCase']();return DOCS[_0x3fca7a(0x1ab)](_0x4738fd=>{const _0x4fbe7a=_0x3fca7a;if(_0x348e32&&_0x4738fd['category']!==_0x348e32)return![];if(!_0x49b40a)return!![];return[_0x4738fd[_0x4fbe7a(0x18f)],_0x4738fd[_0x4fbe7a(0x1a8)],_0x4738fd[_0x4fbe7a(0x183)],_0x4738fd[_0x4fbe7a(0x19f)],_0x4738fd['summary'],_0x4738fd[_0x4fbe7a(0x1c5)],_0x4738fd['title']]['join']('\x20')['toLowerCase']()[_0x4fbe7a(0x1ae)](_0x49b40a);})[_0x3fca7a(0x173)](entrySummary);}function a1_0x1458(_0x4379a0,_0x2141db){_0x4379a0=_0x4379a0-0x170;const _0x54cbf1=a1_0x54cb();let _0x145889=_0x54cbf1[_0x4379a0];return _0x145889;}export function getApiDocDetail(_0x78e9c8){const _0x2f6a9d=a1_0x50a375,_0x22ebba=DOCS['find'](_0x436400=>_0x436400['code']===_0x78e9c8);if(!_0x22ebba)throw CliErrors[_0x2f6a9d(0x198)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x78e9c8);return{..._0x22ebba};}const apiDocList={'service':'api-doc','command':a1_0x50a375(0x177),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x50a375(0x1c0),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x27a151){const _0x25b25f=a1_0x50a375,_0x21ceac=listApiDocEntries({'category':_0x27a151[_0x25b25f(0x1c9)](_0x25b25f(0x1a8)),'keyword':_0x27a151[_0x25b25f(0x1c9)](_0x25b25f(0x1d0))});return{'ok':!![],'data':{'total':_0x21ceac[_0x25b25f(0x1a0)],'items':_0x21ceac}};}},apiDocDetail={'service':a1_0x50a375(0x1d1),'command':a1_0x50a375(0x1cb),'description':a1_0x50a375(0x197),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0xeb7100){const _0x4725aa=a1_0x50a375;return{'ok':!![],'data':getApiDocDetail(_0xeb7100[_0x4725aa(0x1c9)](_0x4725aa(0x18f)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59908c,_0x1614fb){const _0x4db23e=a2_0x2ad7,_0x378b35=_0x59908c();while(!![]){try{const _0x3a8ef5=parseInt(_0x4db23e(0x1aa))/0x1*(parseInt(_0x4db23e(0x1a4))/0x2)+parseInt(_0x4db23e(0x19e))/0x3+parseInt(_0x4db23e(0x1b2))/0x4*(-parseInt(_0x4db23e(0x1b6))/0x5)+parseInt(_0x4db23e(0x1a2))/0x6+-parseInt(_0x4db23e(0x1b0))/0x7*(-parseInt(_0x4db23e(0x1a6))/0x8)+parseInt(_0x4db23e(0x1a0))/0x9*(-parseInt(_0x4db23e(0x1a7))/0xa)+-parseInt(_0x4db23e(0x197))/0xb*(parseInt(_0x4db23e(0x19c))/0xc);if(_0x3a8ef5===_0x1614fb)break;else _0x378b35['push'](_0x378b35['shift']());}catch(_0x262cd3){_0x378b35['push'](_0x378b35['shift']());}}}(a2_0x5412,0x60a77));import{createHash}from'node:crypto';function a2_0x5412(){const _0x29f3a5=['2LnJgGf','find','2712gKoIzE','177080fhYxAe','utf8','appName','604964xyxMBi','unknown','hex','trim','code','my-apps.json','5446NsadNe','ak_','548zBKwzD','items','EACCES','appCode','18605KRlOeZ','isArray','2690655vGduLW','parse','slice','EPERM','stringify','12HpyNmO','sha256','84303juUNxu','.tmp','9mhwZLb','homeDirName','1627068gdTcTx','update'];a2_0x5412=function(){return _0x29f3a5;};return a2_0x5412();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0x2ad7(_0x2022f2,_0x33f8ba){_0x2022f2=_0x2022f2-0x196;const _0x5412c3=a2_0x5412();let _0x2ad790=_0x5412c3[_0x2022f2];return _0x2ad790;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0xd4e371){const _0x497537=a2_0x2ad7,_0xbe80de=_0xd4e371[_0x497537(0x1ad)](),_0x594191=_0xbe80de[_0x497537(0x199)](-0x6)||_0x497537(0x1ab),_0x49dc93=createHash(_0x497537(0x19d))[_0x497537(0x1a3)](_0xbe80de)['digest'](_0x497537(0x1ac))['slice'](0x0,0xc);return _0x497537(0x1b1)+_0x594191+'_'+_0x49dc93;}export function getAppCacheFilePath(_0x57399c,_0x4a3e98){const _0x5629ef=a2_0x2ad7;return resolve(homedir(),PRODUCT_CONFIG[_0x5629ef(0x1a1)],'cache',_0x57399c,fingerprintAccessKey(_0x4a3e98),_0x5629ef(0x1af));}export function readCachedAppList(_0x2ee592,_0x221b9f){const _0x35d012=a2_0x2ad7;if(!_0x221b9f?.[_0x35d012(0x1ad)]())return null;const _0x1e849a=getAppCacheFilePath(_0x2ee592,_0x221b9f);if(!existsSync(_0x1e849a))return null;try{const _0x2fd3bd=readFileSync(_0x1e849a,_0x35d012(0x1a8));if(!_0x2fd3bd[_0x35d012(0x1ad)]())return null;const _0x53975c=JSON[_0x35d012(0x198)](_0x2fd3bd);if(!Array[_0x35d012(0x196)](_0x53975c[_0x35d012(0x1b3)]))return null;return _0x53975c;}catch{return null;}}export function writeCachedAppList(_0x1e701d,_0x25dae1,_0x441223){const _0x3e3f4c=a2_0x2ad7,_0x5e1d3f=getAppCacheFilePath(_0x1e701d,_0x25dae1),_0x55ab5f=dirname(_0x5e1d3f);!existsSync(_0x55ab5f)&&mkdirSync(_0x55ab5f,{'recursive':!![]});const _0x1a5cde=_0x5e1d3f+_0x3e3f4c(0x19f);try{writeFileSync(_0x1a5cde,JSON[_0x3e3f4c(0x19b)](_0x441223,null,0x2)+'\x0a',{'encoding':_0x3e3f4c(0x1a8),'mode':0x180});try{renameSync(_0x1a5cde,_0x5e1d3f);}catch(_0x467082){if(_0x467082['code']===_0x3e3f4c(0x19a)||_0x467082[_0x3e3f4c(0x1ae)]==='EXDEV'||_0x467082['code']===_0x3e3f4c(0x1b4)){writeFileSync(_0x5e1d3f,JSON[_0x3e3f4c(0x19b)](_0x441223,null,0x2)+'\x0a',{'encoding':_0x3e3f4c(0x1a8)});try{unlinkSync(_0x1a5cde);}catch{}}else throw _0x467082;}}catch(_0x190011){try{unlinkSync(_0x1a5cde);}catch{}throw _0x190011;}return _0x5e1d3f;}export function resolveCachedAppCode(_0x1fdf35,_0x17c5fe,_0x3b2145){const _0x26c1e0=a2_0x2ad7;if(!_0x1fdf35)return undefined;const _0x21d1bc=readCachedAppList(_0x17c5fe,_0x3b2145),_0x57c245=_0x21d1bc?.[_0x26c1e0(0x1b3)][_0x26c1e0(0x1a5)](_0x4d66f3=>_0x4d66f3[_0x26c1e0(0x1a9)]===_0x1fdf35&&isRuntimeAccessibleApp(_0x4d66f3));return _0x57c245?.[_0x26c1e0(0x1b5)]?.[_0x26c1e0(0x1ad)]()||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x1b9396=a3_0x12ee;(function(_0x4d6ecb,_0x51895d){const _0x45ad29=a3_0x12ee,_0xa8b012=_0x4d6ecb();while(!![]){try{const _0x2b09e4=parseInt(_0x45ad29(0x21d))/0x1+-parseInt(_0x45ad29(0x22a))/0x2+parseInt(_0x45ad29(0x1e7))/0x3+-parseInt(_0x45ad29(0x1fa))/0x4*(parseInt(_0x45ad29(0x208))/0x5)+parseInt(_0x45ad29(0x1df))/0x6*(parseInt(_0x45ad29(0x1e3))/0x7)+-parseInt(_0x45ad29(0x1ec))/0x8+-parseInt(_0x45ad29(0x21c))/0x9*(parseInt(_0x45ad29(0x21a))/0xa);if(_0x2b09e4===_0x51895d)break;else _0xa8b012['push'](_0xa8b012['shift']());}catch(_0x3ae551){_0xa8b012['push'](_0xa8b012['shift']());}}}(a3_0x21e0,0x33e7a));import{CliErrors}from'../../errors.js';function a3_0x21e0(){const _0x2c90d7=['project-default','316554Cluhfm','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','envName','App\x20\x22','406734fRVEfj','entries','\x22\x20not\x20found.','length','init','1867968EkSPuK','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','i18nInfo','app','trim','No\x20apps\x20found\x20on\x20the\x20platform.','raw','nonInteractive','Loaded\x20','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','name','push','appOwnerName','Filter\x20by\x20environment\x20(default:\x20current\x20env)','356740zQierW','remote','defaultApp','production','\x20app\x20use\x20<name>\x20[--global]','enableI18n','write','`\x20instead.','source','../../context.js','appName','no-cache','\x20cached\x20app(s)\x20for\x20env=\x22','projectPath','10OzsPZQ','appPublishStatus','globalPath','boolean','isArray','\x20app\x20','../../commands/app/cache.js','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','map','filter','cachePath','global','Default\x20app\x20candidate\x20set\x20to\x20\x22','Refreshed\x20app\x20cache\x20with\x20','bool','warn','config','import','22200FcrZTS','use','171IhKFVw','339065MEokrr','fetchedAt','items','Missing\x20app\x20name.','appcode','accessKey','local','.appcode\x20to\x20.lovrabet.json.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','string','join','appCode','Use\x20global\x20config\x20scope','249098UjToex','Read\x20from\x20local\x20cache\x20only','find','from','env','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','args','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Usage:\x20','str','\x20app(s)\x20for\x20env=\x22','42dNtxHy','validation','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app'];a3_0x21e0=function(){return _0x2c90d7;};return a3_0x21e0();}import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x1b9396(0x213),'type':a3_0x1b9396(0x20b),'description':a3_0x1b9396(0x229),'default':![]};function collectFlags(_0x1ae8aa,_0x33c77a){const _0x35c7ea=a3_0x1b9396,_0x4cb6a8={};for(const _0x529c1a of _0x33c77a){const _0x4e3d7d=_0x529c1a['type']===_0x35c7ea(0x20b)?_0x1ae8aa[_0x35c7ea(0x216)](_0x529c1a[_0x35c7ea(0x1f6)]):_0x1ae8aa[_0x35c7ea(0x1dd)](_0x529c1a['name']);if(_0x4e3d7d!==''&&_0x4e3d7d!==![])_0x4cb6a8[_0x529c1a[_0x35c7ea(0x1f6)]]=_0x4e3d7d;}if(_0x1ae8aa[_0x35c7ea(0x1f3)])_0x4cb6a8[_0x35c7ea(0x1f3)]=!![];return _0x4cb6a8;}function a3_0x12ee(_0x58b4e0,_0x27d5fe){_0x58b4e0=_0x58b4e0-0x1d6;const _0x21e000=a3_0x21e0();let _0x12eeea=_0x21e000[_0x58b4e0];return _0x12eeea;}function normalizeLanguages(_0x5a1cd7){const _0x1df6ca=a3_0x1b9396;if(!Array[_0x1df6ca(0x20c)](_0x5a1cd7))return[];return _0x5a1cd7[_0x1df6ca(0x211)](_0x361ffc=>typeof _0x361ffc==='string')[_0x1df6ca(0x210)](_0x201e61=>_0x201e61[_0x1df6ca(0x1f0)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x2973e6){const _0x44333f=a3_0x1b9396,_0x2dae5f=normalizeLanguages(_0x2973e6[_0x44333f(0x1ee)]?.['langs']);return{'enableI18n':typeof _0x2973e6[_0x44333f(0x1ff)]===_0x44333f(0x20b)?_0x2973e6[_0x44333f(0x1ff)]:null,'languages':_0x2dae5f,'i18nInfo':_0x2973e6[_0x44333f(0x1ee)]?{..._0x2973e6[_0x44333f(0x1ee)],'langs':_0x2dae5f[_0x44333f(0x1ea)]?_0x2dae5f:null}:null};}const initDef={'service':'app','command':a3_0x1b9396(0x1eb),'description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x1b9396(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x38c832){const _0x5b4987=a3_0x1b9396;return warnDeprecatedAppCommand(_0x5b4987(0x1eb),CLI_BIN_NAME+_0x5b4987(0x1d9)),await runInit(collectFlags(_0x38c832,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x1b9396(0x1ef),'command':'list','description':a3_0x1b9396(0x225),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x1b9396(0x1d8),'type':a3_0x1b9396(0x226),'description':a3_0x1b9396(0x1f9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x1b9396(0x223),'type':a3_0x1b9396(0x20b),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x1b9396(0x205),'type':a3_0x1b9396(0x20b),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':'include-unpublished','type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x1da6cd){const _0x28a877=a3_0x1b9396,_0x28a403=_0x1da6cd[_0x28a877(0x1dd)](_0x28a877(0x1d8))||_0x1da6cd[_0x28a877(0x1e5)]||getEnv()||_0x28a877(0x1fd),_0x4e2655=_0x1da6cd[_0x28a877(0x216)](_0x28a877(0x223)),_0xdbe43=_0x1da6cd[_0x28a877(0x216)](_0x28a877(0x205)),_0x49ac68=_0x1da6cd[_0x28a877(0x216)]('include-unpublished'),{readRawConfigWithLayers:_0x3914fb,resolveDefaultAppSource:_0x2e5008,getLocalAppAliases:_0x174a75}=await import('../../context.js'),{getRemoteAppList:_0x269492}=await import('../../commands/app/remote-source.js'),{config:_0x3235ed,layers:_0xa8a8dd}=_0x3914fb(),_0x1ecbf0=_0x2e5008(_0xa8a8dd),{defaultApp:_0x2ff353}=_0x3235ed,_0x424150=await _0x269492({'env':_0x28a403,'accessKey':_0x1da6cd['accessKey'],'localOnly':_0x4e2655,'noCache':_0xdbe43}),_0x2fe671=_0x49ac68?_0x424150[_0x28a877(0x21f)]:filterRuntimeAccessibleApps(_0x424150[_0x28a877(0x21f)]),_0x38f434=_0x424150[_0x28a877(0x21f)][_0x28a877(0x1ea)]-_0x2fe671[_0x28a877(0x1ea)],_0x326332=_0x2fe671[_0x28a877(0x210)](_0x367a3c=>{const _0x376be8=_0x28a877;return{'name':_0x367a3c[_0x376be8(0x204)],'appcode':_0x367a3c[_0x376be8(0x228)],'named':!![],'definedIn':_0x376be8(0x1fb),'isDefault':_0x367a3c[_0x376be8(0x204)]===_0x2ff353,...buildAppProfileListFields(_0x28a403),...buildRemoteAppI18nFields(_0x367a3c),'source':_0x424150[_0x376be8(0x202)],'owner':_0x367a3c[_0x376be8(0x1f8)]??null,'status':_0x367a3c[_0x376be8(0x209)]??null,'cachedAt':_0x424150[_0x376be8(0x21e)]};}),_0x532e22=_0x174a75(_0x3235ed);let _0x55b829=0x0;for(const [_0x8fc13e,_0x30e1f1]of Object[_0x28a877(0x1e8)](_0x532e22)){const _0x2e947d=typeof _0x30e1f1[_0x28a877(0x221)]===_0x28a877(0x226)?_0x30e1f1[_0x28a877(0x221)][_0x28a877(0x1f0)]():'';if(!_0x2e947d)continue;const _0x17e262=findAppByCode(_0x424150[_0x28a877(0x21f)],_0x2e947d);if(!_0x49ac68&&_0x17e262&&!isRuntimeAccessibleApp(_0x17e262))continue;_0x55b829+=0x1,_0x326332[_0x28a877(0x1f7)]({'name':_0x8fc13e,'appcode':_0x2e947d,'named':!![],'definedIn':_0x28a877(0x223),'isDefault':_0x8fc13e===_0x2ff353,...buildAppProfileListFields(_0x28a403),'source':_0x28a877(0x218),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x326332,_0x1da6cd['mergedCli']);const _0x19e47e=_0x326332[_0x28a877(0x1d6)](_0x52098a=>_0x52098a['isCurrent']===!![]),_0x124240=_0x2ff353??_0x19e47e?.['name']??null,_0x367311={'env':_0x28a403,'source':_0x424150[_0x28a877(0x202)],'fetchedAt':_0x424150['fetchedAt'],'cachePath':_0x424150['cachePath'],'globalPath':_0xa8a8dd[_0x28a877(0x20a)]??null,'projectPath':_0xa8a8dd[_0x28a877(0x207)]??null,'defaultApp':_0x124240,'defaultAppSource':_0x2ff353!=null?_0x1ecbf0:null,'localAliasCount':_0x55b829,'remoteTotal':_0x424150[_0x28a877(0x21f)][_0x28a877(0x1ea)],'hiddenUnpublishedCount':_0x38f434,'includeUnpublished':_0x49ac68};if(_0x326332[_0x28a877(0x1ea)]===0x0)return{'ok':!![],'data':{'items':_0x326332,'meta':_0x367311},'message':_0x424150['source']==='cache'?'No\x20cached\x20apps\x20found.':_0x28a877(0x1f1)};return{'ok':!![],'data':{'items':_0x326332,'meta':_0x367311}};}},pullDef={'service':a3_0x1b9396(0x1ef),'command':'pull','description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x1b9396(0x200),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x1b9396(0x1d8),'type':'string','description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x1b9396(0x223),'type':a3_0x1b9396(0x20b),'description':a3_0x1b9396(0x22b),'default':![]},{'name':'no-cache','type':a3_0x1b9396(0x20b),'description':a3_0x1b9396(0x1db),'default':![]}],async 'execute'(_0x155f78){const _0x392046=a3_0x1b9396,_0x234081=_0x155f78['str']('env')||_0x155f78[_0x392046(0x1e5)]||getEnv()||_0x392046(0x1fd),_0x3b67d0=_0x155f78[_0x392046(0x216)](_0x392046(0x223)),_0x32811d=_0x155f78[_0x392046(0x216)](_0x392046(0x205)),{getRemoteAppList:_0x380380}=await import('../../commands/app/remote-source.js'),_0x545854=await _0x380380({'env':_0x234081,'accessKey':_0x155f78['accessKey'],'localOnly':_0x3b67d0,'noCache':_0x32811d});return{'ok':!![],'data':{'total':_0x545854['items']['length'],'env':_0x234081,'source':_0x545854[_0x392046(0x202)],'fetchedAt':_0x545854[_0x392046(0x21e)],'cachePath':_0x545854[_0x392046(0x212)]},'message':_0x545854[_0x392046(0x202)]==='cache'?_0x392046(0x1f4)+_0x545854['items'][_0x392046(0x1ea)]+_0x392046(0x206)+_0x234081+'\x22.':_0x392046(0x215)+_0x545854[_0x392046(0x21f)][_0x392046(0x1ea)]+_0x392046(0x1de)+_0x234081+'\x22.'};}},useDef={'service':a3_0x1b9396(0x1ef),'command':'use','description':a3_0x1b9396(0x1e1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x1b9396(0x1f6),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x399c6c){const _0x5aabde=a3_0x1b9396;if(!_0x399c6c[_0x5aabde(0x1da)][0x0])throw CliErrors[_0x5aabde(0x1e0)](_0x5aabde(0x220),_0x5aabde(0x1dc)+CLI_BIN_NAME+_0x5aabde(0x1fe));},async 'execute'(_0x1c9b5d){const _0xed6e05=a3_0x1b9396;warnDeprecatedAppCommand(_0xed6e05(0x21b),CLI_BIN_NAME+_0xed6e05(0x1e4));const _0x5ee1c7=_0x1c9b5d[_0xed6e05(0x1da)][0x0];if(!_0x5ee1c7)throw CliErrors[_0xed6e05(0x1e0)](_0xed6e05(0x220),'Usage:\x20'+CLI_BIN_NAME+_0xed6e05(0x1fe));const {buildConfigFromFlags:_0x359efb,resolveLocalAppAliasCode:_0x1fa6da}=await import(_0xed6e05(0x203)),{readCachedAppList:_0x163542}=await import(_0xed6e05(0x20e)),_0x15a60a=_0x1c9b5d[_0xed6e05(0x1dd)](_0xed6e05(0x1d8)),_0x3aac9f=_0x359efb(_0x15a60a?{'env':_0x15a60a}:{}),_0x1b39a4=_0x163542(_0x3aac9f[_0xed6e05(0x1d8)],_0x3aac9f[_0xed6e05(0x222)]),_0x4282b7=_0x1b39a4?.['items'][_0xed6e05(0x1d6)](_0x6a658=>_0x6a658[_0xed6e05(0x204)]===_0x5ee1c7),_0x493b40=_0x1fa6da(_0x3aac9f[_0xed6e05(0x1f2)]??{},_0x5ee1c7);if(_0x4282b7&&!isRuntimeAccessibleApp(_0x4282b7))throw runtimeInaccessibleAppError(_0x4282b7,'\x22'+_0x5ee1c7+'\x22');if(_0x493b40){const _0x88226e=_0x1b39a4?.[_0xed6e05(0x21f)][_0xed6e05(0x1d6)](_0x9d7282=>_0x9d7282[_0xed6e05(0x228)]?.[_0xed6e05(0x1f0)]()===_0x493b40);if(_0x88226e&&!isRuntimeAccessibleApp(_0x88226e))throw runtimeInaccessibleAppError(_0x88226e,'\x22'+_0x5ee1c7+'\x22');}if(!_0x4282b7&&!_0x493b40&&_0x3aac9f['defaultApp']!==_0x5ee1c7){const _0x32d456=[..._0x1b39a4?.[_0xed6e05(0x21f)][_0xed6e05(0x210)](_0x1762ec=>_0x1762ec[_0xed6e05(0x204)])??[]],_0x52635c=_0x32d456[_0xed6e05(0x1ea)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0xed6e05(0x20f)+_0x5ee1c7+_0xed6e05(0x224):'Available\x20remote\x20apps:\x20'+Array[_0xed6e05(0x1d7)](new Set(_0x32d456))[_0xed6e05(0x227)](',\x20')+_0xed6e05(0x1f5);throw CliErrors['validation'](_0xed6e05(0x1e6)+_0x5ee1c7+_0xed6e05(0x1e9),_0x52635c);}const _0x20390f=_0x1c9b5d['bool'](_0xed6e05(0x213));let _0x11ae0c;if(_0x20390f)_0x11ae0c={'global':!![]};else{const {isInProject:_0x1a87c9}=await import(_0xed6e05(0x203)),_0x33911e=_0x1a87c9();_0x11ae0c=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0xed6e05(0x1e2),'inProject':_0x33911e}));}const _0x55fb76=readConfig(_0x11ae0c);return _0x55fb76[_0xed6e05(0x1fc)]=_0x5ee1c7,writeConfig(_0x55fb76,_0x11ae0c),{'ok':!![],'message':_0xed6e05(0x214)+_0x5ee1c7+'\x22'+scopeLabel(_0x11ae0c)+'.'};}};function warnDeprecatedAppCommand(_0x270e9e,_0x55c0e7){const _0x15cdb8=a3_0x1b9396;console[_0x15cdb8(0x217)](CLI_BIN_NAME+_0x15cdb8(0x20d)+_0x270e9e+'\x20is\x20deprecated.\x20Use\x20`'+_0x55c0e7+_0x15cdb8(0x201));}const importDef={'service':a3_0x1b9396(0x1ef),'command':a3_0x1b9396(0x219),'description':a3_0x1b9396(0x1ed),'risk':a3_0x1b9396(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x251f7f){return await runInitImport(collectFlags(_0x251f7f,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
|
|
1
|
+
const a3_0x1562c5=a3_0xdbe5;(function(_0x304a0e,_0x41c51f){const _0x426c07=a3_0xdbe5,_0x3b744c=_0x304a0e();while(!![]){try{const _0x3491f9=parseInt(_0x426c07(0x15a))/0x1*(-parseInt(_0x426c07(0x18c))/0x2)+parseInt(_0x426c07(0x158))/0x3*(parseInt(_0x426c07(0x150))/0x4)+parseInt(_0x426c07(0x14f))/0x5*(parseInt(_0x426c07(0x14b))/0x6)+parseInt(_0x426c07(0x156))/0x7+parseInt(_0x426c07(0x190))/0x8+parseInt(_0x426c07(0x13b))/0x9+-parseInt(_0x426c07(0x187))/0xa;if(_0x3491f9===_0x41c51f)break;else _0x3b744c['push'](_0x3b744c['shift']());}catch(_0x3d7304){_0x3b744c['push'](_0x3b744c['shift']());}}}(a3_0x5417,0x4879c));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0x5417(){const _0x406dfa=['appCode','372046MWKjnb','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','args','push','3293304vsHFuq','write','list','trim','langs','items','name','1703232CPTYSE','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','Remote\x20app\x20name\x20to\x20activate','Loaded\x20','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','boolean','length','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','bool','accessKey','Missing\x20app\x20name.','`\x20instead.','enableI18n','appPublishStatus','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Read\x20app\x20list\x20from\x20local\x20cache\x20only','45222VvlDoA','no-cache','str','Usage:\x20','195POeQff','94988LIKyNh','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','projectPath','../../context.js','filter','source','1553650MKqeRZ','defaultApp','33KipsXy','\x20app\x20','3TkONLe','raw','pull','i18nInfo','appcode','Include\x20unpublished\x20apps\x20for\x20diagnostics','.appcode\x20to\x20.lovrabet.json.','init','cachePath','\x20app(s)\x20for\x20env=\x22','isArray','config','mergedCli','string','fetchedAt','Target\x20environment\x20(default:\x20current\x20env)','join','remote','appName','Use\x20`','Refreshed\x20app\x20cache\x20with\x20','app','\x20app\x20use\x20<name>\x20[--global]','../../commands/app/remote-source.js','\x20cached\x20app(s)\x20for\x20env=\x22','envName','map','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','global','warn','App\x20\x22','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','validation','find','local','Use\x20global\x20config\x20scope','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','type','No\x20apps\x20found\x20on\x20the\x20platform.','cache','env','import','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','production','appOwnerName','5230920gzQOwF','include-unpublished','\x22\x20not\x20found.','entries'];a3_0x5417=function(){return _0x406dfa;};return a3_0x5417();}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x1562c5(0x176),'type':a3_0x1562c5(0x140),'description':a3_0x1562c5(0x17d),'default':![]};function a3_0xdbe5(_0x516054,_0x5c2562){_0x516054=_0x516054-0x13a;const _0x54172c=a3_0x5417();let _0xdbe531=_0x54172c[_0x516054];return _0xdbe531;}function collectFlags(_0x299328,_0x3bd928){const _0x5a85a4=a3_0x1562c5,_0x4472f7={};for(const _0x5a2e43 of _0x3bd928){const _0xa2d48d=_0x5a2e43[_0x5a85a4(0x17f)]===_0x5a85a4(0x140)?_0x299328['bool'](_0x5a2e43[_0x5a85a4(0x13a)]):_0x299328['str'](_0x5a2e43[_0x5a85a4(0x13a)]);if(_0xa2d48d!==''&&_0xa2d48d!==![])_0x4472f7[_0x5a2e43[_0x5a85a4(0x13a)]]=_0xa2d48d;}if(_0x299328['nonInteractive'])_0x4472f7['nonInteractive']=!![];return _0x4472f7;}function normalizeLanguages(_0x4c9d3d){const _0x27d395=a3_0x1562c5;if(!Array[_0x27d395(0x164)](_0x4c9d3d))return[];return _0x4c9d3d[_0x27d395(0x154)](_0x15d9ed=>typeof _0x15d9ed===_0x27d395(0x167))[_0x27d395(0x174)](_0x3bf8bd=>_0x3bf8bd[_0x27d395(0x193)]())[_0x27d395(0x154)](Boolean);}function buildRemoteAppI18nFields(_0x5da935){const _0x3f4d6b=a3_0x1562c5,_0x25a4c5=normalizeLanguages(_0x5da935['i18nInfo']?.[_0x3f4d6b(0x194)]);return{'enableI18n':typeof _0x5da935[_0x3f4d6b(0x147)]===_0x3f4d6b(0x140)?_0x5da935[_0x3f4d6b(0x147)]:null,'languages':_0x25a4c5,'i18nInfo':_0x5da935[_0x3f4d6b(0x15d)]?{..._0x5da935[_0x3f4d6b(0x15d)],'langs':_0x25a4c5[_0x3f4d6b(0x141)]?_0x25a4c5:null}:null};}const initDef={'service':a3_0x1562c5(0x16f),'command':a3_0x1562c5(0x161),'description':a3_0x1562c5(0x151),'risk':a3_0x1562c5(0x191),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x4928e5){const _0x2e398a=a3_0x1562c5;return warnDeprecatedAppCommand(_0x2e398a(0x161),CLI_BIN_NAME+_0x2e398a(0x149)),await runInit(collectFlags(_0x4928e5,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x1562c5(0x16f),'command':a3_0x1562c5(0x192),'description':a3_0x1562c5(0x18d),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x1562c5(0x182),'type':a3_0x1562c5(0x167),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x1562c5(0x17c),'type':a3_0x1562c5(0x140),'description':a3_0x1562c5(0x14a),'default':![]},{'name':a3_0x1562c5(0x14c),'type':'boolean','description':a3_0x1562c5(0x175),'default':![]},{'name':a3_0x1562c5(0x188),'type':a3_0x1562c5(0x140),'description':a3_0x1562c5(0x15f),'default':![]}],async 'execute'(_0x38e3ef){const _0x2031ea=a3_0x1562c5,_0x485456=_0x38e3ef[_0x2031ea(0x14d)](_0x2031ea(0x182))||_0x38e3ef[_0x2031ea(0x173)]||getEnv()||_0x2031ea(0x185),_0x2b0f3d=_0x38e3ef[_0x2031ea(0x143)](_0x2031ea(0x17c)),_0x368931=_0x38e3ef['bool'](_0x2031ea(0x14c)),_0xcd860a=_0x38e3ef[_0x2031ea(0x143)](_0x2031ea(0x188)),{readRawConfigWithLayers:_0x271329,resolveDefaultAppSource:_0x3b2bd0,getLocalAppAliases:_0x199e17}=await import(_0x2031ea(0x153)),{getRemoteAppList:_0x11159d}=await import(_0x2031ea(0x171)),{config:_0x4edf63,layers:_0x50444c}=_0x271329(),_0x401d87=_0x3b2bd0(_0x50444c),{defaultApp:_0x636ca5}=_0x4edf63,_0x1e47f7=await _0x11159d({'env':_0x485456,'accessKey':_0x38e3ef[_0x2031ea(0x144)],'localOnly':_0x2b0f3d,'noCache':_0x368931}),_0x4aa7c3=_0xcd860a?_0x1e47f7[_0x2031ea(0x195)]:filterRuntimeAccessibleApps(_0x1e47f7[_0x2031ea(0x195)]),_0x35413b=_0x1e47f7['items'][_0x2031ea(0x141)]-_0x4aa7c3[_0x2031ea(0x141)],_0x5c3fb2=_0x4aa7c3[_0x2031ea(0x174)](_0x2d0a44=>{const _0xf0b353=_0x2031ea;return{'name':_0x2d0a44[_0xf0b353(0x16c)],'appcode':_0x2d0a44[_0xf0b353(0x18b)],'named':!![],'definedIn':_0xf0b353(0x16b),'isDefault':_0x2d0a44['appName']===_0x636ca5,...buildAppProfileListFields(_0x485456),...buildRemoteAppI18nFields(_0x2d0a44),'source':_0x1e47f7[_0xf0b353(0x155)],'owner':_0x2d0a44[_0xf0b353(0x186)]??null,'status':_0x2d0a44[_0xf0b353(0x148)]??null,'cachedAt':_0x1e47f7[_0xf0b353(0x168)]};}),_0x24617e=_0x199e17(_0x4edf63);let _0x14a9bc=0x0;for(const [_0x5e14f4,_0x182a5a]of Object[_0x2031ea(0x18a)](_0x24617e)){const _0x3c175f=typeof _0x182a5a[_0x2031ea(0x15e)]==='string'?_0x182a5a[_0x2031ea(0x15e)][_0x2031ea(0x193)]():'';if(!_0x3c175f)continue;const _0x493f50=findAppByCode(_0x1e47f7[_0x2031ea(0x195)],_0x3c175f);if(!_0xcd860a&&_0x493f50&&!isRuntimeAccessibleApp(_0x493f50))continue;_0x14a9bc+=0x1,_0x5c3fb2[_0x2031ea(0x18f)]({'name':_0x5e14f4,'appcode':_0x3c175f,'named':!![],'definedIn':_0x2031ea(0x17c),'isDefault':_0x5e14f4===_0x636ca5,...buildAppProfileListFields(_0x485456),'source':_0x2031ea(0x165),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5c3fb2,_0x38e3ef[_0x2031ea(0x166)]);const _0x502047=_0x5c3fb2[_0x2031ea(0x17b)](_0x34df82=>_0x34df82['isCurrent']===!![]),_0x4bb91f=_0x636ca5??_0x502047?.['name']??null,_0x511f94={'env':_0x485456,'source':_0x1e47f7[_0x2031ea(0x155)],'fetchedAt':_0x1e47f7['fetchedAt'],'cachePath':_0x1e47f7[_0x2031ea(0x162)],'globalPath':_0x50444c['globalPath']??null,'projectPath':_0x50444c[_0x2031ea(0x152)]??null,'defaultApp':_0x4bb91f,'defaultAppSource':_0x636ca5!=null?_0x401d87:null,'localAliasCount':_0x14a9bc,'remoteTotal':_0x1e47f7['items'][_0x2031ea(0x141)],'hiddenUnpublishedCount':_0x35413b,'includeUnpublished':_0xcd860a};if(_0x5c3fb2[_0x2031ea(0x141)]===0x0)return{'ok':!![],'data':{'items':_0x5c3fb2,'meta':_0x511f94},'message':_0x1e47f7[_0x2031ea(0x155)]==='cache'?'No\x20cached\x20apps\x20found.':_0x2031ea(0x180)};return{'ok':!![],'data':{'items':_0x5c3fb2,'meta':_0x511f94}};}},pullDef={'service':'app','command':a3_0x1562c5(0x15c),'description':a3_0x1562c5(0x142),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x1562c5(0x182),'type':a3_0x1562c5(0x167),'description':a3_0x1562c5(0x169),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x1562c5(0x17c),'type':'boolean','description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x1562c5(0x14c),'type':a3_0x1562c5(0x140),'description':a3_0x1562c5(0x175),'default':![]}],async 'execute'(_0x67df5e){const _0x3b1924=a3_0x1562c5,_0x21772f=_0x67df5e[_0x3b1924(0x14d)]('env')||_0x67df5e[_0x3b1924(0x173)]||getEnv()||_0x3b1924(0x185),_0x41814b=_0x67df5e[_0x3b1924(0x143)](_0x3b1924(0x17c)),_0x5a9fbf=_0x67df5e['bool'](_0x3b1924(0x14c)),{getRemoteAppList:_0x3ac51a}=await import(_0x3b1924(0x171)),_0x105d25=await _0x3ac51a({'env':_0x21772f,'accessKey':_0x67df5e[_0x3b1924(0x144)],'localOnly':_0x41814b,'noCache':_0x5a9fbf});return{'ok':!![],'data':{'total':_0x105d25[_0x3b1924(0x195)][_0x3b1924(0x141)],'env':_0x21772f,'source':_0x105d25['source'],'fetchedAt':_0x105d25['fetchedAt'],'cachePath':_0x105d25['cachePath']},'message':_0x105d25[_0x3b1924(0x155)]===_0x3b1924(0x181)?_0x3b1924(0x13e)+_0x105d25[_0x3b1924(0x195)][_0x3b1924(0x141)]+_0x3b1924(0x172)+_0x21772f+'\x22.':_0x3b1924(0x16e)+_0x105d25['items']['length']+_0x3b1924(0x163)+_0x21772f+'\x22.'};}},useDef={'service':'app','command':'use','description':a3_0x1562c5(0x184),'risk':a3_0x1562c5(0x191),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x1562c5(0x13a),'description':a3_0x1562c5(0x13d),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x25571e){const _0x24cf00=a3_0x1562c5;if(!_0x25571e[_0x24cf00(0x18e)][0x0])throw CliErrors['validation'](_0x24cf00(0x145),_0x24cf00(0x14e)+CLI_BIN_NAME+_0x24cf00(0x170));},async 'execute'(_0x292d96){const _0x3582bc=a3_0x1562c5;warnDeprecatedAppCommand('use',CLI_BIN_NAME+_0x3582bc(0x17e));const _0x36a669=_0x292d96['args'][0x0];if(!_0x36a669)throw CliErrors[_0x3582bc(0x17a)](_0x3582bc(0x145),'Usage:\x20'+CLI_BIN_NAME+_0x3582bc(0x170));const {buildConfigFromFlags:_0x4b725e,resolveLocalAppAliasCode:_0xedf8bd}=await import(_0x3582bc(0x153)),{readCachedAppList:_0x350185}=await import('../../commands/app/cache.js'),_0x20ed95=_0x292d96[_0x3582bc(0x14d)](_0x3582bc(0x182)),_0x852b92=_0x4b725e(_0x20ed95?{'env':_0x20ed95}:{}),_0x365c5a=_0x350185(_0x852b92[_0x3582bc(0x182)],_0x852b92[_0x3582bc(0x144)]),_0x5ae3d2=_0x365c5a?.[_0x3582bc(0x195)][_0x3582bc(0x17b)](_0x154e50=>_0x154e50[_0x3582bc(0x16c)]===_0x36a669),_0x44ef93=_0xedf8bd(_0x852b92[_0x3582bc(0x15b)]??{},_0x36a669);if(_0x5ae3d2&&!isRuntimeAccessibleApp(_0x5ae3d2))throw runtimeInaccessibleAppError(_0x5ae3d2,'\x22'+_0x36a669+'\x22');if(_0x44ef93){const _0x5b0094=_0x365c5a?.[_0x3582bc(0x195)]['find'](_0x127804=>_0x127804['appCode']?.['trim']()===_0x44ef93);if(_0x5b0094&&!isRuntimeAccessibleApp(_0x5b0094))throw runtimeInaccessibleAppError(_0x5b0094,'\x22'+_0x36a669+'\x22');}if(!_0x5ae3d2&&!_0x44ef93&&_0x852b92[_0x3582bc(0x157)]!==_0x36a669){const _0x2325ad=[..._0x365c5a?.[_0x3582bc(0x195)][_0x3582bc(0x174)](_0x572c00=>_0x572c00[_0x3582bc(0x16c)])??[]],_0x560ba0=_0x2325ad['length']===0x0?_0x3582bc(0x16d)+CLI_BIN_NAME+_0x3582bc(0x179)+_0x36a669+_0x3582bc(0x160):'Available\x20remote\x20apps:\x20'+Array['from'](new Set(_0x2325ad))[_0x3582bc(0x16a)](',\x20')+_0x3582bc(0x13c);throw CliErrors['validation'](_0x3582bc(0x178)+_0x36a669+_0x3582bc(0x189),_0x560ba0);}const _0x4c6255=_0x292d96[_0x3582bc(0x143)](_0x3582bc(0x176));let _0x203822;if(_0x4c6255)_0x203822={'global':!![]};else{const {isInProject:_0x4d3c07}=await import(_0x3582bc(0x153)),_0x225204=_0x4d3c07();_0x203822=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x225204}));}const _0x53ba90=readConfig(_0x203822);return _0x53ba90[_0x3582bc(0x157)]=_0x36a669,writeConfig(_0x53ba90,_0x203822),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x36a669+'\x22'+scopeLabel(_0x203822)+'.'};}};function warnDeprecatedAppCommand(_0x4bbf13,_0x309b8c){const _0x3ec969=a3_0x1562c5;console[_0x3ec969(0x177)](CLI_BIN_NAME+_0x3ec969(0x159)+_0x4bbf13+'\x20is\x20deprecated.\x20Use\x20`'+_0x309b8c+_0x3ec969(0x146));}const importDef={'service':a3_0x1562c5(0x16f),'command':a3_0x1562c5(0x183),'description':a3_0x1562c5(0x13f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x1bc266){return await runInitImport(collectFlags(_0x1bc266,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x292df6,_0x4fa2bf){const _0xda3284=a4_0x3482,_0x204ab1=_0x292df6();while(!![]){try{const _0x25d526=-parseInt(_0xda3284(0x1a6))/0x1*(parseInt(_0xda3284(0x19d))/0x2)+-parseInt(_0xda3284(0x1ac))/0x3*(-parseInt(_0xda3284(0x1ab))/0x4)+-parseInt(_0xda3284(0x1a4))/0x5*(-parseInt(_0xda3284(0x198))/0x6)+-parseInt(_0xda3284(0x19e))/0x7*(parseInt(_0xda3284(0x193))/0x8)+-parseInt(_0xda3284(0x195))/0x9*(-parseInt(_0xda3284(0x1a0))/0xa)+-parseInt(_0xda3284(0x1a7))/0xb+parseInt(_0xda3284(0x196))/0xc*(parseInt(_0xda3284(0x197))/0xd);if(_0x25d526===_0x4fa2bf)break;else _0x204ab1['push'](_0x204ab1['shift']());}catch(_0x50f354){_0x204ab1['push'](_0x204ab1['shift']());}}}(a4_0x20b8,0x996ef));function a4_0x20b8(){const _0x45da63=['appPublishStatus','.\x20Publish\x20the\x20app\x20before\x20using\x20','679476wvTcbu','3WqAVdN','appCode','3193400CtOiQY','trim','2330469hsLroP','633252EGHuvn','182ULiBco','191322vGXbnZ','toUpperCase','find','validation','filter','26304PlUJQM','21wtOlED','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','30MCQhRp','string','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','Current\x20status:\x20','105gOlHDU','appName','33nGDUqe','1046199nSwaOy','UNKNOWN'];a4_0x20b8=function(){return _0x45da63;};return a4_0x20b8();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x3cfa8f){const _0x4dfb63=a4_0x3482;if(typeof _0x3cfa8f!==_0x4dfb63(0x1a1))return null;const _0x125a07=_0x3cfa8f[_0x4dfb63(0x194)]();return _0x125a07?_0x125a07[_0x4dfb63(0x199)]():null;}export function isRuntimeAccessibleApp(_0x110d4c){const _0x204dff=a4_0x3482;return normalizeAppPublishStatus(_0x110d4c[_0x204dff(0x1a9)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x54ee1f){const _0x50f950=a4_0x3482;return _0x54ee1f[_0x50f950(0x19c)](isRuntimeAccessibleApp);}export function findAppByName(_0x528554,_0x50a7d8){const _0x19e3cb=a4_0x3482;return _0x528554['find'](_0x38ead2=>_0x38ead2[_0x19e3cb(0x1a5)]===_0x50a7d8);}function a4_0x3482(_0x678c3e,_0x4bf894){_0x678c3e=_0x678c3e-0x192;const _0x20b8e2=a4_0x20b8();let _0x348221=_0x20b8e2[_0x678c3e];return _0x348221;}export function findAppByCode(_0x375ca3,_0x5dd0cc){const _0x269f3e=a4_0x3482,_0x48d43d=_0x5dd0cc[_0x269f3e(0x194)]();if(!_0x48d43d)return undefined;return _0x375ca3[_0x269f3e(0x19a)](_0x14de84=>_0x14de84[_0x269f3e(0x192)]?.[_0x269f3e(0x194)]()===_0x48d43d);}export function runtimeInaccessibleAppError(_0x34b5b3,_0x445943){const _0x444daf=a4_0x3482,_0x3b7efb=normalizeAppPublishStatus(_0x34b5b3[_0x444daf(0x1a9)])??_0x444daf(0x1a8);return CliErrors[_0x444daf(0x19b)]('App\x20'+_0x445943+_0x444daf(0x1a2),_0x444daf(0x1a3)+_0x3b7efb+_0x444daf(0x1aa)+CLI_BIN_NAME+_0x444daf(0x19f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x362037,_0x5b68cc){const _0x9072f3=a5_0x263c,_0x650e36=_0x362037();while(!![]){try{const _0x1b238b=-parseInt(_0x9072f3(0x134))/0x1+parseInt(_0x9072f3(0x12d))/0x2+parseInt(_0x9072f3(0x12f))/0x3+-parseInt(_0x9072f3(0x135))/0x4*(-parseInt(_0x9072f3(0x138))/0x5)+-parseInt(_0x9072f3(0x133))/0x6*(-parseInt(_0x9072f3(0x137))/0x7)+parseInt(_0x9072f3(0x130))/0x8*(parseInt(_0x9072f3(0x13d))/0x9)+parseInt(_0x9072f3(0x13c))/0xa*(-parseInt(_0x9072f3(0x13a))/0xb);if(_0x1b238b===_0x5b68cc)break;else _0x650e36['push'](_0x650e36['shift']());}catch(_0x202e83){_0x650e36['push'](_0x650e36['shift']());}}}(a5_0x3dcc,0xc9cda));function a5_0x263c(_0x32986d,_0x479420){_0x32986d=_0x32986d-0x12c;const _0x3dcc3a=a5_0x3dcc();let _0x263c7b=_0x3dcc3a[_0x32986d];return _0x263c7b;}import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a5_0x3dcc(){const _0x5108d9=['utf-8','140QPhjVF','52455LddjMK','tableData','1507RkASWc','parse','177470pKTMIJ','2926350UAFviY','data','success','3050474wrVREn','errorMsg','2796063nZbnhX','8WxYfdj','Mock\x20API\x20error:\x20','errorCode','409974yYWdIf','1279230jeTDsm','148jYvmfZ'];a5_0x3dcc=function(){return _0x5108d9;};return a5_0x3dcc();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x3c461b=a5_0x263c,_0x2a8a56=join(__dirname,'../../../mock/app-list.json'),_0x48d7c4=readFileSync(_0x2a8a56,_0x3c461b(0x136));return JSON[_0x3c461b(0x13b)](_0x48d7c4);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x24f666=a5_0x263c,_0x1f7804=getMockAppList();if(!_0x1f7804[_0x24f666(0x12c)])throw new Error(_0x24f666(0x131)+_0x1f7804[_0x24f666(0x12e)]+'\x20('+_0x1f7804[_0x24f666(0x132)]+')');return _0x1f7804[_0x24f666(0x13e)][_0x24f666(0x139)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x120f7a,_0x53239d){const _0xfa9fd7=a6_0x370d,_0x1f3879=_0x120f7a();while(!![]){try{const _0x5cb0bf=-parseInt(_0xfa9fd7(0x1ad))/0x1+-parseInt(_0xfa9fd7(0x19d))/0x2*(parseInt(_0xfa9fd7(0x1a4))/0x3)+-parseInt(_0xfa9fd7(0x1a7))/0x4+parseInt(_0xfa9fd7(0x1aa))/0x5+parseInt(_0xfa9fd7(0x1a1))/0x6*(parseInt(_0xfa9fd7(0x1a0))/0x7)+-parseInt(_0xfa9fd7(0x19f))/0x8+parseInt(_0xfa9fd7(0x1ac))/0x9*(parseInt(_0xfa9fd7(0x19c))/0xa);if(_0x5cb0bf===_0x53239d)break;else _0x1f3879['push'](_0x1f3879['shift']());}catch(_0x376deb){_0x1f3879['push'](_0x1f3879['shift']());}}}(a6_0x2d77,0x20833));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a6_0x370d(_0x5d3bb8,_0x33bef9){_0x5d3bb8=_0x5d3bb8-0x19c;const _0x2d77a9=a6_0x2d77();let _0x370d2a=_0x2d77a9[_0x5d3bb8];return _0x370d2a;}function a6_0x2d77(){const _0x337fc0=['items','309eANqsv','fetchedAt','mock','92824DIOCUR','cache','remote','997110lbXURB','trim','1756683eKhYxL','181259BYizbU','10dROZIb','1778yknXDF','toLowerCase','1232672cIWzDf','49KbsiYr','161724XRxpap','toISOString'];a6_0x2d77=function(){return _0x337fc0;};return a6_0x2d77();}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x346381=a6_0x370d,_0x5530cb=(productEnv('APP_LIST_SOURCE')||'')[_0x346381(0x1ab)]()[_0x346381(0x19e)]();return _0x5530cb===_0x346381(0x1a6);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x4e931c){const _0x1916d1=a6_0x370d,{env:_0x5b4ffd,accessKey:_0x2ee509,localOnly:localOnly=![],noCache:noCache=![]}=_0x4e931c,_0x1c52d1=readCachedAppList(_0x5b4ffd,_0x2ee509),_0x4a4b49=_0x2ee509?.[_0x1916d1(0x1ab)]()?getAppCacheFilePath(_0x5b4ffd,_0x2ee509):null;if(localOnly)return{'items':_0x1c52d1?.[_0x1916d1(0x1a3)]??[],'source':'cache','fetchedAt':_0x1c52d1?.[_0x1916d1(0x1a5)]??null,'cachePath':_0x4a4b49};try{const _0x3fe3fd=await getRemoteAppItems(),_0xdd84d6=shouldUseMockRemoteApps()?'mock':_0x1916d1(0x1a9),_0x40408b=new Date()[_0x1916d1(0x1a2)](),_0x5facd2=_0x2ee509?.[_0x1916d1(0x1ab)]()?writeCachedAppList(_0x5b4ffd,_0x2ee509,{'env':_0x5b4ffd,'fetchedAt':_0x40408b,'source':_0xdd84d6,'items':_0x3fe3fd}):null;return{'items':_0x3fe3fd,'source':_0xdd84d6,'fetchedAt':_0x40408b,'cachePath':_0x5facd2};}catch(_0x5d6c39){if(!noCache&&_0x1c52d1)return{'items':_0x1c52d1[_0x1916d1(0x1a3)],'source':_0x1916d1(0x1a8),'fetchedAt':_0x1c52d1['fetchedAt'],'cachePath':_0x4a4b49};throw _0x5d6c39;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x160a7d,_0xc42444){const _0x28dcb8=a7_0x2421,_0x12ae05=_0x160a7d();while(!![]){try{const _0x4d1fc5=-parseInt(_0x28dcb8(0xca))/0x1+parseInt(_0x28dcb8(0xc4))/0x2+parseInt(_0x28dcb8(0xc9))/0x3+-parseInt(_0x28dcb8(0xcc))/0x4+-parseInt(_0x28dcb8(0xcf))/0x5*(-parseInt(_0x28dcb8(0xc6))/0x6)+parseInt(_0x28dcb8(0xd3))/0x7*(parseInt(_0x28dcb8(0xc5))/0x8)+-parseInt(_0x28dcb8(0xd0))/0x9;if(_0x4d1fc5===_0xc42444)break;else _0x12ae05['push'](_0x12ae05['shift']());}catch(_0x4afa14){_0x12ae05['push'](_0x12ae05['shift']());}}}(a7_0x52a7,0xc8ae0));import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x2421(_0xe4730,_0x200a30){_0xe4730=_0xe4730-0xc2;const _0x52a7d6=a7_0x52a7();let _0x2421e8=_0x52a7d6[_0xe4730];return _0x2421e8;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a7_0x52a7(){const _0x5d1c16=['global','3949124KHVGSG','project','find','108895Rklxef','10349649TqeiZz','local','trim','8947141cfEBxD','appcode','name','appCode','isCurrent','729906fmZZeh','8jyyOQU','384LMfesy','currentApp','named','2456484IywLio','896574kRuIiN'];a7_0x52a7=function(){return _0x5d1c16;};return a7_0x52a7();}export function enrichAppListItemsWithMergedSelection(_0x1e6ca4,_0x5aaeb5){const _0x3e472c=a7_0x2421;if(!_0x5aaeb5)return;const _0x5f2f94=!!(_0x5aaeb5[_0x3e472c(0xc7)]??_0x5aaeb5['defaultApp']);for(const _0x59705f of _0x1e6ca4){_0x59705f[_0x3e472c(0xc3)]=![];}const _0x4b7d64=_0x5aaeb5[_0x3e472c(0xc2)]!=null?String(_0x5aaeb5[_0x3e472c(0xc2)])[_0x3e472c(0xd2)]():'';if(_0x5f2f94){const _0x457030=_0x5aaeb5['currentApp']??_0x5aaeb5['defaultApp'];if(_0x457030){const _0x58b66b=_0x1e6ca4[_0x3e472c(0xce)](_0x58ca13=>_0x58ca13[_0x3e472c(0xc8)]===!![]&&_0x58ca13[_0x3e472c(0xd5)]===_0x457030&&_0x58ca13['definedIn']===_0x3e472c(0xd1)),_0x2820fb=_0x58b66b??_0x1e6ca4[_0x3e472c(0xce)](_0x2bab6f=>_0x2bab6f[_0x3e472c(0xc8)]===!![]&&_0x2bab6f[_0x3e472c(0xd5)]===_0x457030);_0x2820fb&&(_0x2820fb[_0x3e472c(0xc3)]=!![]);}return;}if(!_0x4b7d64)return;for(const _0xdeabf2 of _0x1e6ca4){String(_0xdeabf2[_0x3e472c(0xd4)]??'')[_0x3e472c(0xd2)]()===_0x4b7d64&&(_0xdeabf2[_0x3e472c(0xc3)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x592d65){const _0x10dd4f=a7_0x2421;return formatScopeLabel(_0x592d65['global']?_0x10dd4f(0xcb):_0x10dd4f(0xcd));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8_0x18bf58=a8_0xef43;(function(_0xf7a5f2,_0xde8840){const _0x47144b=a8_0xef43,_0x582065=_0xf7a5f2();while(!![]){try{const _0x4fc0b=parseInt(_0x47144b(0x1ba))/0x1*(parseInt(_0x47144b(0x1e8))/0x2)+-parseInt(_0x47144b(0x1c5))/0x3*(parseInt(_0x47144b(0x1cb))/0x4)+parseInt(_0x47144b(0x1c2))/0x5+-parseInt(_0x47144b(0x1e0))/0x6*(parseInt(_0x47144b(0x1c0))/0x7)+parseInt(_0x47144b(0x1c4))/0x8+-parseInt(_0x47144b(0x1ee))/0x9+parseInt(_0x47144b(0x1eb))/0xa;if(_0x4fc0b===_0xde8840)break;else _0x582065['push'](_0x582065['shift']());}catch(_0x2f1799){_0x582065['push'](_0x582065['shift']());}}}(a8_0x7977,0x48110));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a8_0x18bf58(0x1ad),a8_0x18bf58(0x1f9),a8_0x18bf58(0x1c7),a8_0x18bf58(0x1e1),a8_0x18bf58(0x1d3),a8_0x18bf58(0x1d0)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x18bf58(0x1fa)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':'string','required':!![],'description':a8_0x18bf58(0x1be)},ARTIFACT_NAME_FLAG={'name':a8_0x18bf58(0x1cd),'type':a8_0x18bf58(0x1df),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x18bf58(0x1da),'type':a8_0x18bf58(0x1df),'description':a8_0x18bf58(0x1b8)};function isPlainObject(_0xc6dcfc){const _0x502fdb=a8_0x18bf58;return typeof _0xc6dcfc===_0x502fdb(0x1c6)&&_0xc6dcfc!==null&&!Array[_0x502fdb(0x1bb)](_0xc6dcfc);}function readSourceFile(_0x524dc0){const _0x2b270b=a8_0x18bf58;if(!_0x524dc0)throw CliErrors[_0x2b270b(0x1d1)]('File\x20path\x20is\x20required.');if(!existsSync(_0x524dc0))throw CliErrors[_0x2b270b(0x1d1)]('File\x20not\x20found:\x20'+_0x524dc0);if(!statSync(_0x524dc0)[_0x2b270b(0x1fc)]())throw CliErrors['validation'](_0x2b270b(0x1b5)+_0x524dc0);const _0x2c143c=readFileSync(_0x524dc0,_0x2b270b(0x1dd));return validateReactModuleSource(_0x2c143c),_0x2c143c;}function parseMetadata(_0x4d1ff5){const _0x272c0b=a8_0x18bf58;if(!_0x4d1ff5)return undefined;let _0x5d7c93;try{_0x5d7c93=JSON[_0x272c0b(0x1bc)](_0x4d1ff5);}catch{throw CliErrors[_0x272c0b(0x1d1)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x4d1ff5);}if(!isPlainObject(_0x5d7c93))throw CliErrors['validation'](_0x272c0b(0x1cc));const _0x5b5c91={..._0x5d7c93};return delete _0x5b5c91['compiledContent'],_0x5b5c91;}function a8_0x7977(){const _0x43ed87=['metadata','Preview:\x20create\x20react_module\x20Artifact','POST','utf8','lastIndex','string','3049950XlfkKz','dayjs','deleted','body','test','split','update','favorite','205336WWbXfR','Artifact\x20ID','length','7287680NWEEcI','file','detail','2889630glSFJL','str','trim','List\x20current-app\x20react_module\x20Artifacts','Updated\x20Artifact\x20','num','/client/artifact/','.\x20Unsupported:\x20','appCode','Show\x20one\x20Artifact\x20by\x20id','includes','react-dom','join','exec','isFile','react','updateTime','filter','Created\x20Artifact\x20','source','read','bool','artifact','File\x20is\x20not\x20a\x20regular\x20file:\x20','Optional\x20favorite-state\x20filter','map','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','artifactType','1RhgCjU','isArray','parse','create','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','boolean','7IDAVws','add','2854890YNaTZi','createTime','1124456KsaIVh','894mluqGs','object','lodash','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Artifact\x20source\x20file\x20is\x20blank.','build','5616uVwfWS','--metadata\x20must\x20be\x20a\x20JSON\x20object.','name','verbose','/client/artifact/create','@ant-design/icons','validation','list','antd','description','flag','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','write','content'];a8_0x7977=function(){return _0x43ed87;};return a8_0x7977();}function getPackageName(_0xa2add6){const _0xfb7707=a8_0x18bf58;if(_0xa2add6['startsWith']('@')){const [_0x42e993,_0x36401e]=_0xa2add6[_0xfb7707(0x1e5)]('/');return _0x42e993&&_0x36401e?_0x42e993+'/'+_0x36401e:_0xa2add6;}return _0xa2add6[_0xfb7707(0x1e5)]('/')[0x0]||_0xa2add6;}function validateAllowedImports(_0x2947f0){const _0xb79332=a8_0x18bf58,_0x377b9c=new Set();for(const _0x1397bc of IMPORT_SOURCE_PATTERNS){_0x1397bc[_0xb79332(0x1de)]=0x0;let _0x4fcb89;while((_0x4fcb89=_0x1397bc[_0xb79332(0x1fb)](_0x2947f0))!==null){const _0x37d733=_0x4fcb89[0x1]?.['trim']();_0x37d733&&_0x377b9c[_0xb79332(0x1c1)](_0x37d733);}}const _0xaa490a=[..._0x377b9c][_0xb79332(0x1b7)](getPackageName)[_0xb79332(0x1af)](_0x253cea=>!ALLOWED_REACT_MODULE_IMPORTS[_0xb79332(0x1f8)](_0x253cea));if(_0xaa490a[_0xb79332(0x1ea)]>0x0)throw CliErrors[_0xb79332(0x1d1)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0xb79332(0x1f5)+[...new Set(_0xaa490a)][_0xb79332(0x1fa)](',\x20'));}export function validateReactModuleSource(_0x1db6f8){const _0x494915=a8_0x18bf58;if(!_0x1db6f8[_0x494915(0x1f0)]())throw CliErrors['validation'](_0x494915(0x1c9));if(PAGE_LEVEL_PATTERNS['some'](_0x2db4a6=>_0x2db4a6[_0x494915(0x1e4)](_0x1db6f8)))throw CliErrors[_0x494915(0x1d1)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x1db6f8);}function buildArtifactInput(_0x3d7add){const _0x3a2820=a8_0x18bf58,_0x2303c0=readSourceFile(_0x3d7add['str'](_0x3a2820(0x1ec))),_0x38a145=_0x3d7add[_0x3a2820(0x1ef)](_0x3a2820(0x1cd))[_0x3a2820(0x1f0)](),_0x5a3f7e=parseMetadata(_0x3d7add[_0x3a2820(0x1ef)](_0x3a2820(0x1da)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x38a145?{'name':_0x38a145}:{},'content':_0x2303c0,..._0x5a3f7e?{'metadata':_0x5a3f7e}:{},'source':ARTIFACT_SOURCE_AGENT};}function a8_0xef43(_0x3d9c02,_0x40d811){_0x3d9c02=_0x3d9c02-0x1ad;const _0x79776d=a8_0x7977();let _0xef43c5=_0x79776d[_0x3d9c02];return _0xef43c5;}function summarizeArtifact(_0x23bcaa){const _0x3c549c=a8_0x18bf58;return{'id':_0x23bcaa['id'],'name':_0x23bcaa[_0x3c549c(0x1cd)],'artifactType':_0x23bcaa['artifactType'],'source':_0x23bcaa[_0x3c549c(0x1b1)],'favorite':_0x23bcaa[_0x3c549c(0x1e7)],'deleted':_0x23bcaa[_0x3c549c(0x1e2)],'createTime':_0x23bcaa[_0x3c549c(0x1c3)],'updateTime':_0x23bcaa[_0x3c549c(0x1ae)]};}function detailArtifact(_0x4bb168){const _0x1d5a29=a8_0x18bf58;return{'id':_0x4bb168['id'],'appCode':_0x4bb168['appCode'],'name':_0x4bb168[_0x1d5a29(0x1cd)],'artifactType':_0x4bb168[_0x1d5a29(0x1b9)],'source':_0x4bb168[_0x1d5a29(0x1b1)],'favorite':_0x4bb168[_0x1d5a29(0x1e7)],'deleted':_0x4bb168[_0x1d5a29(0x1e2)],'content':_0x4bb168[_0x1d5a29(0x1d9)]??'','compiledContent':_0x4bb168['compiledContent'],'metadata':_0x4bb168[_0x1d5a29(0x1da)]??{},'createTime':_0x4bb168['createTime'],'updateTime':_0x4bb168[_0x1d5a29(0x1ae)]};}function readFavoriteFlag(_0x256afc){const _0x545f00=a8_0x18bf58,_0x3c0603=_0x256afc[_0x545f00(0x1d5)]('favorite');return _0x3c0603===undefined||_0x3c0603===null||_0x3c0603===''?undefined:_0x256afc[_0x545f00(0x1b3)](_0x545f00(0x1e7));}const artifactList={'service':'artifact','command':a8_0x18bf58(0x1d2),'description':a8_0x18bf58(0x1f1),'risk':a8_0x18bf58(0x1b2),'flags':[{'name':a8_0x18bf58(0x1b1),'type':a8_0x18bf58(0x1df),'description':a8_0x18bf58(0x1c8)},{'name':a8_0x18bf58(0x1e7),'type':a8_0x18bf58(0x1bf),'description':a8_0x18bf58(0x1b6)},VERBOSE_FLAG],async 'execute'(_0x1c1902){const _0xbb1a08=a8_0x18bf58,_0x452ae3=await listRuntimeArtifacts(_0x1c1902[_0xbb1a08(0x1f6)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1c1902[_0xbb1a08(0x1ef)]('source')?{'source':_0x1c1902['str']('source')}:{},...readFavoriteFlag(_0x1c1902)!==undefined?{'favorite':readFavoriteFlag(_0x1c1902)}:{}});return{'ok':!![],'data':{'total':_0x452ae3['length'],'items':_0x1c1902[_0xbb1a08(0x1b3)](_0xbb1a08(0x1ce))?_0x452ae3:_0x452ae3[_0xbb1a08(0x1b7)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a8_0x18bf58(0x1ed),'description':a8_0x18bf58(0x1f7),'risk':a8_0x18bf58(0x1b2),'flags':[{...ID_FLAG,'description':a8_0x18bf58(0x1e9)}],async 'execute'(_0x35762d){const _0xd7b3e9=a8_0x18bf58,_0x27e70f=await getRuntimeArtifact(_0x35762d[_0xd7b3e9(0x1f3)]('id'),_0x35762d[_0xd7b3e9(0x1f6)]);return{'ok':!![],'data':detailArtifact(_0x27e70f)};}},artifactCreate={'service':'artifact','command':a8_0x18bf58(0x1bd),'description':a8_0x18bf58(0x1d7),'risk':a8_0x18bf58(0x1d8),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3964d6){const _0x4256e4=a8_0x18bf58,_0x1631ae=buildArtifactInput(_0x3964d6),_0x3e0b78=await createRuntimeArtifact(_0x3964d6['appCode'],_0x1631ae);return{'ok':!![],'data':detailArtifact(_0x3e0b78),'message':_0x4256e4(0x1b0)+_0x3e0b78['id']+(_0x3e0b78['name']?'\x20('+_0x3e0b78['name']+')':'')};},async 'dryRun'(_0x16784c){const _0x56e0ef=a8_0x18bf58,_0x253a64=buildArtifactInput(_0x16784c);return dryRun(_0x56e0ef(0x1dc),_0x56e0ef(0x1cf))[_0x56e0ef(0x1e3)]({'appCode':_0x16784c[_0x56e0ef(0x1f6)],..._0x253a64})[_0x56e0ef(0x1d4)](_0x56e0ef(0x1db))[_0x56e0ef(0x1ca)]();}},artifactUpdate={'service':a8_0x18bf58(0x1b4),'command':a8_0x18bf58(0x1e6),'description':a8_0x18bf58(0x1d6),'risk':a8_0x18bf58(0x1d8),'flags':[{...ID_FLAG,'description':a8_0x18bf58(0x1e9)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1d1dac){const _0x424b4d=a8_0x18bf58,_0x4b8cd9=_0x1d1dac['num']('id'),_0x23cddf=buildArtifactInput(_0x1d1dac),_0x56fbe4=await updateRuntimeArtifact(_0x4b8cd9,_0x1d1dac['appCode'],_0x23cddf);return{'ok':!![],'data':detailArtifact(_0x56fbe4),'message':_0x424b4d(0x1f2)+_0x56fbe4['id']+(_0x56fbe4[_0x424b4d(0x1cd)]?'\x20('+_0x56fbe4[_0x424b4d(0x1cd)]+')':'')};},async 'dryRun'(_0x2f6439){const _0x3183fc=a8_0x18bf58,_0x32cca3=_0x2f6439['num']('id'),_0xb4549d=buildArtifactInput(_0x2f6439);return dryRun('POST',_0x3183fc(0x1f4)+_0x32cca3+'/update')['body']({'appCode':_0x2f6439[_0x3183fc(0x1f6)],..._0xb4549d})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x32cca3)[_0x3183fc(0x1ca)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
|
|
1
|
+
const a8_0x5a60b8=a8_0x5f31;(function(_0x54c368,_0x48eb21){const _0x54b380=a8_0x5f31,_0x327a0b=_0x54c368();while(!![]){try{const _0x41fbc8=parseInt(_0x54b380(0x1da))/0x1*(parseInt(_0x54b380(0x1b7))/0x2)+-parseInt(_0x54b380(0x1c7))/0x3+parseInt(_0x54b380(0x1a1))/0x4+-parseInt(_0x54b380(0x1c3))/0x5*(-parseInt(_0x54b380(0x1b5))/0x6)+-parseInt(_0x54b380(0x1d5))/0x7*(-parseInt(_0x54b380(0x1ac))/0x8)+parseInt(_0x54b380(0x193))/0x9*(-parseInt(_0x54b380(0x1d7))/0xa)+-parseInt(_0x54b380(0x1a2))/0xb;if(_0x41fbc8===_0x48eb21)break;else _0x327a0b['push'](_0x327a0b['shift']());}catch(_0x3fcc6e){_0x327a0b['push'](_0x327a0b['shift']());}}}(a8_0xf11f,0x2e07c));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x5a60b8(0x1b4),ARTIFACT_SOURCE_AGENT=a8_0x5a60b8(0x1bf),ALLOWED_REACT_MODULE_IMPORTS=['react',a8_0x5a60b8(0x1b8),'lodash',a8_0x5a60b8(0x1cd),a8_0x5a60b8(0x1a5),a8_0x5a60b8(0x1c9)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x5a60b8(0x1d2)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x5a60b8(0x1a7),'type':a8_0x5a60b8(0x1df),'required':!![],'description':a8_0x5a60b8(0x1c5)},ARTIFACT_NAME_FLAG={'name':a8_0x5a60b8(0x1d3),'type':'string','description':a8_0x5a60b8(0x1be)},METADATA_FLAG={'name':'metadata','type':a8_0x5a60b8(0x1df),'description':a8_0x5a60b8(0x1d4)};function a8_0xf11f(){const _0x4290b3=['filter','length','503368NbQMet','3962860epXNCr','num','--metadata\x20must\x20be\x20a\x20JSON\x20object.','antd','build','file','read','trim','File\x20not\x20found:\x20','update','2297712wthhLG','isArray','/client/artifact/','react_module\x20imports\x20are\x20limited\x20to:\x20','favorite','File\x20path\x20is\x20required.','utf8','validation','react_module','2161542llJMtQ','Artifact\x20ID','914tSWeNY','react-dom','metadata','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','startsWith','List\x20current-app\x20react_module\x20Artifacts','flag','Artifact\x20display\x20name','AGENT','/update','Created\x20Artifact\x20','POST','5GdVQJA','split','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','isFile','741594sJywRV','str','@ant-design/icons','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','exec','compiledContent','dayjs','createTime','some','description','artifactType','join','name','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','7URjQmA','create','20dFaDXF','deleted','list','149tnlNHG','bool','write','appCode','map','string','artifact','204336GvMyNN','source','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','File\x20is\x20not\x20a\x20regular\x20file:\x20','test','Preview:\x20create\x20react_module\x20Artifact','lastIndex','detail','Show\x20one\x20Artifact\x20by\x20id','body','updateTime','includes'];a8_0xf11f=function(){return _0x4290b3;};return a8_0xf11f();}function isPlainObject(_0x4ea2e1){const _0xc1948e=a8_0x5a60b8;return typeof _0x4ea2e1==='object'&&_0x4ea2e1!==null&&!Array[_0xc1948e(0x1ad)](_0x4ea2e1);}function readSourceFile(_0x191729){const _0x2b3601=a8_0x5a60b8;if(!_0x191729)throw CliErrors['validation'](_0x2b3601(0x1b1));if(!existsSync(_0x191729))throw CliErrors[_0x2b3601(0x1b3)](_0x2b3601(0x1aa)+_0x191729);if(!statSync(_0x191729)[_0x2b3601(0x1c6)]())throw CliErrors['validation'](_0x2b3601(0x196)+_0x191729);const _0x44eab9=readFileSync(_0x191729,_0x2b3601(0x1b2));return validateReactModuleSource(_0x44eab9),_0x44eab9;}function parseMetadata(_0x5e5306){const _0x2db6b6=a8_0x5a60b8;if(!_0x5e5306)return undefined;let _0x4afda0;try{_0x4afda0=JSON['parse'](_0x5e5306);}catch{throw CliErrors[_0x2db6b6(0x1b3)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x5e5306);}if(!isPlainObject(_0x4afda0))throw CliErrors[_0x2db6b6(0x1b3)](_0x2db6b6(0x1a4));const _0x37f17c={..._0x4afda0};return delete _0x37f17c[_0x2db6b6(0x1cc)],_0x37f17c;}function a8_0x5f31(_0x54abc3,_0xd56ea8){_0x54abc3=_0x54abc3-0x193;const _0xf11f9d=a8_0xf11f();let _0x5f31e1=_0xf11f9d[_0x54abc3];return _0x5f31e1;}function getPackageName(_0x179e49){const _0x41653c=a8_0x5a60b8;if(_0x179e49[_0x41653c(0x1bb)]('@')){const [_0x5bd1af,_0x509105]=_0x179e49[_0x41653c(0x1c4)]('/');return _0x5bd1af&&_0x509105?_0x5bd1af+'/'+_0x509105:_0x179e49;}return _0x179e49[_0x41653c(0x1c4)]('/')[0x0]||_0x179e49;}function validateAllowedImports(_0x20d6ec){const _0x3a67a1=a8_0x5a60b8,_0x575664=new Set();for(const _0x2d9449 of IMPORT_SOURCE_PATTERNS){_0x2d9449[_0x3a67a1(0x199)]=0x0;let _0x512e13;while((_0x512e13=_0x2d9449[_0x3a67a1(0x1cb)](_0x20d6ec))!==null){const _0x2bab7a=_0x512e13[0x1]?.[_0x3a67a1(0x1a9)]();_0x2bab7a&&_0x575664['add'](_0x2bab7a);}}const _0x4dc644=[..._0x575664][_0x3a67a1(0x1de)](getPackageName)[_0x3a67a1(0x19f)](_0x1f1863=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3a67a1(0x19e)](_0x1f1863));if(_0x4dc644[_0x3a67a1(0x1a0)]>0x0)throw CliErrors['validation'](_0x3a67a1(0x1af)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x4dc644)]['join'](',\x20'));}export function validateReactModuleSource(_0x163818){const _0x5a3c91=a8_0x5a60b8;if(!_0x163818[_0x5a3c91(0x1a9)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x5a3c91(0x1cf)](_0x282570=>_0x282570[_0x5a3c91(0x197)](_0x163818)))throw CliErrors[_0x5a3c91(0x1b3)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x163818);}function buildArtifactInput(_0x1aaea3){const _0x24b489=a8_0x5a60b8,_0x4e1294=readSourceFile(_0x1aaea3['str'](_0x24b489(0x1a7))),_0x4156a7=_0x1aaea3['str'](_0x24b489(0x1d3))[_0x24b489(0x1a9)](),_0x1f0fc1=parseMetadata(_0x1aaea3[_0x24b489(0x1c8)](_0x24b489(0x1b9)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4156a7?{'name':_0x4156a7}:{},'content':_0x4e1294,..._0x1f0fc1?{'metadata':_0x1f0fc1}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x40e083){const _0x5d3541=a8_0x5a60b8;return{'id':_0x40e083['id'],'name':_0x40e083['name'],'artifactType':_0x40e083[_0x5d3541(0x1d1)],'source':_0x40e083[_0x5d3541(0x194)],'favorite':_0x40e083['favorite'],'deleted':_0x40e083[_0x5d3541(0x1d8)],'createTime':_0x40e083[_0x5d3541(0x1ce)],'updateTime':_0x40e083[_0x5d3541(0x19d)]};}function detailArtifact(_0x5dcc62){const _0x9c85fc=a8_0x5a60b8;return{'id':_0x5dcc62['id'],'appCode':_0x5dcc62[_0x9c85fc(0x1dd)],'name':_0x5dcc62[_0x9c85fc(0x1d3)],'artifactType':_0x5dcc62[_0x9c85fc(0x1d1)],'source':_0x5dcc62[_0x9c85fc(0x194)],'favorite':_0x5dcc62[_0x9c85fc(0x1b0)],'deleted':_0x5dcc62['deleted'],'content':_0x5dcc62['content']??'','compiledContent':_0x5dcc62[_0x9c85fc(0x1cc)],'metadata':_0x5dcc62[_0x9c85fc(0x1b9)]??{},'createTime':_0x5dcc62[_0x9c85fc(0x1ce)],'updateTime':_0x5dcc62[_0x9c85fc(0x19d)]};}function readFavoriteFlag(_0x5be09d){const _0x4eaa72=a8_0x5a60b8,_0x1e9f81=_0x5be09d[_0x4eaa72(0x1bd)](_0x4eaa72(0x1b0));return _0x1e9f81===undefined||_0x1e9f81===null||_0x1e9f81===''?undefined:_0x5be09d[_0x4eaa72(0x1db)]('favorite');}const artifactList={'service':a8_0x5a60b8(0x1e0),'command':a8_0x5a60b8(0x1d9),'description':a8_0x5a60b8(0x1bc),'risk':a8_0x5a60b8(0x1a8),'flags':[{'name':a8_0x5a60b8(0x194),'type':'string','description':a8_0x5a60b8(0x195)},{'name':a8_0x5a60b8(0x1b0),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0xff1f8a){const _0x202dbe=a8_0x5a60b8,_0x11271a=await listRuntimeArtifacts(_0xff1f8a[_0x202dbe(0x1dd)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0xff1f8a['str'](_0x202dbe(0x194))?{'source':_0xff1f8a[_0x202dbe(0x1c8)]('source')}:{},...readFavoriteFlag(_0xff1f8a)!==undefined?{'favorite':readFavoriteFlag(_0xff1f8a)}:{}});return{'ok':!![],'data':{'total':_0x11271a[_0x202dbe(0x1a0)],'items':_0xff1f8a[_0x202dbe(0x1db)]('verbose')?_0x11271a:_0x11271a['map'](summarizeArtifact)}};}},artifactDetail={'service':a8_0x5a60b8(0x1e0),'command':a8_0x5a60b8(0x19a),'description':a8_0x5a60b8(0x19b),'risk':a8_0x5a60b8(0x1a8),'flags':[{...ID_FLAG,'description':a8_0x5a60b8(0x1b6)}],async 'execute'(_0x230e79){const _0x1ad8c4=a8_0x5a60b8,_0x4ff404=await getRuntimeArtifact(_0x230e79[_0x1ad8c4(0x1a3)]('id'),_0x230e79[_0x1ad8c4(0x1dd)]);return{'ok':!![],'data':detailArtifact(_0x4ff404)};}},artifactCreate={'service':'artifact','command':a8_0x5a60b8(0x1d6),'description':a8_0x5a60b8(0x1ca),'risk':a8_0x5a60b8(0x1dc),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1f14ce){const _0x5ed642=a8_0x5a60b8,_0x393fc9=buildArtifactInput(_0x1f14ce),_0x261ae6=await createRuntimeArtifact(_0x1f14ce['appCode'],_0x393fc9);return{'ok':!![],'data':detailArtifact(_0x261ae6),'message':_0x5ed642(0x1c1)+_0x261ae6['id']+(_0x261ae6[_0x5ed642(0x1d3)]?'\x20('+_0x261ae6[_0x5ed642(0x1d3)]+')':'')};},async 'dryRun'(_0x6db024){const _0x4c443f=a8_0x5a60b8,_0x4ef7e8=buildArtifactInput(_0x6db024);return dryRun('POST','/client/artifact/create')[_0x4c443f(0x19c)]({'appCode':_0x6db024[_0x4c443f(0x1dd)],..._0x4ef7e8})[_0x4c443f(0x1d0)](_0x4c443f(0x198))[_0x4c443f(0x1a6)]();}},artifactUpdate={'service':a8_0x5a60b8(0x1e0),'command':a8_0x5a60b8(0x1ab),'description':a8_0x5a60b8(0x1ba),'risk':'write','flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4c170f){const _0x55c9f7=a8_0x5a60b8,_0x25cfbd=_0x4c170f[_0x55c9f7(0x1a3)]('id'),_0x2a03f1=buildArtifactInput(_0x4c170f),_0x25f514=await updateRuntimeArtifact(_0x25cfbd,_0x4c170f[_0x55c9f7(0x1dd)],_0x2a03f1);return{'ok':!![],'data':detailArtifact(_0x25f514),'message':'Updated\x20Artifact\x20'+_0x25f514['id']+(_0x25f514[_0x55c9f7(0x1d3)]?'\x20('+_0x25f514[_0x55c9f7(0x1d3)]+')':'')};},async 'dryRun'(_0x483473){const _0x4f032b=a8_0x5a60b8,_0x36684b=_0x483473['num']('id'),_0x1c0911=buildArtifactInput(_0x483473);return dryRun(_0x4f032b(0x1c2),_0x4f032b(0x1ae)+_0x36684b+_0x4f032b(0x1c0))['body']({'appCode':_0x483473['appCode'],..._0x1c0911})[_0x4f032b(0x1d0)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x36684b)[_0x4f032b(0x1a6)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0x21a553=a9_0x3837;(function(_0x5b9c30,_0x21a454){const _0x2bbdc1=a9_0x3837,_0x4ec04a=_0x5b9c30();while(!![]){try{const _0x41d543=-parseInt(_0x2bbdc1(0x182))/0x1*(-parseInt(_0x2bbdc1(0x189))/0x2)+-parseInt(_0x2bbdc1(0x193))/0x3*(-parseInt(_0x2bbdc1(0x14f))/0x4)+parseInt(_0x2bbdc1(0x152))/0x5*(parseInt(_0x2bbdc1(0x14b))/0x6)+-parseInt(_0x2bbdc1(0x175))/0x7*(parseInt(_0x2bbdc1(0x16d))/0x8)+-parseInt(_0x2bbdc1(0x146))/0x9*(-parseInt(_0x2bbdc1(0x198))/0xa)+parseInt(_0x2bbdc1(0x168))/0xb+parseInt(_0x2bbdc1(0x148))/0xc*(-parseInt(_0x2bbdc1(0x145))/0xd);if(_0x41d543===_0x21a454)break;else _0x4ec04a['push'](_0x4ec04a['shift']());}catch(_0x11172c){_0x4ec04a['push'](_0x4ec04a['shift']());}}}(a9_0x5410,0xb242a));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';function a9_0x5410(){const _0x454bdc=['string','length','cancelled','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','ACCESS_KEY','Auth\x20mode:\x20','validation','AccessKey:\x20','Show\x20current\x20authentication\x20status','userCenterDisplayName','Shorthand\x20for\x20--access-key','No\x20AccessKey\x20found\x20in\x20','envName','`auth\x20login`\x20does\x20not\x20support\x20--yes.','trim','production','global','stdout','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','13409979SHeIcF','nonInteractive','str','\x20config.\x20Nothing\x20to\x20clear.','\x20doctor','40IxCpea','\x20auth\x20status','development','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','status','access-key','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','451507PdhadB','stdin','\x20\x20export\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20Verify:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20accessKey\x20from\x20config','Invalid\x20accessKey\x20format:\x20\x22','init','boolean','\x20env\x20var','bool','349809YyOUwc','ClientAk','push','write','\x20scope.','\x20config.','global-default','2ExDcXS','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Write\x20to\x20global\x20config\x20(default)','newConfigFileName','AccessKey\x20(ak_xxx...)','Option\x20A:\x20','=ak_xxx','Auth\x20config\x20reinitialized\x20in\x20','AccessKey\x20cleared\x20from\x20','2523dxSoQB','info','Tip:\x20you\x20can\x20also\x20run:','auth','isTTY','297090XUIRsz','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Then\x20verify\x20with:\x20','join','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','project','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','4979hrqLpB','171XCbUXf','Read\x20from\x20global\x20config\x20(default)','66564pOVNuo','login','slice','6XWjGZd','env','Option\x20B:\x20apps\x20config\x20(','accessKey','4868ppfAzr','read','Use\x20`','101470FqhQNC','Clear\x20from\x20global\x20config\x20(default)','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)'];a9_0x5410=function(){return _0x454bdc;};return a9_0x5410();}import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a9_0x3837(_0x8f865b,_0x365e51){_0x8f865b=_0x8f865b-0x141;const _0x5410ca=a9_0x5410();let _0x383785=_0x5410ca[_0x8f865b];return _0x383785;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x430b42=a9_0x3837;writeCliSideChannelLine(_0x430b42(0x178)+PRODUCT_CONFIG[_0x430b42(0x15e)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x430b42(0x195)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x430b42(0x18a));}function buildAccessKeySetupGuide(){const _0x5c4784=a9_0x3837;return[_0x5c4784(0x178)+PRODUCT_CONFIG[_0x5c4784(0x15e)]+':',USER_ACCESS_KEY_CREATE_URL,_0x5c4784(0x18b)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x5c4784(0x141)]('\x0a');}function canPromptForAccessKey(_0xac27a0){const _0x24af3e=a9_0x3837;return!_0xac27a0[_0x24af3e(0x169)]&&process[_0x24af3e(0x176)]['isTTY']!==![]&&process[_0x24af3e(0x166)][_0x24af3e(0x197)]!==![];}function resolveAuthScopeFlags(_0x4026d7){const _0x3f993c=a9_0x3837;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4026d7['bool'](_0x3f993c(0x165)),'explicitProject':_0x4026d7[_0x3f993c(0x181)](_0x3f993c(0x143)),'policy':_0x3f993c(0x188)}));}async function resolveAuthWriteInput(_0x3bdfa9){const _0x18383f=a9_0x3837;let _0x103dbe=(_0x3bdfa9[_0x18383f(0x16a)](_0x18383f(0x172))||_0x3bdfa9['str']('ak')||'')[_0x18383f(0x163)]();const _0x59b586=(_0x3bdfa9[_0x18383f(0x16a)](_0x18383f(0x14c))||'')[_0x18383f(0x163)]();if(!_0x103dbe&&canPromptForAccessKey(_0x3bdfa9))try{showAccessKeyCreateHint(),_0x103dbe=await promptAccessKey('');}catch(_0x43a61e){if(isAbortPrompt(_0x43a61e))throw CliErrors[_0x18383f(0x157)]();throw _0x43a61e;}if(!_0x103dbe)throw CliErrors[_0x18383f(0x15b)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x103dbe))throw CliErrors[_0x18383f(0x15b)](_0x18383f(0x17d)+_0x103dbe+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x59b586)return{'accessKey':_0x103dbe};const _0x53bc71=normalizeEnv(_0x59b586);return{'accessKey':_0x103dbe,'env':isDaily(_0x53bc71)?'daily':isDev(_0x53bc71)?_0x18383f(0x16f):_0x18383f(0x164)};}export const authDefinitions=[{'service':'auth','command':a9_0x21a553(0x149),'description':a9_0x21a553(0x154),'risk':a9_0x21a553(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x21a553(0x155),'description':a9_0x21a553(0x18e)},{'name':'ak','type':a9_0x21a553(0x155),'description':a9_0x21a553(0x15f)},{'name':'global','type':a9_0x21a553(0x17f),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x21a553(0x143),'type':'boolean','description':a9_0x21a553(0x17b),'default':![]}],async 'execute'(_0x10940b){const _0x131725=a9_0x21a553;if(_0x10940b[_0x131725(0x181)]('yes'))throw CliErrors[_0x131725(0x15b)](_0x131725(0x162),_0x131725(0x151)+CLI_BIN_NAME+_0x131725(0x173)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x1365dd=(_0x10940b['str']('access-key')||_0x10940b[_0x131725(0x16a)]('ak')||'')[_0x131725(0x163)]();if(!_0x1365dd&&_0x10940b[_0x131725(0x169)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x2c1357=await resolveAuthWriteInput(_0x10940b),_0x45222d=resolveAuthScopeFlags(_0x10940b),_0x43e8fe=readScopedConfig(_0x45222d);_0x43e8fe[_0x131725(0x14e)]=_0x2c1357[_0x131725(0x14e)];_0x2c1357[_0x131725(0x14c)]&&(_0x43e8fe[_0x131725(0x14c)]=_0x2c1357[_0x131725(0x14c)]);writeScopedConfig(_0x43e8fe,_0x45222d);const _0x21f0f3=_0x45222d[_0x131725(0x165)]?_0x131725(0x165):'project',_0xfb4c6f=_0x43e8fe[_0x131725(0x14c)]?'\x20Current\x20env:\x20'+_0x43e8fe[_0x131725(0x14c)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x21f0f3+_0x131725(0x187)+_0xfb4c6f+_0x131725(0x179)+CLI_BIN_NAME+_0x131725(0x16e)};}},{'service':a9_0x21a553(0x196),'command':a9_0x21a553(0x17e),'description':a9_0x21a553(0x144),'risk':a9_0x21a553(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x21a553(0x172),'type':a9_0x21a553(0x155),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x21a553(0x155),'description':a9_0x21a553(0x15f)},{'name':a9_0x21a553(0x14c),'type':a9_0x21a553(0x155),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':'global','type':a9_0x21a553(0x17f),'description':a9_0x21a553(0x18c),'default':!![]},{'name':a9_0x21a553(0x143),'type':a9_0x21a553(0x17f),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x11083f){const _0x463877=a9_0x21a553,_0x46527f=await resolveAuthWriteInput(_0x11083f),_0x2b8435=resolveAuthScopeFlags(_0x11083f),_0x196333={'accessKey':_0x46527f[_0x463877(0x14e)]};_0x46527f['env']&&(_0x196333[_0x463877(0x14c)]=_0x46527f[_0x463877(0x14c)]);writeScopedConfig(_0x196333,_0x2b8435);const _0x40e670=_0x2b8435[_0x463877(0x165)]?'global':'project',_0x131289=_0x196333[_0x463877(0x14c)]?'\x20Current\x20env:\x20'+_0x196333[_0x463877(0x14c)]+'.':'';return{'ok':!![],'message':_0x463877(0x191)+_0x40e670+_0x463877(0x186)+_0x131289+_0x463877(0x179)+CLI_BIN_NAME+_0x463877(0x16e)};}},{'service':a9_0x21a553(0x196),'command':'logout','description':a9_0x21a553(0x17c),'risk':a9_0x21a553(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x21a553(0x165),'type':a9_0x21a553(0x17f),'description':a9_0x21a553(0x153),'default':!![]},{'name':'project','type':a9_0x21a553(0x17f),'description':a9_0x21a553(0x199),'default':![]}],async 'execute'(_0x27981e){const _0x709a32=a9_0x21a553,_0x5a1fb3=resolveAuthScopeFlags(_0x27981e),_0x321399=readScopedConfig(_0x5a1fb3),_0x2a80de=!!_0x321399[_0x709a32(0x14e)];delete _0x321399[_0x709a32(0x14e)],writeScopedConfig(_0x321399,_0x5a1fb3);const _0x10b1ad=_0x5a1fb3[_0x709a32(0x165)]?_0x709a32(0x165):_0x709a32(0x143);if(_0x2a80de)return{'ok':!![],'message':_0x709a32(0x192)+_0x10b1ad+_0x709a32(0x187)};return{'ok':!![],'message':_0x709a32(0x160)+_0x10b1ad+_0x709a32(0x16b)};}},{'service':a9_0x21a553(0x196),'command':a9_0x21a553(0x171),'description':a9_0x21a553(0x15d),'risk':a9_0x21a553(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x21a553(0x165),'type':a9_0x21a553(0x17f),'description':a9_0x21a553(0x147),'default':!![]},{'name':a9_0x21a553(0x143),'type':a9_0x21a553(0x17f),'description':a9_0x21a553(0x17a),'default':![]}],async 'execute'(_0x264fed){const _0x36ffc7=a9_0x21a553,_0x587447=resolveAuthScopeFlags(_0x264fed),_0x4eb87a=readScopedConfig(_0x587447),_0x461a15=productEnvName(_0x36ffc7(0x159)),_0x915c45=productEnv('ACCESS_KEY')||undefined,_0x15f1d8=_0x4eb87a[_0x36ffc7(0x14e)]||undefined,_0xe07914=_0x915c45||_0x15f1d8,_0x1a5732=_0x915c45?_0x461a15+_0x36ffc7(0x180):_0x15f1d8?(_0x587447['global']?'global':_0x36ffc7(0x143))+'\x20config':null,_0x1893d6=[_0x36ffc7(0x15a)+AUTH_MODE[_0x36ffc7(0x183)]];if(_0xe07914){const _0x216fac=_0xe07914[_0x36ffc7(0x156)]>0x8?''+_0xe07914[_0x36ffc7(0x14a)](0x0,0x8)+'*'['repeat'](_0xe07914['length']-0x8):_0xe07914;_0x1893d6['push'](_0x36ffc7(0x15c)+_0x216fac+(_0x1a5732?'\x20(via\x20'+_0x1a5732+')':''));}return!_0xe07914&&(_0x1893d6[_0x36ffc7(0x184)](''),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x158)),_0x1893d6[_0x36ffc7(0x184)](''),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x18f)+CLI_BIN_NAME+_0x36ffc7(0x167)),_0x1893d6['push'](''),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x14d)+PRODUCT_CONFIG[_0x36ffc7(0x18d)]+')'),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x174)),_0x1893d6['push'](''),_0x1893d6['push']('Option\x20C:\x20environment\x20variable'),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x177)+_0x461a15+_0x36ffc7(0x190)),_0x1893d6[_0x36ffc7(0x184)](''),_0x1893d6[_0x36ffc7(0x184)](_0x36ffc7(0x19a)+CLI_BIN_NAME+_0x36ffc7(0x16e)),_0x1893d6['push'](_0x36ffc7(0x142)+CLI_BIN_NAME+_0x36ffc7(0x16c))),{'ok':!![],'message':_0x1893d6[_0x36ffc7(0x141)]('\x0a')};}},{'service':a9_0x21a553(0x196),'command':a9_0x21a553(0x194),'description':a9_0x21a553(0x170),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x433d5f){const _0xd39dad=a9_0x21a553,_0x2b3be6=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2b3be6,'meta':{'env':_0x433d5f[_0xd39dad(0x161)]??_0xd39dad(0x164)}}};}}];
|
|
1
|
+
const a9_0x570dd5=a9_0x2602;(function(_0x48f1c5,_0x4917dd){const _0x5aca3b=a9_0x2602,_0x47afc8=_0x48f1c5();while(!![]){try{const _0x4c2531=-parseInt(_0x5aca3b(0x8c))/0x1+-parseInt(_0x5aca3b(0xcb))/0x2+parseInt(_0x5aca3b(0x93))/0x3+parseInt(_0x5aca3b(0xc6))/0x4+-parseInt(_0x5aca3b(0xd3))/0x5*(parseInt(_0x5aca3b(0xab))/0x6)+-parseInt(_0x5aca3b(0xc7))/0x7*(-parseInt(_0x5aca3b(0xbd))/0x8)+parseInt(_0x5aca3b(0xac))/0x9*(-parseInt(_0x5aca3b(0xaa))/0xa);if(_0x4c2531===_0x4917dd)break;else _0x47afc8['push'](_0x47afc8['shift']());}catch(_0x3b9dd7){_0x47afc8['push'](_0x47afc8['shift']());}}}(a9_0x2e03,0x501f8));function a9_0x2e03(){const _0x2a8074=['1213701CxwXrn','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','envName','validation','write','env','AccessKey\x20(ak_xxx...)','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Auth\x20mode:\x20','\x20Current\x20env:\x20','\x20env\x20var','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','AccessKey\x20saved\x20to\x20','boolean','Option\x20C:\x20environment\x20variable','No\x20AccessKey\x20found\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Tip:\x20you\x20can\x20also\x20run:','\x20config.','logout','length','cancelled','370tOmxkh','385338BrTSmc','3069XkvQvt','AccessKey:\x20','str','Clear\x20accessKey\x20from\x20config','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','ClientAk','Option\x20A:\x20','Shorthand\x20for\x20--access-key','yes','\x20auth\x20status','userCenterDisplayName','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Show\x20current\x20authentication\x20status','repeat','newConfigFileName','string','8tHHYUq','status','join','ACCESS_KEY','Write\x20to\x20global\x20config\x20(default)','auth','global-default','info','`auth\x20login`\x20does\x20not\x20support\x20--yes.','1675252JigjfC','2856658emVPUE','\x20Verify:\x20','read','Read\x20from\x20global\x20config\x20(default)','680058PgcWpe','Missing\x20accessKey.','bool','test','push','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20doctor','slice','5GEoaBc','access-key','Use\x20`','Clear\x20from\x20global\x20config\x20(default)','accessKey','production','isTTY','login','global','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Auth\x20config\x20reinitialized\x20in\x20','project','486421smFrSH','Option\x20B:\x20apps\x20config\x20(','\x20scope.','\x20config','trim','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'];a9_0x2e03=function(){return _0x2a8074;};return a9_0x2e03();}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a9_0x2602(_0xd9f24b,_0x1994f0){_0xd9f24b=_0xd9f24b-0x82;const _0x2e0304=a9_0x2e03();let _0x26026c=_0x2e0304[_0xd9f24b];return _0x26026c;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x315a37=a9_0x2602;writeCliSideChannelLine(_0x315a37(0x9a)+PRODUCT_CONFIG[_0x315a37(0xb7)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x315a37(0xa5)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x315a37(0xa4));}function buildAccessKeySetupGuide(){const _0x335a02=a9_0x2602;return[_0x335a02(0x9a)+PRODUCT_CONFIG[_0x335a02(0xb7)]+':',USER_ACCESS_KEY_CREATE_URL,_0x335a02(0xd0)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x335a02(0xbf)]('\x0a');}function canPromptForAccessKey(_0x496bea){const _0x2eaf8f=a9_0x2602;return!_0x496bea['nonInteractive']&&process['stdin'][_0x2eaf8f(0x86)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x95966e){const _0x15d7d4=a9_0x2602;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x95966e[_0x15d7d4(0xcd)](_0x15d7d4(0x88)),'explicitProject':_0x95966e['bool'](_0x15d7d4(0x8b)),'policy':_0x15d7d4(0xc3)}));}async function resolveAuthWriteInput(_0x10392b){const _0x4357ba=a9_0x2602;let _0x47ebd8=(_0x10392b[_0x4357ba(0xae)]('access-key')||_0x10392b[_0x4357ba(0xae)]('ak')||'')[_0x4357ba(0x90)]();const _0x262f23=(_0x10392b[_0x4357ba(0xae)](_0x4357ba(0x98))||'')[_0x4357ba(0x90)]();if(!_0x47ebd8&&canPromptForAccessKey(_0x10392b))try{showAccessKeyCreateHint(),_0x47ebd8=await promptAccessKey('');}catch(_0x4a85e5){if(isAbortPrompt(_0x4a85e5))throw CliErrors[_0x4357ba(0xa9)]();throw _0x4a85e5;}if(!_0x47ebd8)throw CliErrors[_0x4357ba(0x96)](_0x4357ba(0xcc),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x4357ba(0xce)](_0x47ebd8))throw CliErrors[_0x4357ba(0x96)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x47ebd8+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x262f23)return{'accessKey':_0x47ebd8};const _0x1a35c8=normalizeEnv(_0x262f23);return{'accessKey':_0x47ebd8,'env':isDaily(_0x1a35c8)?'daily':isDev(_0x1a35c8)?'development':'production'};}export const authDefinitions=[{'service':'auth','command':a9_0x570dd5(0x87),'description':a9_0x570dd5(0x9f),'risk':a9_0x570dd5(0x97),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x570dd5(0xbc),'description':a9_0x570dd5(0x99)},{'name':'ak','type':a9_0x570dd5(0xbc),'description':a9_0x570dd5(0xb4)},{'name':a9_0x570dd5(0x88),'type':a9_0x570dd5(0xa1),'description':a9_0x570dd5(0xc1),'default':!![]},{'name':a9_0x570dd5(0x8b),'type':a9_0x570dd5(0xa1),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3bed10){const _0x5dfcf5=a9_0x570dd5;if(_0x3bed10[_0x5dfcf5(0xcd)](_0x5dfcf5(0xb5)))throw CliErrors[_0x5dfcf5(0x96)](_0x5dfcf5(0xc5),_0x5dfcf5(0x82)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x5dfcf5(0x89));const _0x4e519a=(_0x3bed10['str'](_0x5dfcf5(0xd4))||_0x3bed10[_0x5dfcf5(0xae)]('ak')||'')[_0x5dfcf5(0x90)]();if(!_0x4e519a&&_0x3bed10['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x9a579b=await resolveAuthWriteInput(_0x3bed10),_0x223066=resolveAuthScopeFlags(_0x3bed10),_0x5d9e53=readScopedConfig(_0x223066);_0x5d9e53['accessKey']=_0x9a579b[_0x5dfcf5(0x84)];_0x9a579b[_0x5dfcf5(0x98)]&&(_0x5d9e53[_0x5dfcf5(0x98)]=_0x9a579b[_0x5dfcf5(0x98)]);writeScopedConfig(_0x5d9e53,_0x223066);const _0x30ec70=_0x223066['global']?'global':_0x5dfcf5(0x8b),_0x21efea=_0x5d9e53['env']?_0x5dfcf5(0x9d)+_0x5d9e53['env']+'.':'';return{'ok':!![],'message':_0x5dfcf5(0xa0)+_0x30ec70+'\x20config.'+_0x21efea+'\x20Verify:\x20'+CLI_BIN_NAME+_0x5dfcf5(0xb6)};}},{'service':a9_0x570dd5(0xc2),'command':'init','description':a9_0x570dd5(0x91),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x570dd5(0xd4),'type':'string','description':a9_0x570dd5(0x99)},{'name':'ak','type':a9_0x570dd5(0xbc),'description':a9_0x570dd5(0xb4)},{'name':a9_0x570dd5(0x98),'type':a9_0x570dd5(0xbc),'description':a9_0x570dd5(0x92)},{'name':'global','type':a9_0x570dd5(0xa1),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x570dd5(0x8b),'type':a9_0x570dd5(0xa1),'description':a9_0x570dd5(0xb1),'default':![]}],async 'execute'(_0x144fb6){const _0xe16dbc=a9_0x570dd5,_0x119b98=await resolveAuthWriteInput(_0x144fb6),_0x3505a9=resolveAuthScopeFlags(_0x144fb6),_0x37cf73={'accessKey':_0x119b98[_0xe16dbc(0x84)]};_0x119b98[_0xe16dbc(0x98)]&&(_0x37cf73[_0xe16dbc(0x98)]=_0x119b98['env']);writeScopedConfig(_0x37cf73,_0x3505a9);const _0x4cbf70=_0x3505a9[_0xe16dbc(0x88)]?'global':_0xe16dbc(0x8b),_0x264756=_0x37cf73['env']?_0xe16dbc(0x9d)+_0x37cf73[_0xe16dbc(0x98)]+'.':'';return{'ok':!![],'message':_0xe16dbc(0x8a)+_0x4cbf70+_0xe16dbc(0x8e)+_0x264756+_0xe16dbc(0xc8)+CLI_BIN_NAME+_0xe16dbc(0xb6)};}},{'service':a9_0x570dd5(0xc2),'command':a9_0x570dd5(0xa7),'description':a9_0x570dd5(0xaf),'risk':a9_0x570dd5(0x97),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a9_0x570dd5(0xa1),'description':a9_0x570dd5(0x83),'default':!![]},{'name':a9_0x570dd5(0x8b),'type':'boolean','description':a9_0x570dd5(0xb0),'default':![]}],async 'execute'(_0x10660d){const _0x1d887d=a9_0x570dd5,_0x151f42=resolveAuthScopeFlags(_0x10660d),_0x5e2d49=readScopedConfig(_0x151f42),_0x1ac617=!!_0x5e2d49[_0x1d887d(0x84)];delete _0x5e2d49[_0x1d887d(0x84)],writeScopedConfig(_0x5e2d49,_0x151f42);const _0x407d9d=_0x151f42[_0x1d887d(0x88)]?'global':_0x1d887d(0x8b);if(_0x1ac617)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x407d9d+_0x1d887d(0xa6)};return{'ok':!![],'message':_0x1d887d(0xa3)+_0x407d9d+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a9_0x570dd5(0xc2),'command':a9_0x570dd5(0xbe),'description':a9_0x570dd5(0xb9),'risk':a9_0x570dd5(0xc9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x570dd5(0x88),'type':'boolean','description':a9_0x570dd5(0xca),'default':!![]},{'name':a9_0x570dd5(0x8b),'type':'boolean','description':a9_0x570dd5(0x94),'default':![]}],async 'execute'(_0x2d2836){const _0x4b59d8=a9_0x570dd5,_0x11d42b=resolveAuthScopeFlags(_0x2d2836),_0xff8fa4=readScopedConfig(_0x11d42b),_0x3e02bf=productEnvName(_0x4b59d8(0xc0)),_0x28668c=productEnv('ACCESS_KEY')||undefined,_0x3fa16e=_0xff8fa4[_0x4b59d8(0x84)]||undefined,_0x4bd201=_0x28668c||_0x3fa16e,_0x5ce6e3=_0x28668c?_0x3e02bf+_0x4b59d8(0x9e):_0x3fa16e?(_0x11d42b[_0x4b59d8(0x88)]?_0x4b59d8(0x88):_0x4b59d8(0x8b))+_0x4b59d8(0x8f):null,_0x1df6c1=[_0x4b59d8(0x9c)+AUTH_MODE[_0x4b59d8(0xb2)]];if(_0x4bd201){const _0x111778=_0x4bd201[_0x4b59d8(0xa8)]>0x8?''+_0x4bd201[_0x4b59d8(0xd2)](0x0,0x8)+'*'[_0x4b59d8(0xba)](_0x4bd201[_0x4b59d8(0xa8)]-0x8):_0x4bd201;_0x1df6c1['push'](_0x4b59d8(0xad)+_0x111778+(_0x5ce6e3?'\x20(via\x20'+_0x5ce6e3+')':''));}return!_0x4bd201&&(_0x1df6c1[_0x4b59d8(0xcf)](''),_0x1df6c1[_0x4b59d8(0xcf)](_0x4b59d8(0xb8)),_0x1df6c1[_0x4b59d8(0xcf)](''),_0x1df6c1['push'](_0x4b59d8(0xb3)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x1df6c1[_0x4b59d8(0xcf)](''),_0x1df6c1[_0x4b59d8(0xcf)](_0x4b59d8(0x8d)+PRODUCT_CONFIG[_0x4b59d8(0xbb)]+')'),_0x1df6c1[_0x4b59d8(0xcf)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x1df6c1[_0x4b59d8(0xcf)](''),_0x1df6c1['push'](_0x4b59d8(0xa2)),_0x1df6c1[_0x4b59d8(0xcf)]('\x20\x20export\x20'+_0x3e02bf+'=ak_xxx'),_0x1df6c1[_0x4b59d8(0xcf)](''),_0x1df6c1[_0x4b59d8(0xcf)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),_0x1df6c1['push'](_0x4b59d8(0x9b)+CLI_BIN_NAME+_0x4b59d8(0xd1))),{'ok':!![],'message':_0x1df6c1[_0x4b59d8(0xbf)]('\x0a')};}},{'service':a9_0x570dd5(0xc2),'command':a9_0x570dd5(0xc4),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a9_0x570dd5(0xc9),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x14ba83){const _0x377883=a9_0x570dd5,_0x957892=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x957892,'meta':{'env':_0x14ba83[_0x377883(0x95)]??_0x377883(0x85)}}};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a10_0x9492(_0x3ebdc2,_0xa4e895){_0x3ebdc2=_0x3ebdc2-0xff;const _0x194398=a10_0x1943();let _0x9492ba=_0x194398[_0x3ebdc2];return _0x9492ba;}(function(_0x48247a,_0x416f3a){const _0x2273e3=a10_0x9492,_0xbd2623=_0x48247a();while(!![]){try{const _0x4c6134=parseInt(_0x2273e3(0x10e))/0x1+-parseInt(_0x2273e3(0x106))/0x2*(parseInt(_0x2273e3(0x103))/0x3)+parseInt(_0x2273e3(0x104))/0x4+-parseInt(_0x2273e3(0x101))/0x5*(parseInt(_0x2273e3(0x108))/0x6)+parseInt(_0x2273e3(0x10b))/0x7*(parseInt(_0x2273e3(0x102))/0x8)+-parseInt(_0x2273e3(0x100))/0x9+parseInt(_0x2273e3(0x105))/0xa;if(_0x4c6134===_0x416f3a)break;else _0xbd2623['push'](_0xbd2623['shift']());}catch(_0x50349a){_0xbd2623['push'](_0xbd2623['shift']());}}}(a10_0x1943,0x67c08));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x51cc79=a10_0x9492;super('User\x20aborted\x20prompt'),this[_0x51cc79(0x107)]='AbortPrompt';}}function createSafeRl(){const _0x8335fc=a10_0x9492,_0x49af12=createInterface({'input':process[_0x8335fc(0x10f)],'output':process[_0x8335fc(0x110)]});let _0x2435e5;const _0xfada6a=new Promise((_0x2acf46,_0xfb8b50)=>{const _0x56083a=_0x8335fc;_0x2435e5=()=>{const _0x2e499d=a10_0x9492;_0x2435e5&&(_0x49af12[_0x2e499d(0xff)](_0x2e499d(0x10d),_0x2435e5),_0x2435e5=undefined);try{_0x49af12[_0x2e499d(0x10a)]();}catch{}_0xfb8b50(new AbortPrompt());},_0x49af12['once'](_0x56083a(0x10d),_0x2435e5);}),_0x4c9336=()=>{const _0x36cc3c=_0x8335fc;_0x2435e5&&(_0x49af12[_0x36cc3c(0xff)]('SIGINT',_0x2435e5),_0x2435e5=undefined);try{_0x49af12[_0x36cc3c(0x10a)]();}catch{}};return{'rl':_0x49af12,'abortPromise':_0xfada6a,'disposeSuccess':_0x4c9336};}function a10_0x1943(){const _0x593908=['525zaoBvr','question','SIGINT','163269ZaKoEq','stdin','stdout','removeListener','4312098oAAgZU','11235mcOyaH','75656vjeRDf','15vzPqGN','3045548snMONk','591120QuXrUq','217612AevUdm','name','654VBjicX','trim','close'];a10_0x1943=function(){return _0x593908;};return a10_0x1943();}export async function promptAccessKey(_0x21702e=''){const {rl:_0x3ce78b,abortPromise:_0x5ef28c,disposeSuccess:_0x329b01}=createSafeRl(),_0x343338=new Promise(_0x1ccb16=>{const _0x2557b8=a10_0x9492,_0xb1f1c7=_0x21702e?'AccessKey\x20('+_0x21702e+'):\x20':'AccessKey\x20(paste\x20ak_...):\x20';_0x3ce78b[_0x2557b8(0x10c)](_0xb1f1c7,_0x29b113=>{const _0x5441e5=_0x2557b8;_0x329b01(),_0x1ccb16(_0x29b113[_0x5441e5(0x109)]()||_0x21702e);});});return Promise['race']([_0x343338,_0x5ef28c]);}export function isAbortPrompt(_0x2d72ca){const _0x1cfe0e=a10_0x9492;return _0x2d72ca instanceof Error&&_0x2d72ca[_0x1cfe0e(0x107)]==='AbortPrompt';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a11_0x3ba4(_0x4b287f,_0x26100a){_0x4b287f=_0x4b287f-0x1b4;const _0x48160a=a11_0x4816();let _0x3ba445=_0x48160a[_0x4b287f];return _0x3ba445;}function a11_0x4816(){const _0x16b7e3=['43041160qZnbPe','21xQwRTH','appCode','Get\x20BFF\x20script\x20details\x20by\x20ID','(none)','functionName','bool','11ptiGYz','bff','detail','229290noSFZw','1142888ZRLgtS','6dLEgvl','num','7694260Ugshqp','4541085SOJstz','createdTime','812658hqDpTC','updatedTime','Script\x20ID','scriptType','108GnNcrC','3339204dMaReJ'];a11_0x4816=function(){return _0x16b7e3;};return a11_0x4816();}const a11_0x5dca54=a11_0x3ba4;(function(_0x532678,_0x405485){const _0x4d3071=a11_0x3ba4,_0xa2630d=_0x532678();while(!![]){try{const _0x788d3c=parseInt(_0x4d3071(0x1b8))/0x1*(-parseInt(_0x4d3071(0x1b6))/0x2)+-parseInt(_0x4d3071(0x1c2))/0x3+-parseInt(_0x4d3071(0x1ba))/0x4+-parseInt(_0x4d3071(0x1bb))/0x5+-parseInt(_0x4d3071(0x1bd))/0x6*(parseInt(_0x4d3071(0x1c4))/0x7)+parseInt(_0x4d3071(0x1b7))/0x8*(parseInt(_0x4d3071(0x1c1))/0x9)+-parseInt(_0x4d3071(0x1c3))/0xa*(-parseInt(_0x4d3071(0x1ca))/0xb);if(_0x788d3c===_0x405485)break;else _0xa2630d['push'](_0xa2630d['shift']());}catch(_0x4f883b){_0xa2630d['push'](_0xa2630d['shift']());}}}(a11_0x4816,0xef1c7));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x5dca54(0x1b4),'command':a11_0x5dca54(0x1b5),'description':a11_0x5dca54(0x1c6),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x5dca54(0x1bf)},VERBOSE_FLAG],async 'execute'(_0x599b80){const _0x524bbf=a11_0x5dca54,_0x1252d3=await getBffScriptInfo(_0x599b80[_0x524bbf(0x1b9)]('id')),_0x4de111=_0x599b80[_0x524bbf(0x1c9)]('verbose');if(_0x4de111)return{'ok':!![],'data':_0x1252d3};return{'ok':!![],'data':{'id':_0x1252d3['id'],'appCode':_0x1252d3[_0x524bbf(0x1c5)],'functionName':_0x1252d3[_0x524bbf(0x1c8)]??'','scriptType':_0x1252d3[_0x524bbf(0x1c0)],'description':_0x1252d3['description']||_0x524bbf(0x1c7),'createdTime':_0x1252d3[_0x524bbf(0x1bc)]??'','updatedTime':_0x1252d3[_0x524bbf(0x1be)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2923b9=a12_0x3995;(function(_0x1766ef,_0x572e08){const _0x257025=a12_0x3995,_0x338c0b=_0x1766ef();while(!![]){try{const _0x5880d4=parseInt(_0x257025(0x74))/0x1+-parseInt(_0x257025(0x7f))/0x2*(parseInt(_0x257025(0x79))/0x3)+-parseInt(_0x257025(0x7a))/0x4*(-parseInt(_0x257025(0x73))/0x5)+-parseInt(_0x257025(0x81))/0x6*(-parseInt(_0x257025(0x7b))/0x7)+parseInt(_0x257025(0x78))/0x8*(-parseInt(_0x257025(0x7e))/0x9)+parseInt(_0x257025(0x75))/0xa*(parseInt(_0x257025(0x7c))/0xb)+-parseInt(_0x257025(0x83))/0xc*(parseInt(_0x257025(0x80))/0xd);if(_0x5880d4===_0x572e08)break;else _0x338c0b['push'](_0x338c0b['shift']());}catch(_0x425302){_0x338c0b['push'](_0x338c0b['shift']());}}}(a12_0x56de,0x78937));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0x3995(_0x3165fc,_0x1ec01d){_0x3165fc=_0x3165fc-0x72;const _0x56ded6=a12_0x56de();let _0x3995c6=_0x56ded6[_0x3165fc];return _0x3995c6;}export const bffExec={'service':a12_0x2923b9(0x7d),'command':a12_0x2923b9(0x76),'description':a12_0x2923b9(0x82),'risk':a12_0x2923b9(0x86),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x2923b9(0x84)},PARAMS_FLAG],async 'execute'(_0x5d1163){const _0x263f91=a12_0x2923b9,_0x6547cd=parseJsonParams(_0x5d1163[_0x263f91(0x72)]('params')),_0x2b4157=Date[_0x263f91(0x77)](),_0x6424f0=await executeSdkBff(_0x5d1163['str']('name'),_0x6547cd),_0x4430f6=Date['now']()-_0x2b4157;return{'ok':!![],'data':{'result':_0x6424f0,'elapsed':_0x4430f6},'message':_0x263f91(0x85)+_0x4430f6+'ms'};}};function a12_0x56de(){const _0x3195c5=['452898DxhkWr','121990IEZNCh','exec','now','1384OuoiIj','3vcdqcW','1388gwsNWW','1516123PrZvLZ','319LGzHBg','bff','35586YoqxVu','1048612ASsAem','626795DmllIt','24SmipGu','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','36mdgOhe','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','read','str','2505nouTxF'];a12_0x56de=function(){return _0x3195c5;};return a12_0x56de();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a13_0x35c6(_0x932b63,_0x4203f4){_0x932b63=_0x932b63-0x153;const _0x3aecd4=a13_0x3aec();let _0x35c611=_0x3aecd4[_0x932b63];return _0x35c611;}(function(_0x206d27,_0x6fc6ba){const _0x22d811=a13_0x35c6,_0x56a509=_0x206d27();while(!![]){try{const _0x3375cf=-parseInt(_0x22d811(0x15e))/0x1+parseInt(_0x22d811(0x15a))/0x2*(-parseInt(_0x22d811(0x159))/0x3)+parseInt(_0x22d811(0x154))/0x4*(parseInt(_0x22d811(0x15c))/0x5)+parseInt(_0x22d811(0x15b))/0x6*(parseInt(_0x22d811(0x153))/0x7)+-parseInt(_0x22d811(0x157))/0x8*(-parseInt(_0x22d811(0x158))/0x9)+-parseInt(_0x22d811(0x15d))/0xa*(-parseInt(_0x22d811(0x156))/0xb)+parseInt(_0x22d811(0x155))/0xc;if(_0x3375cf===_0x6fc6ba)break;else _0x56a509['push'](_0x56a509['shift']());}catch(_0x3bf338){_0x56a509['push'](_0x56a509['shift']());}}}(a13_0x3aec,0x49800));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a13_0x3aec(){const _0x2b6730=['702911VpWvsQ','24XcDWoS','186399fhjoMs','52677pweQuO','68nfpnko','2886MNkVOn','5GDulWG','10XLEqTl','574940uqBUPP','8428RfsCyR','1249820XXvamJ','5464668fkpLuN'];a13_0x3aec=function(){return _0x2b6730;};return a13_0x3aec();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x74bbb2,_0x329338){const _0x2ea1cb=a14_0x4182,_0x19b474=_0x74bbb2();while(!![]){try{const _0x544e4d=parseInt(_0x2ea1cb(0x1b4))/0x1+parseInt(_0x2ea1cb(0x1c0))/0x2+parseInt(_0x2ea1cb(0x1b7))/0x3*(parseInt(_0x2ea1cb(0x1c6))/0x4)+-parseInt(_0x2ea1cb(0x1c2))/0x5+-parseInt(_0x2ea1cb(0x1b3))/0x6+parseInt(_0x2ea1cb(0x1b9))/0x7+-parseInt(_0x2ea1cb(0x1c5))/0x8*(parseInt(_0x2ea1cb(0x1b6))/0x9);if(_0x544e4d===_0x329338)break;else _0x19b474['push'](_0x19b474['shift']());}catch(_0x5ca863){_0x19b474['push'](_0x19b474['shift']());}}}(a14_0x799d,0x2288c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a14_0x4182(_0x297e56,_0x5f4376){_0x297e56=_0x297e56-0x1b0;const _0x799dc7=a14_0x799d();let _0x4182e2=_0x799dc7[_0x297e56];return _0x4182e2;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a14_0x799d(){const _0x3fbb08=['Use\x20only\x20one\x20config\x20scope\x20flag.','292510POdILj','\x20(global)','project','2266456vwcRZQ','51004nKVaxH','global-default','Not\x20inside\x20a\x20project\x20(no\x20','project-or-global-explicit','932364HZvAdr','87311cBJdhH',',\x20or\x20run\x20`','9dAaNho','42BFYfkJ','Add\x20--global\x20to\x20write\x20to\x20~/','1418998onIQeN','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20init`\x20first.','validation','inProject','project-default','340232sEBgoX'];a14_0x799d=function(){return _0x3fbb08;};return a14_0x799d();}import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x383a11){const _0x16fd83=a14_0x4182,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x331f09}=_0x383a11;if(explicitGlobal&&explicitProject)throw CliErrors[_0x16fd83(0x1bd)](_0x16fd83(0x1bb),_0x16fd83(0x1c1));if(explicitGlobal)return _0x16fd83(0x1ba);if(explicitProject)return _0x16fd83(0x1c4);switch(_0x331f09){case _0x16fd83(0x1b0):return'global';case _0x16fd83(0x1bf):return _0x383a11[_0x16fd83(0x1be)]??isInProject()?'project':_0x16fd83(0x1ba);case _0x16fd83(0x1b2):if(!(_0x383a11[_0x16fd83(0x1be)]??isInProject()))throw CliErrors['validation'](_0x16fd83(0x1b1)+PRODUCT_CONFIG['newConfigFileName']+'\x20found).',_0x16fd83(0x1b8)+PRODUCT_CONFIG['newConfigFileName']+_0x16fd83(0x1b5)+CLI_BIN_NAME+_0x16fd83(0x1bc));return _0x16fd83(0x1c4);}}export function toScopeFlags(_0x27d63b){const _0x423cb5=a14_0x4182;return{'global':_0x27d63b===_0x423cb5(0x1ba)};}export function formatScopeLabel(_0x30b1ff){const _0x2e6938=a14_0x4182;return _0x30b1ff===_0x2e6938(0x1ba)?_0x2e6938(0x1c3):'';}
|