@lovrabet/lovrabet-cli 2.0.9-beta.3 → 2.0.9-beta.5

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
- (function(_0xec9b65,_0xca220c){const _0x19a3ee=a0_0x4332,_0x5226e9=_0xec9b65();while(!![]){try{const _0x5f3d3d=parseInt(_0x19a3ee(0x1dc))/0x1+-parseInt(_0x19a3ee(0x1fb))/0x2+-parseInt(_0x19a3ee(0x1ea))/0x3*(-parseInt(_0x19a3ee(0x1f0))/0x4)+parseInt(_0x19a3ee(0x1f2))/0x5+-parseInt(_0x19a3ee(0x1ee))/0x6+-parseInt(_0x19a3ee(0x1f1))/0x7+-parseInt(_0x19a3ee(0x1fc))/0x8*(-parseInt(_0x19a3ee(0x1f7))/0x9);if(_0x5f3d3d===_0xca220c)break;else _0x5226e9['push'](_0x5226e9['shift']());}catch(_0x290770){_0x5226e9['push'](_0x5226e9['shift']());}}}(a0_0x2bba,0x220f9));import{jsx as a0_0x237b34}from'react/jsx-runtime';import a0_0x47989c 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';function a0_0x2bba(){const _0x2a0916=['flatMap','handler','508863aWGBgr','defaultCommand','./framework/preparse.js',':\x20--','952740cQRTdk','[preparse]\x20','4ALFtUT','251440whmluQ','715835XgnzNV','code','original','Hint:\x20','stderr','909txaFRS','Unexpected\x20error:','args','exit','554970lxIjHg','18584CKDLZb','name','length','ERR_STREAM_DESTROYED','log','64297NFmShu','error','write','slice','input','help','assign','hint','Error:\x20','unknownCommand','ERR_USE_AFTER_CLOSE','exitCode'];a0_0x2bba=function(){return _0x2a0916;};return a0_0x2bba();}import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x47989c(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()['catch'](handleError);async function main(){try{await run();}catch(_0x44a129){handleError(_0x44a129);}}function a0_0x4332(_0x1d7c42,_0x17f07c){_0x1d7c42=_0x1d7c42-0x1dc;const _0x2bbaac=a0_0x2bba();let _0x4332d7=_0x2bbaac[_0x1d7c42];return _0x4332d7;}async function run(){const _0x38a02b=a0_0x4332;let _0x14e93a=cli[_0x38a02b(0x1e0)][0x0],_0x41ed17=cli[_0x38a02b(0x1e0)][0x1];const _0x17a20f=cli['flags'];try{const {correctFlags:_0x8840ae}=await import(_0x38a02b(0x1ec)),_0x10375a=getAllDefinitions()[_0x38a02b(0x1e8)](_0x152b51=>_0x152b51['flags']??[]),{flags:_0x356817,corrections:_0x2fa037}=_0x8840ae(_0x17a20f,_0x10375a);if(_0x2fa037[_0x38a02b(0x1fe)]>0x0){for(const _0x293e89 of _0x2fa037){process[_0x38a02b(0x1f6)][_0x38a02b(0x1de)](_0x38a02b(0x1ef)+_0x293e89[_0x38a02b(0x1e9)]+_0x38a02b(0x1ed)+_0x293e89[_0x38a02b(0x1f4)]+'\x20->\x20--'+_0x293e89['corrected']+'\x0a');}Object[_0x38a02b(0x1e2)](_0x17a20f,_0x356817);}}catch{}if(!_0x14e93a||!isKnownService(_0x14e93a)){const {waitUntilExit:_0x10e41d}=render(a0_0x237b34(Help,{}));await _0x10e41d();return;}const _0x283f1a=getServiceEntry(_0x14e93a);if(!_0x41ed17){if(_0x17a20f[_0x38a02b(0x1e1)]){console[_0x38a02b(0x200)](generateServiceHelp(_0x14e93a));return;}if(_0x283f1a[_0x38a02b(0x1eb)])_0x41ed17=_0x283f1a['defaultCommand'];else{console[_0x38a02b(0x200)](generateServiceHelp(_0x14e93a));return;}}const _0x229069=findDefinition(_0x14e93a,_0x41ed17);!_0x229069&&(console[_0x38a02b(0x200)](generateServiceHelp(_0x14e93a)),handleError(CliErrors[_0x38a02b(0x1e5)](_0x14e93a+'\x20'+_0x41ed17)));if(_0x17a20f[_0x38a02b(0x1e1)]){console[_0x38a02b(0x200)](generateCommandHelp(_0x229069));return;}const _0x3eb0cd=buildConfigFromFlags(_0x17a20f);await initGlobalEnvironment(_0x3eb0cd);const _0x3879a9=createPipelineEnv(_0x3eb0cd,_0x17a20f);_0x3879a9[_0x38a02b(0x1f9)]=cli[_0x38a02b(0x1e0)][_0x38a02b(0x1df)](0x2),await runCommand(_0x229069,_0x3879a9);}function handleError(_0x462652){const _0x521202=a0_0x4332;if(_0x462652 instanceof CliError){_0x462652[_0x521202(0x1f3)]==='cancelled'&&(process[_0x521202(0x1f6)]['write']('\x0aCancelled.\x0a'),process[_0x521202(0x1fa)](0x0));console[_0x521202(0x1dd)](_0x521202(0x1e4)+_0x462652['message']);if(_0x462652[_0x521202(0x1e3)])console[_0x521202(0x1dd)](_0x521202(0x1f5)+_0x462652[_0x521202(0x1e3)]);process[_0x521202(0x1fa)](_0x462652[_0x521202(0x1e7)]);}isUserCancellation(_0x462652)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process[_0x521202(0x1fa)](0x0)),console[_0x521202(0x1dd)](_0x521202(0x1f8),_0x462652),process[_0x521202(0x1fa)](0x1);}function isUserCancellation(_0x23c69e){const _0x4ea85=a0_0x4332;if(!(_0x23c69e instanceof Error))return![];if(_0x23c69e[_0x4ea85(0x1fd)]==='ExitPromptError')return!![];if(_0x23c69e[_0x4ea85(0x1f3)]===_0x4ea85(0x1e6))return!![];if(_0x23c69e[_0x4ea85(0x1f3)]===_0x4ea85(0x1ff))return!![];return![];}
2
+ const a0_0x4b62e8=a0_0x36fe;(function(_0xffab93,_0x3ccc4d){const _0x3c6728=a0_0x36fe,_0x374b62=_0xffab93();while(!![]){try{const _0x22cb48=-parseInt(_0x3c6728(0x1f0))/0x1+-parseInt(_0x3c6728(0x1fe))/0x2+parseInt(_0x3c6728(0x1ee))/0x3*(parseInt(_0x3c6728(0x20b))/0x4)+-parseInt(_0x3c6728(0x1f1))/0x5*(parseInt(_0x3c6728(0x20d))/0x6)+-parseInt(_0x3c6728(0x1e8))/0x7*(-parseInt(_0x3c6728(0x201))/0x8)+parseInt(_0x3c6728(0x1fb))/0x9+-parseInt(_0x3c6728(0x1e9))/0xa*(-parseInt(_0x3c6728(0x1ea))/0xb);if(_0x22cb48===_0x3ccc4d)break;else _0x374b62['push'](_0x374b62['shift']());}catch(_0x851555){_0x374b62['push'](_0x374b62['shift']());}}}(a0_0x1de1,0x2b7eb));import{jsx as a0_0x2cb33f}from'react/jsx-runtime';import a0_0x147dd1 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';function a0_0x1de1(){const _0x2e86cc=['args','length','[preparse]\x20','catch','help','handler','hint','original','4kAmgWO','input','69864OaAaIP','corrected','flags','exitCode','639051ruhCcR','1610xlqRhA','5786VSMOtO','exit','stderr','./framework/preparse.js','577959xqGfQA','code','122668aJcsFc','55hCCHDj','unknownCommand','\x0aCancelled.\x0a','ExitPromptError','defaultCommand','write','\x20->\x20--','slice','log','Unexpected\x20error:','1094364gczbfK','ERR_USE_AFTER_CLOSE','error','305228gqfQnE','ERR_STREAM_DESTROYED','Error:\x20','16wbXjvK','Hint:\x20'];a0_0x1de1=function(){return _0x2e86cc;};return a0_0x1de1();}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';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x147dd1(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x4b62e8(0x206)](handleError);async function main(){try{await run();}catch(_0x37af75){handleError(_0x37af75);}}async function run(){const _0x7619a1=a0_0x4b62e8;let _0x150344=cli[_0x7619a1(0x20c)][0x0],_0x2cc188=cli['input'][0x1];const _0x2dc6eb=cli[_0x7619a1(0x20f)];try{const {correctFlags:_0x40f7fe}=await import(_0x7619a1(0x1ed)),_0x3cf0db=getAllDefinitions()['flatMap'](_0x3a9d74=>_0x3a9d74[_0x7619a1(0x20f)]??[]),{flags:_0x3ad989,corrections:_0x32697a}=_0x40f7fe(_0x2dc6eb,_0x3cf0db);if(_0x32697a[_0x7619a1(0x204)]>0x0){for(const _0x112a45 of _0x32697a){process[_0x7619a1(0x1ec)]['write'](_0x7619a1(0x205)+_0x112a45[_0x7619a1(0x208)]+':\x20--'+_0x112a45[_0x7619a1(0x20a)]+_0x7619a1(0x1f7)+_0x112a45[_0x7619a1(0x20e)]+'\x0a');}Object['assign'](_0x2dc6eb,_0x3ad989);}}catch{}if(!_0x150344||!isKnownService(_0x150344)){const {waitUntilExit:_0x441263}=render(a0_0x2cb33f(Help,{}));await _0x441263();return;}const _0x4050c8=getServiceEntry(_0x150344);if(!_0x2cc188){if(_0x2dc6eb[_0x7619a1(0x207)]){console[_0x7619a1(0x1f9)](generateServiceHelp(_0x150344));return;}if(_0x4050c8[_0x7619a1(0x1f5)])_0x2cc188=_0x4050c8[_0x7619a1(0x1f5)];else{console[_0x7619a1(0x1f9)](generateServiceHelp(_0x150344));return;}}const _0x134e88=findDefinition(_0x150344,_0x2cc188);!_0x134e88&&(console[_0x7619a1(0x1f9)](generateServiceHelp(_0x150344)),handleError(CliErrors[_0x7619a1(0x1f2)](_0x150344+'\x20'+_0x2cc188)));if(_0x2dc6eb[_0x7619a1(0x207)]){console[_0x7619a1(0x1f9)](generateCommandHelp(_0x134e88));return;}const _0x209cfd=buildConfigFromFlags(_0x2dc6eb);await initGlobalEnvironment(_0x209cfd);const _0x4dfd92=createPipelineEnv(_0x209cfd,_0x2dc6eb);_0x4dfd92[_0x7619a1(0x203)]=cli[_0x7619a1(0x20c)][_0x7619a1(0x1f8)](0x2),await runCommand(_0x134e88,_0x4dfd92);}function a0_0x36fe(_0x2535fb,_0x1e1e22){_0x2535fb=_0x2535fb-0x1e7;const _0x1de1e5=a0_0x1de1();let _0x36fec5=_0x1de1e5[_0x2535fb];return _0x36fec5;}function handleError(_0x4e62f4){const _0x3e2ade=a0_0x4b62e8;if(_0x4e62f4 instanceof CliError){_0x4e62f4[_0x3e2ade(0x1ef)]==='cancelled'&&(process['stderr'][_0x3e2ade(0x1f6)](_0x3e2ade(0x1f3)),process[_0x3e2ade(0x1eb)](0x0));console[_0x3e2ade(0x1fd)](_0x3e2ade(0x200)+_0x4e62f4['message']);if(_0x4e62f4[_0x3e2ade(0x209)])console[_0x3e2ade(0x1fd)](_0x3e2ade(0x202)+_0x4e62f4[_0x3e2ade(0x209)]);process[_0x3e2ade(0x1eb)](_0x4e62f4[_0x3e2ade(0x1e7)]);}isUserCancellation(_0x4e62f4)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process['exit'](0x0)),console[_0x3e2ade(0x1fd)](_0x3e2ade(0x1fa),_0x4e62f4),process[_0x3e2ade(0x1eb)](0x1);}function isUserCancellation(_0x338f8e){const _0x46fe45=a0_0x4b62e8;if(!(_0x338f8e instanceof Error))return![];if(_0x338f8e['name']===_0x46fe45(0x1f4))return!![];if(_0x338f8e['code']===_0x46fe45(0x1fc))return!![];if(_0x338f8e[_0x46fe45(0x1ef)]===_0x46fe45(0x1ff))return!![];return![];}
@@ -1 +1 @@
1
- function a1_0x457d(_0x38375b,_0x549734){_0x38375b=_0x38375b-0x15e;const _0x57beb4=a1_0x57be();let _0x457d61=_0x57beb4[_0x38375b];return _0x457d61;}(function(_0x3026dc,_0x5e80e3){const _0x52d446=a1_0x457d,_0x51bea2=_0x3026dc();while(!![]){try{const _0x4c94e8=-parseInt(_0x52d446(0x171))/0x1+-parseInt(_0x52d446(0x177))/0x2*(parseInt(_0x52d446(0x17c))/0x3)+parseInt(_0x52d446(0x173))/0x4*(parseInt(_0x52d446(0x175))/0x5)+-parseInt(_0x52d446(0x178))/0x6*(-parseInt(_0x52d446(0x16c))/0x7)+-parseInt(_0x52d446(0x15f))/0x8+parseInt(_0x52d446(0x172))/0x9+parseInt(_0x52d446(0x16d))/0xa*(parseInt(_0x52d446(0x169))/0xb);if(_0x4c94e8===_0x5e80e3)break;else _0x51bea2['push'](_0x51bea2['shift']());}catch(_0xf8c64b){_0x51bea2['push'](_0x51bea2['shift']());}}}(a1_0x57be,0x8d649));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';import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x2375ce){const _0x2729a7=a1_0x457d,_0x4cb956=_0x2375ce['trim'](),_0x366521=_0x4cb956[_0x2729a7(0x179)](-0x6)||_0x2729a7(0x165),_0x4639b9=createHash(_0x2729a7(0x174))[_0x2729a7(0x17a)](_0x4cb956)[_0x2729a7(0x16f)](_0x2729a7(0x161))[_0x2729a7(0x179)](0x0,0xc);return _0x2729a7(0x168)+_0x366521+'_'+_0x4639b9;}function a1_0x57be(){const _0xe539b2=['EPERM','digest','EACCES','897296UCoOUg','7344009DKEeht','2848bGwwpo','sha256','6490qchksm','stringify','172284ftWmrJ','2051190Ootclo','slice','update','my-apps.json','30fgUjUs','code','homeDirName','3576400AARQxD','appCode','hex','EXDEV','items','trim','unknown','cache','utf8','ak_','3971044AmKJGl','.tmp','appName','14mGdWoo','10HyApGj'];a1_0x57be=function(){return _0xe539b2;};return a1_0x57be();}export function getAppCacheFilePath(_0x2d771d,_0x479404){const _0x5924b0=a1_0x457d;return resolve(homedir(),PRODUCT_CONFIG[_0x5924b0(0x15e)],_0x5924b0(0x166),_0x2d771d,fingerprintAccessKey(_0x479404),_0x5924b0(0x17b));}export function readCachedAppList(_0xc490d5,_0xc5d005){const _0x2d3008=a1_0x457d;if(!_0xc5d005?.[_0x2d3008(0x164)]())return null;const _0x5d5e0d=getAppCacheFilePath(_0xc490d5,_0xc5d005);if(!existsSync(_0x5d5e0d))return null;try{const _0x274e1a=readFileSync(_0x5d5e0d,_0x2d3008(0x167));if(!_0x274e1a[_0x2d3008(0x164)]())return null;const _0x5366b6=JSON['parse'](_0x274e1a);if(!Array['isArray'](_0x5366b6[_0x2d3008(0x163)]))return null;return _0x5366b6;}catch{return null;}}export function writeCachedAppList(_0x356707,_0xe7ab,_0x583d05){const _0x45b37f=a1_0x457d,_0x39beb3=getAppCacheFilePath(_0x356707,_0xe7ab),_0x19f498=dirname(_0x39beb3);!existsSync(_0x19f498)&&mkdirSync(_0x19f498,{'recursive':!![]});const _0xda2a52=_0x39beb3+_0x45b37f(0x16a);try{writeFileSync(_0xda2a52,JSON[_0x45b37f(0x176)](_0x583d05,null,0x2)+'\x0a',{'encoding':_0x45b37f(0x167),'mode':0x180});try{renameSync(_0xda2a52,_0x39beb3);}catch(_0x3c723e){if(_0x3c723e['code']===_0x45b37f(0x16e)||_0x3c723e[_0x45b37f(0x17d)]===_0x45b37f(0x162)||_0x3c723e[_0x45b37f(0x17d)]===_0x45b37f(0x170)){writeFileSync(_0x39beb3,JSON[_0x45b37f(0x176)](_0x583d05,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0xda2a52);}catch{}}else throw _0x3c723e;}}catch(_0xa0692){try{unlinkSync(_0xda2a52);}catch{}throw _0xa0692;}return _0x39beb3;}export function resolveCachedAppCode(_0x3e9f72,_0x471c7b,_0x2cd2b7){const _0x48eee2=a1_0x457d;if(!_0x3e9f72)return undefined;const _0x364745=readCachedAppList(_0x471c7b,_0x2cd2b7),_0x2a36b7=_0x364745?.[_0x48eee2(0x163)]['find'](_0x280785=>_0x280785[_0x48eee2(0x16b)]===_0x3e9f72);return _0x2a36b7?.[_0x48eee2(0x160)]?.[_0x48eee2(0x164)]()||undefined;}
1
+ function a1_0x490e(_0xa5eacf,_0x59acf2){_0xa5eacf=_0xa5eacf-0x155;const _0x588114=a1_0x5881();let _0x490eb6=_0x588114[_0xa5eacf];return _0x490eb6;}(function(_0x20bffa,_0xa17cbf){const _0x2229b2=a1_0x490e,_0x18d6f8=_0x20bffa();while(!![]){try{const _0x51cec7=-parseInt(_0x2229b2(0x16a))/0x1*(parseInt(_0x2229b2(0x159))/0x2)+-parseInt(_0x2229b2(0x161))/0x3*(-parseInt(_0x2229b2(0x156))/0x4)+-parseInt(_0x2229b2(0x15d))/0x5+-parseInt(_0x2229b2(0x16d))/0x6+-parseInt(_0x2229b2(0x158))/0x7+parseInt(_0x2229b2(0x171))/0x8*(-parseInt(_0x2229b2(0x164))/0x9)+parseInt(_0x2229b2(0x160))/0xa;if(_0x51cec7===_0xa17cbf)break;else _0x18d6f8['push'](_0x18d6f8['shift']());}catch(_0x5a6d93){_0x18d6f8['push'](_0x18d6f8['shift']());}}}(a1_0x5881,0xcb770));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';import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x461d78){const _0x572cb7=a1_0x490e,_0x523885=_0x461d78[_0x572cb7(0x165)](),_0x58d2b7=_0x523885[_0x572cb7(0x168)](-0x6)||_0x572cb7(0x166),_0x3742dc=createHash(_0x572cb7(0x16e))[_0x572cb7(0x163)](_0x523885)[_0x572cb7(0x162)](_0x572cb7(0x172))[_0x572cb7(0x168)](0x0,0xc);return _0x572cb7(0x15a)+_0x58d2b7+'_'+_0x3742dc;}function a1_0x5881(){const _0x4344f7=['3rOqEkv','digest','update','2475Aycztg','trim','unknown','EXDEV','slice','appName','43mTBEej','items','my-apps.json','2268744RkLGJw','sha256','homeDirName','isArray','4688XkibQs','hex','find','cache','2555016IdmKWv','EACCES','3138849XFSVkM','14284YKxmLI','ak_','code','EPERM','3580665SlncRf','utf8','stringify','22055580hAtRrN'];a1_0x5881=function(){return _0x4344f7;};return a1_0x5881();}export function getAppCacheFilePath(_0x2c52f1,_0x2eaca0){const _0x573bc8=a1_0x490e;return resolve(homedir(),PRODUCT_CONFIG[_0x573bc8(0x16f)],_0x573bc8(0x155),_0x2c52f1,fingerprintAccessKey(_0x2eaca0),_0x573bc8(0x16c));}export function readCachedAppList(_0x497347,_0x343caf){const _0x53a675=a1_0x490e;if(!_0x343caf?.[_0x53a675(0x165)]())return null;const _0x50c98a=getAppCacheFilePath(_0x497347,_0x343caf);if(!existsSync(_0x50c98a))return null;try{const _0x339ad3=readFileSync(_0x50c98a,_0x53a675(0x15e));if(!_0x339ad3[_0x53a675(0x165)]())return null;const _0x4d4d03=JSON['parse'](_0x339ad3);if(!Array[_0x53a675(0x170)](_0x4d4d03['items']))return null;return _0x4d4d03;}catch{return null;}}export function writeCachedAppList(_0xdb5265,_0x1df566,_0x435be0){const _0x41b2bf=a1_0x490e,_0x105f69=getAppCacheFilePath(_0xdb5265,_0x1df566),_0x3cb566=dirname(_0x105f69);!existsSync(_0x3cb566)&&mkdirSync(_0x3cb566,{'recursive':!![]});const _0x4f178d=_0x105f69+'.tmp';try{writeFileSync(_0x4f178d,JSON[_0x41b2bf(0x15f)](_0x435be0,null,0x2)+'\x0a',{'encoding':_0x41b2bf(0x15e),'mode':0x180});try{renameSync(_0x4f178d,_0x105f69);}catch(_0x437b40){if(_0x437b40[_0x41b2bf(0x15b)]===_0x41b2bf(0x15c)||_0x437b40[_0x41b2bf(0x15b)]===_0x41b2bf(0x167)||_0x437b40[_0x41b2bf(0x15b)]===_0x41b2bf(0x157)){writeFileSync(_0x105f69,JSON[_0x41b2bf(0x15f)](_0x435be0,null,0x2)+'\x0a',{'encoding':_0x41b2bf(0x15e)});try{unlinkSync(_0x4f178d);}catch{}}else throw _0x437b40;}}catch(_0x2d8849){try{unlinkSync(_0x4f178d);}catch{}throw _0x2d8849;}return _0x105f69;}export function resolveCachedAppCode(_0x198560,_0x89f943,_0x971917){const _0x44ee15=a1_0x490e;if(!_0x198560)return undefined;const _0x4021d3=readCachedAppList(_0x89f943,_0x971917),_0x5bfa92=_0x4021d3?.[_0x44ee15(0x16b)][_0x44ee15(0x173)](_0x3cd418=>_0x3cd418[_0x44ee15(0x169)]===_0x198560);return _0x5bfa92?.['appCode']?.[_0x44ee15(0x165)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x496a1b=a2_0x44f9;(function(_0x123d0a,_0x5ded3e){const _0x1588a7=a2_0x44f9,_0x488822=_0x123d0a();while(!![]){try{const _0x712f9=-parseInt(_0x1588a7(0x128))/0x1*(parseInt(_0x1588a7(0x135))/0x2)+-parseInt(_0x1588a7(0x157))/0x3*(-parseInt(_0x1588a7(0x125))/0x4)+parseInt(_0x1588a7(0x141))/0x5+parseInt(_0x1588a7(0x11c))/0x6+-parseInt(_0x1588a7(0x11b))/0x7+parseInt(_0x1588a7(0x124))/0x8+-parseInt(_0x1588a7(0x116))/0x9;if(_0x712f9===_0x5ded3e)break;else _0x488822['push'](_0x488822['shift']());}catch(_0x1ca801){_0x488822['push'](_0x488822['shift']());}}}(a2_0xea6c,0xd9b75));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_0x496a1b(0x11f),'type':'boolean','description':a2_0x496a1b(0x118),'default':![]};function a2_0xea6c(){const _0x1a1cd2=['appName','push','read','12921boyrTa','write','items','args','\x20config\x20file','bool','\x20cached\x20app(s)\x20for\x20env=\x22','find','boolean','from','map','no-cache','Loaded\x20','Default\x20app\x20candidate\x20set\x20to\x20\x22','pull','6093909CjyZcM','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Use\x20global\x20config\x20scope','Usage:\x20','join','7032683idenOL','3196104JfNyJf','trim','projectPath','global','length','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','mergedCli','source','12453800jCryXn','292SVdNtW','env','Set\x20the\x20fallback\x20app\x20candidate','2eIcmhM','Target\x20environment\x20(default:\x20current\x20env)','appOwnerName','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','import','Filter\x20by\x20environment\x20(default:\x20current\x20env)','nonInteractive','name','str','app','../../commands/app/remote-source.js','isCurrent','cache','601976SqDJdj','entries','accessKey','.appcode\x20to\x20.lovrabet.json.','defaultApp','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','list','App\x20\x22','envName','config','No\x20cached\x20apps\x20found.','use','3858455BzAuoe','local','validation','Available\x20remote\x20apps:\x20','\x20app(s)\x20for\x20env=\x22','fetchedAt','Missing\x20app\x20name.','production','No\x20apps\x20found\x20on\x20the\x20platform.','cachePath','init','../../context.js','\x20app\x20use\x20<name>\x20[--global]','Use\x20`','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','appcode','string','Read\x20from\x20local\x20cache\x20only','Refreshed\x20app\x20cache\x20with\x20'];a2_0xea6c=function(){return _0x1a1cd2;};return a2_0xea6c();}function collectFlags(_0x22b537,_0x30c39d){const _0xbd7960=a2_0x496a1b,_0x3ed2d3={};for(const _0x85d4ba of _0x30c39d){const _0x5310da=_0x85d4ba['type']===_0xbd7960(0x10f)?_0x22b537[_0xbd7960(0x15c)](_0x85d4ba[_0xbd7960(0x12f)]):_0x22b537[_0xbd7960(0x130)](_0x85d4ba['name']);if(_0x5310da!==''&&_0x5310da!==![])_0x3ed2d3[_0x85d4ba[_0xbd7960(0x12f)]]=_0x5310da;}if(_0x22b537[_0xbd7960(0x12e)])_0x3ed2d3[_0xbd7960(0x12e)]=!![];return _0x3ed2d3;}function a2_0x44f9(_0x262d26,_0x11ccda){_0x262d26=_0x262d26-0x10f;const _0xea6cf0=a2_0xea6c();let _0x44f9a9=_0xea6cf0[_0x262d26];return _0x44f9a9;}const initDef={'service':a2_0x496a1b(0x131),'command':a2_0x496a1b(0x14b),'description':'Initialize\x20'+PRODUCT_CONFIG['newConfigFileName']+a2_0x496a1b(0x15b),'risk':a2_0x496a1b(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x20bd03){return await runInit(collectFlags(_0x20bd03,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x496a1b(0x131),'command':a2_0x496a1b(0x13b),'description':a2_0x496a1b(0x13a),'risk':a2_0x496a1b(0x156),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a2_0x496a1b(0x12d),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x496a1b(0x142),'type':'boolean','description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x496a1b(0x112),'type':a2_0x496a1b(0x10f),'description':a2_0x496a1b(0x121),'default':![]}],async 'execute'(_0x16c1bd){const _0xfad3b0=a2_0x496a1b,_0x23d17e=_0x16c1bd[_0xfad3b0(0x130)]('env')||_0x16c1bd[_0xfad3b0(0x13d)]||getEnv()||_0xfad3b0(0x148),_0x1b5784=_0x16c1bd['bool'](_0xfad3b0(0x142)),_0x163995=_0x16c1bd['bool'](_0xfad3b0(0x112)),{readRawConfigWithLayers:_0x3bdc96,resolveDefaultAppSource:_0x1d53ac,getLocalAppAliases:_0x504211}=await import(_0xfad3b0(0x14c)),{getRemoteAppList:_0x581491}=await import('../../commands/app/remote-source.js'),{config:_0x9e4de3,layers:_0x21d8d7}=_0x3bdc96(),_0x4549a4=_0x1d53ac(_0x21d8d7),{defaultApp:_0xac3141}=_0x9e4de3,_0xfe3097=await _0x581491({'env':_0x23d17e,'accessKey':_0x16c1bd[_0xfad3b0(0x137)],'localOnly':_0x1b5784,'noCache':_0x163995}),_0x335dc0=_0xfe3097[_0xfad3b0(0x159)]['map'](_0xa51140=>{const _0x781941=_0xfad3b0;return{'name':_0xa51140[_0x781941(0x154)],'appcode':_0xa51140['appCode'],'named':!![],'definedIn':'remote','isDefault':_0xa51140[_0x781941(0x154)]===_0xac3141,...buildAppProfileListFields(_0x23d17e),'source':_0xfe3097[_0x781941(0x123)],'owner':_0xa51140[_0x781941(0x12a)]??null,'status':_0xa51140['appPublishStatus']??null,'cachedAt':_0xfe3097[_0x781941(0x146)]};}),_0x162985=_0x504211(_0x9e4de3);let _0x313df4=0x0;for(const [_0x75a1e,_0x3df61a]of Object[_0xfad3b0(0x136)](_0x162985)){const _0x4468d5=typeof _0x3df61a[_0xfad3b0(0x150)]===_0xfad3b0(0x151)?_0x3df61a[_0xfad3b0(0x150)][_0xfad3b0(0x11d)]():'';if(!_0x4468d5)continue;_0x313df4+=0x1,_0x335dc0[_0xfad3b0(0x155)]({'name':_0x75a1e,'appcode':_0x4468d5,'named':!![],'definedIn':_0xfad3b0(0x142),'isDefault':_0x75a1e===_0xac3141,...buildAppProfileListFields(_0x23d17e),'source':_0xfad3b0(0x13e),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x335dc0,_0x16c1bd[_0xfad3b0(0x122)]);if(_0x335dc0['length']===0x0)return{'ok':!![],'data':[],'message':_0xfe3097[_0xfad3b0(0x123)]===_0xfad3b0(0x134)?_0xfad3b0(0x13f):_0xfad3b0(0x149)};const _0x51cc9f=_0x335dc0[_0xfad3b0(0x15e)](_0x4abcc3=>_0x4abcc3[_0xfad3b0(0x133)]===!![]),_0x392b1e=_0xac3141??_0x51cc9f?.[_0xfad3b0(0x12f)]??null,_0x5a284c={'env':_0x23d17e,'source':_0xfe3097['source'],'fetchedAt':_0xfe3097['fetchedAt'],'cachePath':_0xfe3097[_0xfad3b0(0x14a)],'globalPath':_0x21d8d7['globalPath']??null,'projectPath':_0x21d8d7[_0xfad3b0(0x11e)]??null,'defaultApp':_0x392b1e,'defaultAppSource':_0xac3141!=null?_0x4549a4:null,'localAliasCount':_0x313df4};return{'ok':!![],'data':{'items':_0x335dc0,'meta':_0x5a284c}};}},pullDef={'service':a2_0x496a1b(0x131),'command':a2_0x496a1b(0x115),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a2_0x496a1b(0x151),'description':a2_0x496a1b(0x129),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x496a1b(0x142),'type':a2_0x496a1b(0x10f),'description':a2_0x496a1b(0x152),'default':![]},{'name':'no-cache','type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x13c89b){const _0x668faa=a2_0x496a1b,_0x58aeea=_0x13c89b[_0x668faa(0x130)]('env')||_0x13c89b[_0x668faa(0x13d)]||getEnv()||_0x668faa(0x148),_0x262940=_0x13c89b['bool'](_0x668faa(0x142)),_0x351696=_0x13c89b[_0x668faa(0x15c)]('no-cache'),{getRemoteAppList:_0x3704cd}=await import(_0x668faa(0x132)),_0x360c0a=await _0x3704cd({'env':_0x58aeea,'accessKey':_0x13c89b[_0x668faa(0x137)],'localOnly':_0x262940,'noCache':_0x351696});return{'ok':!![],'data':{'total':_0x360c0a[_0x668faa(0x159)]['length'],'env':_0x58aeea,'source':_0x360c0a['source'],'fetchedAt':_0x360c0a['fetchedAt'],'cachePath':_0x360c0a['cachePath']},'message':_0x360c0a[_0x668faa(0x123)]===_0x668faa(0x134)?_0x668faa(0x113)+_0x360c0a[_0x668faa(0x159)][_0x668faa(0x120)]+_0x668faa(0x15d)+_0x58aeea+'\x22.':_0x668faa(0x153)+_0x360c0a[_0x668faa(0x159)][_0x668faa(0x120)]+_0x668faa(0x145)+_0x58aeea+'\x22.'};}},useDef={'service':a2_0x496a1b(0x131),'command':a2_0x496a1b(0x140),'description':a2_0x496a1b(0x127),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x496a1b(0x12f),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x19952b){const _0x2c8847=a2_0x496a1b;if(!_0x19952b[_0x2c8847(0x15a)][0x0])throw CliErrors[_0x2c8847(0x143)](_0x2c8847(0x147),_0x2c8847(0x119)+CLI_BIN_NAME+_0x2c8847(0x14d));},async 'execute'(_0x27ebda){const _0x57c651=a2_0x496a1b,_0x59f69f=_0x27ebda[_0x57c651(0x15a)][0x0];if(!_0x59f69f)throw CliErrors['validation'](_0x57c651(0x147),_0x57c651(0x119)+CLI_BIN_NAME+_0x57c651(0x14d));const {buildConfigFromFlags:_0x5b26d2,resolveLocalAppAliasCode:_0x1f4544}=await import(_0x57c651(0x14c)),{readCachedAppList:_0x457538}=await import('../../commands/app/cache.js'),_0x463fcf=_0x27ebda[_0x57c651(0x130)](_0x57c651(0x126)),_0x6d9951=_0x5b26d2(_0x463fcf?{'env':_0x463fcf}:{}),_0x3081a1=_0x457538(_0x6d9951['env'],_0x6d9951[_0x57c651(0x137)]),_0xfe8bcf=_0x3081a1?.['items'][_0x57c651(0x15e)](_0x3244e7=>_0x3244e7[_0x57c651(0x154)]===_0x59f69f),_0x1686df=_0x1f4544(_0x6d9951['raw']??{},_0x59f69f);if(!_0xfe8bcf&&!_0x1686df&&_0x6d9951[_0x57c651(0x139)]!==_0x59f69f){const _0x25fea2=[..._0x3081a1?.[_0x57c651(0x159)][_0x57c651(0x111)](_0x332a0a=>_0x332a0a[_0x57c651(0x154)])??[]],_0x3841a3=_0x25fea2[_0x57c651(0x120)]===0x0?_0x57c651(0x14e)+CLI_BIN_NAME+_0x57c651(0x117)+_0x59f69f+_0x57c651(0x138):_0x57c651(0x144)+Array[_0x57c651(0x110)](new Set(_0x25fea2))[_0x57c651(0x11a)](',\x20')+_0x57c651(0x14f);throw CliErrors['validation'](_0x57c651(0x13c)+_0x59f69f+'\x22\x20not\x20found.',_0x3841a3);}const _0x2970e3=_0x27ebda[_0x57c651(0x15c)]('global');let _0x5b9860;if(_0x2970e3)_0x5b9860={'global':!![]};else{const {isInProject:_0x3921ec}=await import(_0x57c651(0x14c)),_0x2588f6=_0x3921ec();_0x5b9860=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x2588f6}));}const _0x3557c8=readConfig(_0x5b9860);return _0x3557c8[_0x57c651(0x139)]=_0x59f69f,writeConfig(_0x3557c8,_0x5b9860),{'ok':!![],'message':_0x57c651(0x114)+_0x59f69f+'\x22'+scopeLabel(_0x5b9860)+'.'};}},importDef={'service':a2_0x496a1b(0x131),'command':a2_0x496a1b(0x12c),'description':a2_0x496a1b(0x12b),'risk':a2_0x496a1b(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x195495){return await runInitImport(collectFlags(_0x195495,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a2_0x36bba5=a2_0x471b;(function(_0x3f7aa7,_0x20cd3c){const _0x33a803=a2_0x471b,_0x26abfb=_0x3f7aa7();while(!![]){try{const _0x2cdc86=-parseInt(_0x33a803(0x117))/0x1+parseInt(_0x33a803(0x121))/0x2+parseInt(_0x33a803(0x141))/0x3*(parseInt(_0x33a803(0x119))/0x4)+parseInt(_0x33a803(0x161))/0x5*(-parseInt(_0x33a803(0x14a))/0x6)+parseInt(_0x33a803(0x12d))/0x7*(parseInt(_0x33a803(0x11a))/0x8)+-parseInt(_0x33a803(0x12f))/0x9*(-parseInt(_0x33a803(0x120))/0xa)+-parseInt(_0x33a803(0x135))/0xb;if(_0x2cdc86===_0x20cd3c)break;else _0x26abfb['push'](_0x26abfb['shift']());}catch(_0x22daf7){_0x26abfb['push'](_0x26abfb['shift']());}}}(a2_0x1604,0xdd820));function a2_0x1604(){const _0x11ba97=['filter','Remote\x20app\x20name\x20to\x20activate','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','7323070OvYzak','1453698ZFcZIU','Use\x20`','enableI18n','items','Read\x20from\x20local\x20cache\x20only','defaultApp','\x20app(s)\x20for\x20env=\x22','Use\x20global\x20config\x20scope','Set\x20the\x20fallback\x20app\x20candidate','read','import','global','576751quFJIy','nonInteractive','18ROIiwg','cachePath','../../commands/app/cache.js','project-default','App\x20\x22','appcode','31667449ZrQprC','No\x20cached\x20apps\x20found.','entries','Initialize\x20','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','init','isCurrent','langs','../../commands/app/remote-source.js','source','production','../../context.js','33eTacKD','\x22\x20not\x20found.','push','join','map','appName','\x20config\x20file','accessKey','no-cache','3042708WRiuEw','boolean','bool','cache','config','mergedCli','trim','Filter\x20by\x20environment\x20(default:\x20current\x20env)','fetchedAt','str','type','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','i18nInfo','local','.appcode\x20to\x20.lovrabet.json.','\x20cached\x20app(s)\x20for\x20env=\x22','validation','args','appPublishStatus','length','appCode','string','5BrXymY','env','app','Read\x20app\x20list\x20from\x20local\x20cache\x20only','Target\x20environment\x20(default:\x20current\x20env)','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','write','Loaded\x20','Missing\x20app\x20name.','envName','503241UABZjz','\x20app\x20use\x20<name>\x20[--global]','527836oZYKIQ','112qqeHzX','Refreshed\x20app\x20cache\x20with\x20','name'];a2_0x1604=function(){return _0x11ba97;};return a2_0x1604();}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':'global','type':a2_0x36bba5(0x14b),'description':a2_0x36bba5(0x128),'default':![]};function a2_0x471b(_0x22a1b5,_0x414d48){_0x22a1b5=_0x22a1b5-0x113;const _0x1604f7=a2_0x1604();let _0x471bc1=_0x1604f7[_0x22a1b5];return _0x471bc1;}function collectFlags(_0x2f0f5c,_0x16b92d){const _0x34a577=a2_0x36bba5,_0x4de83c={};for(const _0x15e2e0 of _0x16b92d){const _0x3c8cd1=_0x15e2e0[_0x34a577(0x154)]===_0x34a577(0x14b)?_0x2f0f5c[_0x34a577(0x14c)](_0x15e2e0[_0x34a577(0x11c)]):_0x2f0f5c[_0x34a577(0x153)](_0x15e2e0[_0x34a577(0x11c)]);if(_0x3c8cd1!==''&&_0x3c8cd1!==![])_0x4de83c[_0x15e2e0[_0x34a577(0x11c)]]=_0x3c8cd1;}if(_0x2f0f5c[_0x34a577(0x12e)])_0x4de83c[_0x34a577(0x12e)]=!![];return _0x4de83c;}function normalizeLanguages(_0x619881){const _0x165603=a2_0x36bba5;if(!Array['isArray'](_0x619881))return[];return _0x619881['filter'](_0x5e62ff=>typeof _0x5e62ff===_0x165603(0x160))[_0x165603(0x145)](_0x15fd10=>_0x15fd10[_0x165603(0x150)]())[_0x165603(0x11d)](Boolean);}function buildRemoteAppI18nFields(_0x1d627b){const _0x145a2b=a2_0x36bba5,_0x56bf57=normalizeLanguages(_0x1d627b[_0x145a2b(0x157)]?.[_0x145a2b(0x13c)]);return{'enableI18n':typeof _0x1d627b[_0x145a2b(0x123)]===_0x145a2b(0x14b)?_0x1d627b[_0x145a2b(0x123)]:null,'languages':_0x56bf57,'i18nInfo':_0x1d627b[_0x145a2b(0x157)]?{..._0x1d627b[_0x145a2b(0x157)],'langs':_0x56bf57['length']?_0x56bf57:null}:null};}const initDef={'service':a2_0x36bba5(0x163),'command':a2_0x36bba5(0x13a),'description':a2_0x36bba5(0x138)+PRODUCT_CONFIG['newConfigFileName']+a2_0x36bba5(0x147),'risk':a2_0x36bba5(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x23bce9){return await runInit(collectFlags(_0x23bce9,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':'list','description':a2_0x36bba5(0x166),'risk':a2_0x36bba5(0x12a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x36bba5(0x162),'type':a2_0x36bba5(0x160),'description':a2_0x36bba5(0x151),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x36bba5(0x158),'type':a2_0x36bba5(0x14b),'description':a2_0x36bba5(0x164),'default':![]},{'name':a2_0x36bba5(0x149),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x241035){const _0x4ff5de=a2_0x36bba5,_0x58c472=_0x241035['str'](_0x4ff5de(0x162))||_0x241035[_0x4ff5de(0x116)]||getEnv()||_0x4ff5de(0x13f),_0x4847ff=_0x241035[_0x4ff5de(0x14c)]('local'),_0x5d337c=_0x241035[_0x4ff5de(0x14c)](_0x4ff5de(0x149)),{readRawConfigWithLayers:_0x3d32ae,resolveDefaultAppSource:_0x2147fe,getLocalAppAliases:_0x4f819e}=await import(_0x4ff5de(0x140)),{getRemoteAppList:_0x5338f6}=await import(_0x4ff5de(0x13d)),{config:_0x5a83f3,layers:_0x463d50}=_0x3d32ae(),_0x3d9242=_0x2147fe(_0x463d50),{defaultApp:_0x15387e}=_0x5a83f3,_0x4a5b78=await _0x5338f6({'env':_0x58c472,'accessKey':_0x241035[_0x4ff5de(0x148)],'localOnly':_0x4847ff,'noCache':_0x5d337c}),_0x3e079a=_0x4a5b78[_0x4ff5de(0x124)][_0x4ff5de(0x145)](_0x4311d1=>{const _0x3f2411=_0x4ff5de;return{'name':_0x4311d1[_0x3f2411(0x146)],'appcode':_0x4311d1[_0x3f2411(0x15f)],'named':!![],'definedIn':'remote','isDefault':_0x4311d1[_0x3f2411(0x146)]===_0x15387e,...buildAppProfileListFields(_0x58c472),...buildRemoteAppI18nFields(_0x4311d1),'source':_0x4a5b78[_0x3f2411(0x13e)],'owner':_0x4311d1['appOwnerName']??null,'status':_0x4311d1[_0x3f2411(0x15d)]??null,'cachedAt':_0x4a5b78[_0x3f2411(0x152)]};}),_0x5afae9=_0x4f819e(_0x5a83f3);let _0x1b1f59=0x0;for(const [_0x256c53,_0x547233]of Object[_0x4ff5de(0x137)](_0x5afae9)){const _0x5453fb=typeof _0x547233[_0x4ff5de(0x134)]==='string'?_0x547233[_0x4ff5de(0x134)]['trim']():'';if(!_0x5453fb)continue;_0x1b1f59+=0x1,_0x3e079a[_0x4ff5de(0x143)]({'name':_0x256c53,'appcode':_0x5453fb,'named':!![],'definedIn':_0x4ff5de(0x158),'isDefault':_0x256c53===_0x15387e,...buildAppProfileListFields(_0x58c472),'source':_0x4ff5de(0x14e),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x3e079a,_0x241035[_0x4ff5de(0x14f)]);if(_0x3e079a['length']===0x0)return{'ok':!![],'data':[],'message':_0x4a5b78[_0x4ff5de(0x13e)]===_0x4ff5de(0x14d)?_0x4ff5de(0x136):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x2030b2=_0x3e079a['find'](_0x16413e=>_0x16413e[_0x4ff5de(0x13b)]===!![]),_0x52cc88=_0x15387e??_0x2030b2?.[_0x4ff5de(0x11c)]??null,_0x390e4f={'env':_0x58c472,'source':_0x4a5b78[_0x4ff5de(0x13e)],'fetchedAt':_0x4a5b78[_0x4ff5de(0x152)],'cachePath':_0x4a5b78[_0x4ff5de(0x130)],'globalPath':_0x463d50['globalPath']??null,'projectPath':_0x463d50['projectPath']??null,'defaultApp':_0x52cc88,'defaultAppSource':_0x15387e!=null?_0x3d9242:null,'localAliasCount':_0x1b1f59};return{'ok':!![],'data':{'items':_0x3e079a,'meta':_0x390e4f}};}},pullDef={'service':a2_0x36bba5(0x163),'command':'pull','description':a2_0x36bba5(0x139),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':'string','description':a2_0x36bba5(0x165),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a2_0x36bba5(0x14b),'description':a2_0x36bba5(0x125),'default':![]},{'name':a2_0x36bba5(0x149),'type':a2_0x36bba5(0x14b),'description':a2_0x36bba5(0x11f),'default':![]}],async 'execute'(_0xf242d6){const _0x23f9bf=a2_0x36bba5,_0x1cb7dc=_0xf242d6[_0x23f9bf(0x153)](_0x23f9bf(0x162))||_0xf242d6[_0x23f9bf(0x116)]||getEnv()||_0x23f9bf(0x13f),_0x345949=_0xf242d6[_0x23f9bf(0x14c)]('local'),_0xf35789=_0xf242d6[_0x23f9bf(0x14c)](_0x23f9bf(0x149)),{getRemoteAppList:_0x11a240}=await import('../../commands/app/remote-source.js'),_0x5ec276=await _0x11a240({'env':_0x1cb7dc,'accessKey':_0xf242d6[_0x23f9bf(0x148)],'localOnly':_0x345949,'noCache':_0xf35789});return{'ok':!![],'data':{'total':_0x5ec276[_0x23f9bf(0x124)][_0x23f9bf(0x15e)],'env':_0x1cb7dc,'source':_0x5ec276['source'],'fetchedAt':_0x5ec276[_0x23f9bf(0x152)],'cachePath':_0x5ec276['cachePath']},'message':_0x5ec276[_0x23f9bf(0x13e)]===_0x23f9bf(0x14d)?_0x23f9bf(0x114)+_0x5ec276['items'][_0x23f9bf(0x15e)]+_0x23f9bf(0x15a)+_0x1cb7dc+'\x22.':_0x23f9bf(0x11b)+_0x5ec276[_0x23f9bf(0x124)][_0x23f9bf(0x15e)]+_0x23f9bf(0x127)+_0x1cb7dc+'\x22.'};}},useDef={'service':'app','command':'use','description':a2_0x36bba5(0x129),'risk':a2_0x36bba5(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x36bba5(0x11c),'description':a2_0x36bba5(0x11e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x14e4a3){const _0x1274c2=a2_0x36bba5;if(!_0x14e4a3[_0x1274c2(0x15c)][0x0])throw CliErrors[_0x1274c2(0x15b)](_0x1274c2(0x115),'Usage:\x20'+CLI_BIN_NAME+_0x1274c2(0x118));},async 'execute'(_0x52cf88){const _0x5ad727=a2_0x36bba5,_0x1896bc=_0x52cf88['args'][0x0];if(!_0x1896bc)throw CliErrors['validation'](_0x5ad727(0x115),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x42fbb3,resolveLocalAppAliasCode:_0x408d8c}=await import(_0x5ad727(0x140)),{readCachedAppList:_0x2d9036}=await import(_0x5ad727(0x131)),_0x32e1fb=_0x52cf88[_0x5ad727(0x153)](_0x5ad727(0x162)),_0x45d490=_0x42fbb3(_0x32e1fb?{'env':_0x32e1fb}:{}),_0x1fac56=_0x2d9036(_0x45d490[_0x5ad727(0x162)],_0x45d490[_0x5ad727(0x148)]),_0x5ebcf9=_0x1fac56?.[_0x5ad727(0x124)]['find'](_0x718e78=>_0x718e78[_0x5ad727(0x146)]===_0x1896bc),_0x475817=_0x408d8c(_0x45d490['raw']??{},_0x1896bc);if(!_0x5ebcf9&&!_0x475817&&_0x45d490[_0x5ad727(0x126)]!==_0x1896bc){const _0x5a1fe2=[..._0x1fac56?.[_0x5ad727(0x124)][_0x5ad727(0x145)](_0x25b91a=>_0x25b91a[_0x5ad727(0x146)])??[]],_0x4dca80=_0x5a1fe2[_0x5ad727(0x15e)]===0x0?_0x5ad727(0x122)+CLI_BIN_NAME+_0x5ad727(0x156)+_0x1896bc+_0x5ad727(0x159):'Available\x20remote\x20apps:\x20'+Array['from'](new Set(_0x5a1fe2))[_0x5ad727(0x144)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x5ad727(0x15b)](_0x5ad727(0x133)+_0x1896bc+_0x5ad727(0x142),_0x4dca80);}const _0x4c6447=_0x52cf88[_0x5ad727(0x14c)](_0x5ad727(0x12c));let _0x1ba403;if(_0x4c6447)_0x1ba403={'global':!![]};else{const {isInProject:_0x4032a5}=await import(_0x5ad727(0x140)),_0x19ef9d=_0x4032a5();_0x1ba403=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x5ad727(0x132),'inProject':_0x19ef9d}));}const _0x5a1b60=readConfig(_0x1ba403);return _0x5a1b60[_0x5ad727(0x126)]=_0x1896bc,writeConfig(_0x5a1b60,_0x1ba403),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x1896bc+'\x22'+scopeLabel(_0x1ba403)+'.'};}},importDef={'service':a2_0x36bba5(0x163),'command':a2_0x36bba5(0x12b),'description':a2_0x36bba5(0x155),'risk':a2_0x36bba5(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x33a115){return await runInitImport(collectFlags(_0x33a115,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x2a69a7,_0x3e92fd){const _0x46281f=a3_0x4eeb,_0x5682b0=_0x2a69a7();while(!![]){try{const _0xd1512d=-parseInt(_0x46281f(0xe2))/0x1*(-parseInt(_0x46281f(0xdd))/0x2)+-parseInt(_0x46281f(0xd4))/0x3+-parseInt(_0x46281f(0xd7))/0x4+parseInt(_0x46281f(0xde))/0x5*(parseInt(_0x46281f(0xdb))/0x6)+-parseInt(_0x46281f(0xe0))/0x7+parseInt(_0x46281f(0xdc))/0x8+parseInt(_0x46281f(0xd2))/0x9;if(_0xd1512d===_0x3e92fd)break;else _0x5682b0['push'](_0x5682b0['shift']());}catch(_0x4ac703){_0x5682b0['push'](_0x5682b0['shift']());}}}(a3_0x43a3,0xc9dc1));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a3_0x43a3(){const _0x3321a2=['2309244hMARgp','Mock\x20API\x20error:\x20','errorCode','2656560BdWlod','parse','data','tableData','645234DTSAvC','10036760gatlEd','3522FZDunu','10NchrcU','utf-8','7448504uoUZET','../../../mock/app-list.json','827jfjUxw','3588813eAIYpR','success'];a3_0x43a3=function(){return _0x3321a2;};return a3_0x43a3();}function loadMockAppList(){const _0x133c07=a3_0x4eeb,_0xb47faf=join(__dirname,_0x133c07(0xe1)),_0x47c72c=readFileSync(_0xb47faf,_0x133c07(0xdf));return JSON[_0x133c07(0xd8)](_0x47c72c);}function a3_0x4eeb(_0x2f6f27,_0x11ba44){_0x2f6f27=_0x2f6f27-0xd2;const _0x43a347=a3_0x43a3();let _0x4eebef=_0x43a347[_0x2f6f27];return _0x4eebef;}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5e427e=a3_0x4eeb,_0x388618=getMockAppList();if(!_0x388618[_0x5e427e(0xd3)])throw new Error(_0x5e427e(0xd5)+_0x388618['errorMsg']+'\x20('+_0x388618[_0x5e427e(0xd6)]+')');return _0x388618[_0x5e427e(0xd9)][_0x5e427e(0xda)];}
1
+ (function(_0x39ef35,_0x46187c){const _0xa9feb6=a3_0x35e9,_0x5eccf6=_0x39ef35();while(!![]){try{const _0x3f8bcd=parseInt(_0xa9feb6(0x1b3))/0x1*(-parseInt(_0xa9feb6(0x1b4))/0x2)+parseInt(_0xa9feb6(0x1b9))/0x3+-parseInt(_0xa9feb6(0x1b2))/0x4+parseInt(_0xa9feb6(0x1b7))/0x5+-parseInt(_0xa9feb6(0x1ac))/0x6*(parseInt(_0xa9feb6(0x1ae))/0x7)+parseInt(_0xa9feb6(0x1b1))/0x8*(parseInt(_0xa9feb6(0x1ad))/0x9)+parseInt(_0xa9feb6(0x1ab))/0xa;if(_0x3f8bcd===_0x46187c)break;else _0x5eccf6['push'](_0x5eccf6['shift']());}catch(_0x5d7d61){_0x5eccf6['push'](_0x5eccf6['shift']());}}}(a3_0xe1b8,0x493c1));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x156a82=a3_0x35e9,_0x24f186=join(__dirname,_0x156a82(0x1aa)),_0x4f264d=readFileSync(_0x24f186,_0x156a82(0x1af));return JSON['parse'](_0x4f264d);}function a3_0x35e9(_0x2f0121,_0x1676e4){_0x2f0121=_0x2f0121-0x1a9;const _0xe1b86f=a3_0xe1b8();let _0x35e9b3=_0xe1b86f[_0x2f0121];return _0x35e9b3;}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x191343=a3_0x35e9,_0x1a9665=getMockAppList();if(!_0x1a9665[_0x191343(0x1a9)])throw new Error(_0x191343(0x1b0)+_0x1a9665[_0x191343(0x1b6)]+'\x20('+_0x1a9665[_0x191343(0x1b5)]+')');return _0x1a9665[_0x191343(0x1b8)]['tableData'];}function a3_0xe1b8(){const _0x37a2fd=['1036539RQhmUd','utf-8','Mock\x20API\x20error:\x20','64WOYDpm','1504892UZBKay','11PRwPvZ','64986JoeKtW','errorCode','errorMsg','2911105SnwFle','data','1586838npbKAJ','success','../../../mock/app-list.json','718150rOuuAp','18CclksA','331722GkQqkI'];a3_0xe1b8=function(){return _0x37a2fd;};return a3_0xe1b8();}
@@ -1 +1 @@
1
- (function(_0x46ecfd,_0x2b64b6){const _0x56fee8=a4_0x5dd2,_0x4e52d6=_0x46ecfd();while(!![]){try{const _0x22d678=-parseInt(_0x56fee8(0x1dd))/0x1+-parseInt(_0x56fee8(0x1de))/0x2+parseInt(_0x56fee8(0x1d3))/0x3*(parseInt(_0x56fee8(0x1d8))/0x4)+-parseInt(_0x56fee8(0x1d7))/0x5*(-parseInt(_0x56fee8(0x1d5))/0x6)+-parseInt(_0x56fee8(0x1d9))/0x7+-parseInt(_0x56fee8(0x1d6))/0x8*(-parseInt(_0x56fee8(0x1da))/0x9)+parseInt(_0x56fee8(0x1e1))/0xa;if(_0x22d678===_0x2b64b6)break;else _0x4e52d6['push'](_0x4e52d6['shift']());}catch(_0x33bda4){_0x4e52d6['push'](_0x4e52d6['shift']());}}}(a4_0x5a40,0x52431));import{getMyApps}from'../../core/api-client.js';function a4_0x5a40(){const _0x2f904d=['cache','mock','267017ZmyYaV','416762uQtUUi','toLowerCase','remote','1312810WVHtbX','fetchedAt','items','trim','629745RsPvdQ','APP_LIST_SOURCE','18792TQLJWX','8xFcdWF','445SexkFg','8UseuTg','4347252UgLGva','5431680pPWFAf'];a4_0x5a40=function(){return _0x2f904d;};return a4_0x5a40();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a4_0x5dd2(_0x8bc4a0,_0x9369c5){_0x8bc4a0=_0x8bc4a0-0x1d3;const _0x5a408a=a4_0x5a40();let _0x5dd2b=_0x5a408a[_0x8bc4a0];return _0x5dd2b;}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x2d2576=a4_0x5dd2,_0x5a3f2c=(productEnv(_0x2d2576(0x1d4))||'')[_0x2d2576(0x1e4)]()[_0x2d2576(0x1df)]();return _0x5a3f2c===_0x2d2576(0x1dc);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x3ea454){const _0x544461=a4_0x5dd2,{env:_0x226699,accessKey:_0x5d61ed,localOnly:localOnly=![],noCache:noCache=![]}=_0x3ea454,_0x50d581=readCachedAppList(_0x226699,_0x5d61ed),_0x22db40=_0x5d61ed?.[_0x544461(0x1e4)]()?getAppCacheFilePath(_0x226699,_0x5d61ed):null;if(localOnly)return{'items':_0x50d581?.[_0x544461(0x1e3)]??[],'source':_0x544461(0x1db),'fetchedAt':_0x50d581?.[_0x544461(0x1e2)]??null,'cachePath':_0x22db40};try{const _0x30b312=await getRemoteAppItems(),_0x2c708c=shouldUseMockRemoteApps()?_0x544461(0x1dc):_0x544461(0x1e0),_0x49938c=new Date()['toISOString'](),_0x49dff1=_0x5d61ed?.[_0x544461(0x1e4)]()?writeCachedAppList(_0x226699,_0x5d61ed,{'env':_0x226699,'fetchedAt':_0x49938c,'source':_0x2c708c,'items':_0x30b312}):null;return{'items':_0x30b312,'source':_0x2c708c,'fetchedAt':_0x49938c,'cachePath':_0x49dff1};}catch(_0x3be0a6){if(!noCache&&_0x50d581)return{'items':_0x50d581[_0x544461(0x1e3)],'source':'cache','fetchedAt':_0x50d581[_0x544461(0x1e2)],'cachePath':_0x22db40};throw _0x3be0a6;}}
1
+ (function(_0x592471,_0xec5b5d){const _0x4c2852=a4_0x5e06,_0x23525c=_0x592471();while(!![]){try{const _0x9bf2c4=parseInt(_0x4c2852(0x1af))/0x1+parseInt(_0x4c2852(0x1a9))/0x2+-parseInt(_0x4c2852(0x1a7))/0x3+-parseInt(_0x4c2852(0x1ab))/0x4+parseInt(_0x4c2852(0x1ae))/0x5*(-parseInt(_0x4c2852(0x1aa))/0x6)+parseInt(_0x4c2852(0x1ad))/0x7*(parseInt(_0x4c2852(0x1a5))/0x8)+parseInt(_0x4c2852(0x1b2))/0x9*(parseInt(_0x4c2852(0x1b0))/0xa);if(_0x9bf2c4===_0xec5b5d)break;else _0x23525c['push'](_0x23525c['shift']());}catch(_0x2245fa){_0x23525c['push'](_0x23525c['shift']());}}}(a4_0x5edc,0x345f9));import{getMyApps}from'../../core/api-client.js';function a4_0x5edc(){const _0x492cff=['trim','72lyAUDN','cache','315648HxiQXZ','toISOString','310Rqimzs','264UQAOiS','1497272pXEret','fetchedAt','202272YFxhNh','45090DgqYsw','14694dFiRSt','60degLes','mock','1223901YYcLtZ'];a4_0x5edc=function(){return _0x492cff;};return a4_0x5edc();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a4_0x5e06(_0x1e9841,_0x10a80c){_0x1e9841=_0x1e9841-0x1a4;const _0x5edc1e=a4_0x5edc();let _0x5e0689=_0x5edc1e[_0x1e9841];return _0x5e0689;}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x3dcf43=a4_0x5e06,_0x5c4719=(productEnv('APP_LIST_SOURCE')||'')[_0x3dcf43(0x1a4)]()['toLowerCase']();return _0x5c4719===_0x3dcf43(0x1b1);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x52cfa5){const _0x2e7e52=a4_0x5e06,{env:_0xcf0be,accessKey:_0x4a82b5,localOnly:localOnly=![],noCache:noCache=![]}=_0x52cfa5,_0x95c26b=readCachedAppList(_0xcf0be,_0x4a82b5),_0x543efb=_0x4a82b5?.[_0x2e7e52(0x1a4)]()?getAppCacheFilePath(_0xcf0be,_0x4a82b5):null;if(localOnly)return{'items':_0x95c26b?.['items']??[],'source':_0x2e7e52(0x1a6),'fetchedAt':_0x95c26b?.[_0x2e7e52(0x1ac)]??null,'cachePath':_0x543efb};try{const _0x41de00=await getRemoteAppItems(),_0x43e123=shouldUseMockRemoteApps()?_0x2e7e52(0x1b1):'remote',_0x2c2c34=new Date()[_0x2e7e52(0x1a8)](),_0x596325=_0x4a82b5?.[_0x2e7e52(0x1a4)]()?writeCachedAppList(_0xcf0be,_0x4a82b5,{'env':_0xcf0be,'fetchedAt':_0x2c2c34,'source':_0x43e123,'items':_0x41de00}):null;return{'items':_0x41de00,'source':_0x43e123,'fetchedAt':_0x2c2c34,'cachePath':_0x596325};}catch(_0x35d665){if(!noCache&&_0x95c26b)return{'items':_0x95c26b['items'],'source':_0x2e7e52(0x1a6),'fetchedAt':_0x95c26b[_0x2e7e52(0x1ac)],'cachePath':_0x543efb};throw _0x35d665;}}
@@ -1 +1 @@
1
- (function(_0x5c8db5,_0x9e53e8){const _0x1c498a=a5_0x4143,_0x419f7b=_0x5c8db5();while(!![]){try{const _0x3b0994=-parseInt(_0x1c498a(0x1c0))/0x1*(-parseInt(_0x1c498a(0x1c6))/0x2)+parseInt(_0x1c498a(0x1b4))/0x3*(-parseInt(_0x1c498a(0x1b8))/0x4)+parseInt(_0x1c498a(0x1c5))/0x5+-parseInt(_0x1c498a(0x1ba))/0x6+-parseInt(_0x1c498a(0x1ca))/0x7*(-parseInt(_0x1c498a(0x1be))/0x8)+parseInt(_0x1c498a(0x1c4))/0x9*(parseInt(_0x1c498a(0x1c1))/0xa)+parseInt(_0x1c498a(0x1b6))/0xb*(-parseInt(_0x1c498a(0x1b7))/0xc);if(_0x3b0994===_0x9e53e8)break;else _0x419f7b['push'](_0x419f7b['shift']());}catch(_0xafa7aa){_0x419f7b['push'](_0x419f7b['shift']());}}}(a5_0x3593,0x439b8));import{CLI_BIN_NAME}from'../../constant/cli.js';function a5_0x3593(){const _0x167054=['find','40AYIHJi','definedIn','4694jrIjsW','5250370DbNPVU','name','defaultApp','9DEPhYH','1850950WmwwVy','62UecplW','global','named','trim','276437ZQPFex','312SGnJTe','isCurrent','1287JehUgR','66156HvepRW','2584HSKRac','currentApp','1494426BzwpmY','appcode','appCode'];a5_0x3593=function(){return _0x167054;};return a5_0x3593();}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x2df8c9,_0x603aaf){const _0x3a0e5a=a5_0x4143;if(!_0x603aaf)return;const _0x4db433=!!(_0x603aaf[_0x3a0e5a(0x1b9)]??_0x603aaf[_0x3a0e5a(0x1c3)]);for(const _0x441ebf of _0x2df8c9){_0x441ebf[_0x3a0e5a(0x1b5)]=![];}const _0x47f01f=_0x603aaf[_0x3a0e5a(0x1bc)]!=null?String(_0x603aaf[_0x3a0e5a(0x1bc)])[_0x3a0e5a(0x1c9)]():'';if(_0x4db433){const _0x337929=_0x603aaf['currentApp']??_0x603aaf['defaultApp'];if(_0x337929){const _0x39814b=_0x2df8c9[_0x3a0e5a(0x1bd)](_0x4821d6=>_0x4821d6[_0x3a0e5a(0x1c8)]===!![]&&_0x4821d6[_0x3a0e5a(0x1c2)]===_0x337929&&_0x4821d6[_0x3a0e5a(0x1bf)]==='local'),_0x4def98=_0x39814b??_0x2df8c9['find'](_0x4c29e4=>_0x4c29e4[_0x3a0e5a(0x1c8)]===!![]&&_0x4c29e4['name']===_0x337929);_0x4def98&&(_0x4def98[_0x3a0e5a(0x1b5)]=!![]);}return;}if(!_0x47f01f)return;for(const _0x144fd5 of _0x2df8c9){String(_0x144fd5[_0x3a0e5a(0x1bb)]??'')[_0x3a0e5a(0x1c9)]()===_0x47f01f&&(_0x144fd5['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a5_0x4143(_0x56a895,_0xeeb4e4){_0x56a895=_0x56a895-0x1b4;const _0x35931f=a5_0x3593();let _0x414317=_0x35931f[_0x56a895];return _0x414317;}export function scopeLabel(_0x24c8ad){const _0x212aeb=a5_0x4143;return formatScopeLabel(_0x24c8ad[_0x212aeb(0x1c7)]?_0x212aeb(0x1c7):'project');}
1
+ (function(_0x386e20,_0x34aa4a){const _0x3527fb=a5_0xb367,_0x4f9560=_0x386e20();while(!![]){try{const _0x5235af=parseInt(_0x3527fb(0xf8))/0x1*(parseInt(_0x3527fb(0xf0))/0x2)+-parseInt(_0x3527fb(0xe8))/0x3+parseInt(_0x3527fb(0xed))/0x4*(parseInt(_0x3527fb(0xea))/0x5)+-parseInt(_0x3527fb(0xe7))/0x6+-parseInt(_0x3527fb(0xf5))/0x7*(-parseInt(_0x3527fb(0xf2))/0x8)+-parseInt(_0x3527fb(0xe5))/0x9+parseInt(_0x3527fb(0xe9))/0xa*(parseInt(_0x3527fb(0xee))/0xb);if(_0x5235af===_0x34aa4a)break;else _0x4f9560['push'](_0x4f9560['shift']());}catch(_0x946e2f){_0x4f9560['push'](_0x4f9560['shift']());}}}(a5_0xc325,0x723b5));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0xc325(){const _0x366f41=['appCode','69456wsiRVO','defaultApp','named','28JqABeB','global','definedIn','5243ktcZTW','trim','isCurrent','3440628oaNrzp','find','3377220lUzlpS','2267703NYoTQG','15443690bMyohm','65540ywoQYN','currentApp','local','172gCuMYS','11nIESJu','project','10sqrUta'];a5_0xc325=function(){return _0x366f41;};return a5_0xc325();}export function enrichAppListItemsWithMergedSelection(_0x2842f8,_0x539bc9){const _0x3b880f=a5_0xb367;if(!_0x539bc9)return;const _0x31e411=!!(_0x539bc9[_0x3b880f(0xeb)]??_0x539bc9[_0x3b880f(0xf3)]);for(const _0x441724 of _0x2842f8){_0x441724[_0x3b880f(0xfa)]=![];}const _0x210ee3=_0x539bc9[_0x3b880f(0xf1)]!=null?String(_0x539bc9[_0x3b880f(0xf1)])[_0x3b880f(0xf9)]():'';if(_0x31e411){const _0x3cab97=_0x539bc9[_0x3b880f(0xeb)]??_0x539bc9[_0x3b880f(0xf3)];if(_0x3cab97){const _0x70d71b=_0x2842f8[_0x3b880f(0xe6)](_0x4af642=>_0x4af642['named']===!![]&&_0x4af642['name']===_0x3cab97&&_0x4af642[_0x3b880f(0xf7)]===_0x3b880f(0xec)),_0x28dd3f=_0x70d71b??_0x2842f8['find'](_0x55a6ea=>_0x55a6ea[_0x3b880f(0xf4)]===!![]&&_0x55a6ea['name']===_0x3cab97);_0x28dd3f&&(_0x28dd3f[_0x3b880f(0xfa)]=!![]);}return;}if(!_0x210ee3)return;for(const _0x4a0242 of _0x2842f8){String(_0x4a0242['appcode']??'')['trim']()===_0x210ee3&&(_0x4a0242[_0x3b880f(0xfa)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a5_0xb367(_0x164a04,_0x8818bd){_0x164a04=_0x164a04-0xe5;const _0xc32522=a5_0xc325();let _0xb36759=_0xc32522[_0x164a04];return _0xb36759;}export function scopeLabel(_0x2559cd){const _0x1fe1fd=a5_0xb367;return formatScopeLabel(_0x2559cd[_0x1fe1fd(0xf6)]?_0x1fe1fd(0xf6):_0x1fe1fd(0xef));}
@@ -1 +1 @@
1
- function a6_0x3178(_0x520b60,_0x44dd91){_0x520b60=_0x520b60-0x146;const _0x386ffc=a6_0x386f();let _0x317893=_0x386ffc[_0x520b60];return _0x317893;}const a6_0x196d90=a6_0x3178;(function(_0x4484c9,_0x7a5168){const _0x165a2b=a6_0x3178,_0x180362=_0x4484c9();while(!![]){try{const _0x4d4c97=parseInt(_0x165a2b(0x148))/0x1+-parseInt(_0x165a2b(0x15b))/0x2*(parseInt(_0x165a2b(0x17f))/0x3)+-parseInt(_0x165a2b(0x168))/0x4+parseInt(_0x165a2b(0x154))/0x5+parseInt(_0x165a2b(0x194))/0x6+parseInt(_0x165a2b(0x147))/0x7*(parseInt(_0x165a2b(0x15f))/0x8)+-parseInt(_0x165a2b(0x16d))/0x9;if(_0x4d4c97===_0x7a5168)break;else _0x180362['push'](_0x180362['shift']());}catch(_0x2ce86b){_0x180362['push'](_0x180362['shift']());}}}(a6_0x386f,0xb8a6c));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x386f(){const _0x11348b=['\x20config.','length','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','env','cancelled','Shorthand\x20for\x20--access-key','global','info','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','yes','Show\x20current\x20authentication\x20status','\x20config.\x20Nothing\x20to\x20clear.','str','78681BXBoJC','=ak_xxx','Use\x20`','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Current\x20env:\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Then\x20verify\x20with:\x20','Clear\x20from\x20global\x20config\x20(default)','\x20env\x20var','ClientAk','string','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Write\x20to\x20global\x20config\x20(default)','auth','repeat','access-key','validation','AccessKey:\x20','envName','bool','write','5781120awMjfs','logout','Tip:\x20you\x20can\x20also\x20run:','trim','daily','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','14QdtJak','895550rzfpvu','`auth\x20login`\x20does\x20not\x20support\x20--yes.','userCenterDisplayName','init','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','global-default','slice','push','read','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','\x20Verify:\x20','2928060ICPtWF','production','Missing\x20accessKey.','AccessKey\x20(ak_xxx...)','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','test','Option\x20C:\x20environment\x20variable','44CPGkkI','AccessKey\x20cleared\x20from\x20','Auth\x20config\x20reinitialized\x20in\x20','Auth\x20mode:\x20','1914064qxPuXU','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','\x20auth\x20status','project','status','accessKey','boolean','\x20auth\x20login\x20--access-key\x20<ak_xxx>','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','1752804bsaTVI','Invalid\x20accessKey\x20format:\x20\x22','login','isTTY','nonInteractive','10365039ZWFMvT','Clear\x20accessKey\x20from\x20config'];a6_0x386f=function(){return _0x11348b;};return a6_0x386f();}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 showAccessKeyCreateHint(){const _0x1133fe=a6_0x3178;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1133fe(0x14a)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x1133fe(0x196)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x1133fe(0x166));}function buildAccessKeySetupGuide(){const _0x3e049e=a6_0x3178;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x3e049e(0x14a)]+':',USER_ACCESS_KEY_CREATE_URL,_0x3e049e(0x18a)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x27f2bf){const _0x1b9e94=a6_0x3178;return!_0x27f2bf[_0x1b9e94(0x16c)]&&process['stdin']['isTTY']!==![]&&process['stdout'][_0x1b9e94(0x16b)]!==![];}function resolveAuthScopeFlags(_0x5edcb9){const _0xac824c=a6_0x3178;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5edcb9[_0xac824c(0x192)]('global'),'explicitProject':_0x5edcb9['bool'](_0xac824c(0x162)),'policy':_0xac824c(0x14d)}));}async function resolveAuthWriteInput(_0x36dd8d){const _0x40c46b=a6_0x3178;let _0x4d7149=(_0x36dd8d[_0x40c46b(0x17e)](_0x40c46b(0x18e))||_0x36dd8d[_0x40c46b(0x17e)]('ak')||'')['trim']();const _0x4db497=(_0x36dd8d[_0x40c46b(0x17e)](_0x40c46b(0x173))||'')[_0x40c46b(0x197)]();if(!_0x4d7149&&canPromptForAccessKey(_0x36dd8d))try{showAccessKeyCreateHint(),_0x4d7149=await promptAccessKey('');}catch(_0x30c232){if(isAbortPrompt(_0x30c232))throw CliErrors[_0x40c46b(0x174)]();throw _0x30c232;}if(!_0x4d7149)throw CliErrors[_0x40c46b(0x18f)](_0x40c46b(0x156),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x40c46b(0x159)](_0x4d7149))throw CliErrors[_0x40c46b(0x18f)](_0x40c46b(0x169)+_0x4d7149+'\x22',_0x40c46b(0x184));if(!_0x4db497)return{'accessKey':_0x4d7149};const _0x38bd6b=normalizeEnv(_0x4db497);return{'accessKey':_0x4d7149,'env':isDaily(_0x38bd6b)?_0x40c46b(0x198):isDev(_0x38bd6b)?'development':'production'};}export const authDefinitions=[{'service':'auth','command':a6_0x196d90(0x16a),'description':a6_0x196d90(0x14c),'risk':a6_0x196d90(0x193),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x196d90(0x18e),'type':a6_0x196d90(0x189),'description':a6_0x196d90(0x157)},{'name':'ak','type':a6_0x196d90(0x189),'description':a6_0x196d90(0x175)},{'name':a6_0x196d90(0x176),'type':a6_0x196d90(0x165),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a6_0x196d90(0x172),'default':![]}],async 'execute'(_0x4d2861){const _0x32a679=a6_0x196d90;if(_0x4d2861['bool'](_0x32a679(0x17b)))throw CliErrors['validation'](_0x32a679(0x149),_0x32a679(0x181)+CLI_BIN_NAME+_0x32a679(0x178)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x11f9dc=(_0x4d2861[_0x32a679(0x17e)](_0x32a679(0x18e))||_0x4d2861[_0x32a679(0x17e)]('ak')||'')[_0x32a679(0x197)]();if(!_0x11f9dc&&_0x4d2861[_0x32a679(0x16c)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x362b66=await resolveAuthWriteInput(_0x4d2861),_0x36d3c0=resolveAuthScopeFlags(_0x4d2861),_0x299ae7=readScopedConfig(_0x36d3c0);_0x299ae7[_0x32a679(0x164)]=_0x362b66[_0x32a679(0x164)];_0x362b66['env']&&(_0x299ae7[_0x32a679(0x173)]=_0x362b66[_0x32a679(0x173)]);writeScopedConfig(_0x299ae7,_0x36d3c0);const _0x47c191=_0x36d3c0[_0x32a679(0x176)]?_0x32a679(0x176):'project',_0x18e01d=_0x299ae7[_0x32a679(0x173)]?'\x20Current\x20env:\x20'+_0x299ae7['env']+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x47c191+_0x32a679(0x16f)+_0x18e01d+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x196d90(0x18c),'command':a6_0x196d90(0x14b),'description':a6_0x196d90(0x158),'risk':a6_0x196d90(0x193),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x196d90(0x18e),'type':a6_0x196d90(0x189),'description':a6_0x196d90(0x157)},{'name':'ak','type':a6_0x196d90(0x189),'description':a6_0x196d90(0x175)},{'name':a6_0x196d90(0x173),'type':a6_0x196d90(0x189),'description':a6_0x196d90(0x171)},{'name':'global','type':'boolean','description':a6_0x196d90(0x18b),'default':!![]},{'name':'project','type':'boolean','description':a6_0x196d90(0x172),'default':![]}],async 'execute'(_0x22abbf){const _0xf81631=a6_0x196d90,_0x23acab=await resolveAuthWriteInput(_0x22abbf),_0x2cb17d=resolveAuthScopeFlags(_0x22abbf),_0x495826={'accessKey':_0x23acab[_0xf81631(0x164)]};_0x23acab[_0xf81631(0x173)]&&(_0x495826[_0xf81631(0x173)]=_0x23acab[_0xf81631(0x173)]);writeScopedConfig(_0x495826,_0x2cb17d);const _0x173984=_0x2cb17d[_0xf81631(0x176)]?_0xf81631(0x176):'project',_0x405d10=_0x495826[_0xf81631(0x173)]?_0xf81631(0x183)+_0x495826[_0xf81631(0x173)]+'.':'';return{'ok':!![],'message':_0xf81631(0x15d)+_0x173984+'\x20scope.'+_0x405d10+_0xf81631(0x153)+CLI_BIN_NAME+_0xf81631(0x161)};}},{'service':a6_0x196d90(0x18c),'command':a6_0x196d90(0x195),'description':a6_0x196d90(0x16e),'risk':a6_0x196d90(0x193),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x196d90(0x176),'type':a6_0x196d90(0x165),'description':a6_0x196d90(0x186),'default':!![]},{'name':'project','type':a6_0x196d90(0x165),'description':a6_0x196d90(0x182),'default':![]}],async 'execute'(_0x38dfa0){const _0x32e35c=a6_0x196d90,_0x519fb4=resolveAuthScopeFlags(_0x38dfa0),_0x1499be=readScopedConfig(_0x519fb4),_0x3c8d19=!!_0x1499be[_0x32e35c(0x164)];delete _0x1499be['accessKey'],writeScopedConfig(_0x1499be,_0x519fb4);const _0x5a4403=_0x519fb4[_0x32e35c(0x176)]?'global':'project';if(_0x3c8d19)return{'ok':!![],'message':_0x32e35c(0x15c)+_0x5a4403+_0x32e35c(0x16f)};return{'ok':!![],'message':_0x32e35c(0x17a)+_0x5a4403+_0x32e35c(0x17d)};}},{'service':a6_0x196d90(0x18c),'command':a6_0x196d90(0x163),'description':a6_0x196d90(0x17c),'risk':a6_0x196d90(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x196d90(0x176),'type':a6_0x196d90(0x165),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a6_0x196d90(0x165),'description':a6_0x196d90(0x179),'default':![]}],async 'execute'(_0x51a430){const _0x1564b9=a6_0x196d90,_0x567e7c=resolveAuthScopeFlags(_0x51a430),_0x51a22d=readScopedConfig(_0x567e7c),_0x3f3375=productEnvName(_0x1564b9(0x152)),_0x22bc5a=productEnv(_0x1564b9(0x152))||undefined,_0x1692dd=_0x51a22d[_0x1564b9(0x164)]||undefined,_0x3303fc=_0x22bc5a||_0x1692dd,_0x3ba19d=_0x22bc5a?_0x3f3375+_0x1564b9(0x187):_0x1692dd?(_0x567e7c['global']?'global':_0x1564b9(0x162))+'\x20config':null,_0x260d0b=[_0x1564b9(0x15e)+AUTH_MODE[_0x1564b9(0x188)]];if(_0x3303fc){const _0x2357d2=_0x3303fc[_0x1564b9(0x170)]>0x8?''+_0x3303fc[_0x1564b9(0x14e)](0x0,0x8)+'*'[_0x1564b9(0x18d)](_0x3303fc[_0x1564b9(0x170)]-0x8):_0x3303fc;_0x260d0b['push'](_0x1564b9(0x190)+_0x2357d2+(_0x3ba19d?'\x20(via\x20'+_0x3ba19d+')':''));}return!_0x3303fc&&(_0x260d0b[_0x1564b9(0x14f)](''),_0x260d0b['push'](_0x1564b9(0x167)),_0x260d0b['push'](''),_0x260d0b[_0x1564b9(0x14f)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x1564b9(0x146)),_0x260d0b[_0x1564b9(0x14f)](''),_0x260d0b[_0x1564b9(0x14f)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0x260d0b['push'](_0x1564b9(0x151)),_0x260d0b[_0x1564b9(0x14f)](''),_0x260d0b[_0x1564b9(0x14f)](_0x1564b9(0x15a)),_0x260d0b['push']('\x20\x20export\x20'+_0x3f3375+_0x1564b9(0x180)),_0x260d0b['push'](''),_0x260d0b[_0x1564b9(0x14f)](_0x1564b9(0x185)+CLI_BIN_NAME+'\x20auth\x20status'),_0x260d0b['push'](_0x1564b9(0x160)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x260d0b['join']('\x0a')};}},{'service':a6_0x196d90(0x18c),'command':a6_0x196d90(0x177),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0x196d90(0x150),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x6107b3){const _0x5016d2=a6_0x196d90,_0x5eb11b=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x5eb11b,'meta':{'env':_0x6107b3[_0x5016d2(0x191)]??_0x5016d2(0x155)}}};}}];
1
+ const a6_0x3f1a46=a6_0x40ec;(function(_0x51f765,_0x33e700){const _0x4a9a81=a6_0x40ec,_0x2a7f89=_0x51f765();while(!![]){try{const _0x6cf25e=parseInt(_0x4a9a81(0x161))/0x1*(parseInt(_0x4a9a81(0x11f))/0x2)+-parseInt(_0x4a9a81(0x13a))/0x3+-parseInt(_0x4a9a81(0x155))/0x4*(parseInt(_0x4a9a81(0x142))/0x5)+-parseInt(_0x4a9a81(0x157))/0x6*(parseInt(_0x4a9a81(0x137))/0x7)+parseInt(_0x4a9a81(0x116))/0x8*(parseInt(_0x4a9a81(0x126))/0x9)+parseInt(_0x4a9a81(0x13e))/0xa+parseInt(_0x4a9a81(0x128))/0xb;if(_0x6cf25e===_0x33e700)break;else _0x2a7f89['push'](_0x2a7f89['shift']());}catch(_0x22f107){_0x2a7f89['push'](_0x2a7f89['shift']());}}}(a6_0x526f,0x8f7e8));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x526f(){const _0x17212b=['If\x20command\x20execution\x20still\x20fails,\x20run:\x20','accessKey','2454006VMYAHy','push','env','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','9662520wMhWHH','str','Shorthand\x20for\x20--access-key','ACCESS_KEY','4581620vZsPNu','ClientAk','global','Option\x20B:\x20apps\x20config\x20(','stdin','\x20auth\x20status','Write\x20to\x20global\x20config\x20(default)','Auth\x20mode:\x20','access-key','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','read','login','Option\x20C:\x20environment\x20variable','test','AccessKey:\x20','AccessKey\x20(ak_xxx...)','Show\x20current\x20authentication\x20status','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','4lhEOfW','Clear\x20from\x20global\x20config\x20(default)','37542gcYvmV','Invalid\x20accessKey\x20format:\x20\x22','write','newConfigFileName','\x20config.','\x20Verify:\x20','Tip:\x20you\x20can\x20also\x20run:','AccessKey\x20saved\x20to\x20','trim','=ak_xxx','1qpHMEx','join','repeat','isTTY','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config.\x20Nothing\x20to\x20clear.','Option\x20A:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','8umvYps','cancelled','Read\x20from\x20global\x20config\x20(default)','status','\x20env\x20var','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Auth\x20config\x20reinitialized\x20in\x20','AccessKey\x20cleared\x20from\x20','development','1094098tyYngt','validation','project','\x20\x20export\x20','\x20(via\x20','global-default','userCenterDisplayName','6370173pjYHSf','string','9025885VhWWFK','bool','Missing\x20accessKey.','info','\x20doctor','Then\x20verify\x20with:\x20','\x20config','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','boolean','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Clear\x20accessKey\x20from\x20config','No\x20AccessKey\x20found\x20in\x20','auth','Use\x20`','805tQGhaL'];a6_0x526f=function(){return _0x17212b;};return a6_0x526f();}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';function a6_0x40ec(_0x450b96,_0x3054db){_0x450b96=_0x450b96-0x110;const _0x526f4a=a6_0x526f();let _0x40ecb9=_0x526f4a[_0x450b96];return _0x40ecb9;}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 showAccessKeyCreateHint(){const _0x520f1=a6_0x40ec;writeCliSideChannelLine(_0x520f1(0x132)+PRODUCT_CONFIG[_0x520f1(0x125)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x520f1(0x15d)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x1f8829=a6_0x40ec;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1f8829(0x125)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1f8829(0x13d)+CLI_BIN_NAME+_0x1f8829(0x115)][_0x1f8829(0x162)]('\x0a');}function canPromptForAccessKey(_0x30ed6a){const _0x5906e4=a6_0x40ec;return!_0x30ed6a['nonInteractive']&&process[_0x5906e4(0x146)][_0x5906e4(0x110)]!==![]&&process['stdout'][_0x5906e4(0x110)]!==![];}function resolveAuthScopeFlags(_0x5866c3){const _0x14c751=a6_0x40ec;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5866c3[_0x14c751(0x129)]('global'),'explicitProject':_0x5866c3[_0x14c751(0x129)](_0x14c751(0x121)),'policy':_0x14c751(0x124)}));}async function resolveAuthWriteInput(_0x4cb9a4){const _0xd7792d=a6_0x40ec;let _0x1977f8=(_0x4cb9a4[_0xd7792d(0x13f)]('access-key')||_0x4cb9a4[_0xd7792d(0x13f)]('ak')||'')['trim']();const _0x2117df=(_0x4cb9a4[_0xd7792d(0x13f)](_0xd7792d(0x13c))||'')[_0xd7792d(0x15f)]();if(!_0x1977f8&&canPromptForAccessKey(_0x4cb9a4))try{showAccessKeyCreateHint(),_0x1977f8=await promptAccessKey('');}catch(_0x5c143d){if(isAbortPrompt(_0x5c143d))throw CliErrors[_0xd7792d(0x117)]();throw _0x5c143d;}if(!_0x1977f8)throw CliErrors[_0xd7792d(0x120)](_0xd7792d(0x12a),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0xd7792d(0x150)](_0x1977f8))throw CliErrors[_0xd7792d(0x120)](_0xd7792d(0x158)+_0x1977f8+'\x22',_0xd7792d(0x14c));if(!_0x2117df)return{'accessKey':_0x1977f8};const _0x5aa228=normalizeEnv(_0x2117df);return{'accessKey':_0x1977f8,'env':isDaily(_0x5aa228)?'daily':isDev(_0x5aa228)?_0xd7792d(0x11e):'production'};}export const authDefinitions=[{'service':a6_0x3f1a46(0x135),'command':a6_0x3f1a46(0x14e),'description':a6_0x3f1a46(0x11b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x3f1a46(0x14a),'type':'string','description':a6_0x3f1a46(0x152)},{'name':'ak','type':'string','description':a6_0x3f1a46(0x140)},{'name':a6_0x3f1a46(0x144),'type':'boolean','description':a6_0x3f1a46(0x148),'default':!![]},{'name':a6_0x3f1a46(0x121),'type':a6_0x3f1a46(0x131),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4b93bd){const _0x5e3374=a6_0x3f1a46;if(_0x4b93bd[_0x5e3374(0x129)]('yes'))throw CliErrors[_0x5e3374(0x120)](_0x5e3374(0x14b),_0x5e3374(0x136)+CLI_BIN_NAME+_0x5e3374(0x12f)+CLI_BIN_NAME+_0x5e3374(0x130));const _0x182a2d=(_0x4b93bd[_0x5e3374(0x13f)]('access-key')||_0x4b93bd[_0x5e3374(0x13f)]('ak')||'')[_0x5e3374(0x15f)]();if(!_0x182a2d&&_0x4b93bd['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x524465=await resolveAuthWriteInput(_0x4b93bd),_0x50c1d3=resolveAuthScopeFlags(_0x4b93bd),_0x4298f6=readScopedConfig(_0x50c1d3);_0x4298f6[_0x5e3374(0x139)]=_0x524465[_0x5e3374(0x139)];_0x524465['env']&&(_0x4298f6[_0x5e3374(0x13c)]=_0x524465[_0x5e3374(0x13c)]);writeScopedConfig(_0x4298f6,_0x50c1d3);const _0x2252b4=_0x50c1d3[_0x5e3374(0x144)]?_0x5e3374(0x144):_0x5e3374(0x121),_0x3ca8ba=_0x4298f6[_0x5e3374(0x13c)]?'\x20Current\x20env:\x20'+_0x4298f6['env']+'.':'';return{'ok':!![],'message':_0x5e3374(0x15e)+_0x2252b4+_0x5e3374(0x15b)+_0x3ca8ba+_0x5e3374(0x15c)+CLI_BIN_NAME+_0x5e3374(0x147)};}},{'service':'auth','command':'init','description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a6_0x3f1a46(0x159),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x3f1a46(0x127),'description':a6_0x3f1a46(0x152)},{'name':'ak','type':a6_0x3f1a46(0x127),'description':'Shorthand\x20for\x20--access-key'},{'name':a6_0x3f1a46(0x13c),'type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a6_0x3f1a46(0x144),'type':'boolean','description':a6_0x3f1a46(0x148),'default':!![]},{'name':a6_0x3f1a46(0x121),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x58f390){const _0x550f0c=a6_0x3f1a46,_0x56e39d=await resolveAuthWriteInput(_0x58f390),_0x19e77b=resolveAuthScopeFlags(_0x58f390),_0x43bf71={'accessKey':_0x56e39d[_0x550f0c(0x139)]};_0x56e39d[_0x550f0c(0x13c)]&&(_0x43bf71[_0x550f0c(0x13c)]=_0x56e39d['env']);writeScopedConfig(_0x43bf71,_0x19e77b);const _0x3a50db=_0x19e77b['global']?_0x550f0c(0x144):'project',_0x11a9ce=_0x43bf71['env']?'\x20Current\x20env:\x20'+_0x43bf71[_0x550f0c(0x13c)]+'.':'';return{'ok':!![],'message':_0x550f0c(0x11c)+_0x3a50db+'\x20scope.'+_0x11a9ce+_0x550f0c(0x15c)+CLI_BIN_NAME+_0x550f0c(0x147)};}},{'service':a6_0x3f1a46(0x135),'command':'logout','description':a6_0x3f1a46(0x133),'risk':a6_0x3f1a46(0x159),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x3f1a46(0x144),'type':'boolean','description':a6_0x3f1a46(0x156),'default':!![]},{'name':a6_0x3f1a46(0x121),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x15bbb9){const _0x4b8d9e=a6_0x3f1a46,_0x5d9780=resolveAuthScopeFlags(_0x15bbb9),_0x3683ba=readScopedConfig(_0x5d9780),_0x2a89db=!!_0x3683ba[_0x4b8d9e(0x139)];delete _0x3683ba[_0x4b8d9e(0x139)],writeScopedConfig(_0x3683ba,_0x5d9780);const _0x220f54=_0x5d9780[_0x4b8d9e(0x144)]?_0x4b8d9e(0x144):_0x4b8d9e(0x121);if(_0x2a89db)return{'ok':!![],'message':_0x4b8d9e(0x11d)+_0x220f54+_0x4b8d9e(0x15b)};return{'ok':!![],'message':_0x4b8d9e(0x134)+_0x220f54+_0x4b8d9e(0x113)};}},{'service':a6_0x3f1a46(0x135),'command':a6_0x3f1a46(0x119),'description':a6_0x3f1a46(0x153),'risk':a6_0x3f1a46(0x14d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x3f1a46(0x144),'type':a6_0x3f1a46(0x131),'description':a6_0x3f1a46(0x118),'default':!![]},{'name':'project','type':a6_0x3f1a46(0x131),'description':a6_0x3f1a46(0x112),'default':![]}],async 'execute'(_0x4ca4eb){const _0x2ed9df=a6_0x3f1a46,_0x266dc1=resolveAuthScopeFlags(_0x4ca4eb),_0x5dc0bc=readScopedConfig(_0x266dc1),_0x4e5921=productEnvName(_0x2ed9df(0x141)),_0x46a30e=productEnv(_0x2ed9df(0x141))||undefined,_0x890827=_0x5dc0bc[_0x2ed9df(0x139)]||undefined,_0x7025cc=_0x46a30e||_0x890827,_0xf7841a=_0x46a30e?_0x4e5921+_0x2ed9df(0x11a):_0x890827?(_0x266dc1[_0x2ed9df(0x144)]?_0x2ed9df(0x144):_0x2ed9df(0x121))+_0x2ed9df(0x12e):null,_0x1c621c=[_0x2ed9df(0x149)+AUTH_MODE[_0x2ed9df(0x143)]];if(_0x7025cc){const _0x5523e5=_0x7025cc['length']>0x8?''+_0x7025cc['slice'](0x0,0x8)+'*'[_0x2ed9df(0x163)](_0x7025cc['length']-0x8):_0x7025cc;_0x1c621c['push'](_0x2ed9df(0x151)+_0x5523e5+(_0xf7841a?_0x2ed9df(0x123)+_0xf7841a+')':''));}return!_0x7025cc&&(_0x1c621c[_0x2ed9df(0x13b)](''),_0x1c621c['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x1c621c[_0x2ed9df(0x13b)](''),_0x1c621c['push'](_0x2ed9df(0x114)+CLI_BIN_NAME+_0x2ed9df(0x111)),_0x1c621c[_0x2ed9df(0x13b)](''),_0x1c621c[_0x2ed9df(0x13b)](_0x2ed9df(0x145)+PRODUCT_CONFIG[_0x2ed9df(0x15a)]+')'),_0x1c621c[_0x2ed9df(0x13b)](_0x2ed9df(0x154)),_0x1c621c[_0x2ed9df(0x13b)](''),_0x1c621c['push'](_0x2ed9df(0x14f)),_0x1c621c[_0x2ed9df(0x13b)](_0x2ed9df(0x122)+_0x4e5921+_0x2ed9df(0x160)),_0x1c621c['push'](''),_0x1c621c[_0x2ed9df(0x13b)](_0x2ed9df(0x12d)+CLI_BIN_NAME+'\x20auth\x20status'),_0x1c621c[_0x2ed9df(0x13b)](_0x2ed9df(0x138)+CLI_BIN_NAME+_0x2ed9df(0x12c))),{'ok':!![],'message':_0x1c621c[_0x2ed9df(0x162)]('\x0a')};}},{'service':a6_0x3f1a46(0x135),'command':a6_0x3f1a46(0x12b),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0x3f1a46(0x14d),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x37fcf0){const _0x4c2df8=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4c2df8,'meta':{'env':_0x37fcf0['envName']??'production'}}};}}];
@@ -1 +1 @@
1
- function a7_0x235e(_0x20e366,_0x449560){_0x20e366=_0x20e366-0x118;const _0x5f11f1=a7_0x5f11();let _0x235ef6=_0x5f11f1[_0x20e366];return _0x235ef6;}(function(_0x1a9a73,_0x1742a3){const _0x23d37e=a7_0x235e,_0x38d68f=_0x1a9a73();while(!![]){try{const _0x7799b=-parseInt(_0x23d37e(0x123))/0x1+-parseInt(_0x23d37e(0x129))/0x2*(-parseInt(_0x23d37e(0x11f))/0x3)+parseInt(_0x23d37e(0x120))/0x4*(-parseInt(_0x23d37e(0x12e))/0x5)+-parseInt(_0x23d37e(0x125))/0x6*(parseInt(_0x23d37e(0x124))/0x7)+-parseInt(_0x23d37e(0x12d))/0x8+-parseInt(_0x23d37e(0x118))/0x9+parseInt(_0x23d37e(0x12c))/0xa;if(_0x7799b===_0x1742a3)break;else _0x38d68f['push'](_0x38d68f['shift']());}catch(_0x2b567f){_0x38d68f['push'](_0x38d68f['shift']());}}}(a7_0x5f11,0x63ecc));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x48c3bc=a7_0x235e;super(_0x48c3bc(0x128)),this['name']=_0x48c3bc(0x12a);}}function createSafeRl(){const _0x4e7ccc=a7_0x235e,_0x28a334=createInterface({'input':process['stdin'],'output':process[_0x4e7ccc(0x126)]});let _0x2680df;const _0x301893=new Promise((_0x3e2eba,_0x48f9f7)=>{const _0x32d0f9=_0x4e7ccc;_0x2680df=()=>{const _0x533d23=a7_0x235e;_0x2680df&&(_0x28a334[_0x533d23(0x127)]('SIGINT',_0x2680df),_0x2680df=undefined);try{_0x28a334[_0x533d23(0x121)]();}catch{}_0x48f9f7(new AbortPrompt());},_0x28a334[_0x32d0f9(0x11b)](_0x32d0f9(0x11e),_0x2680df);}),_0x121680=()=>{const _0x324a36=_0x4e7ccc;_0x2680df&&(_0x28a334[_0x324a36(0x127)](_0x324a36(0x11e),_0x2680df),_0x2680df=undefined);try{_0x28a334[_0x324a36(0x121)]();}catch{}};return{'rl':_0x28a334,'abortPromise':_0x301893,'disposeSuccess':_0x121680};}export async function promptAccessKey(_0x585085=''){const _0x6fd9fa=a7_0x235e,{rl:_0x3795f9,abortPromise:_0x47b1b2,disposeSuccess:_0x1f8da3}=createSafeRl(),_0x9ef63f=new Promise(_0x83764b=>{const _0x323853=a7_0x235e,_0x53b9da=_0x585085?_0x323853(0x11c)+_0x585085+_0x323853(0x119):_0x323853(0x12b);_0x3795f9['question'](_0x53b9da,_0x416ab7=>{const _0x302f9d=_0x323853;_0x1f8da3(),_0x83764b(_0x416ab7[_0x302f9d(0x11a)]()||_0x585085);});});return Promise[_0x6fd9fa(0x11d)]([_0x9ef63f,_0x47b1b2]);}function a7_0x5f11(){const _0x39177b=['AccessKey\x20(paste\x20ak_...):\x20','20173430aLrJMJ','5000512ffklqM','16505cTuOUz','2304441kQTgii','):\x20','trim','once','AccessKey\x20(','race','SIGINT','435JGEEvc','24WMpCTm','close','name','595543TdATBX','357ziRgXJ','54564eYcymR','stdout','removeListener','User\x20aborted\x20prompt','4858hurPuw','AbortPrompt'];a7_0x5f11=function(){return _0x39177b;};return a7_0x5f11();}export function isAbortPrompt(_0xcf2b7f){const _0x4271c4=a7_0x235e;return _0xcf2b7f instanceof Error&&_0xcf2b7f[_0x4271c4(0x122)]==='AbortPrompt';}
1
+ function a7_0x380f(_0x56e9f2,_0x2df85e){_0x56e9f2=_0x56e9f2-0x74;const _0x4ea5d6=a7_0x4ea5();let _0x380f4e=_0x4ea5d6[_0x56e9f2];return _0x380f4e;}(function(_0x2e6c95,_0x5a93f0){const _0x831235=a7_0x380f,_0x40bcad=_0x2e6c95();while(!![]){try{const _0x45c281=-parseInt(_0x831235(0x76))/0x1+parseInt(_0x831235(0x74))/0x2*(-parseInt(_0x831235(0x80))/0x3)+parseInt(_0x831235(0x7f))/0x4+parseInt(_0x831235(0x7e))/0x5*(-parseInt(_0x831235(0x7a))/0x6)+parseInt(_0x831235(0x89))/0x7*(-parseInt(_0x831235(0x88))/0x8)+parseInt(_0x831235(0x82))/0x9+parseInt(_0x831235(0x87))/0xa*(parseInt(_0x831235(0x86))/0xb);if(_0x45c281===_0x5a93f0)break;else _0x40bcad['push'](_0x40bcad['shift']());}catch(_0x381580){_0x40bcad['push'](_0x40bcad['shift']());}}}(a7_0x4ea5,0x5eef0));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x4a0673=a7_0x380f;super(_0x4a0673(0x79)),this[_0x4a0673(0x77)]='AbortPrompt';}}function createSafeRl(){const _0x495363=createInterface({'input':process['stdin'],'output':process['stdout']});let _0x20b072;const _0x83d480=new Promise((_0x2459a3,_0x299cea)=>{const _0x533f1d=a7_0x380f;_0x20b072=()=>{const _0x2126cc=a7_0x380f;_0x20b072&&(_0x495363[_0x2126cc(0x84)](_0x2126cc(0x7d),_0x20b072),_0x20b072=undefined);try{_0x495363['close']();}catch{}_0x299cea(new AbortPrompt());},_0x495363[_0x533f1d(0x85)](_0x533f1d(0x7d),_0x20b072);}),_0x277daa=()=>{const _0x78af08=a7_0x380f;_0x20b072&&(_0x495363[_0x78af08(0x84)]('SIGINT',_0x20b072),_0x20b072=undefined);try{_0x495363['close']();}catch{}};return{'rl':_0x495363,'abortPromise':_0x83d480,'disposeSuccess':_0x277daa};}export async function promptAccessKey(_0x22a6fc=''){const _0x18252d=a7_0x380f,{rl:_0x5c96dc,abortPromise:_0x4c2e71,disposeSuccess:_0x1eaf7b}=createSafeRl(),_0xa2d185=new Promise(_0x217e18=>{const _0x82da67=a7_0x380f,_0x122641=_0x22a6fc?_0x82da67(0x75)+_0x22a6fc+'):\x20':_0x82da67(0x83);_0x5c96dc[_0x82da67(0x78)](_0x122641,_0x30e455=>{const _0x24a3ec=_0x82da67;_0x1eaf7b(),_0x217e18(_0x30e455[_0x24a3ec(0x7b)]()||_0x22a6fc);});});return Promise[_0x18252d(0x81)]([_0xa2d185,_0x4c2e71]);}function a7_0x4ea5(){const _0x2ee22b=['22990910kKAcQj','161024PlDGap','203qJbOWF','4giYOLS','AccessKey\x20(','635445iFygFl','name','question','User\x20aborted\x20prompt','186uRUKCW','trim','AbortPrompt','SIGINT','109305bsmkHQ','1512088PwceKQ','1027716urPEAb','race','2643543vNOyFF','AccessKey\x20(paste\x20ak_...):\x20','removeListener','once','11wCpEUf'];a7_0x4ea5=function(){return _0x2ee22b;};return a7_0x4ea5();}export function isAbortPrompt(_0x41de77){const _0x35fa60=a7_0x380f;return _0x41de77 instanceof Error&&_0x41de77[_0x35fa60(0x77)]===_0x35fa60(0x7c);}
@@ -1 +1 @@
1
- function a8_0x3556(_0x15151a,_0x2dbc8a){_0x15151a=_0x15151a-0x9a;const _0x435890=a8_0x4358();let _0x3556ad=_0x435890[_0x15151a];return _0x3556ad;}const a8_0x7d06fa=a8_0x3556;(function(_0x44f2bf,_0x19fc71){const _0x48ae53=a8_0x3556,_0x2bc55e=_0x44f2bf();while(!![]){try{const _0x52c948=-parseInt(_0x48ae53(0x9d))/0x1*(parseInt(_0x48ae53(0xa1))/0x2)+parseInt(_0x48ae53(0xa9))/0x3*(-parseInt(_0x48ae53(0xa4))/0x4)+-parseInt(_0x48ae53(0xa0))/0x5+-parseInt(_0x48ae53(0xa2))/0x6+parseInt(_0x48ae53(0x9e))/0x7*(parseInt(_0x48ae53(0xa5))/0x8)+parseInt(_0x48ae53(0x9b))/0x9+parseInt(_0x48ae53(0xa3))/0xa;if(_0x52c948===_0x19fc71)break;else _0x2bc55e['push'](_0x2bc55e['shift']());}catch(_0x522330){_0x2bc55e['push'](_0x2bc55e['shift']());}}}(a8_0x4358,0xb12ed));function a8_0x4358(){const _0x66920e=['(none)','read','10013688AMtNdO','detail','555257aDsrYr','7krYSej','Script\x20ID','454700oeoenu','2UAZPnm','3332418oEIRph','10979150ofskqN','100EPCqaT','8691752iwPZbN','appCode','verbose','functionName','164361tzFBhm','num','scriptType','bff'];a8_0x4358=function(){return _0x66920e;};return a8_0x4358();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x7d06fa(0xac),'command':a8_0x7d06fa(0x9c),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0x7d06fa(0x9a),'flags':[{...ID_FLAG,'description':a8_0x7d06fa(0x9f)},VERBOSE_FLAG],async 'execute'(_0x3a6132){const _0x540ec2=a8_0x7d06fa,_0x4dbe32=await getBffScriptInfo(_0x3a6132[_0x540ec2(0xaa)]('id')),_0x182192=_0x3a6132['bool'](_0x540ec2(0xa7));if(_0x182192)return{'ok':!![],'data':_0x4dbe32};return{'ok':!![],'data':{'id':_0x4dbe32['id'],'appCode':_0x4dbe32[_0x540ec2(0xa6)],'functionName':_0x4dbe32[_0x540ec2(0xa8)]??'','scriptType':_0x4dbe32[_0x540ec2(0xab)],'description':_0x4dbe32['description']||_0x540ec2(0xad),'createdTime':_0x4dbe32['createdTime']??'','updatedTime':_0x4dbe32['updatedTime']??''}};}};
1
+ const a8_0x546fd8=a8_0x3ec0;(function(_0x52bda8,_0x1550e7){const _0x1ef73d=a8_0x3ec0,_0x384322=_0x52bda8();while(!![]){try{const _0x5283e0=parseInt(_0x1ef73d(0x18d))/0x1*(parseInt(_0x1ef73d(0x186))/0x2)+-parseInt(_0x1ef73d(0x181))/0x3*(-parseInt(_0x1ef73d(0x18f))/0x4)+parseInt(_0x1ef73d(0x191))/0x5+-parseInt(_0x1ef73d(0x197))/0x6*(-parseInt(_0x1ef73d(0x183))/0x7)+parseInt(_0x1ef73d(0x18a))/0x8*(-parseInt(_0x1ef73d(0x182))/0x9)+parseInt(_0x1ef73d(0x192))/0xa*(parseInt(_0x1ef73d(0x187))/0xb)+-parseInt(_0x1ef73d(0x18e))/0xc;if(_0x5283e0===_0x1550e7)break;else _0x384322['push'](_0x384322['shift']());}catch(_0x4c46dc){_0x384322['push'](_0x384322['shift']());}}}(a8_0x38e0,0x4ca55));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x38e0(){const _0x121625=['226024tymPhB','appCode','functionName','612657KDjPJr','18471732OsqZIQ','289844wUVqcb','bool','3124690OMkfch','10juUNwp','(none)','updatedTime','detail','description','30wJwvGY','Script\x20ID','15ucrcid','9yXbfcQ','351652TBIvli','Get\x20BFF\x20script\x20details\x20by\x20ID','num','2UdDMhK','334675rnIIwi','read','scriptType'];a8_0x38e0=function(){return _0x121625;};return a8_0x38e0();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x3ec0(_0x6ee040,_0x1f6fc1){_0x6ee040=_0x6ee040-0x181;const _0x38e098=a8_0x38e0();let _0x3ec0f0=_0x38e098[_0x6ee040];return _0x3ec0f0;}export const bffDetail={'service':'bff','command':a8_0x546fd8(0x195),'description':a8_0x546fd8(0x184),'risk':a8_0x546fd8(0x188),'flags':[{...ID_FLAG,'description':a8_0x546fd8(0x198)},VERBOSE_FLAG],async 'execute'(_0x3fcdac){const _0x2293ef=a8_0x546fd8,_0x346fbe=await getBffScriptInfo(_0x3fcdac[_0x2293ef(0x185)]('id')),_0x1f83cf=_0x3fcdac[_0x2293ef(0x190)]('verbose');if(_0x1f83cf)return{'ok':!![],'data':_0x346fbe};return{'ok':!![],'data':{'id':_0x346fbe['id'],'appCode':_0x346fbe[_0x2293ef(0x18b)],'functionName':_0x346fbe[_0x2293ef(0x18c)]??'','scriptType':_0x346fbe[_0x2293ef(0x189)],'description':_0x346fbe[_0x2293ef(0x196)]||_0x2293ef(0x193),'createdTime':_0x346fbe['createdTime']??'','updatedTime':_0x346fbe[_0x2293ef(0x194)]??''}};}};
@@ -1 +1 @@
1
- const a9_0x120897=a9_0xdadf;(function(_0x3dd8ad,_0x265405){const _0x221e0b=a9_0xdadf,_0x11f668=_0x3dd8ad();while(!![]){try{const _0x2dcf3b=-parseInt(_0x221e0b(0x17d))/0x1+parseInt(_0x221e0b(0x178))/0x2*(-parseInt(_0x221e0b(0x17c))/0x3)+parseInt(_0x221e0b(0x184))/0x4*(-parseInt(_0x221e0b(0x179))/0x5)+parseInt(_0x221e0b(0x187))/0x6+-parseInt(_0x221e0b(0x180))/0x7+-parseInt(_0x221e0b(0x182))/0x8+-parseInt(_0x221e0b(0x186))/0x9*(-parseInt(_0x221e0b(0x176))/0xa);if(_0x2dcf3b===_0x265405)break;else _0x11f668['push'](_0x11f668['shift']());}catch(_0x3a8280){_0x11f668['push'](_0x11f668['shift']());}}}(a9_0xd97d,0xbb25a));function a9_0xdadf(_0x2575a3,_0x45bb20){_0x2575a3=_0x2575a3-0x176;const _0xd97d1=a9_0xd97d();let _0xdadf5=_0xd97d1[_0x2575a3];return _0xdadf5;}import{executeSdkBff}from'../../core/sdk-client.js';function a9_0xd97d(){const _0x57d904=['bff','2861336kPmAlG','BFF\x20function\x20name\x20to\x20execute','6684gnnBno','now','7502499CATqIs','4148796bkCKct','50IjHiie','BFF\x20executed\x20in\x20','4AiDAKc','1425kzRjvC','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','str','1575087Brwdes','1373851uvXvvz','exec','read','5846092JWjbuZ'];a9_0xd97d=function(){return _0x57d904;};return a9_0xd97d();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x120897(0x181),'command':a9_0x120897(0x17e),'description':a9_0x120897(0x17a),'risk':a9_0x120897(0x17f),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x120897(0x183)},PARAMS_FLAG],async 'execute'(_0xb847df){const _0x5555b9=a9_0x120897,_0x26521f=parseJsonParams(_0xb847df[_0x5555b9(0x17b)]('params')),_0x29842b=Date[_0x5555b9(0x185)](),_0x2b35f2=await executeSdkBff(_0xb847df[_0x5555b9(0x17b)]('name'),_0x26521f),_0x55ff76=Date[_0x5555b9(0x185)]()-_0x29842b;return{'ok':!![],'data':{'result':_0x2b35f2,'elapsed':_0x55ff76},'message':_0x5555b9(0x177)+_0x55ff76+'ms'};}};
1
+ const a9_0x541af2=a9_0x43f4;(function(_0x53be0f,_0x589d46){const _0x3c8fef=a9_0x43f4,_0x148e46=_0x53be0f();while(!![]){try{const _0x408e86=-parseInt(_0x3c8fef(0xfe))/0x1*(-parseInt(_0x3c8fef(0x108))/0x2)+-parseInt(_0x3c8fef(0xfa))/0x3*(parseInt(_0x3c8fef(0x106))/0x4)+parseInt(_0x3c8fef(0xf6))/0x5+parseInt(_0x3c8fef(0x105))/0x6+-parseInt(_0x3c8fef(0x100))/0x7*(parseInt(_0x3c8fef(0x107))/0x8)+parseInt(_0x3c8fef(0xfd))/0x9*(parseInt(_0x3c8fef(0x102))/0xa)+-parseInt(_0x3c8fef(0xfc))/0xb*(-parseInt(_0x3c8fef(0xf7))/0xc);if(_0x408e86===_0x589d46)break;else _0x148e46['push'](_0x148e46['shift']());}catch(_0x4d9ed2){_0x148e46['push'](_0x148e46['shift']());}}}(a9_0x2760,0x44f5e));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a9_0x43f4(_0x1c8a7a,_0x19c578){_0x1c8a7a=_0x1c8a7a-0xf5;const _0x276024=a9_0x2760();let _0x43f429=_0x276024[_0x1c8a7a];return _0x43f429;}export const bffExec={'service':'bff','command':a9_0x541af2(0xfb),'description':a9_0x541af2(0xf8),'risk':a9_0x541af2(0x104),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x541af2(0xff)},PARAMS_FLAG],async 'execute'(_0x19e1a4){const _0x2a9bab=a9_0x541af2,_0x2c06f1=parseJsonParams(_0x19e1a4['str'](_0x2a9bab(0xf5))),_0x4b3b77=Date[_0x2a9bab(0x103)](),_0x24f5a0=await executeSdkBff(_0x19e1a4[_0x2a9bab(0x101)](_0x2a9bab(0xf9)),_0x2c06f1),_0x526a67=Date[_0x2a9bab(0x103)]()-_0x4b3b77;return{'ok':!![],'data':{'result':_0x24f5a0,'elapsed':_0x526a67},'message':'BFF\x20executed\x20in\x20'+_0x526a67+'ms'};}};function a9_0x2760(){const _0x1dc0ed=['28039jhUDXe','12564RZsFvv','1PtjnoQ','BFF\x20function\x20name\x20to\x20execute','14sWpsll','str','1180LdMVJu','now','read','739116UIPNIh','813532eIyHsF','634264CzEAlg','502318HkdbSp','params','880865MToriR','624vCMygN','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','6VGCiDz','exec'];a9_0x2760=function(){return _0x1dc0ed;};return a9_0x2760();}
@@ -1 +1 @@
1
- (function(_0x28a3fc,_0x223741){const _0xe0dc73=a10_0x19bc,_0xed1ccd=_0x28a3fc();while(!![]){try{const _0x2b6137=parseInt(_0xe0dc73(0xd8))/0x1+parseInt(_0xe0dc73(0xda))/0x2+-parseInt(_0xe0dc73(0xde))/0x3+parseInt(_0xe0dc73(0xdc))/0x4*(-parseInt(_0xe0dc73(0xdd))/0x5)+-parseInt(_0xe0dc73(0xd7))/0x6*(parseInt(_0xe0dc73(0xdb))/0x7)+parseInt(_0xe0dc73(0xdf))/0x8+-parseInt(_0xe0dc73(0xd9))/0x9;if(_0x2b6137===_0x223741)break;else _0xed1ccd['push'](_0xed1ccd['shift']());}catch(_0x35339d){_0xed1ccd['push'](_0xed1ccd['shift']());}}}(a10_0x44d4,0x72880));function a10_0x44d4(){const _0x3022ad=['520wsPSTg','1070UKLdTE','151380ZTYDWG','6002176xOxZTb','205566AmYjbR','934457yyMNFK','7333056WeGSOY','245696qmqsdE','91fDySlW'];a10_0x44d4=function(){return _0x3022ad;};return a10_0x44d4();}function a10_0x19bc(_0x268f15,_0x53f30a){_0x268f15=_0x268f15-0xd7;const _0x44d43c=a10_0x44d4();let _0x19bc0f=_0x44d43c[_0x268f15];return _0x19bc0f;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a10_0x1e06(_0x347c71,_0x4e948f){_0x347c71=_0x347c71-0x9b;const _0x2adced=a10_0x2adc();let _0x1e0693=_0x2adced[_0x347c71];return _0x1e0693;}(function(_0x545c06,_0x215562){const _0x26411c=a10_0x1e06,_0x4aab73=_0x545c06();while(!![]){try{const _0x264e47=parseInt(_0x26411c(0x9c))/0x1*(-parseInt(_0x26411c(0xa4))/0x2)+-parseInt(_0x26411c(0xa6))/0x3*(-parseInt(_0x26411c(0xa3))/0x4)+parseInt(_0x26411c(0xa0))/0x5*(parseInt(_0x26411c(0x9e))/0x6)+parseInt(_0x26411c(0xa5))/0x7*(parseInt(_0x26411c(0xa2))/0x8)+parseInt(_0x26411c(0x9d))/0x9*(parseInt(_0x26411c(0xa7))/0xa)+parseInt(_0x26411c(0x9b))/0xb+parseInt(_0x26411c(0xa1))/0xc*(-parseInt(_0x26411c(0x9f))/0xd);if(_0x264e47===_0x215562)break;else _0x4aab73['push'](_0x4aab73['shift']());}catch(_0x147081){_0x4aab73['push'](_0x4aab73['shift']());}}}(a10_0x2adc,0x8e7bd));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a10_0x2adc(){const _0x11e661=['318540qeUYWp','558896PKCYCe','2012BVsVqQ','4zpoWci','7dPKGmk','3651WXYGbT','8950bPDzKQ','10150833cOeUCo','148648aGtOHB','8190awcUlE','2396568LYkKTk','949uYkEsq','5yShcer'];a10_0x2adc=function(){return _0x11e661;};return a10_0x2adc();}
@@ -1 +1 @@
1
- (function(_0x3c8712,_0x41ed5a){const _0xf76b8e=a11_0x4fc4,_0x3c8c85=_0x3c8712();while(!![]){try{const _0x58bec5=parseInt(_0xf76b8e(0x12d))/0x1+parseInt(_0xf76b8e(0x139))/0x2+-parseInt(_0xf76b8e(0x138))/0x3+-parseInt(_0xf76b8e(0x12c))/0x4*(parseInt(_0xf76b8e(0x127))/0x5)+parseInt(_0xf76b8e(0x130))/0x6*(parseInt(_0xf76b8e(0x128))/0x7)+parseInt(_0xf76b8e(0x135))/0x8+-parseInt(_0xf76b8e(0x13a))/0x9;if(_0x58bec5===_0x41ed5a)break;else _0x3c8c85['push'](_0x3c8c85['shift']());}catch(_0x55d75f){_0x3c8c85['push'](_0x3c8c85['shift']());}}}(a11_0x415c,0xce2a0));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';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(_0x702aef){const _0x1d3edc=a11_0x4fc4,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x52bba6}=_0x702aef;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1d3edc(0x134)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x1d3edc(0x12e));if(explicitGlobal)return _0x1d3edc(0x131);if(explicitProject)return'project';switch(_0x52bba6){case _0x1d3edc(0x133):return'global';case _0x1d3edc(0x137):return _0x702aef[_0x1d3edc(0x12b)]??isInProject()?'project':_0x1d3edc(0x131);case _0x1d3edc(0x136):if(!(_0x702aef['inProject']??isInProject()))throw CliErrors[_0x1d3edc(0x134)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x1d3edc(0x126)]+_0x1d3edc(0x129),_0x1d3edc(0x12a)+PRODUCT_CONFIG[_0x1d3edc(0x126)]+_0x1d3edc(0x132)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1d3edc(0x12f);}}function a11_0x415c(){const _0x2338e4=['5638960uBfdGc','project-or-global-explicit','project-default','3507174fuwqfH','2873434DhOdfF','12478401VJTCLC','newConfigFileName','196865mOFwSS','2723ijIYop','\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/','inProject','28xRxqRW','693001ftVhYG','Use\x20only\x20one\x20config\x20scope\x20flag.','project','12972PqyzrO','global',',\x20or\x20run\x20`','global-default','validation'];a11_0x415c=function(){return _0x2338e4;};return a11_0x415c();}export function toScopeFlags(_0x13e9b3){const _0x18fbec=a11_0x4fc4;return{'global':_0x13e9b3===_0x18fbec(0x131)};}function a11_0x4fc4(_0x8f5483,_0x5e3e8b){_0x8f5483=_0x8f5483-0x126;const _0x415c20=a11_0x415c();let _0x4fc4f4=_0x415c20[_0x8f5483];return _0x4fc4f4;}export function formatScopeLabel(_0x5b89bf){const _0x1554f8=a11_0x4fc4;return _0x5b89bf===_0x1554f8(0x131)?'\x20(global)':'';}
1
+ (function(_0x1aef29,_0x272921){const _0x298414=a11_0x427e,_0x172f35=_0x1aef29();while(!![]){try{const _0x43a00c=-parseInt(_0x298414(0x1c4))/0x1+parseInt(_0x298414(0x1ce))/0x2+-parseInt(_0x298414(0x1c9))/0x3+-parseInt(_0x298414(0x1d1))/0x4+parseInt(_0x298414(0x1c7))/0x5+parseInt(_0x298414(0x1bf))/0x6+-parseInt(_0x298414(0x1c0))/0x7*(parseInt(_0x298414(0x1c3))/0x8);if(_0x43a00c===_0x272921)break;else _0x172f35['push'](_0x172f35['shift']());}catch(_0x3a09d9){_0x172f35['push'](_0x172f35['shift']());}}}(a11_0x2dc8,0x90fc0));import{CLI_BIN_NAME}from'../../constant/cli.js';function a11_0x2dc8(){const _0x1e5b1e=['3906665yuilBO','inProject','849192ChComS','project','global-default','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','966148uskHMu','\x20found).','project-or-global-explicit','1728000GHTGoD','newConfigFileName','5403774zTPmqc','105KQutIh','\x20init`\x20first.','Use\x20only\x20one\x20config\x20scope\x20flag.','294568VUmJft','303801LjLmMu','project-default','validation'];a11_0x2dc8=function(){return _0x1e5b1e;};return a11_0x2dc8();}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';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a11_0x427e(_0x27920d,_0x20f787){_0x27920d=_0x27920d-0x1be;const _0x2dc8f8=a11_0x2dc8();let _0x427ed5=_0x2dc8f8[_0x27920d];return _0x427ed5;}export function resolveConfigScope(_0x5575e4){const _0x228655=a11_0x427e,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x11eecc}=_0x5575e4;if(explicitGlobal&&explicitProject)throw CliErrors[_0x228655(0x1c6)](_0x228655(0x1cd),_0x228655(0x1c2));if(explicitGlobal)return'global';if(explicitProject)return _0x228655(0x1ca);switch(_0x11eecc){case _0x228655(0x1cb):return _0x228655(0x1cc);case _0x228655(0x1c5):return _0x5575e4[_0x228655(0x1c8)]??isInProject()?_0x228655(0x1ca):_0x228655(0x1cc);case _0x228655(0x1d0):if(!(_0x5575e4[_0x228655(0x1c8)]??isInProject()))throw CliErrors[_0x228655(0x1c6)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x228655(0x1be)]+_0x228655(0x1cf),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x228655(0x1be)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x228655(0x1c1));return _0x228655(0x1ca);}}export function toScopeFlags(_0x86f1d8){const _0x3e03bc=a11_0x427e;return{'global':_0x86f1d8===_0x3e03bc(0x1cc)};}export function formatScopeLabel(_0x41bb8c){const _0x4d332b=a11_0x427e;return _0x41bb8c===_0x4d332b(0x1cc)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x404397,_0x342b18){const _0x42fa8e=a12_0x29c7,_0x5c24de=_0x404397();while(!![]){try{const _0x599582=parseInt(_0x42fa8e(0x1b2))/0x1+-parseInt(_0x42fa8e(0x1ad))/0x2*(parseInt(_0x42fa8e(0x1c0))/0x3)+-parseInt(_0x42fa8e(0x1c3))/0x4*(-parseInt(_0x42fa8e(0x1ac))/0x5)+parseInt(_0x42fa8e(0x1c7))/0x6*(-parseInt(_0x42fa8e(0x1be))/0x7)+-parseInt(_0x42fa8e(0x1c5))/0x8*(-parseInt(_0x42fa8e(0x1c4))/0x9)+-parseInt(_0x42fa8e(0x1bf))/0xa+parseInt(_0x42fa8e(0x1b4))/0xb*(-parseInt(_0x42fa8e(0x1c2))/0xc);if(_0x599582===_0x342b18)break;else _0x5c24de['push'](_0x5c24de['shift']());}catch(_0x80d4b6){_0x5c24de['push'](_0x5c24de['shift']());}}}(a12_0x575c,0x4c884));import{CliErrors}from'../../errors.js';function isSet(_0xac4c0a,_0x37daf8){const _0x13f579=a12_0x29c7,_0x539fd8=_0xac4c0a[_0x13f579(0x1ae)](_0x37daf8);return _0x539fd8!==undefined&&_0x539fd8!==''&&_0x539fd8!==![]&&_0x539fd8!==0x0;}function fmtNames(_0x4f0f4e){const _0x224526=a12_0x29c7;return _0x4f0f4e['map'](_0x5b9f32=>'--'+_0x5b9f32)[_0x224526(0x1b9)](',\x20');}function a12_0x575c(){const _0x283c43=['Provide\x20one\x20of:\x20','Invalid\x20--','\x20is\x20allowed,\x20found:\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','join','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','test','Flags\x20','7NILlja','1974790ZvNsqU','2019MqObWc','validation','1236dVQzHQ','684256qzENZm','632754vVuoAR','56vvJaaX','length','3118530uXMtnz','10kYehdY','362MDTxIf','flag','filter','At\x20least\x20one\x20of\x20','some','367178QrmmWa','\x20is\x20required\x20for\x20`','5225RuLOuC'];a12_0x575c=function(){return _0x283c43;};return a12_0x575c();}function a12_0x29c7(_0x543bd9,_0x1d1e5a){_0x543bd9=_0x543bd9-0x1ac;const _0x575c56=a12_0x575c();let _0x29c7f9=_0x575c56[_0x543bd9];return _0x29c7f9;}export function requireOneOf(_0x4f1e6d,_0x451d67,_0x23885a){const _0x254b6a=a12_0x29c7,_0x5dc2d4=_0x451d67['filter'](_0x5773df=>isSet(_0x4f1e6d,_0x5773df));if(_0x5dc2d4[_0x254b6a(0x1c6)]!==0x1)throw CliErrors[_0x254b6a(0x1c1)](_0x5dc2d4[_0x254b6a(0x1c6)]===0x0?_0x254b6a(0x1ba)+fmtNames(_0x451d67)+_0x254b6a(0x1b3)+_0x23885a+'`.':_0x254b6a(0x1bb)+fmtNames(_0x451d67)+_0x254b6a(0x1b7)+fmtNames(_0x5dc2d4)+'.',_0x5dc2d4[_0x254b6a(0x1c6)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x451d67):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x5909ed,_0x2014cb,_0x20680a){const _0x20c388=a12_0x29c7;if(!_0x2014cb[_0x20c388(0x1b1)](_0x2e2887=>isSet(_0x5909ed,_0x2e2887)))throw CliErrors[_0x20c388(0x1c1)](_0x20c388(0x1b0)+fmtNames(_0x2014cb)+_0x20c388(0x1b3)+_0x20680a+'`.',_0x20c388(0x1b5)+fmtNames(_0x2014cb));}export function mutuallyExclusive(_0xfa05d0,_0x3a19f4,_0x359238){const _0x59e44d=a12_0x29c7,_0x468a6e=_0x3a19f4[_0x59e44d(0x1af)](_0x40e053=>isSet(_0xfa05d0,_0x40e053));if(_0x468a6e[_0x59e44d(0x1c6)]>0x1)throw CliErrors[_0x59e44d(0x1c1)](_0x59e44d(0x1bd)+fmtNames(_0x468a6e)+_0x59e44d(0x1b8)+_0x359238+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x3a19f4));}export function validatePattern(_0x40cf16,_0x596b8d,_0x5c303a,_0x2dc838){const _0x4d048e=a12_0x29c7,_0x3cc262=_0x40cf16['str'](_0x596b8d);if(_0x3cc262&&!_0x5c303a[_0x4d048e(0x1bc)](_0x3cc262))throw CliErrors[_0x4d048e(0x1c1)](_0x4d048e(0x1b6)+_0x596b8d+':\x20expected\x20'+_0x2dc838+',\x20got\x20\x22'+_0x3cc262+'\x22.');}
1
+ (function(_0x2362c0,_0x537cb9){const _0xe7250c=a12_0x2013,_0x5d9046=_0x2362c0();while(!![]){try{const _0x604f5f=-parseInt(_0xe7250c(0xe4))/0x1+parseInt(_0xe7250c(0xd8))/0x2*(-parseInt(_0xe7250c(0xd3))/0x3)+-parseInt(_0xe7250c(0xe8))/0x4+-parseInt(_0xe7250c(0xd4))/0x5+-parseInt(_0xe7250c(0xda))/0x6+parseInt(_0xe7250c(0xec))/0x7*(parseInt(_0xe7250c(0xe3))/0x8)+parseInt(_0xe7250c(0xd1))/0x9*(parseInt(_0xe7250c(0xe0))/0xa);if(_0x604f5f===_0x537cb9)break;else _0x5d9046['push'](_0x5d9046['shift']());}catch(_0x2f3882){_0x5d9046['push'](_0x5d9046['shift']());}}}(a12_0x8889,0xf19dc));import{CliErrors}from'../../errors.js';function isSet(_0x50de8e,_0x46da20){const _0x1e08e0=_0x50de8e['flag'](_0x46da20);return _0x1e08e0!==undefined&&_0x1e08e0!==''&&_0x1e08e0!==![]&&_0x1e08e0!==0x0;}function fmtNames(_0x48d8a8){const _0x86ecf8=a12_0x2013;return _0x48d8a8[_0x86ecf8(0xe9)](_0xf2304f=>'--'+_0xf2304f)[_0x86ecf8(0xd2)](',\x20');}export function requireOneOf(_0x526c56,_0x1cc808,_0xe2dc51){const _0x150852=a12_0x2013,_0x4dbc38=_0x1cc808['filter'](_0x55be34=>isSet(_0x526c56,_0x55be34));if(_0x4dbc38[_0x150852(0xe7)]!==0x1)throw CliErrors[_0x150852(0xdf)](_0x4dbc38[_0x150852(0xe7)]===0x0?_0x150852(0xdd)+fmtNames(_0x1cc808)+'\x20is\x20required\x20for\x20`'+_0xe2dc51+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x1cc808)+_0x150852(0xd9)+fmtNames(_0x4dbc38)+'.',_0x4dbc38['length']===0x0?_0x150852(0xdb)+fmtNames(_0x1cc808):_0x150852(0xe2));}function a12_0x8889(){const _0x451d71=['57320uwrzUU','1151449phqkQE','Use\x20only\x20one\x20of:\x20','test','length','3556680xGwSoE','map','Invalid\x20--','some','7srJvvi','79389KFtill','join','4911213YRSqYi','3953425dQKPxh',',\x20got\x20\x22','Flags\x20','At\x20least\x20one\x20of\x20','2yfBJrT','\x20is\x20allowed,\x20found:\x20','2913978yuCFgP','Provide\x20one\x20of:\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','Exactly\x20one\x20of\x20','str','validation','6730TuuwHz','filter','Remove\x20all\x20but\x20one.'];a12_0x8889=function(){return _0x451d71;};return a12_0x8889();}function a12_0x2013(_0x222f96,_0x4c1a0a){_0x222f96=_0x222f96-0xd1;const _0x888945=a12_0x8889();let _0x201324=_0x888945[_0x222f96];return _0x201324;}export function requireAnyOf(_0x5dc7de,_0x4a75ad,_0x47f2ba){const _0x4fb5fc=a12_0x2013;if(!_0x4a75ad[_0x4fb5fc(0xeb)](_0x408067=>isSet(_0x5dc7de,_0x408067)))throw CliErrors[_0x4fb5fc(0xdf)](_0x4fb5fc(0xd7)+fmtNames(_0x4a75ad)+'\x20is\x20required\x20for\x20`'+_0x47f2ba+'`.',_0x4fb5fc(0xdb)+fmtNames(_0x4a75ad));}export function mutuallyExclusive(_0x194b84,_0x2ff4ca,_0x3b7cba){const _0xa70511=a12_0x2013,_0x25dc3d=_0x2ff4ca[_0xa70511(0xe1)](_0x181180=>isSet(_0x194b84,_0x181180));if(_0x25dc3d[_0xa70511(0xe7)]>0x1)throw CliErrors['validation'](_0xa70511(0xd6)+fmtNames(_0x25dc3d)+_0xa70511(0xdc)+_0x3b7cba+'`.',_0xa70511(0xe5)+fmtNames(_0x2ff4ca));}export function validatePattern(_0x2ece30,_0x317f89,_0x133288,_0x54f4aa){const _0x19f312=a12_0x2013,_0x1ce035=_0x2ece30[_0x19f312(0xde)](_0x317f89);if(_0x1ce035&&!_0x133288[_0x19f312(0xe6)](_0x1ce035))throw CliErrors[_0x19f312(0xdf)](_0x19f312(0xea)+_0x317f89+':\x20expected\x20'+_0x54f4aa+_0x19f312(0xd5)+_0x1ce035+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x5dfcf0=a13_0x356f;function a13_0x3c2f(){const _0x254ddf=['1341SpvkIH','4eENZWY','9609NeJnGI','number','Return\x20full\x20raw\x20response\x20object','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','17870fQhwST','sqlcode','boolean','48EQHWnX','Resource\x20name\x20for\x20lookup','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','2200855vAifDU','2061003gprZBg','code','Resource\x20ID','string','114oLqSko','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','344302AFHYyY','971982RjjOBS','2574528nsyhQv','verbose'];a13_0x3c2f=function(){return _0x254ddf;};return a13_0x3c2f();}(function(_0x133385,_0x215229){const _0x40b3a8=a13_0x356f,_0x162516=_0x133385();while(!![]){try{const _0x4b9249=-parseInt(_0x40b3a8(0x15b))/0x1*(-parseInt(_0x40b3a8(0x153))/0x2)+-parseInt(_0x40b3a8(0x166))/0x3*(parseInt(_0x40b3a8(0x15a))/0x4)+parseInt(_0x40b3a8(0x165))/0x5+-parseInt(_0x40b3a8(0x157))/0x6+parseInt(_0x40b3a8(0x155))/0x7*(parseInt(_0x40b3a8(0x162))/0x8)+parseInt(_0x40b3a8(0x159))/0x9*(parseInt(_0x40b3a8(0x15f))/0xa)+-parseInt(_0x40b3a8(0x156))/0xb;if(_0x4b9249===_0x215229)break;else _0x162516['push'](_0x162516['shift']());}catch(_0x529b68){_0x162516['push'](_0x162516['shift']());}}}(a13_0x3c2f,0x542ec));export const CODE_FLAG={'name':a13_0x5dfcf0(0x150),'type':a13_0x5dfcf0(0x152),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x5dfcf0(0x154)}};export const SQLCODE_FLAG={'name':a13_0x5dfcf0(0x160),'type':a13_0x5dfcf0(0x152),'required':!![],'description':a13_0x5dfcf0(0x15e),'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_0x5dfcf0(0x158),'type':a13_0x5dfcf0(0x161),'description':a13_0x5dfcf0(0x15d)};export const PARAMS_FLAG={'name':'params','type':a13_0x5dfcf0(0x152),'description':a13_0x5dfcf0(0x164)};export const NAME_FLAG={'name':'name','type':'string','description':a13_0x5dfcf0(0x163)};function a13_0x356f(_0x2a5300,_0x55639b){_0x2a5300=_0x2a5300-0x150;const _0x3c2f45=a13_0x3c2f();let _0x356fa4=_0x3c2f45[_0x2a5300];return _0x356fa4;}export const ID_FLAG={'name':'id','type':a13_0x5dfcf0(0x15c),'required':!![],'description':a13_0x5dfcf0(0x151)};
1
+ const a13_0xed4998=a13_0x43f0;(function(_0x4b1264,_0x3c5f60){const _0x87e52f=a13_0x43f0,_0x2d07aa=_0x4b1264();while(!![]){try{const _0x72e0ce=-parseInt(_0x87e52f(0x19c))/0x1+parseInt(_0x87e52f(0x18c))/0x2+parseInt(_0x87e52f(0x192))/0x3+parseInt(_0x87e52f(0x191))/0x4+-parseInt(_0x87e52f(0x18f))/0x5+-parseInt(_0x87e52f(0x18a))/0x6*(parseInt(_0x87e52f(0x18e))/0x7)+parseInt(_0x87e52f(0x18d))/0x8;if(_0x72e0ce===_0x3c5f60)break;else _0x2d07aa['push'](_0x2d07aa['shift']());}catch(_0x443e83){_0x2d07aa['push'](_0x2d07aa['shift']());}}}(a13_0x38d5,0xda0ce));export const CODE_FLAG={'name':a13_0xed4998(0x19d),'type':a13_0xed4998(0x194),'required':!![],'description':a13_0xed4998(0x199),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0xed4998(0x195)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a13_0xed4998(0x194),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0xed4998(0x198)}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0xed4998(0x197),'description':a13_0xed4998(0x190)};function a13_0x43f0(_0x3533d5,_0x579710){_0x3533d5=_0x3533d5-0x18a;const _0x38d5d=a13_0x38d5();let _0x43f051=_0x38d5d[_0x3533d5];return _0x43f051;}function a13_0x38d5(){const _0x5a6de3=['2861046vOKvQD','2738664QBXAGg','7DYrsZH','615775qwmHvQ','Return\x20full\x20raw\x20response\x20object','5237672qIOVmO','713580CmSQhW','Resource\x20name\x20for\x20lookup','string','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','name','boolean','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','params','number','1161747CzEhUe','code','6852588MdojjD','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'];a13_0x38d5=function(){return _0x5a6de3;};return a13_0x38d5();}export const PARAMS_FLAG={'name':a13_0xed4998(0x19a),'type':a13_0xed4998(0x194),'description':a13_0xed4998(0x18b)};export const NAME_FLAG={'name':a13_0xed4998(0x196),'type':a13_0xed4998(0x194),'description':a13_0xed4998(0x193)};export const ID_FLAG={'name':'id','type':a13_0xed4998(0x19b),'required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- function a14_0x3090(){const _0x17a8a3=['isArray','Missing\x20key\x20or\x20value.','1274jmlZri','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Config\x20files:\x0a','set','split','Get\x20a\x20config\x20value','get','trim','delete','object','read','Missing\x20key\x20argument.','args','write','format','\x20(global)','Write\x20to\x20global\x20config','raw','15162XodcrY','../../context.js','Settable\x20keys:\x20','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','pretty','length','Usage:\x20','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20project:\x20','\x22.\x20Allowed:\x20','global','Key\x20\x22','\x22\x20is\x20not\x20settable.','Delete\x20a\x20config\x20value','Key\x20not\x20found:\x20','pageSize','log','Invalid\x20value\x20for\x20\x22','\x22\x20not\x20found\x20at\x20top\x20level.','784430IPyUUt','78584RnNaUB','bool','Set\x20`','includes','key','config','field','Value\x20to\x20assign','641yDEuKp','1966371vXjAXR','1520230WsJQko','List\x20current\x20config','`\x20=\x20\x22','1025523XkuPBo','project-or-global-explicit','\x20config\x20set\x20<key>\x20<value>\x20[--global]',';\x20apps.<alias>.appcode','16gYFwMm','validation','87LWOaRv','598IVjKKC','stringify','\x20\x20global:\x20\x20','keys','alias','boolean','Deleted\x20`','apps','appcode'];a14_0x3090=function(){return _0x17a8a3;};return a14_0x3090();}const a14_0x7fff7b=a14_0xfbf8;(function(_0x4890a0,_0x38fe07){const _0x255b38=a14_0xfbf8,_0x17cd71=_0x4890a0();while(!![]){try{const _0x5add08=parseInt(_0x255b38(0xe1))/0x1*(-parseInt(_0x255b38(0xed))/0x2)+parseInt(_0x255b38(0xec))/0x3*(parseInt(_0x255b38(0xd9))/0x4)+-parseInt(_0x255b38(0xd8))/0x5+parseInt(_0x255b38(0xc5))/0x6*(-parseInt(_0x255b38(0xb3))/0x7)+-parseInt(_0x255b38(0xea))/0x8*(-parseInt(_0x255b38(0xe6))/0x9)+parseInt(_0x255b38(0xe3))/0xa+parseInt(_0x255b38(0xe2))/0xb;if(_0x5add08===_0x38fe07)break;else _0x17cd71['push'](_0x17cd71['shift']());}catch(_0x315154){_0x17cd71['push'](_0x17cd71['shift']());}}}(a14_0x3090,0x4e1d1));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_0x7fff7b(0xcf),'type':a14_0x7fff7b(0xf2),'description':a14_0x7fff7b(0xc3),'default':![]};function parseAliasAppcodeSetKey(_0x3def80){const _0x2fa669=a14_0x7fff7b,_0x3867a8=_0x3def80[_0x2fa669(0xb7)]('.');if(_0x3867a8[_0x2fa669(0xca)]!==0x3||_0x3867a8[0x0]!==_0x2fa669(0xf4)||_0x3867a8[0x2]!==_0x2fa669(0xb0))return undefined;const _0x16d0ae=_0x3867a8[0x1]?.['trim']();return _0x16d0ae?_0x16d0ae:undefined;}function a14_0xfbf8(_0xf9846c,_0x3cb4d2){_0xf9846c=_0xf9846c-0xb0;const _0x309053=a14_0x3090();let _0xfbf835=_0x309053[_0xf9846c];return _0xfbf835;}function parseAliasDeleteKey(_0x1ad979){const _0x317736=a14_0x7fff7b,_0x4e07a9=_0x1ad979[_0x317736(0xb7)]('.');if(_0x4e07a9[_0x317736(0xca)]===0x2&&_0x4e07a9[0x0]===_0x317736(0xf4)){const _0x46c63b=_0x4e07a9[0x1]?.[_0x317736(0xba)]();return _0x46c63b?{'alias':_0x46c63b}:undefined;}if(_0x4e07a9[_0x317736(0xca)]===0x3&&_0x4e07a9[0x0]==='apps'&&_0x4e07a9[0x2]===_0x317736(0xb0)){const _0x2e1cf7=_0x4e07a9[0x1]?.[_0x317736(0xba)]();return _0x2e1cf7?{'alias':_0x2e1cf7,'field':_0x317736(0xb0)}:undefined;}return undefined;}function setLocalAppAlias(_0x21ad26,_0x472ec3,_0x33cfea){const _0x321bac=a14_0x7fff7b,_0x34cc71=_0x21ad26[_0x321bac(0xf4)]&&typeof _0x21ad26[_0x321bac(0xf4)]===_0x321bac(0xbc)&&!Array[_0x321bac(0xb1)](_0x21ad26[_0x321bac(0xf4)])?_0x21ad26['apps']:{},_0x55e2fd=_0x34cc71[_0x472ec3]&&typeof _0x34cc71[_0x472ec3]==='object'&&!Array[_0x321bac(0xb1)](_0x34cc71[_0x472ec3])?_0x34cc71[_0x472ec3]:{};_0x55e2fd[_0x321bac(0xb0)]=_0x33cfea,_0x34cc71[_0x472ec3]=_0x55e2fd,_0x21ad26[_0x321bac(0xf4)]=_0x34cc71;}function deleteLocalAppAlias(_0x3be762,_0x5d8ed9){const _0x4224e5=a14_0x7fff7b;if(!_0x3be762['apps']||typeof _0x3be762[_0x4224e5(0xf4)]!=='object'||Array[_0x4224e5(0xb1)](_0x3be762['apps']))return![];const _0x488920=_0x3be762[_0x4224e5(0xf4)],_0x1e379c=_0x488920[_0x5d8ed9[_0x4224e5(0xf1)]];if(!_0x1e379c||typeof _0x1e379c!==_0x4224e5(0xbc)||Array[_0x4224e5(0xb1)](_0x1e379c))return![];if(!_0x5d8ed9[_0x4224e5(0xdf)])return delete _0x488920[_0x5d8ed9[_0x4224e5(0xf1)]],!![];if(!(_0x5d8ed9['field']in _0x1e379c))return![];return delete _0x1e379c[_0x5d8ed9[_0x4224e5(0xdf)]],Object[_0x4224e5(0xf0)](_0x1e379c)[_0x4224e5(0xca)]===0x0&&delete _0x488920[_0x5d8ed9[_0x4224e5(0xf1)]],!![];}const listDef={'service':'config','command':'list','description':a14_0x7fff7b(0xe4),'risk':a14_0x7fff7b(0xbd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x187924){const _0x4ed99e=a14_0x7fff7b,{buildConfigFromFlags:_0x489758}=await import(_0x4ed99e(0xc6)),_0x5f1767=_0x489758({}),_0x348510=getProjectConfigPath(),_0x2b09c7=resolveWriteConfigPath('global');if(_0x187924[_0x4ed99e(0xc1)]===_0x4ed99e(0xc9))return{'ok':!![],'message':_0x4ed99e(0xb4)+(JSON['stringify'](_0x5f1767[_0x4ed99e(0xc4)],null,0x2)+'\x0a\x0a')+_0x4ed99e(0xb5)+(_0x4ed99e(0xcd)+(_0x348510??'(none)')+'\x0a')+(_0x4ed99e(0xef)+_0x2b09c7)};return{'ok':!![],'data':{'effective':_0x5f1767[_0x4ed99e(0xc4)],'configFiles':{'project':_0x348510??null,'global':_0x2b09c7}}};}},getDef={'service':'config','command':a14_0x7fff7b(0xb9),'description':a14_0x7fff7b(0xb8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x7fff7b(0xdd),'description':a14_0x7fff7b(0xc8),'required':!![]}],'flags':[],async 'execute'(_0x481138){const _0x11b3e3=a14_0x7fff7b,_0x22e85e=_0x481138[_0x11b3e3(0xbf)][0x0];if(!_0x22e85e)throw CliErrors[_0x11b3e3(0xeb)](_0x11b3e3(0xbe),_0x11b3e3(0xcb)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x35eb53}=await import(_0x11b3e3(0xc6)),{raw:_0x2fa67a}=_0x35eb53({});if(_0x22e85e['includes']('.')){const _0xd545d=_0x22e85e[_0x11b3e3(0xb7)]('.');let _0x5c8ed2=_0x2fa67a;for(const _0x74642c of _0xd545d){if(_0x5c8ed2==null||typeof _0x5c8ed2!=='object')throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x22e85e);_0x5c8ed2=_0x5c8ed2[_0x74642c];}if(_0x5c8ed2===undefined)throw CliErrors[_0x11b3e3(0xeb)](_0x11b3e3(0xd3)+_0x22e85e);return console[_0x11b3e3(0xd5)](typeof _0x5c8ed2===_0x11b3e3(0xbc)?JSON[_0x11b3e3(0xee)](_0x5c8ed2,null,0x2):String(_0x5c8ed2)),{'ok':!![]};}const _0x5ad6a5=_0x2fa67a[_0x22e85e];if(_0x5ad6a5===undefined)throw CliErrors[_0x11b3e3(0xeb)](_0x11b3e3(0xd3)+_0x22e85e);return console['log'](typeof _0x5ad6a5==='object'?JSON[_0x11b3e3(0xee)](_0x5ad6a5,null,0x2):String(_0x5ad6a5)),{'ok':!![]};}},setDef={'service':a14_0x7fff7b(0xde),'command':a14_0x7fff7b(0xb6),'description':'Set\x20a\x20config\x20value','risk':a14_0x7fff7b(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x7fff7b(0xdd),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a14_0x7fff7b(0xe0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4e8b84){const _0x571462=a14_0x7fff7b,_0x2c2a18=_0x4e8b84[_0x571462(0xbf)][0x0],_0x3f5ba1=_0x4e8b84['args'][0x1];if(!_0x2c2a18||_0x3f5ba1===undefined)throw CliErrors[_0x571462(0xeb)](_0x571462(0xb2),'Usage:\x20'+CLI_BIN_NAME+_0x571462(0xe8));if(ENUM_KEYS[_0x2c2a18]&&!ENUM_KEYS[_0x2c2a18][_0x571462(0xdc)](_0x3f5ba1))throw CliErrors[_0x571462(0xeb)](_0x571462(0xd6)+_0x2c2a18+_0x571462(0xce)+ENUM_KEYS[_0x2c2a18]['join'](',\x20'));if(_0x2c2a18==='riskLevel')throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x2c2a18===_0x571462(0xd4)){const _0x3e629d=Number(_0x3f5ba1);if(isNaN(_0x3e629d)||_0x3e629d<=0x0)throw CliErrors['validation'](_0x571462(0xcc));}const _0x5aeb30=resolveWriteScope({'explicitGlobal':_0x4e8b84[_0x571462(0xda)](_0x571462(0xcf)),'policy':_0x571462(0xe7)}),_0x2b2467=toScopeFlags(_0x5aeb30),_0x598a47=readScopedConfig(_0x2b2467),_0x222e1b=parseAliasAppcodeSetKey(_0x2c2a18);if(!_0x222e1b&&!isTopLevelConfigKey(_0x2c2a18))throw CliErrors[_0x571462(0xeb)]('Top-level\x20key\x20\x22'+_0x2c2a18+_0x571462(0xd1),_0x571462(0xc7)+getTopLevelConfigKeySummary()+_0x571462(0xe9));return _0x222e1b?setLocalAppAlias(_0x598a47,_0x222e1b,_0x3f5ba1):_0x598a47[_0x2c2a18]=_0x2c2a18===_0x571462(0xd4)?Number(_0x3f5ba1):_0x3f5ba1,console['log'](_0x571462(0xdb)+_0x2c2a18+_0x571462(0xe5)+_0x3f5ba1+'\x22'+(_0x5aeb30===_0x571462(0xcf)?_0x571462(0xc2):'')),writeScopedConfig(_0x598a47,_0x2b2467),{'ok':!![]};}},deleteDef={'service':a14_0x7fff7b(0xde),'command':a14_0x7fff7b(0xbb),'description':a14_0x7fff7b(0xd2),'risk':a14_0x7fff7b(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x7fff7b(0xdd),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x15df42){const _0xb4d107=a14_0x7fff7b,_0x4fce42=_0x15df42[_0xb4d107(0xbf)][0x0];if(!_0x4fce42)throw CliErrors[_0xb4d107(0xeb)]('Missing\x20key\x20argument.',_0xb4d107(0xcb)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x33996d=resolveWriteScope({'explicitGlobal':_0x15df42['bool'](_0xb4d107(0xcf)),'policy':_0xb4d107(0xe7)}),_0x29b496=toScopeFlags(_0x33996d),_0xc162f1=readScopedConfig(_0x29b496),_0x23ef01=parseAliasDeleteKey(_0x4fce42);if(_0x23ef01){if(!deleteLocalAppAlias(_0xc162f1,_0x23ef01))throw CliErrors['validation'](_0xb4d107(0xd3)+_0x4fce42);return console['log'](_0xb4d107(0xf3)+_0x4fce42+'`'+(_0x33996d===_0xb4d107(0xcf)?_0xb4d107(0xc2):'')),writeScopedConfig(_0xc162f1,_0x29b496),{'ok':!![]};}if(_0xc162f1[_0x4fce42]===undefined)throw CliErrors['validation'](_0xb4d107(0xd0)+_0x4fce42+_0xb4d107(0xd7));return delete _0xc162f1[_0x4fce42],console[_0xb4d107(0xd5)](_0xb4d107(0xf3)+_0x4fce42+'`'+(_0x33996d===_0xb4d107(0xcf)?'\x20(global)':'')),writeScopedConfig(_0xc162f1,_0x29b496),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a14_0x570924=a14_0x4b53;(function(_0x31028a,_0x5c24c1){const _0x3797af=a14_0x4b53,_0x58adb7=_0x31028a();while(!![]){try{const _0x54c42f=parseInt(_0x3797af(0x182))/0x1*(parseInt(_0x3797af(0x172))/0x2)+-parseInt(_0x3797af(0x15a))/0x3+-parseInt(_0x3797af(0x181))/0x4*(-parseInt(_0x3797af(0x15c))/0x5)+parseInt(_0x3797af(0x14c))/0x6*(parseInt(_0x3797af(0x173))/0x7)+parseInt(_0x3797af(0x159))/0x8+parseInt(_0x3797af(0x164))/0x9*(parseInt(_0x3797af(0x163))/0xa)+-parseInt(_0x3797af(0x185))/0xb;if(_0x54c42f===_0x5c24c1)break;else _0x58adb7['push'](_0x58adb7['shift']());}catch(_0x2f1211){_0x58adb7['push'](_0x58adb7['shift']());}}}(a14_0x50ef,0x6545c));function a14_0x4b53(_0x49833a,_0x5cc45d){_0x49833a=_0x49833a-0x148;const _0x50efa3=a14_0x50ef();let _0x4b5399=_0x50efa3[_0x49833a];return _0x4b5399;}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':'global','type':a14_0x570924(0x17d),'description':a14_0x570924(0x17b),'default':![]};function a14_0x50ef(){const _0x3021bd=['log','join','length','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','4681120OqjtLq','2037501IuUFVZ','Settable\x20keys:\x20','2155HXbjSX','split','Config\x20files:\x0a','list','Usage:\x20','../../context.js','pageSize','530gFYvoF','58068fvWUtQ','\x20(global)','read','pretty','raw','Key\x20\x22','Set\x20`','isArray','Value\x20to\x20assign','project-or-global-explicit','set','Top-level\x20key\x20\x22','bool','format','4568LTcuVw','343ZwbhbK','apps','field','\x22\x20is\x20not\x20settable.','write','global',';\x20apps.<alias>.appcode','config','Write\x20to\x20global\x20config','\x20config\x20get\x20<key>','boolean','args','stringify','appcode','2212jRxhBK','216llNPxx','\x20\x20global:\x20\x20','get','8289611WymTMP','trim','object','Key\x20not\x20found:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','List\x20current\x20config','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20\x20project:\x20','includes','riskLevel','delete','23118tJCuyK','Missing\x20key\x20argument.','`\x20=\x20\x22','validation','keys','Missing\x20key\x20or\x20value.','\x20config\x20delete\x20<key>\x20[--global]','alias','key'];a14_0x50ef=function(){return _0x3021bd;};return a14_0x50ef();}function parseAliasAppcodeSetKey(_0x376b75){const _0x2bbade=a14_0x570924,_0x1180f3=_0x376b75[_0x2bbade(0x15d)]('.');if(_0x1180f3['length']!==0x3||_0x1180f3[0x0]!==_0x2bbade(0x174)||_0x1180f3[0x2]!==_0x2bbade(0x180))return undefined;const _0xb5e64e=_0x1180f3[0x1]?.[_0x2bbade(0x186)]();return _0xb5e64e?_0xb5e64e:undefined;}function parseAliasDeleteKey(_0x5de97c){const _0x2f096f=a14_0x570924,_0x11c4d5=_0x5de97c[_0x2f096f(0x15d)]('.');if(_0x11c4d5[_0x2f096f(0x157)]===0x2&&_0x11c4d5[0x0]===_0x2f096f(0x174)){const _0x34e15e=_0x11c4d5[0x1]?.[_0x2f096f(0x186)]();return _0x34e15e?{'alias':_0x34e15e}:undefined;}if(_0x11c4d5[_0x2f096f(0x157)]===0x3&&_0x11c4d5[0x0]===_0x2f096f(0x174)&&_0x11c4d5[0x2]===_0x2f096f(0x180)){const _0x10052d=_0x11c4d5[0x1]?.[_0x2f096f(0x186)]();return _0x10052d?{'alias':_0x10052d,'field':_0x2f096f(0x180)}:undefined;}return undefined;}function setLocalAppAlias(_0x11996b,_0x1d7567,_0x39c6ec){const _0x196009=a14_0x570924,_0x2c4806=_0x11996b[_0x196009(0x174)]&&typeof _0x11996b[_0x196009(0x174)]===_0x196009(0x187)&&!Array[_0x196009(0x16b)](_0x11996b[_0x196009(0x174)])?_0x11996b[_0x196009(0x174)]:{},_0x133e11=_0x2c4806[_0x1d7567]&&typeof _0x2c4806[_0x1d7567]===_0x196009(0x187)&&!Array[_0x196009(0x16b)](_0x2c4806[_0x1d7567])?_0x2c4806[_0x1d7567]:{};_0x133e11[_0x196009(0x180)]=_0x39c6ec,_0x2c4806[_0x1d7567]=_0x133e11,_0x11996b[_0x196009(0x174)]=_0x2c4806;}function deleteLocalAppAlias(_0x12ff47,_0x8f0e37){const _0x26c28c=a14_0x570924;if(!_0x12ff47[_0x26c28c(0x174)]||typeof _0x12ff47[_0x26c28c(0x174)]!==_0x26c28c(0x187)||Array['isArray'](_0x12ff47['apps']))return![];const _0xfcae76=_0x12ff47['apps'],_0x306c76=_0xfcae76[_0x8f0e37['alias']];if(!_0x306c76||typeof _0x306c76!==_0x26c28c(0x187)||Array[_0x26c28c(0x16b)](_0x306c76))return![];if(!_0x8f0e37['field'])return delete _0xfcae76[_0x8f0e37[_0x26c28c(0x153)]],!![];if(!(_0x8f0e37[_0x26c28c(0x175)]in _0x306c76))return![];return delete _0x306c76[_0x8f0e37[_0x26c28c(0x175)]],Object[_0x26c28c(0x150)](_0x306c76)[_0x26c28c(0x157)]===0x0&&delete _0xfcae76[_0x8f0e37[_0x26c28c(0x153)]],!![];}const listDef={'service':'config','command':a14_0x570924(0x15f),'description':a14_0x570924(0x18b),'risk':a14_0x570924(0x166),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x42f19f){const _0x354d99=a14_0x570924,{buildConfigFromFlags:_0x5bf2a3}=await import(_0x354d99(0x161)),_0x3d160a=_0x5bf2a3({}),_0x435454=getProjectConfigPath(),_0x3aa76f=resolveWriteConfigPath(_0x354d99(0x178));if(_0x42f19f[_0x354d99(0x171)]===_0x354d99(0x167))return{'ok':!![],'message':_0x354d99(0x18a)+(JSON[_0x354d99(0x17f)](_0x3d160a[_0x354d99(0x168)],null,0x2)+'\x0a\x0a')+_0x354d99(0x15e)+(_0x354d99(0x148)+(_0x435454??'(none)')+'\x0a')+(_0x354d99(0x183)+_0x3aa76f)};return{'ok':!![],'data':{'effective':_0x3d160a['raw'],'configFiles':{'project':_0x435454??null,'global':_0x3aa76f}}};}},getDef={'service':a14_0x570924(0x17a),'command':a14_0x570924(0x184),'description':'Get\x20a\x20config\x20value','risk':a14_0x570924(0x166),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a14_0x570924(0x158),'required':!![]}],'flags':[],async 'execute'(_0x5ee223){const _0x5ad8fa=a14_0x570924,_0x103ec8=_0x5ee223[_0x5ad8fa(0x17e)][0x0];if(!_0x103ec8)throw CliErrors[_0x5ad8fa(0x14f)](_0x5ad8fa(0x14d),'Usage:\x20'+CLI_BIN_NAME+_0x5ad8fa(0x17c));const {buildConfigFromFlags:_0x57e87e}=await import(_0x5ad8fa(0x161)),{raw:_0x53e3cc}=_0x57e87e({});if(_0x103ec8[_0x5ad8fa(0x149)]('.')){const _0x20b4ce=_0x103ec8['split']('.');let _0x3245df=_0x53e3cc;for(const _0x47a5d7 of _0x20b4ce){if(_0x3245df==null||typeof _0x3245df!==_0x5ad8fa(0x187))throw CliErrors[_0x5ad8fa(0x14f)]('Key\x20not\x20found:\x20'+_0x103ec8);_0x3245df=_0x3245df[_0x47a5d7];}if(_0x3245df===undefined)throw CliErrors['validation'](_0x5ad8fa(0x188)+_0x103ec8);return console[_0x5ad8fa(0x155)](typeof _0x3245df===_0x5ad8fa(0x187)?JSON[_0x5ad8fa(0x17f)](_0x3245df,null,0x2):String(_0x3245df)),{'ok':!![]};}const _0x2921c7=_0x53e3cc[_0x103ec8];if(_0x2921c7===undefined)throw CliErrors[_0x5ad8fa(0x14f)](_0x5ad8fa(0x188)+_0x103ec8);return console[_0x5ad8fa(0x155)](typeof _0x2921c7===_0x5ad8fa(0x187)?JSON[_0x5ad8fa(0x17f)](_0x2921c7,null,0x2):String(_0x2921c7)),{'ok':!![]};}},setDef={'service':a14_0x570924(0x17a),'command':a14_0x570924(0x16e),'description':'Set\x20a\x20config\x20value','risk':a14_0x570924(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a14_0x570924(0x16c),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4909b9){const _0x311763=a14_0x570924,_0x457090=_0x4909b9[_0x311763(0x17e)][0x0],_0x132b55=_0x4909b9[_0x311763(0x17e)][0x1];if(!_0x457090||_0x132b55===undefined)throw CliErrors[_0x311763(0x14f)](_0x311763(0x151),_0x311763(0x160)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x457090]&&!ENUM_KEYS[_0x457090][_0x311763(0x149)](_0x132b55))throw CliErrors[_0x311763(0x14f)]('Invalid\x20value\x20for\x20\x22'+_0x457090+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x457090][_0x311763(0x156)](',\x20'));if(_0x457090===_0x311763(0x14a))throw CliErrors[_0x311763(0x14f)](_0x311763(0x189));if(_0x457090===_0x311763(0x162)){const _0x215a19=Number(_0x132b55);if(isNaN(_0x215a19)||_0x215a19<=0x0)throw CliErrors[_0x311763(0x14f)](_0x311763(0x18c));}const _0x4f45da=resolveWriteScope({'explicitGlobal':_0x4909b9[_0x311763(0x170)](_0x311763(0x178)),'policy':_0x311763(0x16d)}),_0x1b42c=toScopeFlags(_0x4f45da),_0x33f066=readScopedConfig(_0x1b42c),_0x43164b=parseAliasAppcodeSetKey(_0x457090);if(!_0x43164b&&!isTopLevelConfigKey(_0x457090))throw CliErrors[_0x311763(0x14f)](_0x311763(0x16f)+_0x457090+_0x311763(0x176),_0x311763(0x15b)+getTopLevelConfigKeySummary()+_0x311763(0x179));return _0x43164b?setLocalAppAlias(_0x33f066,_0x43164b,_0x132b55):_0x33f066[_0x457090]=_0x457090==='pageSize'?Number(_0x132b55):_0x132b55,console[_0x311763(0x155)](_0x311763(0x16a)+_0x457090+_0x311763(0x14e)+_0x132b55+'\x22'+(_0x4f45da===_0x311763(0x178)?_0x311763(0x165):'')),writeScopedConfig(_0x33f066,_0x1b42c),{'ok':!![]};}},deleteDef={'service':'config','command':a14_0x570924(0x14b),'description':'Delete\x20a\x20config\x20value','risk':a14_0x570924(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x570924(0x154),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x54dd6a){const _0x4005ce=a14_0x570924,_0x3de850=_0x54dd6a[_0x4005ce(0x17e)][0x0];if(!_0x3de850)throw CliErrors[_0x4005ce(0x14f)](_0x4005ce(0x14d),_0x4005ce(0x160)+CLI_BIN_NAME+_0x4005ce(0x152));const _0x21e83f=resolveWriteScope({'explicitGlobal':_0x54dd6a[_0x4005ce(0x170)]('global'),'policy':_0x4005ce(0x16d)}),_0xf574c7=toScopeFlags(_0x21e83f),_0x3bc359=readScopedConfig(_0xf574c7),_0x1f516c=parseAliasDeleteKey(_0x3de850);if(_0x1f516c){if(!deleteLocalAppAlias(_0x3bc359,_0x1f516c))throw CliErrors[_0x4005ce(0x14f)](_0x4005ce(0x188)+_0x3de850);return console[_0x4005ce(0x155)]('Deleted\x20`'+_0x3de850+'`'+(_0x21e83f===_0x4005ce(0x178)?_0x4005ce(0x165):'')),writeScopedConfig(_0x3bc359,_0xf574c7),{'ok':!![]};}if(_0x3bc359[_0x3de850]===undefined)throw CliErrors[_0x4005ce(0x14f)](_0x4005ce(0x169)+_0x3de850+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x3bc359[_0x3de850],console[_0x4005ce(0x155)]('Deleted\x20`'+_0x3de850+'`'+(_0x21e83f===_0x4005ce(0x178)?_0x4005ce(0x165):'')),writeScopedConfig(_0x3bc359,_0xf574c7),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x18a6a,_0x1a2efa){var _0x42ce2a=a15_0x3888,_0x1c8729=_0x18a6a();while(!![]){try{var _0x286907=-parseInt(_0x42ce2a(0x9e))/0x1*(parseInt(_0x42ce2a(0xa4))/0x2)+parseInt(_0x42ce2a(0xa2))/0x3*(parseInt(_0x42ce2a(0x9d))/0x4)+parseInt(_0x42ce2a(0xa5))/0x5*(-parseInt(_0x42ce2a(0xa0))/0x6)+parseInt(_0x42ce2a(0x9b))/0x7*(-parseInt(_0x42ce2a(0x9f))/0x8)+parseInt(_0x42ce2a(0x9c))/0x9+parseInt(_0x42ce2a(0xa3))/0xa+-parseInt(_0x42ce2a(0xa1))/0xb*(parseInt(_0x42ce2a(0x9a))/0xc);if(_0x286907===_0x1a2efa)break;else _0x1c8729['push'](_0x1c8729['shift']());}catch(_0x3ff761){_0x1c8729['push'](_0x1c8729['shift']());}}}(a15_0x4eb5,0x50993));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x4eb5(){var _0x5d2abd=['1165219RZTbLb','3htwerv','4766570FXgubv','8336fftkwH','83560FdgivC','12kGHvEt','476HRHDei','1020546RiJpJB','635092xZlCJp','27haLsZV','19624SVjwSD','12zsGmGs'];a15_0x4eb5=function(){return _0x5d2abd;};return a15_0x4eb5();}export{CLI_BIN_NAME};function a15_0x3888(_0x116cf2,_0x42bca2){_0x116cf2=_0x116cf2-0x9a;var _0x4eb507=a15_0x4eb5();var _0x388871=_0x4eb507[_0x116cf2];return _0x388871;}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(_0x58e262,_0x61394d){var _0x92eea6=a15_0x3bd0,_0x18a876=_0x58e262();while(!![]){try{var _0x1a8158=parseInt(_0x92eea6(0x1d4))/0x1+parseInt(_0x92eea6(0x1d2))/0x2*(-parseInt(_0x92eea6(0x1d3))/0x3)+-parseInt(_0x92eea6(0x1d8))/0x4*(parseInt(_0x92eea6(0x1dc))/0x5)+parseInt(_0x92eea6(0x1db))/0x6+parseInt(_0x92eea6(0x1d7))/0x7*(parseInt(_0x92eea6(0x1da))/0x8)+parseInt(_0x92eea6(0x1d9))/0x9*(-parseInt(_0x92eea6(0x1d1))/0xa)+-parseInt(_0x92eea6(0x1d6))/0xb*(parseInt(_0x92eea6(0x1d5))/0xc);if(_0x1a8158===_0x61394d)break;else _0x18a876['push'](_0x18a876['shift']());}catch(_0x39e836){_0x18a876['push'](_0x18a876['shift']());}}}(a15_0x17d9,0x434f8));function a15_0x17d9(){var _0x688b4c=['36xzyZgj','1023583TcnRjR','50225aeNPKW','108azZGEY','18CmbqNS','528rxYDgv','2399562NaQAAK','21465Glxmfg','820640Jxrmpl','14754ojsCrd','129wFnsFK','278636YDhIlu'];a15_0x17d9=function(){return _0x688b4c;};return a15_0x17d9();}function a15_0x3bd0(_0x433a21,_0x1021a7){_0x433a21=_0x433a21-0x1d1;var _0x17d97a=a15_0x17d9();var _0x3bd017=_0x17d97a[_0x433a21];return _0x3bd017;}import{CLI_BIN_NAME}from'../../constant/cli.js';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';