@lovrabet/lovrabet-cli 2.0.13-beta.0 → 2.0.13-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/kb/index.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -1
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/commands/update.js +1 -1
  32. package/lib/config/schema.js +1 -1
  33. package/lib/constant/auth-mode.js +1 -1
  34. package/lib/constant/cli.js +1 -1
  35. package/lib/constant/defaults.js +1 -1
  36. package/lib/constant/distribution.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/constant/output.js +1 -1
  40. package/lib/constant/product.js +1 -1
  41. package/lib/constant/risk.js +1 -1
  42. package/lib/constant/url.js +1 -1
  43. package/lib/context.js +1 -1
  44. package/lib/core/api-client.js +1 -1
  45. package/lib/core/db-resolver.js +1 -1
  46. package/lib/core/sdk-client.js +1 -1
  47. package/lib/errors.js +1 -1
  48. package/lib/framework/build-all-flags.js +1 -1
  49. package/lib/framework/dryrun.js +1 -1
  50. package/lib/framework/flags.js +1 -1
  51. package/lib/framework/help.js +1 -1
  52. package/lib/framework/index.js +1 -1
  53. package/lib/framework/output.js +1 -1
  54. package/lib/framework/preparse.js +1 -1
  55. package/lib/framework/response.js +1 -1
  56. package/lib/framework/runner-confirmation.js +1 -1
  57. package/lib/framework/runner-error.js +1 -1
  58. package/lib/framework/runner.js +1 -1
  59. package/lib/framework/schema-export.js +1 -1
  60. package/lib/framework/types.js +1 -1
  61. package/lib/help.js +1 -1
  62. package/lib/skills/npx-skills-add.js +1 -1
  63. package/lib/skills/runtime-skill-sync.js +1 -1
  64. package/lib/utils/apply-jq-filter.js +1 -1
  65. package/lib/utils/logger.js +1 -1
  66. package/lib/utils/params.js +1 -1
  67. package/lib/utils/platform.js +1 -1
  68. package/lib/utils/version.js +1 -1
  69. package/lib/utils/write-cli-side-channel.js +1 -1
  70. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x4f2542=a0_0x575f;function a0_0x575f(_0x540f0d,_0x35052c){_0x540f0d=_0x540f0d-0x144;const _0x5f2b39=a0_0x5f2b();let _0x575f9f=_0x5f2b39[_0x540f0d];return _0x575f9f;}(function(_0xb3830e,_0x25278f){const _0x18cf06=a0_0x575f,_0x20e941=_0xb3830e();while(!![]){try{const _0x3bc67e=-parseInt(_0x18cf06(0x14e))/0x1+parseInt(_0x18cf06(0x159))/0x2+-parseInt(_0x18cf06(0x15f))/0x3+-parseInt(_0x18cf06(0x163))/0x4+parseInt(_0x18cf06(0x149))/0x5+parseInt(_0x18cf06(0x160))/0x6+parseInt(_0x18cf06(0x15c))/0x7;if(_0x3bc67e===_0x25278f)break;else _0x20e941['push'](_0x20e941['shift']());}catch(_0x1771ef){_0x20e941['push'](_0x20e941['shift']());}}}(a0_0x5f2b,0x46343));function a0_0x5f2b(){const _0x5f2999=['\x0aCancelled.\x0a','exitCode','name',':\x20--','args','hint','length','cancelled','2259315TuFdgD','Unexpected\x20error:','message','unknownCommand','flatMap','121310iOgvee','input','stderr','./framework/preparse.js','code','original','Hint:\x20','catch','ERR_STREAM_DESTROYED','help','log','309228UxKemC','assign','write','215166WubYUh','exit','error','1040550gCsaIR','3380388RRWrNb','handler','defaultCommand','1779592JIxIGp','flags','\x20->\x20--','ExitPromptError','Error:\x20'];a0_0x5f2b=function(){return _0x5f2999;};return a0_0x5f2b();}import{jsx as a0_0x465f2f}from'react/jsx-runtime';import a0_0x302c64 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x302c64(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x4f2542(0x155)](handleError);async function main(){try{await run();}catch(_0x15fcf9){handleError(_0x15fcf9);}}async function run(){const _0x525365=a0_0x4f2542;let _0x28056d=cli[_0x525365(0x14f)][0x0],_0x545d9c=cli[_0x525365(0x14f)][0x1];const _0x3c084e=cli[_0x525365(0x164)];try{const {correctFlags:_0x58554f}=await import(_0x525365(0x151)),_0x501f8e=getAllDefinitions()[_0x525365(0x14d)](_0x34f66c=>_0x34f66c['flags']??[]),{flags:_0x20ebcd,corrections:_0x4aa60d}=_0x58554f(_0x3c084e,_0x501f8e);if(_0x4aa60d[_0x525365(0x147)]>0x0){for(const _0x39b543 of _0x4aa60d){process[_0x525365(0x150)][_0x525365(0x15b)]('[preparse]\x20'+_0x39b543[_0x525365(0x161)]+_0x525365(0x144)+_0x39b543[_0x525365(0x153)]+_0x525365(0x165)+_0x39b543['corrected']+'\x0a');}Object[_0x525365(0x15a)](_0x3c084e,_0x20ebcd);}}catch{}if(!_0x28056d||!isKnownService(_0x28056d)){const {waitUntilExit:_0x4bbe59}=render(a0_0x465f2f(Help,{}));await _0x4bbe59();return;}const _0x57ef57=getServiceEntry(_0x28056d);if(!_0x545d9c){if(_0x3c084e[_0x525365(0x157)]){console[_0x525365(0x158)](generateServiceHelp(_0x28056d));return;}if(_0x57ef57[_0x525365(0x162)])_0x545d9c=_0x57ef57[_0x525365(0x162)];else{console[_0x525365(0x158)](generateServiceHelp(_0x28056d));return;}}const _0x242120=findDefinition(_0x28056d,_0x545d9c);!_0x242120&&(console[_0x525365(0x158)](generateServiceHelp(_0x28056d)),handleError(CliErrors[_0x525365(0x14c)](_0x28056d+'\x20'+_0x545d9c)));if(_0x3c084e['help']){console['log'](generateCommandHelp(_0x242120));return;}const _0x1d206a=buildConfigFromFlags(_0x3c084e);await initGlobalEnvironment(_0x1d206a);const _0x14fc19=createPipelineEnv(_0x1d206a,_0x3c084e);_0x14fc19[_0x525365(0x145)]=cli[_0x525365(0x14f)]['slice'](0x2),await runCommand(_0x242120,_0x14fc19);}function handleError(_0x30257f){const _0x3210f9=a0_0x4f2542;if(_0x30257f instanceof CliError){_0x30257f[_0x3210f9(0x152)]===_0x3210f9(0x148)&&(process[_0x3210f9(0x150)]['write'](_0x3210f9(0x168)),process[_0x3210f9(0x15d)](0x0));console[_0x3210f9(0x15e)](_0x3210f9(0x167)+_0x30257f[_0x3210f9(0x14b)]);if(_0x30257f['hint'])console[_0x3210f9(0x15e)](_0x3210f9(0x154)+_0x30257f[_0x3210f9(0x146)]);process['exit'](_0x30257f[_0x3210f9(0x169)]);}isUserCancellation(_0x30257f)&&(process['stderr'][_0x3210f9(0x15b)](_0x3210f9(0x168)),process[_0x3210f9(0x15d)](0x0)),console[_0x3210f9(0x15e)](_0x3210f9(0x14a),_0x30257f),process['exit'](0x1);}function isUserCancellation(_0xa9216c){const _0x2a63b=a0_0x4f2542;if(!(_0xa9216c instanceof Error))return![];if(_0xa9216c[_0x2a63b(0x16a)]===_0x2a63b(0x166))return!![];if(_0xa9216c['code']==='ERR_USE_AFTER_CLOSE')return!![];if(_0xa9216c[_0x2a63b(0x152)]===_0x2a63b(0x156))return!![];return![];}
2
+ function a0_0x54e9(){const _0x4820bc=['3801260cCEFqw','ExitPromptError','6fMISLo','log','corrected','exitCode','\x0aCancelled.\x0a','input','ERR_STREAM_DESTROYED','ERR_USE_AFTER_CLOSE','exit','length','Hint:\x20','original','hint','353244iHHQiR','error','message','code','\x20->\x20--','858780QRqoym','[preparse]\x20','23140845znhJih','write','slice','stderr','49XTfbuv','args','defaultCommand','901368RWMnwQ','catch','flatMap','handler','flags','Error:\x20','Unexpected\x20error:','636066YZENTp','help','497031tRXoeY'];a0_0x54e9=function(){return _0x4820bc;};return a0_0x54e9();}const a0_0x52e598=a0_0x3a2f;(function(_0x1c581f,_0x1fa940){const _0x3f7cfe=a0_0x3a2f,_0x3a04e0=_0x1c581f();while(!![]){try{const _0x141b20=-parseInt(_0x3f7cfe(0x208))/0x1+-parseInt(_0x3f7cfe(0x1f6))/0x2+parseInt(_0x3f7cfe(0x20b))/0x3*(parseInt(_0x3f7cfe(0x1f1))/0x4)+-parseInt(_0x3f7cfe(0x209))/0x5+parseInt(_0x3f7cfe(0x206))/0x6*(-parseInt(_0x3f7cfe(0x1fc))/0x7)+parseInt(_0x3f7cfe(0x1ff))/0x8+parseInt(_0x3f7cfe(0x1f8))/0x9;if(_0x141b20===_0x1fa940)break;else _0x3a04e0['push'](_0x3a04e0['shift']());}catch(_0x46c288){_0x3a04e0['push'](_0x3a04e0['shift']());}}}(a0_0x54e9,0x69684));import{jsx as a0_0x2d0a7b}from'react/jsx-runtime';import a0_0x3613ac from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x3613ac(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});function a0_0x3a2f(_0x1d7ddb,_0x2ebb6b){_0x1d7ddb=_0x1d7ddb-0x1f1;const _0x54e9df=a0_0x54e9();let _0x3a2fec=_0x54e9df[_0x1d7ddb];return _0x3a2fec;}void main()[a0_0x52e598(0x200)](handleError);async function main(){try{await run();}catch(_0x3fb71e){handleError(_0x3fb71e);}}async function run(){const _0x36203f=a0_0x52e598;let _0x59ae8a=cli[_0x36203f(0x210)][0x0],_0x128c70=cli[_0x36203f(0x210)][0x1];const _0x1ec514=cli[_0x36203f(0x203)];try{const {correctFlags:_0x33cac3}=await import('./framework/preparse.js'),_0x3a75dc=getAllDefinitions()[_0x36203f(0x201)](_0x5d1b11=>_0x5d1b11[_0x36203f(0x203)]??[]),{flags:_0x104f4f,corrections:_0xc9dbc8}=_0x33cac3(_0x1ec514,_0x3a75dc);if(_0xc9dbc8[_0x36203f(0x214)]>0x0){for(const _0x168bb5 of _0xc9dbc8){process[_0x36203f(0x1fb)][_0x36203f(0x1f9)](_0x36203f(0x1f7)+_0x168bb5[_0x36203f(0x202)]+':\x20--'+_0x168bb5[_0x36203f(0x216)]+_0x36203f(0x1f5)+_0x168bb5[_0x36203f(0x20d)]+'\x0a');}Object['assign'](_0x1ec514,_0x104f4f);}}catch{}if(!_0x59ae8a||!isKnownService(_0x59ae8a)){const {waitUntilExit:_0x51690f}=render(a0_0x2d0a7b(Help,{}));await _0x51690f();return;}const _0x521817=getServiceEntry(_0x59ae8a);if(!_0x128c70){if(_0x1ec514[_0x36203f(0x207)]){console['log'](generateServiceHelp(_0x59ae8a));return;}if(_0x521817[_0x36203f(0x1fe)])_0x128c70=_0x521817[_0x36203f(0x1fe)];else{console['log'](generateServiceHelp(_0x59ae8a));return;}}const _0x47bc3e=findDefinition(_0x59ae8a,_0x128c70);!_0x47bc3e&&(console[_0x36203f(0x20c)](generateServiceHelp(_0x59ae8a)),handleError(CliErrors['unknownCommand'](_0x59ae8a+'\x20'+_0x128c70)));if(_0x1ec514[_0x36203f(0x207)]){console['log'](generateCommandHelp(_0x47bc3e));return;}const _0x34637b=buildConfigFromFlags(_0x1ec514);await initGlobalEnvironment(_0x34637b);const _0x542589=createPipelineEnv(_0x34637b,_0x1ec514);_0x542589[_0x36203f(0x1fd)]=cli[_0x36203f(0x210)][_0x36203f(0x1fa)](0x2),await runCommand(_0x47bc3e,_0x542589);}function handleError(_0x5db3b3){const _0x1ac8fe=a0_0x52e598;if(_0x5db3b3 instanceof CliError){_0x5db3b3[_0x1ac8fe(0x1f4)]==='cancelled'&&(process[_0x1ac8fe(0x1fb)][_0x1ac8fe(0x1f9)](_0x1ac8fe(0x20f)),process[_0x1ac8fe(0x213)](0x0));console[_0x1ac8fe(0x1f2)](_0x1ac8fe(0x204)+_0x5db3b3[_0x1ac8fe(0x1f3)]);if(_0x5db3b3[_0x1ac8fe(0x217)])console[_0x1ac8fe(0x1f2)](_0x1ac8fe(0x215)+_0x5db3b3[_0x1ac8fe(0x217)]);process[_0x1ac8fe(0x213)](_0x5db3b3[_0x1ac8fe(0x20e)]);}isUserCancellation(_0x5db3b3)&&(process['stderr']['write'](_0x1ac8fe(0x20f)),process[_0x1ac8fe(0x213)](0x0)),console[_0x1ac8fe(0x1f2)](_0x1ac8fe(0x205),_0x5db3b3),process['exit'](0x1);}function isUserCancellation(_0x4f35f2){const _0x1ab06e=a0_0x52e598;if(!(_0x4f35f2 instanceof Error))return![];if(_0x4f35f2['name']===_0x1ab06e(0x20a))return!![];if(_0x4f35f2['code']===_0x1ab06e(0x212))return!![];if(_0x4f35f2[_0x1ab06e(0x1f4)]===_0x1ab06e(0x211))return!![];return![];}
@@ -1 +1 @@
1
- (function(_0x4a0da9,_0x4bdead){const _0x631d9a=a1_0x4a78,_0x37fdaa=_0x4a0da9();while(!![]){try{const _0x30fab5=parseInt(_0x631d9a(0xd8))/0x1*(-parseInt(_0x631d9a(0xc1))/0x2)+-parseInt(_0x631d9a(0xd6))/0x3+parseInt(_0x631d9a(0xd3))/0x4+-parseInt(_0x631d9a(0xcd))/0x5+-parseInt(_0x631d9a(0xd1))/0x6+-parseInt(_0x631d9a(0xd7))/0x7+parseInt(_0x631d9a(0xda))/0x8;if(_0x30fab5===_0x4bdead)break;else _0x37fdaa['push'](_0x37fdaa['shift']());}catch(_0x5375fe){_0x37fdaa['push'](_0x37fdaa['shift']());}}}(a1_0x4865,0xd4601));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a1_0x4a78(_0x182f2d,_0x12a56d){_0x182f2d=_0x182f2d-0xc0;const _0x48659a=a1_0x4865();let _0x4a7882=_0x48659a[_0x182f2d];return _0x4a7882;}import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a1_0x4865(){const _0x147fef=['10044846DhHDWK','isArray','3230872XOpqPn','utf8','parse','1625370QFRJQj','3616256mMZeRD','681143KUrFuN','ak_','39083904aXaDQc','.tmp','2QHPLkC','digest','EXDEV','homeDirName','trim','stringify','EPERM','items','update','unknown','cache','hex','7048175xeUZes','appName','EACCES','slice'];a1_0x4865=function(){return _0x147fef;};return a1_0x4865();}export function fingerprintAccessKey(_0x17d768){const _0x1bd2d7=a1_0x4a78,_0x312008=_0x17d768[_0x1bd2d7(0xc5)](),_0x2b7590=_0x312008[_0x1bd2d7(0xd0)](-0x6)||_0x1bd2d7(0xca),_0x16f75b=createHash('sha256')[_0x1bd2d7(0xc9)](_0x312008)[_0x1bd2d7(0xc2)](_0x1bd2d7(0xcc))[_0x1bd2d7(0xd0)](0x0,0xc);return _0x1bd2d7(0xd9)+_0x2b7590+'_'+_0x16f75b;}export function getAppCacheFilePath(_0x5b9a30,_0x556389){const _0x400af=a1_0x4a78;return resolve(homedir(),PRODUCT_CONFIG[_0x400af(0xc4)],_0x400af(0xcb),_0x5b9a30,fingerprintAccessKey(_0x556389),'my-apps.json');}export function readCachedAppList(_0x32096a,_0x5e5fb8){const _0x395f4e=a1_0x4a78;if(!_0x5e5fb8?.[_0x395f4e(0xc5)]())return null;const _0x3e8a24=getAppCacheFilePath(_0x32096a,_0x5e5fb8);if(!existsSync(_0x3e8a24))return null;try{const _0x2069c4=readFileSync(_0x3e8a24,'utf8');if(!_0x2069c4[_0x395f4e(0xc5)]())return null;const _0x7f92cf=JSON[_0x395f4e(0xd5)](_0x2069c4);if(!Array[_0x395f4e(0xd2)](_0x7f92cf[_0x395f4e(0xc8)]))return null;return _0x7f92cf;}catch{return null;}}export function writeCachedAppList(_0x559c89,_0x4620f5,_0x310bf7){const _0x4a22a0=a1_0x4a78,_0x30b03d=getAppCacheFilePath(_0x559c89,_0x4620f5),_0x5dab60=dirname(_0x30b03d);!existsSync(_0x5dab60)&&mkdirSync(_0x5dab60,{'recursive':!![]});const _0x195f95=_0x30b03d+_0x4a22a0(0xc0);try{writeFileSync(_0x195f95,JSON[_0x4a22a0(0xc6)](_0x310bf7,null,0x2)+'\x0a',{'encoding':_0x4a22a0(0xd4),'mode':0x180});try{renameSync(_0x195f95,_0x30b03d);}catch(_0x1acaf2){if(_0x1acaf2['code']===_0x4a22a0(0xc7)||_0x1acaf2['code']===_0x4a22a0(0xc3)||_0x1acaf2['code']===_0x4a22a0(0xcf)){writeFileSync(_0x30b03d,JSON[_0x4a22a0(0xc6)](_0x310bf7,null,0x2)+'\x0a',{'encoding':_0x4a22a0(0xd4)});try{unlinkSync(_0x195f95);}catch{}}else throw _0x1acaf2;}}catch(_0x527be0){try{unlinkSync(_0x195f95);}catch{}throw _0x527be0;}return _0x30b03d;}export function resolveCachedAppCode(_0x7311a7,_0x475ff2,_0x3e869c){const _0x4ebfb9=a1_0x4a78;if(!_0x7311a7)return undefined;const _0x3aa09d=readCachedAppList(_0x475ff2,_0x3e869c),_0x361d40=_0x3aa09d?.[_0x4ebfb9(0xc8)]['find'](_0x38b431=>_0x38b431[_0x4ebfb9(0xce)]===_0x7311a7);return _0x361d40?.['appCode']?.['trim']()||undefined;}
1
+ (function(_0x18bfef,_0x35c683){const _0x5e2aa9=a1_0x18c9,_0x57f8c6=_0x18bfef();while(!![]){try{const _0x2f3473=-parseInt(_0x5e2aa9(0x132))/0x1*(-parseInt(_0x5e2aa9(0x133))/0x2)+parseInt(_0x5e2aa9(0x135))/0x3+parseInt(_0x5e2aa9(0x123))/0x4*(-parseInt(_0x5e2aa9(0x138))/0x5)+parseInt(_0x5e2aa9(0x139))/0x6*(parseInt(_0x5e2aa9(0x12f))/0x7)+-parseInt(_0x5e2aa9(0x122))/0x8+-parseInt(_0x5e2aa9(0x12d))/0x9+parseInt(_0x5e2aa9(0x129))/0xa;if(_0x2f3473===_0x35c683)break;else _0x57f8c6['push'](_0x57f8c6['shift']());}catch(_0x8a900d){_0x57f8c6['push'](_0x57f8c6['shift']());}}}(a1_0x4bd6,0x3a1d3));function a1_0x18c9(_0x6eefd2,_0x1252a4){_0x6eefd2=_0x6eefd2-0x11b;const _0x4bd6fa=a1_0x4bd6();let _0x18c9a1=_0x4bd6fa[_0x6eefd2];return _0x18c9a1;}function a1_0x4bd6(){const _0x44a5bd=['items','unknown','isArray','EXDEV','my-apps.json','5235140OeVfFd','digest','slice','hex','4025025SAxOMP','utf8','361578TYykUw','.tmp','code','109841OtBdSx','6IbnKgR','find','1242720qnBaLt','parse','appName','76765Iamxvn','6ArwQSK','sha256','homeDirName','trim','update','stringify','ak_','EPERM','2735712FqJkVx','76FJHeSA'];a1_0x4bd6=function(){return _0x44a5bd;};return a1_0x4bd6();}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(_0x495003){const _0x29fe0d=a1_0x18c9,_0x1e8118=_0x495003[_0x29fe0d(0x11d)](),_0x119871=_0x1e8118[_0x29fe0d(0x12b)](-0x6)||_0x29fe0d(0x125),_0x553ffd=createHash(_0x29fe0d(0x11b))[_0x29fe0d(0x11e)](_0x1e8118)[_0x29fe0d(0x12a)](_0x29fe0d(0x12c))[_0x29fe0d(0x12b)](0x0,0xc);return _0x29fe0d(0x120)+_0x119871+'_'+_0x553ffd;}export function getAppCacheFilePath(_0x194b56,_0x49b1c5){const _0x5c3d3f=a1_0x18c9;return resolve(homedir(),PRODUCT_CONFIG[_0x5c3d3f(0x11c)],'cache',_0x194b56,fingerprintAccessKey(_0x49b1c5),_0x5c3d3f(0x128));}export function readCachedAppList(_0x4d523b,_0x4e15b4){const _0x2a26dc=a1_0x18c9;if(!_0x4e15b4?.[_0x2a26dc(0x11d)]())return null;const _0x516941=getAppCacheFilePath(_0x4d523b,_0x4e15b4);if(!existsSync(_0x516941))return null;try{const _0x3f412e=readFileSync(_0x516941,_0x2a26dc(0x12e));if(!_0x3f412e[_0x2a26dc(0x11d)]())return null;const _0x28b5a5=JSON[_0x2a26dc(0x136)](_0x3f412e);if(!Array[_0x2a26dc(0x126)](_0x28b5a5[_0x2a26dc(0x124)]))return null;return _0x28b5a5;}catch{return null;}}export function writeCachedAppList(_0x1f97a0,_0x3e52c,_0x27afd9){const _0x44eab9=a1_0x18c9,_0x41782e=getAppCacheFilePath(_0x1f97a0,_0x3e52c),_0x45f7b9=dirname(_0x41782e);!existsSync(_0x45f7b9)&&mkdirSync(_0x45f7b9,{'recursive':!![]});const _0x14d6a2=_0x41782e+_0x44eab9(0x130);try{writeFileSync(_0x14d6a2,JSON[_0x44eab9(0x11f)](_0x27afd9,null,0x2)+'\x0a',{'encoding':_0x44eab9(0x12e),'mode':0x180});try{renameSync(_0x14d6a2,_0x41782e);}catch(_0x4f3aaf){if(_0x4f3aaf[_0x44eab9(0x131)]===_0x44eab9(0x121)||_0x4f3aaf[_0x44eab9(0x131)]===_0x44eab9(0x127)||_0x4f3aaf['code']==='EACCES'){writeFileSync(_0x41782e,JSON['stringify'](_0x27afd9,null,0x2)+'\x0a',{'encoding':_0x44eab9(0x12e)});try{unlinkSync(_0x14d6a2);}catch{}}else throw _0x4f3aaf;}}catch(_0x44099e){try{unlinkSync(_0x14d6a2);}catch{}throw _0x44099e;}return _0x41782e;}export function resolveCachedAppCode(_0x3537a1,_0x3ebacb,_0x29dbbd){const _0x37c4d3=a1_0x18c9;if(!_0x3537a1)return undefined;const _0x594ae0=readCachedAppList(_0x3ebacb,_0x29dbbd),_0x348b4a=_0x594ae0?.[_0x37c4d3(0x124)][_0x37c4d3(0x134)](_0x51a097=>_0x51a097[_0x37c4d3(0x137)]===_0x3537a1);return _0x348b4a?.['appCode']?.[_0x37c4d3(0x11d)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x5404e4=a2_0x1152;(function(_0x146f19,_0x4947f7){const _0x37f823=a2_0x1152,_0x509f9d=_0x146f19();while(!![]){try{const _0x230ce1=parseInt(_0x37f823(0xf1))/0x1+-parseInt(_0x37f823(0xe4))/0x2*(-parseInt(_0x37f823(0x11a))/0x3)+parseInt(_0x37f823(0x112))/0x4*(-parseInt(_0x37f823(0x11d))/0x5)+parseInt(_0x37f823(0x109))/0x6+-parseInt(_0x37f823(0xe9))/0x7*(-parseInt(_0x37f823(0x11f))/0x8)+parseInt(_0x37f823(0xd3))/0x9*(-parseInt(_0x37f823(0x10e))/0xa)+-parseInt(_0x37f823(0x10a))/0xb;if(_0x230ce1===_0x4947f7)break;else _0x509f9d['push'](_0x509f9d['shift']());}catch(_0x157df8){_0x509f9d['push'](_0x509f9d['shift']());}}}(a2_0x1ecc,0xeeb03));import{CliErrors}from'../../errors.js';function a2_0x1152(_0x2f6b22,_0x350e83){_0x2f6b22=_0x2f6b22-0xc9;const _0x1ecc95=a2_0x1ecc();let _0x11526a=_0x1ecc95[_0x2f6b22];return _0x11526a;}import{PRODUCT_CONFIG}from'../../constant/product.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0x5404e4(0x11e),'type':a2_0x5404e4(0x102),'description':a2_0x5404e4(0xf7),'default':![]};function collectFlags(_0x121cef,_0x468059){const _0x50bd40=a2_0x5404e4,_0x1fee1c={};for(const _0xdf205a of _0x468059){const _0xbda264=_0xdf205a[_0x50bd40(0x115)]==='boolean'?_0x121cef[_0x50bd40(0xd6)](_0xdf205a[_0x50bd40(0xe0)]):_0x121cef[_0x50bd40(0xca)](_0xdf205a['name']);if(_0xbda264!==''&&_0xbda264!==![])_0x1fee1c[_0xdf205a[_0x50bd40(0xe0)]]=_0xbda264;}if(_0x121cef[_0x50bd40(0x121)])_0x1fee1c[_0x50bd40(0x121)]=!![];return _0x1fee1c;}function normalizeLanguages(_0xcca0b1){const _0x6a923a=a2_0x5404e4;if(!Array[_0x6a923a(0x103)](_0xcca0b1))return[];return _0xcca0b1[_0x6a923a(0x110)](_0x8641b9=>typeof _0x8641b9==='string')[_0x6a923a(0x119)](_0x2a644b=>_0x2a644b[_0x6a923a(0x118)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x333c5e){const _0x38501b=a2_0x5404e4,_0x1a52ce=normalizeLanguages(_0x333c5e[_0x38501b(0xd5)]?.[_0x38501b(0xe8)]);return{'enableI18n':typeof _0x333c5e[_0x38501b(0x113)]===_0x38501b(0x102)?_0x333c5e[_0x38501b(0x113)]:null,'languages':_0x1a52ce,'i18nInfo':_0x333c5e[_0x38501b(0xd5)]?{..._0x333c5e[_0x38501b(0xd5)],'langs':_0x1a52ce['length']?_0x1a52ce:null}:null};}function a2_0x1ecc(){const _0x4aa1a9=['use','source','Use\x20`','accessKey','No\x20apps\x20found\x20on\x20the\x20platform.','name','No\x20cached\x20apps\x20found.','cache','Set\x20the\x20fallback\x20app\x20candidate','150326GaSqVE','project-default','appcode','list','langs','580013fVxfSP','read','../../commands/app/remote-source.js','fetchedAt','Remote\x20app\x20name\x20to\x20activate','items','Loaded\x20','\x20app(s)\x20for\x20env=\x22','1502376BfilPa','Usage:\x20','raw','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','validation','../../context.js','Use\x20global\x20config\x20scope','join','.appcode\x20to\x20.lovrabet.json.','find','args','import','Filter\x20by\x20environment\x20(default:\x20current\x20env)','string','length','Initialize\x20','no-cache','boolean','isArray','defaultApp','write','isCurrent','\x22\x20not\x20found.','entries','5276292abVKZa','15789906LeKhXD','pull','local','appCode','50uquziY','newConfigFileName','filter','Refreshed\x20app\x20cache\x20with\x20','244RtINWk','enableI18n','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','type','\x20app\x20use\x20<name>\x20[--global]','app','trim','map','57EItEbK','\x20config\x20file','Read\x20from\x20local\x20cache\x20only','149215oCfSZA','global','152qqevUj','mergedCli','nonInteractive','Read\x20app\x20list\x20from\x20local\x20cache\x20only','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','production','str','from','Missing\x20app\x20name.','../../commands/app/cache.js','remote','push','appName','App\x20\x22','appPublishStatus','2071152wqoeFj','cachePath','i18nInfo','bool','env','\x20cached\x20app(s)\x20for\x20env=\x22','envName','Target\x20environment\x20(default:\x20current\x20env)'];a2_0x1ecc=function(){return _0x4aa1a9;};return a2_0x1ecc();}const initDef={'service':a2_0x5404e4(0x117),'command':'init','description':a2_0x5404e4(0x100)+PRODUCT_CONFIG[a2_0x5404e4(0x10f)]+a2_0x5404e4(0x11b),'risk':a2_0x5404e4(0x105),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x9c5ad3){return await runInit(collectFlags(_0x9c5ad3,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x5404e4(0x117),'command':a2_0x5404e4(0xe7),'description':a2_0x5404e4(0x123),'risk':a2_0x5404e4(0xea),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x5404e4(0xd7),'type':a2_0x5404e4(0xfe),'description':a2_0x5404e4(0xfd),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a2_0x5404e4(0x102),'description':a2_0x5404e4(0x122),'default':![]},{'name':'no-cache','type':'boolean','description':a2_0x5404e4(0x114),'default':![]}],async 'execute'(_0x2e8027){const _0x3a3d7d=a2_0x5404e4,_0x2f17ca=_0x2e8027[_0x3a3d7d(0xca)](_0x3a3d7d(0xd7))||_0x2e8027[_0x3a3d7d(0xd9)]||getEnv()||_0x3a3d7d(0xc9),_0x4d883e=_0x2e8027[_0x3a3d7d(0xd6)](_0x3a3d7d(0x10c)),_0x42ee77=_0x2e8027['bool'](_0x3a3d7d(0x101)),{readRawConfigWithLayers:_0x24b795,resolveDefaultAppSource:_0x3a896c,getLocalAppAliases:_0x126635}=await import(_0x3a3d7d(0xf6)),{getRemoteAppList:_0x2983f1}=await import(_0x3a3d7d(0xeb)),{config:_0x43f3e9,layers:_0x2a2acd}=_0x24b795(),_0x231395=_0x3a896c(_0x2a2acd),{defaultApp:_0x2f577c}=_0x43f3e9,_0x28477e=await _0x2983f1({'env':_0x2f17ca,'accessKey':_0x2e8027[_0x3a3d7d(0xde)],'localOnly':_0x4d883e,'noCache':_0x42ee77}),_0x489bf4=_0x28477e['items'][_0x3a3d7d(0x119)](_0x58bd7a=>{const _0x88cca2=_0x3a3d7d;return{'name':_0x58bd7a[_0x88cca2(0xd0)],'appcode':_0x58bd7a[_0x88cca2(0x10d)],'named':!![],'definedIn':_0x88cca2(0xce),'isDefault':_0x58bd7a[_0x88cca2(0xd0)]===_0x2f577c,...buildAppProfileListFields(_0x2f17ca),...buildRemoteAppI18nFields(_0x58bd7a),'source':_0x28477e[_0x88cca2(0xdc)],'owner':_0x58bd7a['appOwnerName']??null,'status':_0x58bd7a[_0x88cca2(0xd2)]??null,'cachedAt':_0x28477e[_0x88cca2(0xec)]};}),_0x5e4e14=_0x126635(_0x43f3e9);let _0x33abbb=0x0;for(const [_0x3fc388,_0xcedb71]of Object[_0x3a3d7d(0x108)](_0x5e4e14)){const _0x416c6c=typeof _0xcedb71[_0x3a3d7d(0xe6)]===_0x3a3d7d(0xfe)?_0xcedb71[_0x3a3d7d(0xe6)][_0x3a3d7d(0x118)]():'';if(!_0x416c6c)continue;_0x33abbb+=0x1,_0x489bf4[_0x3a3d7d(0xcf)]({'name':_0x3fc388,'appcode':_0x416c6c,'named':!![],'definedIn':_0x3a3d7d(0x10c),'isDefault':_0x3fc388===_0x2f577c,...buildAppProfileListFields(_0x2f17ca),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x489bf4,_0x2e8027[_0x3a3d7d(0x120)]);if(_0x489bf4[_0x3a3d7d(0xff)]===0x0)return{'ok':!![],'data':[],'message':_0x28477e['source']===_0x3a3d7d(0xe2)?_0x3a3d7d(0xe1):_0x3a3d7d(0xdf)};const _0x511da2=_0x489bf4[_0x3a3d7d(0xfa)](_0x3969a6=>_0x3969a6[_0x3a3d7d(0x106)]===!![]),_0x36dc93=_0x2f577c??_0x511da2?.[_0x3a3d7d(0xe0)]??null,_0x2bb123={'env':_0x2f17ca,'source':_0x28477e[_0x3a3d7d(0xdc)],'fetchedAt':_0x28477e[_0x3a3d7d(0xec)],'cachePath':_0x28477e['cachePath'],'globalPath':_0x2a2acd['globalPath']??null,'projectPath':_0x2a2acd['projectPath']??null,'defaultApp':_0x36dc93,'defaultAppSource':_0x2f577c!=null?_0x231395:null,'localAliasCount':_0x33abbb};return{'ok':!![],'data':{'items':_0x489bf4,'meta':_0x2bb123}};}},pullDef={'service':a2_0x5404e4(0x117),'command':a2_0x5404e4(0x10b),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a2_0x5404e4(0x105),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x5404e4(0xd7),'type':a2_0x5404e4(0xfe),'description':a2_0x5404e4(0xda),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x5404e4(0x10c),'type':a2_0x5404e4(0x102),'description':a2_0x5404e4(0x11c),'default':![]},{'name':a2_0x5404e4(0x101),'type':a2_0x5404e4(0x102),'description':a2_0x5404e4(0x114),'default':![]}],async 'execute'(_0x4dfc87){const _0x5e6dff=a2_0x5404e4,_0x5cc67f=_0x4dfc87[_0x5e6dff(0xca)](_0x5e6dff(0xd7))||_0x4dfc87['envName']||getEnv()||_0x5e6dff(0xc9),_0x434b2e=_0x4dfc87[_0x5e6dff(0xd6)]('local'),_0x4997c2=_0x4dfc87[_0x5e6dff(0xd6)](_0x5e6dff(0x101)),{getRemoteAppList:_0x1c2e36}=await import(_0x5e6dff(0xeb)),_0x55d959=await _0x1c2e36({'env':_0x5cc67f,'accessKey':_0x4dfc87[_0x5e6dff(0xde)],'localOnly':_0x434b2e,'noCache':_0x4997c2});return{'ok':!![],'data':{'total':_0x55d959['items']['length'],'env':_0x5cc67f,'source':_0x55d959[_0x5e6dff(0xdc)],'fetchedAt':_0x55d959['fetchedAt'],'cachePath':_0x55d959[_0x5e6dff(0xd4)]},'message':_0x55d959[_0x5e6dff(0xdc)]==='cache'?_0x5e6dff(0xef)+_0x55d959[_0x5e6dff(0xee)][_0x5e6dff(0xff)]+_0x5e6dff(0xd8)+_0x5cc67f+'\x22.':_0x5e6dff(0x111)+_0x55d959['items'][_0x5e6dff(0xff)]+_0x5e6dff(0xf0)+_0x5cc67f+'\x22.'};}},useDef={'service':a2_0x5404e4(0x117),'command':a2_0x5404e4(0xdb),'description':a2_0x5404e4(0xe3),'risk':a2_0x5404e4(0x105),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x5404e4(0xe0),'description':a2_0x5404e4(0xed),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x2a6873){const _0x268063=a2_0x5404e4;if(!_0x2a6873[_0x268063(0xfb)][0x0])throw CliErrors['validation'](_0x268063(0xcc),_0x268063(0xf2)+CLI_BIN_NAME+_0x268063(0x116));},async 'execute'(_0x2c996f){const _0x19938c=a2_0x5404e4,_0x3d99dd=_0x2c996f[_0x19938c(0xfb)][0x0];if(!_0x3d99dd)throw CliErrors[_0x19938c(0xf5)]('Missing\x20app\x20name.',_0x19938c(0xf2)+CLI_BIN_NAME+_0x19938c(0x116));const {buildConfigFromFlags:_0x37bb9c,resolveLocalAppAliasCode:_0x39e988}=await import(_0x19938c(0xf6)),{readCachedAppList:_0x2bbd00}=await import(_0x19938c(0xcd)),_0x39ddab=_0x2c996f[_0x19938c(0xca)](_0x19938c(0xd7)),_0x5a4a3a=_0x37bb9c(_0x39ddab?{'env':_0x39ddab}:{}),_0x3df351=_0x2bbd00(_0x5a4a3a[_0x19938c(0xd7)],_0x5a4a3a[_0x19938c(0xde)]),_0x3ce203=_0x3df351?.[_0x19938c(0xee)]['find'](_0x2e11c7=>_0x2e11c7[_0x19938c(0xd0)]===_0x3d99dd),_0x4cdf81=_0x39e988(_0x5a4a3a[_0x19938c(0xf3)]??{},_0x3d99dd);if(!_0x3ce203&&!_0x4cdf81&&_0x5a4a3a[_0x19938c(0x104)]!==_0x3d99dd){const _0x516726=[..._0x3df351?.[_0x19938c(0xee)]['map'](_0x431bcd=>_0x431bcd['appName'])??[]],_0x4776b9=_0x516726[_0x19938c(0xff)]===0x0?_0x19938c(0xdd)+CLI_BIN_NAME+_0x19938c(0xf4)+_0x3d99dd+_0x19938c(0xf9):'Available\x20remote\x20apps:\x20'+Array[_0x19938c(0xcb)](new Set(_0x516726))[_0x19938c(0xf8)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors['validation'](_0x19938c(0xd1)+_0x3d99dd+_0x19938c(0x107),_0x4776b9);}const _0x521acb=_0x2c996f['bool'](_0x19938c(0x11e));let _0x4926ff;if(_0x521acb)_0x4926ff={'global':!![]};else{const {isInProject:_0x3dfeeb}=await import(_0x19938c(0xf6)),_0x51f98a=_0x3dfeeb();_0x4926ff=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x19938c(0xe5),'inProject':_0x51f98a}));}const _0x517be8=readConfig(_0x4926ff);return _0x517be8[_0x19938c(0x104)]=_0x3d99dd,writeConfig(_0x517be8,_0x4926ff),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x3d99dd+'\x22'+scopeLabel(_0x4926ff)+'.'};}},importDef={'service':a2_0x5404e4(0x117),'command':a2_0x5404e4(0xfc),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x1a4ddf){return await runInitImport(collectFlags(_0x1a4ddf,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a2_0xab65ca=a2_0x2010;(function(_0x4e0042,_0x2df3cd){const _0x1e47eb=a2_0x2010,_0x150b91=_0x4e0042();while(!![]){try{const _0x3f85ad=-parseInt(_0x1e47eb(0xba))/0x1*(-parseInt(_0x1e47eb(0x99))/0x2)+parseInt(_0x1e47eb(0xaf))/0x3*(-parseInt(_0x1e47eb(0x86))/0x4)+-parseInt(_0x1e47eb(0xb7))/0x5+-parseInt(_0x1e47eb(0xa4))/0x6+-parseInt(_0x1e47eb(0x8c))/0x7*(parseInt(_0x1e47eb(0xc5))/0x8)+-parseInt(_0x1e47eb(0xbf))/0x9*(-parseInt(_0x1e47eb(0x90))/0xa)+-parseInt(_0x1e47eb(0x8d))/0xb*(-parseInt(_0x1e47eb(0xc2))/0xc);if(_0x3f85ad===_0x2df3cd)break;else _0x150b91['push'](_0x150b91['shift']());}catch(_0x2546a5){_0x150b91['push'](_0x150b91['shift']());}}}(a2_0x3396,0x476dc));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';function a2_0x3396(){const _0x21ffcf=['langs','\x22\x20not\x20found.','appPublishStatus','\x20app(s)\x20for\x20env=\x22','3tBpupA','list','find','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','join','Read\x20from\x20local\x20cache\x20only','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','../../commands/app/cache.js','2924285nMTWJz','appcode','../../commands/app/remote-source.js','229kmlrTh','use','length','validation','accessKey','91791NkJBrQ','env','Missing\x20app\x20name.','10109688BrrHjH','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','isArray','116576dBDrnq','.appcode\x20to\x20.lovrabet.json.','envName','fetchedAt','defaultApp','str','cache','name','source','app','Target\x20environment\x20(default:\x20current\x20env)','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','args','global','isCurrent','filter','Use\x20`','production','string','App\x20\x22','bool','nonInteractive','1864396cBcIxg','Usage:\x20','../../context.js','raw','newConfigFileName','appName','35IAKGqN','11faWeyb','enableI18n','config','440oAKmPz','local','Refreshed\x20app\x20cache\x20with\x20','i18nInfo','mergedCli','No\x20cached\x20apps\x20found.','appCode','map','project-default','3266IlAtxW','\x20cached\x20app(s)\x20for\x20env=\x22','boolean','import','Filter\x20by\x20environment\x20(default:\x20current\x20env)','no-cache','Initialize\x20','Read\x20app\x20list\x20from\x20local\x20cache\x20only','cachePath','trim','appOwnerName','1492794SDJIUy','\x20app\x20use\x20<name>\x20[--global]','projectPath','Available\x20remote\x20apps:\x20','items','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','globalPath'];a2_0x3396=function(){return _0x21ffcf;};return a2_0x3396();}import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0xab65ca(0xd2),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function a2_0x2010(_0x4acc75,_0x5d2a0a){_0x4acc75=_0x4acc75-0x80;const _0x339650=a2_0x3396();let _0x201097=_0x339650[_0x4acc75];return _0x201097;}function collectFlags(_0x477654,_0x497002){const _0x51c5dc=a2_0xab65ca,_0x58e3fd={};for(const _0x32398c of _0x497002){const _0x55e356=_0x32398c['type']===_0x51c5dc(0x9b)?_0x477654[_0x51c5dc(0x84)](_0x32398c[_0x51c5dc(0xcc)]):_0x477654[_0x51c5dc(0xca)](_0x32398c[_0x51c5dc(0xcc)]);if(_0x55e356!==''&&_0x55e356!==![])_0x58e3fd[_0x32398c[_0x51c5dc(0xcc)]]=_0x55e356;}if(_0x477654[_0x51c5dc(0x85)])_0x58e3fd[_0x51c5dc(0x85)]=!![];return _0x58e3fd;}function normalizeLanguages(_0x3e7b93){const _0x3e8ee3=a2_0xab65ca;if(!Array[_0x3e8ee3(0xc4)](_0x3e7b93))return[];return _0x3e7b93[_0x3e8ee3(0xd4)](_0x533e55=>typeof _0x533e55===_0x3e8ee3(0x82))[_0x3e8ee3(0x97)](_0x431e50=>_0x431e50[_0x3e8ee3(0xa2)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0xc38e09){const _0x1ed0d6=a2_0xab65ca,_0x302aad=normalizeLanguages(_0xc38e09[_0x1ed0d6(0x93)]?.[_0x1ed0d6(0xab)]);return{'enableI18n':typeof _0xc38e09[_0x1ed0d6(0x8e)]==='boolean'?_0xc38e09['enableI18n']:null,'languages':_0x302aad,'i18nInfo':_0xc38e09[_0x1ed0d6(0x93)]?{..._0xc38e09['i18nInfo'],'langs':_0x302aad[_0x1ed0d6(0xbc)]?_0x302aad:null}:null};}const initDef={'service':a2_0xab65ca(0xce),'command':'init','description':a2_0xab65ca(0x9f)+PRODUCT_CONFIG[a2_0xab65ca(0x8a)]+'\x20config\x20file','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x4f2cbb){return await runInit(collectFlags(_0x4f2cbb,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a2_0xab65ca(0xb0),'description':a2_0xab65ca(0xa9),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0xab65ca(0xc0),'type':a2_0xab65ca(0x82),'description':a2_0xab65ca(0x9d),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a2_0xab65ca(0x9b),'description':a2_0xab65ca(0xa0),'default':![]},{'name':a2_0xab65ca(0x9e),'type':a2_0xab65ca(0x9b),'description':a2_0xab65ca(0xb2),'default':![]}],async 'execute'(_0xad7f4f){const _0x49171f=a2_0xab65ca,_0x4f2ba7=_0xad7f4f[_0x49171f(0xca)](_0x49171f(0xc0))||_0xad7f4f[_0x49171f(0xc7)]||getEnv()||'production',_0x5dca1a=_0xad7f4f['bool'](_0x49171f(0x91)),_0x18124c=_0xad7f4f[_0x49171f(0x84)](_0x49171f(0x9e)),{readRawConfigWithLayers:_0x28b865,resolveDefaultAppSource:_0x54240e,getLocalAppAliases:_0x280e64}=await import(_0x49171f(0x88)),{getRemoteAppList:_0x49eafa}=await import(_0x49171f(0xb9)),{config:_0x29ff30,layers:_0x3929ae}=_0x28b865(),_0x195b27=_0x54240e(_0x3929ae),{defaultApp:_0x724383}=_0x29ff30,_0x454a56=await _0x49eafa({'env':_0x4f2ba7,'accessKey':_0xad7f4f[_0x49171f(0xbe)],'localOnly':_0x5dca1a,'noCache':_0x18124c}),_0x1b7396=_0x454a56[_0x49171f(0xa8)][_0x49171f(0x97)](_0x3fa4e0=>{const _0x5d60af=_0x49171f;return{'name':_0x3fa4e0['appName'],'appcode':_0x3fa4e0[_0x5d60af(0x96)],'named':!![],'definedIn':'remote','isDefault':_0x3fa4e0['appName']===_0x724383,...buildAppProfileListFields(_0x4f2ba7),...buildRemoteAppI18nFields(_0x3fa4e0),'source':_0x454a56[_0x5d60af(0xcd)],'owner':_0x3fa4e0[_0x5d60af(0xa3)]??null,'status':_0x3fa4e0[_0x5d60af(0xad)]??null,'cachedAt':_0x454a56[_0x5d60af(0xc8)]};}),_0x295f89=_0x280e64(_0x29ff30);let _0x599f24=0x0;for(const [_0x5d0d7e,_0x2e25f4]of Object['entries'](_0x295f89)){const _0x3c2c3e=typeof _0x2e25f4[_0x49171f(0xb8)]===_0x49171f(0x82)?_0x2e25f4[_0x49171f(0xb8)][_0x49171f(0xa2)]():'';if(!_0x3c2c3e)continue;_0x599f24+=0x1,_0x1b7396['push']({'name':_0x5d0d7e,'appcode':_0x3c2c3e,'named':!![],'definedIn':'local','isDefault':_0x5d0d7e===_0x724383,...buildAppProfileListFields(_0x4f2ba7),'source':_0x49171f(0x8f),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x1b7396,_0xad7f4f[_0x49171f(0x94)]);if(_0x1b7396[_0x49171f(0xbc)]===0x0)return{'ok':!![],'data':[],'message':_0x454a56['source']==='cache'?_0x49171f(0x95):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0xebc3e5=_0x1b7396[_0x49171f(0xb1)](_0xeab959=>_0xeab959[_0x49171f(0xd3)]===!![]),_0x5ba278=_0x724383??_0xebc3e5?.[_0x49171f(0xcc)]??null,_0x3952ba={'env':_0x4f2ba7,'source':_0x454a56['source'],'fetchedAt':_0x454a56[_0x49171f(0xc8)],'cachePath':_0x454a56[_0x49171f(0xa1)],'globalPath':_0x3929ae[_0x49171f(0xaa)]??null,'projectPath':_0x3929ae[_0x49171f(0xa6)]??null,'defaultApp':_0x5ba278,'defaultAppSource':_0x724383!=null?_0x195b27:null,'localAliasCount':_0x599f24};return{'ok':!![],'data':{'items':_0x1b7396,'meta':_0x3952ba}};}},pullDef={'service':a2_0xab65ca(0xce),'command':'pull','description':a2_0xab65ca(0xb5),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0xab65ca(0xc0),'type':a2_0xab65ca(0x82),'description':a2_0xab65ca(0xcf),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xab65ca(0x91),'type':a2_0xab65ca(0x9b),'description':a2_0xab65ca(0xb4),'default':![]},{'name':'no-cache','type':'boolean','description':a2_0xab65ca(0xb2),'default':![]}],async 'execute'(_0x27a927){const _0x1f09c3=a2_0xab65ca,_0x22f9a7=_0x27a927[_0x1f09c3(0xca)](_0x1f09c3(0xc0))||_0x27a927[_0x1f09c3(0xc7)]||getEnv()||_0x1f09c3(0x81),_0x31a3dd=_0x27a927[_0x1f09c3(0x84)](_0x1f09c3(0x91)),_0x1d0054=_0x27a927[_0x1f09c3(0x84)](_0x1f09c3(0x9e)),{getRemoteAppList:_0x24a094}=await import(_0x1f09c3(0xb9)),_0x2ec715=await _0x24a094({'env':_0x22f9a7,'accessKey':_0x27a927[_0x1f09c3(0xbe)],'localOnly':_0x31a3dd,'noCache':_0x1d0054});return{'ok':!![],'data':{'total':_0x2ec715[_0x1f09c3(0xa8)][_0x1f09c3(0xbc)],'env':_0x22f9a7,'source':_0x2ec715[_0x1f09c3(0xcd)],'fetchedAt':_0x2ec715[_0x1f09c3(0xc8)],'cachePath':_0x2ec715[_0x1f09c3(0xa1)]},'message':_0x2ec715[_0x1f09c3(0xcd)]===_0x1f09c3(0xcb)?'Loaded\x20'+_0x2ec715[_0x1f09c3(0xa8)]['length']+_0x1f09c3(0x9a)+_0x22f9a7+'\x22.':_0x1f09c3(0x92)+_0x2ec715[_0x1f09c3(0xa8)]['length']+_0x1f09c3(0xae)+_0x22f9a7+'\x22.'};}},useDef={'service':a2_0xab65ca(0xce),'command':a2_0xab65ca(0xbb),'description':'Set\x20the\x20fallback\x20app\x20candidate','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x5ef9f5){const _0x51c204=a2_0xab65ca;if(!_0x5ef9f5[_0x51c204(0xd1)][0x0])throw CliErrors[_0x51c204(0xbd)]('Missing\x20app\x20name.',_0x51c204(0x87)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x3b10de){const _0x1db1b5=a2_0xab65ca,_0x62b6df=_0x3b10de[_0x1db1b5(0xd1)][0x0];if(!_0x62b6df)throw CliErrors[_0x1db1b5(0xbd)](_0x1db1b5(0xc1),_0x1db1b5(0x87)+CLI_BIN_NAME+_0x1db1b5(0xa5));const {buildConfigFromFlags:_0x3cddf6,resolveLocalAppAliasCode:_0x4c7676}=await import('../../context.js'),{readCachedAppList:_0x815c8c}=await import(_0x1db1b5(0xb6)),_0x63f516=_0x3b10de[_0x1db1b5(0xca)]('env'),_0x19a68c=_0x3cddf6(_0x63f516?{'env':_0x63f516}:{}),_0x1c1133=_0x815c8c(_0x19a68c[_0x1db1b5(0xc0)],_0x19a68c[_0x1db1b5(0xbe)]),_0xc46225=_0x1c1133?.[_0x1db1b5(0xa8)][_0x1db1b5(0xb1)](_0x2fc22c=>_0x2fc22c[_0x1db1b5(0x8b)]===_0x62b6df),_0x16de2a=_0x4c7676(_0x19a68c[_0x1db1b5(0x89)]??{},_0x62b6df);if(!_0xc46225&&!_0x16de2a&&_0x19a68c[_0x1db1b5(0xc9)]!==_0x62b6df){const _0x5e67ec=[..._0x1c1133?.[_0x1db1b5(0xa8)][_0x1db1b5(0x97)](_0x4d9fa5=>_0x4d9fa5['appName'])??[]],_0x58b7a1=_0x5e67ec[_0x1db1b5(0xbc)]===0x0?_0x1db1b5(0x80)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x62b6df+_0x1db1b5(0xc6):_0x1db1b5(0xa7)+Array['from'](new Set(_0x5e67ec))[_0x1db1b5(0xb3)](',\x20')+_0x1db1b5(0xc3);throw CliErrors[_0x1db1b5(0xbd)](_0x1db1b5(0x83)+_0x62b6df+_0x1db1b5(0xac),_0x58b7a1);}const _0x2713de=_0x3b10de[_0x1db1b5(0x84)](_0x1db1b5(0xd2));let _0x3a94f1;if(_0x2713de)_0x3a94f1={'global':!![]};else{const {isInProject:_0x3d8366}=await import(_0x1db1b5(0x88)),_0x39cb7a=_0x3d8366();_0x3a94f1=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x1db1b5(0x98),'inProject':_0x39cb7a}));}const _0x2b347b=readConfig(_0x3a94f1);return _0x2b347b['defaultApp']=_0x62b6df,writeConfig(_0x2b347b,_0x3a94f1),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x62b6df+'\x22'+scopeLabel(_0x3a94f1)+'.'};}},importDef={'service':'app','command':a2_0xab65ca(0x9c),'description':a2_0xab65ca(0xd0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4cd4c9){return await runInitImport(collectFlags(_0x4cd4c9,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x5d6819,_0x12bed6){const _0x1f12ba=a3_0x1726,_0x468031=_0x5d6819();while(!![]){try{const _0x3f9b71=-parseInt(_0x1f12ba(0x1f1))/0x1+-parseInt(_0x1f12ba(0x1f2))/0x2*(parseInt(_0x1f12ba(0x1f4))/0x3)+parseInt(_0x1f12ba(0x1ea))/0x4*(-parseInt(_0x1f12ba(0x1e9))/0x5)+parseInt(_0x1f12ba(0x1ec))/0x6*(parseInt(_0x1f12ba(0x1eb))/0x7)+-parseInt(_0x1f12ba(0x1f6))/0x8+parseInt(_0x1f12ba(0x1f5))/0x9*(-parseInt(_0x1f12ba(0x1f0))/0xa)+parseInt(_0x1f12ba(0x1ef))/0xb;if(_0x3f9b71===_0x12bed6)break;else _0x468031['push'](_0x468031['shift']());}catch(_0x3639f5){_0x468031['push'](_0x468031['shift']());}}}(a3_0x1ab9,0xb153c));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x1726(_0x2b23fa,_0x10b055){_0x2b23fa=_0x2b23fa-0x1e8;const _0x1ab95e=a3_0x1ab9();let _0x1726ee=_0x1ab95e[_0x2b23fa];return _0x1726ee;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1fe008=a3_0x1726,_0x5d2bed=join(__dirname,'../../../mock/app-list.json'),_0x1a13fb=readFileSync(_0x5d2bed,_0x1fe008(0x1f3));return JSON[_0x1fe008(0x1ed)](_0x1a13fb);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a3_0x1ab9(){const _0x5d5efa=['tableData','2060lYLAHu','6700BtscBI','4683XrNSVU','8838cbESBY','parse','errorMsg','24582019XnaQzq','434510PxEfgV','434587iUAHNi','245946lWRbPc','utf-8','30Gyltav','18wLVTnd','420120ZcBOZl'];a3_0x1ab9=function(){return _0x5d5efa;};return a3_0x1ab9();}export function getMockRemoteAppItems(){const _0x562ab4=a3_0x1726,_0x2c6da9=getMockAppList();if(!_0x2c6da9['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x2c6da9[_0x562ab4(0x1ee)]+'\x20('+_0x2c6da9['errorCode']+')');return _0x2c6da9['data'][_0x562ab4(0x1e8)];}
1
+ (function(_0xa1bdc8,_0x2531a8){const _0x1d9e63=a3_0x2b93,_0x5651a1=_0xa1bdc8();while(!![]){try{const _0x262e93=-parseInt(_0x1d9e63(0xbd))/0x1*(parseInt(_0x1d9e63(0xb4))/0x2)+-parseInt(_0x1d9e63(0xb3))/0x3+-parseInt(_0x1d9e63(0xaf))/0x4*(parseInt(_0x1d9e63(0xac))/0x5)+parseInt(_0x1d9e63(0xbb))/0x6*(-parseInt(_0x1d9e63(0xb1))/0x7)+-parseInt(_0x1d9e63(0xb7))/0x8+-parseInt(_0x1d9e63(0xb9))/0x9+parseInt(_0x1d9e63(0xb0))/0xa;if(_0x262e93===_0x2531a8)break;else _0x5651a1['push'](_0x5651a1['shift']());}catch(_0x4a547c){_0x5651a1['push'](_0x5651a1['shift']());}}}(a3_0x3639,0x7ba30));import{fileURLToPath}from'url';function a3_0x3639(){const _0x495238=['utf-8','6212440KewMsK','success','3442806EdvstP','errorCode','1064658rufgLA','../../../mock/app-list.json','796LiVYCw','15QJyiDq','data','errorMsg','945940WrnwGw','37706440xZHXAF','14EWKJQF','tableData','2023914oqjYcZ','920IQNFZR','Mock\x20API\x20error:\x20'];a3_0x3639=function(){return _0x495238;};return a3_0x3639();}import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x2b93(_0x23bc28,_0xf52771){_0x23bc28=_0x23bc28-0xac;const _0x363926=a3_0x3639();let _0x2b939=_0x363926[_0x23bc28];return _0x2b939;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0xbed136=a3_0x2b93,_0x547d9b=join(__dirname,_0xbed136(0xbc)),_0x45accc=readFileSync(_0x547d9b,_0xbed136(0xb6));return JSON['parse'](_0x45accc);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x51285b=a3_0x2b93,_0x30e626=getMockAppList();if(!_0x30e626[_0x51285b(0xb8)])throw new Error(_0x51285b(0xb5)+_0x30e626[_0x51285b(0xae)]+'\x20('+_0x30e626[_0x51285b(0xba)]+')');return _0x30e626[_0x51285b(0xad)][_0x51285b(0xb2)];}
@@ -1 +1 @@
1
- function a4_0x1200(_0x3eec4c,_0x24e96f){_0x3eec4c=_0x3eec4c-0x193;const _0x38c553=a4_0x38c5();let _0x12008c=_0x38c553[_0x3eec4c];return _0x12008c;}(function(_0x49577a,_0xe4c73b){const _0x369514=a4_0x1200,_0x1c7610=_0x49577a();while(!![]){try{const _0x36194f=-parseInt(_0x369514(0x19a))/0x1*(parseInt(_0x369514(0x19b))/0x2)+parseInt(_0x369514(0x1a6))/0x3+parseInt(_0x369514(0x19d))/0x4+parseInt(_0x369514(0x193))/0x5*(-parseInt(_0x369514(0x197))/0x6)+parseInt(_0x369514(0x19c))/0x7*(parseInt(_0x369514(0x19e))/0x8)+-parseInt(_0x369514(0x19f))/0x9*(-parseInt(_0x369514(0x194))/0xa)+-parseInt(_0x369514(0x195))/0xb*(parseInt(_0x369514(0x1a4))/0xc);if(_0x36194f===_0xe4c73b)break;else _0x1c7610['push'](_0x1c7610['shift']());}catch(_0x247823){_0x1c7610['push'](_0x1c7610['shift']());}}}(a4_0x38c5,0xa822a));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x5108cd=a4_0x1200,_0x3859c9=(productEnv(_0x5108cd(0x198))||'')['trim']()[_0x5108cd(0x199)]();return _0x3859c9==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x38c5(){const _0x3de3fa=['12444708qQaZDm','items','1462407ESiEGh','27460wYBAFj','2067100dJWTWP','11ciHiBr','fetchedAt','480IuPGeF','APP_LIST_SOURCE','toLowerCase','2227XsWiwX','6Ptlitr','7YnKVjr','158788DhWAWP','4888528YRzIxz','45mrxAvM','toISOString','cache','remote','trim'];a4_0x38c5=function(){return _0x3de3fa;};return a4_0x38c5();}export async function getRemoteAppList(_0x205701){const _0x4476a1=a4_0x1200,{env:_0x3dc368,accessKey:_0x55776c,localOnly:localOnly=![],noCache:noCache=![]}=_0x205701,_0x2f693d=readCachedAppList(_0x3dc368,_0x55776c),_0x29be3e=_0x55776c?.[_0x4476a1(0x1a3)]()?getAppCacheFilePath(_0x3dc368,_0x55776c):null;if(localOnly)return{'items':_0x2f693d?.['items']??[],'source':_0x4476a1(0x1a1),'fetchedAt':_0x2f693d?.['fetchedAt']??null,'cachePath':_0x29be3e};try{const _0x4cb6e1=await getRemoteAppItems(),_0x3104bf=shouldUseMockRemoteApps()?'mock':_0x4476a1(0x1a2),_0x2a7158=new Date()[_0x4476a1(0x1a0)](),_0xf319d1=_0x55776c?.['trim']()?writeCachedAppList(_0x3dc368,_0x55776c,{'env':_0x3dc368,'fetchedAt':_0x2a7158,'source':_0x3104bf,'items':_0x4cb6e1}):null;return{'items':_0x4cb6e1,'source':_0x3104bf,'fetchedAt':_0x2a7158,'cachePath':_0xf319d1};}catch(_0x188378){if(!noCache&&_0x2f693d)return{'items':_0x2f693d[_0x4476a1(0x1a5)],'source':_0x4476a1(0x1a1),'fetchedAt':_0x2f693d[_0x4476a1(0x196)],'cachePath':_0x29be3e};throw _0x188378;}}
1
+ (function(_0x4f2f68,_0x285847){const _0x5354d8=a4_0x4373,_0x4dbef8=_0x4f2f68();while(!![]){try{const _0x186474=-parseInt(_0x5354d8(0xf8))/0x1+-parseInt(_0x5354d8(0xf4))/0x2*(parseInt(_0x5354d8(0xee))/0x3)+parseInt(_0x5354d8(0xfa))/0x4*(-parseInt(_0x5354d8(0xef))/0x5)+-parseInt(_0x5354d8(0xfe))/0x6+parseInt(_0x5354d8(0xf9))/0x7*(-parseInt(_0x5354d8(0xfb))/0x8)+parseInt(_0x5354d8(0xf6))/0x9+parseInt(_0x5354d8(0xfc))/0xa*(parseInt(_0x5354d8(0xf1))/0xb);if(_0x186474===_0x285847)break;else _0x4dbef8['push'](_0x4dbef8['shift']());}catch(_0x307d29){_0x4dbef8['push'](_0x4dbef8['shift']());}}}(a4_0x370d,0x8f7b3));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a4_0x4373(_0x41e750,_0xcba73d){_0x41e750=_0x41e750-0xee;const _0x370d03=a4_0x370d();let _0x437350=_0x370d03[_0x41e750];return _0x437350;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x356fa0=a4_0x4373,_0x592ab3=(productEnv('APP_LIST_SOURCE')||'')[_0x356fa0(0xf5)]()['toLowerCase']();return _0x592ab3===_0x356fa0(0xf0);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x370d(){const _0x15b5d5=['7SXwWQY','224zhnvuz','6078376duMuVd','10eqHnVG','fetchedAt','4094778DtmnHb','3bykwcV','11200kdPPlJ','mock','30841173sJNDco','items','toISOString','1698922GdVmiY','trim','3977028SrgKEG','cache','240775PMIkhb'];a4_0x370d=function(){return _0x15b5d5;};return a4_0x370d();}export async function getRemoteAppList(_0x1e6a24){const _0x572601=a4_0x4373,{env:_0x452626,accessKey:_0x3f70ad,localOnly:localOnly=![],noCache:noCache=![]}=_0x1e6a24,_0x2c6e01=readCachedAppList(_0x452626,_0x3f70ad),_0x5ae53f=_0x3f70ad?.[_0x572601(0xf5)]()?getAppCacheFilePath(_0x452626,_0x3f70ad):null;if(localOnly)return{'items':_0x2c6e01?.[_0x572601(0xf2)]??[],'source':_0x572601(0xf7),'fetchedAt':_0x2c6e01?.[_0x572601(0xfd)]??null,'cachePath':_0x5ae53f};try{const _0x30e3f7=await getRemoteAppItems(),_0x3276b1=shouldUseMockRemoteApps()?_0x572601(0xf0):'remote',_0x122c26=new Date()[_0x572601(0xf3)](),_0x329c0c=_0x3f70ad?.['trim']()?writeCachedAppList(_0x452626,_0x3f70ad,{'env':_0x452626,'fetchedAt':_0x122c26,'source':_0x3276b1,'items':_0x30e3f7}):null;return{'items':_0x30e3f7,'source':_0x3276b1,'fetchedAt':_0x122c26,'cachePath':_0x329c0c};}catch(_0x3218f4){if(!noCache&&_0x2c6e01)return{'items':_0x2c6e01[_0x572601(0xf2)],'source':'cache','fetchedAt':_0x2c6e01[_0x572601(0xfd)],'cachePath':_0x5ae53f};throw _0x3218f4;}}
@@ -1 +1 @@
1
- (function(_0x4de625,_0x4b3bd6){const _0xb125fa=a5_0x4795,_0x3c2c18=_0x4de625();while(!![]){try{const _0x2bef70=parseInt(_0xb125fa(0x195))/0x1+parseInt(_0xb125fa(0x199))/0x2*(parseInt(_0xb125fa(0x18e))/0x3)+-parseInt(_0xb125fa(0x18a))/0x4*(-parseInt(_0xb125fa(0x191))/0x5)+parseInt(_0xb125fa(0x193))/0x6*(parseInt(_0xb125fa(0x19b))/0x7)+parseInt(_0xb125fa(0x19a))/0x8+-parseInt(_0xb125fa(0x18f))/0x9*(parseInt(_0xb125fa(0x18d))/0xa)+-parseInt(_0xb125fa(0x192))/0xb;if(_0x2bef70===_0x4b3bd6)break;else _0x3c2c18['push'](_0x3c2c18['shift']());}catch(_0x5b9d81){_0x3c2c18['push'](_0x3c2c18['shift']());}}}(a5_0x14ba,0xe9d91));function a5_0x4795(_0x2adeca,_0x432c3c){_0x2adeca=_0x2adeca-0x18a;const _0x14ba36=a5_0x14ba();let _0x4795be=_0x14ba36[_0x2adeca];return _0x4795be;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0x14ba(){const _0x240f2b=['trim','588825ZccbLz','global','appcode','name','16396kxmeNt','6263976nfQRTn','133cSsldX','appCode','project','isCurrent','4VToZKB','currentApp','named','410XPmPhw','357YGwQSJ','3519ouKQsf','defaultApp','2582925UHnfIF','22114455nsXOuT','37992zafARG'];a5_0x14ba=function(){return _0x240f2b;};return a5_0x14ba();}export function enrichAppListItemsWithMergedSelection(_0x2f7f05,_0x272c80){const _0x5e8126=a5_0x4795;if(!_0x272c80)return;const _0x5ac06a=!!(_0x272c80[_0x5e8126(0x18b)]??_0x272c80[_0x5e8126(0x190)]);for(const _0x2ad52d of _0x2f7f05){_0x2ad52d[_0x5e8126(0x19e)]=![];}const _0x45a207=_0x272c80[_0x5e8126(0x19c)]!=null?String(_0x272c80['appCode'])[_0x5e8126(0x194)]():'';if(_0x5ac06a){const _0x2293ba=_0x272c80[_0x5e8126(0x18b)]??_0x272c80[_0x5e8126(0x190)];if(_0x2293ba){const _0x557566=_0x2f7f05['find'](_0x4e2736=>_0x4e2736[_0x5e8126(0x18c)]===!![]&&_0x4e2736[_0x5e8126(0x198)]===_0x2293ba&&_0x4e2736['definedIn']==='local'),_0x3e74b2=_0x557566??_0x2f7f05['find'](_0xca7605=>_0xca7605[_0x5e8126(0x18c)]===!![]&&_0xca7605[_0x5e8126(0x198)]===_0x2293ba);_0x3e74b2&&(_0x3e74b2['isCurrent']=!![]);}return;}if(!_0x45a207)return;for(const _0xa56243 of _0x2f7f05){String(_0xa56243[_0x5e8126(0x197)]??'')[_0x5e8126(0x194)]()===_0x45a207&&(_0xa56243[_0x5e8126(0x19e)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x1250a7){const _0x333607=a5_0x4795;return formatScopeLabel(_0x1250a7[_0x333607(0x196)]?_0x333607(0x196):_0x333607(0x19d));}
1
+ (function(_0x5889ac,_0x5cf92a){const _0x1d9b74=a5_0x6e7d,_0x5165c9=_0x5889ac();while(!![]){try{const _0x340fa2=parseInt(_0x1d9b74(0x76))/0x1+parseInt(_0x1d9b74(0x7a))/0x2+-parseInt(_0x1d9b74(0x6f))/0x3+parseInt(_0x1d9b74(0x82))/0x4+-parseInt(_0x1d9b74(0x7b))/0x5+-parseInt(_0x1d9b74(0x78))/0x6*(parseInt(_0x1d9b74(0x75))/0x7)+parseInt(_0x1d9b74(0x70))/0x8*(parseInt(_0x1d9b74(0x7c))/0x9);if(_0x340fa2===_0x5cf92a)break;else _0x5165c9['push'](_0x5165c9['shift']());}catch(_0x78821b){_0x5165c9['push'](_0x5165c9['shift']());}}}(a5_0x68f6,0x2f11e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4bc013,_0x155c08){const _0x5c900f=a5_0x6e7d;if(!_0x155c08)return;const _0x4abd0e=!!(_0x155c08['currentApp']??_0x155c08[_0x5c900f(0x77)]);for(const _0x3b7244 of _0x4bc013){_0x3b7244[_0x5c900f(0x79)]=![];}const _0x9daa16=_0x155c08['appCode']!=null?String(_0x155c08[_0x5c900f(0x71)])[_0x5c900f(0x7e)]():'';if(_0x4abd0e){const _0x31794a=_0x155c08[_0x5c900f(0x80)]??_0x155c08[_0x5c900f(0x77)];if(_0x31794a){const _0x3b14af=_0x4bc013['find'](_0x15c4fe=>_0x15c4fe['named']===!![]&&_0x15c4fe[_0x5c900f(0x74)]===_0x31794a&&_0x15c4fe[_0x5c900f(0x6e)]==='local'),_0x17957b=_0x3b14af??_0x4bc013[_0x5c900f(0x73)](_0xdb0e8c=>_0xdb0e8c[_0x5c900f(0x7f)]===!![]&&_0xdb0e8c['name']===_0x31794a);_0x17957b&&(_0x17957b[_0x5c900f(0x79)]=!![]);}return;}if(!_0x9daa16)return;for(const _0x5c8794 of _0x4bc013){String(_0x5c8794[_0x5c900f(0x72)]??'')[_0x5c900f(0x7e)]()===_0x9daa16&&(_0x5c8794['isCurrent']=!![]);}}function a5_0x6e7d(_0x481d9a,_0x56cfc1){_0x481d9a=_0x481d9a-0x6e;const _0x68f656=a5_0x68f6();let _0x6e7d87=_0x68f656[_0x481d9a];return _0x6e7d87;}function a5_0x68f6(){const _0x31aa7f=['16872OumDGj','isCurrent','121562mgcqyj','1599175GWxvZC','2718dSMoQh','project','trim','named','currentApp','global','724716eRFcYX','definedIn','816534QqumJQ','10880nVFwii','appCode','appcode','find','name','511xipNwX','337407yJwIZL','defaultApp'];a5_0x68f6=function(){return _0x31aa7f;};return a5_0x68f6();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x517b3f){const _0x36ef0d=a5_0x6e7d;return formatScopeLabel(_0x517b3f[_0x36ef0d(0x81)]?'global':_0x36ef0d(0x7d));}
@@ -1 +1 @@
1
- const a6_0x4efe86=a6_0x3c83;(function(_0x54139a,_0x5b0e27){const _0x2a960b=a6_0x3c83,_0x52e544=_0x54139a();while(!![]){try{const _0x203f32=-parseInt(_0x2a960b(0x1a9))/0x1*(parseInt(_0x2a960b(0x172))/0x2)+parseInt(_0x2a960b(0x1ac))/0x3*(parseInt(_0x2a960b(0x18c))/0x4)+parseInt(_0x2a960b(0x193))/0x5+-parseInt(_0x2a960b(0x187))/0x6+parseInt(_0x2a960b(0x190))/0x7*(-parseInt(_0x2a960b(0x186))/0x8)+-parseInt(_0x2a960b(0x16f))/0x9*(parseInt(_0x2a960b(0x192))/0xa)+parseInt(_0x2a960b(0x163))/0xb*(parseInt(_0x2a960b(0x19c))/0xc);if(_0x203f32===_0x5b0e27)break;else _0x52e544['push'](_0x52e544['shift']());}catch(_0x4c4c35){_0x52e544['push'](_0x52e544['shift']());}}}(a6_0x4c4a,0xeb74b));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a6_0x4c4a(){const _0x366718=['7DvVhJe','Read\x20from\x20global\x20config\x20(default)','90neyBlJ','9242930XjWvLh','length','validation','\x20config.','Missing\x20accessKey.','Clear\x20accessKey\x20from\x20config','project','Tip:\x20you\x20can\x20also\x20run:','Option\x20B:\x20apps\x20config\x20(','24IDVDUN','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','nonInteractive','cancelled','push','\x20\x20export\x20','daily','Then\x20verify\x20with:\x20','repeat','read','AccessKey:\x20','AccessKey\x20cleared\x20from\x20','AccessKey\x20saved\x20to\x20','637cFRGrn','Auth\x20mode:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','1773156OXQJHp','logout','stdin','Show\x20current\x20authentication\x20status','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','status','\x20config.\x20Nothing\x20to\x20clear.','Auth\x20config\x20reinitialized\x20in\x20','\x20config','env','boolean','write','stdout','3352283XZatbW','Option\x20C:\x20environment\x20variable','access-key','Option\x20A:\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','ACCESS_KEY','str','\x20env\x20var','trim','Clear\x20from\x20global\x20config\x20(default)','\x20Current\x20env:\x20','envName','851418EJfmTO','join','Use\x20`','926hzxcEE','Invalid\x20accessKey\x20format:\x20\x22','\x20auth\x20status','production','test','slice','global','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','development','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','auth','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','newConfigFileName','accessKey','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','bool','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20Verify:\x20','\x20scope.','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','5130184KwzGad','5328882scXWwS','userCenterDisplayName','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Write\x20to\x20global\x20config\x20(default)','8EBznoN','global-default','string','No\x20AccessKey\x20found\x20in\x20'];a6_0x4c4a=function(){return _0x366718;};return a6_0x4c4a();}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';function a6_0x3c83(_0x2239bf,_0x5c56f0){_0x2239bf=_0x2239bf-0x162;const _0x4c4a58=a6_0x4c4a();let _0x3c8347=_0x4c4a58[_0x2239bf];return _0x3c8347;}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 _0x36eba5=a6_0x3c83;writeCliSideChannelLine(_0x36eba5(0x179)+PRODUCT_CONFIG[_0x36eba5(0x188)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x36eba5(0x19a)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x3209c0=a6_0x3c83;return[_0x3209c0(0x179)+PRODUCT_CONFIG[_0x3209c0(0x188)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x3209c0(0x180)][_0x3209c0(0x170)]('\x0a');}function canPromptForAccessKey(_0x287f85){const _0xbfb70a=a6_0x3c83;return!_0x287f85[_0xbfb70a(0x19e)]&&process[_0xbfb70a(0x1ae)]['isTTY']!==![]&&process[_0xbfb70a(0x162)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x599af1){const _0x46a1a6=a6_0x3c83;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x599af1[_0x46a1a6(0x181)]('global'),'explicitProject':_0x599af1[_0x46a1a6(0x181)](_0x46a1a6(0x199)),'policy':_0x46a1a6(0x18d)}));}async function resolveAuthWriteInput(_0x47a169){const _0x49a43f=a6_0x3c83;let _0x579e28=(_0x47a169['str'](_0x49a43f(0x165))||_0x47a169[_0x49a43f(0x169)]('ak')||'')['trim']();const _0x474bae=(_0x47a169[_0x49a43f(0x169)]('env')||'')[_0x49a43f(0x16b)]();if(!_0x579e28&&canPromptForAccessKey(_0x47a169))try{showAccessKeyCreateHint(),_0x579e28=await promptAccessKey('');}catch(_0x1c4e4e){if(isAbortPrompt(_0x1c4e4e))throw CliErrors[_0x49a43f(0x19f)]();throw _0x1c4e4e;}if(!_0x579e28)throw CliErrors[_0x49a43f(0x195)](_0x49a43f(0x197),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x49a43f(0x176)](_0x579e28))throw CliErrors[_0x49a43f(0x195)](_0x49a43f(0x173)+_0x579e28+'\x22',_0x49a43f(0x19d));if(!_0x474bae)return{'accessKey':_0x579e28};const _0x4df959=normalizeEnv(_0x474bae);return{'accessKey':_0x579e28,'env':isDaily(_0x4df959)?_0x49a43f(0x1a2):isDev(_0x4df959)?_0x49a43f(0x17a):_0x49a43f(0x175)};}export const authDefinitions=[{'service':a6_0x4efe86(0x17c),'command':'login','description':a6_0x4efe86(0x167),'risk':a6_0x4efe86(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x4efe86(0x165),'type':a6_0x4efe86(0x18e),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':'boolean','description':a6_0x4efe86(0x18b),'default':!![]},{'name':a6_0x4efe86(0x199),'type':a6_0x4efe86(0x1b6),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x335ef8){const _0x40442a=a6_0x4efe86;if(_0x335ef8[_0x40442a(0x181)]('yes'))throw CliErrors[_0x40442a(0x195)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x40442a(0x171)+CLI_BIN_NAME+_0x40442a(0x182)+CLI_BIN_NAME+_0x40442a(0x189));const _0x4eea0e=(_0x335ef8['str'](_0x40442a(0x165))||_0x335ef8[_0x40442a(0x169)]('ak')||'')[_0x40442a(0x16b)]();if(!_0x4eea0e&&_0x335ef8['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5c45ee=await resolveAuthWriteInput(_0x335ef8),_0x133c60=resolveAuthScopeFlags(_0x335ef8),_0x404510=readScopedConfig(_0x133c60);_0x404510['accessKey']=_0x5c45ee[_0x40442a(0x17f)];_0x5c45ee[_0x40442a(0x1b5)]&&(_0x404510['env']=_0x5c45ee[_0x40442a(0x1b5)]);writeScopedConfig(_0x404510,_0x133c60);const _0x1439d9=_0x133c60['global']?_0x40442a(0x178):_0x40442a(0x199),_0x3a7bb4=_0x404510[_0x40442a(0x1b5)]?'\x20Current\x20env:\x20'+_0x404510['env']+'.':'';return{'ok':!![],'message':_0x40442a(0x1a8)+_0x1439d9+_0x40442a(0x196)+_0x3a7bb4+_0x40442a(0x183)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x4efe86(0x17c),'command':'init','description':a6_0x4efe86(0x1b0),'risk':a6_0x4efe86(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x4efe86(0x165),'type':a6_0x4efe86(0x18e),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a6_0x4efe86(0x18e),'description':'Shorthand\x20for\x20--access-key'},{'name':a6_0x4efe86(0x1b5),'type':a6_0x4efe86(0x18e),'description':a6_0x4efe86(0x18a)},{'name':a6_0x4efe86(0x178),'type':'boolean','description':a6_0x4efe86(0x18b),'default':!![]},{'name':a6_0x4efe86(0x199),'type':a6_0x4efe86(0x1b6),'description':a6_0x4efe86(0x1ab),'default':![]}],async 'execute'(_0x5cd916){const _0x15fe40=a6_0x4efe86,_0x58e555=await resolveAuthWriteInput(_0x5cd916),_0x596499=resolveAuthScopeFlags(_0x5cd916),_0x27ac32={'accessKey':_0x58e555[_0x15fe40(0x17f)]};_0x58e555[_0x15fe40(0x1b5)]&&(_0x27ac32[_0x15fe40(0x1b5)]=_0x58e555[_0x15fe40(0x1b5)]);writeScopedConfig(_0x27ac32,_0x596499);const _0x4df815=_0x596499['global']?_0x15fe40(0x178):_0x15fe40(0x199),_0x350aa6=_0x27ac32[_0x15fe40(0x1b5)]?_0x15fe40(0x16d)+_0x27ac32[_0x15fe40(0x1b5)]+'.':'';return{'ok':!![],'message':_0x15fe40(0x1b3)+_0x4df815+_0x15fe40(0x184)+_0x350aa6+'\x20Verify:\x20'+CLI_BIN_NAME+_0x15fe40(0x174)};}},{'service':'auth','command':a6_0x4efe86(0x1ad),'description':a6_0x4efe86(0x198),'risk':a6_0x4efe86(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x4efe86(0x178),'type':a6_0x4efe86(0x1b6),'description':a6_0x4efe86(0x16c),'default':!![]},{'name':a6_0x4efe86(0x199),'type':a6_0x4efe86(0x1b6),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0xa90dcd){const _0x964727=a6_0x4efe86,_0x404506=resolveAuthScopeFlags(_0xa90dcd),_0x221bae=readScopedConfig(_0x404506),_0x22b97a=!!_0x221bae[_0x964727(0x17f)];delete _0x221bae[_0x964727(0x17f)],writeScopedConfig(_0x221bae,_0x404506);const _0x54d7a5=_0x404506['global']?'global':_0x964727(0x199);if(_0x22b97a)return{'ok':!![],'message':_0x964727(0x1a7)+_0x54d7a5+_0x964727(0x196)};return{'ok':!![],'message':_0x964727(0x18f)+_0x54d7a5+_0x964727(0x1b2)};}},{'service':'auth','command':a6_0x4efe86(0x1b1),'description':a6_0x4efe86(0x1af),'risk':a6_0x4efe86(0x1a5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a6_0x4efe86(0x191),'default':!![]},{'name':a6_0x4efe86(0x199),'type':a6_0x4efe86(0x1b6),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x750da7){const _0x1016cd=a6_0x4efe86,_0x362b8f=resolveAuthScopeFlags(_0x750da7),_0x1c634a=readScopedConfig(_0x362b8f),_0x37d87a=productEnvName('ACCESS_KEY'),_0x15125f=productEnv(_0x1016cd(0x168))||undefined,_0x38863d=_0x1c634a[_0x1016cd(0x17f)]||undefined,_0xe6c500=_0x15125f||_0x38863d,_0x46b1d6=_0x15125f?_0x37d87a+_0x1016cd(0x16a):_0x38863d?(_0x362b8f[_0x1016cd(0x178)]?_0x1016cd(0x178):_0x1016cd(0x199))+_0x1016cd(0x1b4):null,_0xcb8a2e=[_0x1016cd(0x1aa)+AUTH_MODE['ClientAk']];if(_0xe6c500){const _0x354e48=_0xe6c500[_0x1016cd(0x194)]>0x8?''+_0xe6c500[_0x1016cd(0x177)](0x0,0x8)+'*'[_0x1016cd(0x1a4)](_0xe6c500[_0x1016cd(0x194)]-0x8):_0xe6c500;_0xcb8a2e[_0x1016cd(0x1a0)](_0x1016cd(0x1a6)+_0x354e48+(_0x46b1d6?'\x20(via\x20'+_0x46b1d6+')':''));}return!_0xe6c500&&(_0xcb8a2e['push'](''),_0xcb8a2e[_0x1016cd(0x1a0)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0xcb8a2e[_0x1016cd(0x1a0)](''),_0xcb8a2e['push'](_0x1016cd(0x166)+CLI_BIN_NAME+_0x1016cd(0x185)),_0xcb8a2e[_0x1016cd(0x1a0)](''),_0xcb8a2e[_0x1016cd(0x1a0)](_0x1016cd(0x19b)+PRODUCT_CONFIG[_0x1016cd(0x17e)]+')'),_0xcb8a2e['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0xcb8a2e[_0x1016cd(0x1a0)](''),_0xcb8a2e[_0x1016cd(0x1a0)](_0x1016cd(0x164)),_0xcb8a2e['push'](_0x1016cd(0x1a1)+_0x37d87a+'=ak_xxx'),_0xcb8a2e[_0x1016cd(0x1a0)](''),_0xcb8a2e['push'](_0x1016cd(0x1a3)+CLI_BIN_NAME+_0x1016cd(0x174)),_0xcb8a2e[_0x1016cd(0x1a0)](_0x1016cd(0x17d)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0xcb8a2e['join']('\x0a')};}},{'service':'auth','command':'info','description':a6_0x4efe86(0x17b),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x177028){const _0xe58dbb=a6_0x4efe86,_0x3eadc8=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3eadc8,'meta':{'env':_0x177028[_0xe58dbb(0x16e)]??_0xe58dbb(0x175)}}};}}];
1
+ const a6_0x1213b5=a6_0x5e69;(function(_0x189f39,_0x5cc746){const _0x15e642=a6_0x5e69,_0x1624a7=_0x189f39();while(!![]){try{const _0x398729=-parseInt(_0x15e642(0xfc))/0x1+parseInt(_0x15e642(0x138))/0x2+-parseInt(_0x15e642(0x12b))/0x3*(-parseInt(_0x15e642(0x134))/0x4)+-parseInt(_0x15e642(0x119))/0x5+parseInt(_0x15e642(0x126))/0x6+-parseInt(_0x15e642(0x141))/0x7+parseInt(_0x15e642(0xf4))/0x8*(parseInt(_0x15e642(0x11d))/0x9);if(_0x398729===_0x5cc746)break;else _0x1624a7['push'](_0x1624a7['shift']());}catch(_0x2aede2){_0x1624a7['push'](_0x1624a7['shift']());}}}(a6_0x36a7,0x4cdc8));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a6_0x36a7(){const _0x9b299a=['read','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','=ak_xxx','validation','Shorthand\x20for\x20--access-key','test','auth','length','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20Verify:\x20','Option\x20C:\x20environment\x20variable','AccessKey\x20(ak_xxx...)','boolean','accessKey','\x20Current\x20env:\x20','cancelled','logout','project','\x20(via\x20','production','string','slice','stdout','Clear\x20from\x20global\x20config\x20(default)','Auth\x20mode:\x20','trim','\x20doctor','3064505xtPudw','Auth\x20config\x20reinitialized\x20in\x20','Write\x20to\x20global\x20config\x20(default)','access-key','2489202RiwfFJ','isTTY','init','Invalid\x20accessKey\x20format:\x20\x22','login','Then\x20verify\x20with:\x20','userCenterDisplayName','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','env','2065530JcgVMa','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','daily','ACCESS_KEY','\x20auth\x20login\x20--access-key\x20<ak_xxx>','3309sJTvsI','nonInteractive','global-default','Tip:\x20you\x20can\x20also\x20run:','str','\x20config.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20saved\x20to\x20','join','804xeuSfb','AccessKey:\x20','newConfigFileName','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','396584hKffjh','info','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','repeat','\x20\x20export\x20','write','push','\x20config.\x20Nothing\x20to\x20clear.','1633506JWcErp','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','status','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','bool','16uGFcsP','\x20auth\x20status','stdin','\x20config','Clear\x20accessKey\x20from\x20config','yes','global','Show\x20current\x20authentication\x20status','156323eBGgxJ'];a6_0x36a7=function(){return _0x9b299a;};return a6_0x36a7();}function a6_0x5e69(_0x6251a8,_0x599fa6){_0x6251a8=_0x6251a8-0xf1;const _0x36a7d5=a6_0x36a7();let _0x5e69ce=_0x36a7d5[_0x6251a8];return _0x5e69ce;}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 _0x23e540=a6_0x5e69;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x23e540(0x123)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x23e540(0x12e)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x23e540(0x12a));}function buildAccessKeySetupGuide(){const _0x421398=a6_0x5e69;return[_0x421398(0x106)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x421398(0x13a)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x3ac918){const _0x3ed3c3=a6_0x5e69;return!_0x3ac918[_0x3ed3c3(0x12c)]&&process[_0x3ed3c3(0xf6)][_0x3ed3c3(0x11e)]!==![]&&process[_0x3ed3c3(0x114)][_0x3ed3c3(0x11e)]!==![];}function resolveAuthScopeFlags(_0x24fc0a){const _0x558415=a6_0x5e69;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x24fc0a[_0x558415(0xf3)](_0x558415(0xfa)),'explicitProject':_0x24fc0a[_0x558415(0xf3)](_0x558415(0x10f)),'policy':_0x558415(0x12d)}));}async function resolveAuthWriteInput(_0x3d66db){const _0x2c7c03=a6_0x5e69;let _0x3a50d5=(_0x3d66db[_0x2c7c03(0x12f)](_0x2c7c03(0x11c))||_0x3d66db[_0x2c7c03(0x12f)]('ak')||'')[_0x2c7c03(0x117)]();const _0x565aad=(_0x3d66db['str'](_0x2c7c03(0x125))||'')[_0x2c7c03(0x117)]();if(!_0x3a50d5&&canPromptForAccessKey(_0x3d66db))try{showAccessKeyCreateHint(),_0x3a50d5=await promptAccessKey('');}catch(_0x2bc1d9){if(isAbortPrompt(_0x2bc1d9))throw CliErrors[_0x2c7c03(0x10d)]();throw _0x2bc1d9;}if(!_0x3a50d5)throw CliErrors[_0x2c7c03(0x101)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x2c7c03(0x103)](_0x3a50d5))throw CliErrors['validation'](_0x2c7c03(0x120)+_0x3a50d5+'\x22',_0x2c7c03(0x124));if(!_0x565aad)return{'accessKey':_0x3a50d5};const _0x437f21=normalizeEnv(_0x565aad);return{'accessKey':_0x3a50d5,'env':isDaily(_0x437f21)?_0x2c7c03(0x128):isDev(_0x437f21)?'development':_0x2c7c03(0x111)};}export const authDefinitions=[{'service':a6_0x1213b5(0x104),'command':a6_0x1213b5(0x121),'description':a6_0x1213b5(0x127),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1213b5(0x11c),'type':a6_0x1213b5(0x112),'description':a6_0x1213b5(0x109)},{'name':'ak','type':a6_0x1213b5(0x112),'description':a6_0x1213b5(0x102)},{'name':'global','type':a6_0x1213b5(0x10a),'description':a6_0x1213b5(0x11b),'default':!![]},{'name':a6_0x1213b5(0x10f),'type':a6_0x1213b5(0x10a),'description':a6_0x1213b5(0x131),'default':![]}],async 'execute'(_0x140ed1){const _0x17ccb7=a6_0x1213b5;if(_0x140ed1[_0x17ccb7(0xf3)](_0x17ccb7(0xf9)))throw CliErrors[_0x17ccb7(0x101)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x17ccb7(0x13b));const _0x55671e=(_0x140ed1['str'](_0x17ccb7(0x11c))||_0x140ed1[_0x17ccb7(0x12f)]('ak')||'')[_0x17ccb7(0x117)]();if(!_0x55671e&&_0x140ed1['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x277965=await resolveAuthWriteInput(_0x140ed1),_0x2b84fc=resolveAuthScopeFlags(_0x140ed1),_0x262633=readScopedConfig(_0x2b84fc);_0x262633[_0x17ccb7(0x10b)]=_0x277965[_0x17ccb7(0x10b)];_0x277965[_0x17ccb7(0x125)]&&(_0x262633[_0x17ccb7(0x125)]=_0x277965[_0x17ccb7(0x125)]);writeScopedConfig(_0x262633,_0x2b84fc);const _0x2a0b52=_0x2b84fc[_0x17ccb7(0xfa)]?_0x17ccb7(0xfa):_0x17ccb7(0x10f),_0x3eaf8b=_0x262633[_0x17ccb7(0x125)]?_0x17ccb7(0x10c)+_0x262633[_0x17ccb7(0x125)]+'.':'';return{'ok':!![],'message':_0x17ccb7(0x132)+_0x2a0b52+_0x17ccb7(0x130)+_0x3eaf8b+_0x17ccb7(0x107)+CLI_BIN_NAME+_0x17ccb7(0xf5)};}},{'service':'auth','command':a6_0x1213b5(0x11f),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a6_0x1213b5(0x13e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1213b5(0x11c),'type':'string','description':a6_0x1213b5(0x109)},{'name':'ak','type':a6_0x1213b5(0x112),'description':a6_0x1213b5(0x102)},{'name':'env','type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a6_0x1213b5(0xfa),'type':a6_0x1213b5(0x10a),'description':a6_0x1213b5(0x11b),'default':!![]},{'name':a6_0x1213b5(0x10f),'type':'boolean','description':a6_0x1213b5(0x131),'default':![]}],async 'execute'(_0x54a669){const _0x5f5b48=a6_0x1213b5,_0x3c5d9c=await resolveAuthWriteInput(_0x54a669),_0x26391f=resolveAuthScopeFlags(_0x54a669),_0x14d7f9={'accessKey':_0x3c5d9c[_0x5f5b48(0x10b)]};_0x3c5d9c['env']&&(_0x14d7f9[_0x5f5b48(0x125)]=_0x3c5d9c[_0x5f5b48(0x125)]);writeScopedConfig(_0x14d7f9,_0x26391f);const _0x31f782=_0x26391f[_0x5f5b48(0xfa)]?_0x5f5b48(0xfa):_0x5f5b48(0x10f),_0x3e6238=_0x14d7f9['env']?'\x20Current\x20env:\x20'+_0x14d7f9[_0x5f5b48(0x125)]+'.':'';return{'ok':!![],'message':_0x5f5b48(0x11a)+_0x31f782+'\x20scope.'+_0x3e6238+_0x5f5b48(0x107)+CLI_BIN_NAME+_0x5f5b48(0xf5)};}},{'service':a6_0x1213b5(0x104),'command':a6_0x1213b5(0x10e),'description':a6_0x1213b5(0xf8),'risk':a6_0x1213b5(0x13e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1213b5(0xfa),'type':a6_0x1213b5(0x10a),'description':a6_0x1213b5(0x115),'default':!![]},{'name':'project','type':a6_0x1213b5(0x10a),'description':a6_0x1213b5(0x137),'default':![]}],async 'execute'(_0x3d7069){const _0x329539=a6_0x1213b5,_0x5def0e=resolveAuthScopeFlags(_0x3d7069),_0x480f6b=readScopedConfig(_0x5def0e),_0x369c2a=!!_0x480f6b[_0x329539(0x10b)];delete _0x480f6b[_0x329539(0x10b)],writeScopedConfig(_0x480f6b,_0x5def0e);const _0xb6a97e=_0x5def0e[_0x329539(0xfa)]?_0x329539(0xfa):_0x329539(0x10f);if(_0x369c2a)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0xb6a97e+_0x329539(0x130)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0xb6a97e+_0x329539(0x140)};}},{'service':a6_0x1213b5(0x104),'command':a6_0x1213b5(0xf1),'description':a6_0x1213b5(0xfb),'risk':a6_0x1213b5(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1213b5(0xfa),'type':a6_0x1213b5(0x10a),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x1213b5(0x10f),'type':a6_0x1213b5(0x10a),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x2b4912){const _0x12b241=a6_0x1213b5,_0x3c1057=resolveAuthScopeFlags(_0x2b4912),_0xccc244=readScopedConfig(_0x3c1057),_0x2b0aa=productEnvName(_0x12b241(0x129)),_0x2f398f=productEnv('ACCESS_KEY')||undefined,_0x15c0b9=_0xccc244[_0x12b241(0x10b)]||undefined,_0x46b150=_0x2f398f||_0x15c0b9,_0x431ed1=_0x2f398f?_0x2b0aa+'\x20env\x20var':_0x15c0b9?(_0x3c1057['global']?_0x12b241(0xfa):_0x12b241(0x10f))+_0x12b241(0xf7):null,_0x165c78=[_0x12b241(0x116)+AUTH_MODE['ClientAk']];if(_0x46b150){const _0x453d22=_0x46b150['length']>0x8?''+_0x46b150[_0x12b241(0x113)](0x0,0x8)+'*'[_0x12b241(0x13c)](_0x46b150[_0x12b241(0x105)]-0x8):_0x46b150;_0x165c78[_0x12b241(0x13f)](_0x12b241(0x135)+_0x453d22+(_0x431ed1?_0x12b241(0x110)+_0x431ed1+')':''));}return!_0x46b150&&(_0x165c78['push'](''),_0x165c78[_0x12b241(0x13f)](_0x12b241(0xf2)),_0x165c78[_0x12b241(0x13f)](''),_0x165c78['push']('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x165c78[_0x12b241(0x13f)](''),_0x165c78[_0x12b241(0x13f)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x12b241(0x136)]+')'),_0x165c78[_0x12b241(0x13f)](_0x12b241(0xfe)),_0x165c78['push'](''),_0x165c78['push'](_0x12b241(0x108)),_0x165c78[_0x12b241(0x13f)](_0x12b241(0x13d)+_0x2b0aa+_0x12b241(0x100)),_0x165c78['push'](''),_0x165c78[_0x12b241(0x13f)](_0x12b241(0x122)+CLI_BIN_NAME+'\x20auth\x20status'),_0x165c78[_0x12b241(0x13f)](_0x12b241(0x142)+CLI_BIN_NAME+_0x12b241(0x118))),{'ok':!![],'message':_0x165c78[_0x12b241(0x133)]('\x0a')};}},{'service':a6_0x1213b5(0x104),'command':a6_0x1213b5(0x139),'description':a6_0x1213b5(0xff),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4f03f6){const _0x265fda=a6_0x1213b5,_0x38972c=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x38972c,'meta':{'env':_0x4f03f6['envName']??_0x265fda(0x111)}}};}}];
@@ -1 +1 @@
1
- (function(_0x2ef1b8,_0x2ca854){const _0x46a63f=a7_0x4310,_0x51a218=_0x2ef1b8();while(!![]){try{const _0x1e4939=parseInt(_0x46a63f(0x7a))/0x1+parseInt(_0x46a63f(0x87))/0x2+parseInt(_0x46a63f(0x79))/0x3+-parseInt(_0x46a63f(0x83))/0x4*(-parseInt(_0x46a63f(0x8c))/0x5)+-parseInt(_0x46a63f(0x86))/0x6*(-parseInt(_0x46a63f(0x7d))/0x7)+-parseInt(_0x46a63f(0x85))/0x8*(-parseInt(_0x46a63f(0x76))/0x9)+-parseInt(_0x46a63f(0x89))/0xa*(parseInt(_0x46a63f(0x77))/0xb);if(_0x1e4939===_0x2ca854)break;else _0x51a218['push'](_0x51a218['shift']());}catch(_0x114189){_0x51a218['push'](_0x51a218['shift']());}}}(a7_0x207f,0x7414f));import{createInterface}from'node:readline';function a7_0x4310(_0x1d46f6,_0xc23710){_0x1d46f6=_0x1d46f6-0x75;const _0x207f38=a7_0x207f();let _0x431047=_0x207f38[_0x1d46f6];return _0x431047;}class AbortPrompt extends Error{constructor(){const _0x76b82=a7_0x4310;super(_0x76b82(0x78)),this[_0x76b82(0x8a)]=_0x76b82(0x7e);}}function createSafeRl(){const _0x5c2e04=a7_0x4310,_0x343da2=createInterface({'input':process[_0x5c2e04(0x84)],'output':process[_0x5c2e04(0x7c)]});let _0x711e68;const _0xa29f09=new Promise((_0x585a39,_0x5ba3eb)=>{const _0x37d2c8=_0x5c2e04;_0x711e68=()=>{const _0x564874=a7_0x4310;_0x711e68&&(_0x343da2[_0x564874(0x80)]('SIGINT',_0x711e68),_0x711e68=undefined);try{_0x343da2[_0x564874(0x7b)]();}catch{}_0x5ba3eb(new AbortPrompt());},_0x343da2[_0x37d2c8(0x7f)](_0x37d2c8(0x82),_0x711e68);}),_0x869afe=()=>{const _0x351b19=_0x5c2e04;_0x711e68&&(_0x343da2[_0x351b19(0x80)](_0x351b19(0x82),_0x711e68),_0x711e68=undefined);try{_0x343da2['close']();}catch{}};return{'rl':_0x343da2,'abortPromise':_0xa29f09,'disposeSuccess':_0x869afe};}function a7_0x207f(){const _0x331258=['146899IHolII','close','stdout','196xTbCXQ','AbortPrompt','once','removeListener','trim','SIGINT','64LBIvxj','stdin','229136ZEfXyU','51048WSATCm','807670VBCHEL','question','3664520HYsULK','name','AccessKey\x20(paste\x20ak_...):\x20','17015aPkHfg','AccessKey\x20(','):\x20','9afeJjy','22WrsTkb','User\x20aborted\x20prompt','1008981aTrNBz'];a7_0x207f=function(){return _0x331258;};return a7_0x207f();}export async function promptAccessKey(_0x1ddfab=''){const {rl:_0x26bef1,abortPromise:_0x44730c,disposeSuccess:_0x3a6ece}=createSafeRl(),_0x7b8f2f=new Promise(_0x537fc9=>{const _0x404b66=a7_0x4310,_0x232027=_0x1ddfab?_0x404b66(0x8d)+_0x1ddfab+_0x404b66(0x75):_0x404b66(0x8b);_0x26bef1[_0x404b66(0x88)](_0x232027,_0x11518e=>{const _0x236faf=_0x404b66;_0x3a6ece(),_0x537fc9(_0x11518e[_0x236faf(0x81)]()||_0x1ddfab);});});return Promise['race']([_0x7b8f2f,_0x44730c]);}export function isAbortPrompt(_0x13b9bb){return _0x13b9bb instanceof Error&&_0x13b9bb['name']==='AbortPrompt';}
1
+ (function(_0x81574f,_0x323962){const _0x34bdec=a7_0x353a,_0x14458d=_0x81574f();while(!![]){try{const _0x2184c4=parseInt(_0x34bdec(0x1da))/0x1+parseInt(_0x34bdec(0x1d7))/0x2*(parseInt(_0x34bdec(0x1dd))/0x3)+parseInt(_0x34bdec(0x1d3))/0x4*(-parseInt(_0x34bdec(0x1e0))/0x5)+parseInt(_0x34bdec(0x1d4))/0x6+-parseInt(_0x34bdec(0x1dc))/0x7+-parseInt(_0x34bdec(0x1d1))/0x8+parseInt(_0x34bdec(0x1df))/0x9*(parseInt(_0x34bdec(0x1d9))/0xa);if(_0x2184c4===_0x323962)break;else _0x14458d['push'](_0x14458d['shift']());}catch(_0x365a80){_0x14458d['push'](_0x14458d['shift']());}}}(a7_0x22f7,0x87488));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1fb166=a7_0x353a;super('User\x20aborted\x20prompt'),this[_0x1fb166(0x1e1)]=_0x1fb166(0x1cf);}}function a7_0x353a(_0x497ac3,_0x456807){_0x497ac3=_0x497ac3-0x1cb;const _0x22f7af=a7_0x22f7();let _0x353a14=_0x22f7af[_0x497ac3];return _0x353a14;}function createSafeRl(){const _0x2bbb34=a7_0x353a,_0x22d868=createInterface({'input':process[_0x2bbb34(0x1d2)],'output':process[_0x2bbb34(0x1db)]});let _0x200461;const _0x3ef6b5=new Promise((_0x1ee732,_0x27b6da)=>{const _0x5acc8a=_0x2bbb34;_0x200461=()=>{const _0x109ed1=a7_0x353a;_0x200461&&(_0x22d868[_0x109ed1(0x1cc)](_0x109ed1(0x1cd),_0x200461),_0x200461=undefined);try{_0x22d868[_0x109ed1(0x1d8)]();}catch{}_0x27b6da(new AbortPrompt());},_0x22d868[_0x5acc8a(0x1de)]('SIGINT',_0x200461);}),_0x42d308=()=>{const _0x5a88ba=_0x2bbb34;_0x200461&&(_0x22d868[_0x5a88ba(0x1cc)]('SIGINT',_0x200461),_0x200461=undefined);try{_0x22d868[_0x5a88ba(0x1d8)]();}catch{}};return{'rl':_0x22d868,'abortPromise':_0x3ef6b5,'disposeSuccess':_0x42d308};}function a7_0x22f7(){const _0x26fffc=['3806210HmLcJT','1021242Zyhqgn','stdout','4192783OYfSUe','12mdYbMC','once','9nAIiLa','5NGkfza','name','AccessKey\x20(','removeListener','SIGINT','):\x20','AbortPrompt','trim','7112544dmdqIA','stdin','1383500lKpaHi','349158BhDRZS','AccessKey\x20(paste\x20ak_...):\x20','question','463988VcQUls','close'];a7_0x22f7=function(){return _0x26fffc;};return a7_0x22f7();}export async function promptAccessKey(_0x402bd4=''){const {rl:_0x38ec6c,abortPromise:_0x2ed69b,disposeSuccess:_0x15dac8}=createSafeRl(),_0x4e8b30=new Promise(_0x11e6f8=>{const _0x466938=a7_0x353a,_0x301c32=_0x402bd4?_0x466938(0x1cb)+_0x402bd4+_0x466938(0x1ce):_0x466938(0x1d5);_0x38ec6c[_0x466938(0x1d6)](_0x301c32,_0x239152=>{const _0x32a860=_0x466938;_0x15dac8(),_0x11e6f8(_0x239152[_0x32a860(0x1d0)]()||_0x402bd4);});});return Promise['race']([_0x4e8b30,_0x2ed69b]);}export function isAbortPrompt(_0x5849c2){const _0x38500c=a7_0x353a;return _0x5849c2 instanceof Error&&_0x5849c2[_0x38500c(0x1e1)]===_0x38500c(0x1cf);}
@@ -1 +1 @@
1
- const a8_0x438bd1=a8_0x44ec;function a8_0x44ec(_0x1ad201,_0x14d7fc){_0x1ad201=_0x1ad201-0x1a5;const _0x290e06=a8_0x290e();let _0x44ec15=_0x290e06[_0x1ad201];return _0x44ec15;}(function(_0x57b98f,_0x3d1a65){const _0x37cd78=a8_0x44ec,_0x4dab49=_0x57b98f();while(!![]){try{const _0x474cee=parseInt(_0x37cd78(0x1b1))/0x1*(parseInt(_0x37cd78(0x1b0))/0x2)+parseInt(_0x37cd78(0x1ac))/0x3*(parseInt(_0x37cd78(0x1bd))/0x4)+-parseInt(_0x37cd78(0x1a5))/0x5*(parseInt(_0x37cd78(0x1a7))/0x6)+parseInt(_0x37cd78(0x1ae))/0x7+-parseInt(_0x37cd78(0x1b5))/0x8+parseInt(_0x37cd78(0x1b8))/0x9+-parseInt(_0x37cd78(0x1ba))/0xa*(parseInt(_0x37cd78(0x1a6))/0xb);if(_0x474cee===_0x3d1a65)break;else _0x4dab49['push'](_0x4dab49['shift']());}catch(_0xbd92c5){_0x4dab49['push'](_0x4dab49['shift']());}}}(a8_0x290e,0x23cc5));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x290e(){const _0x336ede=['bff','description','15IhrcOE','(none)','1951180gNKdPy','bool','508940jmUMgO','1aGxRZD','createdTime','scriptType','read','1075696XMoAjj','detail','Script\x20ID','2475108NWOpER','appCode','120fLZdIn','Get\x20BFF\x20script\x20details\x20by\x20ID','num','195540HatcJI','5stGdYw','662684ReWlVx','291768MRVOkB','updatedTime','verbose'];a8_0x290e=function(){return _0x336ede;};return a8_0x290e();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x438bd1(0x1aa),'command':a8_0x438bd1(0x1b6),'description':a8_0x438bd1(0x1bb),'risk':a8_0x438bd1(0x1b4),'flags':[{...ID_FLAG,'description':a8_0x438bd1(0x1b7)},VERBOSE_FLAG],async 'execute'(_0x3f0a70){const _0x27d14d=a8_0x438bd1,_0x25f31d=await getBffScriptInfo(_0x3f0a70[_0x27d14d(0x1bc)]('id')),_0x20bb28=_0x3f0a70[_0x27d14d(0x1af)](_0x27d14d(0x1a9));if(_0x20bb28)return{'ok':!![],'data':_0x25f31d};return{'ok':!![],'data':{'id':_0x25f31d['id'],'appCode':_0x25f31d[_0x27d14d(0x1b9)],'functionName':_0x25f31d['functionName']??'','scriptType':_0x25f31d[_0x27d14d(0x1b3)],'description':_0x25f31d[_0x27d14d(0x1ab)]||_0x27d14d(0x1ad),'createdTime':_0x25f31d[_0x27d14d(0x1b2)]??'','updatedTime':_0x25f31d[_0x27d14d(0x1a8)]??''}};}};
1
+ const a8_0x1330c9=a8_0x4ae2;function a8_0x39ba(){const _0x4605ed=['verbose','305606NZKMUn','21dpSxAe','appCode','(none)','functionName','detail','scriptType','updatedTime','10309229vXGQDR','num','56895KRSokO','2548968PNjlKI','read','456oQVkoW','bool','657OsqOPs','267440rFCORy','551330anumEs','Script\x20ID','description','837732diFBbZ'];a8_0x39ba=function(){return _0x4605ed;};return a8_0x39ba();}function a8_0x4ae2(_0x19cdbd,_0x1bc550){_0x19cdbd=_0x19cdbd-0x105;const _0x39ba63=a8_0x39ba();let _0x4ae25b=_0x39ba63[_0x19cdbd];return _0x4ae25b;}(function(_0x49abe5,_0x567585){const _0x1b44d8=a8_0x4ae2,_0x1495e7=_0x49abe5();while(!![]){try{const _0x55698b=-parseInt(_0x1b44d8(0x10d))/0x1+parseInt(_0x1b44d8(0x10f))/0x2*(-parseInt(_0x1b44d8(0x110))/0x3)+-parseInt(_0x1b44d8(0x11a))/0x4+parseInt(_0x1b44d8(0x119))/0x5*(parseInt(_0x1b44d8(0x106))/0x6)+-parseInt(_0x1b44d8(0x117))/0x7+parseInt(_0x1b44d8(0x109))/0x8+parseInt(_0x1b44d8(0x108))/0x9*(parseInt(_0x1b44d8(0x10a))/0xa);if(_0x55698b===_0x567585)break;else _0x1495e7['push'](_0x1495e7['shift']());}catch(_0x247240){_0x1495e7['push'](_0x1495e7['shift']());}}}(a8_0x39ba,0xdd181));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a8_0x1330c9(0x114),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0x1330c9(0x105),'flags':[{...ID_FLAG,'description':a8_0x1330c9(0x10b)},VERBOSE_FLAG],async 'execute'(_0x120c33){const _0x359854=a8_0x1330c9,_0x4fa23c=await getBffScriptInfo(_0x120c33[_0x359854(0x118)]('id')),_0x28bf4b=_0x120c33[_0x359854(0x107)](_0x359854(0x10e));if(_0x28bf4b)return{'ok':!![],'data':_0x4fa23c};return{'ok':!![],'data':{'id':_0x4fa23c['id'],'appCode':_0x4fa23c[_0x359854(0x111)],'functionName':_0x4fa23c[_0x359854(0x113)]??'','scriptType':_0x4fa23c[_0x359854(0x115)],'description':_0x4fa23c[_0x359854(0x10c)]||_0x359854(0x112),'createdTime':_0x4fa23c['createdTime']??'','updatedTime':_0x4fa23c[_0x359854(0x116)]??''}};}};
@@ -1 +1 @@
1
- const a9_0x13254b=a9_0x77e2;function a9_0x903c(){const _0x481487=['222884EFuyOq','exec','str','800416lfFXrQ','2216304dXNEWF','bff','now','99JEYDtP','read','6RRdemR','122172gFpzeY','977144uBeZjR','BFF\x20executed\x20in\x20','4633665MEhdiw','176078GJRhzy','params'];a9_0x903c=function(){return _0x481487;};return a9_0x903c();}(function(_0x2c8990,_0x53415d){const _0x3bf1cf=a9_0x77e2,_0x357cfc=_0x2c8990();while(!![]){try{const _0x37b5e3=-parseInt(_0x3bf1cf(0xc9))/0x1+parseInt(_0x3bf1cf(0xcf))/0x2+parseInt(_0x3bf1cf(0xd3))/0x3+parseInt(_0x3bf1cf(0xd2))/0x4+parseInt(_0x3bf1cf(0xcc))/0x5+-parseInt(_0x3bf1cf(0xc8))/0x6*(-parseInt(_0x3bf1cf(0xcd))/0x7)+-parseInt(_0x3bf1cf(0xca))/0x8*(parseInt(_0x3bf1cf(0xc6))/0x9);if(_0x37b5e3===_0x53415d)break;else _0x357cfc['push'](_0x357cfc['shift']());}catch(_0x16e8ce){_0x357cfc['push'](_0x357cfc['shift']());}}}(a9_0x903c,0x82f88));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a9_0x77e2(_0x980753,_0xb9c15c){_0x980753=_0x980753-0xc4;const _0x903c6e=a9_0x903c();let _0x77e296=_0x903c6e[_0x980753];return _0x77e296;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x13254b(0xc4),'command':a9_0x13254b(0xd0),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x13254b(0xc7),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x55d8f1){const _0x2cd197=a9_0x13254b,_0x11892f=parseJsonParams(_0x55d8f1[_0x2cd197(0xd1)](_0x2cd197(0xce))),_0x2caa6d=Date[_0x2cd197(0xc5)](),_0x44d5b2=await executeSdkBff(_0x55d8f1[_0x2cd197(0xd1)]('name'),_0x11892f),_0x33a8e3=Date[_0x2cd197(0xc5)]()-_0x2caa6d;return{'ok':!![],'data':{'result':_0x44d5b2,'elapsed':_0x33a8e3},'message':_0x2cd197(0xcb)+_0x33a8e3+'ms'};}};
1
+ const a9_0x3c44b3=a9_0x1fe9;(function(_0x22fba6,_0x3603a9){const _0x463889=a9_0x1fe9,_0x24e31f=_0x22fba6();while(!![]){try{const _0x145cfa=parseInt(_0x463889(0x1a0))/0x1*(parseInt(_0x463889(0x197))/0x2)+parseInt(_0x463889(0x193))/0x3*(-parseInt(_0x463889(0x195))/0x4)+-parseInt(_0x463889(0x19c))/0x5+-parseInt(_0x463889(0x19a))/0x6+-parseInt(_0x463889(0x199))/0x7*(-parseInt(_0x463889(0x1a2))/0x8)+-parseInt(_0x463889(0x191))/0x9*(parseInt(_0x463889(0x19d))/0xa)+-parseInt(_0x463889(0x19e))/0xb*(-parseInt(_0x463889(0x196))/0xc);if(_0x145cfa===_0x3603a9)break;else _0x24e31f['push'](_0x24e31f['shift']());}catch(_0x100960){_0x24e31f['push'](_0x24e31f['shift']());}}}(a9_0x42ed,0x81130));function a9_0x42ed(){const _0x3659fe=['exec','4Ppcmfh','12OazGMB','2GMEvzo','now','175BGVlye','834114eloymd','bff','376180TMqRNW','7110260WGHLOg','2695099fANmVR','params','700218XddgyZ','read','237848avIcvi','9ucgroJ','str','703599vyoDml'];a9_0x42ed=function(){return _0x3659fe;};return a9_0x42ed();}function a9_0x1fe9(_0x296f07,_0x58e94e){_0x296f07=_0x296f07-0x191;const _0x42ed70=a9_0x42ed();let _0x1fe96b=_0x42ed70[_0x296f07];return _0x1fe96b;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x3c44b3(0x19b),'command':a9_0x3c44b3(0x194),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x3c44b3(0x1a1),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x4bb14e){const _0x347250=a9_0x3c44b3,_0x4aefce=parseJsonParams(_0x4bb14e[_0x347250(0x192)](_0x347250(0x19f))),_0x1120f0=Date[_0x347250(0x198)](),_0x4d9779=await executeSdkBff(_0x4bb14e[_0x347250(0x192)]('name'),_0x4aefce),_0xb6e168=Date[_0x347250(0x198)]()-_0x1120f0;return{'ok':!![],'data':{'result':_0x4d9779,'elapsed':_0xb6e168},'message':'BFF\x20executed\x20in\x20'+_0xb6e168+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x37c408,_0x1a39f0){const _0x43ae9c=a10_0xe451,_0x245dbc=_0x37c408();while(!![]){try{const _0x1b66e1=parseInt(_0x43ae9c(0x1d8))/0x1+parseInt(_0x43ae9c(0x1d7))/0x2*(parseInt(_0x43ae9c(0x1d6))/0x3)+parseInt(_0x43ae9c(0x1cf))/0x4*(-parseInt(_0x43ae9c(0x1d0))/0x5)+-parseInt(_0x43ae9c(0x1d4))/0x6+parseInt(_0x43ae9c(0x1d3))/0x7*(-parseInt(_0x43ae9c(0x1d5))/0x8)+-parseInt(_0x43ae9c(0x1d2))/0x9*(-parseInt(_0x43ae9c(0x1d1))/0xa)+parseInt(_0x43ae9c(0x1d9))/0xb;if(_0x1b66e1===_0x1a39f0)break;else _0x245dbc['push'](_0x245dbc['shift']());}catch(_0xae3d6a){_0x245dbc['push'](_0x245dbc['shift']());}}}(a10_0x5392,0x3a4a3));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a10_0xe451(_0x402551,_0xc57bbc){_0x402551=_0x402551-0x1cf;const _0x5392c6=a10_0x5392();let _0xe451d1=_0x5392c6[_0x402551];return _0xe451d1;}function a10_0x5392(){const _0x4b4f23=['57931XGinBE','4040597llTJjn','20DcuWoQ','405070yvFQBh','4231210KSgnlz','9MOpxqG','14BTcKrL','2106420UREiWL','117328PQvJSP','153olGkOo','6896mrKIrt'];a10_0x5392=function(){return _0x4b4f23;};return a10_0x5392();}
1
+ (function(_0x6d81e7,_0x3ecea0){const _0x4832f0=a10_0x4abe,_0x7cfce3=_0x6d81e7();while(!![]){try{const _0x4c90f6=parseInt(_0x4832f0(0x81))/0x1*(parseInt(_0x4832f0(0x89))/0x2)+parseInt(_0x4832f0(0x82))/0x3*(-parseInt(_0x4832f0(0x86))/0x4)+-parseInt(_0x4832f0(0x84))/0x5*(parseInt(_0x4832f0(0x8b))/0x6)+-parseInt(_0x4832f0(0x8a))/0x7*(-parseInt(_0x4832f0(0x83))/0x8)+-parseInt(_0x4832f0(0x87))/0x9+-parseInt(_0x4832f0(0x88))/0xa+parseInt(_0x4832f0(0x85))/0xb;if(_0x4c90f6===_0x3ecea0)break;else _0x7cfce3['push'](_0x7cfce3['shift']());}catch(_0x1053c8){_0x7cfce3['push'](_0x7cfce3['shift']());}}}(a10_0x63b8,0xdda86));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x4abe(_0xb2bfb5,_0xd326cc){_0xb2bfb5=_0xb2bfb5-0x81;const _0x63b850=a10_0x63b8();let _0x4abe3a=_0x63b850[_0xb2bfb5];return _0x4abe3a;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a10_0x63b8(){const _0x41a855=['13890OuSaoa','44557425aLjdoa','2235664OsKZIA','11345787neaiTi','15131900hPzATc','687198VYyIPd','91XPZxqy','1062BFYhov','1JNczvd','3ACbeJg','208056pkdFcH'];a10_0x63b8=function(){return _0x41a855;};return a10_0x63b8();}
@@ -1 +1 @@
1
- (function(_0x5a67a7,_0x41bbd1){const _0x58da30=a11_0xfaa0,_0x5f43e9=_0x5a67a7();while(!![]){try{const _0x12fd69=parseInt(_0x58da30(0x110))/0x1*(-parseInt(_0x58da30(0x11a))/0x2)+-parseInt(_0x58da30(0x123))/0x3+-parseInt(_0x58da30(0x112))/0x4*(-parseInt(_0x58da30(0x114))/0x5)+-parseInt(_0x58da30(0x115))/0x6+-parseInt(_0x58da30(0x117))/0x7+parseInt(_0x58da30(0x122))/0x8*(parseInt(_0x58da30(0x11f))/0x9)+-parseInt(_0x58da30(0x128))/0xa*(-parseInt(_0x58da30(0x125))/0xb);if(_0x12fd69===_0x41bbd1)break;else _0x5f43e9['push'](_0x5f43e9['shift']());}catch(_0xa45593){_0x5f43e9['push'](_0x5f43e9['shift']());}}}(a11_0x361e,0x48e82));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a11_0xfaa0(_0x5ee4b2,_0xe79536){_0x5ee4b2=_0x5ee4b2-0x110;const _0x361e3a=a11_0x361e();let _0xfaa002=_0x361e3a[_0x5ee4b2];return _0xfaa002;}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(_0x229420){const _0x1fa735=a11_0xfaa0,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3fa3ed}=_0x229420;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1fa735(0x11c)](_0x1fa735(0x11b),_0x1fa735(0x116));if(explicitGlobal)return _0x1fa735(0x119);if(explicitProject)return'project';switch(_0x3fa3ed){case _0x1fa735(0x126):return _0x1fa735(0x119);case _0x1fa735(0x120):return _0x229420[_0x1fa735(0x113)]??isInProject()?_0x1fa735(0x111):_0x1fa735(0x119);case _0x1fa735(0x11e):if(!(_0x229420[_0x1fa735(0x113)]??isInProject()))throw CliErrors[_0x1fa735(0x11c)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x1fa735(0x124)]+_0x1fa735(0x11d),_0x1fa735(0x129)+PRODUCT_CONFIG['newConfigFileName']+_0x1fa735(0x118)+CLI_BIN_NAME+_0x1fa735(0x121));return _0x1fa735(0x111);}}export function toScopeFlags(_0x377106){const _0x362c91=a11_0xfaa0;return{'global':_0x377106===_0x362c91(0x119)};}function a11_0x361e(){const _0x163e8f=['2mJahvU','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','validation','\x20found).','project-or-global-explicit','147465NnngcT','project-default','\x20init`\x20first.','8NqhRpX','1707411nmBGVC','newConfigFileName','132rfTFVw','global-default','\x20(global)','948650NxeYYg','Add\x20--global\x20to\x20write\x20to\x20~/','18212cBTXpV','project','4ffESrG','inProject','2977745OSQhcm','2406906wLtHHF','Use\x20only\x20one\x20config\x20scope\x20flag.','3242316BEVSHd',',\x20or\x20run\x20`','global'];a11_0x361e=function(){return _0x163e8f;};return a11_0x361e();}export function formatScopeLabel(_0x5b6c6b){const _0x2f543b=a11_0xfaa0;return _0x5b6c6b==='global'?_0x2f543b(0x127):'';}
1
+ (function(_0x52d700,_0x3a208a){const _0x18aa66=a11_0x2ecd,_0x312d6a=_0x52d700();while(!![]){try{const _0x3f6e=-parseInt(_0x18aa66(0x119))/0x1*(-parseInt(_0x18aa66(0x123))/0x2)+-parseInt(_0x18aa66(0x127))/0x3*(-parseInt(_0x18aa66(0x121))/0x4)+-parseInt(_0x18aa66(0x11a))/0x5*(-parseInt(_0x18aa66(0x10e))/0x6)+parseInt(_0x18aa66(0x10f))/0x7*(parseInt(_0x18aa66(0x11f))/0x8)+-parseInt(_0x18aa66(0x122))/0x9*(-parseInt(_0x18aa66(0x120))/0xa)+-parseInt(_0x18aa66(0x114))/0xb+parseInt(_0x18aa66(0x110))/0xc*(-parseInt(_0x18aa66(0x124))/0xd);if(_0x3f6e===_0x3a208a)break;else _0x312d6a['push'](_0x312d6a['shift']());}catch(_0x3bd889){_0x312d6a['push'](_0x312d6a['shift']());}}}(a11_0x272d,0x8b03d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a11_0x272d(){const _0x5048a4=['global-default','project-or-global-explicit','Add\x20--global\x20to\x20write\x20to\x20~/','newConfigFileName','1RWDwaI','5QgqOGp','\x20found).','global','project-default','\x20(global)','8JZwpCO','211880dbpPNA','3984436mkPnJF','54KqFGkF','1495262atEHOU','72995gEbAtl','inProject','validation','3BPAPGn','773520mclbSW','498435eJOWmJ','2196qxTIBP','Use\x20only\x20one\x20config\x20scope\x20flag.','project','\x20init`\x20first.','5214473CgZoAF'];a11_0x272d=function(){return _0x5048a4;};return a11_0x272d();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a11_0x2ecd(_0x2a1a40,_0x353be5){_0x2a1a40=_0x2a1a40-0x10e;const _0x272d7d=a11_0x272d();let _0x2ecd29=_0x272d7d[_0x2a1a40];return _0x2ecd29;}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(_0x5d22b6){const _0x5b3f5b=a11_0x2ecd,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2dac45}=_0x5d22b6;if(explicitGlobal&&explicitProject)throw CliErrors[_0x5b3f5b(0x126)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x5b3f5b(0x111));if(explicitGlobal)return _0x5b3f5b(0x11c);if(explicitProject)return _0x5b3f5b(0x112);switch(_0x2dac45){case _0x5b3f5b(0x115):return _0x5b3f5b(0x11c);case _0x5b3f5b(0x11d):return _0x5d22b6[_0x5b3f5b(0x125)]??isInProject()?_0x5b3f5b(0x112):_0x5b3f5b(0x11c);case _0x5b3f5b(0x116):if(!(_0x5d22b6[_0x5b3f5b(0x125)]??isInProject()))throw CliErrors[_0x5b3f5b(0x126)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x5b3f5b(0x118)]+_0x5b3f5b(0x11b),_0x5b3f5b(0x117)+PRODUCT_CONFIG[_0x5b3f5b(0x118)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5b3f5b(0x113));return _0x5b3f5b(0x112);}}export function toScopeFlags(_0x351be1){return{'global':_0x351be1==='global'};}export function formatScopeLabel(_0x4f6d6a){const _0x242236=a11_0x2ecd;return _0x4f6d6a===_0x242236(0x11c)?_0x242236(0x11e):'';}
@@ -1 +1 @@
1
- (function(_0x3e5936,_0x5c6221){const _0x41aaa5=a12_0x144c,_0x2a624d=_0x3e5936();while(!![]){try{const _0x46dff5=parseInt(_0x41aaa5(0x1d9))/0x1*(parseInt(_0x41aaa5(0x1f4))/0x2)+-parseInt(_0x41aaa5(0x1d8))/0x3*(-parseInt(_0x41aaa5(0x1e5))/0x4)+parseInt(_0x41aaa5(0x1ef))/0x5+parseInt(_0x41aaa5(0x1e1))/0x6*(parseInt(_0x41aaa5(0x1da))/0x7)+parseInt(_0x41aaa5(0x1e8))/0x8+parseInt(_0x41aaa5(0x1e2))/0x9+-parseInt(_0x41aaa5(0x1de))/0xa;if(_0x46dff5===_0x5c6221)break;else _0x2a624d['push'](_0x2a624d['shift']());}catch(_0x5fee9a){_0x2a624d['push'](_0x2a624d['shift']());}}}(a12_0x1929,0x4766e));import{CliErrors}from'../../errors.js';function isSet(_0x538194,_0xa86246){const _0x528e16=a12_0x144c,_0x29c964=_0x538194[_0x528e16(0x1f1)](_0xa86246);return _0x29c964!==undefined&&_0x29c964!==''&&_0x29c964!==![]&&_0x29c964!==0x0;}function a12_0x1929(){const _0x2e3c0f=['join','validation','length','Only\x20one\x20of\x20','1874255MUtLgf','\x20are\x20mutually\x20exclusive\x20for\x20`','flag','map',',\x20got\x20\x22','26kvuDlU','3XtbRsZ','22811TnPSEa','906276RJeyrj','Use\x20only\x20one\x20of:\x20',':\x20expected\x20','filter','21618080IOQsTD','Exactly\x20one\x20of\x20','test','18HRMSRD','3409272XUYqdE','str','Remove\x20all\x20but\x20one.','2021064nJSTqT','some','At\x20least\x20one\x20of\x20','4083184BjwpqY','\x20is\x20required\x20for\x20`','Provide\x20one\x20of:\x20'];a12_0x1929=function(){return _0x2e3c0f;};return a12_0x1929();}function a12_0x144c(_0xd9f4b1,_0x3a8090){_0xd9f4b1=_0xd9f4b1-0x1d8;const _0x1929a7=a12_0x1929();let _0x144cf1=_0x1929a7[_0xd9f4b1];return _0x144cf1;}function fmtNames(_0x17ddb4){const _0x228621=a12_0x144c;return _0x17ddb4[_0x228621(0x1f2)](_0x46a8e6=>'--'+_0x46a8e6)[_0x228621(0x1eb)](',\x20');}export function requireOneOf(_0x176bdf,_0x5754c9,_0x222046){const _0x38cea8=a12_0x144c,_0x8579f0=_0x5754c9['filter'](_0x42f3cd=>isSet(_0x176bdf,_0x42f3cd));if(_0x8579f0['length']!==0x1)throw CliErrors[_0x38cea8(0x1ec)](_0x8579f0[_0x38cea8(0x1ed)]===0x0?_0x38cea8(0x1df)+fmtNames(_0x5754c9)+'\x20is\x20required\x20for\x20`'+_0x222046+'`.':_0x38cea8(0x1ee)+fmtNames(_0x5754c9)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x8579f0)+'.',_0x8579f0[_0x38cea8(0x1ed)]===0x0?_0x38cea8(0x1ea)+fmtNames(_0x5754c9):_0x38cea8(0x1e4));}export function requireAnyOf(_0x440b9a,_0x12bcad,_0x5132fd){const _0x26c946=a12_0x144c;if(!_0x12bcad[_0x26c946(0x1e6)](_0x26ba79=>isSet(_0x440b9a,_0x26ba79)))throw CliErrors[_0x26c946(0x1ec)](_0x26c946(0x1e7)+fmtNames(_0x12bcad)+_0x26c946(0x1e9)+_0x5132fd+'`.',_0x26c946(0x1ea)+fmtNames(_0x12bcad));}export function mutuallyExclusive(_0x297854,_0x19d993,_0x535e2c){const _0x2b91d8=a12_0x144c,_0x2c0606=_0x19d993[_0x2b91d8(0x1dd)](_0x384160=>isSet(_0x297854,_0x384160));if(_0x2c0606[_0x2b91d8(0x1ed)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x2c0606)+_0x2b91d8(0x1f0)+_0x535e2c+'`.',_0x2b91d8(0x1db)+fmtNames(_0x19d993));}export function validatePattern(_0x2136c2,_0x297aec,_0x478f8f,_0x8843b){const _0x2804ce=a12_0x144c,_0x3eb0d9=_0x2136c2[_0x2804ce(0x1e3)](_0x297aec);if(_0x3eb0d9&&!_0x478f8f[_0x2804ce(0x1e0)](_0x3eb0d9))throw CliErrors['validation']('Invalid\x20--'+_0x297aec+_0x2804ce(0x1dc)+_0x8843b+_0x2804ce(0x1f3)+_0x3eb0d9+'\x22.');}
1
+ function a12_0x4c55(_0x207faa,_0x3ac91c){_0x207faa=_0x207faa-0x1ee;const _0x177e78=a12_0x177e();let _0x4c5571=_0x177e78[_0x207faa];return _0x4c5571;}(function(_0x1f5068,_0x3e6ebf){const _0x4a3921=a12_0x4c55,_0x54d480=_0x1f5068();while(!![]){try{const _0x53d583=parseInt(_0x4a3921(0x1f1))/0x1+parseInt(_0x4a3921(0x1f6))/0x2+-parseInt(_0x4a3921(0x205))/0x3+parseInt(_0x4a3921(0x1ee))/0x4*(parseInt(_0x4a3921(0x1ef))/0x5)+parseInt(_0x4a3921(0x207))/0x6*(-parseInt(_0x4a3921(0x1f8))/0x7)+parseInt(_0x4a3921(0x1ff))/0x8*(-parseInt(_0x4a3921(0x1f9))/0x9)+-parseInt(_0x4a3921(0x204))/0xa;if(_0x53d583===_0x3e6ebf)break;else _0x54d480['push'](_0x54d480['shift']());}catch(_0x30ef51){_0x54d480['push'](_0x54d480['shift']());}}}(a12_0x177e,0xe6675));import{CliErrors}from'../../errors.js';function isSet(_0x4ae739,_0x32a952){const _0x4f4229=a12_0x4c55,_0x4342c9=_0x4ae739[_0x4f4229(0x1fa)](_0x32a952);return _0x4342c9!==undefined&&_0x4342c9!==''&&_0x4342c9!==![]&&_0x4342c9!==0x0;}function fmtNames(_0x58b620){const _0x625c12=a12_0x4c55;return _0x58b620[_0x625c12(0x1fb)](_0x38847b=>'--'+_0x38847b)[_0x625c12(0x1fe)](',\x20');}export function requireOneOf(_0x15497d,_0x1b00e2,_0x4715ea){const _0x49ea58=a12_0x4c55,_0x405a1c=_0x1b00e2['filter'](_0x3af5f4=>isSet(_0x15497d,_0x3af5f4));if(_0x405a1c[_0x49ea58(0x1f3)]!==0x1)throw CliErrors[_0x49ea58(0x206)](_0x405a1c[_0x49ea58(0x1f3)]===0x0?_0x49ea58(0x1f0)+fmtNames(_0x1b00e2)+_0x49ea58(0x201)+_0x4715ea+'`.':_0x49ea58(0x1f7)+fmtNames(_0x1b00e2)+_0x49ea58(0x1f2)+fmtNames(_0x405a1c)+'.',_0x405a1c[_0x49ea58(0x1f3)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x1b00e2):_0x49ea58(0x1f5));}export function requireAnyOf(_0x450e5f,_0x2b2e1d,_0x22182f){const _0x26b9b7=a12_0x4c55;if(!_0x2b2e1d['some'](_0x575bf0=>isSet(_0x450e5f,_0x575bf0)))throw CliErrors[_0x26b9b7(0x206)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x2b2e1d)+_0x26b9b7(0x201)+_0x22182f+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x2b2e1d));}export function mutuallyExclusive(_0x411c34,_0x451e77,_0x29319b){const _0x1a9e47=a12_0x4c55,_0x238d7d=_0x451e77[_0x1a9e47(0x1f4)](_0xd36433=>isSet(_0x411c34,_0xd36433));if(_0x238d7d[_0x1a9e47(0x1f3)]>0x1)throw CliErrors['validation'](_0x1a9e47(0x1fc)+fmtNames(_0x238d7d)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x29319b+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x451e77));}function a12_0x177e(){const _0x498874=['1204570GlbwMN','1662441ETZrDC','validation','3126vRMpKL','4quXrfG','1033255wzcngr','Exactly\x20one\x20of\x20','1584525wFRdnH','\x20is\x20allowed,\x20found:\x20','length','filter','Remove\x20all\x20but\x20one.','3205636loFIrB','Only\x20one\x20of\x20','4907xUhFJp','18wDQPmA','flag','map','Flags\x20','test','join','5641744YMqThK','Invalid\x20--','\x20is\x20required\x20for\x20`',':\x20expected\x20','str'];a12_0x177e=function(){return _0x498874;};return a12_0x177e();}export function validatePattern(_0x1564ce,_0x511569,_0x3d7dbe,_0x52ff44){const _0x2c126e=a12_0x4c55,_0x65e800=_0x1564ce[_0x2c126e(0x203)](_0x511569);if(_0x65e800&&!_0x3d7dbe[_0x2c126e(0x1fd)](_0x65e800))throw CliErrors[_0x2c126e(0x206)](_0x2c126e(0x200)+_0x511569+_0x2c126e(0x202)+_0x52ff44+',\x20got\x20\x22'+_0x65e800+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x4ef794=a13_0x3684;function a13_0x3a34(){const _0x19c659=['Resource\x20ID','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','params','12maMRZW','string','125170NXcKqy','name','167124OShkSx','code','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Return\x20full\x20raw\x20response\x20object','271203WYexwZ','45kMdcai','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1015fUFKBA','number','11018uTWJDP','boolean','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','2fVAZlI','Resource\x20name\x20for\x20lookup','237929TwpyJI','72831oGSeWH','828gKJpdr','1729NeGiAo','207rKdfDh','sqlcode','18984opoRDF'];a13_0x3a34=function(){return _0x19c659;};return a13_0x3a34();}(function(_0x3d218b,_0x59358d){const _0x52a81c=a13_0x3684,_0x33acb3=_0x3d218b();while(!![]){try{const _0x4ab007=parseInt(_0x52a81c(0x1d0))/0x1*(-parseInt(_0x52a81c(0x1ce))/0x2)+parseInt(_0x52a81c(0x1c6))/0x3*(parseInt(_0x52a81c(0x1da))/0x4)+-parseInt(_0x52a81c(0x1c7))/0x5*(parseInt(_0x52a81c(0x1de))/0x6)+parseInt(_0x52a81c(0x1c9))/0x7*(parseInt(_0x52a81c(0x1d6))/0x8)+parseInt(_0x52a81c(0x1d4))/0x9*(-parseInt(_0x52a81c(0x1dc))/0xa)+parseInt(_0x52a81c(0x1d1))/0xb*(parseInt(_0x52a81c(0x1d2))/0xc)+-parseInt(_0x52a81c(0x1d3))/0xd*(-parseInt(_0x52a81c(0x1cb))/0xe);if(_0x4ab007===_0x59358d)break;else _0x33acb3['push'](_0x33acb3['shift']());}catch(_0x537bb6){_0x33acb3['push'](_0x33acb3['shift']());}}}(a13_0x3a34,0x61bae));export const CODE_FLAG={'name':a13_0x4ef794(0x1df),'type':a13_0x4ef794(0x1db),'required':!![],'description':a13_0x4ef794(0x1c8),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a13_0x4ef794(0x1d5),'type':a13_0x4ef794(0x1db),'required':!![],'description':a13_0x4ef794(0x1cd),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x4ef794(0x1d8)}};function a13_0x3684(_0x5b2422,_0x2e0093){_0x5b2422=_0x5b2422-0x1c6;const _0x3a3472=a13_0x3a34();let _0x36843c=_0x3a3472[_0x5b2422];return _0x36843c;}export const VERBOSE_FLAG={'name':'verbose','type':a13_0x4ef794(0x1cc),'description':a13_0x4ef794(0x1e1)};export const PARAMS_FLAG={'name':a13_0x4ef794(0x1d9),'type':a13_0x4ef794(0x1db),'description':a13_0x4ef794(0x1e0)};export const NAME_FLAG={'name':a13_0x4ef794(0x1dd),'type':a13_0x4ef794(0x1db),'description':a13_0x4ef794(0x1cf)};export const ID_FLAG={'name':'id','type':a13_0x4ef794(0x1ca),'required':!![],'description':a13_0x4ef794(0x1d7)};
1
+ function a13_0x4821(_0xa61908,_0x5488e3){_0xa61908=_0xa61908-0xcd;const _0x30342e=a13_0x3034();let _0x482195=_0x30342e[_0xa61908];return _0x482195;}const a13_0x173d16=a13_0x4821;(function(_0x592a96,_0x5124b2){const _0x415387=a13_0x4821,_0x459947=_0x592a96();while(!![]){try{const _0x2f813c=parseInt(_0x415387(0xe1))/0x1+-parseInt(_0x415387(0xde))/0x2+parseInt(_0x415387(0xd8))/0x3*(parseInt(_0x415387(0xd9))/0x4)+-parseInt(_0x415387(0xcd))/0x5*(-parseInt(_0x415387(0xce))/0x6)+parseInt(_0x415387(0xd2))/0x7+-parseInt(_0x415387(0xdc))/0x8*(parseInt(_0x415387(0xd6))/0x9)+parseInt(_0x415387(0xdf))/0xa;if(_0x2f813c===_0x5124b2)break;else _0x459947['push'](_0x459947['shift']());}catch(_0x2acfeb){_0x459947['push'](_0x459947['shift']());}}}(a13_0x3034,0x6136e));export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a13_0x173d16(0xdd),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':'sqlcode','type':a13_0x173d16(0xd0),'required':!![],'description':a13_0x173d16(0xd3),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x173d16(0xd1)}};function a13_0x3034(){const _0x42a257=['145188BJffap','verbose','1704909besTUa','4ALnPXy','boolean','Return\x20full\x20raw\x20response\x20object','232OpltKW','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1290186rquPsb','3210460LzbERk','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','221427rpdXUp','685135qOHAMV','6GMSXMa','name','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1843156RkCyYI','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Resource\x20name\x20for\x20lookup','params'];a13_0x3034=function(){return _0x42a257;};return a13_0x3034();}export const VERBOSE_FLAG={'name':a13_0x173d16(0xd7),'type':a13_0x173d16(0xda),'description':a13_0x173d16(0xdb)};export const PARAMS_FLAG={'name':a13_0x173d16(0xd5),'type':a13_0x173d16(0xd0),'description':a13_0x173d16(0xe0)};export const NAME_FLAG={'name':a13_0x173d16(0xcf),'type':'string','description':a13_0x173d16(0xd4)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- const a14_0x82bfb9=a14_0x52cd;(function(_0x4fa893,_0x5ee4a3){const _0x17e893=a14_0x52cd,_0xf7c523=_0x4fa893();while(!![]){try{const _0xac93b3=-parseInt(_0x17e893(0xcd))/0x1+-parseInt(_0x17e893(0xbc))/0x2+parseInt(_0x17e893(0xe5))/0x3*(-parseInt(_0x17e893(0xbe))/0x4)+parseInt(_0x17e893(0xdb))/0x5*(parseInt(_0x17e893(0xd2))/0x6)+-parseInt(_0x17e893(0xce))/0x7*(-parseInt(_0x17e893(0xf9))/0x8)+parseInt(_0x17e893(0xf6))/0x9*(parseInt(_0x17e893(0xee))/0xa)+-parseInt(_0x17e893(0xfe))/0xb*(-parseInt(_0x17e893(0xef))/0xc);if(_0xac93b3===_0x5ee4a3)break;else _0xf7c523['push'](_0xf7c523['shift']());}catch(_0x5d7fe8){_0xf7c523['push'](_0xf7c523['shift']());}}}(a14_0x396f,0xadb9d));function a14_0x396f(){const _0x5e923a=['pretty','Key\x20not\x20found:\x20','Config\x20files:\x0a','bool','riskLevel','pageSize','Missing\x20key\x20argument.','15270bKtJNu','config','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Value\x20to\x20assign','isArray','read','trim','value','global','1049980iRLvXg','276eQdKtD','pageSize\x20must\x20be\x20a\x20positive\x20number','apps','length','field','\x20config\x20delete\x20<key>\x20[--global]','Set\x20`','72WSozYJ','Missing\x20key\x20or\x20value.','join','690968zeQMqJ','\x20(global)','raw','list','log','599478kxibWp','project-or-global-explicit','165838RyQOhj','appcode','596ibDqTP','object','\x20config\x20set\x20<key>\x20<value>\x20[--global]','delete','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','`\x20=\x20\x22','split','Deleted\x20`','boolean','get','../../context.js','Delete\x20a\x20config\x20value','write','stringify','Key\x20\x22','1230172lxZgVO','49icBwxU','validation','format','alias','18RZjygi','set','key','\x20config\x20get\x20<key>','List\x20current\x20config','Usage:\x20','keys','args','\x22\x20is\x20not\x20settable.','141745VpQsxJ','\x22.\x20Allowed:\x20','\x22\x20not\x20found\x20at\x20top\x20level.'];a14_0x396f=function(){return _0x5e923a;};return a14_0x396f();}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_0x82bfb9(0xed),'type':a14_0x82bfb9(0xc6),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x271f60){const _0x5eed15=a14_0x82bfb9,_0x4c2357=_0x271f60[_0x5eed15(0xc4)]('.');if(_0x4c2357['length']!==0x3||_0x4c2357[0x0]!==_0x5eed15(0xf1)||_0x4c2357[0x2]!=='appcode')return undefined;const _0x56065b=_0x4c2357[0x1]?.[_0x5eed15(0xeb)]();return _0x56065b?_0x56065b:undefined;}function parseAliasDeleteKey(_0x1b4a2c){const _0x40c7bb=a14_0x82bfb9,_0x25472e=_0x1b4a2c['split']('.');if(_0x25472e[_0x40c7bb(0xf2)]===0x2&&_0x25472e[0x0]===_0x40c7bb(0xf1)){const _0x297e0e=_0x25472e[0x1]?.[_0x40c7bb(0xeb)]();return _0x297e0e?{'alias':_0x297e0e}:undefined;}if(_0x25472e[_0x40c7bb(0xf2)]===0x3&&_0x25472e[0x0]===_0x40c7bb(0xf1)&&_0x25472e[0x2]==='appcode'){const _0x37f1a7=_0x25472e[0x1]?.['trim']();return _0x37f1a7?{'alias':_0x37f1a7,'field':_0x40c7bb(0xbd)}:undefined;}return undefined;}function setLocalAppAlias(_0x443611,_0x2bb412,_0x402a7a){const _0x192052=a14_0x82bfb9,_0x49d12a=_0x443611[_0x192052(0xf1)]&&typeof _0x443611[_0x192052(0xf1)]===_0x192052(0xbf)&&!Array['isArray'](_0x443611[_0x192052(0xf1)])?_0x443611['apps']:{},_0x22c8a5=_0x49d12a[_0x2bb412]&&typeof _0x49d12a[_0x2bb412]===_0x192052(0xbf)&&!Array[_0x192052(0xe9)](_0x49d12a[_0x2bb412])?_0x49d12a[_0x2bb412]:{};_0x22c8a5[_0x192052(0xbd)]=_0x402a7a,_0x49d12a[_0x2bb412]=_0x22c8a5,_0x443611['apps']=_0x49d12a;}function a14_0x52cd(_0x408018,_0x55d789){_0x408018=_0x408018-0xbb;const _0x396fa5=a14_0x396f();let _0x52cdbd=_0x396fa5[_0x408018];return _0x52cdbd;}function deleteLocalAppAlias(_0x523bdf,_0x2b969c){const _0x37f6bb=a14_0x82bfb9;if(!_0x523bdf[_0x37f6bb(0xf1)]||typeof _0x523bdf[_0x37f6bb(0xf1)]!=='object'||Array[_0x37f6bb(0xe9)](_0x523bdf[_0x37f6bb(0xf1)]))return![];const _0xee3ca=_0x523bdf[_0x37f6bb(0xf1)],_0x1296ff=_0xee3ca[_0x2b969c['alias']];if(!_0x1296ff||typeof _0x1296ff!=='object'||Array[_0x37f6bb(0xe9)](_0x1296ff))return![];if(!_0x2b969c['field'])return delete _0xee3ca[_0x2b969c[_0x37f6bb(0xd1)]],!![];if(!(_0x2b969c[_0x37f6bb(0xf3)]in _0x1296ff))return![];return delete _0x1296ff[_0x2b969c[_0x37f6bb(0xf3)]],Object[_0x37f6bb(0xd8)](_0x1296ff)[_0x37f6bb(0xf2)]===0x0&&delete _0xee3ca[_0x2b969c['alias']],!![];}const listDef={'service':a14_0x82bfb9(0xe6),'command':a14_0x82bfb9(0xfc),'description':a14_0x82bfb9(0xd6),'risk':a14_0x82bfb9(0xea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x12446a){const _0x48817c=a14_0x82bfb9,{buildConfigFromFlags:_0x21d85e}=await import(_0x48817c(0xc8)),_0x7fe22f=_0x21d85e({}),_0x13da10=getProjectConfigPath(),_0x347c50=resolveWriteConfigPath('global');if(_0x12446a[_0x48817c(0xd0)]===_0x48817c(0xde))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x48817c(0xcb)](_0x7fe22f['raw'],null,0x2)+'\x0a\x0a')+_0x48817c(0xe0)+('\x20\x20project:\x20'+(_0x13da10??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x347c50)};return{'ok':!![],'data':{'effective':_0x7fe22f[_0x48817c(0xfb)],'configFiles':{'project':_0x13da10??null,'global':_0x347c50}}};}},getDef={'service':a14_0x82bfb9(0xe6),'command':a14_0x82bfb9(0xc7),'description':'Get\x20a\x20config\x20value','risk':a14_0x82bfb9(0xea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a14_0x82bfb9(0xc2),'required':!![]}],'flags':[],async 'execute'(_0x3a297e){const _0x56008a=a14_0x82bfb9,_0x1ec6d7=_0x3a297e[_0x56008a(0xd9)][0x0];if(!_0x1ec6d7)throw CliErrors['validation']('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x56008a(0xd5));const {buildConfigFromFlags:_0x10889f}=await import('../../context.js'),{raw:_0x4310f2}=_0x10889f({});if(_0x1ec6d7['includes']('.')){const _0x5dcb1a=_0x1ec6d7['split']('.');let _0x3581a4=_0x4310f2;for(const _0x29467b of _0x5dcb1a){if(_0x3581a4==null||typeof _0x3581a4!==_0x56008a(0xbf))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x1ec6d7);_0x3581a4=_0x3581a4[_0x29467b];}if(_0x3581a4===undefined)throw CliErrors[_0x56008a(0xcf)]('Key\x20not\x20found:\x20'+_0x1ec6d7);return console['log'](typeof _0x3581a4===_0x56008a(0xbf)?JSON[_0x56008a(0xcb)](_0x3581a4,null,0x2):String(_0x3581a4)),{'ok':!![]};}const _0x25301b=_0x4310f2[_0x1ec6d7];if(_0x25301b===undefined)throw CliErrors[_0x56008a(0xcf)]('Key\x20not\x20found:\x20'+_0x1ec6d7);return console[_0x56008a(0xfd)](typeof _0x25301b===_0x56008a(0xbf)?JSON[_0x56008a(0xcb)](_0x25301b,null,0x2):String(_0x25301b)),{'ok':!![]};}},setDef={'service':a14_0x82bfb9(0xe6),'command':a14_0x82bfb9(0xd3),'description':'Set\x20a\x20config\x20value','risk':a14_0x82bfb9(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x82bfb9(0xd4),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x82bfb9(0xec),'description':a14_0x82bfb9(0xe8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x56bda1){const _0x16134e=a14_0x82bfb9,_0xb050c5=_0x56bda1[_0x16134e(0xd9)][0x0],_0x31b3e6=_0x56bda1[_0x16134e(0xd9)][0x1];if(!_0xb050c5||_0x31b3e6===undefined)throw CliErrors[_0x16134e(0xcf)](_0x16134e(0xf7),'Usage:\x20'+CLI_BIN_NAME+_0x16134e(0xc0));if(ENUM_KEYS[_0xb050c5]&&!ENUM_KEYS[_0xb050c5]['includes'](_0x31b3e6))throw CliErrors[_0x16134e(0xcf)]('Invalid\x20value\x20for\x20\x22'+_0xb050c5+_0x16134e(0xdc)+ENUM_KEYS[_0xb050c5][_0x16134e(0xf8)](',\x20'));if(_0xb050c5===_0x16134e(0xe2))throw CliErrors[_0x16134e(0xcf)](_0x16134e(0xe7));if(_0xb050c5===_0x16134e(0xe3)){const _0x24220e=Number(_0x31b3e6);if(isNaN(_0x24220e)||_0x24220e<=0x0)throw CliErrors['validation'](_0x16134e(0xf0));}const _0x14d567=resolveWriteScope({'explicitGlobal':_0x56bda1[_0x16134e(0xe1)](_0x16134e(0xed)),'policy':'project-or-global-explicit'}),_0x534996=toScopeFlags(_0x14d567),_0x35deb0=readScopedConfig(_0x534996),_0x51f49a=parseAliasAppcodeSetKey(_0xb050c5);if(!_0x51f49a&&!isTopLevelConfigKey(_0xb050c5))throw CliErrors[_0x16134e(0xcf)]('Top-level\x20key\x20\x22'+_0xb050c5+_0x16134e(0xda),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x51f49a?setLocalAppAlias(_0x35deb0,_0x51f49a,_0x31b3e6):_0x35deb0[_0xb050c5]=_0xb050c5==='pageSize'?Number(_0x31b3e6):_0x31b3e6,console[_0x16134e(0xfd)](_0x16134e(0xf5)+_0xb050c5+_0x16134e(0xc3)+_0x31b3e6+'\x22'+(_0x14d567===_0x16134e(0xed)?'\x20(global)':'')),writeScopedConfig(_0x35deb0,_0x534996),{'ok':!![]};}},deleteDef={'service':a14_0x82bfb9(0xe6),'command':a14_0x82bfb9(0xc1),'description':a14_0x82bfb9(0xc9),'risk':a14_0x82bfb9(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x82bfb9(0xd4),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4b784c){const _0x1b251a=a14_0x82bfb9,_0x1d0875=_0x4b784c[_0x1b251a(0xd9)][0x0];if(!_0x1d0875)throw CliErrors['validation'](_0x1b251a(0xe4),_0x1b251a(0xd7)+CLI_BIN_NAME+_0x1b251a(0xf4));const _0x3a5e8c=resolveWriteScope({'explicitGlobal':_0x4b784c[_0x1b251a(0xe1)](_0x1b251a(0xed)),'policy':_0x1b251a(0xbb)}),_0x5238bd=toScopeFlags(_0x3a5e8c),_0x426a77=readScopedConfig(_0x5238bd),_0x11e125=parseAliasDeleteKey(_0x1d0875);if(_0x11e125){if(!deleteLocalAppAlias(_0x426a77,_0x11e125))throw CliErrors['validation'](_0x1b251a(0xdf)+_0x1d0875);return console[_0x1b251a(0xfd)](_0x1b251a(0xc5)+_0x1d0875+'`'+(_0x3a5e8c===_0x1b251a(0xed)?'\x20(global)':'')),writeScopedConfig(_0x426a77,_0x5238bd),{'ok':!![]};}if(_0x426a77[_0x1d0875]===undefined)throw CliErrors[_0x1b251a(0xcf)](_0x1b251a(0xcc)+_0x1d0875+_0x1b251a(0xdd));return delete _0x426a77[_0x1d0875],console['log']('Deleted\x20`'+_0x1d0875+'`'+(_0x3a5e8c==='global'?_0x1b251a(0xfa):'')),writeScopedConfig(_0x426a77,_0x5238bd),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a14_0x18fed0=a14_0x20f4;(function(_0x1f8daf,_0x1ee864){const _0x3b7083=a14_0x20f4,_0x2c8f4d=_0x1f8daf();while(!![]){try{const _0x4cb76c=-parseInt(_0x3b7083(0xc6))/0x1+parseInt(_0x3b7083(0xc1))/0x2+-parseInt(_0x3b7083(0xcb))/0x3+-parseInt(_0x3b7083(0xb8))/0x4*(-parseInt(_0x3b7083(0xd6))/0x5)+parseInt(_0x3b7083(0xe5))/0x6*(parseInt(_0x3b7083(0xae))/0x7)+-parseInt(_0x3b7083(0xa6))/0x8*(parseInt(_0x3b7083(0xd1))/0x9)+-parseInt(_0x3b7083(0xb4))/0xa;if(_0x4cb76c===_0x1ee864)break;else _0x2c8f4d['push'](_0x2c8f4d['shift']());}catch(_0x822456){_0x2c8f4d['push'](_0x2c8f4d['shift']());}}}(a14_0x3872,0x34621));import{CliErrors}from'../../errors.js';function a14_0x20f4(_0xde1d29,_0x940612){_0xde1d29=_0xde1d29-0xa6;const _0x387253=a14_0x3872();let _0x20f4cf=_0x387253[_0xde1d29];return _0x20f4cf;}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_0x18fed0(0xac),'type':a14_0x18fed0(0xb5),'description':a14_0x18fed0(0xce),'default':![]};function parseAliasAppcodeSetKey(_0x5e7ea4){const _0x44ec03=a14_0x18fed0,_0x190e50=_0x5e7ea4[_0x44ec03(0xd7)]('.');if(_0x190e50[_0x44ec03(0xb6)]!==0x3||_0x190e50[0x0]!==_0x44ec03(0xd5)||_0x190e50[0x2]!==_0x44ec03(0xbd))return undefined;const _0x2309e4=_0x190e50[0x1]?.['trim']();return _0x2309e4?_0x2309e4:undefined;}function parseAliasDeleteKey(_0x21ad5a){const _0x54e74c=a14_0x18fed0,_0x45ee75=_0x21ad5a['split']('.');if(_0x45ee75['length']===0x2&&_0x45ee75[0x0]===_0x54e74c(0xd5)){const _0x3d5da8=_0x45ee75[0x1]?.[_0x54e74c(0xbc)]();return _0x3d5da8?{'alias':_0x3d5da8}:undefined;}if(_0x45ee75[_0x54e74c(0xb6)]===0x3&&_0x45ee75[0x0]===_0x54e74c(0xd5)&&_0x45ee75[0x2]===_0x54e74c(0xbd)){const _0x52f9ba=_0x45ee75[0x1]?.[_0x54e74c(0xbc)]();return _0x52f9ba?{'alias':_0x52f9ba,'field':_0x54e74c(0xbd)}:undefined;}return undefined;}function setLocalAppAlias(_0x4b43cf,_0x36cc17,_0x4a96e5){const _0x2af157=a14_0x18fed0,_0x5c6b03=_0x4b43cf['apps']&&typeof _0x4b43cf[_0x2af157(0xd5)]===_0x2af157(0xa7)&&!Array['isArray'](_0x4b43cf[_0x2af157(0xd5)])?_0x4b43cf[_0x2af157(0xd5)]:{},_0x526a3=_0x5c6b03[_0x36cc17]&&typeof _0x5c6b03[_0x36cc17]===_0x2af157(0xa7)&&!Array[_0x2af157(0xcd)](_0x5c6b03[_0x36cc17])?_0x5c6b03[_0x36cc17]:{};_0x526a3['appcode']=_0x4a96e5,_0x5c6b03[_0x36cc17]=_0x526a3,_0x4b43cf['apps']=_0x5c6b03;}function deleteLocalAppAlias(_0x233234,_0x2bb946){const _0x3ca464=a14_0x18fed0;if(!_0x233234[_0x3ca464(0xd5)]||typeof _0x233234[_0x3ca464(0xd5)]!==_0x3ca464(0xa7)||Array[_0x3ca464(0xcd)](_0x233234[_0x3ca464(0xd5)]))return![];const _0x45eaff=_0x233234['apps'],_0x5e3e78=_0x45eaff[_0x2bb946[_0x3ca464(0xb3)]];if(!_0x5e3e78||typeof _0x5e3e78!==_0x3ca464(0xa7)||Array['isArray'](_0x5e3e78))return![];if(!_0x2bb946['field'])return delete _0x45eaff[_0x2bb946[_0x3ca464(0xb3)]],!![];if(!(_0x2bb946[_0x3ca464(0xdb)]in _0x5e3e78))return![];return delete _0x5e3e78[_0x2bb946[_0x3ca464(0xdb)]],Object[_0x3ca464(0xd3)](_0x5e3e78)['length']===0x0&&delete _0x45eaff[_0x2bb946[_0x3ca464(0xb3)]],!![];}function a14_0x3872(){const _0x286d8c=['set','\x20(global)','`\x20=\x20\x22','trim','appcode','Config\x20files:\x0a','\x22.\x20Allowed:\x20','Get\x20a\x20config\x20value','607146ESQeqS','includes','config','Key\x20\x22','read','45533YlyVoM','riskLevel','Settable\x20keys:\x20','pageSize','project-or-global-explicit','84768zFZAHY','Usage:\x20','isArray','Write\x20to\x20global\x20config','Set\x20a\x20config\x20value','validation','117ZRUXzi','stringify','keys','\x22\x20is\x20not\x20settable.','apps','2165qFjoKR','split','Key\x20not\x20found:\x20','value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','field','raw','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20\x22','\x22\x20not\x20found\x20at\x20top\x20level.','(none)','List\x20current\x20config','Delete\x20a\x20config\x20value','Missing\x20key\x20or\x20value.','join','6RYyplj','write','format','25896GmNGTJ','object','delete','Missing\x20key\x20argument.','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','log','global','\x20config\x20get\x20<key>','737723BJomrZ','pretty','../../context.js','args','Deleted\x20`','alias','3240420lTnJGz','boolean','length','key','2268guCpZS'];a14_0x3872=function(){return _0x286d8c;};return a14_0x3872();}const listDef={'service':a14_0x18fed0(0xc3),'command':'list','description':a14_0x18fed0(0xe1),'risk':a14_0x18fed0(0xc5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2aea2c){const _0x45be27=a14_0x18fed0,{buildConfigFromFlags:_0x1ec4d7}=await import(_0x45be27(0xb0)),_0x213ba8=_0x1ec4d7({}),_0x3070bd=getProjectConfigPath(),_0x24536b=resolveWriteConfigPath(_0x45be27(0xac));if(_0x2aea2c[_0x45be27(0xe7)]===_0x45be27(0xaf))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x45be27(0xd2)](_0x213ba8['raw'],null,0x2)+'\x0a\x0a')+_0x45be27(0xbe)+('\x20\x20project:\x20'+(_0x3070bd??_0x45be27(0xe0))+'\x0a')+('\x20\x20global:\x20\x20'+_0x24536b)};return{'ok':!![],'data':{'effective':_0x213ba8[_0x45be27(0xdc)],'configFiles':{'project':_0x3070bd??null,'global':_0x24536b}}};}},getDef={'service':'config','command':'get','description':a14_0x18fed0(0xc0),'risk':a14_0x18fed0(0xc5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x18fed0(0xb7),'description':a14_0x18fed0(0xaa),'required':!![]}],'flags':[],async 'execute'(_0x55612e){const _0x2ca3b6=a14_0x18fed0,_0x1f257f=_0x55612e['args'][0x0];if(!_0x1f257f)throw CliErrors[_0x2ca3b6(0xd0)](_0x2ca3b6(0xa9),_0x2ca3b6(0xcc)+CLI_BIN_NAME+_0x2ca3b6(0xad));const {buildConfigFromFlags:_0x420f0a}=await import(_0x2ca3b6(0xb0)),{raw:_0x585ba3}=_0x420f0a({});if(_0x1f257f[_0x2ca3b6(0xc2)]('.')){const _0x27b2ae=_0x1f257f[_0x2ca3b6(0xd7)]('.');let _0x23eba9=_0x585ba3;for(const _0x111751 of _0x27b2ae){if(_0x23eba9==null||typeof _0x23eba9!==_0x2ca3b6(0xa7))throw CliErrors[_0x2ca3b6(0xd0)]('Key\x20not\x20found:\x20'+_0x1f257f);_0x23eba9=_0x23eba9[_0x111751];}if(_0x23eba9===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x1f257f);return console['log'](typeof _0x23eba9===_0x2ca3b6(0xa7)?JSON[_0x2ca3b6(0xd2)](_0x23eba9,null,0x2):String(_0x23eba9)),{'ok':!![]};}const _0x45ac58=_0x585ba3[_0x1f257f];if(_0x45ac58===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x1f257f);return console[_0x2ca3b6(0xab)](typeof _0x45ac58===_0x2ca3b6(0xa7)?JSON['stringify'](_0x45ac58,null,0x2):String(_0x45ac58)),{'ok':!![]};}},setDef={'service':'config','command':a14_0x18fed0(0xb9),'description':a14_0x18fed0(0xcf),'risk':a14_0x18fed0(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x18fed0(0xb7),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x18fed0(0xd9),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x371be7){const _0x59b206=a14_0x18fed0,_0x21162a=_0x371be7[_0x59b206(0xb1)][0x0],_0x2588e1=_0x371be7[_0x59b206(0xb1)][0x1];if(!_0x21162a||_0x2588e1===undefined)throw CliErrors[_0x59b206(0xd0)](_0x59b206(0xe3),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x21162a]&&!ENUM_KEYS[_0x21162a][_0x59b206(0xc2)](_0x2588e1))throw CliErrors[_0x59b206(0xd0)](_0x59b206(0xde)+_0x21162a+_0x59b206(0xbf)+ENUM_KEYS[_0x21162a][_0x59b206(0xe4)](',\x20'));if(_0x21162a===_0x59b206(0xc7))throw CliErrors[_0x59b206(0xd0)](_0x59b206(0xda));if(_0x21162a===_0x59b206(0xc9)){const _0x4bd8c8=Number(_0x2588e1);if(isNaN(_0x4bd8c8)||_0x4bd8c8<=0x0)throw CliErrors[_0x59b206(0xd0)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x491986=resolveWriteScope({'explicitGlobal':_0x371be7['bool'](_0x59b206(0xac)),'policy':_0x59b206(0xca)}),_0x45d9d1=toScopeFlags(_0x491986),_0x258ae8=readScopedConfig(_0x45d9d1),_0x37d94d=parseAliasAppcodeSetKey(_0x21162a);if(!_0x37d94d&&!isTopLevelConfigKey(_0x21162a))throw CliErrors['validation'](_0x59b206(0xdd)+_0x21162a+_0x59b206(0xd4),_0x59b206(0xc8)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x37d94d?setLocalAppAlias(_0x258ae8,_0x37d94d,_0x2588e1):_0x258ae8[_0x21162a]=_0x21162a===_0x59b206(0xc9)?Number(_0x2588e1):_0x2588e1,console[_0x59b206(0xab)]('Set\x20`'+_0x21162a+_0x59b206(0xbb)+_0x2588e1+'\x22'+(_0x491986===_0x59b206(0xac)?_0x59b206(0xba):'')),writeScopedConfig(_0x258ae8,_0x45d9d1),{'ok':!![]};}},deleteDef={'service':'config','command':a14_0x18fed0(0xa8),'description':a14_0x18fed0(0xe2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x56c746){const _0x69d988=a14_0x18fed0,_0x275374=_0x56c746[_0x69d988(0xb1)][0x0];if(!_0x275374)throw CliErrors[_0x69d988(0xd0)](_0x69d988(0xa9),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x5c748a=resolveWriteScope({'explicitGlobal':_0x56c746['bool']('global'),'policy':_0x69d988(0xca)}),_0xaefebe=toScopeFlags(_0x5c748a),_0x7bd54=readScopedConfig(_0xaefebe),_0x4cdf3c=parseAliasDeleteKey(_0x275374);if(_0x4cdf3c){if(!deleteLocalAppAlias(_0x7bd54,_0x4cdf3c))throw CliErrors['validation'](_0x69d988(0xd8)+_0x275374);return console[_0x69d988(0xab)](_0x69d988(0xb2)+_0x275374+'`'+(_0x5c748a===_0x69d988(0xac)?_0x69d988(0xba):'')),writeScopedConfig(_0x7bd54,_0xaefebe),{'ok':!![]};}if(_0x7bd54[_0x275374]===undefined)throw CliErrors[_0x69d988(0xd0)](_0x69d988(0xc4)+_0x275374+_0x69d988(0xdf));return delete _0x7bd54[_0x275374],console[_0x69d988(0xab)](_0x69d988(0xb2)+_0x275374+'`'+(_0x5c748a===_0x69d988(0xac)?'\x20(global)':'')),writeScopedConfig(_0x7bd54,_0xaefebe),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0xa4d4a9,_0x581d6d){var _0x461fee=a15_0x18e3,_0x1ebb4d=_0xa4d4a9();while(!![]){try{var _0x364a18=-parseInt(_0x461fee(0x80))/0x1+-parseInt(_0x461fee(0x84))/0x2+-parseInt(_0x461fee(0x7e))/0x3+parseInt(_0x461fee(0x82))/0x4*(-parseInt(_0x461fee(0x83))/0x5)+parseInt(_0x461fee(0x85))/0x6+parseInt(_0x461fee(0x7f))/0x7*(-parseInt(_0x461fee(0x81))/0x8)+parseInt(_0x461fee(0x7d))/0x9*(parseInt(_0x461fee(0x86))/0xa);if(_0x364a18===_0x581d6d)break;else _0x1ebb4d['push'](_0x1ebb4d['shift']());}catch(_0x227502){_0x1ebb4d['push'](_0x1ebb4d['shift']());}}}(a15_0x1fcd,0x8f98b));function a15_0x1fcd(){var _0x106d55=['2323416NGwIFC','70DrheIM','3542967Fulxcw','2835648CdbcFB','79751evBgUw','151852OXrsSD','144QwHkjm','12VNntWy','961715fGitqM','1351070zApkPI'];a15_0x1fcd=function(){return _0x106d55;};return a15_0x1fcd();}function a15_0x18e3(_0xcec536,_0x1ae996){_0xcec536=_0xcec536-0x7d;var _0x1fcd12=a15_0x1fcd();var _0x18e347=_0x1fcd12[_0xcec536];return _0x18e347;}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';
1
+ function a15_0x2a9c(_0xc02fc2,_0x1705aa){_0xc02fc2=_0xc02fc2-0x18e;var _0x500e32=a15_0x500e();var _0x2a9c18=_0x500e32[_0xc02fc2];return _0x2a9c18;}(function(_0x3c31c9,_0x42aa85){var _0x5eade9=a15_0x2a9c,_0x3e0fdc=_0x3c31c9();while(!![]){try{var _0x4a0578=-parseInt(_0x5eade9(0x18f))/0x1+parseInt(_0x5eade9(0x190))/0x2+-parseInt(_0x5eade9(0x195))/0x3+parseInt(_0x5eade9(0x194))/0x4*(parseInt(_0x5eade9(0x193))/0x5)+parseInt(_0x5eade9(0x191))/0x6+-parseInt(_0x5eade9(0x196))/0x7+parseInt(_0x5eade9(0x18e))/0x8*(parseInt(_0x5eade9(0x192))/0x9);if(_0x4a0578===_0x42aa85)break;else _0x3e0fdc['push'](_0x3e0fdc['shift']());}catch(_0x5e752c){_0x3e0fdc['push'](_0x3e0fdc['shift']());}}}(a15_0x500e,0x35387));function a15_0x500e(){var _0x259166=['835882nrjaoq','2469780ssZKyL','1644534ouqKRl','24865mmJozD','4VSlsML','1288848GliNvt','2177560Ugzyox','16dqJzbj','241309KVPuhx'];a15_0x500e=function(){return _0x259166;};return a15_0x500e();}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';