@lovrabet/lovrabet-cli 2.0.9-beta.0 → 2.0.9-beta.2

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.
Files changed (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -1
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x395fae=a0_0xd06a;(function(_0x3a4b6d,_0x34c516){const _0x4b335b=a0_0xd06a,_0x4f2423=_0x3a4b6d();while(!![]){try{const _0x23c446=-parseInt(_0x4b335b(0x152))/0x1*(-parseInt(_0x4b335b(0x14f))/0x2)+-parseInt(_0x4b335b(0x144))/0x3+-parseInt(_0x4b335b(0x13f))/0x4*(parseInt(_0x4b335b(0x134))/0x5)+parseInt(_0x4b335b(0x13b))/0x6+-parseInt(_0x4b335b(0x15a))/0x7+-parseInt(_0x4b335b(0x141))/0x8+-parseInt(_0x4b335b(0x150))/0x9*(-parseInt(_0x4b335b(0x135))/0xa);if(_0x23c446===_0x34c516)break;else _0x4f2423['push'](_0x4f2423['shift']());}catch(_0x3b5207){_0x4f2423['push'](_0x4f2423['shift']());}}}(a0_0x2f34,0x6b0a7));import{jsx as a0_0x6f8b5}from'react/jsx-runtime';import a0_0x7f4c61 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{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a0_0xd06a(_0x1da0e8,_0x5d424b){_0x1da0e8=_0x1da0e8-0x133;const _0x2f34ae=a0_0x2f34();let _0xd06a41=_0x2f34ae[_0x1da0e8];return _0xd06a41;}import{buildMeowFlags}from'./constant/cli.js';function a0_0x2f34(){const _0x232f69=['flatMap','corrected','slice','Hint:\x20','length','2810RofOOo','1052523cMTKxs','Unexpected\x20error:','475eSddFH','write','catch','\x20->\x20--','exit','help','name','args','837977angHTL','ExitPromptError','1957660qMhatq','110fBCjZZ','hint','flags','input','assign','ERR_STREAM_DESTROYED','1790640UeSWCa','\x0aCancelled.\x0a','stderr','defaultCommand','4TjrXma','message','5520864qQhzZs','error','handler','1837326fYmRrI',':\x20--','cancelled','log','code','[preparse]\x20'];a0_0x2f34=function(){return _0x232f69;};return a0_0x2f34();}const helpText=generateFullHelp(),cli=a0_0x7f4c61(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x395fae(0x154)](handleError);async function main(){try{await run();}catch(_0x5344b0){handleError(_0x5344b0);}}async function run(){const _0x3d6cab=a0_0x395fae;let _0x2a1a93=cli['input'][0x0],_0x3a69cd=cli[_0x3d6cab(0x138)][0x1];const _0x21965f=cli[_0x3d6cab(0x137)];try{const {correctFlags:_0xd25bec}=await import('./framework/preparse.js'),_0x4368dc=getAllDefinitions()[_0x3d6cab(0x14a)](_0x1b3151=>_0x1b3151[_0x3d6cab(0x137)]??[]),{flags:_0x3e71bd,corrections:_0x32206b}=_0xd25bec(_0x21965f,_0x4368dc);if(_0x32206b[_0x3d6cab(0x14e)]>0x0){for(const _0x42f6d0 of _0x32206b){process['stderr'][_0x3d6cab(0x153)](_0x3d6cab(0x149)+_0x42f6d0[_0x3d6cab(0x143)]+_0x3d6cab(0x145)+_0x42f6d0['original']+_0x3d6cab(0x155)+_0x42f6d0[_0x3d6cab(0x14b)]+'\x0a');}Object[_0x3d6cab(0x139)](_0x21965f,_0x3e71bd);}}catch{}if(!_0x2a1a93||!isKnownService(_0x2a1a93)){const {waitUntilExit:_0x301f9f}=render(a0_0x6f8b5(Help,{}));await _0x301f9f();return;}const _0x4e32ed=getServiceEntry(_0x2a1a93);if(!_0x3a69cd){if(_0x21965f[_0x3d6cab(0x157)]){console['log'](generateServiceHelp(_0x2a1a93));return;}if(_0x4e32ed[_0x3d6cab(0x13e)])_0x3a69cd=_0x4e32ed['defaultCommand'];else{console[_0x3d6cab(0x147)](generateServiceHelp(_0x2a1a93));return;}}const _0xafd6f3=findDefinition(_0x2a1a93,_0x3a69cd);!_0xafd6f3&&(console[_0x3d6cab(0x147)](generateServiceHelp(_0x2a1a93)),handleError(CliErrors['unknownCommand'](_0x2a1a93+'\x20'+_0x3a69cd)));if(_0x21965f['help']){console['log'](generateCommandHelp(_0xafd6f3));return;}const _0x5e0777=buildConfigFromFlags(_0x21965f);await initGlobalEnvironment(_0x5e0777);const _0x1756f2=createPipelineEnv(_0x5e0777,_0x21965f);_0x1756f2[_0x3d6cab(0x159)]=cli[_0x3d6cab(0x138)][_0x3d6cab(0x14c)](0x2),await runCommand(_0xafd6f3,_0x1756f2);}function handleError(_0x347e68){const _0x48db14=a0_0x395fae;if(_0x347e68 instanceof CliError){_0x347e68[_0x48db14(0x148)]===_0x48db14(0x146)&&(process[_0x48db14(0x13d)]['write'](_0x48db14(0x13c)),process[_0x48db14(0x156)](0x0));console['error']('Error:\x20'+_0x347e68[_0x48db14(0x140)]);if(_0x347e68[_0x48db14(0x136)])console[_0x48db14(0x142)](_0x48db14(0x14d)+_0x347e68[_0x48db14(0x136)]);process['exit'](_0x347e68['exitCode']);}isUserCancellation(_0x347e68)&&(process[_0x48db14(0x13d)][_0x48db14(0x153)](_0x48db14(0x13c)),process[_0x48db14(0x156)](0x0)),console['error'](_0x48db14(0x151),_0x347e68),process['exit'](0x1);}function isUserCancellation(_0x310439){const _0x4aee30=a0_0x395fae;if(!(_0x310439 instanceof Error))return![];if(_0x310439[_0x4aee30(0x158)]===_0x4aee30(0x133))return!![];if(_0x310439[_0x4aee30(0x148)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x310439['code']===_0x4aee30(0x13a))return!![];return![];}
2
+ const a0_0x5a01e2=a0_0x5a7f;(function(_0x2fe09f,_0xe43910){const _0x4a589c=a0_0x5a7f,_0x20b8e7=_0x2fe09f();while(!![]){try{const _0x4eda37=-parseInt(_0x4a589c(0xe1))/0x1+parseInt(_0x4a589c(0xed))/0x2+parseInt(_0x4a589c(0xd7))/0x3+-parseInt(_0x4a589c(0xf9))/0x4*(-parseInt(_0x4a589c(0xdb))/0x5)+parseInt(_0x4a589c(0xe3))/0x6+parseInt(_0x4a589c(0xf0))/0x7+-parseInt(_0x4a589c(0xea))/0x8;if(_0x4eda37===_0xe43910)break;else _0x20b8e7['push'](_0x20b8e7['shift']());}catch(_0x3bff70){_0x20b8e7['push'](_0x20b8e7['shift']());}}}(a0_0x3f60,0x7bfc5));import{jsx as a0_0x277720}from'react/jsx-runtime';import a0_0x3dc4f8 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{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a0_0x3f60(){const _0x410522=['original','stderr','assign','4yBaIlZ','\x20->\x20--','ERR_USE_AFTER_CLOSE','help','flatMap','1830885tUCLbz','error','write','cancelled','1872535wDVSMe','hint','message','Error:\x20','name','exit','60283ijSrLs','corrected','3224772HFjriO','ExitPromptError','log','Hint:\x20','input','exitCode','catch','17309472KYKexR','flags','ERR_STREAM_DESTROYED','976302VciYNO','unknownCommand','handler','5049779zaYVWn','code','defaultCommand','./framework/preparse.js','length','[preparse]\x20'];a0_0x3f60=function(){return _0x410522;};return a0_0x3f60();}import{buildMeowFlags}from'./constant/cli.js';function a0_0x5a7f(_0x507fb9,_0x221f87){_0x507fb9=_0x507fb9-0xd6;const _0x3f6040=a0_0x3f60();let _0x5a7fbd=_0x3f6040[_0x507fb9];return _0x5a7fbd;}const helpText=generateFullHelp(),cli=a0_0x3dc4f8(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x5a01e2(0xe9)](handleError);async function main(){try{await run();}catch(_0x30fd36){handleError(_0x30fd36);}}async function run(){const _0x4a2b48=a0_0x5a01e2;let _0x2f7abd=cli[_0x4a2b48(0xe7)][0x0],_0x26bd98=cli[_0x4a2b48(0xe7)][0x1];const _0x5848ac=cli[_0x4a2b48(0xeb)];try{const {correctFlags:_0x3e58c1}=await import(_0x4a2b48(0xf3)),_0x19e5be=getAllDefinitions()[_0x4a2b48(0xd6)](_0x5950e2=>_0x5950e2['flags']??[]),{flags:_0x3be112,corrections:_0x499d31}=_0x3e58c1(_0x5848ac,_0x19e5be);if(_0x499d31[_0x4a2b48(0xf4)]>0x0){for(const _0x2fe078 of _0x499d31){process['stderr'][_0x4a2b48(0xd9)](_0x4a2b48(0xf5)+_0x2fe078[_0x4a2b48(0xef)]+':\x20--'+_0x2fe078[_0x4a2b48(0xf6)]+_0x4a2b48(0xfa)+_0x2fe078[_0x4a2b48(0xe2)]+'\x0a');}Object[_0x4a2b48(0xf8)](_0x5848ac,_0x3be112);}}catch{}if(!_0x2f7abd||!isKnownService(_0x2f7abd)){const {waitUntilExit:_0x477299}=render(a0_0x277720(Help,{}));await _0x477299();return;}const _0x132d9d=getServiceEntry(_0x2f7abd);if(!_0x26bd98){if(_0x5848ac[_0x4a2b48(0xfc)]){console[_0x4a2b48(0xe5)](generateServiceHelp(_0x2f7abd));return;}if(_0x132d9d[_0x4a2b48(0xf2)])_0x26bd98=_0x132d9d[_0x4a2b48(0xf2)];else{console[_0x4a2b48(0xe5)](generateServiceHelp(_0x2f7abd));return;}}const _0x3daeaf=findDefinition(_0x2f7abd,_0x26bd98);!_0x3daeaf&&(console[_0x4a2b48(0xe5)](generateServiceHelp(_0x2f7abd)),handleError(CliErrors[_0x4a2b48(0xee)](_0x2f7abd+'\x20'+_0x26bd98)));if(_0x5848ac[_0x4a2b48(0xfc)]){console[_0x4a2b48(0xe5)](generateCommandHelp(_0x3daeaf));return;}const _0x36709f=buildConfigFromFlags(_0x5848ac);await initGlobalEnvironment(_0x36709f);const _0x11cd8e=createPipelineEnv(_0x36709f,_0x5848ac);_0x11cd8e['args']=cli['input']['slice'](0x2),await runCommand(_0x3daeaf,_0x11cd8e);}function handleError(_0x3bae22){const _0x4a702f=a0_0x5a01e2;if(_0x3bae22 instanceof CliError){_0x3bae22['code']===_0x4a702f(0xda)&&(process[_0x4a702f(0xf7)][_0x4a702f(0xd9)]('\x0aCancelled.\x0a'),process[_0x4a702f(0xe0)](0x0));console[_0x4a702f(0xd8)](_0x4a702f(0xde)+_0x3bae22[_0x4a702f(0xdd)]);if(_0x3bae22[_0x4a702f(0xdc)])console[_0x4a702f(0xd8)](_0x4a702f(0xe6)+_0x3bae22[_0x4a702f(0xdc)]);process[_0x4a702f(0xe0)](_0x3bae22[_0x4a702f(0xe8)]);}isUserCancellation(_0x3bae22)&&(process[_0x4a702f(0xf7)][_0x4a702f(0xd9)]('\x0aCancelled.\x0a'),process[_0x4a702f(0xe0)](0x0)),console[_0x4a702f(0xd8)]('Unexpected\x20error:',_0x3bae22),process[_0x4a702f(0xe0)](0x1);}function isUserCancellation(_0x1f16e1){const _0x4e96a6=a0_0x5a01e2;if(!(_0x1f16e1 instanceof Error))return![];if(_0x1f16e1[_0x4e96a6(0xdf)]===_0x4e96a6(0xe4))return!![];if(_0x1f16e1[_0x4e96a6(0xf1)]===_0x4e96a6(0xfb))return!![];if(_0x1f16e1[_0x4e96a6(0xf1)]===_0x4e96a6(0xec))return!![];return![];}
@@ -1 +1 @@
1
- (function(_0x2697b5,_0x286cc0){const _0x5100b0=a1_0x1c5d,_0x1bd676=_0x2697b5();while(!![]){try{const _0x595ddc=parseInt(_0x5100b0(0xe9))/0x1*(-parseInt(_0x5100b0(0xf1))/0x2)+-parseInt(_0x5100b0(0xe6))/0x3*(parseInt(_0x5100b0(0xe3))/0x4)+parseInt(_0x5100b0(0xe1))/0x5+parseInt(_0x5100b0(0xee))/0x6+parseInt(_0x5100b0(0xf3))/0x7*(-parseInt(_0x5100b0(0xdf))/0x8)+-parseInt(_0x5100b0(0xf4))/0x9+parseInt(_0x5100b0(0xf7))/0xa;if(_0x595ddc===_0x286cc0)break;else _0x1bd676['push'](_0x1bd676['shift']());}catch(_0x230cef){_0x1bd676['push'](_0x1bd676['shift']());}}}(a1_0x5e16,0x6caf2));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a1_0x1c5d(_0x31a282,_0x20dd09){_0x31a282=_0x31a282-0xd8;const _0x5e161=a1_0x5e16();let _0x1c5de3=_0x5e161[_0x31a282];return _0x1c5de3;}import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x5d6369){const _0x42fef9=a1_0x1c5d,_0x26f906=_0x5d6369[_0x42fef9(0xe8)](),_0x2e9c42=_0x26f906['slice'](-0x6)||_0x42fef9(0xea),_0x2d4c27=createHash(_0x42fef9(0xe2))[_0x42fef9(0xd9)](_0x26f906)[_0x42fef9(0xf2)](_0x42fef9(0xdc))[_0x42fef9(0xe0)](0x0,0xc);return _0x42fef9(0xd8)+_0x2e9c42+'_'+_0x2d4c27;}export function getAppCacheFilePath(_0x273f85,_0x46bac6){const _0x40a4be=a1_0x1c5d;return resolve(homedir(),PRODUCT_CONFIG[_0x40a4be(0xef)],_0x40a4be(0xec),_0x273f85,fingerprintAccessKey(_0x46bac6),_0x40a4be(0xf6));}export function readCachedAppList(_0x16dc7b,_0x136817){const _0x2714ff=a1_0x1c5d;if(!_0x136817?.[_0x2714ff(0xe8)]())return null;const _0x461ec6=getAppCacheFilePath(_0x16dc7b,_0x136817);if(!existsSync(_0x461ec6))return null;try{const _0x4c1931=readFileSync(_0x461ec6,_0x2714ff(0xde));if(!_0x4c1931['trim']())return null;const _0x2deffc=JSON[_0x2714ff(0xdd)](_0x4c1931);if(!Array[_0x2714ff(0xed)](_0x2deffc[_0x2714ff(0xeb)]))return null;return _0x2deffc;}catch{return null;}}export function writeCachedAppList(_0x42c249,_0x37efde,_0x214b8d){const _0x98d2db=a1_0x1c5d,_0x2e97e3=getAppCacheFilePath(_0x42c249,_0x37efde),_0x2c45a5=dirname(_0x2e97e3);!existsSync(_0x2c45a5)&&mkdirSync(_0x2c45a5,{'recursive':!![]});const _0x1486ab=_0x2e97e3+_0x98d2db(0xe4);try{writeFileSync(_0x1486ab,JSON[_0x98d2db(0xdb)](_0x214b8d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1486ab,_0x2e97e3);}catch(_0x536998){if(_0x536998['code']===_0x98d2db(0xf0)||_0x536998[_0x98d2db(0xda)]===_0x98d2db(0xf5)||_0x536998[_0x98d2db(0xda)]===_0x98d2db(0xe5)){writeFileSync(_0x2e97e3,JSON[_0x98d2db(0xdb)](_0x214b8d,null,0x2)+'\x0a',{'encoding':_0x98d2db(0xde)});try{unlinkSync(_0x1486ab);}catch{}}else throw _0x536998;}}catch(_0x1b4af0){try{unlinkSync(_0x1486ab);}catch{}throw _0x1b4af0;}return _0x2e97e3;}function a1_0x5e16(){const _0x21aa7f=['unknown','items','cache','isArray','3279774oayjEc','homeDirName','EPERM','2WUkILJ','digest','4326yaLqeY','1758780LEkJWZ','EXDEV','my-apps.json','11420180yqQKbd','ak_','update','code','stringify','hex','parse','utf8','4056ibTubF','slice','927435lfeToW','sha256','4kPAfdS','.tmp','EACCES','2240181QMREFl','find','trim','173491aovfkZ'];a1_0x5e16=function(){return _0x21aa7f;};return a1_0x5e16();}export function resolveCachedAppCode(_0x57f31f,_0x5b906c,_0x24f0cf){const _0x333ab1=a1_0x1c5d;if(!_0x57f31f)return undefined;const _0x2e41d5=readCachedAppList(_0x5b906c,_0x24f0cf),_0x3587ec=_0x2e41d5?.[_0x333ab1(0xeb)][_0x333ab1(0xe7)](_0xc00abf=>_0xc00abf['appName']===_0x57f31f);return _0x3587ec?.['appCode']?.[_0x333ab1(0xe8)]()||undefined;}
1
+ (function(_0x114952,_0x37aad4){const _0x412a77=a1_0x15fd,_0x192dd8=_0x114952();while(!![]){try{const _0x1cd7ff=parseInt(_0x412a77(0x1a3))/0x1*(parseInt(_0x412a77(0x1b7))/0x2)+-parseInt(_0x412a77(0x1ab))/0x3*(parseInt(_0x412a77(0x1b2))/0x4)+-parseInt(_0x412a77(0x1bd))/0x5+-parseInt(_0x412a77(0x1b0))/0x6+-parseInt(_0x412a77(0x1b9))/0x7*(parseInt(_0x412a77(0x1a8))/0x8)+-parseInt(_0x412a77(0x1ae))/0x9+parseInt(_0x412a77(0x1a2))/0xa;if(_0x1cd7ff===_0x37aad4)break;else _0x192dd8['push'](_0x192dd8['shift']());}catch(_0x3772f6){_0x192dd8['push'](_0x192dd8['shift']());}}}(a1_0x172a,0xb24f0));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a1_0x15fd(_0x570c78,_0x1a419f){_0x570c78=_0x570c78-0x1a1;const _0x172a58=a1_0x172a();let _0x15fdc5=_0x172a58[_0x570c78];return _0x15fdc5;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x4ff789){const _0x520bd1=a1_0x15fd,_0x6ae720=_0x4ff789[_0x520bd1(0x1a1)](),_0x291d41=_0x6ae720[_0x520bd1(0x1bc)](-0x6)||_0x520bd1(0x1b5),_0x2d6d35=createHash(_0x520bd1(0x1b1))['update'](_0x6ae720)[_0x520bd1(0x1a6)]('hex')['slice'](0x0,0xc);return'ak_'+_0x291d41+'_'+_0x2d6d35;}export function getAppCacheFilePath(_0x1560c8,_0x4d2996){const _0x3354cf=a1_0x15fd;return resolve(homedir(),PRODUCT_CONFIG[_0x3354cf(0x1ba)],_0x3354cf(0x1b6),_0x1560c8,fingerprintAccessKey(_0x4d2996),'my-apps.json');}function a1_0x172a(){const _0x5f0594=['sha256','1196nflrnP','EXDEV','items','unknown','cache','86246PBRcYa','appName','1666PuLsgT','homeDirName','find','slice','7064855zpbRks','utf8','trim','46721110Levasj','11qEoEbi','appCode','parse','digest','.tmp','26608xuWTCX','code','EPERM','12321wOeoZZ','stringify','EACCES','4109004iGdyUL','isArray','3162024TgIecR'];a1_0x172a=function(){return _0x5f0594;};return a1_0x172a();}export function readCachedAppList(_0x17f9ad,_0xa2554){const _0x3b48dd=a1_0x15fd;if(!_0xa2554?.[_0x3b48dd(0x1a1)]())return null;const _0x279cf5=getAppCacheFilePath(_0x17f9ad,_0xa2554);if(!existsSync(_0x279cf5))return null;try{const _0xe56f55=readFileSync(_0x279cf5,'utf8');if(!_0xe56f55[_0x3b48dd(0x1a1)]())return null;const _0x267fa2=JSON[_0x3b48dd(0x1a5)](_0xe56f55);if(!Array[_0x3b48dd(0x1af)](_0x267fa2['items']))return null;return _0x267fa2;}catch{return null;}}export function writeCachedAppList(_0x266108,_0x18ab9b,_0x3df60f){const _0x5ae669=a1_0x15fd,_0x14541a=getAppCacheFilePath(_0x266108,_0x18ab9b),_0x564fc3=dirname(_0x14541a);!existsSync(_0x564fc3)&&mkdirSync(_0x564fc3,{'recursive':!![]});const _0x17f4ae=_0x14541a+_0x5ae669(0x1a7);try{writeFileSync(_0x17f4ae,JSON['stringify'](_0x3df60f,null,0x2)+'\x0a',{'encoding':_0x5ae669(0x1be),'mode':0x180});try{renameSync(_0x17f4ae,_0x14541a);}catch(_0x3af79d){if(_0x3af79d[_0x5ae669(0x1a9)]===_0x5ae669(0x1aa)||_0x3af79d[_0x5ae669(0x1a9)]===_0x5ae669(0x1b3)||_0x3af79d['code']===_0x5ae669(0x1ad)){writeFileSync(_0x14541a,JSON[_0x5ae669(0x1ac)](_0x3df60f,null,0x2)+'\x0a',{'encoding':_0x5ae669(0x1be)});try{unlinkSync(_0x17f4ae);}catch{}}else throw _0x3af79d;}}catch(_0x41a496){try{unlinkSync(_0x17f4ae);}catch{}throw _0x41a496;}return _0x14541a;}export function resolveCachedAppCode(_0x4808d0,_0x42c328,_0x353e45){const _0x37f05e=a1_0x15fd;if(!_0x4808d0)return undefined;const _0x215358=readCachedAppList(_0x42c328,_0x353e45),_0x492748=_0x215358?.[_0x37f05e(0x1b4)][_0x37f05e(0x1bb)](_0x4220ba=>_0x4220ba[_0x37f05e(0x1b8)]===_0x4808d0);return _0x492748?.[_0x37f05e(0x1a4)]?.[_0x37f05e(0x1a1)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x53a948=a2_0x5a2c;function a2_0x5a2c(_0x292042,_0x49721e){_0x292042=_0x292042-0x1cc;const _0x2df9ff=a2_0x2df9();let _0x5a2c53=_0x2df9ff[_0x292042];return _0x5a2c53;}(function(_0x18afcf,_0x554953){const _0x1040de=a2_0x5a2c,_0x5c02df=_0x18afcf();while(!![]){try{const _0x5b48f2=-parseInt(_0x1040de(0x201))/0x1+-parseInt(_0x1040de(0x219))/0x2*(parseInt(_0x1040de(0x1d7))/0x3)+-parseInt(_0x1040de(0x21f))/0x4*(parseInt(_0x1040de(0x21d))/0x5)+parseInt(_0x1040de(0x1e4))/0x6+parseInt(_0x1040de(0x205))/0x7+parseInt(_0x1040de(0x1f9))/0x8+-parseInt(_0x1040de(0x1cf))/0x9*(-parseInt(_0x1040de(0x1d1))/0xa);if(_0x5b48f2===_0x554953)break;else _0x5c02df['push'](_0x5c02df['shift']());}catch(_0x5cf3cb){_0x5c02df['push'](_0x5c02df['shift']());}}}(a2_0x2df9,0x519b6));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.js';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';const GLOBAL_FLAG={'name':a2_0x53a948(0x1d8),'type':a2_0x53a948(0x1ee),'description':a2_0x53a948(0x1fb),'default':![]};function collectFlags(_0x379119,_0x24e0d5){const _0x493747=a2_0x53a948,_0x581b73={};for(const _0x259a8e of _0x24e0d5){const _0xeed5e2=_0x259a8e[_0x493747(0x1da)]==='boolean'?_0x379119['bool'](_0x259a8e[_0x493747(0x1d3)]):_0x379119[_0x493747(0x1de)](_0x259a8e['name']);if(_0xeed5e2!==''&&_0xeed5e2!==![])_0x581b73[_0x259a8e[_0x493747(0x1d3)]]=_0xeed5e2;}if(_0x379119[_0x493747(0x20e)])_0x581b73[_0x493747(0x20e)]=!![];return _0x581b73;}const initDef={'service':a2_0x53a948(0x1f2),'command':a2_0x53a948(0x20a),'description':'Initialize\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20config\x20file','risk':a2_0x53a948(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x52cf48){return await runInit(collectFlags(_0x52cf48,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a2_0x53a948(0x20c),'description':a2_0x53a948(0x1f0),'risk':a2_0x53a948(0x214),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x53a948(0x220),'type':'string','description':a2_0x53a948(0x1cd),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x53a948(0x200),'type':a2_0x53a948(0x1ee),'description':a2_0x53a948(0x1d9),'default':![]},{'name':a2_0x53a948(0x1f3),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x7863ad){const _0x32109f=a2_0x53a948,_0x1d9878=_0x7863ad[_0x32109f(0x1de)]('env')||_0x7863ad['envName']||getEnv()||_0x32109f(0x216),_0x3f9f77=_0x7863ad[_0x32109f(0x1d2)](_0x32109f(0x200)),_0x278597=_0x7863ad['bool'](_0x32109f(0x1f3)),{readRawConfigWithLayers:_0x43f8c0,resolveDefaultAppSource:_0x3c0762,getLocalAppAliases:_0x5717d8}=await import(_0x32109f(0x1ea)),{getRemoteAppList:_0x3207e6}=await import(_0x32109f(0x1fa)),{config:_0x12ef59,layers:_0x1143c7}=_0x43f8c0(),_0x231bd5=_0x3c0762(_0x1143c7),{defaultApp:_0x580c32}=_0x12ef59,_0x566d90=await _0x3207e6({'env':_0x1d9878,'accessKey':_0x7863ad[_0x32109f(0x1e7)],'localOnly':_0x3f9f77,'noCache':_0x278597}),_0x200ad4=_0x566d90['items'][_0x32109f(0x1d5)](_0x3c0534=>{const _0x813c7e=_0x32109f;return{'name':_0x3c0534[_0x813c7e(0x1f4)],'appcode':_0x3c0534[_0x813c7e(0x1fe)],'named':!![],'definedIn':_0x813c7e(0x208),'isDefault':_0x3c0534['appName']===_0x580c32,...buildAppProfileListFields(_0x1d9878),'source':_0x566d90[_0x813c7e(0x203)],'owner':_0x3c0534[_0x813c7e(0x212)]??null,'status':_0x3c0534[_0x813c7e(0x1e6)]??null,'cachedAt':_0x566d90[_0x813c7e(0x218)]};}),_0x514fe7=_0x5717d8(_0x12ef59);let _0x705a15=0x0;for(const [_0x35c122,_0x1ff1fe]of Object[_0x32109f(0x221)](_0x514fe7)){const _0x1a529d=typeof _0x1ff1fe[_0x32109f(0x1dd)]===_0x32109f(0x207)?_0x1ff1fe[_0x32109f(0x1dd)][_0x32109f(0x1e1)]():'';if(!_0x1a529d)continue;_0x705a15+=0x1,_0x200ad4[_0x32109f(0x1e3)]({'name':_0x35c122,'appcode':_0x1a529d,'named':!![],'definedIn':'local','isDefault':_0x35c122===_0x580c32,...buildAppProfileListFields(_0x1d9878),'source':_0x32109f(0x20f),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x200ad4,_0x7863ad['mergedCli']);if(_0x200ad4[_0x32109f(0x1ff)]===0x0)return{'ok':!![],'data':[],'message':_0x566d90[_0x32109f(0x203)]===_0x32109f(0x215)?_0x32109f(0x1fd):_0x32109f(0x1e8)};const _0x3cbf10=_0x200ad4[_0x32109f(0x206)](_0xafd763=>_0xafd763[_0x32109f(0x21a)]===!![]),_0x16598f=_0x580c32??_0x3cbf10?.['name']??null,_0x78a4cc={'env':_0x1d9878,'source':_0x566d90[_0x32109f(0x203)],'fetchedAt':_0x566d90['fetchedAt'],'cachePath':_0x566d90[_0x32109f(0x204)],'globalPath':_0x1143c7[_0x32109f(0x1e2)]??null,'projectPath':_0x1143c7[_0x32109f(0x1df)]??null,'defaultApp':_0x16598f,'defaultAppSource':_0x580c32!=null?_0x231bd5:null,'localAliasCount':_0x705a15};return{'ok':!![],'data':{'items':_0x200ad4,'meta':_0x78a4cc}};}},pullDef={'service':'app','command':a2_0x53a948(0x1cc),'description':a2_0x53a948(0x1e5),'risk':a2_0x53a948(0x1eb),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x53a948(0x220),'type':a2_0x53a948(0x207),'description':a2_0x53a948(0x1f1),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x53a948(0x200),'type':a2_0x53a948(0x1ee),'description':a2_0x53a948(0x20b),'default':![]},{'name':'no-cache','type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x4a36c0){const _0x16d14b=a2_0x53a948,_0x2c87bb=_0x4a36c0['str'](_0x16d14b(0x220))||_0x4a36c0[_0x16d14b(0x213)]||getEnv()||_0x16d14b(0x216),_0x278df7=_0x4a36c0[_0x16d14b(0x1d2)]('local'),_0x38c24d=_0x4a36c0[_0x16d14b(0x1d2)](_0x16d14b(0x1f3)),{getRemoteAppList:_0x5d927a}=await import(_0x16d14b(0x1fa)),_0xaa291e=await _0x5d927a({'env':_0x2c87bb,'accessKey':_0x4a36c0[_0x16d14b(0x1e7)],'localOnly':_0x278df7,'noCache':_0x38c24d});return{'ok':!![],'data':{'total':_0xaa291e[_0x16d14b(0x211)][_0x16d14b(0x1ff)],'env':_0x2c87bb,'source':_0xaa291e['source'],'fetchedAt':_0xaa291e['fetchedAt'],'cachePath':_0xaa291e[_0x16d14b(0x204)]},'message':_0xaa291e['source']===_0x16d14b(0x215)?_0x16d14b(0x1ce)+_0xaa291e[_0x16d14b(0x211)][_0x16d14b(0x1ff)]+_0x16d14b(0x209)+_0x2c87bb+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0xaa291e[_0x16d14b(0x211)][_0x16d14b(0x1ff)]+'\x20app(s)\x20for\x20env=\x22'+_0x2c87bb+'\x22.'};}},useDef={'service':a2_0x53a948(0x1f2),'command':a2_0x53a948(0x1d4),'description':a2_0x53a948(0x1e9),'risk':a2_0x53a948(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x6bfa0d){const _0x4c1e58=a2_0x53a948;if(!_0x6bfa0d[_0x4c1e58(0x20d)][0x0])throw CliErrors['validation'](_0x4c1e58(0x1ed),_0x4c1e58(0x1f7)+CLI_BIN_NAME+_0x4c1e58(0x1f6));},async 'execute'(_0x400043){const _0x565b6b=a2_0x53a948,_0x4218c3=_0x400043['args'][0x0];if(!_0x4218c3)throw CliErrors[_0x565b6b(0x1e0)](_0x565b6b(0x1ed),_0x565b6b(0x1f7)+CLI_BIN_NAME+_0x565b6b(0x1f6));const {buildConfigFromFlags:_0x540b43,resolveLocalAppAliasCode:_0x54ac5c}=await import(_0x565b6b(0x1ea)),{readCachedAppList:_0x9c2122}=await import(_0x565b6b(0x1dc)),_0x2f27e2=_0x400043[_0x565b6b(0x1de)](_0x565b6b(0x220)),_0x250317=_0x540b43(_0x2f27e2?{'env':_0x2f27e2}:{}),_0x5e243a=_0x9c2122(_0x250317['env'],_0x250317['accessKey']),_0x23b240=_0x5e243a?.[_0x565b6b(0x211)][_0x565b6b(0x206)](_0x4c23f4=>_0x4c23f4[_0x565b6b(0x1f4)]===_0x4218c3),_0x2ee77b=_0x54ac5c(_0x250317[_0x565b6b(0x1db)]??{},_0x4218c3);if(!_0x23b240&&!_0x2ee77b&&_0x250317[_0x565b6b(0x210)]!==_0x4218c3){const _0x9e658f=[..._0x5e243a?.[_0x565b6b(0x211)]['map'](_0x1925fc=>_0x1925fc['appName'])??[]],_0x541aeb=_0x9e658f[_0x565b6b(0x1ff)]===0x0?_0x565b6b(0x202)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x4218c3+_0x565b6b(0x21e):_0x565b6b(0x1ef)+Array[_0x565b6b(0x21c)](new Set(_0x9e658f))[_0x565b6b(0x1f8)](',\x20')+_0x565b6b(0x1ec);throw CliErrors[_0x565b6b(0x1e0)](_0x565b6b(0x1fc)+_0x4218c3+_0x565b6b(0x21b),_0x541aeb);}const _0x1386d7=_0x400043[_0x565b6b(0x1d2)](_0x565b6b(0x1d8));let _0x233671;if(_0x1386d7)_0x233671={'global':!![]};else{const {isInProject:_0x5661c6}=await import('../../context.js'),_0x452788=_0x5661c6();_0x233671=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x565b6b(0x1d0),'inProject':_0x452788}));}const _0x202a1e=readConfig(_0x233671);return _0x202a1e[_0x565b6b(0x210)]=_0x4218c3,writeConfig(_0x202a1e,_0x233671),{'ok':!![],'message':_0x565b6b(0x1d6)+_0x4218c3+'\x22'+scopeLabel(_0x233671)+'.'};}},importDef={'service':'app','command':a2_0x53a948(0x1f5),'description':a2_0x53a948(0x217),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x2189f9){return await runInitImport(collectFlags(_0x2189f9,initImportFlagDefs)),{'ok':!![]};}};function a2_0x2df9(){const _0x158230=['Filter\x20by\x20environment\x20(default:\x20current\x20env)','Loaded\x20','643131BveNJj','project-default','130ubJauf','bool','name','use','map','Default\x20app\x20candidate\x20set\x20to\x20\x22','3wFbRTn','global','Read\x20app\x20list\x20from\x20local\x20cache\x20only','type','raw','../../commands/app/cache.js','appcode','str','projectPath','validation','trim','globalPath','push','1569852aegQnz','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','appPublishStatus','accessKey','No\x20apps\x20found\x20on\x20the\x20platform.','Set\x20the\x20fallback\x20app\x20candidate','../../context.js','write','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','Missing\x20app\x20name.','boolean','Available\x20remote\x20apps:\x20','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Target\x20environment\x20(default:\x20current\x20env)','app','no-cache','appName','import','\x20app\x20use\x20<name>\x20[--global]','Usage:\x20','join','2874376TdQIoB','../../commands/app/remote-source.js','Use\x20global\x20config\x20scope','App\x20\x22','No\x20cached\x20apps\x20found.','appCode','length','local','496659DkSqxL','Use\x20`','source','cachePath','2413187riPFVf','find','string','remote','\x20cached\x20app(s)\x20for\x20env=\x22','init','Read\x20from\x20local\x20cache\x20only','list','args','nonInteractive','config','defaultApp','items','appOwnerName','envName','read','cache','production','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','fetchedAt','1206802hOBFzx','isCurrent','\x22\x20not\x20found.','from','460325KEBWau','.appcode\x20to\x20.lovrabet.json.','20teEMPG','env','entries','pull'];a2_0x2df9=function(){return _0x158230;};return a2_0x2df9();}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a2_0x1fbf87=a2_0x3cc3;(function(_0x3989ef,_0x20a215){const _0x35fe0f=a2_0x3cc3,_0x52a0cf=_0x3989ef();while(!![]){try{const _0xc29b9=parseInt(_0x35fe0f(0x143))/0x1+-parseInt(_0x35fe0f(0x11b))/0x2+parseInt(_0x35fe0f(0x13c))/0x3*(parseInt(_0x35fe0f(0x15f))/0x4)+parseInt(_0x35fe0f(0x160))/0x5*(-parseInt(_0x35fe0f(0x166))/0x6)+parseInt(_0x35fe0f(0x120))/0x7*(-parseInt(_0x35fe0f(0x158))/0x8)+parseInt(_0x35fe0f(0x152))/0x9+parseInt(_0x35fe0f(0x12c))/0xa;if(_0xc29b9===_0x20a215)break;else _0x52a0cf['push'](_0x52a0cf['shift']());}catch(_0x2db103){_0x52a0cf['push'](_0x52a0cf['shift']());}}}(a2_0x4246,0x7851e));import{CliErrors}from'../../errors.js';function a2_0x4246(){const _0x35053f=['appName','Initialize\x20','pull','appPublishStatus','No\x20apps\x20found\x20on\x20the\x20platform.','Set\x20the\x20fallback\x20app\x20candidate','items','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','appCode','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','2482803FIIxDf','envName','\x22\x20not\x20found.','Use\x20global\x20config\x20scope','name','bool','1160rPnkcZ','init','projectPath','newConfigFileName','App\x20\x22','validation','write','53260JVIkgY','298525apbRmH','Usage:\x20','../../context.js','str','Target\x20environment\x20(default:\x20current\x20env)','\x20app(s)\x20for\x20env=\x22','30RznLEE','source','Missing\x20app\x20name.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','local','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Remote\x20app\x20name\x20to\x20activate','map','\x20cached\x20app(s)\x20for\x20env=\x22','.appcode\x20to\x20.lovrabet.json.','env','\x20app\x20use\x20<name>\x20[--global]','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','push','from','366636LGlomD','../../commands/app/remote-source.js','args','app','project-default','33992dYUMnD','raw','boolean','fetchedAt','no-cache','join','../../commands/app/cache.js','length','defaultApp','isCurrent','type','appcode','7572350WyZLmR','\x20config\x20file','Use\x20`','Default\x20app\x20candidate\x20set\x20to\x20\x22','Available\x20remote\x20apps:\x20','string','list','trim','nonInteractive','find','cache','globalPath','production','global','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','config','111NxQJQo','import','appOwnerName','entries','accessKey','No\x20cached\x20apps\x20found.','Read\x20app\x20list\x20from\x20local\x20cache\x20only','153036GHZWVA','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','remote','mergedCli','Refreshed\x20app\x20cache\x20with\x20'];a2_0x4246=function(){return _0x35053f;};return a2_0x4246();}import{PRODUCT_CONFIG}from'../../constant/product.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a2_0x3cc3(_0x42f081,_0x4be601){_0x42f081=_0x42f081-0x10d;const _0x4246f5=a2_0x4246();let _0x3cc342=_0x4246f5[_0x42f081];return _0x3cc342;}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0x1fbf87(0x139),'type':a2_0x1fbf87(0x122),'description':a2_0x1fbf87(0x155),'default':![]};function collectFlags(_0x2b547f,_0x4d0da5){const _0x57e909=a2_0x1fbf87,_0x11231c={};for(const _0x3040f9 of _0x4d0da5){const _0x21e138=_0x3040f9[_0x57e909(0x12a)]===_0x57e909(0x122)?_0x2b547f[_0x57e909(0x157)](_0x3040f9[_0x57e909(0x156)]):_0x2b547f[_0x57e909(0x163)](_0x3040f9[_0x57e909(0x156)]);if(_0x21e138!==''&&_0x21e138!==![])_0x11231c[_0x3040f9['name']]=_0x21e138;}if(_0x2b547f[_0x57e909(0x134)])_0x11231c['nonInteractive']=!![];return _0x11231c;}const initDef={'service':'app','command':a2_0x1fbf87(0x159),'description':a2_0x1fbf87(0x149)+PRODUCT_CONFIG[a2_0x1fbf87(0x15b)]+a2_0x1fbf87(0x12d),'risk':a2_0x1fbf87(0x15e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x2d05b9){return await runInit(collectFlags(_0x2d05b9,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x1fbf87(0x11e),'command':a2_0x1fbf87(0x132),'description':a2_0x1fbf87(0x10f),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x1fbf87(0x116),'type':'string','description':a2_0x1fbf87(0x111),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1fbf87(0x110),'type':a2_0x1fbf87(0x122),'description':a2_0x1fbf87(0x142),'default':![]},{'name':a2_0x1fbf87(0x124),'type':a2_0x1fbf87(0x122),'description':a2_0x1fbf87(0x144),'default':![]}],async 'execute'(_0x142c58){const _0x1dbb6e=a2_0x1fbf87,_0x2ba2bd=_0x142c58[_0x1dbb6e(0x163)](_0x1dbb6e(0x116))||_0x142c58[_0x1dbb6e(0x153)]||getEnv()||_0x1dbb6e(0x138),_0x2be729=_0x142c58[_0x1dbb6e(0x157)](_0x1dbb6e(0x110)),_0x57e01e=_0x142c58[_0x1dbb6e(0x157)](_0x1dbb6e(0x124)),{readRawConfigWithLayers:_0x13e2c0,resolveDefaultAppSource:_0x1e26f2,getLocalAppAliases:_0x2ce305}=await import(_0x1dbb6e(0x162)),{getRemoteAppList:_0xe31e84}=await import(_0x1dbb6e(0x11c)),{config:_0xb43d51,layers:_0x5a2e41}=_0x13e2c0(),_0x26871a=_0x1e26f2(_0x5a2e41),{defaultApp:_0x4ac8fa}=_0xb43d51,_0x38c0a7=await _0xe31e84({'env':_0x2ba2bd,'accessKey':_0x142c58['accessKey'],'localOnly':_0x2be729,'noCache':_0x57e01e}),_0x52dd65=_0x38c0a7[_0x1dbb6e(0x14e)][_0x1dbb6e(0x113)](_0x1f5fa2=>{const _0x3b7f55=_0x1dbb6e;return{'name':_0x1f5fa2[_0x3b7f55(0x148)],'appcode':_0x1f5fa2[_0x3b7f55(0x150)],'named':!![],'definedIn':_0x3b7f55(0x145),'isDefault':_0x1f5fa2[_0x3b7f55(0x148)]===_0x4ac8fa,...buildAppProfileListFields(_0x2ba2bd),'source':_0x38c0a7[_0x3b7f55(0x10d)],'owner':_0x1f5fa2[_0x3b7f55(0x13e)]??null,'status':_0x1f5fa2[_0x3b7f55(0x14b)]??null,'cachedAt':_0x38c0a7['fetchedAt']};}),_0x1aaeb6=_0x2ce305(_0xb43d51);let _0xa50320=0x0;for(const [_0x91d7d2,_0x19a40b]of Object[_0x1dbb6e(0x13f)](_0x1aaeb6)){const _0x28e2a=typeof _0x19a40b[_0x1dbb6e(0x12b)]===_0x1dbb6e(0x131)?_0x19a40b[_0x1dbb6e(0x12b)][_0x1dbb6e(0x133)]():'';if(!_0x28e2a)continue;_0xa50320+=0x1,_0x52dd65[_0x1dbb6e(0x119)]({'name':_0x91d7d2,'appcode':_0x28e2a,'named':!![],'definedIn':_0x1dbb6e(0x110),'isDefault':_0x91d7d2===_0x4ac8fa,...buildAppProfileListFields(_0x2ba2bd),'source':_0x1dbb6e(0x13b),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x52dd65,_0x142c58[_0x1dbb6e(0x146)]);if(_0x52dd65['length']===0x0)return{'ok':!![],'data':[],'message':_0x38c0a7['source']===_0x1dbb6e(0x136)?_0x1dbb6e(0x141):_0x1dbb6e(0x14c)};const _0x55828f=_0x52dd65[_0x1dbb6e(0x135)](_0x10d839=>_0x10d839[_0x1dbb6e(0x129)]===!![]),_0x5f3fa2=_0x4ac8fa??_0x55828f?.[_0x1dbb6e(0x156)]??null,_0x8f80a2={'env':_0x2ba2bd,'source':_0x38c0a7['source'],'fetchedAt':_0x38c0a7[_0x1dbb6e(0x123)],'cachePath':_0x38c0a7['cachePath'],'globalPath':_0x5a2e41[_0x1dbb6e(0x137)]??null,'projectPath':_0x5a2e41[_0x1dbb6e(0x15a)]??null,'defaultApp':_0x5f3fa2,'defaultAppSource':_0x4ac8fa!=null?_0x26871a:null,'localAliasCount':_0xa50320};return{'ok':!![],'data':{'items':_0x52dd65,'meta':_0x8f80a2}};}},pullDef={'service':a2_0x1fbf87(0x11e),'command':a2_0x1fbf87(0x14a),'description':a2_0x1fbf87(0x151),'risk':a2_0x1fbf87(0x15e),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x1fbf87(0x116),'type':'string','description':a2_0x1fbf87(0x164),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1fbf87(0x110),'type':a2_0x1fbf87(0x122),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x1fbf87(0x124),'type':a2_0x1fbf87(0x122),'description':a2_0x1fbf87(0x144),'default':![]}],async 'execute'(_0x581348){const _0x838236=a2_0x1fbf87,_0x559260=_0x581348[_0x838236(0x163)](_0x838236(0x116))||_0x581348[_0x838236(0x153)]||getEnv()||_0x838236(0x138),_0x420cd1=_0x581348['bool']('local'),_0x34447c=_0x581348[_0x838236(0x157)](_0x838236(0x124)),{getRemoteAppList:_0x5df4f6}=await import('../../commands/app/remote-source.js'),_0x419a47=await _0x5df4f6({'env':_0x559260,'accessKey':_0x581348[_0x838236(0x140)],'localOnly':_0x420cd1,'noCache':_0x34447c});return{'ok':!![],'data':{'total':_0x419a47[_0x838236(0x14e)][_0x838236(0x127)],'env':_0x559260,'source':_0x419a47[_0x838236(0x10d)],'fetchedAt':_0x419a47[_0x838236(0x123)],'cachePath':_0x419a47['cachePath']},'message':_0x419a47[_0x838236(0x10d)]===_0x838236(0x136)?'Loaded\x20'+_0x419a47[_0x838236(0x14e)]['length']+_0x838236(0x114)+_0x559260+'\x22.':_0x838236(0x147)+_0x419a47[_0x838236(0x14e)][_0x838236(0x127)]+_0x838236(0x165)+_0x559260+'\x22.'};}},useDef={'service':a2_0x1fbf87(0x11e),'command':'use','description':a2_0x1fbf87(0x14d),'risk':a2_0x1fbf87(0x15e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x1fbf87(0x156),'description':a2_0x1fbf87(0x112),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x37257d){const _0x557e9f=a2_0x1fbf87;if(!_0x37257d[_0x557e9f(0x11d)][0x0])throw CliErrors['validation'](_0x557e9f(0x10e),_0x557e9f(0x161)+CLI_BIN_NAME+_0x557e9f(0x117));},async 'execute'(_0x17e1e1){const _0x4034eb=a2_0x1fbf87,_0x42771c=_0x17e1e1[_0x4034eb(0x11d)][0x0];if(!_0x42771c)throw CliErrors[_0x4034eb(0x15d)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x4034eb(0x117));const {buildConfigFromFlags:_0x1e038e,resolveLocalAppAliasCode:_0x150373}=await import(_0x4034eb(0x162)),{readCachedAppList:_0x127cb7}=await import(_0x4034eb(0x126)),_0x124c99=_0x17e1e1[_0x4034eb(0x163)](_0x4034eb(0x116)),_0x51e715=_0x1e038e(_0x124c99?{'env':_0x124c99}:{}),_0x169c07=_0x127cb7(_0x51e715[_0x4034eb(0x116)],_0x51e715['accessKey']),_0x21bce8=_0x169c07?.[_0x4034eb(0x14e)][_0x4034eb(0x135)](_0x545c8c=>_0x545c8c[_0x4034eb(0x148)]===_0x42771c),_0x856eb=_0x150373(_0x51e715[_0x4034eb(0x121)]??{},_0x42771c);if(!_0x21bce8&&!_0x856eb&&_0x51e715['defaultApp']!==_0x42771c){const _0x5e4a2d=[..._0x169c07?.[_0x4034eb(0x14e)][_0x4034eb(0x113)](_0x25c5e1=>_0x25c5e1[_0x4034eb(0x148)])??[]],_0x40bb5b=_0x5e4a2d[_0x4034eb(0x127)]===0x0?_0x4034eb(0x12e)+CLI_BIN_NAME+_0x4034eb(0x13a)+_0x42771c+_0x4034eb(0x115):_0x4034eb(0x130)+Array[_0x4034eb(0x11a)](new Set(_0x5e4a2d))[_0x4034eb(0x125)](',\x20')+_0x4034eb(0x14f);throw CliErrors['validation'](_0x4034eb(0x15c)+_0x42771c+_0x4034eb(0x154),_0x40bb5b);}const _0x3d07c8=_0x17e1e1['bool'](_0x4034eb(0x139));let _0x396386;if(_0x3d07c8)_0x396386={'global':!![]};else{const {isInProject:_0x473b2d}=await import(_0x4034eb(0x162)),_0x5529e3=_0x473b2d();_0x396386=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x4034eb(0x11f),'inProject':_0x5529e3}));}const _0x325cde=readConfig(_0x396386);return _0x325cde[_0x4034eb(0x128)]=_0x42771c,writeConfig(_0x325cde,_0x396386),{'ok':!![],'message':_0x4034eb(0x12f)+_0x42771c+'\x22'+scopeLabel(_0x396386)+'.'};}},importDef={'service':a2_0x1fbf87(0x11e),'command':a2_0x1fbf87(0x13d),'description':a2_0x1fbf87(0x118),'risk':a2_0x1fbf87(0x15e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x22a198){return await runInitImport(collectFlags(_0x22a198,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x178d99,_0x3946b1){const _0x1d2380=a3_0x5d27,_0x2142ee=_0x178d99();while(!![]){try{const _0x247a02=parseInt(_0x1d2380(0x7c))/0x1+parseInt(_0x1d2380(0x7b))/0x2*(-parseInt(_0x1d2380(0x71))/0x3)+parseInt(_0x1d2380(0x79))/0x4*(-parseInt(_0x1d2380(0x7e))/0x5)+parseInt(_0x1d2380(0x7f))/0x6*(parseInt(_0x1d2380(0x7d))/0x7)+-parseInt(_0x1d2380(0x6d))/0x8*(parseInt(_0x1d2380(0x6f))/0x9)+-parseInt(_0x1d2380(0x73))/0xa*(parseInt(_0x1d2380(0x72))/0xb)+-parseInt(_0x1d2380(0x78))/0xc*(-parseInt(_0x1d2380(0x77))/0xd);if(_0x247a02===_0x3946b1)break;else _0x2142ee['push'](_0x2142ee['shift']());}catch(_0x2b33bc){_0x2142ee['push'](_0x2142ee['shift']());}}}(a3_0x5873,0xe2cb4));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x5d27(_0x251619,_0x4c6176){_0x251619=_0x251619-0x6d;const _0x587384=a3_0x5873();let _0x5d27bb=_0x587384[_0x251619];return _0x5d27bb;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1f25d1=a3_0x5d27,_0x6a10a5=join(__dirname,'../../../mock/app-list.json'),_0x199e46=readFileSync(_0x6a10a5,_0x1f25d1(0x7a));return JSON[_0x1f25d1(0x76)](_0x199e46);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x568394=a3_0x5d27,_0x37de8e=getMockAppList();if(!_0x37de8e[_0x568394(0x75)])throw new Error(_0x568394(0x74)+_0x37de8e[_0x568394(0x70)]+'\x20('+_0x37de8e['errorCode']+')');return _0x37de8e[_0x568394(0x6e)]['tableData'];}function a3_0x5873(){const _0x342fa8=['11347jADjuT','10bmyqYG','6132yrgVbs','8PSjRYq','data','6638769ueNWAB','errorMsg','951VPPQMU','17259JhHapx','710fVEhye','Mock\x20API\x20error:\x20','success','parse','4121jXwEvW','59244etyToU','2529144feooTS','utf-8','10230lHvglH','1442324RWjQXs'];a3_0x5873=function(){return _0x342fa8;};return a3_0x5873();}
1
+ (function(_0x5eea30,_0x5b0a3a){const _0x1b57cf=a3_0x584b,_0xe710dd=_0x5eea30();while(!![]){try{const _0x5f2949=-parseInt(_0x1b57cf(0x1ab))/0x1+parseInt(_0x1b57cf(0x1aa))/0x2*(parseInt(_0x1b57cf(0x1a9))/0x3)+-parseInt(_0x1b57cf(0x1a8))/0x4+-parseInt(_0x1b57cf(0x1a0))/0x5+-parseInt(_0x1b57cf(0x1a2))/0x6+-parseInt(_0x1b57cf(0x1a7))/0x7*(parseInt(_0x1b57cf(0x1a5))/0x8)+-parseInt(_0x1b57cf(0x1a4))/0x9*(-parseInt(_0x1b57cf(0x1ae))/0xa);if(_0x5f2949===_0x5b0a3a)break;else _0xe710dd['push'](_0xe710dd['shift']());}catch(_0x759bfa){_0xe710dd['push'](_0xe710dd['shift']());}}}(a3_0x2c8d,0x26103));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0x584b(_0x51b04d,_0x70cbcf){_0x51b04d=_0x51b04d-0x1a0;const _0x2c8d2c=a3_0x2c8d();let _0x584b19=_0x2c8d2c[_0x51b04d];return _0x584b19;}function a3_0x2c8d(){const _0x36f601=['94DNtOSQ','71394LNNKZF','../../../mock/app-list.json','errorCode','1341730LjVYzH','1453175avwHyp','utf-8','1374036jnMYjg','Mock\x20API\x20error:\x20','54JSFGkm','104QDxoeI','data','12411jUyPUu','140376dZKBxS','3CffyMr'];a3_0x2c8d=function(){return _0x36f601;};return a3_0x2c8d();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x3dc8e3=a3_0x584b,_0x4aba0b=join(__dirname,_0x3dc8e3(0x1ac)),_0x1cea75=readFileSync(_0x4aba0b,_0x3dc8e3(0x1a1));return JSON['parse'](_0x1cea75);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x411c98=a3_0x584b,_0x1800ae=getMockAppList();if(!_0x1800ae['success'])throw new Error(_0x411c98(0x1a3)+_0x1800ae['errorMsg']+'\x20('+_0x1800ae[_0x411c98(0x1ad)]+')');return _0x1800ae[_0x411c98(0x1a6)]['tableData'];}
@@ -1 +1 @@
1
- (function(_0x5885a4,_0x500932){const _0x243402=a4_0x17d8,_0x270f6f=_0x5885a4();while(!![]){try{const _0x4121da=-parseInt(_0x243402(0x144))/0x1*(-parseInt(_0x243402(0x14a))/0x2)+parseInt(_0x243402(0x143))/0x3*(parseInt(_0x243402(0x13c))/0x4)+parseInt(_0x243402(0x13a))/0x5+-parseInt(_0x243402(0x140))/0x6*(parseInt(_0x243402(0x142))/0x7)+-parseInt(_0x243402(0x139))/0x8*(-parseInt(_0x243402(0x147))/0x9)+-parseInt(_0x243402(0x13e))/0xa+-parseInt(_0x243402(0x149))/0xb;if(_0x4121da===_0x500932)break;else _0x270f6f['push'](_0x270f6f['shift']());}catch(_0x1b24f0){_0x270f6f['push'](_0x270f6f['shift']());}}}(a4_0x4adf,0xd8ed5));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';function a4_0x17d8(_0x4295d0,_0x16a440){_0x4295d0=_0x4295d0-0x139;const _0x4adf67=a4_0x4adf();let _0x17d8fc=_0x4adf67[_0x4295d0];return _0x17d8fc;}export function shouldUseMockRemoteApps(){const _0x15ece6=a4_0x17d8,_0x31fbc4=(productEnv('APP_LIST_SOURCE')||'')[_0x15ece6(0x13f)]()['toLowerCase']();return _0x31fbc4===_0x15ece6(0x141);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x4adf(){const _0x2c53f3=['31883oKubVf','items','cache','27UFcjDh','fetchedAt','14144042XZJiOy','8AngQUy','2714632oDNlqo','4037850NsVkRa','remote','4BsCxQi','toISOString','1356660RoDlqE','trim','6BPbxGR','mock','1799469mukJjc','1841997VuGLRw'];a4_0x4adf=function(){return _0x2c53f3;};return a4_0x4adf();}export async function getRemoteAppList(_0x5f4576){const _0x3fa00e=a4_0x17d8,{env:_0x825194,accessKey:_0x44d2ae,localOnly:localOnly=![],noCache:noCache=![]}=_0x5f4576,_0x2757c6=readCachedAppList(_0x825194,_0x44d2ae),_0x45c9d3=_0x44d2ae?.[_0x3fa00e(0x13f)]()?getAppCacheFilePath(_0x825194,_0x44d2ae):null;if(localOnly)return{'items':_0x2757c6?.[_0x3fa00e(0x145)]??[],'source':'cache','fetchedAt':_0x2757c6?.[_0x3fa00e(0x148)]??null,'cachePath':_0x45c9d3};try{const _0x3a9684=await getRemoteAppItems(),_0x11ed9b=shouldUseMockRemoteApps()?_0x3fa00e(0x141):_0x3fa00e(0x13b),_0x2e06db=new Date()[_0x3fa00e(0x13d)](),_0x48f5ec=_0x44d2ae?.[_0x3fa00e(0x13f)]()?writeCachedAppList(_0x825194,_0x44d2ae,{'env':_0x825194,'fetchedAt':_0x2e06db,'source':_0x11ed9b,'items':_0x3a9684}):null;return{'items':_0x3a9684,'source':_0x11ed9b,'fetchedAt':_0x2e06db,'cachePath':_0x48f5ec};}catch(_0x948c6){if(!noCache&&_0x2757c6)return{'items':_0x2757c6[_0x3fa00e(0x145)],'source':_0x3fa00e(0x146),'fetchedAt':_0x2757c6[_0x3fa00e(0x148)],'cachePath':_0x45c9d3};throw _0x948c6;}}
1
+ (function(_0x4f085d,_0x59bb12){const _0x1ff081=a4_0xb1b8,_0x5cca61=_0x4f085d();while(!![]){try{const _0x17febe=parseInt(_0x1ff081(0xe9))/0x1*(-parseInt(_0x1ff081(0xec))/0x2)+-parseInt(_0x1ff081(0xef))/0x3+parseInt(_0x1ff081(0xf7))/0x4+-parseInt(_0x1ff081(0xf0))/0x5*(-parseInt(_0x1ff081(0xeb))/0x6)+parseInt(_0x1ff081(0xe7))/0x7+-parseInt(_0x1ff081(0xe8))/0x8+-parseInt(_0x1ff081(0xf1))/0x9*(-parseInt(_0x1ff081(0xf6))/0xa);if(_0x17febe===_0x59bb12)break;else _0x5cca61['push'](_0x5cca61['shift']());}catch(_0x29df0c){_0x5cca61['push'](_0x5cca61['shift']());}}}(a4_0x47ce,0x8c3c3));function a4_0xb1b8(_0x40bf9d,_0x58e097){_0x40bf9d=_0x40bf9d-0xe7;const _0x47ce59=a4_0x47ce();let _0xb1b8cf=_0x47ce59[_0x40bf9d];return _0xb1b8cf;}import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x59c584=a4_0xb1b8,_0x74de24=(productEnv('APP_LIST_SOURCE')||'')[_0x59c584(0xf2)]()[_0x59c584(0xed)]();return _0x74de24===_0x59c584(0xf3);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x47ce(){const _0x4a159e=['2101tYwOOt','cache','131250qEdERH','254lXgZEp','toLowerCase','items','2343768QunhMy','160Mcqfqp','45WsMXRa','trim','mock','remote','fetchedAt','668570IOrUKG','2174844ftTuXU','5830993PLDhjL','6308072VflsEs'];a4_0x47ce=function(){return _0x4a159e;};return a4_0x47ce();}export async function getRemoteAppList(_0x4b9ef8){const _0x17604a=a4_0xb1b8,{env:_0x2c1e47,accessKey:_0x3844e5,localOnly:localOnly=![],noCache:noCache=![]}=_0x4b9ef8,_0x5cbe70=readCachedAppList(_0x2c1e47,_0x3844e5),_0x10f0c9=_0x3844e5?.[_0x17604a(0xf2)]()?getAppCacheFilePath(_0x2c1e47,_0x3844e5):null;if(localOnly)return{'items':_0x5cbe70?.['items']??[],'source':_0x17604a(0xea),'fetchedAt':_0x5cbe70?.['fetchedAt']??null,'cachePath':_0x10f0c9};try{const _0x330806=await getRemoteAppItems(),_0x3e512e=shouldUseMockRemoteApps()?'mock':_0x17604a(0xf4),_0xf2a292=new Date()['toISOString'](),_0x3ad1ac=_0x3844e5?.[_0x17604a(0xf2)]()?writeCachedAppList(_0x2c1e47,_0x3844e5,{'env':_0x2c1e47,'fetchedAt':_0xf2a292,'source':_0x3e512e,'items':_0x330806}):null;return{'items':_0x330806,'source':_0x3e512e,'fetchedAt':_0xf2a292,'cachePath':_0x3ad1ac};}catch(_0x24f4a8){if(!noCache&&_0x5cbe70)return{'items':_0x5cbe70[_0x17604a(0xee)],'source':_0x17604a(0xea),'fetchedAt':_0x5cbe70[_0x17604a(0xf5)],'cachePath':_0x10f0c9};throw _0x24f4a8;}}
@@ -1 +1 @@
1
- (function(_0x552026,_0xb22c58){const _0xbb2fc2=a5_0xd0ed,_0x112814=_0x552026();while(!![]){try{const _0x593273=-parseInt(_0xbb2fc2(0x146))/0x1+parseInt(_0xbb2fc2(0x13c))/0x2+-parseInt(_0xbb2fc2(0x14a))/0x3+-parseInt(_0xbb2fc2(0x13a))/0x4+-parseInt(_0xbb2fc2(0x13d))/0x5+parseInt(_0xbb2fc2(0x145))/0x6+parseInt(_0xbb2fc2(0x138))/0x7*(parseInt(_0xbb2fc2(0x13b))/0x8);if(_0x593273===_0xb22c58)break;else _0x112814['push'](_0x112814['shift']());}catch(_0x5dfa22){_0x112814['push'](_0x112814['shift']());}}}(a5_0x3067,0x40098));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a5_0xd0ed(_0x479fd6,_0xc3269f){_0x479fd6=_0x479fd6-0x138;const _0x30674f=a5_0x3067();let _0xd0ed0=_0x30674f[_0x479fd6];return _0xd0ed0;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x52b9f8,_0x3065c8){const _0x2b71bd=a5_0xd0ed;if(!_0x3065c8)return;const _0xf9bc00=!!(_0x3065c8[_0x2b71bd(0x140)]??_0x3065c8['defaultApp']);for(const _0x41a63a of _0x52b9f8){_0x41a63a[_0x2b71bd(0x13f)]=![];}const _0x472d7b=_0x3065c8[_0x2b71bd(0x143)]!=null?String(_0x3065c8[_0x2b71bd(0x143)])[_0x2b71bd(0x149)]():'';if(_0xf9bc00){const _0x2109df=_0x3065c8[_0x2b71bd(0x140)]??_0x3065c8[_0x2b71bd(0x13e)];if(_0x2109df){const _0x34bf5b=_0x52b9f8[_0x2b71bd(0x139)](_0x50ad51=>_0x50ad51[_0x2b71bd(0x148)]===!![]&&_0x50ad51[_0x2b71bd(0x142)]===_0x2109df&&_0x50ad51[_0x2b71bd(0x147)]==='local'),_0xb9bb04=_0x34bf5b??_0x52b9f8['find'](_0x2847b4=>_0x2847b4[_0x2b71bd(0x148)]===!![]&&_0x2847b4[_0x2b71bd(0x142)]===_0x2109df);_0xb9bb04&&(_0xb9bb04[_0x2b71bd(0x13f)]=!![]);}return;}if(!_0x472d7b)return;for(const _0x2748e5 of _0x52b9f8){String(_0x2748e5[_0x2b71bd(0x144)]??'')[_0x2b71bd(0x149)]()===_0x472d7b&&(_0x2748e5['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0xc2b706){const _0x5e2b15=a5_0xd0ed;return formatScopeLabel(_0xc2b706[_0x5e2b15(0x141)]?'global':_0x5e2b15(0x14b));}function a5_0x3067(){const _0x42eb1a=['10053obJrhY','project','483lCZfIu','find','2048536gxosZy','95144JcIEmA','186870gNIbfd','1976720exflnp','defaultApp','isCurrent','currentApp','global','name','appCode','appcode','3046470USUWbL','248672YYOlcx','definedIn','named','trim'];a5_0x3067=function(){return _0x42eb1a;};return a5_0x3067();}
1
+ (function(_0x183ab0,_0x2cea25){const _0x3a4cbd=a5_0x4c98,_0x30b61f=_0x183ab0();while(!![]){try{const _0x3d56f9=parseInt(_0x3a4cbd(0x181))/0x1*(parseInt(_0x3a4cbd(0x18f))/0x2)+parseInt(_0x3a4cbd(0x17f))/0x3*(-parseInt(_0x3a4cbd(0x180))/0x4)+parseInt(_0x3a4cbd(0x18b))/0x5+-parseInt(_0x3a4cbd(0x179))/0x6*(parseInt(_0x3a4cbd(0x17c))/0x7)+parseInt(_0x3a4cbd(0x17e))/0x8*(-parseInt(_0x3a4cbd(0x185))/0x9)+parseInt(_0x3a4cbd(0x188))/0xa*(-parseInt(_0x3a4cbd(0x184))/0xb)+parseInt(_0x3a4cbd(0x187))/0xc;if(_0x3d56f9===_0x2cea25)break;else _0x30b61f['push'](_0x30b61f['shift']());}catch(_0x2080d2){_0x30b61f['push'](_0x30b61f['shift']());}}}(a5_0x2fb3,0xdeeab));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0x2fb3(){const _0x4de265=['global','17984520YLGubG','4310qQFiMv','currentApp','named','4077005lDGicj','appCode','isCurrent','local','4SKbPQT','6CVYnxy','name','definedIn','4026883EarBtB','find','1528CFUQcD','1733517sZpLTY','4KZTVkm','658072JagQCl','trim','defaultApp','25465kgSeEH','26685yWMiPn'];a5_0x2fb3=function(){return _0x4de265;};return a5_0x2fb3();}export function enrichAppListItemsWithMergedSelection(_0x2db6,_0x1d3193){const _0x4638e9=a5_0x4c98;if(!_0x1d3193)return;const _0x2c6d14=!!(_0x1d3193[_0x4638e9(0x189)]??_0x1d3193[_0x4638e9(0x183)]);for(const _0x405eb9 of _0x2db6){_0x405eb9['isCurrent']=![];}const _0x346faa=_0x1d3193[_0x4638e9(0x18c)]!=null?String(_0x1d3193[_0x4638e9(0x18c)])[_0x4638e9(0x182)]():'';if(_0x2c6d14){const _0x458319=_0x1d3193['currentApp']??_0x1d3193[_0x4638e9(0x183)];if(_0x458319){const _0x2c71da=_0x2db6['find'](_0x4aa8bd=>_0x4aa8bd['named']===!![]&&_0x4aa8bd[_0x4638e9(0x17a)]===_0x458319&&_0x4aa8bd[_0x4638e9(0x17b)]===_0x4638e9(0x18e)),_0x5c7527=_0x2c71da??_0x2db6[_0x4638e9(0x17d)](_0x31fc63=>_0x31fc63[_0x4638e9(0x18a)]===!![]&&_0x31fc63[_0x4638e9(0x17a)]===_0x458319);_0x5c7527&&(_0x5c7527[_0x4638e9(0x18d)]=!![]);}return;}if(!_0x346faa)return;for(const _0x20904d of _0x2db6){String(_0x20904d['appcode']??'')[_0x4638e9(0x182)]()===_0x346faa&&(_0x20904d[_0x4638e9(0x18d)]=!![]);}}function a5_0x4c98(_0x20dc6c,_0xead946){_0x20dc6c=_0x20dc6c-0x179;const _0x2fb356=a5_0x2fb3();let _0x4c9850=_0x2fb356[_0x20dc6c];return _0x4c9850;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x501a1e){const _0x505f9f=a5_0x4c98;return formatScopeLabel(_0x501a1e['global']?_0x505f9f(0x186):'project');}
@@ -1 +1 @@
1
- const a6_0x24348c=a6_0xb86b;(function(_0x334b37,_0x1e1fa0){const _0x1628eb=a6_0xb86b,_0x13690f=_0x334b37();while(!![]){try{const _0x47fefb=-parseInt(_0x1628eb(0x1aa))/0x1+parseInt(_0x1628eb(0x1fb))/0x2+-parseInt(_0x1628eb(0x1d9))/0x3+parseInt(_0x1628eb(0x1e2))/0x4+parseInt(_0x1628eb(0x1ef))/0x5+-parseInt(_0x1628eb(0x1d0))/0x6*(-parseInt(_0x1628eb(0x1f0))/0x7)+-parseInt(_0x1628eb(0x1af))/0x8;if(_0x47fefb===_0x1e1fa0)break;else _0x13690f['push'](_0x13690f['shift']());}catch(_0x52ed16){_0x13690f['push'](_0x13690f['shift']());}}}(a6_0xa2fc,0xa86de));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';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a6_0xa2fc(){const _0x163d8c=['bool','\x20auth\x20login\x20--access-key\x20<ak_xxx>','write','logout','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20env\x20var','ClientAk','Missing\x20accessKey.','init','length','335695DyUmyQ','14GnBzRj','Invalid\x20accessKey\x20format:\x20\x22','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20(ak_xxx...)','AccessKey\x20saved\x20to\x20','=ak_xxx','boolean','Auth\x20mode:\x20','read','str','push','112604cxvjPX','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','558896kskCdf','Read\x20from\x20global\x20config\x20(default)','yes','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','185504bxRKUX','login','info','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Clear\x20accessKey\x20from\x20config','daily','Auth\x20config\x20reinitialized\x20in\x20','slice','Show\x20current\x20authentication\x20status','\x20auth\x20status','global','\x20(via\x20','accessKey','Use\x20`','string','stdout','global-default','env','\x20Current\x20env:\x20','Write\x20to\x20global\x20config\x20(default)','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','userCenterDisplayName','Tip:\x20you\x20can\x20also\x20run:','Option\x20C:\x20environment\x20variable','nonInteractive','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Then\x20verify\x20with:\x20','project','access-key','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','4067460MqXuRg','join','development','`auth\x20login`\x20does\x20not\x20support\x20--yes.','\x20config','cancelled','production','trim','\x20config.','3269139NRDQim','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Option\x20B:\x20apps\x20config\x20(','status','test','auth','\x20Verify:\x20','validation','Shorthand\x20for\x20--access-key','3529688mNsvEc','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'];a6_0xa2fc=function(){return _0x163d8c;};return a6_0xa2fc();}import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0xcc25f0=a6_0xb86b;writeCliSideChannelLine(_0xcc25f0(0x1c5)+PRODUCT_CONFIG[_0xcc25f0(0x1c7)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0xcc25f0(0x1c8)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0xcc25f0(0x1e6));}function buildAccessKeySetupGuide(){const _0x6cb768=a6_0xb86b;return[_0x6cb768(0x1c5)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x6cb768(0x1c4)+CLI_BIN_NAME+_0x6cb768(0x1fd)][_0x6cb768(0x1d1)]('\x0a');}function a6_0xb86b(_0x5a028c,_0x117a48){_0x5a028c=_0x5a028c-0x1aa;const _0xa2fcb9=a6_0xa2fc();let _0xb86b7c=_0xa2fcb9[_0x5a028c];return _0xb86b7c;}function canPromptForAccessKey(_0x3c5d2b){const _0x2e6118=a6_0xb86b;return!_0x3c5d2b[_0x2e6118(0x1ca)]&&process['stdin']['isTTY']!==![]&&process[_0x2e6118(0x1be)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x4c6341){const _0x3ddd3a=a6_0xb86b;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4c6341[_0x3ddd3a(0x1e5)](_0x3ddd3a(0x1b9)),'explicitProject':_0x4c6341['bool'](_0x3ddd3a(0x1cd)),'policy':_0x3ddd3a(0x1bf)}));}async function resolveAuthWriteInput(_0x45d570){const _0x12b03b=a6_0xb86b;let _0x501b4b=(_0x45d570['str']('access-key')||_0x45d570[_0x12b03b(0x1f9)]('ak')||'')[_0x12b03b(0x1d7)]();const _0x335ef9=(_0x45d570[_0x12b03b(0x1f9)](_0x12b03b(0x1c0))||'')[_0x12b03b(0x1d7)]();if(!_0x501b4b&&canPromptForAccessKey(_0x45d570))try{showAccessKeyCreateHint(),_0x501b4b=await promptAccessKey('');}catch(_0x135c7c){if(isAbortPrompt(_0x135c7c))throw CliErrors[_0x12b03b(0x1d5)]();throw _0x135c7c;}if(!_0x501b4b)throw CliErrors[_0x12b03b(0x1e0)](_0x12b03b(0x1ec),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x12b03b(0x1dd)](_0x501b4b))throw CliErrors[_0x12b03b(0x1e0)](_0x12b03b(0x1f1)+_0x501b4b+'\x22',_0x12b03b(0x1da));if(!_0x335ef9)return{'accessKey':_0x501b4b};const _0x3bcc26=normalizeEnv(_0x335ef9);return{'accessKey':_0x501b4b,'env':isDaily(_0x3bcc26)?_0x12b03b(0x1b4):isDev(_0x3bcc26)?_0x12b03b(0x1d2):_0x12b03b(0x1d6)};}export const authDefinitions=[{'service':a6_0x24348c(0x1de),'command':a6_0x24348c(0x1b0),'description':a6_0x24348c(0x1b2),'risk':a6_0x24348c(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x24348c(0x1ce),'type':a6_0x24348c(0x1bd),'description':a6_0x24348c(0x1f3)},{'name':'ak','type':'string','description':a6_0x24348c(0x1e1)},{'name':a6_0x24348c(0x1b9),'type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1c2),'default':!![]},{'name':a6_0x24348c(0x1cd),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x362a59){const _0x4ab2b1=a6_0x24348c;if(_0x362a59[_0x4ab2b1(0x1e5)](_0x4ab2b1(0x1ac)))throw CliErrors[_0x4ab2b1(0x1e0)](_0x4ab2b1(0x1d3),_0x4ab2b1(0x1bc)+CLI_BIN_NAME+_0x4ab2b1(0x1e9)+CLI_BIN_NAME+_0x4ab2b1(0x1ad));const _0x8cff83=(_0x362a59[_0x4ab2b1(0x1f9)]('access-key')||_0x362a59[_0x4ab2b1(0x1f9)]('ak')||'')[_0x4ab2b1(0x1d7)]();if(!_0x8cff83&&_0x362a59['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1752a3=await resolveAuthWriteInput(_0x362a59),_0x1e9d19=resolveAuthScopeFlags(_0x362a59),_0x339d7e=readScopedConfig(_0x1e9d19);_0x339d7e['accessKey']=_0x1752a3[_0x4ab2b1(0x1bb)];_0x1752a3[_0x4ab2b1(0x1c0)]&&(_0x339d7e['env']=_0x1752a3[_0x4ab2b1(0x1c0)]);writeScopedConfig(_0x339d7e,_0x1e9d19);const _0x299854=_0x1e9d19[_0x4ab2b1(0x1b9)]?_0x4ab2b1(0x1b9):_0x4ab2b1(0x1cd),_0x566ee9=_0x339d7e[_0x4ab2b1(0x1c0)]?_0x4ab2b1(0x1c1)+_0x339d7e['env']+'.':'';return{'ok':!![],'message':_0x4ab2b1(0x1f4)+_0x299854+_0x4ab2b1(0x1d8)+_0x566ee9+'\x20Verify:\x20'+CLI_BIN_NAME+_0x4ab2b1(0x1b8)};}},{'service':a6_0x24348c(0x1de),'command':a6_0x24348c(0x1ed),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x24348c(0x1ce),'type':a6_0x24348c(0x1bd),'description':a6_0x24348c(0x1f3)},{'name':'ak','type':a6_0x24348c(0x1bd),'description':a6_0x24348c(0x1e1)},{'name':a6_0x24348c(0x1c0),'type':a6_0x24348c(0x1bd),'description':a6_0x24348c(0x1ae)},{'name':'global','type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1c2),'default':!![]},{'name':a6_0x24348c(0x1cd),'type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1e3),'default':![]}],async 'execute'(_0x3b3b32){const _0x287672=a6_0x24348c,_0x2796e8=await resolveAuthWriteInput(_0x3b3b32),_0x7b5986=resolveAuthScopeFlags(_0x3b3b32),_0x1266cd={'accessKey':_0x2796e8[_0x287672(0x1bb)]};_0x2796e8[_0x287672(0x1c0)]&&(_0x1266cd['env']=_0x2796e8[_0x287672(0x1c0)]);writeScopedConfig(_0x1266cd,_0x7b5986);const _0x4acb61=_0x7b5986['global']?_0x287672(0x1b9):'project',_0x186159=_0x1266cd[_0x287672(0x1c0)]?_0x287672(0x1c1)+_0x1266cd[_0x287672(0x1c0)]+'.':'';return{'ok':!![],'message':_0x287672(0x1b5)+_0x4acb61+'\x20scope.'+_0x186159+_0x287672(0x1df)+CLI_BIN_NAME+_0x287672(0x1b8)};}},{'service':a6_0x24348c(0x1de),'command':a6_0x24348c(0x1e8),'description':a6_0x24348c(0x1b3),'risk':a6_0x24348c(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x24348c(0x1b9),'type':a6_0x24348c(0x1f6),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x24348c(0x1cd),'type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1cf),'default':![]}],async 'execute'(_0x1df6b9){const _0x562f00=a6_0x24348c,_0x2a9276=resolveAuthScopeFlags(_0x1df6b9),_0x5f0882=readScopedConfig(_0x2a9276),_0x11a0cd=!!_0x5f0882['accessKey'];delete _0x5f0882[_0x562f00(0x1bb)],writeScopedConfig(_0x5f0882,_0x2a9276);const _0xc38ba1=_0x2a9276[_0x562f00(0x1b9)]?_0x562f00(0x1b9):_0x562f00(0x1cd);if(_0x11a0cd)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0xc38ba1+_0x562f00(0x1d8)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0xc38ba1+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a6_0x24348c(0x1de),'command':a6_0x24348c(0x1dc),'description':a6_0x24348c(0x1b7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x24348c(0x1b9),'type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1ab),'default':!![]},{'name':a6_0x24348c(0x1cd),'type':a6_0x24348c(0x1f6),'description':a6_0x24348c(0x1f2),'default':![]}],async 'execute'(_0x59893d){const _0x4466ee=a6_0x24348c,_0x586105=resolveAuthScopeFlags(_0x59893d),_0x4a5b59=readScopedConfig(_0x586105),_0x69c3f5=productEnvName('ACCESS_KEY'),_0x58428f=productEnv('ACCESS_KEY')||undefined,_0x5da646=_0x4a5b59[_0x4466ee(0x1bb)]||undefined,_0x5ea759=_0x58428f||_0x5da646,_0x461625=_0x58428f?_0x69c3f5+_0x4466ee(0x1ea):_0x5da646?(_0x586105[_0x4466ee(0x1b9)]?_0x4466ee(0x1b9):_0x4466ee(0x1cd))+_0x4466ee(0x1d4):null,_0x3a4855=[_0x4466ee(0x1f7)+AUTH_MODE[_0x4466ee(0x1eb)]];if(_0x5ea759){const _0x271681=_0x5ea759[_0x4466ee(0x1ee)]>0x8?''+_0x5ea759[_0x4466ee(0x1b6)](0x0,0x8)+'*'['repeat'](_0x5ea759[_0x4466ee(0x1ee)]-0x8):_0x5ea759;_0x3a4855[_0x4466ee(0x1fa)]('AccessKey:\x20'+_0x271681+(_0x461625?_0x4466ee(0x1ba)+_0x461625+')':''));}return!_0x5ea759&&(_0x3a4855['push'](''),_0x3a4855[_0x4466ee(0x1fa)](_0x4466ee(0x1cb)),_0x3a4855[_0x4466ee(0x1fa)](''),_0x3a4855[_0x4466ee(0x1fa)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x4466ee(0x1c6)),_0x3a4855[_0x4466ee(0x1fa)](''),_0x3a4855[_0x4466ee(0x1fa)](_0x4466ee(0x1db)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x3a4855[_0x4466ee(0x1fa)](_0x4466ee(0x1e4)),_0x3a4855[_0x4466ee(0x1fa)](''),_0x3a4855[_0x4466ee(0x1fa)](_0x4466ee(0x1c9)),_0x3a4855[_0x4466ee(0x1fa)]('\x20\x20export\x20'+_0x69c3f5+_0x4466ee(0x1f5)),_0x3a4855[_0x4466ee(0x1fa)](''),_0x3a4855['push'](_0x4466ee(0x1cc)+CLI_BIN_NAME+_0x4466ee(0x1b8)),_0x3a4855[_0x4466ee(0x1fa)](_0x4466ee(0x1c3)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x3a4855[_0x4466ee(0x1d1)]('\x0a')};}},{'service':a6_0x24348c(0x1de),'command':a6_0x24348c(0x1b1),'description':a6_0x24348c(0x1fc),'risk':a6_0x24348c(0x1f8),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1b57f3){const _0x27c6e5=a6_0x24348c,_0x50e001=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x50e001,'meta':{'env':_0x1b57f3['envName']??_0x27c6e5(0x1d6)}}};}}];
1
+ const a6_0x587b22=a6_0x1bbf;(function(_0x13bb26,_0x3854db){const _0x7899f1=a6_0x1bbf,_0x41526f=_0x13bb26();while(!![]){try{const _0x1c01ec=-parseInt(_0x7899f1(0x1ba))/0x1+-parseInt(_0x7899f1(0x1b4))/0x2*(-parseInt(_0x7899f1(0x1d7))/0x3)+parseInt(_0x7899f1(0x1f5))/0x4*(-parseInt(_0x7899f1(0x200))/0x5)+parseInt(_0x7899f1(0x1d1))/0x6+parseInt(_0x7899f1(0x1c0))/0x7+-parseInt(_0x7899f1(0x1b9))/0x8*(parseInt(_0x7899f1(0x1f7))/0x9)+parseInt(_0x7899f1(0x1e3))/0xa*(parseInt(_0x7899f1(0x1e1))/0xb);if(_0x1c01ec===_0x3854db)break;else _0x41526f['push'](_0x41526f['shift']());}catch(_0x1e3fef){_0x41526f['push'](_0x41526f['shift']());}}}(a6_0x443a,0x27a47));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';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 a6_0x443a(){const _0x40f43d=['global-default','Show\x20current\x20authentication\x20status','bool','\x20config','Tip:\x20you\x20can\x20also\x20run:','104daGtbK','join','36ZbPxLn','logout','Clear\x20from\x20global\x20config\x20(default)','\x20\x20export\x20','Shorthand\x20for\x20--access-key','AccessKey\x20cleared\x20from\x20','userCenterDisplayName','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Missing\x20accessKey.','50335nBxlXI','string','daily','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','length','read','accessKey','cancelled','env','isTTY','\x20Verify:\x20','Clear\x20accessKey\x20from\x20config','237284wuhmXY','write','global','newConfigFileName','login','87688ByPlSH','117615sMokWl','Write\x20to\x20global\x20config\x20(default)','Auth\x20mode:\x20','AccessKey\x20(ak_xxx...)','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Auth\x20config\x20reinitialized\x20in\x20','1620570tKFgHu','trim','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>','project','validation','\x20doctor','AccessKey:\x20','yes','slice','Option\x20C:\x20environment\x20variable','stdout','info','Read\x20from\x20global\x20config\x20(default)','\x20env\x20var','test','Then\x20verify\x20with:\x20','303870GYjwkM','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Current\x20env:\x20','boolean','3WOaStS','str','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','production','status','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','No\x20AccessKey\x20found\x20in\x20','ACCESS_KEY','\x20scope.','Invalid\x20accessKey\x20format:\x20\x22','539McRsIh','nonInteractive','37710RIEWKN','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','repeat','envName','auth','\x20auth\x20status','\x20config.','development','access-key','Option\x20B:\x20apps\x20config\x20(','\x20(via\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'];a6_0x443a=function(){return _0x40f43d;};return a6_0x443a();}function a6_0x1bbf(_0xc688c,_0x29f6ab){_0xc688c=_0xc688c-0x1b1;const _0x443a8c=a6_0x443a();let _0x1bbfbe=_0x443a8c[_0xc688c];return _0x1bbfbe;}function showAccessKeyCreateHint(){const _0x66fd3e=a6_0x1bbf;writeCliSideChannelLine(_0x66fd3e(0x1be)+PRODUCT_CONFIG[_0x66fd3e(0x1fd)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x66fd3e(0x1f4)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x66fd3e(0x1c3));}function buildAccessKeySetupGuide(){const _0x4bba30=a6_0x1bbf;return[_0x4bba30(0x1be)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x4bba30(0x1d9)+CLI_BIN_NAME+_0x4bba30(0x1e5)][_0x4bba30(0x1f6)]('\x0a');}function canPromptForAccessKey(_0x16abe9){const _0xa75e8c=a6_0x1bbf;return!_0x16abe9[_0xa75e8c(0x1e2)]&&process['stdin']['isTTY']!==![]&&process[_0xa75e8c(0x1cb)][_0xa75e8c(0x1b1)]!==![];}function resolveAuthScopeFlags(_0x3f6b71){const _0x4e3cca=a6_0x1bbf;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3f6b71[_0x4e3cca(0x1f2)](_0x4e3cca(0x1b6)),'explicitProject':_0x3f6b71[_0x4e3cca(0x1f2)]('project'),'policy':_0x4e3cca(0x1f0)}));}async function resolveAuthWriteInput(_0x33f7ca){const _0x39f509=a6_0x1bbf;let _0x51bec7=(_0x33f7ca[_0x39f509(0x1d8)]('access-key')||_0x33f7ca[_0x39f509(0x1d8)]('ak')||'')[_0x39f509(0x1c1)]();const _0x975521=(_0x33f7ca['str'](_0x39f509(0x209))||'')[_0x39f509(0x1c1)]();if(!_0x51bec7&&canPromptForAccessKey(_0x33f7ca))try{showAccessKeyCreateHint(),_0x51bec7=await promptAccessKey('');}catch(_0x110edb){if(isAbortPrompt(_0x110edb))throw CliErrors[_0x39f509(0x208)]();throw _0x110edb;}if(!_0x51bec7)throw CliErrors['validation'](_0x39f509(0x1ff),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x39f509(0x1cf)](_0x51bec7))throw CliErrors['validation'](_0x39f509(0x1e0)+_0x51bec7+'\x22',_0x39f509(0x1dc));if(!_0x975521)return{'accessKey':_0x51bec7};const _0x2d0639=normalizeEnv(_0x975521);return{'accessKey':_0x51bec7,'env':isDaily(_0x2d0639)?_0x39f509(0x202):isDev(_0x2d0639)?_0x39f509(0x1eb):_0x39f509(0x1da)};}export const authDefinitions=[{'service':a6_0x587b22(0x1e8),'command':a6_0x587b22(0x1b8),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a6_0x587b22(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x587b22(0x1ec),'type':a6_0x587b22(0x201),'description':a6_0x587b22(0x1bd)},{'name':'ak','type':a6_0x587b22(0x201),'description':a6_0x587b22(0x1fb)},{'name':a6_0x587b22(0x1b6),'type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1bb),'default':!![]},{'name':a6_0x587b22(0x1c4),'type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1d4),'default':![]}],async 'execute'(_0x2d00a2){const _0x1f147b=a6_0x587b22;if(_0x2d00a2['bool'](_0x1f147b(0x1c8)))throw CliErrors[_0x1f147b(0x1c5)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+_0x1f147b(0x1e4)+CLI_BIN_NAME+_0x1f147b(0x1d3));const _0x3235e2=(_0x2d00a2[_0x1f147b(0x1d8)](_0x1f147b(0x1ec))||_0x2d00a2[_0x1f147b(0x1d8)]('ak')||'')[_0x1f147b(0x1c1)]();if(!_0x3235e2&&_0x2d00a2[_0x1f147b(0x1e2)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x11b7d9=await resolveAuthWriteInput(_0x2d00a2),_0x3695df=resolveAuthScopeFlags(_0x2d00a2),_0x4e9e2e=readScopedConfig(_0x3695df);_0x4e9e2e[_0x1f147b(0x207)]=_0x11b7d9['accessKey'];_0x11b7d9['env']&&(_0x4e9e2e['env']=_0x11b7d9['env']);writeScopedConfig(_0x4e9e2e,_0x3695df);const _0x2ec8d5=_0x3695df[_0x1f147b(0x1b6)]?_0x1f147b(0x1b6):_0x1f147b(0x1c4),_0x57fd5f=_0x4e9e2e[_0x1f147b(0x209)]?_0x1f147b(0x1d5)+_0x4e9e2e[_0x1f147b(0x209)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x2ec8d5+_0x1f147b(0x1ea)+_0x57fd5f+_0x1f147b(0x1b2)+CLI_BIN_NAME+_0x1f147b(0x1e9)};}},{'service':a6_0x587b22(0x1e8),'command':'init','description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a6_0x587b22(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x587b22(0x1ec),'type':a6_0x587b22(0x201),'description':a6_0x587b22(0x1bd)},{'name':'ak','type':a6_0x587b22(0x201),'description':a6_0x587b22(0x1fb)},{'name':a6_0x587b22(0x209),'type':a6_0x587b22(0x201),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':'global','type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1bb),'default':!![]},{'name':a6_0x587b22(0x1c4),'type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1d4),'default':![]}],async 'execute'(_0x3d5aa6){const _0xd3bed5=a6_0x587b22,_0xb4ffee=await resolveAuthWriteInput(_0x3d5aa6),_0x1f4776=resolveAuthScopeFlags(_0x3d5aa6),_0x134f8d={'accessKey':_0xb4ffee[_0xd3bed5(0x207)]};_0xb4ffee['env']&&(_0x134f8d[_0xd3bed5(0x209)]=_0xb4ffee[_0xd3bed5(0x209)]);writeScopedConfig(_0x134f8d,_0x1f4776);const _0x5c9507=_0x1f4776[_0xd3bed5(0x1b6)]?_0xd3bed5(0x1b6):_0xd3bed5(0x1c4),_0x4f9458=_0x134f8d[_0xd3bed5(0x209)]?_0xd3bed5(0x1d5)+_0x134f8d[_0xd3bed5(0x209)]+'.':'';return{'ok':!![],'message':_0xd3bed5(0x1bf)+_0x5c9507+_0xd3bed5(0x1df)+_0x4f9458+'\x20Verify:\x20'+CLI_BIN_NAME+_0xd3bed5(0x1e9)};}},{'service':'auth','command':a6_0x587b22(0x1f8),'description':a6_0x587b22(0x1b3),'risk':a6_0x587b22(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x587b22(0x1b6),'type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1f9),'default':!![]},{'name':'project','type':a6_0x587b22(0x1d6),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x52ab97){const _0x45dcd2=a6_0x587b22,_0x3cf61c=resolveAuthScopeFlags(_0x52ab97),_0xb5b1b=readScopedConfig(_0x3cf61c),_0x5570fc=!!_0xb5b1b['accessKey'];delete _0xb5b1b[_0x45dcd2(0x207)],writeScopedConfig(_0xb5b1b,_0x3cf61c);const _0x378bcd=_0x3cf61c[_0x45dcd2(0x1b6)]?_0x45dcd2(0x1b6):_0x45dcd2(0x1c4);if(_0x5570fc)return{'ok':!![],'message':_0x45dcd2(0x1fc)+_0x378bcd+_0x45dcd2(0x1ea)};return{'ok':!![],'message':_0x45dcd2(0x1dd)+_0x378bcd+_0x45dcd2(0x1d2)};}},{'service':'auth','command':a6_0x587b22(0x1db),'description':a6_0x587b22(0x1f1),'risk':a6_0x587b22(0x206),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x587b22(0x1b6),'type':a6_0x587b22(0x1d6),'description':a6_0x587b22(0x1cd),'default':!![]},{'name':a6_0x587b22(0x1c4),'type':'boolean','description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x453d17){const _0x40c0ee=a6_0x587b22,_0x23dd82=resolveAuthScopeFlags(_0x453d17),_0x204a3a=readScopedConfig(_0x23dd82),_0xb9b27f=productEnvName(_0x40c0ee(0x1de)),_0x39783a=productEnv(_0x40c0ee(0x1de))||undefined,_0x34cb0e=_0x204a3a[_0x40c0ee(0x207)]||undefined,_0x459142=_0x39783a||_0x34cb0e,_0x3fbea6=_0x39783a?_0xb9b27f+_0x40c0ee(0x1ce):_0x34cb0e?(_0x23dd82[_0x40c0ee(0x1b6)]?_0x40c0ee(0x1b6):_0x40c0ee(0x1c4))+_0x40c0ee(0x1f3):null,_0x3a8e22=[_0x40c0ee(0x1bc)+AUTH_MODE['ClientAk']];if(_0x459142){const _0x309a05=_0x459142[_0x40c0ee(0x205)]>0x8?''+_0x459142[_0x40c0ee(0x1c9)](0x0,0x8)+'*'[_0x40c0ee(0x1e6)](_0x459142['length']-0x8):_0x459142;_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1c7)+_0x309a05+(_0x3fbea6?_0x40c0ee(0x1ee)+_0x3fbea6+')':''));}return!_0x459142&&(_0x3a8e22[_0x40c0ee(0x1c2)](''),_0x3a8e22['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x3a8e22[_0x40c0ee(0x1c2)](''),_0x3a8e22[_0x40c0ee(0x1c2)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x40c0ee(0x1fe)),_0x3a8e22[_0x40c0ee(0x1c2)](''),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1ed)+PRODUCT_CONFIG[_0x40c0ee(0x1b7)]+')'),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1ef)),_0x3a8e22[_0x40c0ee(0x1c2)](''),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1ca)),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1fa)+_0xb9b27f+'=ak_xxx'),_0x3a8e22[_0x40c0ee(0x1c2)](''),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x1d0)+CLI_BIN_NAME+_0x40c0ee(0x1e9)),_0x3a8e22[_0x40c0ee(0x1c2)](_0x40c0ee(0x203)+CLI_BIN_NAME+_0x40c0ee(0x1c6))),{'ok':!![],'message':_0x3a8e22[_0x40c0ee(0x1f6)]('\x0a')};}},{'service':a6_0x587b22(0x1e8),'command':a6_0x587b22(0x1cc),'description':a6_0x587b22(0x204),'risk':a6_0x587b22(0x206),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x208267){const _0x3cca12=a6_0x587b22,_0x2f608e=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2f608e,'meta':{'env':_0x208267[_0x3cca12(0x1e7)]??_0x3cca12(0x1da)}}};}}];
@@ -1 +1 @@
1
- function a7_0x3ff3(_0x1b6f67,_0x280de0){_0x1b6f67=_0x1b6f67-0x123;const _0x4750e4=a7_0x4750();let _0x3ff381=_0x4750e4[_0x1b6f67];return _0x3ff381;}(function(_0x446fa4,_0x4060c9){const _0x3a150b=a7_0x3ff3,_0x3fae14=_0x446fa4();while(!![]){try{const _0x5f5afb=parseInt(_0x3a150b(0x130))/0x1+parseInt(_0x3a150b(0x132))/0x2*(-parseInt(_0x3a150b(0x137))/0x3)+-parseInt(_0x3a150b(0x124))/0x4+parseInt(_0x3a150b(0x125))/0x5*(-parseInt(_0x3a150b(0x134))/0x6)+-parseInt(_0x3a150b(0x123))/0x7+parseInt(_0x3a150b(0x129))/0x8*(-parseInt(_0x3a150b(0x131))/0x9)+parseInt(_0x3a150b(0x12e))/0xa*(parseInt(_0x3a150b(0x139))/0xb);if(_0x5f5afb===_0x4060c9)break;else _0x3fae14['push'](_0x3fae14['shift']());}catch(_0x485c08){_0x3fae14['push'](_0x3fae14['shift']());}}}(a7_0x4750,0x586e6));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0xcf0e43=a7_0x3ff3;super(_0xcf0e43(0x128)),this[_0xcf0e43(0x12c)]=_0xcf0e43(0x133);}}function createSafeRl(){const _0x4fc417=a7_0x3ff3,_0x1f11ab=createInterface({'input':process['stdin'],'output':process[_0x4fc417(0x12d)]});let _0x326165;const _0x214019=new Promise((_0x1c92ef,_0x383f7c)=>{const _0x3d560f=_0x4fc417;_0x326165=()=>{const _0x5672a6=a7_0x3ff3;_0x326165&&(_0x1f11ab[_0x5672a6(0x135)](_0x5672a6(0x12a),_0x326165),_0x326165=undefined);try{_0x1f11ab[_0x5672a6(0x12b)]();}catch{}_0x383f7c(new AbortPrompt());},_0x1f11ab[_0x3d560f(0x126)](_0x3d560f(0x12a),_0x326165);}),_0xddb363=()=>{const _0x2a4e05=_0x4fc417;_0x326165&&(_0x1f11ab[_0x2a4e05(0x135)]('SIGINT',_0x326165),_0x326165=undefined);try{_0x1f11ab[_0x2a4e05(0x12b)]();}catch{}};return{'rl':_0x1f11ab,'abortPromise':_0x214019,'disposeSuccess':_0xddb363};}export async function promptAccessKey(_0x4fe7c6=''){const _0x5e6bdf=a7_0x3ff3,{rl:_0xb035f0,abortPromise:_0x2d49c1,disposeSuccess:_0x195da6}=createSafeRl(),_0x56c95c=new Promise(_0x313335=>{const _0x1e0c0c=a7_0x3ff3,_0x42670a=_0x4fe7c6?'AccessKey\x20('+_0x4fe7c6+'):\x20':_0x1e0c0c(0x12f);_0xb035f0[_0x1e0c0c(0x138)](_0x42670a,_0x147bce=>{const _0x3c3c8c=_0x1e0c0c;_0x195da6(),_0x313335(_0x147bce[_0x3c3c8c(0x136)]()||_0x4fe7c6);});});return Promise[_0x5e6bdf(0x127)]([_0x56c95c,_0x2d49c1]);}function a7_0x4750(){const _0x16fb53=['removeListener','trim','1459935yFSXIE','question','22798193aRTKYX','4766370TjgYBa','1642940ngxPWY','322375MLtMHh','once','race','User\x20aborted\x20prompt','4502728dgidiI','SIGINT','close','name','stdout','10yBkaNh','AccessKey\x20(paste\x20ak_...):\x20','495257FsGqwu','9NJyYFI','2gOYfXG','AbortPrompt','6yIgRYj'];a7_0x4750=function(){return _0x16fb53;};return a7_0x4750();}export function isAbortPrompt(_0x4bcff1){const _0x375f99=a7_0x3ff3;return _0x4bcff1 instanceof Error&&_0x4bcff1[_0x375f99(0x12c)]===_0x375f99(0x133);}
1
+ (function(_0x526d23,_0x3a71d0){const _0x55d26b=a7_0x5efa,_0x54ada1=_0x526d23();while(!![]){try{const _0x18d81e=-parseInt(_0x55d26b(0x1e8))/0x1+-parseInt(_0x55d26b(0x1ea))/0x2+parseInt(_0x55d26b(0x1f2))/0x3+-parseInt(_0x55d26b(0x1e3))/0x4*(-parseInt(_0x55d26b(0x1ec))/0x5)+parseInt(_0x55d26b(0x1f1))/0x6+parseInt(_0x55d26b(0x1f0))/0x7*(-parseInt(_0x55d26b(0x1ee))/0x8)+-parseInt(_0x55d26b(0x1eb))/0x9;if(_0x18d81e===_0x3a71d0)break;else _0x54ada1['push'](_0x54ada1['shift']());}catch(_0x10857f){_0x54ada1['push'](_0x54ada1['shift']());}}}(a7_0x4cb3,0xd9ab7));import{createInterface}from'node:readline';function a7_0x4cb3(){const _0x42281f=['371HBtmny','10493484OQNusJ','3029739RXDFwe','race','removeListener','SIGINT','4EVJqvx','AccessKey\x20(','name','trim','):\x20','775234eKChPG','stdin','2929154RvznMz','5282163YvCfQk','8234645lpJrYy','close','103768AWkgtg','AbortPrompt'];a7_0x4cb3=function(){return _0x42281f;};return a7_0x4cb3();}class AbortPrompt extends Error{constructor(){const _0x2f8bd6=a7_0x5efa;super('User\x20aborted\x20prompt'),this[_0x2f8bd6(0x1e5)]=_0x2f8bd6(0x1ef);}}function createSafeRl(){const _0x18f5e5=a7_0x5efa,_0x29d8bc=createInterface({'input':process[_0x18f5e5(0x1e9)],'output':process['stdout']});let _0x1385db;const _0x1cd1db=new Promise((_0x1c0633,_0x4123a2)=>{_0x1385db=()=>{const _0x186a2c=a7_0x5efa;_0x1385db&&(_0x29d8bc[_0x186a2c(0x1f4)](_0x186a2c(0x1e2),_0x1385db),_0x1385db=undefined);try{_0x29d8bc['close']();}catch{}_0x4123a2(new AbortPrompt());},_0x29d8bc['once']('SIGINT',_0x1385db);}),_0x1d7d90=()=>{const _0x48842f=_0x18f5e5;_0x1385db&&(_0x29d8bc[_0x48842f(0x1f4)]('SIGINT',_0x1385db),_0x1385db=undefined);try{_0x29d8bc[_0x48842f(0x1ed)]();}catch{}};return{'rl':_0x29d8bc,'abortPromise':_0x1cd1db,'disposeSuccess':_0x1d7d90};}function a7_0x5efa(_0x3d45fd,_0x150a56){_0x3d45fd=_0x3d45fd-0x1e2;const _0x4cb365=a7_0x4cb3();let _0x5efac5=_0x4cb365[_0x3d45fd];return _0x5efac5;}export async function promptAccessKey(_0x25687f=''){const _0x2b141e=a7_0x5efa,{rl:_0x13b077,abortPromise:_0x1d2536,disposeSuccess:_0x386a85}=createSafeRl(),_0x224004=new Promise(_0x5dbf3d=>{const _0x4a2ec5=a7_0x5efa,_0x441951=_0x25687f?_0x4a2ec5(0x1e4)+_0x25687f+_0x4a2ec5(0x1e7):'AccessKey\x20(paste\x20ak_...):\x20';_0x13b077['question'](_0x441951,_0x2ff4d5=>{const _0x5e33c3=_0x4a2ec5;_0x386a85(),_0x5dbf3d(_0x2ff4d5[_0x5e33c3(0x1e6)]()||_0x25687f);});});return Promise[_0x2b141e(0x1f3)]([_0x224004,_0x1d2536]);}export function isAbortPrompt(_0x142d3a){return _0x142d3a instanceof Error&&_0x142d3a['name']==='AbortPrompt';}
@@ -1 +1 @@
1
- const a8_0x4f101a=a8_0x4df6;(function(_0x1f1f69,_0x5a7b79){const _0x5a2c68=a8_0x4df6,_0x4a615a=_0x1f1f69();while(!![]){try{const _0x1583dc=-parseInt(_0x5a2c68(0x9f))/0x1*(-parseInt(_0x5a2c68(0xa3))/0x2)+parseInt(_0x5a2c68(0x9e))/0x3+-parseInt(_0x5a2c68(0xa2))/0x4*(parseInt(_0x5a2c68(0x99))/0x5)+parseInt(_0x5a2c68(0x96))/0x6+parseInt(_0x5a2c68(0x9b))/0x7+-parseInt(_0x5a2c68(0xa8))/0x8*(parseInt(_0x5a2c68(0xac))/0x9)+-parseInt(_0x5a2c68(0xad))/0xa*(parseInt(_0x5a2c68(0xa9))/0xb);if(_0x1583dc===_0x5a7b79)break;else _0x4a615a['push'](_0x4a615a['shift']());}catch(_0x5e2017){_0x4a615a['push'](_0x4a615a['shift']());}}}(a8_0x8890,0x78475));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x4df6(_0x3dcc10,_0x5f306d){_0x3dcc10=_0x3dcc10-0x95;const _0x8890bd=a8_0x8890();let _0x4df609=_0x8890bd[_0x3dcc10];return _0x4df609;}export const bffDetail={'service':a8_0x4f101a(0x98),'command':a8_0x4f101a(0xa5),'description':a8_0x4f101a(0x9c),'risk':a8_0x4f101a(0xa6),'flags':[{...ID_FLAG,'description':a8_0x4f101a(0x95)},VERBOSE_FLAG],async 'execute'(_0x1b9c45){const _0xe28354=a8_0x4f101a,_0x2fa2ac=await getBffScriptInfo(_0x1b9c45[_0xe28354(0xa0)]('id')),_0x365609=_0x1b9c45[_0xe28354(0xa1)](_0xe28354(0xa4));if(_0x365609)return{'ok':!![],'data':_0x2fa2ac};return{'ok':!![],'data':{'id':_0x2fa2ac['id'],'appCode':_0x2fa2ac[_0xe28354(0xa7)],'functionName':_0x2fa2ac[_0xe28354(0xab)]??'','scriptType':_0x2fa2ac[_0xe28354(0x9d)],'description':_0x2fa2ac['description']||_0xe28354(0xaa),'createdTime':_0x2fa2ac[_0xe28354(0x97)]??'','updatedTime':_0x2fa2ac[_0xe28354(0x9a)]??''}};}};function a8_0x8890(){const _0x3f02bf=['num','bool','281032fRvBdo','1748482KocZgP','verbose','detail','read','appCode','1672qWjLbt','586399bQnQAS','(none)','functionName','396BIJNvY','230KlyrHY','Script\x20ID','1506138IhWJkS','createdTime','bff','5qCyAtS','updatedTime','2668386fcOnXL','Get\x20BFF\x20script\x20details\x20by\x20ID','scriptType','875280sgjTSu','1uoGCxm'];a8_0x8890=function(){return _0x3f02bf;};return a8_0x8890();}
1
+ const a8_0x2ecdd4=a8_0x157c;(function(_0x2248ef,_0x31593a){const _0xe9c0a5=a8_0x157c,_0x3f5b6f=_0x2248ef();while(!![]){try{const _0x35fcfb=-parseInt(_0xe9c0a5(0x1c4))/0x1+parseInt(_0xe9c0a5(0x1c1))/0x2*(-parseInt(_0xe9c0a5(0x1b5))/0x3)+-parseInt(_0xe9c0a5(0x1b6))/0x4*(parseInt(_0xe9c0a5(0x1c2))/0x5)+parseInt(_0xe9c0a5(0x1b0))/0x6+parseInt(_0xe9c0a5(0x1c0))/0x7+parseInt(_0xe9c0a5(0x1ba))/0x8*(-parseInt(_0xe9c0a5(0x1b4))/0x9)+parseInt(_0xe9c0a5(0x1be))/0xa;if(_0x35fcfb===_0x31593a)break;else _0x3f5b6f['push'](_0x3f5b6f['shift']());}catch(_0x1ab647){_0x3f5b6f['push'](_0x3f5b6f['shift']());}}}(a8_0x2ffc,0x899f4));function a8_0x157c(_0x805199,_0x4bf37a){_0x805199=_0x805199-0x1b0;const _0x2ffc0f=a8_0x2ffc();let _0x157ccb=_0x2ffc0f[_0x805199];return _0x157ccb;}import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x2ffc(){const _0x340625=['detail','bff','functionName','657YuAkQY','127833ZnHrQg','38424NXSBFs','read','scriptType','(none)','22552ALwTBT','verbose','updatedTime','Script\x20ID','11407650SdANmR','Get\x20BFF\x20script\x20details\x20by\x20ID','3258304kbkixd','2uZDUaD','555pydTQR','createdTime','682629hjOttZ','5728536LKISKd'];a8_0x2ffc=function(){return _0x340625;};return a8_0x2ffc();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x2ecdd4(0x1b2),'command':a8_0x2ecdd4(0x1b1),'description':a8_0x2ecdd4(0x1bf),'risk':a8_0x2ecdd4(0x1b7),'flags':[{...ID_FLAG,'description':a8_0x2ecdd4(0x1bd)},VERBOSE_FLAG],async 'execute'(_0x505357){const _0x3abeab=a8_0x2ecdd4,_0x2cb373=await getBffScriptInfo(_0x505357['num']('id')),_0xa2ccd9=_0x505357['bool'](_0x3abeab(0x1bb));if(_0xa2ccd9)return{'ok':!![],'data':_0x2cb373};return{'ok':!![],'data':{'id':_0x2cb373['id'],'appCode':_0x2cb373['appCode'],'functionName':_0x2cb373[_0x3abeab(0x1b3)]??'','scriptType':_0x2cb373[_0x3abeab(0x1b8)],'description':_0x2cb373['description']||_0x3abeab(0x1b9),'createdTime':_0x2cb373[_0x3abeab(0x1c3)]??'','updatedTime':_0x2cb373[_0x3abeab(0x1bc)]??''}};}};
@@ -1 +1 @@
1
- function a9_0x3630(_0x4ca2ae,_0x2b7e9f){_0x4ca2ae=_0x4ca2ae-0xbc;const _0x130369=a9_0x1303();let _0x363099=_0x130369[_0x4ca2ae];return _0x363099;}const a9_0xf99aa9=a9_0x3630;(function(_0x138c54,_0x2c9895){const _0x10aa96=a9_0x3630,_0x43f04f=_0x138c54();while(!![]){try{const _0x4f467c=-parseInt(_0x10aa96(0xbd))/0x1+parseInt(_0x10aa96(0xbc))/0x2+-parseInt(_0x10aa96(0xc6))/0x3*(parseInt(_0x10aa96(0xcb))/0x4)+parseInt(_0x10aa96(0xbf))/0x5+-parseInt(_0x10aa96(0xc7))/0x6+-parseInt(_0x10aa96(0xc5))/0x7+parseInt(_0x10aa96(0xc0))/0x8;if(_0x4f467c===_0x2c9895)break;else _0x43f04f['push'](_0x43f04f['shift']());}catch(_0x5781a5){_0x43f04f['push'](_0x43f04f['shift']());}}}(a9_0x1303,0xe263c));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a9_0x1303(){const _0x3fd216=['3401817RILVNB','5441940SjQVPk','bff','read','str','4RraYCm','1092728eSniNu','1049664peywmx','BFF\x20function\x20name\x20to\x20execute','1654830UYMfoL','26639680buzlQf','now','exec','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','BFF\x20executed\x20in\x20','1325835BTyiWx'];a9_0x1303=function(){return _0x3fd216;};return a9_0x1303();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0xf99aa9(0xc8),'command':a9_0xf99aa9(0xc2),'description':a9_0xf99aa9(0xc3),'risk':a9_0xf99aa9(0xc9),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0xf99aa9(0xbe)},PARAMS_FLAG],async 'execute'(_0xad2475){const _0x56d3ee=a9_0xf99aa9,_0x31f389=parseJsonParams(_0xad2475[_0x56d3ee(0xca)]('params')),_0x1ed55c=Date[_0x56d3ee(0xc1)](),_0x55a7a6=await executeSdkBff(_0xad2475['str']('name'),_0x31f389),_0xbbdf59=Date[_0x56d3ee(0xc1)]()-_0x1ed55c;return{'ok':!![],'data':{'result':_0x55a7a6,'elapsed':_0xbbdf59},'message':_0x56d3ee(0xc4)+_0xbbdf59+'ms'};}};
1
+ const a9_0x52543d=a9_0x16e1;function a9_0x16e1(_0x500e2a,_0x37ad86){_0x500e2a=_0x500e2a-0x108;const _0x32f8da=a9_0x32f8();let _0x16e191=_0x32f8da[_0x500e2a];return _0x16e191;}(function(_0x47c18d,_0x5e80a6){const _0x1acb1f=a9_0x16e1,_0xa569b=_0x47c18d();while(!![]){try{const _0x55059c=-parseInt(_0x1acb1f(0x109))/0x1+-parseInt(_0x1acb1f(0x10c))/0x2*(parseInt(_0x1acb1f(0x108))/0x3)+parseInt(_0x1acb1f(0x112))/0x4+parseInt(_0x1acb1f(0x111))/0x5+-parseInt(_0x1acb1f(0x10d))/0x6*(parseInt(_0x1acb1f(0x114))/0x7)+parseInt(_0x1acb1f(0x110))/0x8+-parseInt(_0x1acb1f(0x113))/0x9*(parseInt(_0x1acb1f(0x10f))/0xa);if(_0x55059c===_0x5e80a6)break;else _0xa569b['push'](_0xa569b['shift']());}catch(_0x30cbf9){_0xa569b['push'](_0xa569b['shift']());}}}(a9_0x32f8,0x37507));function a9_0x32f8(){const _0x3446a2=['str','bff','5524FasInG','7278gJPbPY','now','25100dDurka','2801632bqNtQU','356370NPejJC','1540516PbIgXp','657mIYZKD','973teuugK','name','read','BFF\x20executed\x20in\x20','6AynIwU','222679GqkZFc'];a9_0x32f8=function(){return _0x3446a2;};return a9_0x32f8();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x52543d(0x10b),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x52543d(0x116),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x5f3b75){const _0x295a27=a9_0x52543d,_0x4ec36e=parseJsonParams(_0x5f3b75[_0x295a27(0x10a)]('params')),_0x2574aa=Date[_0x295a27(0x10e)](),_0x38bc04=await executeSdkBff(_0x5f3b75['str'](_0x295a27(0x115)),_0x4ec36e),_0x564803=Date[_0x295a27(0x10e)]()-_0x2574aa;return{'ok':!![],'data':{'result':_0x38bc04,'elapsed':_0x564803},'message':_0x295a27(0x117)+_0x564803+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x1eef12,_0x466ec5){const _0x1591aa=a10_0x44a2,_0x1afc55=_0x1eef12();while(!![]){try{const _0x15e5e2=parseInt(_0x1591aa(0x139))/0x1+-parseInt(_0x1591aa(0x13c))/0x2+parseInt(_0x1591aa(0x136))/0x3*(parseInt(_0x1591aa(0x132))/0x4)+-parseInt(_0x1591aa(0x135))/0x5+-parseInt(_0x1591aa(0x138))/0x6*(parseInt(_0x1591aa(0x134))/0x7)+-parseInt(_0x1591aa(0x13a))/0x8*(-parseInt(_0x1591aa(0x133))/0x9)+parseInt(_0x1591aa(0x13b))/0xa*(parseInt(_0x1591aa(0x137))/0xb);if(_0x15e5e2===_0x466ec5)break;else _0x1afc55['push'](_0x1afc55['shift']());}catch(_0x33de72){_0x1afc55['push'](_0x1afc55['shift']());}}}(a10_0x3828,0x2aa06));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a10_0x3828(){const _0x44ca1=['16584qQGlhW','28675QiiiBC','54888WDAbOh','848200DyCVvb','398220sesVpO','376RnEeca','144hgwJPy','525LKkATm','1032265FRatSV','9885yZEHcE','44kiHheM'];a10_0x3828=function(){return _0x44ca1;};return a10_0x3828();}function a10_0x44a2(_0x4d3630,_0x2a7c39){_0x4d3630=_0x4d3630-0x132;const _0x38280e=a10_0x3828();let _0x44a239=_0x38280e[_0x4d3630];return _0x44a239;}export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0xba9f5f,_0x30b51b){const _0xde6f86=a10_0x3e6b,_0x33f157=_0xba9f5f();while(!![]){try{const _0x2f1c7f=-parseInt(_0xde6f86(0xfa))/0x1*(-parseInt(_0xde6f86(0xf4))/0x2)+-parseInt(_0xde6f86(0xfb))/0x3*(-parseInt(_0xde6f86(0xf2))/0x4)+parseInt(_0xde6f86(0xf5))/0x5*(parseInt(_0xde6f86(0xf1))/0x6)+-parseInt(_0xde6f86(0xf6))/0x7+parseInt(_0xde6f86(0xf3))/0x8*(parseInt(_0xde6f86(0xfd))/0x9)+-parseInt(_0xde6f86(0xf7))/0xa*(parseInt(_0xde6f86(0xfc))/0xb)+-parseInt(_0xde6f86(0xf9))/0xc*(-parseInt(_0xde6f86(0xf8))/0xd);if(_0x2f1c7f===_0x30b51b)break;else _0x33f157['push'](_0x33f157['shift']());}catch(_0x10ff3b){_0x33f157['push'](_0x33f157['shift']());}}}(a10_0x4110,0x20632));function a10_0x4110(){const _0x5548b9=['17798tpxaKe','1165977KsvXMT','222CWyLMX','772IRTuKf','8ufspIS','17988brkOJa','18765rGZpop','1659903NvNmpQ','1150ojuirX','468NUOrVO','8268ofewla','23JToacA','867HYUkgs'];a10_0x4110=function(){return _0x5548b9;};return a10_0x4110();}import{bffDetail}from'../../commands/bff/detail.js';function a10_0x3e6b(_0x1b1de5,_0x37bde4){_0x1b1de5=_0x1b1de5-0xf1;const _0x411056=a10_0x4110();let _0x3e6b21=_0x411056[_0x1b1de5];return _0x3e6b21;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x1431f7,_0x275535){const _0x20100b=a11_0x15ad,_0x1eec18=_0x1431f7();while(!![]){try{const _0x2f4f56=-parseInt(_0x20100b(0x1ad))/0x1+-parseInt(_0x20100b(0x1bc))/0x2+parseInt(_0x20100b(0x1c2))/0x3+parseInt(_0x20100b(0x1c3))/0x4*(parseInt(_0x20100b(0x1b8))/0x5)+-parseInt(_0x20100b(0x1bd))/0x6*(parseInt(_0x20100b(0x1b1))/0x7)+-parseInt(_0x20100b(0x1be))/0x8*(parseInt(_0x20100b(0x1b9))/0x9)+parseInt(_0x20100b(0x1b7))/0xa*(parseInt(_0x20100b(0x1af))/0xb);if(_0x2f4f56===_0x275535)break;else _0x1eec18['push'](_0x1eec18['shift']());}catch(_0x1f9517){_0x1eec18['push'](_0x1eec18['shift']());}}}(a11_0x452c,0xe20dd));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';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a11_0x452c(){const _0xeb5284=['newConfigFileName','inProject','\x20init`\x20first.','project-default','Add\x20--global\x20to\x20write\x20to\x20~/','410pmheIZ','40245iddQae','16803wRCYRj','global-default','validation','1639518YBwwNX','606HTPYGa','6976IlMNxg','\x20(global)','Use\x20only\x20one\x20config\x20scope\x20flag.','global','735738ayxJGC','548BRnZxy','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','1712482FSfqnK','project-or-global-explicit','1068243zboSVl','project','16870uzRtsk'];a11_0x452c=function(){return _0xeb5284;};return a11_0x452c();}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(_0x4075d7){const _0x23d60b=a11_0x15ad,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3e1dfb}=_0x4075d7;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x23d60b(0x1ac),_0x23d60b(0x1c0));if(explicitGlobal)return _0x23d60b(0x1c1);if(explicitProject)return _0x23d60b(0x1b0);switch(_0x3e1dfb){case _0x23d60b(0x1ba):return'global';case _0x23d60b(0x1b5):return _0x4075d7[_0x23d60b(0x1b3)]??isInProject()?_0x23d60b(0x1b0):_0x23d60b(0x1c1);case _0x23d60b(0x1ae):if(!(_0x4075d7[_0x23d60b(0x1b3)]??isInProject()))throw CliErrors[_0x23d60b(0x1bb)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x23d60b(0x1b2)]+'\x20found).',_0x23d60b(0x1b6)+PRODUCT_CONFIG[_0x23d60b(0x1b2)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x23d60b(0x1b4));return _0x23d60b(0x1b0);}}export function toScopeFlags(_0x4b44d9){const _0x1fe135=a11_0x15ad;return{'global':_0x4b44d9===_0x1fe135(0x1c1)};}function a11_0x15ad(_0x5f596d,_0x10c65c){_0x5f596d=_0x5f596d-0x1ac;const _0x452ca9=a11_0x452c();let _0x15adca=_0x452ca9[_0x5f596d];return _0x15adca;}export function formatScopeLabel(_0x30c53d){const _0x3bf5b7=a11_0x15ad;return _0x30c53d==='global'?_0x3bf5b7(0x1bf):'';}
1
+ (function(_0x3bc336,_0x322371){const _0x27650a=a11_0x2957,_0x49f5af=_0x3bc336();while(!![]){try{const _0x3151f0=-parseInt(_0x27650a(0x11d))/0x1*(parseInt(_0x27650a(0x126))/0x2)+parseInt(_0x27650a(0x11a))/0x3*(-parseInt(_0x27650a(0x121))/0x4)+parseInt(_0x27650a(0x111))/0x5*(-parseInt(_0x27650a(0x118))/0x6)+-parseInt(_0x27650a(0x110))/0x7+parseInt(_0x27650a(0x124))/0x8+-parseInt(_0x27650a(0x11c))/0x9*(-parseInt(_0x27650a(0x11b))/0xa)+-parseInt(_0x27650a(0x119))/0xb*(-parseInt(_0x27650a(0x116))/0xc);if(_0x3151f0===_0x322371)break;else _0x49f5af['push'](_0x49f5af['shift']());}catch(_0x4e4867){_0x49f5af['push'](_0x49f5af['shift']());}}}(a11_0x332a,0xdf05e));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';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a11_0x2957(_0x5cd869,_0x180390){_0x5cd869=_0x5cd869-0x10f;const _0x332a0d=a11_0x332a();let _0x2957fe=_0x332a0d[_0x5cd869];return _0x2957fe;}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(_0x357cf0){const _0x341711=a11_0x2957,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5c8df1}=_0x357cf0;if(explicitGlobal&&explicitProject)throw CliErrors[_0x341711(0x117)](_0x341711(0x114),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return _0x341711(0x127);switch(_0x5c8df1){case _0x341711(0x112):return _0x341711(0x113);case _0x341711(0x122):return _0x357cf0[_0x341711(0x11f)]??isInProject()?_0x341711(0x127):'global';case _0x341711(0x11e):if(!(_0x357cf0['inProject']??isInProject()))throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x341711(0x123)]+_0x341711(0x115),_0x341711(0x128)+PRODUCT_CONFIG['newConfigFileName']+_0x341711(0x120)+CLI_BIN_NAME+_0x341711(0x10f));return'project';}}export function toScopeFlags(_0x5a73c5){return{'global':_0x5a73c5==='global'};}export function formatScopeLabel(_0x55e578){const _0x506501=a11_0x2957;return _0x55e578==='global'?_0x506501(0x125):'';}function a11_0x332a(){const _0x32cf6c=['global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20found).','276uEFRoR','validation','2938002NMdscp','470723qAjOPc','3hWEDEc','10bKywJP','12928851imrSFE','1gWtAXi','project-or-global-explicit','inProject',',\x20or\x20run\x20`','1550308okICPB','project-default','newConfigFileName','2969096iNgTKV','\x20(global)','197786gprSWc','project','Add\x20--global\x20to\x20write\x20to\x20~/','\x20init`\x20first.','6315932fRQxkx','5ttAhOk','global-default'];a11_0x332a=function(){return _0x32cf6c;};return a11_0x332a();}
@@ -1 +1 @@
1
- (function(_0x314927,_0x26edf0){const _0xe09e72=a12_0xfae4,_0x31e70d=_0x314927();while(!![]){try{const _0x278383=parseInt(_0xe09e72(0xef))/0x1*(-parseInt(_0xe09e72(0xf6))/0x2)+-parseInt(_0xe09e72(0xf9))/0x3*(parseInt(_0xe09e72(0x10c))/0x4)+parseInt(_0xe09e72(0xf5))/0x5*(-parseInt(_0xe09e72(0x103))/0x6)+-parseInt(_0xe09e72(0xf3))/0x7*(-parseInt(_0xe09e72(0xfc))/0x8)+-parseInt(_0xe09e72(0xfd))/0x9+parseInt(_0xe09e72(0xf8))/0xa*(-parseInt(_0xe09e72(0x100))/0xb)+parseInt(_0xe09e72(0xf7))/0xc;if(_0x278383===_0x26edf0)break;else _0x31e70d['push'](_0x31e70d['shift']());}catch(_0xf5f87f){_0x31e70d['push'](_0x31e70d['shift']());}}}(a12_0x226e,0xbdc7f));function a12_0x226e(){const _0x3ac6c7=['Only\x20one\x20of\x20','Flags\x20','11yBjJKG',':\x20expected\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','6NiKGzf','\x20is\x20allowed,\x20found:\x20','join','length','filter',',\x20got\x20\x22','some','Remove\x20all\x20but\x20one.','validation','60rLHXKI','map','test','1jdNETH','flag','str','At\x20least\x20one\x20of\x20','56868UZWtjj','Provide\x20one\x20of:\x20','2368460JPBfnD','3084890kSdpma','56006940OPvOjr','4432030VueGSg','51147YbUmVQ','\x20is\x20required\x20for\x20`','Exactly\x20one\x20of\x20','288XpwuCE','13205619BGNCds'];a12_0x226e=function(){return _0x3ac6c7;};return a12_0x226e();}import{CliErrors}from'../../errors.js';function isSet(_0x3fed0d,_0x5cf2d8){const _0x3168d6=a12_0xfae4,_0x3da3e6=_0x3fed0d[_0x3168d6(0xf0)](_0x5cf2d8);return _0x3da3e6!==undefined&&_0x3da3e6!==''&&_0x3da3e6!==![]&&_0x3da3e6!==0x0;}function a12_0xfae4(_0x393b6f,_0x2970f6){_0x393b6f=_0x393b6f-0xed;const _0x226eb3=a12_0x226e();let _0xfae407=_0x226eb3[_0x393b6f];return _0xfae407;}function fmtNames(_0x4ead36){const _0x1e2d14=a12_0xfae4;return _0x4ead36[_0x1e2d14(0xed)](_0x1f090f=>'--'+_0x1f090f)[_0x1e2d14(0x105)](',\x20');}export function requireOneOf(_0x4435d6,_0xd712ad,_0x67aed1){const _0x507cbb=a12_0xfae4,_0x49385e=_0xd712ad['filter'](_0x595c1a=>isSet(_0x4435d6,_0x595c1a));if(_0x49385e[_0x507cbb(0x106)]!==0x1)throw CliErrors[_0x507cbb(0x10b)](_0x49385e[_0x507cbb(0x106)]===0x0?_0x507cbb(0xfb)+fmtNames(_0xd712ad)+_0x507cbb(0xfa)+_0x67aed1+'`.':_0x507cbb(0xfe)+fmtNames(_0xd712ad)+_0x507cbb(0x104)+fmtNames(_0x49385e)+'.',_0x49385e['length']===0x0?_0x507cbb(0xf4)+fmtNames(_0xd712ad):_0x507cbb(0x10a));}export function requireAnyOf(_0x29a79c,_0x1a4157,_0x213051){const _0x35dd51=a12_0xfae4;if(!_0x1a4157[_0x35dd51(0x109)](_0x4faf58=>isSet(_0x29a79c,_0x4faf58)))throw CliErrors[_0x35dd51(0x10b)](_0x35dd51(0xf2)+fmtNames(_0x1a4157)+_0x35dd51(0xfa)+_0x213051+'`.',_0x35dd51(0xf4)+fmtNames(_0x1a4157));}export function mutuallyExclusive(_0x530186,_0xfbcc1c,_0x58709c){const _0x3eaa29=a12_0xfae4,_0x2842d8=_0xfbcc1c[_0x3eaa29(0x107)](_0x3e27aa=>isSet(_0x530186,_0x3e27aa));if(_0x2842d8[_0x3eaa29(0x106)]>0x1)throw CliErrors[_0x3eaa29(0x10b)](_0x3eaa29(0xff)+fmtNames(_0x2842d8)+_0x3eaa29(0x102)+_0x58709c+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0xfbcc1c));}export function validatePattern(_0x11377d,_0xa710bb,_0x499d68,_0x3d690a){const _0x4910e6=a12_0xfae4,_0x5cca9b=_0x11377d[_0x4910e6(0xf1)](_0xa710bb);if(_0x5cca9b&&!_0x499d68[_0x4910e6(0xee)](_0x5cca9b))throw CliErrors['validation']('Invalid\x20--'+_0xa710bb+_0x4910e6(0x101)+_0x3d690a+_0x4910e6(0x108)+_0x5cca9b+'\x22.');}
1
+ function a12_0x285e(_0x563f4a,_0x383f1f){_0x563f4a=_0x563f4a-0x1c9;const _0x3e5f98=a12_0x3e5f();let _0x285e55=_0x3e5f98[_0x563f4a];return _0x285e55;}(function(_0xad7c,_0x598d4c){const _0x1a2b9f=a12_0x285e,_0x2781e8=_0xad7c();while(!![]){try{const _0xc66d91=-parseInt(_0x1a2b9f(0x1d4))/0x1*(parseInt(_0x1a2b9f(0x1ca))/0x2)+-parseInt(_0x1a2b9f(0x1cd))/0x3*(-parseInt(_0x1a2b9f(0x1e2))/0x4)+-parseInt(_0x1a2b9f(0x1db))/0x5*(-parseInt(_0x1a2b9f(0x1da))/0x6)+parseInt(_0x1a2b9f(0x1e5))/0x7*(-parseInt(_0x1a2b9f(0x1e4))/0x8)+-parseInt(_0x1a2b9f(0x1d6))/0x9+parseInt(_0x1a2b9f(0x1cf))/0xa*(-parseInt(_0x1a2b9f(0x1e0))/0xb)+parseInt(_0x1a2b9f(0x1d0))/0xc*(parseInt(_0x1a2b9f(0x1df))/0xd);if(_0xc66d91===_0x598d4c)break;else _0x2781e8['push'](_0x2781e8['shift']());}catch(_0xaa6905){_0x2781e8['push'](_0x2781e8['shift']());}}}(a12_0x3e5f,0xf3a7d));import{CliErrors}from'../../errors.js';function a12_0x3e5f(){const _0x16b795=['Use\x20only\x20one\x20of:\x20','1xYfbnA','\x20is\x20allowed,\x20found:\x20','1924380KGpRjH','test','map','filter','5983554yEbJdZ','5MLJYng','flag','Remove\x20all\x20but\x20one.','At\x20least\x20one\x20of\x20','4408053lsuqOh','16750019PJzwvz','join','268McSmTt','str','1172024ySPSGP','91CNaDdx','Only\x20one\x20of\x20','length',':\x20expected\x20','Flags\x20','Invalid\x20--','2356972SXLRwr','Provide\x20one\x20of:\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','79191LfHPdN','\x20is\x20required\x20for\x20`','10eDTkBR','108eIeinD','Exactly\x20one\x20of\x20','validation'];a12_0x3e5f=function(){return _0x16b795;};return a12_0x3e5f();}function isSet(_0x48f494,_0x343edd){const _0x50f2b4=a12_0x285e,_0x4c84f1=_0x48f494[_0x50f2b4(0x1dc)](_0x343edd);return _0x4c84f1!==undefined&&_0x4c84f1!==''&&_0x4c84f1!==![]&&_0x4c84f1!==0x0;}function fmtNames(_0xd409dc){const _0x197d26=a12_0x285e;return _0xd409dc[_0x197d26(0x1d8)](_0x4c6c7a=>'--'+_0x4c6c7a)[_0x197d26(0x1e1)](',\x20');}export function requireOneOf(_0x11dc25,_0x54beee,_0x4788bf){const _0x18b0db=a12_0x285e,_0xda3f01=_0x54beee[_0x18b0db(0x1d9)](_0x1c41f8=>isSet(_0x11dc25,_0x1c41f8));if(_0xda3f01[_0x18b0db(0x1e7)]!==0x1)throw CliErrors[_0x18b0db(0x1d2)](_0xda3f01[_0x18b0db(0x1e7)]===0x0?_0x18b0db(0x1d1)+fmtNames(_0x54beee)+_0x18b0db(0x1ce)+_0x4788bf+'`.':_0x18b0db(0x1e6)+fmtNames(_0x54beee)+_0x18b0db(0x1d5)+fmtNames(_0xda3f01)+'.',_0xda3f01[_0x18b0db(0x1e7)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x54beee):_0x18b0db(0x1dd));}export function requireAnyOf(_0x422a38,_0x513a53,_0x49802e){const _0x10a90e=a12_0x285e;if(!_0x513a53['some'](_0x13ce75=>isSet(_0x422a38,_0x13ce75)))throw CliErrors[_0x10a90e(0x1d2)](_0x10a90e(0x1de)+fmtNames(_0x513a53)+_0x10a90e(0x1ce)+_0x49802e+'`.',_0x10a90e(0x1cb)+fmtNames(_0x513a53));}export function mutuallyExclusive(_0x58643f,_0xff8647,_0xa292be){const _0x4107f0=a12_0x285e,_0x386930=_0xff8647[_0x4107f0(0x1d9)](_0xfbacd2=>isSet(_0x58643f,_0xfbacd2));if(_0x386930['length']>0x1)throw CliErrors[_0x4107f0(0x1d2)](_0x4107f0(0x1e9)+fmtNames(_0x386930)+_0x4107f0(0x1cc)+_0xa292be+'`.',_0x4107f0(0x1d3)+fmtNames(_0xff8647));}export function validatePattern(_0x44ac79,_0x172184,_0x2aedfb,_0x16a923){const _0x4cc1ac=a12_0x285e,_0x883e5a=_0x44ac79[_0x4cc1ac(0x1e3)](_0x172184);if(_0x883e5a&&!_0x2aedfb[_0x4cc1ac(0x1d7)](_0x883e5a))throw CliErrors['validation'](_0x4cc1ac(0x1c9)+_0x172184+_0x4cc1ac(0x1e8)+_0x16a923+',\x20got\x20\x22'+_0x883e5a+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x5653f9=a13_0x3a7e;(function(_0x522b64,_0x57ecb7){const _0x2b84e7=a13_0x3a7e,_0x559960=_0x522b64();while(!![]){try{const _0x3c81f7=-parseInt(_0x2b84e7(0x1cd))/0x1+-parseInt(_0x2b84e7(0x1cb))/0x2+-parseInt(_0x2b84e7(0x1c0))/0x3*(parseInt(_0x2b84e7(0x1cc))/0x4)+-parseInt(_0x2b84e7(0x1bb))/0x5+parseInt(_0x2b84e7(0x1ba))/0x6*(parseInt(_0x2b84e7(0x1c5))/0x7)+parseInt(_0x2b84e7(0x1ce))/0x8*(-parseInt(_0x2b84e7(0x1bd))/0x9)+parseInt(_0x2b84e7(0x1c3))/0xa;if(_0x3c81f7===_0x57ecb7)break;else _0x559960['push'](_0x559960['shift']());}catch(_0x3eb916){_0x559960['push'](_0x559960['shift']());}}}(a13_0x2368,0xab114));function a13_0x2368(){const _0x2db702=['string','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20name\x20for\x20lookup','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2243550vMDQQh','1549908EucJAv','948603cteaDQ','8dyZQuH','boolean','code','964188iLObuC','1356165WTRsxB','params','3784617YapGEl','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Resource\x20ID','9WpNopb','name','verbose','41431530MRjtXD','number','21kVvYYO','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a13_0x2368=function(){return _0x2db702;};return a13_0x2368();}export const CODE_FLAG={'name':a13_0x5653f9(0x1b9),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x5653f9(0x1c8)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a13_0x5653f9(0x1c7),'required':!![],'description':a13_0x5653f9(0x1c6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x5653f9(0x1be)}};export const VERBOSE_FLAG={'name':a13_0x5653f9(0x1c2),'type':a13_0x5653f9(0x1cf),'description':'Return\x20full\x20raw\x20response\x20object'};function a13_0x3a7e(_0x497c21,_0x179230){_0x497c21=_0x497c21-0x1b9;const _0x23687c=a13_0x2368();let _0x3a7e16=_0x23687c[_0x497c21];return _0x3a7e16;}export const PARAMS_FLAG={'name':a13_0x5653f9(0x1bc),'type':a13_0x5653f9(0x1c7),'description':a13_0x5653f9(0x1ca)};export const NAME_FLAG={'name':a13_0x5653f9(0x1c1),'type':a13_0x5653f9(0x1c7),'description':a13_0x5653f9(0x1c9)};export const ID_FLAG={'name':'id','type':a13_0x5653f9(0x1c4),'required':!![],'description':a13_0x5653f9(0x1bf)};
1
+ function a13_0x40c8(_0x2157e2,_0x434971){_0x2157e2=_0x2157e2-0x167;const _0x1bf827=a13_0x1bf8();let _0x40c831=_0x1bf827[_0x2157e2];return _0x40c831;}const a13_0x3f8e8f=a13_0x40c8;(function(_0x1b7b23,_0x4be2c8){const _0x44a012=a13_0x40c8,_0x273bb9=_0x1b7b23();while(!![]){try{const _0x1582fc=parseInt(_0x44a012(0x16b))/0x1+parseInt(_0x44a012(0x177))/0x2*(-parseInt(_0x44a012(0x173))/0x3)+-parseInt(_0x44a012(0x172))/0x4*(parseInt(_0x44a012(0x175))/0x5)+-parseInt(_0x44a012(0x179))/0x6+-parseInt(_0x44a012(0x176))/0x7*(-parseInt(_0x44a012(0x170))/0x8)+-parseInt(_0x44a012(0x167))/0x9+parseInt(_0x44a012(0x16c))/0xa*(parseInt(_0x44a012(0x174))/0xb);if(_0x1582fc===_0x4be2c8)break;else _0x273bb9['push'](_0x273bb9['shift']());}catch(_0x7900bf){_0x273bb9['push'](_0x273bb9['shift']());}}}(a13_0x1bf8,0xcb13e));export const CODE_FLAG={'name':'code','type':a13_0x3f8e8f(0x17b),'required':!![],'description':a13_0x3f8e8f(0x178),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x3f8e8f(0x16e)}};export const SQLCODE_FLAG={'name':a13_0x3f8e8f(0x17a),'type':a13_0x3f8e8f(0x17b),'required':!![],'description':a13_0x3f8e8f(0x171),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a13_0x3f8e8f(0x168),'type':'boolean','description':a13_0x3f8e8f(0x16d)};export const PARAMS_FLAG={'name':'params','type':a13_0x3f8e8f(0x17b),'description':a13_0x3f8e8f(0x16f)};export const NAME_FLAG={'name':a13_0x3f8e8f(0x17c),'type':'string','description':a13_0x3f8e8f(0x169)};export const ID_FLAG={'name':'id','type':a13_0x3f8e8f(0x16a),'required':!![],'description':'Resource\x20ID'};function a13_0x1bf8(){const _0x424410=['name','12908745RnLccK','verbose','Resource\x20name\x20for\x20lookup','number','318607UXTZso','10856710WmdwEw','Return\x20full\x20raw\x20response\x20object','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','75944nafzqK','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','16AumOyu','230829IZdKvE','44YtlsPP','870980GBmNWC','973KmUdPn','42TRbdFo','Dataset\x20code\x20(32-char\x20hex\x20UUID)','8412720foLZKv','sqlcode','string'];a13_0x1bf8=function(){return _0x424410;};return a13_0x1bf8();}
@@ -1 +1 @@
1
- const a14_0x16dd11=a14_0x3f7d;(function(_0x5b22f1,_0x162da7){const _0x3d06c0=a14_0x3f7d,_0x3f4259=_0x5b22f1();while(!![]){try{const _0xb7f002=-parseInt(_0x3d06c0(0x1f7))/0x1+-parseInt(_0x3d06c0(0x202))/0x2+parseInt(_0x3d06c0(0x1c9))/0x3*(-parseInt(_0x3d06c0(0x1f6))/0x4)+-parseInt(_0x3d06c0(0x1f2))/0x5*(-parseInt(_0x3d06c0(0x1dd))/0x6)+parseInt(_0x3d06c0(0x1f1))/0x7+-parseInt(_0x3d06c0(0x1c3))/0x8*(-parseInt(_0x3d06c0(0x1cd))/0x9)+parseInt(_0x3d06c0(0x205))/0xa*(-parseInt(_0x3d06c0(0x1e1))/0xb);if(_0xb7f002===_0x162da7)break;else _0x3f4259['push'](_0x3f4259['shift']());}catch(_0x554aea){_0x3f4259['push'](_0x3f4259['shift']());}}}(a14_0xc5fe,0xe825d));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a14_0x16dd11(0x1bf),'type':a14_0x16dd11(0x1db),'description':a14_0x16dd11(0x1c8),'default':![]};function parseAliasAppcodeSetKey(_0x12a812){const _0x2f6633=a14_0x16dd11,_0x3558d5=_0x12a812[_0x2f6633(0x1e0)]('.');if(_0x3558d5[_0x2f6633(0x1eb)]!==0x3||_0x3558d5[0x0]!==_0x2f6633(0x1ff)||_0x3558d5[0x2]!==_0x2f6633(0x1c1))return undefined;const _0x252651=_0x3558d5[0x1]?.[_0x2f6633(0x1de)]();return _0x252651?_0x252651:undefined;}function parseAliasDeleteKey(_0x261331){const _0x585355=a14_0x16dd11,_0x1b9236=_0x261331[_0x585355(0x1e0)]('.');if(_0x1b9236[_0x585355(0x1eb)]===0x2&&_0x1b9236[0x0]===_0x585355(0x1ff)){const _0x5c2279=_0x1b9236[0x1]?.[_0x585355(0x1de)]();return _0x5c2279?{'alias':_0x5c2279}:undefined;}if(_0x1b9236[_0x585355(0x1eb)]===0x3&&_0x1b9236[0x0]===_0x585355(0x1ff)&&_0x1b9236[0x2]===_0x585355(0x1c1)){const _0x565df9=_0x1b9236[0x1]?.[_0x585355(0x1de)]();return _0x565df9?{'alias':_0x565df9,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x17741d,_0x2a27e9,_0x2172d8){const _0x1be142=a14_0x16dd11,_0x2e2054=_0x17741d['apps']&&typeof _0x17741d[_0x1be142(0x1ff)]===_0x1be142(0x1e9)&&!Array[_0x1be142(0x1f4)](_0x17741d[_0x1be142(0x1ff)])?_0x17741d[_0x1be142(0x1ff)]:{},_0xea9599=_0x2e2054[_0x2a27e9]&&typeof _0x2e2054[_0x2a27e9]==='object'&&!Array['isArray'](_0x2e2054[_0x2a27e9])?_0x2e2054[_0x2a27e9]:{};_0xea9599[_0x1be142(0x1c1)]=_0x2172d8,_0x2e2054[_0x2a27e9]=_0xea9599,_0x17741d[_0x1be142(0x1ff)]=_0x2e2054;}function deleteLocalAppAlias(_0x25e355,_0x207e1e){const _0x1ec253=a14_0x16dd11;if(!_0x25e355[_0x1ec253(0x1ff)]||typeof _0x25e355[_0x1ec253(0x1ff)]!==_0x1ec253(0x1e9)||Array[_0x1ec253(0x1f4)](_0x25e355[_0x1ec253(0x1ff)]))return![];const _0x3d0eeb=_0x25e355[_0x1ec253(0x1ff)],_0x287dc7=_0x3d0eeb[_0x207e1e[_0x1ec253(0x1f5)]];if(!_0x287dc7||typeof _0x287dc7!==_0x1ec253(0x1e9)||Array['isArray'](_0x287dc7))return![];if(!_0x207e1e[_0x1ec253(0x1fe)])return delete _0x3d0eeb[_0x207e1e[_0x1ec253(0x1f5)]],!![];if(!(_0x207e1e[_0x1ec253(0x1fe)]in _0x287dc7))return![];return delete _0x287dc7[_0x207e1e[_0x1ec253(0x1fe)]],Object[_0x1ec253(0x1d9)](_0x287dc7)[_0x1ec253(0x1eb)]===0x0&&delete _0x3d0eeb[_0x207e1e['alias']],!![];}function a14_0x3f7d(_0x503eea,_0x66c431){_0x503eea=_0x503eea-0x1bd;const _0xc5fed7=a14_0xc5fe();let _0x3f7da1=_0xc5fed7[_0x503eea];return _0x3f7da1;}const listDef={'service':a14_0x16dd11(0x1dc),'command':a14_0x16dd11(0x200),'description':'List\x20current\x20config','risk':a14_0x16dd11(0x1da),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x310214){const _0x4c9d95=a14_0x16dd11,{buildConfigFromFlags:_0x579fba}=await import(_0x4c9d95(0x1cf)),_0x56a9d6=_0x579fba({}),_0x8cbb82=getProjectConfigPath(),_0x2ec274=resolveWriteConfigPath('global');if(_0x310214[_0x4c9d95(0x1e3)]===_0x4c9d95(0x1d8))return{'ok':!![],'message':_0x4c9d95(0x1c0)+(JSON['stringify'](_0x56a9d6[_0x4c9d95(0x1d5)],null,0x2)+'\x0a\x0a')+_0x4c9d95(0x1e7)+(_0x4c9d95(0x1f9)+(_0x8cbb82??_0x4c9d95(0x1df))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2ec274)};return{'ok':!![],'data':{'effective':_0x56a9d6['raw'],'configFiles':{'project':_0x8cbb82??null,'global':_0x2ec274}}};}},getDef={'service':'config','command':a14_0x16dd11(0x1e6),'description':a14_0x16dd11(0x1fd),'risk':a14_0x16dd11(0x1da),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a14_0x16dd11(0x1ef),'required':!![]}],'flags':[],async 'execute'(_0xf05138){const _0x187481=a14_0x16dd11,_0x4443b8=_0xf05138['args'][0x0];if(!_0x4443b8)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x187481(0x206)+CLI_BIN_NAME+_0x187481(0x1d0));const {buildConfigFromFlags:_0x13c4fe}=await import('../../context.js'),{raw:_0x1e5dfd}=_0x13c4fe({});if(_0x4443b8['includes']('.')){const _0xc6cbf1=_0x4443b8[_0x187481(0x1e0)]('.');let _0x227417=_0x1e5dfd;for(const _0x1780e7 of _0xc6cbf1){if(_0x227417==null||typeof _0x227417!=='object')throw CliErrors[_0x187481(0x1ec)](_0x187481(0x1ea)+_0x4443b8);_0x227417=_0x227417[_0x1780e7];}if(_0x227417===undefined)throw CliErrors['validation'](_0x187481(0x1ea)+_0x4443b8);return console[_0x187481(0x1e2)](typeof _0x227417===_0x187481(0x1e9)?JSON[_0x187481(0x1cb)](_0x227417,null,0x2):String(_0x227417)),{'ok':!![]};}const _0x5e0168=_0x1e5dfd[_0x4443b8];if(_0x5e0168===undefined)throw CliErrors[_0x187481(0x1ec)](_0x187481(0x1ea)+_0x4443b8);return console[_0x187481(0x1e2)](typeof _0x5e0168===_0x187481(0x1e9)?JSON[_0x187481(0x1cb)](_0x5e0168,null,0x2):String(_0x5e0168)),{'ok':!![]};}},setDef={'service':a14_0x16dd11(0x1dc),'command':a14_0x16dd11(0x1ee),'description':a14_0x16dd11(0x1ed),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x16dd11(0x1d1),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x16dd11(0x1e5),'description':a14_0x16dd11(0x1f8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x117369){const _0x5f4454=a14_0x16dd11,_0x87b00c=_0x117369[_0x5f4454(0x1fb)][0x0],_0x36f262=_0x117369['args'][0x1];if(!_0x87b00c||_0x36f262===undefined)throw CliErrors[_0x5f4454(0x1ec)](_0x5f4454(0x1d4),_0x5f4454(0x206)+CLI_BIN_NAME+_0x5f4454(0x1c7));if(ENUM_KEYS[_0x87b00c]&&!ENUM_KEYS[_0x87b00c][_0x5f4454(0x1c5)](_0x36f262))throw CliErrors[_0x5f4454(0x1ec)](_0x5f4454(0x1d6)+_0x87b00c+_0x5f4454(0x204)+ENUM_KEYS[_0x87b00c][_0x5f4454(0x1d7)](',\x20'));if(_0x87b00c===_0x5f4454(0x1cc))throw CliErrors[_0x5f4454(0x1ec)](_0x5f4454(0x1fc));if(_0x87b00c===_0x5f4454(0x1be)){const _0x2fb16a=Number(_0x36f262);if(isNaN(_0x2fb16a)||_0x2fb16a<=0x0)throw CliErrors[_0x5f4454(0x1ec)](_0x5f4454(0x201));}const _0xd9bbc7=resolveWriteScope({'explicitGlobal':_0x117369['bool'](_0x5f4454(0x1bf)),'policy':_0x5f4454(0x1f0)}),_0x5cbd32=toScopeFlags(_0xd9bbc7),_0x3aa2e2=readScopedConfig(_0x5cbd32),_0x244781=parseAliasAppcodeSetKey(_0x87b00c);if(!_0x244781&&!isTopLevelConfigKey(_0x87b00c))throw CliErrors[_0x5f4454(0x1ec)](_0x5f4454(0x1e8)+_0x87b00c+_0x5f4454(0x1c2),_0x5f4454(0x1e4)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x244781?setLocalAppAlias(_0x3aa2e2,_0x244781,_0x36f262):_0x3aa2e2[_0x87b00c]=_0x87b00c===_0x5f4454(0x1be)?Number(_0x36f262):_0x36f262,console[_0x5f4454(0x1e2)](_0x5f4454(0x1d2)+_0x87b00c+_0x5f4454(0x1c4)+_0x36f262+'\x22'+(_0xd9bbc7===_0x5f4454(0x1bf)?_0x5f4454(0x203):'')),writeScopedConfig(_0x3aa2e2,_0x5cbd32),{'ok':!![]};}},deleteDef={'service':a14_0x16dd11(0x1dc),'command':'delete','description':a14_0x16dd11(0x1ce),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x16dd11(0x1d1),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x52658c){const _0x185da8=a14_0x16dd11,_0x1a1f87=_0x52658c[_0x185da8(0x1fb)][0x0];if(!_0x1a1f87)throw CliErrors[_0x185da8(0x1ec)](_0x185da8(0x1bd),_0x185da8(0x206)+CLI_BIN_NAME+_0x185da8(0x1d3));const _0x42a113=resolveWriteScope({'explicitGlobal':_0x52658c[_0x185da8(0x1f3)](_0x185da8(0x1bf)),'policy':_0x185da8(0x1f0)}),_0x2f1676=toScopeFlags(_0x42a113),_0x11fd15=readScopedConfig(_0x2f1676),_0x261448=parseAliasDeleteKey(_0x1a1f87);if(_0x261448){if(!deleteLocalAppAlias(_0x11fd15,_0x261448))throw CliErrors[_0x185da8(0x1ec)](_0x185da8(0x1ea)+_0x1a1f87);return console[_0x185da8(0x1e2)](_0x185da8(0x1fa)+_0x1a1f87+'`'+(_0x42a113===_0x185da8(0x1bf)?_0x185da8(0x203):'')),writeScopedConfig(_0x11fd15,_0x2f1676),{'ok':!![]};}if(_0x11fd15[_0x1a1f87]===undefined)throw CliErrors[_0x185da8(0x1ec)](_0x185da8(0x1ca)+_0x1a1f87+_0x185da8(0x1c6));return delete _0x11fd15[_0x1a1f87],console[_0x185da8(0x1e2)](_0x185da8(0x1fa)+_0x1a1f87+'`'+(_0x42a113===_0x185da8(0x1bf)?_0x185da8(0x203):'')),writeScopedConfig(_0x11fd15,_0x2f1676),{'ok':!![]};}};function a14_0xc5fe(){const _0x2845fb=['`\x20=\x20\x22','includes','\x22\x20not\x20found\x20at\x20top\x20level.','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Write\x20to\x20global\x20config','3ZZmUWi','Key\x20\x22','stringify','riskLevel','81DizSeh','Delete\x20a\x20config\x20value','../../context.js','\x20config\x20get\x20<key>','key','Set\x20`','\x20config\x20delete\x20<key>\x20[--global]','Missing\x20key\x20or\x20value.','raw','Invalid\x20value\x20for\x20\x22','join','pretty','keys','read','boolean','config','18FVnVsp','trim','(none)','split','33zFbKYx','log','format','Settable\x20keys:\x20','value','get','Config\x20files:\x0a','Top-level\x20key\x20\x22','object','Key\x20not\x20found:\x20','length','validation','Set\x20a\x20config\x20value','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','project-or-global-explicit','13067670FBOjwH','696520PuDVRi','bool','isArray','alias','7228168miLKZz','198085pOgkKA','Value\x20to\x20assign','\x20\x20project:\x20','Deleted\x20`','args','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Get\x20a\x20config\x20value','field','apps','list','pageSize\x20must\x20be\x20a\x20positive\x20number','431792FkkXhw','\x20(global)','\x22.\x20Allowed:\x20','575930mtAnJb','Usage:\x20','Missing\x20key\x20argument.','pageSize','global','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','appcode','\x22\x20is\x20not\x20settable.','942184jdEfHV'];a14_0xc5fe=function(){return _0x2845fb;};return a14_0xc5fe();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a14_0x3994b8=a14_0x23f3;(function(_0x40a56f,_0x122528){const _0x4affb3=a14_0x23f3,_0x35555b=_0x40a56f();while(!![]){try{const _0x1ab1ed=parseInt(_0x4affb3(0x17a))/0x1*(parseInt(_0x4affb3(0x166))/0x2)+parseInt(_0x4affb3(0x19a))/0x3+parseInt(_0x4affb3(0x19d))/0x4*(parseInt(_0x4affb3(0x169))/0x5)+parseInt(_0x4affb3(0x16a))/0x6+-parseInt(_0x4affb3(0x172))/0x7*(-parseInt(_0x4affb3(0x180))/0x8)+-parseInt(_0x4affb3(0x168))/0x9+-parseInt(_0x4affb3(0x18d))/0xa;if(_0x1ab1ed===_0x122528)break;else _0x35555b['push'](_0x35555b['shift']());}catch(_0x2ed5a8){_0x35555b['push'](_0x35555b['shift']());}}}(a14_0x2be1,0x88fe1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a14_0x23f3(_0x32db7a,_0x240e55){_0x32db7a=_0x32db7a-0x160;const _0x2be1b3=a14_0x2be1();let _0x23f339=_0x2be1b3[_0x32db7a];return _0x23f339;}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';function a14_0x2be1(){const _0x529f64=['46TPwoqp','\x20config\x20get\x20<key>','3854403inDvIK','88390ucjvKZ','340938YGEngK','validation','object','join','pretty','boolean','List\x20current\x20config','list','518PMZcIW','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','split','Key\x20\x22','key','Value\x20to\x20assign','log','alias','46547txJnvg','global','Settable\x20keys:\x20','Key\x20not\x20found:\x20','project-or-global-explicit','../../context.js','60472QiZWtE','write','read','riskLevel','\x20config\x20delete\x20<key>\x20[--global]','`\x20=\x20\x22','config','stringify','\x22\x20is\x20not\x20settable.','get','apps','\x20\x20global:\x20\x20','appcode','20534770naSlIG','Missing\x20key\x20or\x20value.','Top-level\x20key\x20\x22','\x22\x20not\x20found\x20at\x20top\x20level.','trim','Delete\x20a\x20config\x20value','field','Write\x20to\x20global\x20config','args','raw','keys','(none)','value','2742435XETaJB','\x20\x20project:\x20','length','100kxZIvt','Deleted\x20`','Missing\x20key\x20argument.','includes','Usage:\x20','bool','\x20config\x20set\x20<key>\x20<value>\x20[--global]','delete','Set\x20a\x20config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','pageSize','Invalid\x20value\x20for\x20\x22','Config\x20files:\x0a','\x20(global)','isArray'];a14_0x2be1=function(){return _0x529f64;};return a14_0x2be1();}const GLOBAL_FLAG={'name':a14_0x3994b8(0x17b),'type':a14_0x3994b8(0x16f),'description':a14_0x3994b8(0x194),'default':![]};function parseAliasAppcodeSetKey(_0x17c7bc){const _0x1adaaf=a14_0x3994b8,_0x3c2a87=_0x17c7bc[_0x1adaaf(0x174)]('.');if(_0x3c2a87[_0x1adaaf(0x19c)]!==0x3||_0x3c2a87[0x0]!==_0x1adaaf(0x18a)||_0x3c2a87[0x2]!==_0x1adaaf(0x18c))return undefined;const _0x50a776=_0x3c2a87[0x1]?.['trim']();return _0x50a776?_0x50a776:undefined;}function parseAliasDeleteKey(_0x49a4c1){const _0x326f30=a14_0x3994b8,_0x225157=_0x49a4c1[_0x326f30(0x174)]('.');if(_0x225157[_0x326f30(0x19c)]===0x2&&_0x225157[0x0]==='apps'){const _0x45c869=_0x225157[0x1]?.[_0x326f30(0x191)]();return _0x45c869?{'alias':_0x45c869}:undefined;}if(_0x225157['length']===0x3&&_0x225157[0x0]==='apps'&&_0x225157[0x2]==='appcode'){const _0x40d940=_0x225157[0x1]?.[_0x326f30(0x191)]();return _0x40d940?{'alias':_0x40d940,'field':_0x326f30(0x18c)}:undefined;}return undefined;}function setLocalAppAlias(_0x1e6824,_0x557643,_0x46fe6f){const _0xbcc9f=a14_0x3994b8,_0x1ebe59=_0x1e6824[_0xbcc9f(0x18a)]&&typeof _0x1e6824[_0xbcc9f(0x18a)]===_0xbcc9f(0x16c)&&!Array[_0xbcc9f(0x165)](_0x1e6824[_0xbcc9f(0x18a)])?_0x1e6824['apps']:{},_0x1038cc=_0x1ebe59[_0x557643]&&typeof _0x1ebe59[_0x557643]===_0xbcc9f(0x16c)&&!Array[_0xbcc9f(0x165)](_0x1ebe59[_0x557643])?_0x1ebe59[_0x557643]:{};_0x1038cc['appcode']=_0x46fe6f,_0x1ebe59[_0x557643]=_0x1038cc,_0x1e6824[_0xbcc9f(0x18a)]=_0x1ebe59;}function deleteLocalAppAlias(_0x5c4a50,_0x2df94d){const _0x18948e=a14_0x3994b8;if(!_0x5c4a50[_0x18948e(0x18a)]||typeof _0x5c4a50[_0x18948e(0x18a)]!==_0x18948e(0x16c)||Array['isArray'](_0x5c4a50[_0x18948e(0x18a)]))return![];const _0x4cb11a=_0x5c4a50[_0x18948e(0x18a)],_0x23aa44=_0x4cb11a[_0x2df94d[_0x18948e(0x179)]];if(!_0x23aa44||typeof _0x23aa44!==_0x18948e(0x16c)||Array[_0x18948e(0x165)](_0x23aa44))return![];if(!_0x2df94d[_0x18948e(0x193)])return delete _0x4cb11a[_0x2df94d[_0x18948e(0x179)]],!![];if(!(_0x2df94d[_0x18948e(0x193)]in _0x23aa44))return![];return delete _0x23aa44[_0x2df94d['field']],Object[_0x18948e(0x197)](_0x23aa44)[_0x18948e(0x19c)]===0x0&&delete _0x4cb11a[_0x2df94d[_0x18948e(0x179)]],!![];}const listDef={'service':a14_0x3994b8(0x186),'command':a14_0x3994b8(0x171),'description':a14_0x3994b8(0x170),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1c3b64){const _0x4d5160=a14_0x3994b8,{buildConfigFromFlags:_0x432ce3}=await import(_0x4d5160(0x17f)),_0x4dfb0c=_0x432ce3({}),_0x315562=getProjectConfigPath(),_0x14c4ff=resolveWriteConfigPath(_0x4d5160(0x17b));if(_0x1c3b64['format']===_0x4d5160(0x16e))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x4dfb0c[_0x4d5160(0x196)],null,0x2)+'\x0a\x0a')+_0x4d5160(0x163)+(_0x4d5160(0x19b)+(_0x315562??_0x4d5160(0x198))+'\x0a')+(_0x4d5160(0x18b)+_0x14c4ff)};return{'ok':!![],'data':{'effective':_0x4dfb0c['raw'],'configFiles':{'project':_0x315562??null,'global':_0x14c4ff}}};}},getDef={'service':a14_0x3994b8(0x186),'command':a14_0x3994b8(0x189),'description':'Get\x20a\x20config\x20value','risk':a14_0x3994b8(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a14_0x3994b8(0x173),'required':!![]}],'flags':[],async 'execute'(_0x31beed){const _0xbce361=a14_0x3994b8,_0x3acd99=_0x31beed[_0xbce361(0x195)][0x0];if(!_0x3acd99)throw CliErrors[_0xbce361(0x16b)](_0xbce361(0x19f),_0xbce361(0x1a1)+CLI_BIN_NAME+_0xbce361(0x167));const {buildConfigFromFlags:_0x200ff6}=await import('../../context.js'),{raw:_0x496dfd}=_0x200ff6({});if(_0x3acd99[_0xbce361(0x1a0)]('.')){const _0x2a1bc5=_0x3acd99['split']('.');let _0x3999bd=_0x496dfd;for(const _0x47cf4c of _0x2a1bc5){if(_0x3999bd==null||typeof _0x3999bd!=='object')throw CliErrors['validation'](_0xbce361(0x17d)+_0x3acd99);_0x3999bd=_0x3999bd[_0x47cf4c];}if(_0x3999bd===undefined)throw CliErrors[_0xbce361(0x16b)]('Key\x20not\x20found:\x20'+_0x3acd99);return console[_0xbce361(0x178)](typeof _0x3999bd===_0xbce361(0x16c)?JSON['stringify'](_0x3999bd,null,0x2):String(_0x3999bd)),{'ok':!![]};}const _0x32371c=_0x496dfd[_0x3acd99];if(_0x32371c===undefined)throw CliErrors[_0xbce361(0x16b)](_0xbce361(0x17d)+_0x3acd99);return console['log'](typeof _0x32371c==='object'?JSON[_0xbce361(0x187)](_0x32371c,null,0x2):String(_0x32371c)),{'ok':!![]};}},setDef={'service':a14_0x3994b8(0x186),'command':'set','description':a14_0x3994b8(0x1a5),'risk':a14_0x3994b8(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x3994b8(0x176),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x3994b8(0x199),'description':a14_0x3994b8(0x177),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2fa847){const _0x4bbe53=a14_0x3994b8,_0x40ed87=_0x2fa847['args'][0x0],_0x548744=_0x2fa847[_0x4bbe53(0x195)][0x1];if(!_0x40ed87||_0x548744===undefined)throw CliErrors['validation'](_0x4bbe53(0x18e),_0x4bbe53(0x1a1)+CLI_BIN_NAME+_0x4bbe53(0x1a3));if(ENUM_KEYS[_0x40ed87]&&!ENUM_KEYS[_0x40ed87][_0x4bbe53(0x1a0)](_0x548744))throw CliErrors[_0x4bbe53(0x16b)](_0x4bbe53(0x162)+_0x40ed87+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x40ed87][_0x4bbe53(0x16d)](',\x20'));if(_0x40ed87===_0x4bbe53(0x183))throw CliErrors[_0x4bbe53(0x16b)](_0x4bbe53(0x160));if(_0x40ed87===_0x4bbe53(0x161)){const _0xc6db34=Number(_0x548744);if(isNaN(_0xc6db34)||_0xc6db34<=0x0)throw CliErrors['validation']('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x51af44=resolveWriteScope({'explicitGlobal':_0x2fa847['bool'](_0x4bbe53(0x17b)),'policy':_0x4bbe53(0x17e)}),_0x8ba79e=toScopeFlags(_0x51af44),_0x443a08=readScopedConfig(_0x8ba79e),_0x335336=parseAliasAppcodeSetKey(_0x40ed87);if(!_0x335336&&!isTopLevelConfigKey(_0x40ed87))throw CliErrors[_0x4bbe53(0x16b)](_0x4bbe53(0x18f)+_0x40ed87+_0x4bbe53(0x188),_0x4bbe53(0x17c)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x335336?setLocalAppAlias(_0x443a08,_0x335336,_0x548744):_0x443a08[_0x40ed87]=_0x40ed87===_0x4bbe53(0x161)?Number(_0x548744):_0x548744,console[_0x4bbe53(0x178)]('Set\x20`'+_0x40ed87+_0x4bbe53(0x185)+_0x548744+'\x22'+(_0x51af44===_0x4bbe53(0x17b)?_0x4bbe53(0x164):'')),writeScopedConfig(_0x443a08,_0x8ba79e),{'ok':!![]};}},deleteDef={'service':a14_0x3994b8(0x186),'command':a14_0x3994b8(0x1a4),'description':a14_0x3994b8(0x192),'risk':a14_0x3994b8(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x3994b8(0x176),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x118822){const _0x15ee37=a14_0x3994b8,_0x31bc5f=_0x118822[_0x15ee37(0x195)][0x0];if(!_0x31bc5f)throw CliErrors[_0x15ee37(0x16b)](_0x15ee37(0x19f),'Usage:\x20'+CLI_BIN_NAME+_0x15ee37(0x184));const _0x15e029=resolveWriteScope({'explicitGlobal':_0x118822[_0x15ee37(0x1a2)](_0x15ee37(0x17b)),'policy':_0x15ee37(0x17e)}),_0xcf337b=toScopeFlags(_0x15e029),_0x30ead9=readScopedConfig(_0xcf337b),_0x48ece2=parseAliasDeleteKey(_0x31bc5f);if(_0x48ece2){if(!deleteLocalAppAlias(_0x30ead9,_0x48ece2))throw CliErrors[_0x15ee37(0x16b)]('Key\x20not\x20found:\x20'+_0x31bc5f);return console[_0x15ee37(0x178)]('Deleted\x20`'+_0x31bc5f+'`'+(_0x15e029===_0x15ee37(0x17b)?_0x15ee37(0x164):'')),writeScopedConfig(_0x30ead9,_0xcf337b),{'ok':!![]};}if(_0x30ead9[_0x31bc5f]===undefined)throw CliErrors['validation'](_0x15ee37(0x175)+_0x31bc5f+_0x15ee37(0x190));return delete _0x30ead9[_0x31bc5f],console[_0x15ee37(0x178)](_0x15ee37(0x19e)+_0x31bc5f+'`'+(_0x15e029==='global'?'\x20(global)':'')),writeScopedConfig(_0x30ead9,_0xcf337b),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a15_0x2dfa(){var _0x3a9c8c=['1401026tSnEQr','709415qWnfcy','9JhYQzE','1676544AYilbX','29780BDBixD','4252020YkoHde','156IZSKDe','21qUqSfO','198956yTywNl','40ZHKgkU','102734kTvjlK','570cuqASS'];a15_0x2dfa=function(){return _0x3a9c8c;};return a15_0x2dfa();}(function(_0x12369b,_0x10dee9){var _0xc1c823=a15_0x4334,_0x4a4c49=_0x12369b();while(!![]){try{var _0x2674f2=-parseInt(_0xc1c823(0x161))/0x1+-parseInt(_0xc1c823(0x163))/0x2*(parseInt(_0xc1c823(0x160))/0x3)+-parseInt(_0xc1c823(0x168))/0x4+parseInt(_0xc1c823(0x15d))/0x5*(parseInt(_0xc1c823(0x164))/0x6)+parseInt(_0xc1c823(0x166))/0x7*(-parseInt(_0xc1c823(0x162))/0x8)+parseInt(_0xc1c823(0x167))/0x9*(-parseInt(_0xc1c823(0x15e))/0xa)+-parseInt(_0xc1c823(0x165))/0xb*(-parseInt(_0xc1c823(0x15f))/0xc);if(_0x2674f2===_0x10dee9)break;else _0x4a4c49['push'](_0x4a4c49['shift']());}catch(_0x49ad3e){_0x4a4c49['push'](_0x4a4c49['shift']());}}}(a15_0x2dfa,0x4c2b6));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x4334(_0xdd765c,_0x39c951){_0xdd765c=_0xdd765c-0x15d;var _0x2dfaaa=a15_0x2dfa();var _0x43348d=_0x2dfaaa[_0xdd765c];return _0x43348d;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ function a15_0x4dad(){var _0x54f87b=['1211268LnYxFT','9246105GuSbTx','7CltVqs','3xjvlvk','1428811lKWBPT','853490YFNvDX','35961370ZVuoCo','3811292LWyCUy','8SXcDsl','5620695Mrzien'];a15_0x4dad=function(){return _0x54f87b;};return a15_0x4dad();}(function(_0x9d364d,_0x43e7b9){var _0x19ea68=a15_0x3bc2,_0x513882=_0x9d364d();while(!![]){try{var _0x18d662=-parseInt(_0x19ea68(0x13a))/0x1+-parseInt(_0x19ea68(0x131))/0x2+parseInt(_0x19ea68(0x139))/0x3*(-parseInt(_0x19ea68(0x133))/0x4)+-parseInt(_0x19ea68(0x135))/0x5+-parseInt(_0x19ea68(0x136))/0x6*(-parseInt(_0x19ea68(0x138))/0x7)+parseInt(_0x19ea68(0x134))/0x8*(parseInt(_0x19ea68(0x137))/0x9)+parseInt(_0x19ea68(0x132))/0xa;if(_0x18d662===_0x43e7b9)break;else _0x513882['push'](_0x513882['shift']());}catch(_0x490826){_0x513882['push'](_0x513882['shift']());}}}(a15_0x4dad,0xd9faa));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x3bc2(_0xacbfbf,_0x216874){_0xacbfbf=_0xacbfbf-0x131;var _0x4dad84=a15_0x4dad();var _0x3bc28e=_0x4dad84[_0xacbfbf];return _0x3bc28e;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';