@lovrabet/lovrabet-cli 2.0.9-beta.4 → 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(_0x1a7468,_0x1d4bf5){const _0x321862=a0_0x2e92,_0x25b725=_0x1a7468();while(!![]){try{const _0x5d1f28=-parseInt(_0x321862(0xdf))/0x1+parseInt(_0x321862(0xf9))/0x2+parseInt(_0x321862(0xe7))/0x3*(parseInt(_0x321862(0xfa))/0x4)+-parseInt(_0x321862(0xf1))/0x5+parseInt(_0x321862(0xe5))/0x6+-parseInt(_0x321862(0xea))/0x7*(-parseInt(_0x321862(0xde))/0x8)+-parseInt(_0x321862(0xe1))/0x9;if(_0x5d1f28===_0x1d4bf5)break;else _0x25b725['push'](_0x25b725['shift']());}catch(_0x5405d6){_0x25b725['push'](_0x25b725['shift']());}}}(a0_0x101c,0x9f2d1));import{jsx as a0_0x26572e}from'react/jsx-runtime';import a0_0x171bd1 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_0x2e92(_0x510bed,_0x4c7ecc){_0x510bed=_0x510bed-0xd9;const _0x101c1d=a0_0x101c();let _0x2e92fc=_0x101c1d[_0x510bed];return _0x2e92fc;}import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x171bd1(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()['catch'](handleError);async function main(){try{await run();}catch(_0x8171d7){handleError(_0x8171d7);}}async function run(){const _0x25f7ea=a0_0x2e92;let _0x18f47b=cli['input'][0x0],_0x21da27=cli[_0x25f7ea(0xf8)][0x1];const _0x54fbe4=cli['flags'];try{const {correctFlags:_0x5c6141}=await import(_0x25f7ea(0xe2)),_0x38c715=getAllDefinitions()['flatMap'](_0x43fdc5=>_0x43fdc5[_0x25f7ea(0xe6)]??[]),{flags:_0xa29fd6,corrections:_0x380145}=_0x5c6141(_0x54fbe4,_0x38c715);if(_0x380145[_0x25f7ea(0xeb)]>0x0){for(const _0x42fe00 of _0x380145){process['stderr'][_0x25f7ea(0xe4)](_0x25f7ea(0xd9)+_0x42fe00[_0x25f7ea(0xed)]+_0x25f7ea(0xfd)+_0x42fe00[_0x25f7ea(0xe0)]+_0x25f7ea(0xec)+_0x42fe00['corrected']+'\x0a');}Object[_0x25f7ea(0xfe)](_0x54fbe4,_0xa29fd6);}}catch{}if(!_0x18f47b||!isKnownService(_0x18f47b)){const {waitUntilExit:_0x265d6b}=render(a0_0x26572e(Help,{}));await _0x265d6b();return;}const _0x3eec8e=getServiceEntry(_0x18f47b);if(!_0x21da27){if(_0x54fbe4[_0x25f7ea(0xe8)]){console[_0x25f7ea(0xda)](generateServiceHelp(_0x18f47b));return;}if(_0x3eec8e[_0x25f7ea(0xe3)])_0x21da27=_0x3eec8e[_0x25f7ea(0xe3)];else{console[_0x25f7ea(0xda)](generateServiceHelp(_0x18f47b));return;}}const _0x5a43d2=findDefinition(_0x18f47b,_0x21da27);!_0x5a43d2&&(console[_0x25f7ea(0xda)](generateServiceHelp(_0x18f47b)),handleError(CliErrors[_0x25f7ea(0xfc)](_0x18f47b+'\x20'+_0x21da27)));if(_0x54fbe4['help']){console[_0x25f7ea(0xda)](generateCommandHelp(_0x5a43d2));return;}const _0x482e1f=buildConfigFromFlags(_0x54fbe4);await initGlobalEnvironment(_0x482e1f);const _0x1ef0a8=createPipelineEnv(_0x482e1f,_0x54fbe4);_0x1ef0a8[_0x25f7ea(0xf0)]=cli[_0x25f7ea(0xf8)]['slice'](0x2),await runCommand(_0x5a43d2,_0x1ef0a8);}function a0_0x101c(){const _0x2bbb3f=['input','2445028HPImnN','240ppfKrM','exitCode','unknownCommand',':\x20--','assign','[preparse]\x20','log','ERR_USE_AFTER_CLOSE','code','message','11360WLHUCV','468404Fiuzcc','original','1895157RceFIS','./framework/preparse.js','defaultCommand','write','2088168CBSZHQ','flags','741TJzvhJ','help','error','3451FtElra','length','\x20->\x20--','handler','Error:\x20','exit','args','4772300wigWAI','name','cancelled','ExitPromptError','stderr','\x0aCancelled.\x0a','hint'];a0_0x101c=function(){return _0x2bbb3f;};return a0_0x101c();}function handleError(_0x354de7){const _0x3baee2=a0_0x2e92;if(_0x354de7 instanceof CliError){_0x354de7[_0x3baee2(0xdc)]===_0x3baee2(0xf3)&&(process[_0x3baee2(0xf5)][_0x3baee2(0xe4)](_0x3baee2(0xf6)),process[_0x3baee2(0xef)](0x0));console[_0x3baee2(0xe9)](_0x3baee2(0xee)+_0x354de7[_0x3baee2(0xdd)]);if(_0x354de7[_0x3baee2(0xf7)])console[_0x3baee2(0xe9)]('Hint:\x20'+_0x354de7[_0x3baee2(0xf7)]);process['exit'](_0x354de7[_0x3baee2(0xfb)]);}isUserCancellation(_0x354de7)&&(process[_0x3baee2(0xf5)][_0x3baee2(0xe4)](_0x3baee2(0xf6)),process[_0x3baee2(0xef)](0x0)),console[_0x3baee2(0xe9)]('Unexpected\x20error:',_0x354de7),process[_0x3baee2(0xef)](0x1);}function isUserCancellation(_0x5e3778){const _0x130dde=a0_0x2e92;if(!(_0x5e3778 instanceof Error))return![];if(_0x5e3778[_0x130dde(0xf2)]===_0x130dde(0xf4))return!![];if(_0x5e3778[_0x130dde(0xdc)]===_0x130dde(0xdb))return!![];if(_0x5e3778[_0x130dde(0xdc)]==='ERR_STREAM_DESTROYED')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(_0x3cf6e0,_0x4c25b7){const _0x27549e=a1_0x8d25,_0x360d84=_0x3cf6e0();while(!![]){try{const _0x2506e4=-parseInt(_0x27549e(0x98))/0x1*(-parseInt(_0x27549e(0x91))/0x2)+-parseInt(_0x27549e(0x9c))/0x3*(parseInt(_0x27549e(0xa2))/0x4)+-parseInt(_0x27549e(0xa6))/0x5+-parseInt(_0x27549e(0xa5))/0x6*(-parseInt(_0x27549e(0xa0))/0x7)+-parseInt(_0x27549e(0x90))/0x8*(parseInt(_0x27549e(0x94))/0x9)+parseInt(_0x27549e(0xa7))/0xa*(parseInt(_0x27549e(0x97))/0xb)+parseInt(_0x27549e(0xad))/0xc;if(_0x2506e4===_0x4c25b7)break;else _0x360d84['push'](_0x360d84['shift']());}catch(_0x583eca){_0x360d84['push'](_0x360d84['shift']());}}}(a1_0x5786,0x1f948));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a1_0x8d25(_0x50c985,_0x3e4628){_0x50c985=_0x50c985-0x8f;const _0x578622=a1_0x5786();let _0x8d2502=_0x578622[_0x50c985];return _0x8d2502;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a1_0x5786(){const _0x36025a=['258hstKCX','426515hxKrxu','844810bFNAQH','EACCES','hex','stringify','slice','EXDEV','92604GDBPey','ak_','1496LFwOFG','2Faravr','trim','parse','468KpyKvG','code','appName','11BphJaO','65699MrYgfu','digest','homeDirName','.tmp','181491oKPcpd','appCode','isArray','items','20671nFzSMl','EPERM','4EiijCC','unknown','update'];a1_0x5786=function(){return _0x36025a;};return a1_0x5786();}export function fingerprintAccessKey(_0x13823b){const _0x5ad90b=a1_0x8d25,_0x15eb36=_0x13823b[_0x5ad90b(0x92)](),_0x24d7de=_0x15eb36['slice'](-0x6)||_0x5ad90b(0xa3),_0x1ccf14=createHash('sha256')[_0x5ad90b(0xa4)](_0x15eb36)[_0x5ad90b(0x99)](_0x5ad90b(0xa9))[_0x5ad90b(0xab)](0x0,0xc);return _0x5ad90b(0x8f)+_0x24d7de+'_'+_0x1ccf14;}export function getAppCacheFilePath(_0x2a441c,_0x3aca91){const _0x35b75a=a1_0x8d25;return resolve(homedir(),PRODUCT_CONFIG[_0x35b75a(0x9a)],'cache',_0x2a441c,fingerprintAccessKey(_0x3aca91),'my-apps.json');}export function readCachedAppList(_0x14595c,_0x21e23a){const _0x3590f1=a1_0x8d25;if(!_0x21e23a?.['trim']())return null;const _0x5cd7e6=getAppCacheFilePath(_0x14595c,_0x21e23a);if(!existsSync(_0x5cd7e6))return null;try{const _0x5e56ec=readFileSync(_0x5cd7e6,'utf8');if(!_0x5e56ec[_0x3590f1(0x92)]())return null;const _0x301e4a=JSON[_0x3590f1(0x93)](_0x5e56ec);if(!Array[_0x3590f1(0x9e)](_0x301e4a[_0x3590f1(0x9f)]))return null;return _0x301e4a;}catch{return null;}}export function writeCachedAppList(_0x3ddfd8,_0x43852d,_0x2dd6cb){const _0xf761a0=a1_0x8d25,_0x3f4806=getAppCacheFilePath(_0x3ddfd8,_0x43852d),_0x5f1cde=dirname(_0x3f4806);!existsSync(_0x5f1cde)&&mkdirSync(_0x5f1cde,{'recursive':!![]});const _0x46a5e5=_0x3f4806+_0xf761a0(0x9b);try{writeFileSync(_0x46a5e5,JSON[_0xf761a0(0xaa)](_0x2dd6cb,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x46a5e5,_0x3f4806);}catch(_0x20e37f){if(_0x20e37f['code']===_0xf761a0(0xa1)||_0x20e37f[_0xf761a0(0x95)]===_0xf761a0(0xac)||_0x20e37f[_0xf761a0(0x95)]===_0xf761a0(0xa8)){writeFileSync(_0x3f4806,JSON[_0xf761a0(0xaa)](_0x2dd6cb,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x46a5e5);}catch{}}else throw _0x20e37f;}}catch(_0x1b9593){try{unlinkSync(_0x46a5e5);}catch{}throw _0x1b9593;}return _0x3f4806;}export function resolveCachedAppCode(_0x3724f6,_0x3933b4,_0x48ea07){const _0xca548f=a1_0x8d25;if(!_0x3724f6)return undefined;const _0x5a6534=readCachedAppList(_0x3933b4,_0x48ea07),_0x5bdd8b=_0x5a6534?.[_0xca548f(0x9f)]['find'](_0x1e735d=>_0x1e735d[_0xca548f(0x96)]===_0x3724f6);return _0x5bdd8b?.[_0xca548f(0x9d)]?.[_0xca548f(0x92)]()||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_0xb29d50=a2_0x5ba1;(function(_0x41c948,_0x4e7e0d){const _0x492861=a2_0x5ba1,_0x583710=_0x41c948();while(!![]){try{const _0x41bca3=-parseInt(_0x492861(0x19d))/0x1+-parseInt(_0x492861(0x189))/0x2+-parseInt(_0x492861(0x190))/0x3+-parseInt(_0x492861(0x17f))/0x4*(-parseInt(_0x492861(0x1aa))/0x5)+parseInt(_0x492861(0x1b1))/0x6*(parseInt(_0x492861(0x198))/0x7)+parseInt(_0x492861(0x178))/0x8+parseInt(_0x492861(0x182))/0x9;if(_0x41bca3===_0x4e7e0d)break;else _0x583710['push'](_0x583710['shift']());}catch(_0x416e23){_0x583710['push'](_0x583710['shift']());}}}(a2_0x1736,0xc1bda));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';function a2_0x5ba1(_0x14b5ba,_0x316e5c){_0x14b5ba=_0x14b5ba-0x16f;const _0x17361d=a2_0x1736();let _0x5ba164=_0x17361d[_0x14b5ba];return _0x5ba164;}function a2_0x1736(){const _0x5df18b=['production','i18nInfo','App\x20\x22','8633152pTsJzi','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','fetchedAt','mergedCli','filter','projectPath','appcode','316Fbcsuy','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','items','7034112JrgPbU','Missing\x20app\x20name.','appCode','\x20cached\x20app(s)\x20for\x20env=\x22','write','Read\x20app\x20list\x20from\x20local\x20cache\x20only','isArray','1489606AFhKWo','entries','boolean','defaultApp','cachePath','bool','Use\x20global\x20config\x20scope','3965625ALQACq','read','../../commands/app/remote-source.js','Loaded\x20','enableI18n','accessKey','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','langs','42YykkoP','init','../../context.js','appName','.appcode\x20to\x20.lovrabet.json.','1016908oPqdIr','string','args','Target\x20environment\x20(default:\x20current\x20env)','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','\x20app\x20use\x20<name>\x20[--global]','No\x20apps\x20found\x20on\x20the\x20platform.','remote','source','length','cache','Refreshed\x20app\x20cache\x20with\x20','env','33170AUTyfW','appOwnerName','str','app','Initialize\x20','Read\x20from\x20local\x20cache\x20only','envName','1492350dSNrSc','newConfigFileName','trim','list','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','\x22\x20not\x20found.','global','appPublishStatus','name','Default\x20app\x20candidate\x20set\x20to\x20\x22','map','globalPath','config','pull','No\x20cached\x20apps\x20found.','push','local','from','validation','type','no-cache','Usage:\x20','project-default'];a2_0x1736=function(){return _0x5df18b;};return a2_0x1736();}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_0xb29d50(0x1b8),'type':'boolean','description':a2_0xb29d50(0x18f),'default':![]};function collectFlags(_0x537d22,_0x225db4){const _0x5ea16d=a2_0xb29d50,_0x130752={};for(const _0x24bb5f of _0x225db4){const _0x17586b=_0x24bb5f[_0x5ea16d(0x171)]===_0x5ea16d(0x18b)?_0x537d22['bool'](_0x24bb5f['name']):_0x537d22[_0x5ea16d(0x1ac)](_0x24bb5f['name']);if(_0x17586b!==''&&_0x17586b!==![])_0x130752[_0x24bb5f[_0x5ea16d(0x1ba)]]=_0x17586b;}if(_0x537d22['nonInteractive'])_0x130752['nonInteractive']=!![];return _0x130752;}function normalizeLanguages(_0x2e4f1a){const _0x1b40ea=a2_0xb29d50;if(!Array[_0x1b40ea(0x188)](_0x2e4f1a))return[];return _0x2e4f1a[_0x1b40ea(0x17c)](_0x5e628f=>typeof _0x5e628f===_0x1b40ea(0x19e))[_0x1b40ea(0x1bc)](_0x4271ff=>_0x4271ff[_0x1b40ea(0x1b3)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x296935){const _0x4dff03=a2_0xb29d50,_0x296f72=normalizeLanguages(_0x296935['i18nInfo']?.[_0x4dff03(0x197)]);return{'enableI18n':typeof _0x296935[_0x4dff03(0x194)]===_0x4dff03(0x18b)?_0x296935[_0x4dff03(0x194)]:null,'languages':_0x296f72,'i18nInfo':_0x296935[_0x4dff03(0x176)]?{..._0x296935[_0x4dff03(0x176)],'langs':_0x296f72[_0x4dff03(0x1a6)]?_0x296f72:null}:null};}const initDef={'service':a2_0xb29d50(0x1ad),'command':a2_0xb29d50(0x199),'description':a2_0xb29d50(0x1ae)+PRODUCT_CONFIG[a2_0xb29d50(0x1b2)]+'\x20config\x20file','risk':a2_0xb29d50(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x58bd5b){return await runInit(collectFlags(_0x58bd5b,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0xb29d50(0x1ad),'command':a2_0xb29d50(0x1b4),'description':a2_0xb29d50(0x196),'risk':a2_0xb29d50(0x191),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0xb29d50(0x1a9),'type':a2_0xb29d50(0x19e),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xb29d50(0x1c2),'type':a2_0xb29d50(0x18b),'description':a2_0xb29d50(0x187),'default':![]},{'name':a2_0xb29d50(0x172),'type':a2_0xb29d50(0x18b),'description':a2_0xb29d50(0x179),'default':![]}],async 'execute'(_0x525e77){const _0xd4845e=a2_0xb29d50,_0x3c4e9f=_0x525e77['str'](_0xd4845e(0x1a9))||_0x525e77[_0xd4845e(0x1b0)]||getEnv()||'production',_0x4c5ea0=_0x525e77[_0xd4845e(0x18e)]('local'),_0x498014=_0x525e77[_0xd4845e(0x18e)](_0xd4845e(0x172)),{readRawConfigWithLayers:_0x5a1759,resolveDefaultAppSource:_0x1f805f,getLocalAppAliases:_0x1850d8}=await import('../../context.js'),{getRemoteAppList:_0x319260}=await import(_0xd4845e(0x192)),{config:_0x19d795,layers:_0x4a7cfd}=_0x5a1759(),_0x218a02=_0x1f805f(_0x4a7cfd),{defaultApp:_0x41d195}=_0x19d795,_0x1e233f=await _0x319260({'env':_0x3c4e9f,'accessKey':_0x525e77[_0xd4845e(0x195)],'localOnly':_0x4c5ea0,'noCache':_0x498014}),_0x5e0d1a=_0x1e233f[_0xd4845e(0x181)]['map'](_0x475da4=>{const _0x255467=_0xd4845e;return{'name':_0x475da4[_0x255467(0x19b)],'appcode':_0x475da4[_0x255467(0x184)],'named':!![],'definedIn':_0x255467(0x1a4),'isDefault':_0x475da4[_0x255467(0x19b)]===_0x41d195,...buildAppProfileListFields(_0x3c4e9f),...buildRemoteAppI18nFields(_0x475da4),'source':_0x1e233f[_0x255467(0x1a5)],'owner':_0x475da4[_0x255467(0x1ab)]??null,'status':_0x475da4[_0x255467(0x1b9)]??null,'cachedAt':_0x1e233f[_0x255467(0x17a)]};}),_0x495cf0=_0x1850d8(_0x19d795);let _0x258939=0x0;for(const [_0x4320d3,_0x44c7a6]of Object[_0xd4845e(0x18a)](_0x495cf0)){const _0x1c6454=typeof _0x44c7a6['appcode']===_0xd4845e(0x19e)?_0x44c7a6[_0xd4845e(0x17e)]['trim']():'';if(!_0x1c6454)continue;_0x258939+=0x1,_0x5e0d1a[_0xd4845e(0x1c1)]({'name':_0x4320d3,'appcode':_0x1c6454,'named':!![],'definedIn':_0xd4845e(0x1c2),'isDefault':_0x4320d3===_0x41d195,...buildAppProfileListFields(_0x3c4e9f),'source':_0xd4845e(0x1be),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5e0d1a,_0x525e77[_0xd4845e(0x17b)]);if(_0x5e0d1a[_0xd4845e(0x1a6)]===0x0)return{'ok':!![],'data':[],'message':_0x1e233f[_0xd4845e(0x1a5)]===_0xd4845e(0x1a7)?_0xd4845e(0x1c0):_0xd4845e(0x1a3)};const _0x2f5531=_0x5e0d1a['find'](_0x27fc96=>_0x27fc96['isCurrent']===!![]),_0x4fa45a=_0x41d195??_0x2f5531?.['name']??null,_0x39a00b={'env':_0x3c4e9f,'source':_0x1e233f[_0xd4845e(0x1a5)],'fetchedAt':_0x1e233f[_0xd4845e(0x17a)],'cachePath':_0x1e233f[_0xd4845e(0x18d)],'globalPath':_0x4a7cfd[_0xd4845e(0x1bd)]??null,'projectPath':_0x4a7cfd[_0xd4845e(0x17d)]??null,'defaultApp':_0x4fa45a,'defaultAppSource':_0x41d195!=null?_0x218a02:null,'localAliasCount':_0x258939};return{'ok':!![],'data':{'items':_0x5e0d1a,'meta':_0x39a00b}};}},pullDef={'service':a2_0xb29d50(0x1ad),'command':a2_0xb29d50(0x1bf),'description':a2_0xb29d50(0x1b5),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0xb29d50(0x1a9),'type':'string','description':a2_0xb29d50(0x1a0),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xb29d50(0x1c2),'type':a2_0xb29d50(0x18b),'description':a2_0xb29d50(0x1af),'default':![]},{'name':a2_0xb29d50(0x172),'type':a2_0xb29d50(0x18b),'description':a2_0xb29d50(0x179),'default':![]}],async 'execute'(_0x4749bf){const _0x5737b9=a2_0xb29d50,_0x58761c=_0x4749bf[_0x5737b9(0x1ac)](_0x5737b9(0x1a9))||_0x4749bf[_0x5737b9(0x1b0)]||getEnv()||_0x5737b9(0x175),_0x141d0f=_0x4749bf['bool']('local'),_0x3b91bc=_0x4749bf[_0x5737b9(0x18e)](_0x5737b9(0x172)),{getRemoteAppList:_0x962fab}=await import(_0x5737b9(0x192)),_0x1247a5=await _0x962fab({'env':_0x58761c,'accessKey':_0x4749bf['accessKey'],'localOnly':_0x141d0f,'noCache':_0x3b91bc});return{'ok':!![],'data':{'total':_0x1247a5['items'][_0x5737b9(0x1a6)],'env':_0x58761c,'source':_0x1247a5['source'],'fetchedAt':_0x1247a5[_0x5737b9(0x17a)],'cachePath':_0x1247a5[_0x5737b9(0x18d)]},'message':_0x1247a5[_0x5737b9(0x1a5)]===_0x5737b9(0x1a7)?_0x5737b9(0x193)+_0x1247a5[_0x5737b9(0x181)][_0x5737b9(0x1a6)]+_0x5737b9(0x185)+_0x58761c+'\x22.':_0x5737b9(0x1a8)+_0x1247a5[_0x5737b9(0x181)][_0x5737b9(0x1a6)]+'\x20app(s)\x20for\x20env=\x22'+_0x58761c+'\x22.'};}},useDef={'service':a2_0xb29d50(0x1ad),'command':'use','description':'Set\x20the\x20fallback\x20app\x20candidate','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0xb29d50(0x1ba),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x25ab42){const _0xa5d1b=a2_0xb29d50;if(!_0x25ab42['args'][0x0])throw CliErrors[_0xa5d1b(0x170)](_0xa5d1b(0x183),_0xa5d1b(0x173)+CLI_BIN_NAME+_0xa5d1b(0x1a2));},async 'execute'(_0x2d1508){const _0x481267=a2_0xb29d50,_0xd0693=_0x2d1508[_0x481267(0x19f)][0x0];if(!_0xd0693)throw CliErrors['validation'](_0x481267(0x183),_0x481267(0x173)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x41e390,resolveLocalAppAliasCode:_0x2e5f2e}=await import(_0x481267(0x19a)),{readCachedAppList:_0x461d88}=await import('../../commands/app/cache.js'),_0x438218=_0x2d1508[_0x481267(0x1ac)](_0x481267(0x1a9)),_0x3e10e9=_0x41e390(_0x438218?{'env':_0x438218}:{}),_0x5e6abc=_0x461d88(_0x3e10e9[_0x481267(0x1a9)],_0x3e10e9[_0x481267(0x195)]),_0x3e7d06=_0x5e6abc?.[_0x481267(0x181)]['find'](_0xb77257=>_0xb77257['appName']===_0xd0693),_0x29e207=_0x2e5f2e(_0x3e10e9['raw']??{},_0xd0693);if(!_0x3e7d06&&!_0x29e207&&_0x3e10e9[_0x481267(0x18c)]!==_0xd0693){const _0x3c23fd=[..._0x5e6abc?.[_0x481267(0x181)][_0x481267(0x1bc)](_0x9556ee=>_0x9556ee[_0x481267(0x19b)])??[]],_0xbd89d=_0x3c23fd['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x481267(0x180)+_0xd0693+_0x481267(0x19c):'Available\x20remote\x20apps:\x20'+Array[_0x481267(0x16f)](new Set(_0x3c23fd))['join'](',\x20')+_0x481267(0x1a1);throw CliErrors['validation'](_0x481267(0x177)+_0xd0693+_0x481267(0x1b7),_0xbd89d);}const _0x23f8b7=_0x2d1508[_0x481267(0x18e)](_0x481267(0x1b8));let _0x5134b9;if(_0x23f8b7)_0x5134b9={'global':!![]};else{const {isInProject:_0x44a609}=await import(_0x481267(0x19a)),_0x4096c8=_0x44a609();_0x5134b9=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x481267(0x174),'inProject':_0x4096c8}));}const _0x53e6a0=readConfig(_0x5134b9);return _0x53e6a0['defaultApp']=_0xd0693,writeConfig(_0x53e6a0,_0x5134b9),{'ok':!![],'message':_0x481267(0x1bb)+_0xd0693+'\x22'+scopeLabel(_0x5134b9)+'.'};}},importDef={'service':a2_0xb29d50(0x1ad),'command':'import','description':a2_0xb29d50(0x1b6),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x1419b6){return await runInitImport(collectFlags(_0x1419b6,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(_0x617f50,_0x55ae26){const _0x3537f3=a3_0x50f5,_0x1df167=_0x617f50();while(!![]){try{const _0x4e7ec4=parseInt(_0x3537f3(0xbb))/0x1*(parseInt(_0x3537f3(0xc5))/0x2)+-parseInt(_0x3537f3(0xb9))/0x3+-parseInt(_0x3537f3(0xc4))/0x4*(-parseInt(_0x3537f3(0xbf))/0x5)+-parseInt(_0x3537f3(0xc0))/0x6+-parseInt(_0x3537f3(0xbe))/0x7+parseInt(_0x3537f3(0xc1))/0x8+-parseInt(_0x3537f3(0xc2))/0x9;if(_0x4e7ec4===_0x55ae26)break;else _0x1df167['push'](_0x1df167['shift']());}catch(_0x2b748a){_0x1df167['push'](_0x1df167['shift']());}}}(a3_0x282f,0x2a952));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0x50f5(_0x283b7f,_0x2b3ef2){_0x283b7f=_0x283b7f-0xb8;const _0x282fc5=a3_0x282f();let _0x50f5c9=_0x282fc5[_0x283b7f];return _0x50f5c9;}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x476350=a3_0x50f5,_0x25899f=join(__dirname,'../../../mock/app-list.json'),_0x55c62a=readFileSync(_0x25899f,_0x476350(0xbd));return JSON[_0x476350(0xbc)](_0x55c62a);}function a3_0x282f(){const _0x55ecbb=['data','2snRXOM','parse','utf-8','111447rMtsHp','5NMUdAp','116112NVAnKo','613928Sjkyws','545139YBiXeF','Mock\x20API\x20error:\x20','418772JFDosH','201728ZjXgZl','success','errorMsg','tableData','338700ctYEZq'];a3_0x282f=function(){return _0x55ecbb;};return a3_0x282f();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x188caf=a3_0x50f5,_0x22d1ca=getMockAppList();if(!_0x22d1ca[_0x188caf(0xc6)])throw new Error(_0x188caf(0xc3)+_0x22d1ca[_0x188caf(0xc7)]+'\x20('+_0x22d1ca['errorCode']+')');return _0x22d1ca[_0x188caf(0xba)][_0x188caf(0xb8)];}
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(_0x29640f,_0x9dbca2){const _0x32c426=a4_0x2a2f,_0x353ee2=_0x29640f();while(!![]){try{const _0x4d9c2c=-parseInt(_0x32c426(0x14b))/0x1+-parseInt(_0x32c426(0x149))/0x2+-parseInt(_0x32c426(0x14f))/0x3*(parseInt(_0x32c426(0x14e))/0x4)+parseInt(_0x32c426(0x147))/0x5+-parseInt(_0x32c426(0x148))/0x6+-parseInt(_0x32c426(0x141))/0x7+-parseInt(_0x32c426(0x142))/0x8*(-parseInt(_0x32c426(0x144))/0x9);if(_0x4d9c2c===_0x9dbca2)break;else _0x353ee2['push'](_0x353ee2['shift']());}catch(_0x18c2c6){_0x353ee2['push'](_0x353ee2['shift']());}}}(a4_0xc42c,0x992f9));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';function a4_0x2a2f(_0x3500bf,_0x481af6){_0x3500bf=_0x3500bf-0x140;const _0xc42cc3=a4_0xc42c();let _0x2a2f66=_0xc42cc3[_0x3500bf];return _0x2a2f66;}function a4_0xc42c(){const _0x53bdd2=['5342586kzZXai','2190400XBCjaN','toLowerCase','342090FSANCU','remote','fetchedAt','1012936klaYVR','3TShlLB','trim','2827748QPJXDk','8YSRNQC','mock','21219174DBWVdE','items','cache','6273410amHTfH'];a4_0xc42c=function(){return _0x53bdd2;};return a4_0xc42c();}export function shouldUseMockRemoteApps(){const _0x50e8a0=a4_0x2a2f,_0x3ecab1=(productEnv('APP_LIST_SOURCE')||'')[_0x50e8a0(0x140)]()[_0x50e8a0(0x14a)]();return _0x3ecab1===_0x50e8a0(0x143);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x1a5a63){const _0x4b70c7=a4_0x2a2f,{env:_0x3d23e8,accessKey:_0x12e3ab,localOnly:localOnly=![],noCache:noCache=![]}=_0x1a5a63,_0x377d76=readCachedAppList(_0x3d23e8,_0x12e3ab),_0x4f2c14=_0x12e3ab?.[_0x4b70c7(0x140)]()?getAppCacheFilePath(_0x3d23e8,_0x12e3ab):null;if(localOnly)return{'items':_0x377d76?.[_0x4b70c7(0x145)]??[],'source':_0x4b70c7(0x146),'fetchedAt':_0x377d76?.['fetchedAt']??null,'cachePath':_0x4f2c14};try{const _0x1fe571=await getRemoteAppItems(),_0x3cb1e8=shouldUseMockRemoteApps()?_0x4b70c7(0x143):_0x4b70c7(0x14c),_0x208013=new Date()['toISOString'](),_0x4c683a=_0x12e3ab?.['trim']()?writeCachedAppList(_0x3d23e8,_0x12e3ab,{'env':_0x3d23e8,'fetchedAt':_0x208013,'source':_0x3cb1e8,'items':_0x1fe571}):null;return{'items':_0x1fe571,'source':_0x3cb1e8,'fetchedAt':_0x208013,'cachePath':_0x4c683a};}catch(_0xd56cd7){if(!noCache&&_0x377d76)return{'items':_0x377d76[_0x4b70c7(0x145)],'source':_0x4b70c7(0x146),'fetchedAt':_0x377d76[_0x4b70c7(0x14d)],'cachePath':_0x4f2c14};throw _0xd56cd7;}}
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(_0x39c1df,_0x437bd2){const _0x1c8ff1=a5_0x5c11,_0x2d1475=_0x39c1df();while(!![]){try{const _0x526314=-parseInt(_0x1c8ff1(0xf8))/0x1*(-parseInt(_0x1c8ff1(0xf6))/0x2)+parseInt(_0x1c8ff1(0x102))/0x3*(parseInt(_0x1c8ff1(0xf5))/0x4)+-parseInt(_0x1c8ff1(0xf7))/0x5*(-parseInt(_0x1c8ff1(0xef))/0x6)+-parseInt(_0x1c8ff1(0xec))/0x7*(parseInt(_0x1c8ff1(0xfd))/0x8)+-parseInt(_0x1c8ff1(0x101))/0x9*(-parseInt(_0x1c8ff1(0xf1))/0xa)+-parseInt(_0x1c8ff1(0xed))/0xb+parseInt(_0x1c8ff1(0xfb))/0xc*(parseInt(_0x1c8ff1(0xfc))/0xd);if(_0x526314===_0x437bd2)break;else _0x2d1475['push'](_0x2d1475['shift']());}catch(_0x10b79e){_0x2d1475['push'](_0x2d1475['shift']());}}}(a5_0x762f,0x38aad));import{CLI_BIN_NAME}from'../../constant/cli.js';function a5_0x5c11(_0x40b415,_0x4273db){_0x40b415=_0x40b415-0xea;const _0x762f71=a5_0x762f();let _0x5c11b4=_0x762f71[_0x40b415];return _0x5c11b4;}import{formatScopeLabel}from'../../commands/common/config-policy.js';function a5_0x762f(){const _0x274049=['name','21496FFsBPj','2PjHPuw','17065SVYjCW','21409btObks','global','defaultApp','105048avTbpp','403voDnEO','8zKWIqw','currentApp','appcode','project','225tOdtyQ','231oGkCPA','named','appCode','3224942yZrCqI','4442086pyAWkm','find','570oOjMig','trim','26330WwQHGq','isCurrent','local'];a5_0x762f=function(){return _0x274049;};return a5_0x762f();}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x18e522,_0x326aff){const _0x5e067c=a5_0x5c11;if(!_0x326aff)return;const _0x7d747e=!!(_0x326aff[_0x5e067c(0xfe)]??_0x326aff[_0x5e067c(0xfa)]);for(const _0x8f6f0a of _0x18e522){_0x8f6f0a[_0x5e067c(0xf2)]=![];}const _0x12de2a=_0x326aff[_0x5e067c(0xeb)]!=null?String(_0x326aff[_0x5e067c(0xeb)])[_0x5e067c(0xf0)]():'';if(_0x7d747e){const _0x470fc0=_0x326aff[_0x5e067c(0xfe)]??_0x326aff[_0x5e067c(0xfa)];if(_0x470fc0){const _0x49ed9b=_0x18e522[_0x5e067c(0xee)](_0x35ab9f=>_0x35ab9f[_0x5e067c(0xea)]===!![]&&_0x35ab9f['name']===_0x470fc0&&_0x35ab9f['definedIn']===_0x5e067c(0xf3)),_0x1ddb8e=_0x49ed9b??_0x18e522['find'](_0x426d6d=>_0x426d6d['named']===!![]&&_0x426d6d[_0x5e067c(0xf4)]===_0x470fc0);_0x1ddb8e&&(_0x1ddb8e[_0x5e067c(0xf2)]=!![]);}return;}if(!_0x12de2a)return;for(const _0x3d3aeb of _0x18e522){String(_0x3d3aeb[_0x5e067c(0xff)]??'')[_0x5e067c(0xf0)]()===_0x12de2a&&(_0x3d3aeb[_0x5e067c(0xf2)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x1f6519){const _0x1f60ef=a5_0x5c11;return formatScopeLabel(_0x1f6519[_0x1f60ef(0xf9)]?_0x1f60ef(0xf9):_0x1f60ef(0x100));}
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
- const a6_0x117ab0=a6_0x3883;(function(_0x280d7b,_0x213d99){const _0x2f2904=a6_0x3883,_0x49880c=_0x280d7b();while(!![]){try{const _0x2c1187=parseInt(_0x2f2904(0x172))/0x1*(-parseInt(_0x2f2904(0x153))/0x2)+parseInt(_0x2f2904(0x167))/0x3+-parseInt(_0x2f2904(0x15b))/0x4+parseInt(_0x2f2904(0x133))/0x5+-parseInt(_0x2f2904(0x149))/0x6+-parseInt(_0x2f2904(0x159))/0x7+-parseInt(_0x2f2904(0x146))/0x8*(-parseInt(_0x2f2904(0x154))/0x9);if(_0x2c1187===_0x213d99)break;else _0x49880c['push'](_0x49880c['shift']());}catch(_0x3c2d90){_0x49880c['push'](_0x49880c['shift']());}}}(a6_0x165e,0xa1143));function a6_0x165e(){const _0x158629=['string','production','stdout','1154037ggXoUg','login','env','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20config.','\x20scope.','yes','newConfigFileName','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','join','\x20auth\x20status','167abBVNo','\x20Verify:\x20','Shorthand\x20for\x20--access-key','ClientAk','No\x20AccessKey\x20found\x20in\x20','Show\x20current\x20authentication\x20status','AccessKey\x20(ak_xxx...)','write','isTTY','length','Then\x20verify\x20with:\x20','auth','trim','\x20Current\x20env:\x20','accessKey','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','bool','`auth\x20login`\x20does\x20not\x20support\x20--yes.','stdin','global-default','daily','4867480zwJubR','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Read\x20from\x20global\x20config\x20(default)','\x20doctor','Clear\x20from\x20global\x20config\x20(default)','repeat','global','boolean','Invalid\x20accessKey\x20format:\x20\x22','Write\x20to\x20global\x20config\x20(default)','nonInteractive','Clear\x20accessKey\x20from\x20config','project','=ak_xxx','access-key','Option\x20C:\x20environment\x20variable','test','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','slice','1848MGrnbx','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','6643260MhnlYs','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','\x20(via\x20','Tip:\x20you\x20can\x20also\x20run:','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20config.\x20Nothing\x20to\x20clear.','AccessKey\x20cleared\x20from\x20','3284ogOAPw','74799fzckzC','Auth\x20config\x20reinitialized\x20in\x20','envName','userCenterDisplayName','development','3533460kLtJcy','init','2928132slCxcj','push','Missing\x20accessKey.','str','Auth\x20mode:\x20','AccessKey\x20saved\x20to\x20','validation','\x20auth\x20login\x20--access-key\x20<ak_xxx>','cancelled'];a6_0x165e=function(){return _0x158629;};return a6_0x165e();}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x3883(_0x4a8b7c,_0xf4ba4c){_0x4a8b7c=_0x4a8b7c-0x120;const _0x165e9a=a6_0x165e();let _0x388342=_0x165e9a[_0x4a8b7c];return _0x388342;}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 _0x573f37=a6_0x3883;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x573f37(0x157)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x573f37(0x14d)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x573f37(0x162));}function buildAccessKeySetupGuide(){const _0x245122=a6_0x3883;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x245122(0x157)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x245122(0x16f)][_0x245122(0x170)]('\x0a');}function canPromptForAccessKey(_0x5f2a28){const _0x2876a3=a6_0x3883;return!_0x5f2a28[_0x2876a3(0x13d)]&&process[_0x2876a3(0x130)][_0x2876a3(0x126)]!==![]&&process[_0x2876a3(0x166)][_0x2876a3(0x126)]!==![];}function resolveAuthScopeFlags(_0x48f911){const _0x41ef97=a6_0x3883;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x48f911['bool']('global'),'explicitProject':_0x48f911[_0x41ef97(0x12e)](_0x41ef97(0x13f)),'policy':_0x41ef97(0x131)}));}async function resolveAuthWriteInput(_0x53e584){const _0x48cb60=a6_0x3883;let _0x13da85=(_0x53e584[_0x48cb60(0x15e)](_0x48cb60(0x141))||_0x53e584[_0x48cb60(0x15e)]('ak')||'')['trim']();const _0x3b39af=(_0x53e584[_0x48cb60(0x15e)](_0x48cb60(0x169))||'')[_0x48cb60(0x12a)]();if(!_0x13da85&&canPromptForAccessKey(_0x53e584))try{showAccessKeyCreateHint(),_0x13da85=await promptAccessKey('');}catch(_0x30e86c){if(isAbortPrompt(_0x30e86c))throw CliErrors[_0x48cb60(0x163)]();throw _0x30e86c;}if(!_0x13da85)throw CliErrors[_0x48cb60(0x161)](_0x48cb60(0x15d),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x48cb60(0x143)](_0x13da85))throw CliErrors[_0x48cb60(0x161)](_0x48cb60(0x13b)+_0x13da85+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x3b39af)return{'accessKey':_0x13da85};const _0x235617=normalizeEnv(_0x3b39af);return{'accessKey':_0x13da85,'env':isDaily(_0x235617)?_0x48cb60(0x132):isDev(_0x235617)?_0x48cb60(0x158):_0x48cb60(0x165)};}export const authDefinitions=[{'service':a6_0x117ab0(0x129),'command':a6_0x117ab0(0x168),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a6_0x117ab0(0x125),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x117ab0(0x141),'type':a6_0x117ab0(0x164),'description':a6_0x117ab0(0x124)},{'name':'ak','type':a6_0x117ab0(0x164),'description':a6_0x117ab0(0x120)},{'name':a6_0x117ab0(0x139),'type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x13c),'default':!![]},{'name':a6_0x117ab0(0x13f),'type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x134),'default':![]}],async 'execute'(_0x45cba4){const _0x9de998=a6_0x117ab0;if(_0x45cba4[_0x9de998(0x12e)](_0x9de998(0x16d)))throw CliErrors[_0x9de998(0x161)](_0x9de998(0x12f),'Use\x20`'+CLI_BIN_NAME+_0x9de998(0x16a)+CLI_BIN_NAME+_0x9de998(0x14f));const _0x5205ff=(_0x45cba4[_0x9de998(0x15e)]('access-key')||_0x45cba4['str']('ak')||'')[_0x9de998(0x12a)]();if(!_0x5205ff&&_0x45cba4[_0x9de998(0x13d)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x58af34=await resolveAuthWriteInput(_0x45cba4),_0x3a825b=resolveAuthScopeFlags(_0x45cba4),_0x774740=readScopedConfig(_0x3a825b);_0x774740[_0x9de998(0x12c)]=_0x58af34[_0x9de998(0x12c)];_0x58af34[_0x9de998(0x169)]&&(_0x774740[_0x9de998(0x169)]=_0x58af34[_0x9de998(0x169)]);writeScopedConfig(_0x774740,_0x3a825b);const _0x5a0cf9=_0x3a825b[_0x9de998(0x139)]?_0x9de998(0x139):'project',_0x4bf974=_0x774740['env']?'\x20Current\x20env:\x20'+_0x774740[_0x9de998(0x169)]+'.':'';return{'ok':!![],'message':_0x9de998(0x160)+_0x5a0cf9+_0x9de998(0x16b)+_0x4bf974+_0x9de998(0x173)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x117ab0(0x129),'command':a6_0x117ab0(0x15a),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a6_0x117ab0(0x125),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x117ab0(0x141),'type':'string','description':a6_0x117ab0(0x124)},{'name':'ak','type':a6_0x117ab0(0x164),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a6_0x117ab0(0x164),'description':a6_0x117ab0(0x12d)},{'name':a6_0x117ab0(0x139),'type':a6_0x117ab0(0x13a),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x134),'default':![]}],async 'execute'(_0x36939c){const _0x4dec70=a6_0x117ab0,_0x5a106a=await resolveAuthWriteInput(_0x36939c),_0x57b9a9=resolveAuthScopeFlags(_0x36939c),_0x5c86ca={'accessKey':_0x5a106a['accessKey']};_0x5a106a['env']&&(_0x5c86ca[_0x4dec70(0x169)]=_0x5a106a[_0x4dec70(0x169)]);writeScopedConfig(_0x5c86ca,_0x57b9a9);const _0x49adc6=_0x57b9a9[_0x4dec70(0x139)]?_0x4dec70(0x139):_0x4dec70(0x13f),_0x38efcf=_0x5c86ca[_0x4dec70(0x169)]?_0x4dec70(0x12b)+_0x5c86ca[_0x4dec70(0x169)]+'.':'';return{'ok':!![],'message':_0x4dec70(0x155)+_0x49adc6+_0x4dec70(0x16c)+_0x38efcf+'\x20Verify:\x20'+CLI_BIN_NAME+_0x4dec70(0x171)};}},{'service':a6_0x117ab0(0x129),'command':'logout','description':a6_0x117ab0(0x13e),'risk':a6_0x117ab0(0x125),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x117ab0(0x139),'type':'boolean','description':a6_0x117ab0(0x137),'default':!![]},{'name':'project','type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x147),'default':![]}],async 'execute'(_0x1540ec){const _0x13b550=a6_0x117ab0,_0x585fe2=resolveAuthScopeFlags(_0x1540ec),_0x1e5819=readScopedConfig(_0x585fe2),_0x5476ab=!!_0x1e5819['accessKey'];delete _0x1e5819[_0x13b550(0x12c)],writeScopedConfig(_0x1e5819,_0x585fe2);const _0x3840f7=_0x585fe2['global']?_0x13b550(0x139):_0x13b550(0x13f);if(_0x5476ab)return{'ok':!![],'message':_0x13b550(0x152)+_0x3840f7+_0x13b550(0x16b)};return{'ok':!![],'message':_0x13b550(0x122)+_0x3840f7+_0x13b550(0x151)};}},{'service':'auth','command':'status','description':a6_0x117ab0(0x123),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x117ab0(0x139),'type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x135),'default':!![]},{'name':a6_0x117ab0(0x13f),'type':a6_0x117ab0(0x13a),'description':a6_0x117ab0(0x144),'default':![]}],async 'execute'(_0x2070fa){const _0x1bd1bd=a6_0x117ab0,_0x5016de=resolveAuthScopeFlags(_0x2070fa),_0x3716b0=readScopedConfig(_0x5016de),_0x2987f5=productEnvName(_0x1bd1bd(0x14b)),_0x2e5159=productEnv(_0x1bd1bd(0x14b))||undefined,_0x2a7d8f=_0x3716b0[_0x1bd1bd(0x12c)]||undefined,_0x33dd13=_0x2e5159||_0x2a7d8f,_0x50e725=_0x2e5159?_0x2987f5+'\x20env\x20var':_0x2a7d8f?(_0x5016de['global']?_0x1bd1bd(0x139):_0x1bd1bd(0x13f))+'\x20config':null,_0x1345ee=[_0x1bd1bd(0x15f)+AUTH_MODE[_0x1bd1bd(0x121)]];if(_0x33dd13){const _0x5c7cf9=_0x33dd13[_0x1bd1bd(0x127)]>0x8?''+_0x33dd13[_0x1bd1bd(0x145)](0x0,0x8)+'*'[_0x1bd1bd(0x138)](_0x33dd13[_0x1bd1bd(0x127)]-0x8):_0x33dd13;_0x1345ee['push']('AccessKey:\x20'+_0x5c7cf9+(_0x50e725?_0x1bd1bd(0x14c)+_0x50e725+')':''));}return!_0x33dd13&&(_0x1345ee[_0x1bd1bd(0x15c)](''),_0x1345ee[_0x1bd1bd(0x15c)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x1345ee[_0x1bd1bd(0x15c)](''),_0x1345ee[_0x1bd1bd(0x15c)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x1bd1bd(0x150)),_0x1345ee['push'](''),_0x1345ee[_0x1bd1bd(0x15c)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x1bd1bd(0x16e)]+')'),_0x1345ee['push'](_0x1bd1bd(0x14a)),_0x1345ee[_0x1bd1bd(0x15c)](''),_0x1345ee[_0x1bd1bd(0x15c)](_0x1bd1bd(0x142)),_0x1345ee['push']('\x20\x20export\x20'+_0x2987f5+_0x1bd1bd(0x140)),_0x1345ee[_0x1bd1bd(0x15c)](''),_0x1345ee[_0x1bd1bd(0x15c)](_0x1bd1bd(0x128)+CLI_BIN_NAME+_0x1bd1bd(0x171)),_0x1345ee[_0x1bd1bd(0x15c)](_0x1bd1bd(0x14e)+CLI_BIN_NAME+_0x1bd1bd(0x136))),{'ok':!![],'message':_0x1345ee['join']('\x0a')};}},{'service':'auth','command':'info','description':a6_0x117ab0(0x148),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5e57fa){const _0x19def5=a6_0x117ab0,_0x54ba59=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x54ba59,'meta':{'env':_0x5e57fa[_0x19def5(0x156)]??_0x19def5(0x165)}}};}}];
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_0x5265(_0x16b289,_0x59ca51){_0x16b289=_0x16b289-0xc2;const _0x4bdcf4=a7_0x4bdc();let _0x52653e=_0x4bdcf4[_0x16b289];return _0x52653e;}(function(_0x17f4dd,_0x4b734b){const _0x39d444=a7_0x5265,_0x4b4b90=_0x17f4dd();while(!![]){try{const _0x40bc36=-parseInt(_0x39d444(0xc5))/0x1*(-parseInt(_0x39d444(0xcd))/0x2)+-parseInt(_0x39d444(0xce))/0x3+-parseInt(_0x39d444(0xca))/0x4*(-parseInt(_0x39d444(0xd4))/0x5)+parseInt(_0x39d444(0xcb))/0x6*(parseInt(_0x39d444(0xc9))/0x7)+-parseInt(_0x39d444(0xc6))/0x8*(-parseInt(_0x39d444(0xd3))/0x9)+-parseInt(_0x39d444(0xcc))/0xa*(-parseInt(_0x39d444(0xd8))/0xb)+parseInt(_0x39d444(0xd7))/0xc*(-parseInt(_0x39d444(0xc2))/0xd);if(_0x40bc36===_0x4b734b)break;else _0x4b4b90['push'](_0x4b4b90['shift']());}catch(_0x5d07aa){_0x4b4b90['push'](_0x4b4b90['shift']());}}}(a7_0x4bdc,0xe3fbb));import{createInterface}from'node:readline';function a7_0x4bdc(){const _0x32d77b=['8971571HjsoNI','5760140pMJogM','6bUEKzP','10exOLxu','20eNyXJB','4545282KnrwxR','stdin','AccessKey\x20(','SIGINT','AccessKey\x20(paste\x20ak_...):\x20','9243YKGGyu','5eUoKIL','trim','stdout','4572gzWQwb','14922941lvibuv','):\x20','AbortPrompt','question','removeListener','once','113087bUWxrP','User\x20aborted\x20prompt','race','140865sNZwkn','2152mZJFDN','name','close'];a7_0x4bdc=function(){return _0x32d77b;};return a7_0x4bdc();}class AbortPrompt extends Error{constructor(){const _0x425aee=a7_0x5265;super(_0x425aee(0xc3)),this['name']=_0x425aee(0xda);}}function createSafeRl(){const _0x4a5560=a7_0x5265,_0x5b0b03=createInterface({'input':process[_0x4a5560(0xcf)],'output':process[_0x4a5560(0xd6)]});let _0x22ca76;const _0xebbeee=new Promise((_0xcefb42,_0x21faa8)=>{const _0x2662fa=_0x4a5560;_0x22ca76=()=>{const _0x5e3e07=a7_0x5265;_0x22ca76&&(_0x5b0b03[_0x5e3e07(0xdc)](_0x5e3e07(0xd1),_0x22ca76),_0x22ca76=undefined);try{_0x5b0b03[_0x5e3e07(0xc8)]();}catch{}_0x21faa8(new AbortPrompt());},_0x5b0b03[_0x2662fa(0xdd)](_0x2662fa(0xd1),_0x22ca76);}),_0x4244a1=()=>{const _0xfc609f=_0x4a5560;_0x22ca76&&(_0x5b0b03[_0xfc609f(0xdc)]('SIGINT',_0x22ca76),_0x22ca76=undefined);try{_0x5b0b03['close']();}catch{}};return{'rl':_0x5b0b03,'abortPromise':_0xebbeee,'disposeSuccess':_0x4244a1};}export async function promptAccessKey(_0x7a9e71=''){const _0x75e1ce=a7_0x5265,{rl:_0x1a78a6,abortPromise:_0x497609,disposeSuccess:_0x25cecd}=createSafeRl(),_0x4b7f38=new Promise(_0x2f225e=>{const _0x45887f=a7_0x5265,_0x27da1d=_0x7a9e71?_0x45887f(0xd0)+_0x7a9e71+_0x45887f(0xd9):_0x45887f(0xd2);_0x1a78a6[_0x45887f(0xdb)](_0x27da1d,_0x55f7ef=>{const _0x460d71=_0x45887f;_0x25cecd(),_0x2f225e(_0x55f7ef[_0x460d71(0xd5)]()||_0x7a9e71);});});return Promise[_0x75e1ce(0xc4)]([_0x4b7f38,_0x497609]);}export function isAbortPrompt(_0x4f82c2){const _0x1e1d4b=a7_0x5265;return _0x4f82c2 instanceof Error&&_0x4f82c2[_0x1e1d4b(0xc7)]===_0x1e1d4b(0xda);}
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
- const a8_0x2b53e7=a8_0x3cd8;function a8_0x1983(){const _0x38bcb2=['353566hnoUim','verbose','bff','6ETzoCw','1833466WhFcMV','1901007xxKOrE','createdTime','93072BXHEuD','22330gvZPwi','7403sZOSxh','detail','2236000yysJhh','8ZJgALB','729mdqzrq','updatedTime','Script\x20ID','5780TUPLMr','description'];a8_0x1983=function(){return _0x38bcb2;};return a8_0x1983();}(function(_0x76cb4b,_0x3f3693){const _0x38558b=a8_0x3cd8,_0x236209=_0x76cb4b();while(!![]){try{const _0x33acc0=-parseInt(_0x38558b(0x188))/0x1+-parseInt(_0x38558b(0x18c))/0x2+parseInt(_0x38558b(0x183))/0x3*(-parseInt(_0x38558b(0x186))/0x4)+-parseInt(_0x38558b(0x193))/0x5*(-parseInt(_0x38558b(0x18b))/0x6)+parseInt(_0x38558b(0x18f))/0x7*(parseInt(_0x38558b(0x194))/0x8)+parseInt(_0x38558b(0x18d))/0x9+-parseInt(_0x38558b(0x190))/0xa*(-parseInt(_0x38558b(0x191))/0xb);if(_0x33acc0===_0x3f3693)break;else _0x236209['push'](_0x236209['shift']());}catch(_0x2e2c09){_0x236209['push'](_0x236209['shift']());}}}(a8_0x1983,0x87086));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x3cd8(_0x437a3b,_0x559219){_0x437a3b=_0x437a3b-0x183;const _0x1983a1=a8_0x1983();let _0x3cd82c=_0x1983a1[_0x437a3b];return _0x3cd82c;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x2b53e7(0x18a),'command':a8_0x2b53e7(0x192),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':'read','flags':[{...ID_FLAG,'description':a8_0x2b53e7(0x185)},VERBOSE_FLAG],async 'execute'(_0x51bb24){const _0x4e181c=a8_0x2b53e7,_0x4edd81=await getBffScriptInfo(_0x51bb24['num']('id')),_0x1ddd28=_0x51bb24['bool'](_0x4e181c(0x189));if(_0x1ddd28)return{'ok':!![],'data':_0x4edd81};return{'ok':!![],'data':{'id':_0x4edd81['id'],'appCode':_0x4edd81['appCode'],'functionName':_0x4edd81['functionName']??'','scriptType':_0x4edd81['scriptType'],'description':_0x4edd81[_0x4e181c(0x187)]||'(none)','createdTime':_0x4edd81[_0x4e181c(0x18e)]??'','updatedTime':_0x4edd81[_0x4e181c(0x184)]??''}};}};
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_0x51ee34=a9_0x52a0;(function(_0x5abb47,_0x21289f){const _0x346637=a9_0x52a0,_0x1225fa=_0x5abb47();while(!![]){try{const _0x2027bd=parseInt(_0x346637(0x1aa))/0x1*(parseInt(_0x346637(0x1ab))/0x2)+-parseInt(_0x346637(0x1a9))/0x3+parseInt(_0x346637(0x1b8))/0x4*(-parseInt(_0x346637(0x1b7))/0x5)+-parseInt(_0x346637(0x1b9))/0x6+-parseInt(_0x346637(0x1b1))/0x7+-parseInt(_0x346637(0x1b5))/0x8+parseInt(_0x346637(0x1af))/0x9*(parseInt(_0x346637(0x1a8))/0xa);if(_0x2027bd===_0x21289f)break;else _0x1225fa['push'](_0x1225fa['shift']());}catch(_0x778e62){_0x1225fa['push'](_0x1225fa['shift']());}}}(a9_0x387d,0xd3411));import{executeSdkBff}from'../../core/sdk-client.js';function a9_0x387d(){const _0x5665d8=['80PMfGgO','4613358OSDKJh','BFF\x20function\x20name\x20to\x20execute','38788460sBpdBF','1206204bKhsWB','51619OfxaUN','38oYOIwJ','exec','now','read','9FPpEaX','params','8277297AGwTNu','str','BFF\x20executed\x20in\x20','name','11411344ctczJH','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','53615NuozLR'];a9_0x387d=function(){return _0x5665d8;};return a9_0x387d();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a9_0x52a0(_0x1de5c9,_0x5acccb){_0x1de5c9=_0x1de5c9-0x1a8;const _0x387d59=a9_0x387d();let _0x52a040=_0x387d59[_0x1de5c9];return _0x52a040;}export const bffExec={'service':'bff','command':a9_0x51ee34(0x1ac),'description':a9_0x51ee34(0x1b6),'risk':a9_0x51ee34(0x1ae),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x51ee34(0x1ba)},PARAMS_FLAG],async 'execute'(_0x55a9a6){const _0x45c902=a9_0x51ee34,_0x1a049f=parseJsonParams(_0x55a9a6[_0x45c902(0x1b2)](_0x45c902(0x1b0))),_0x5f2b7d=Date[_0x45c902(0x1ad)](),_0x27ff7c=await executeSdkBff(_0x55a9a6[_0x45c902(0x1b2)](_0x45c902(0x1b4)),_0x1a049f),_0x51953b=Date[_0x45c902(0x1ad)]()-_0x5f2b7d;return{'ok':!![],'data':{'result':_0x27ff7c,'elapsed':_0x51953b},'message':_0x45c902(0x1b3)+_0x51953b+'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(_0x460564,_0x517d1e){const _0x2afeff=a10_0x4939,_0x2159c2=_0x460564();while(!![]){try{const _0x48c1a2=-parseInt(_0x2afeff(0x76))/0x1+-parseInt(_0x2afeff(0x74))/0x2+parseInt(_0x2afeff(0x79))/0x3+-parseInt(_0x2afeff(0x72))/0x4*(parseInt(_0x2afeff(0x71))/0x5)+parseInt(_0x2afeff(0x75))/0x6+parseInt(_0x2afeff(0x73))/0x7+parseInt(_0x2afeff(0x77))/0x8*(parseInt(_0x2afeff(0x78))/0x9);if(_0x48c1a2===_0x517d1e)break;else _0x2159c2['push'](_0x2159c2['shift']());}catch(_0x520296){_0x2159c2['push'](_0x2159c2['shift']());}}}(a10_0x4b0e,0xd2a2d));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x4939(_0xd0f907,_0x285bdb){_0xd0f907=_0xd0f907-0x71;const _0x4b0ed5=a10_0x4b0e();let _0x493959=_0x4b0ed5[_0xd0f907];return _0x493959;}function a10_0x4b0e(){const _0x5de274=['2247330ZNFZDS','385gfiWHQ','53052ePQgIy','6283522FVDaKc','2816754tUrfbZ','5826834aKemAW','1721367Swgakj','8uMDwBj','21562785CBjKpa'];a10_0x4b0e=function(){return _0x5de274;};return a10_0x4b0e();}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(_0x5cbaba,_0x5a4535){const _0x45fe39=a11_0x3867,_0x2ac551=_0x5cbaba();while(!![]){try{const _0x1cacce=parseInt(_0x45fe39(0x1dd))/0x1+-parseInt(_0x45fe39(0x1db))/0x2+-parseInt(_0x45fe39(0x1e0))/0x3+-parseInt(_0x45fe39(0x1d8))/0x4+-parseInt(_0x45fe39(0x1df))/0x5+parseInt(_0x45fe39(0x1d3))/0x6+-parseInt(_0x45fe39(0x1d9))/0x7*(-parseInt(_0x45fe39(0x1e2))/0x8);if(_0x1cacce===_0x5a4535)break;else _0x2ac551['push'](_0x2ac551['shift']());}catch(_0x1b64e1){_0x2ac551['push'](_0x2ac551['shift']());}}}(a11_0x5a01,0xa6726));function a11_0x5a01(){const _0x490cc7=['216KTyyCw','Add\x20--global\x20to\x20write\x20to\x20~/','project','newConfigFileName','validation','530268wkhBwt','global-default','\x20(global)','Not\x20inside\x20a\x20project\x20(no\x20','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','1104108vTQMAs','1021531mkDNZD','global','2537798WcUjLT',',\x20or\x20run\x20`','45557svWnln','project-or-global-explicit','4741955XXYRXF','2697129AaqQPm','project-default'];a11_0x5a01=function(){return _0x490cc7;};return a11_0x5a01();}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(_0x2fa183){const _0xd21962=a11_0x3867,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x18a6dc}=_0x2fa183;if(explicitGlobal&&explicitProject)throw CliErrors[_0xd21962(0x1d2)](_0xd21962(0x1d7),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0xd21962(0x1da);if(explicitProject)return _0xd21962(0x1d0);switch(_0x18a6dc){case _0xd21962(0x1d4):return _0xd21962(0x1da);case _0xd21962(0x1e1):return _0x2fa183['inProject']??isInProject()?_0xd21962(0x1d0):_0xd21962(0x1da);case _0xd21962(0x1de):if(!(_0x2fa183['inProject']??isInProject()))throw CliErrors[_0xd21962(0x1d2)](_0xd21962(0x1d6)+PRODUCT_CONFIG['newConfigFileName']+'\x20found).',_0xd21962(0x1cf)+PRODUCT_CONFIG[_0xd21962(0x1d1)]+_0xd21962(0x1dc)+CLI_BIN_NAME+'\x20init`\x20first.');return _0xd21962(0x1d0);}}function a11_0x3867(_0x5348b0,_0x1ae2b8){_0x5348b0=_0x5348b0-0x1cf;const _0x5a0176=a11_0x5a01();let _0x3867dd=_0x5a0176[_0x5348b0];return _0x3867dd;}export function toScopeFlags(_0x301740){const _0x4fe1b4=a11_0x3867;return{'global':_0x301740===_0x4fe1b4(0x1da)};}export function formatScopeLabel(_0x1cd6b4){const _0xb49e59=a11_0x3867;return _0x1cd6b4===_0xb49e59(0x1da)?_0xb49e59(0x1d5):'';}
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(_0x511c32,_0x9a2cfa){const _0x404edb=a12_0x4989,_0x1378c8=_0x511c32();while(!![]){try{const _0x42e524=parseInt(_0x404edb(0x10e))/0x1+parseInt(_0x404edb(0x115))/0x2+-parseInt(_0x404edb(0x11a))/0x3+-parseInt(_0x404edb(0x113))/0x4*(-parseInt(_0x404edb(0x10f))/0x5)+parseInt(_0x404edb(0x123))/0x6+parseInt(_0x404edb(0x116))/0x7*(-parseInt(_0x404edb(0x117))/0x8)+-parseInt(_0x404edb(0x10b))/0x9;if(_0x42e524===_0x9a2cfa)break;else _0x1378c8['push'](_0x1378c8['shift']());}catch(_0x31f881){_0x1378c8['push'](_0x1378c8['shift']());}}}(a12_0x28fc,0xecece));function a12_0x28fc(){const _0x281dcc=['10505367FlRCFT','test','Provide\x20one\x20of:\x20','1357466GOdFzJ','10JtUUzC','join','validation',',\x20got\x20\x22','2686172VZaJHP','filter','2032280yKKwzR','211421ikJcjh','192rNXgYY','\x20is\x20required\x20for\x20`','Exactly\x20one\x20of\x20','2721015LGcLZr',':\x20expected\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','At\x20least\x20one\x20of\x20','some','length','\x20is\x20allowed,\x20found:\x20','Only\x20one\x20of\x20','Remove\x20all\x20but\x20one.','317364JPGric'];a12_0x28fc=function(){return _0x281dcc;};return a12_0x28fc();}import{CliErrors}from'../../errors.js';function isSet(_0x4d0f8a,_0x2a50ff){const _0x3ed0d0=_0x4d0f8a['flag'](_0x2a50ff);return _0x3ed0d0!==undefined&&_0x3ed0d0!==''&&_0x3ed0d0!==![]&&_0x3ed0d0!==0x0;}function fmtNames(_0x1e0425){const _0x374734=a12_0x4989;return _0x1e0425['map'](_0x1ad07f=>'--'+_0x1ad07f)[_0x374734(0x110)](',\x20');}export function requireOneOf(_0x210110,_0x4c299f,_0x33ece7){const _0x1ffbad=a12_0x4989,_0x14b9f6=_0x4c299f['filter'](_0xe0eab1=>isSet(_0x210110,_0xe0eab1));if(_0x14b9f6[_0x1ffbad(0x11f)]!==0x1)throw CliErrors[_0x1ffbad(0x111)](_0x14b9f6[_0x1ffbad(0x11f)]===0x0?_0x1ffbad(0x119)+fmtNames(_0x4c299f)+_0x1ffbad(0x118)+_0x33ece7+'`.':_0x1ffbad(0x121)+fmtNames(_0x4c299f)+_0x1ffbad(0x120)+fmtNames(_0x14b9f6)+'.',_0x14b9f6['length']===0x0?_0x1ffbad(0x10d)+fmtNames(_0x4c299f):_0x1ffbad(0x122));}export function requireAnyOf(_0x5abd11,_0x33d750,_0x21ded5){const _0x1bc114=a12_0x4989;if(!_0x33d750[_0x1bc114(0x11e)](_0x178924=>isSet(_0x5abd11,_0x178924)))throw CliErrors[_0x1bc114(0x111)](_0x1bc114(0x11d)+fmtNames(_0x33d750)+_0x1bc114(0x118)+_0x21ded5+'`.',_0x1bc114(0x10d)+fmtNames(_0x33d750));}function a12_0x4989(_0x71048b,_0x15bb6d){_0x71048b=_0x71048b-0x10b;const _0x28fc0c=a12_0x28fc();let _0x4989d0=_0x28fc0c[_0x71048b];return _0x4989d0;}export function mutuallyExclusive(_0x3d9944,_0x18c467,_0x5ac9d4){const _0x55be89=a12_0x4989,_0x434a53=_0x18c467[_0x55be89(0x114)](_0x38e22b=>isSet(_0x3d9944,_0x38e22b));if(_0x434a53[_0x55be89(0x11f)]>0x1)throw CliErrors[_0x55be89(0x111)]('Flags\x20'+fmtNames(_0x434a53)+_0x55be89(0x11c)+_0x5ac9d4+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x18c467));}export function validatePattern(_0x4f98a8,_0x3eb9f7,_0x10f13b,_0x599073){const _0x1f2947=a12_0x4989,_0x508eba=_0x4f98a8['str'](_0x3eb9f7);if(_0x508eba&&!_0x10f13b[_0x1f2947(0x10c)](_0x508eba))throw CliErrors['validation']('Invalid\x20--'+_0x3eb9f7+_0x1f2947(0x11b)+_0x599073+_0x1f2947(0x112)+_0x508eba+'\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
- function a13_0xbab2(){const _0x1ac76a=['a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','verbose','Resource\x20name\x20for\x20lookup','3NXslLi','number','boolean','27486490iNUeEb','134493WwFjyg','name','16JtolNt','4814890etyhzU','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','204432LJYdCh','Resource\x20ID','5140975DOgViO','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','4LAJadA','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1292308fvfyDR','5095944QGEXIH'];a13_0xbab2=function(){return _0x1ac76a;};return a13_0xbab2();}const a13_0x1dc9b8=a13_0x5500;(function(_0x2300a9,_0xb6be5f){const _0x4b4c9f=a13_0x5500,_0x2f61c8=_0x2300a9();while(!![]){try{const _0x17e320=-parseInt(_0x4b4c9f(0x11c))/0x1+parseInt(_0x4b4c9f(0x129))/0x2*(parseInt(_0x4b4c9f(0x118))/0x3)+parseInt(_0x4b4c9f(0x127))/0x4*(parseInt(_0x4b4c9f(0x11f))/0x5)+parseInt(_0x4b4c9f(0x122))/0x6+parseInt(_0x4b4c9f(0x124))/0x7+parseInt(_0x4b4c9f(0x11e))/0x8*(parseInt(_0x4b4c9f(0x114))/0x9)+-parseInt(_0x4b4c9f(0x11b))/0xa;if(_0x17e320===_0xb6be5f)break;else _0x2f61c8['push'](_0x2f61c8['shift']());}catch(_0x44bb88){_0x2f61c8['push'](_0x2f61c8['shift']());}}}(a13_0xbab2,0x990e7));export const CODE_FLAG={'name':a13_0x1dc9b8(0x125),'type':a13_0x1dc9b8(0x121),'required':!![],'description':a13_0x1dc9b8(0x120),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x1dc9b8(0x115)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a13_0x1dc9b8(0x121),'required':!![],'description':a13_0x1dc9b8(0x126),'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_0x1dc9b8(0x116),'type':a13_0x1dc9b8(0x11a),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':'params','type':a13_0x1dc9b8(0x121),'description':a13_0x1dc9b8(0x128)};export const NAME_FLAG={'name':a13_0x1dc9b8(0x11d),'type':a13_0x1dc9b8(0x121),'description':a13_0x1dc9b8(0x117)};function a13_0x5500(_0x2324aa,_0x476236){_0x2324aa=_0x2324aa-0x114;const _0xbab220=a13_0xbab2();let _0x550069=_0xbab220[_0x2324aa];return _0x550069;}export const ID_FLAG={'name':'id','type':a13_0x1dc9b8(0x119),'required':!![],'description':a13_0x1dc9b8(0x123)};
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
- const a14_0x30db7e=a14_0x2213;function a14_0x2eb6(){const _0x131b87=['key','Deleted\x20`','pageSize','100xgFLxC','Key\x20not\x20found:\x20','`\x20=\x20\x22','List\x20current\x20config','project-or-global-explicit','global','Top-level\x20key\x20\x22','Missing\x20key\x20argument.','Key\x20\x22','includes','validation','1RbFKvo','write','\x20config\x20delete\x20<key>\x20[--global]','pretty','957122IfvJvE','\x20config\x20get\x20<key>','apps','944190Vjesfx','object','trim','\x20(global)','boolean','Settable\x20keys:\x20','17139FEskDE','\x20\x20global:\x20\x20','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x22\x20not\x20found\x20at\x20top\x20level.','Usage:\x20','Missing\x20key\x20or\x20value.','109770mbsCqA','field','isArray','riskLevel','Delete\x20a\x20config\x20value','config','../../context.js','Get\x20a\x20config\x20value','split','pageSize\x20must\x20be\x20a\x20positive\x20number','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x22.\x20Allowed:\x20','\x20\x20project:\x20','3659550wzlYHp','stringify','raw','Set\x20a\x20config\x20value','appcode','delete','length',';\x20apps.<alias>.appcode','bool','log','alias','63UhBtoh','Write\x20to\x20global\x20config','621512eDxDAb','set','keys','\x22\x20is\x20not\x20settable.','Set\x20`','args','5013438XqsfDL'];a14_0x2eb6=function(){return _0x131b87;};return a14_0x2eb6();}(function(_0x250c30,_0x3d2cd9){const _0x26afd4=a14_0x2213,_0x1b19b6=_0x250c30();while(!![]){try{const _0x11173=-parseInt(_0x26afd4(0x10a))/0x1*(-parseInt(_0x26afd4(0x10e))/0x2)+-parseInt(_0x26afd4(0xd5))/0x3*(parseInt(_0x26afd4(0xff))/0x4)+parseInt(_0x26afd4(0xdb))/0x5+-parseInt(_0x26afd4(0xfb))/0x6+-parseInt(_0x26afd4(0xf3))/0x7*(-parseInt(_0x26afd4(0xf5))/0x8)+-parseInt(_0x26afd4(0xcf))/0x9+parseInt(_0x26afd4(0xe8))/0xa;if(_0x11173===_0x3d2cd9)break;else _0x1b19b6['push'](_0x1b19b6['shift']());}catch(_0x34095d){_0x1b19b6['push'](_0x1b19b6['shift']());}}}(a14_0x2eb6,0x75c3b));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_0x30db7e(0x104),'type':a14_0x30db7e(0xd3),'description':a14_0x30db7e(0xf4),'default':![]};function parseAliasAppcodeSetKey(_0x2d4814){const _0x4005c8=a14_0x30db7e,_0x51e570=_0x2d4814[_0x4005c8(0xe3)]('.');if(_0x51e570['length']!==0x3||_0x51e570[0x0]!==_0x4005c8(0x110)||_0x51e570[0x2]!==_0x4005c8(0xec))return undefined;const _0x35832b=_0x51e570[0x1]?.[_0x4005c8(0xd1)]();return _0x35832b?_0x35832b:undefined;}function parseAliasDeleteKey(_0x1456f1){const _0x264d34=a14_0x30db7e,_0x1102d1=_0x1456f1[_0x264d34(0xe3)]('.');if(_0x1102d1[_0x264d34(0xee)]===0x2&&_0x1102d1[0x0]===_0x264d34(0x110)){const _0x1aaa7c=_0x1102d1[0x1]?.['trim']();return _0x1aaa7c?{'alias':_0x1aaa7c}:undefined;}if(_0x1102d1['length']===0x3&&_0x1102d1[0x0]==='apps'&&_0x1102d1[0x2]===_0x264d34(0xec)){const _0x178bd7=_0x1102d1[0x1]?.[_0x264d34(0xd1)]();return _0x178bd7?{'alias':_0x178bd7,'field':_0x264d34(0xec)}:undefined;}return undefined;}function a14_0x2213(_0xbd9881,_0x5b51d2){_0xbd9881=_0xbd9881-0xcf;const _0x2eb6d9=a14_0x2eb6();let _0x2213fe=_0x2eb6d9[_0xbd9881];return _0x2213fe;}function setLocalAppAlias(_0x322ad8,_0x13f075,_0x33f3e9){const _0x566f92=a14_0x30db7e,_0x595f72=_0x322ad8[_0x566f92(0x110)]&&typeof _0x322ad8[_0x566f92(0x110)]===_0x566f92(0xd0)&&!Array[_0x566f92(0xdd)](_0x322ad8['apps'])?_0x322ad8[_0x566f92(0x110)]:{},_0x7d1d1f=_0x595f72[_0x13f075]&&typeof _0x595f72[_0x13f075]===_0x566f92(0xd0)&&!Array[_0x566f92(0xdd)](_0x595f72[_0x13f075])?_0x595f72[_0x13f075]:{};_0x7d1d1f[_0x566f92(0xec)]=_0x33f3e9,_0x595f72[_0x13f075]=_0x7d1d1f,_0x322ad8[_0x566f92(0x110)]=_0x595f72;}function deleteLocalAppAlias(_0x176f23,_0x42b7b5){const _0x59d1a7=a14_0x30db7e;if(!_0x176f23['apps']||typeof _0x176f23[_0x59d1a7(0x110)]!==_0x59d1a7(0xd0)||Array[_0x59d1a7(0xdd)](_0x176f23[_0x59d1a7(0x110)]))return![];const _0x25c71f=_0x176f23[_0x59d1a7(0x110)],_0x2fd57b=_0x25c71f[_0x42b7b5[_0x59d1a7(0xf2)]];if(!_0x2fd57b||typeof _0x2fd57b!==_0x59d1a7(0xd0)||Array[_0x59d1a7(0xdd)](_0x2fd57b))return![];if(!_0x42b7b5[_0x59d1a7(0xdc)])return delete _0x25c71f[_0x42b7b5[_0x59d1a7(0xf2)]],!![];if(!(_0x42b7b5[_0x59d1a7(0xdc)]in _0x2fd57b))return![];return delete _0x2fd57b[_0x42b7b5[_0x59d1a7(0xdc)]],Object[_0x59d1a7(0xf7)](_0x2fd57b)[_0x59d1a7(0xee)]===0x0&&delete _0x25c71f[_0x42b7b5[_0x59d1a7(0xf2)]],!![];}const listDef={'service':a14_0x30db7e(0xe0),'command':'list','description':a14_0x30db7e(0x102),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1b432f){const _0x3231ca=a14_0x30db7e,{buildConfigFromFlags:_0x1d081d}=await import('../../context.js'),_0x1cf56c=_0x1d081d({}),_0x1690e4=getProjectConfigPath(),_0x3eb23e=resolveWriteConfigPath(_0x3231ca(0x104));if(_0x1b432f['format']===_0x3231ca(0x10d))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x3231ca(0xe9)](_0x1cf56c[_0x3231ca(0xea)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x3231ca(0xe7)+(_0x1690e4??'(none)')+'\x0a')+(_0x3231ca(0xd6)+_0x3eb23e)};return{'ok':!![],'data':{'effective':_0x1cf56c[_0x3231ca(0xea)],'configFiles':{'project':_0x1690e4??null,'global':_0x3eb23e}}};}},getDef={'service':a14_0x30db7e(0xe0),'command':'get','description':a14_0x30db7e(0xe2),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x30db7e(0xfc),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x300e73){const _0x13b865=a14_0x30db7e,_0x42d1fb=_0x300e73[_0x13b865(0xfa)][0x0];if(!_0x42d1fb)throw CliErrors[_0x13b865(0x109)](_0x13b865(0x106),_0x13b865(0xd9)+CLI_BIN_NAME+_0x13b865(0x10f));const {buildConfigFromFlags:_0x1c0174}=await import(_0x13b865(0xe1)),{raw:_0xc2f13d}=_0x1c0174({});if(_0x42d1fb[_0x13b865(0x108)]('.')){const _0x520503=_0x42d1fb['split']('.');let _0x387874=_0xc2f13d;for(const _0x58efda of _0x520503){if(_0x387874==null||typeof _0x387874!=='object')throw CliErrors['validation'](_0x13b865(0x100)+_0x42d1fb);_0x387874=_0x387874[_0x58efda];}if(_0x387874===undefined)throw CliErrors['validation'](_0x13b865(0x100)+_0x42d1fb);return console[_0x13b865(0xf1)](typeof _0x387874===_0x13b865(0xd0)?JSON[_0x13b865(0xe9)](_0x387874,null,0x2):String(_0x387874)),{'ok':!![]};}const _0x293b2c=_0xc2f13d[_0x42d1fb];if(_0x293b2c===undefined)throw CliErrors[_0x13b865(0x109)](_0x13b865(0x100)+_0x42d1fb);return console[_0x13b865(0xf1)](typeof _0x293b2c==='object'?JSON['stringify'](_0x293b2c,null,0x2):String(_0x293b2c)),{'ok':!![]};}},setDef={'service':'config','command':a14_0x30db7e(0xf6),'description':a14_0x30db7e(0xeb),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x30db7e(0xfc),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1c2387){const _0x3f082f=a14_0x30db7e,_0x5d90e5=_0x1c2387['args'][0x0],_0x509d04=_0x1c2387['args'][0x1];if(!_0x5d90e5||_0x509d04===undefined)throw CliErrors[_0x3f082f(0x109)](_0x3f082f(0xda),_0x3f082f(0xd9)+CLI_BIN_NAME+_0x3f082f(0xd7));if(ENUM_KEYS[_0x5d90e5]&&!ENUM_KEYS[_0x5d90e5]['includes'](_0x509d04))throw CliErrors[_0x3f082f(0x109)]('Invalid\x20value\x20for\x20\x22'+_0x5d90e5+_0x3f082f(0xe6)+ENUM_KEYS[_0x5d90e5]['join'](',\x20'));if(_0x5d90e5===_0x3f082f(0xde))throw CliErrors[_0x3f082f(0x109)](_0x3f082f(0xe5));if(_0x5d90e5===_0x3f082f(0xfe)){const _0x35c56a=Number(_0x509d04);if(isNaN(_0x35c56a)||_0x35c56a<=0x0)throw CliErrors[_0x3f082f(0x109)](_0x3f082f(0xe4));}const _0x528ef9=resolveWriteScope({'explicitGlobal':_0x1c2387[_0x3f082f(0xf0)](_0x3f082f(0x104)),'policy':_0x3f082f(0x103)}),_0x3d8c08=toScopeFlags(_0x528ef9),_0xad3a6c=readScopedConfig(_0x3d8c08),_0x873e1d=parseAliasAppcodeSetKey(_0x5d90e5);if(!_0x873e1d&&!isTopLevelConfigKey(_0x5d90e5))throw CliErrors['validation'](_0x3f082f(0x105)+_0x5d90e5+_0x3f082f(0xf8),_0x3f082f(0xd4)+getTopLevelConfigKeySummary()+_0x3f082f(0xef));return _0x873e1d?setLocalAppAlias(_0xad3a6c,_0x873e1d,_0x509d04):_0xad3a6c[_0x5d90e5]=_0x5d90e5===_0x3f082f(0xfe)?Number(_0x509d04):_0x509d04,console['log'](_0x3f082f(0xf9)+_0x5d90e5+_0x3f082f(0x101)+_0x509d04+'\x22'+(_0x528ef9===_0x3f082f(0x104)?_0x3f082f(0xd2):'')),writeScopedConfig(_0xad3a6c,_0x3d8c08),{'ok':!![]};}},deleteDef={'service':'config','command':a14_0x30db7e(0xed),'description':a14_0x30db7e(0xdf),'risk':a14_0x30db7e(0x10b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x30db7e(0xfc),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x18b0d6){const _0x3b0ebe=a14_0x30db7e,_0x3a2bed=_0x18b0d6[_0x3b0ebe(0xfa)][0x0];if(!_0x3a2bed)throw CliErrors[_0x3b0ebe(0x109)](_0x3b0ebe(0x106),_0x3b0ebe(0xd9)+CLI_BIN_NAME+_0x3b0ebe(0x10c));const _0x2bcfe0=resolveWriteScope({'explicitGlobal':_0x18b0d6[_0x3b0ebe(0xf0)](_0x3b0ebe(0x104)),'policy':'project-or-global-explicit'}),_0xad242e=toScopeFlags(_0x2bcfe0),_0x4afe38=readScopedConfig(_0xad242e),_0x1e2584=parseAliasDeleteKey(_0x3a2bed);if(_0x1e2584){if(!deleteLocalAppAlias(_0x4afe38,_0x1e2584))throw CliErrors[_0x3b0ebe(0x109)](_0x3b0ebe(0x100)+_0x3a2bed);return console['log']('Deleted\x20`'+_0x3a2bed+'`'+(_0x2bcfe0===_0x3b0ebe(0x104)?_0x3b0ebe(0xd2):'')),writeScopedConfig(_0x4afe38,_0xad242e),{'ok':!![]};}if(_0x4afe38[_0x3a2bed]===undefined)throw CliErrors['validation'](_0x3b0ebe(0x107)+_0x3a2bed+_0x3b0ebe(0xd8));return delete _0x4afe38[_0x3a2bed],console['log'](_0x3b0ebe(0xfd)+_0x3a2bed+'`'+(_0x2bcfe0===_0x3b0ebe(0x104)?_0x3b0ebe(0xd2):'')),writeScopedConfig(_0x4afe38,_0xad242e),{'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(_0x2aebbe,_0x3cb828){var _0x59543f=a15_0x4d87,_0x48729c=_0x2aebbe();while(!![]){try{var _0x137bf4=parseInt(_0x59543f(0x121))/0x1+parseInt(_0x59543f(0x129))/0x2*(parseInt(_0x59543f(0x128))/0x3)+-parseInt(_0x59543f(0x127))/0x4+-parseInt(_0x59543f(0x12a))/0x5*(parseInt(_0x59543f(0x125))/0x6)+parseInt(_0x59543f(0x122))/0x7*(parseInt(_0x59543f(0x12b))/0x8)+-parseInt(_0x59543f(0x124))/0x9*(parseInt(_0x59543f(0x123))/0xa)+-parseInt(_0x59543f(0x126))/0xb;if(_0x137bf4===_0x3cb828)break;else _0x48729c['push'](_0x48729c['shift']());}catch(_0x5692e0){_0x48729c['push'](_0x48729c['shift']());}}}(a15_0x5e5b,0x941ec));function a15_0x4d87(_0x1cea3f,_0x2a756b){_0x1cea3f=_0x1cea3f-0x121;var _0x5e5ba2=a15_0x5e5b();var _0x4d8759=_0x5e5ba2[_0x1cea3f];return _0x4d8759;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x5e5b(){var _0x45c35e=['4021990mgmWVa','18dXBTsg','114dInvZV','5625389VtbKQs','4049752MHyoOg','885TWhBgS','5858RvfXOt','22855ZOpUvZ','16DqrBje','1099757QbflWz','3702902MgXGRq'];a15_0x5e5b=function(){return _0x45c35e;};return a15_0x5e5b();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_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';