@lovrabet/lovrabet-cli 2.0.1-beta.9 → 2.0.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 (62) 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/index.js +1 -1
  23. package/lib/commands/init.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/sql/detail.js +1 -1
  28. package/lib/commands/sql/exec.js +1 -1
  29. package/lib/commands/sql/index.js +1 -1
  30. package/lib/config/schema.js +1 -1
  31. package/lib/constant/auth-mode.js +1 -1
  32. package/lib/constant/cli.js +1 -1
  33. package/lib/constant/defaults.js +1 -1
  34. package/lib/constant/domain.js +1 -1
  35. package/lib/constant/env.js +1 -1
  36. package/lib/constant/output.js +1 -1
  37. package/lib/constant/risk.js +1 -1
  38. package/lib/context.js +1 -1
  39. package/lib/core/api-client.js +1 -1
  40. package/lib/core/db-resolver.js +1 -1
  41. package/lib/core/sdk-client.js +1 -1
  42. package/lib/errors.js +1 -1
  43. package/lib/framework/build-all-flags.js +1 -1
  44. package/lib/framework/dryrun.js +1 -1
  45. package/lib/framework/flags.js +1 -1
  46. package/lib/framework/help.js +1 -1
  47. package/lib/framework/index.js +1 -1
  48. package/lib/framework/output.js +1 -1
  49. package/lib/framework/preparse.js +1 -1
  50. package/lib/framework/response.js +1 -1
  51. package/lib/framework/runner-confirmation.js +1 -1
  52. package/lib/framework/runner-error.js +1 -1
  53. package/lib/framework/runner.js +1 -1
  54. package/lib/framework/schema-export.js +1 -1
  55. package/lib/framework/types.js +1 -1
  56. package/lib/help.js +1 -1
  57. package/lib/utils/apply-jq-filter.js +1 -1
  58. package/lib/utils/logger.js +1 -1
  59. package/lib/utils/params.js +1 -1
  60. package/lib/utils/version.js +1 -1
  61. package/lib/utils/write-cli-side-channel.js +1 -1
  62. package/package.json +2 -2
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x4cef(){const _0x29fadf=['exitCode','input','\x20init\x20import`\x20has\x20moved\x20to\x20`','hint','[deprecation]\x20`','891680NShXrB','[preparse]\x20','694160tmfoWe','log','exit','corrected','5706057vdmwdV','assign','\x0aCancelled.\x0a','535905MlYBCI','6HHOxgl','name','app','args','ERR_USE_AFTER_CLOSE','./framework/preparse.js','length','102512RvhuPI','code','flatMap','error','defaultCommand','stderr','handler','slice','catch','\x20->\x20--','import','265338slUcKL','Hint:\x20','190mzVuzK','ERR_STREAM_DESTROYED','1055868yUXkuv',':\x20--','Error:\x20','flags','write','5kFkpYj'];a0_0x4cef=function(){return _0x29fadf;};return a0_0x4cef();}const a0_0x2b487d=a0_0x2e6d;(function(_0xd9b7c0,_0x21053a){const _0x5c42ca=a0_0x2e6d,_0x5e7864=_0xd9b7c0();while(!![]){try{const _0x1dcf33=parseInt(_0x5c42ca(0x175))/0x1+-parseInt(_0x5c42ca(0x166))/0x2*(-parseInt(_0x5c42ca(0x154))/0x3)+parseInt(_0x5c42ca(0x15b))/0x4+-parseInt(_0x5c42ca(0x16f))/0x5*(parseInt(_0x5c42ca(0x16a))/0x6)+parseInt(_0x5c42ca(0x17b))/0x7+-parseInt(_0x5c42ca(0x177))/0x8+parseInt(_0x5c42ca(0x153))/0x9*(-parseInt(_0x5c42ca(0x168))/0xa);if(_0x1dcf33===_0x21053a)break;else _0x5e7864['push'](_0x5e7864['shift']());}catch(_0x487193){_0x5e7864['push'](_0x5e7864['shift']());}}}(a0_0x4cef,0x9362e));import{jsx as a0_0x54b03d}from'react/jsx-runtime';function a0_0x2e6d(_0x28c04e,_0xde4b0f){_0x28c04e=_0x28c04e-0x153;const _0x4ceff5=a0_0x4cef();let _0x2e6d5e=_0x4ceff5[_0x28c04e];return _0x2e6d5e;}import a0_0x26645d 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{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x26645d(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x2b487d(0x163)](handleError);async function main(){try{await run();}catch(_0x4f6dbb){handleError(_0x4f6dbb);}}async function run(){const _0x2b3111=a0_0x2b487d;let _0x18e8b7=cli[_0x2b3111(0x171)][0x0],_0x1428ac=cli[_0x2b3111(0x171)][0x1];const _0x443dd4=cli[_0x2b3111(0x16d)];try{const {correctFlags:_0x2ce367}=await import(_0x2b3111(0x159)),_0x42029b=getAllDefinitions()[_0x2b3111(0x15d)](_0x2635b9=>_0x2635b9[_0x2b3111(0x16d)]??[]),{flags:_0x443eb0,corrections:_0x18ea28}=_0x2ce367(_0x443dd4,_0x42029b);if(_0x18ea28[_0x2b3111(0x15a)]>0x0){for(const _0x6e0e of _0x18ea28){process[_0x2b3111(0x160)][_0x2b3111(0x16e)](_0x2b3111(0x176)+_0x6e0e[_0x2b3111(0x161)]+_0x2b3111(0x16b)+_0x6e0e['original']+_0x2b3111(0x164)+_0x6e0e[_0x2b3111(0x17a)]+'\x0a');}Object[_0x2b3111(0x17c)](_0x443dd4,_0x443eb0);}}catch{}if(!_0x18e8b7||!isKnownService(_0x18e8b7)){const {waitUntilExit:_0x64c197}=render(a0_0x54b03d(Help,{}));await _0x64c197();return;}const _0x5ac3b8=getServiceEntry(_0x18e8b7);if(!_0x1428ac){if(_0x443dd4['help']){console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7));return;}if(_0x5ac3b8['defaultCommand'])_0x1428ac=_0x5ac3b8[_0x2b3111(0x15f)];else{console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7));return;}}_0x18e8b7==='init'&&_0x1428ac===_0x2b3111(0x165)&&(_0x18e8b7=_0x2b3111(0x156),process[_0x2b3111(0x160)][_0x2b3111(0x16e)](_0x2b3111(0x174)+CLI_BIN_NAME+_0x2b3111(0x172)+CLI_BIN_NAME+'\x20app\x20import`.\x0a'));const _0x357c47=findDefinition(_0x18e8b7,_0x1428ac);!_0x357c47&&(console[_0x2b3111(0x178)](generateServiceHelp(_0x18e8b7)),handleError(CliErrors['unknownCommand'](_0x18e8b7+'\x20'+_0x1428ac)));if(_0x443dd4['help']){console[_0x2b3111(0x178)](generateCommandHelp(_0x357c47));return;}const _0x11891d=buildConfigFromFlags(_0x443dd4);await initGlobalEnvironment(_0x11891d);const _0x1190fb=createPipelineEnv(_0x11891d,_0x443dd4);_0x1190fb[_0x2b3111(0x157)]=cli['input'][_0x2b3111(0x162)](0x2),await runCommand(_0x357c47,_0x1190fb);}function handleError(_0x285dcc){const _0x5dcdca=a0_0x2b487d;if(_0x285dcc instanceof CliError){_0x285dcc['code']==='cancelled'&&(process[_0x5dcdca(0x160)]['write'](_0x5dcdca(0x17d)),process['exit'](0x0));console[_0x5dcdca(0x15e)](_0x5dcdca(0x16c)+_0x285dcc['message']);if(_0x285dcc[_0x5dcdca(0x173)])console[_0x5dcdca(0x15e)](_0x5dcdca(0x167)+_0x285dcc[_0x5dcdca(0x173)]);process['exit'](_0x285dcc[_0x5dcdca(0x170)]);}isUserCancellation(_0x285dcc)&&(process[_0x5dcdca(0x160)][_0x5dcdca(0x16e)](_0x5dcdca(0x17d)),process[_0x5dcdca(0x179)](0x0)),console['error']('Unexpected\x20error:',_0x285dcc),process[_0x5dcdca(0x179)](0x1);}function isUserCancellation(_0x31fc27){const _0x9ee369=a0_0x2b487d;if(!(_0x31fc27 instanceof Error))return![];if(_0x31fc27[_0x9ee369(0x155)]==='ExitPromptError')return!![];if(_0x31fc27[_0x9ee369(0x15c)]===_0x9ee369(0x158))return!![];if(_0x31fc27[_0x9ee369(0x15c)]===_0x9ee369(0x169))return!![];return![];}
2
+ const a0_0x483995=a0_0x160b;function a0_0x160b(_0x4784af,_0x20c089){_0x4784af=_0x4784af-0xec;const _0x5d3f46=a0_0x5d3f();let _0x160bf8=_0x5d3f46[_0x4784af];return _0x160bf8;}(function(_0x4a8e94,_0xb96e43){const _0x3b9100=a0_0x160b,_0x472267=_0x4a8e94();while(!![]){try{const _0x3b016b=parseInt(_0x3b9100(0x101))/0x1*(parseInt(_0x3b9100(0xef))/0x2)+-parseInt(_0x3b9100(0x102))/0x3+parseInt(_0x3b9100(0x109))/0x4*(parseInt(_0x3b9100(0xec))/0x5)+parseInt(_0x3b9100(0x112))/0x6*(parseInt(_0x3b9100(0x10c))/0x7)+-parseInt(_0x3b9100(0x111))/0x8+-parseInt(_0x3b9100(0xf7))/0x9+parseInt(_0x3b9100(0x10a))/0xa*(parseInt(_0x3b9100(0x100))/0xb);if(_0x3b016b===_0xb96e43)break;else _0x472267['push'](_0x472267['shift']());}catch(_0x204552){_0x472267['push'](_0x472267['shift']());}}}(a0_0x5d3f,0x5ca47));import{jsx as a0_0x265818}from'react/jsx-runtime';import a0_0x9332da 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{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x9332da(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x483995(0xfc)](handleError);async function main(){try{await run();}catch(_0x3ec842){handleError(_0x3ec842);}}async function run(){const _0x4e971e=a0_0x483995;let _0x5a8c4e=cli[_0x4e971e(0xee)][0x0],_0xdad4b5=cli[_0x4e971e(0xee)][0x1];const _0x7b26c2=cli[_0x4e971e(0xfa)];try{const {correctFlags:_0x165801}=await import('./framework/preparse.js'),_0x54d468=getAllDefinitions()['flatMap'](_0x4a48c7=>_0x4a48c7['flags']??[]),{flags:_0x4e255c,corrections:_0x483b6c}=_0x165801(_0x7b26c2,_0x54d468);if(_0x483b6c[_0x4e971e(0x104)]>0x0){for(const _0x2939ca of _0x483b6c){process[_0x4e971e(0xfb)][_0x4e971e(0x116)](_0x4e971e(0xfd)+_0x2939ca['handler']+_0x4e971e(0x103)+_0x2939ca[_0x4e971e(0xf8)]+_0x4e971e(0xff)+_0x2939ca[_0x4e971e(0xf2)]+'\x0a');}Object['assign'](_0x7b26c2,_0x4e255c);}}catch{}if(!_0x5a8c4e||!isKnownService(_0x5a8c4e)){const {waitUntilExit:_0x9023e2}=render(a0_0x265818(Help,{}));await _0x9023e2();return;}const _0x437ccc=getServiceEntry(_0x5a8c4e);if(!_0xdad4b5){if(_0x7b26c2[_0x4e971e(0xf1)]){console['log'](generateServiceHelp(_0x5a8c4e));return;}if(_0x437ccc['defaultCommand'])_0xdad4b5=_0x437ccc[_0x4e971e(0xf3)];else{console[_0x4e971e(0xed)](generateServiceHelp(_0x5a8c4e));return;}}_0x5a8c4e===_0x4e971e(0x10b)&&_0xdad4b5===_0x4e971e(0xf9)&&(_0x5a8c4e=_0x4e971e(0xf0),process[_0x4e971e(0xfb)][_0x4e971e(0x116)](_0x4e971e(0xf5)+CLI_BIN_NAME+'\x20init\x20import`\x20has\x20moved\x20to\x20`'+CLI_BIN_NAME+_0x4e971e(0xf4)));const _0x55122a=findDefinition(_0x5a8c4e,_0xdad4b5);!_0x55122a&&(console[_0x4e971e(0xed)](generateServiceHelp(_0x5a8c4e)),handleError(CliErrors[_0x4e971e(0x110)](_0x5a8c4e+'\x20'+_0xdad4b5)));if(_0x7b26c2[_0x4e971e(0xf1)]){console[_0x4e971e(0xed)](generateCommandHelp(_0x55122a));return;}const _0x2e1919=buildConfigFromFlags(_0x7b26c2);await initGlobalEnvironment(_0x2e1919);const _0x2758fa=createPipelineEnv(_0x2e1919,_0x7b26c2);_0x2758fa[_0x4e971e(0x107)]=cli['input'][_0x4e971e(0x117)](0x2),await runCommand(_0x55122a,_0x2758fa);}function handleError(_0x32b6b3){const _0x5aaeec=a0_0x483995;if(_0x32b6b3 instanceof CliError){_0x32b6b3['code']===_0x5aaeec(0xf6)&&(process[_0x5aaeec(0xfb)][_0x5aaeec(0x116)](_0x5aaeec(0xfe)),process['exit'](0x0));console[_0x5aaeec(0x115)]('Error:\x20'+_0x32b6b3[_0x5aaeec(0x114)]);if(_0x32b6b3['hint'])console['error'](_0x5aaeec(0x105)+_0x32b6b3['hint']);process[_0x5aaeec(0x113)](_0x32b6b3['exitCode']);}isUserCancellation(_0x32b6b3)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process[_0x5aaeec(0x113)](0x0)),console['error'](_0x5aaeec(0x10d),_0x32b6b3),process[_0x5aaeec(0x113)](0x1);}function isUserCancellation(_0x2c9e8a){const _0x1e54c3=a0_0x483995;if(!(_0x2c9e8a instanceof Error))return![];if(_0x2c9e8a[_0x1e54c3(0x10f)]==='ExitPromptError')return!![];if(_0x2c9e8a['code']===_0x1e54c3(0x108))return!![];if(_0x2c9e8a[_0x1e54c3(0x106)]===_0x1e54c3(0x10e))return!![];return![];}function a0_0x5d3f(){const _0x29a30b=['ERR_USE_AFTER_CLOSE','4152ZSAETN','3069740YIxrGb','init','1582LUfreA','Unexpected\x20error:','ERR_STREAM_DESTROYED','name','unknownCommand','2814760HjFNJE','19452mYNdLZ','exit','message','error','write','slice','905Bqjkut','log','input','378HozdkI','app','help','corrected','defaultCommand','\x20app\x20import`.\x0a','[deprecation]\x20`','cancelled','430551keVqTy','original','import','flags','stderr','catch','[preparse]\x20','\x0aCancelled.\x0a','\x20->\x20--','11zcdmNg','369IDKIgZ','1554414EwbyVz',':\x20--','length','Hint:\x20','code','args'];a0_0x5d3f=function(){return _0x29a30b;};return a0_0x5d3f();}
@@ -1 +1 @@
1
- (function(_0x15be76,_0x16a5f9){const _0x2662a1=a1_0x44fe,_0x2a1cb3=_0x15be76();while(!![]){try{const _0x405eed=-parseInt(_0x2662a1(0x12d))/0x1*(parseInt(_0x2662a1(0x130))/0x2)+-parseInt(_0x2662a1(0x11d))/0x3+parseInt(_0x2662a1(0x115))/0x4*(parseInt(_0x2662a1(0x120))/0x5)+-parseInt(_0x2662a1(0x11f))/0x6*(parseInt(_0x2662a1(0x131))/0x7)+parseInt(_0x2662a1(0x11b))/0x8*(-parseInt(_0x2662a1(0x112))/0x9)+-parseInt(_0x2662a1(0x125))/0xa*(parseInt(_0x2662a1(0x110))/0xb)+parseInt(_0x2662a1(0x119))/0xc*(parseInt(_0x2662a1(0x128))/0xd);if(_0x405eed===_0x16a5f9)break;else _0x2a1cb3['push'](_0x2a1cb3['shift']());}catch(_0x1bfc81){_0x2a1cb3['push'](_0x2a1cb3['shift']());}}}(a1_0x344a,0xd8aae));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0xef5a08){const _0x275768=a1_0x44fe,_0x514c85=_0xef5a08[_0x275768(0x12f)](),_0xa4f607=_0x514c85[_0x275768(0x12b)](-0x6)||_0x275768(0x121),_0x400524=createHash(_0x275768(0x116))[_0x275768(0x12e)](_0x514c85)[_0x275768(0x117)](_0x275768(0x11c))[_0x275768(0x12b)](0x0,0xc);return _0x275768(0x11a)+_0xa4f607+'_'+_0x400524;}export function getAppCacheFilePath(_0x455dfc,_0x1fac4e){const _0x4542d1=a1_0x44fe;return resolve(homedir(),_0x4542d1(0x10f),_0x4542d1(0x124),_0x455dfc,fingerprintAccessKey(_0x1fac4e),_0x4542d1(0x132));}export function readCachedAppList(_0x2456f4,_0x543836){const _0x1c6ff6=a1_0x44fe;if(!_0x543836?.[_0x1c6ff6(0x12f)]())return null;const _0x569b75=getAppCacheFilePath(_0x2456f4,_0x543836);if(!existsSync(_0x569b75))return null;try{const _0x128d8c=readFileSync(_0x569b75,_0x1c6ff6(0x129));if(!_0x128d8c[_0x1c6ff6(0x12f)]())return null;const _0x490dc6=JSON[_0x1c6ff6(0x12c)](_0x128d8c);if(!Array[_0x1c6ff6(0x11e)](_0x490dc6[_0x1c6ff6(0x122)]))return null;return _0x490dc6;}catch{return null;}}function a1_0x44fe(_0x5bf801,_0x21a74b){_0x5bf801=_0x5bf801-0x10f;const _0x344aaf=a1_0x344a();let _0x44fe6c=_0x344aaf[_0x5bf801];return _0x44fe6c;}export function writeCachedAppList(_0x2912eb,_0x228e1c,_0x46ffbd){const _0xb3094c=a1_0x44fe,_0x1a6ff4=getAppCacheFilePath(_0x2912eb,_0x228e1c),_0x577b09=dirname(_0x1a6ff4);!existsSync(_0x577b09)&&mkdirSync(_0x577b09,{'recursive':!![]});const _0x42772a=_0x1a6ff4+'.tmp';try{writeFileSync(_0x42772a,JSON[_0xb3094c(0x12a)](_0x46ffbd,null,0x2)+'\x0a',{'encoding':_0xb3094c(0x129),'mode':0x180});try{renameSync(_0x42772a,_0x1a6ff4);}catch(_0x1b9945){if(_0x1b9945[_0xb3094c(0x126)]===_0xb3094c(0x118)||_0x1b9945[_0xb3094c(0x126)]===_0xb3094c(0x114)||_0x1b9945['code']===_0xb3094c(0x113)){writeFileSync(_0x1a6ff4,JSON['stringify'](_0x46ffbd,null,0x2)+'\x0a',{'encoding':_0xb3094c(0x129)});try{unlinkSync(_0x42772a);}catch{}}else throw _0x1b9945;}}catch(_0x1b4c77){try{unlinkSync(_0x42772a);}catch{}throw _0x1b4c77;}return _0x1a6ff4;}function a1_0x344a(){const _0x3aa1f7=['utf8','stringify','slice','parse','1518329HjiWMT','update','trim','2VljqZf','329HLfEwH','my-apps.json','.lovrabet','1917322WeFpwv','appCode','1067409oaFtvJ','EACCES','EXDEV','256OuNClj','sha256','digest','EPERM','25193568YPjURL','ak_','8yTTOSr','hex','1045299qcHbJP','isArray','49374WDltHb','117870XUGBAl','unknown','items','appName','cache','20UsfccC','code','find','13eAJcyc'];a1_0x344a=function(){return _0x3aa1f7;};return a1_0x344a();}export function resolveCachedAppCode(_0x2255fb,_0x2bf1b8,_0x39a433){const _0x2a1969=a1_0x44fe;if(!_0x2255fb)return undefined;const _0x3e9bbe=readCachedAppList(_0x2bf1b8,_0x39a433),_0x4cc84a=_0x3e9bbe?.[_0x2a1969(0x122)][_0x2a1969(0x127)](_0x55676d=>_0x55676d[_0x2a1969(0x123)]===_0x2255fb);return _0x4cc84a?.[_0x2a1969(0x111)]?.[_0x2a1969(0x12f)]()||undefined;}
1
+ (function(_0x5d13d1,_0x4e58c6){const _0x10847e=a1_0x5d04,_0x29f656=_0x5d13d1();while(!![]){try{const _0xc99d26=-parseInt(_0x10847e(0xa3))/0x1+-parseInt(_0x10847e(0xb0))/0x2*(-parseInt(_0x10847e(0x9d))/0x3)+parseInt(_0x10847e(0x9c))/0x4+-parseInt(_0x10847e(0xaa))/0x5*(parseInt(_0x10847e(0xac))/0x6)+parseInt(_0x10847e(0xad))/0x7+-parseInt(_0x10847e(0xb3))/0x8*(parseInt(_0x10847e(0xa2))/0x9)+-parseInt(_0x10847e(0x9e))/0xa*(parseInt(_0x10847e(0xb5))/0xb);if(_0xc99d26===_0x4e58c6)break;else _0x29f656['push'](_0x29f656['shift']());}catch(_0x37b419){_0x29f656['push'](_0x29f656['shift']());}}}(a1_0x1951,0xd86dc));function a1_0x1951(){const _0x410789=['.lovrabet','EPERM','1148884vTvFxF','172266uHxoDW','30jgxMVl','trim','update','sha256','342rztWzJ','1274268DVSijd','isArray','slice','find','parse','appCode','code','250nrYigB','stringify','33858zxCUVG','7638736oIpuID','cache','.tmp','44tMmksD','ak_','unknown','13584XJzWnY','appName','492503rdItfc','utf8','my-apps.json','EXDEV'];a1_0x1951=function(){return _0x410789;};return a1_0x1951();}function a1_0x5d04(_0x4046c0,_0x4a4e6f){_0x4046c0=_0x4046c0-0x9a;const _0x195166=a1_0x1951();let _0x5d04da=_0x195166[_0x4046c0];return _0x5d04da;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x91634f){const _0x302157=a1_0x5d04,_0x519dd2=_0x91634f[_0x302157(0x9f)](),_0x35dddd=_0x519dd2[_0x302157(0xa5)](-0x6)||_0x302157(0xb2),_0x7e606f=createHash(_0x302157(0xa1))[_0x302157(0xa0)](_0x519dd2)['digest']('hex')[_0x302157(0xa5)](0x0,0xc);return _0x302157(0xb1)+_0x35dddd+'_'+_0x7e606f;}export function getAppCacheFilePath(_0x181813,_0x1fb007){const _0x306ac1=a1_0x5d04;return resolve(homedir(),_0x306ac1(0x9a),_0x306ac1(0xae),_0x181813,fingerprintAccessKey(_0x1fb007),_0x306ac1(0xb7));}export function readCachedAppList(_0x2491c7,_0x547d54){const _0x36c1d7=a1_0x5d04;if(!_0x547d54?.['trim']())return null;const _0x207086=getAppCacheFilePath(_0x2491c7,_0x547d54);if(!existsSync(_0x207086))return null;try{const _0x7413ee=readFileSync(_0x207086,_0x36c1d7(0xb6));if(!_0x7413ee[_0x36c1d7(0x9f)]())return null;const _0x50449a=JSON[_0x36c1d7(0xa7)](_0x7413ee);if(!Array[_0x36c1d7(0xa4)](_0x50449a['items']))return null;return _0x50449a;}catch{return null;}}export function writeCachedAppList(_0x46c000,_0x9d28a6,_0x521cf1){const _0x1a5427=a1_0x5d04,_0xbd7c8c=getAppCacheFilePath(_0x46c000,_0x9d28a6),_0x495052=dirname(_0xbd7c8c);!existsSync(_0x495052)&&mkdirSync(_0x495052,{'recursive':!![]});const _0x5f246c=_0xbd7c8c+_0x1a5427(0xaf);try{writeFileSync(_0x5f246c,JSON[_0x1a5427(0xab)](_0x521cf1,null,0x2)+'\x0a',{'encoding':_0x1a5427(0xb6),'mode':0x180});try{renameSync(_0x5f246c,_0xbd7c8c);}catch(_0x5cdddb){if(_0x5cdddb['code']===_0x1a5427(0x9b)||_0x5cdddb[_0x1a5427(0xa9)]===_0x1a5427(0xb8)||_0x5cdddb['code']==='EACCES'){writeFileSync(_0xbd7c8c,JSON[_0x1a5427(0xab)](_0x521cf1,null,0x2)+'\x0a',{'encoding':_0x1a5427(0xb6)});try{unlinkSync(_0x5f246c);}catch{}}else throw _0x5cdddb;}}catch(_0x3772e9){try{unlinkSync(_0x5f246c);}catch{}throw _0x3772e9;}return _0xbd7c8c;}export function resolveCachedAppCode(_0x4538f8,_0x329a6f,_0x488c6c){const _0x2ac518=a1_0x5d04;if(!_0x4538f8)return undefined;const _0x1b5d46=readCachedAppList(_0x329a6f,_0x488c6c),_0x4c45bf=_0x1b5d46?.['items'][_0x2ac518(0xa6)](_0x4de3ef=>_0x4de3ef[_0x2ac518(0xb4)]===_0x4538f8);return _0x4c45bf?.[_0x2ac518(0xa8)]?.[_0x2ac518(0x9f)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0xd1d1dd=a2_0x5eb4;(function(_0x24aa0d,_0x287402){const _0xab3e84=a2_0x5eb4,_0x1cec1c=_0x24aa0d();while(!![]){try{const _0x3f901b=parseInt(_0xab3e84(0x190))/0x1+parseInt(_0xab3e84(0x1d2))/0x2*(-parseInt(_0xab3e84(0x18a))/0x3)+parseInt(_0xab3e84(0x18c))/0x4*(parseInt(_0xab3e84(0x1e8))/0x5)+-parseInt(_0xab3e84(0x1b5))/0x6+-parseInt(_0xab3e84(0x1b0))/0x7+parseInt(_0xab3e84(0x1a6))/0x8*(parseInt(_0xab3e84(0x193))/0x9)+-parseInt(_0xab3e84(0x1d5))/0xa*(-parseInt(_0xab3e84(0x1e1))/0xb);if(_0x3f901b===_0x287402)break;else _0x1cec1c['push'](_0x1cec1c['shift']());}catch(_0x43c2cf){_0x1cec1c['push'](_0x1cec1c['shift']());}}}(a2_0x33c6,0x21116));import{CliErrors}from'../../errors.js';import{initImportFlagDefs,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields,collectAppProfileOverrides,getAppProfileFlagDefs}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';function a2_0x33c6(){const _0x399d53=['write','list','envName','validation','\x22\x20(appcode:\x20','items','local','Missing\x20app\x20name.','global','11496dEqHgP','\x20app\x20use\x20<name>\x20[--global]','fetchedAt','Usage:\x20','projectPath','read','Loaded\x20','\x20config.','\x20app(s)\x20for\x20env=\x22','remove','1802199sKgIsR','App\x20\x22','env','\x20app\x20add\x20','App\x20profile\x20name\x20to\x20activate','1132446vewceg','\x20Note:\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','str','import','both','../../context.js','boolean','\x20Set\x20as\x20default\x20app.','appcode','from','accessKey','call','appName','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Filter\x20by\x20environment\x20(default:\x20current\x20env)','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Import\x20app\x20profiles\x20from\x20a\x20.rabetbase.json\x20file','remote','Read\x20app\x20list\x20from\x20local\x20cache\x20only','\x0aNote:\x20\x22','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','\x20(appcode:\x20','Add\x20an\x20app\x20to\x20config','App\x20profile\x20name\x20to\x20remove','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','project-default','add','../../commands/app/remote-source.js','6cOmkiM','no-cache','mergedCli','3750tWgXJT','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20`','map','\x20app\x20\x22','defaultApp','app','globalPath','nonInteractive','Updated','join','Use\x20global\x20config\x20scope','Refreshed\x20app\x20cache\x20with\x20','5236zyGSSn','hasOwnProperty','find','\x20app\x20remove\x20<name>\x20[--global]','cache','\x20Default\x20app\x20changed\x20to\x20\x22','No\x20cached\x20apps\x20found.','4315ONidpk','appPublishStatus','projectConfig','name','project','apps','pull','cachePath','Target\x20environment\x20(default:\x20current\x20env)','args','bool','Use\x20`','1968LyhlTh','object','332DqkTjP','type','length','high-risk-write','165354FkYZOQ','App\x20profile\x20name\x20(used\x20to\x20switch\x20between\x20apps)','isCurrent','1053uMXNut','use','\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--global]','string','\x22\x20not\x20found.','source','Default\x20app\x20set\x20to\x20\x22','keys','No\x20apps\x20found\x20on\x20the\x20platform.','globalConfig'];a2_0x33c6=function(){return _0x399d53;};return a2_0x33c6();}const GLOBAL_FLAG={'name':a2_0xd1d1dd(0x1a5),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1df),'default':![]};function a2_0x5eb4(_0x1094f1,_0x5ca54f){_0x1094f1=_0x1094f1-0x186;const _0x33c634=a2_0x33c6();let _0x5eb4bb=_0x33c634[_0x1094f1];return _0x5eb4bb;}function collectFlags(_0x4625a4,_0x18edd2){const _0x559504=a2_0xd1d1dd,_0x395f7c={};for(const _0x1b73bd of _0x18edd2){const _0x234629=_0x1b73bd[_0x559504(0x18d)]===_0x559504(0x1bc)?_0x4625a4[_0x559504(0x188)](_0x1b73bd['name']):_0x4625a4[_0x559504(0x1b8)](_0x1b73bd[_0x559504(0x1eb)]);if(_0x234629!==''&&_0x234629!==![])_0x395f7c[_0x1b73bd['name']]=_0x234629;}if(_0x4625a4[_0x559504(0x1dc)])_0x395f7c['nonInteractive']=!![];return _0x395f7c;}const listDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x19e),'description':a2_0xd1d1dd(0x1c5),'risk':a2_0xd1d1dd(0x1ab),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0xd1d1dd(0x1b2),'type':a2_0xd1d1dd(0x196),'description':a2_0xd1d1dd(0x1c4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xd1d1dd(0x1a3),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1c8),'default':![]},{'name':a2_0xd1d1dd(0x1d3),'type':a2_0xd1d1dd(0x1bc),'description':a2_0xd1d1dd(0x1ca),'default':![]}],async 'execute'(_0x55f2d7){const _0x5d5136=a2_0xd1d1dd,_0xa4f931=_0x55f2d7['str']('env')||_0x55f2d7[_0x5d5136(0x19f)]||getEnv()||'production',_0xc203f6=_0x55f2d7[_0x5d5136(0x188)]('local'),_0x3d53a5=_0x55f2d7['bool'](_0x5d5136(0x1d3)),{readRawConfigWithLayers:_0x19b285,resolveDefaultAppSource:_0xbcde21}=await import('../../context.js'),{getRemoteAppList:_0x21f582}=await import('../../commands/app/remote-source.js'),{config:_0x835408,layers:_0x2ce815}=_0x19b285(),_0x50157b=_0xbcde21(_0x2ce815),{defaultApp:_0x36f181}=_0x835408,_0x61d4c8=await _0x21f582({'env':_0xa4f931,'accessKey':_0x55f2d7[_0x5d5136(0x1c0)],'localOnly':_0xc203f6,'noCache':_0x3d53a5}),_0x33c6a0=_0x835408[_0x5d5136(0x1ed)]&&typeof _0x835408[_0x5d5136(0x1ed)]===_0x5d5136(0x18b)?_0x835408['apps']:{},_0x7366d9=_0x61d4c8['items'][_0x5d5136(0x1d7)](_0x5d16f5=>{const _0x1441ea=_0x5d5136,_0x5e03a8=_0x33c6a0[_0x5d16f5[_0x1441ea(0x1c2)]]??{};return{'name':_0x5d16f5[_0x1441ea(0x1c2)],'appcode':_0x5d16f5['appCode'],'named':!![],'definedIn':Object['keys'](_0x5e03a8)[_0x1441ea(0x18e)]>0x0?'config':_0x1441ea(0x1c7),'isDefault':_0x5d16f5['appName']===_0x36f181,...buildAppProfileListFields(_0x5e03a8,_0xa4f931),'source':_0x61d4c8[_0x1441ea(0x198)],'owner':_0x5d16f5['appOwnerName']??null,'status':_0x5d16f5[_0x1441ea(0x1e9)]??null,'cachedAt':_0x61d4c8['fetchedAt']};});enrichAppListItemsWithMergedSelection(_0x7366d9,_0x55f2d7[_0x5d5136(0x1d4)]);if(_0x7366d9[_0x5d5136(0x18e)]===0x0)return{'ok':!![],'data':[],'message':_0x61d4c8[_0x5d5136(0x198)]==='cache'?_0x5d5136(0x1e7):_0x5d5136(0x19b)};const _0x164732=_0x7366d9[_0x5d5136(0x1e3)](_0x2ecaad=>_0x2ecaad[_0x5d5136(0x192)]===!![]),_0x26e5e5=_0x36f181??_0x164732?.['name']??null,_0x161039={'env':_0xa4f931,'source':_0x61d4c8[_0x5d5136(0x198)],'fetchedAt':_0x61d4c8['fetchedAt'],'cachePath':_0x61d4c8[_0x5d5136(0x1ef)],'globalPath':_0x2ce815[_0x5d5136(0x1db)]??null,'projectPath':_0x2ce815[_0x5d5136(0x1aa)]??null,'defaultApp':_0x26e5e5,'defaultAppSource':_0x36f181!=null?_0x50157b:null};return{'ok':!![],'data':{'items':_0x7366d9,'meta':_0x161039}};}},pullDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1ee),'description':a2_0xd1d1dd(0x1ce),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0xd1d1dd(0x1b2),'type':a2_0xd1d1dd(0x196),'description':a2_0xd1d1dd(0x186),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0xd1d1dd(0x1a3),'type':a2_0xd1d1dd(0x1bc),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0xd1d1dd(0x1d3),'type':'boolean','description':a2_0xd1d1dd(0x1ca),'default':![]}],async 'execute'(_0x2b1162){const _0x58056b=a2_0xd1d1dd,_0x5b0781=_0x2b1162[_0x58056b(0x1b8)]('env')||_0x2b1162[_0x58056b(0x19f)]||getEnv()||'production',_0x460358=_0x2b1162[_0x58056b(0x188)]('local'),_0x25d36a=_0x2b1162[_0x58056b(0x188)](_0x58056b(0x1d3)),{getRemoteAppList:_0x386bed}=await import(_0x58056b(0x1d1)),_0x950b99=await _0x386bed({'env':_0x5b0781,'accessKey':_0x2b1162[_0x58056b(0x1c0)],'localOnly':_0x460358,'noCache':_0x25d36a});return{'ok':!![],'data':{'total':_0x950b99['items']['length'],'env':_0x5b0781,'source':_0x950b99[_0x58056b(0x198)],'fetchedAt':_0x950b99[_0x58056b(0x1a8)],'cachePath':_0x950b99[_0x58056b(0x1ef)]},'message':_0x950b99['source']===_0x58056b(0x1e5)?_0x58056b(0x1ac)+_0x950b99[_0x58056b(0x1a2)][_0x58056b(0x18e)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x5b0781+'\x22.':_0x58056b(0x1e0)+_0x950b99['items'][_0x58056b(0x18e)]+_0x58056b(0x1ae)+_0x5b0781+'\x22.'};}},useDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x194),'description':'Switch\x20the\x20default\x20app','risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0xd1d1dd(0x1eb),'description':a2_0xd1d1dd(0x1b4),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4d942d){const _0x2c3ca9=a2_0xd1d1dd;if(!_0x4d942d[_0x2c3ca9(0x187)][0x0])throw CliErrors[_0x2c3ca9(0x1a0)]('Missing\x20app\x20name.',_0x2c3ca9(0x1a9)+CLI_BIN_NAME+_0x2c3ca9(0x1a7));},async 'execute'(_0x86a1e9){const _0xa8cdb0=a2_0xd1d1dd,_0x4975b5=_0x86a1e9[_0xa8cdb0(0x187)][0x0];if(!_0x4975b5)throw CliErrors[_0xa8cdb0(0x1a0)](_0xa8cdb0(0x1a4),_0xa8cdb0(0x1a9)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x3e4d64,readRawConfigWithLayers:_0x254ec7}=await import(_0xa8cdb0(0x1bb)),{readCachedAppList:_0x29e58f}=await import('../../commands/app/cache.js'),_0x55ec7b=_0x3e4d64({}),_0x22988f=_0x55ec7b['apps']||{},_0x263a86=_0x29e58f(_0x55ec7b['env'],_0x55ec7b[_0xa8cdb0(0x1c0)]),_0x3171af=_0x263a86?.['items'][_0xa8cdb0(0x1e3)](_0x84fc9a=>_0x84fc9a[_0xa8cdb0(0x1c2)]===_0x4975b5);if(!_0x22988f[_0x4975b5]&&!_0x3171af){const _0x1ea154=[...Object['keys'](_0x22988f),..._0x263a86?.['items'][_0xa8cdb0(0x1d7)](_0x2da1bc=>_0x2da1bc[_0xa8cdb0(0x1c2)])??[]],_0x329186=_0x1ea154[_0xa8cdb0(0x18e)]===0x0?_0xa8cdb0(0x189)+CLI_BIN_NAME+_0xa8cdb0(0x1d6)+CLI_BIN_NAME+_0xa8cdb0(0x1b3)+_0x4975b5+'\x20--appcode\x20<code>`\x20to\x20add\x20an\x20override.':'Available:\x20'+Array[_0xa8cdb0(0x1bf)](new Set(_0x1ea154))[_0xa8cdb0(0x1de)](',\x20');throw CliErrors[_0xa8cdb0(0x1a0)](_0xa8cdb0(0x1b1)+_0x4975b5+_0xa8cdb0(0x197),_0x329186);}const {layers:_0x110885}=_0x254ec7(),_0x468525=_0x86a1e9[_0xa8cdb0(0x188)](_0xa8cdb0(0x1a5));let _0x3004f8,_0x8467a2='';if(_0x468525)_0x3004f8={'global':!![]};else{const {isInProject:_0x3264d0}=await import(_0xa8cdb0(0x1bb)),_0x375d31=_0x3264d0()&&!!_0x110885[_0xa8cdb0(0x1aa)];_0x3004f8=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0xa8cdb0(0x1cf),'inProject':_0x375d31}));if(_0x375d31){const _0x29f2dc=_0x110885[_0xa8cdb0(0x1ea)][_0xa8cdb0(0x1ed)]&&typeof _0x110885[_0xa8cdb0(0x1ea)][_0xa8cdb0(0x1ed)]===_0xa8cdb0(0x18b)?_0x110885['projectConfig']['apps']:{};!Object['prototype'][_0xa8cdb0(0x1e2)][_0xa8cdb0(0x1c1)](_0x29f2dc,_0x4975b5)&&(_0x8467a2=_0xa8cdb0(0x1c9)+_0x4975b5+'\x22\x20is\x20defined\x20in\x20global\x20config;\x20defaultApp\x20written\x20to\x20project\x20to\x20take\x20effect\x20in\x20merged\x20view.');}}const _0x4e7521=readConfig(_0x3004f8);return _0x4e7521[_0xa8cdb0(0x1d9)]=_0x4975b5,writeConfig(_0x4e7521,_0x3004f8),{'ok':!![],'message':_0xa8cdb0(0x199)+_0x4975b5+'\x22'+(''+(_0x22988f[_0x4975b5]?.[_0xa8cdb0(0x1be)]?_0xa8cdb0(0x1cb)+_0x22988f[_0x4975b5]?.[_0xa8cdb0(0x1be)]+')':''))+(''+scopeLabel(_0x3004f8))+(''+_0x8467a2)};}},addFlags=[{'name':a2_0xd1d1dd(0x1be),'type':a2_0xd1d1dd(0x196),'description':'App\x20code\x20(required)','required':!![]},GLOBAL_FLAG,...getAppProfileFlagDefs()],addDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1d0),'description':a2_0xd1d1dd(0x1cc),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a2_0xd1d1dd(0x191),'required':!![]}],'flags':addFlags,async 'validate'(_0x4c221c){const _0x578ff6=a2_0xd1d1dd;if(!_0x4c221c[_0x578ff6(0x187)][0x0])throw CliErrors[_0x578ff6(0x1a0)](_0x578ff6(0x1a4),'Usage:\x20'+CLI_BIN_NAME+_0x578ff6(0x195));},async 'execute'(_0x3db5c1){const _0x767da1=a2_0xd1d1dd,_0x49cbdd=_0x3db5c1[_0x767da1(0x187)][0x0];if(!_0x49cbdd)throw CliErrors[_0x767da1(0x1a0)]('Missing\x20app\x20name.',_0x767da1(0x1a9)+CLI_BIN_NAME+_0x767da1(0x195));const _0x54648a=_0x3db5c1[_0x767da1(0x1b8)](_0x767da1(0x1be));if(!_0x54648a)throw CliErrors['flagMissing'](_0x767da1(0x1be),_0x767da1(0x1a9)+CLI_BIN_NAME+_0x767da1(0x1c3));const {isInProject:_0x544a27}=await import(_0x767da1(0x1bb)),_0x21c226=toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3db5c1[_0x767da1(0x188)](_0x767da1(0x1a5)),'policy':_0x767da1(0x1cf),'inProject':_0x544a27()})),_0x23e9c3=readConfig(_0x21c226);if(!_0x23e9c3[_0x767da1(0x1ed)])_0x23e9c3[_0x767da1(0x1ed)]={};const _0x5f4630={'appcode':_0x54648a,...collectAppProfileOverrides(_0x22f655=>_0x3db5c1[_0x767da1(0x1b8)](_0x22f655))},_0x214224=!!_0x23e9c3['apps'][_0x49cbdd];_0x23e9c3[_0x767da1(0x1ed)][_0x49cbdd]=_0x5f4630;!_0x23e9c3[_0x767da1(0x1d9)]&&(_0x23e9c3[_0x767da1(0x1d9)]=_0x49cbdd);writeConfig(_0x23e9c3,_0x21c226);const _0x441a65=!_0x214224&&_0x23e9c3[_0x767da1(0x1d9)]===_0x49cbdd?_0x767da1(0x1bd):'',_0x261a87=(_0x214224?_0x767da1(0x1dd):'Added')+_0x767da1(0x1d8)+_0x49cbdd+_0x767da1(0x1a1)+_0x54648a+')'+(scopeLabel(_0x21c226)+'.')+(''+_0x441a65);return{'ok':!![],'message':_0x261a87};}},removeDef={'service':'app','command':a2_0xd1d1dd(0x1af),'description':'Remove\x20an\x20app\x20from\x20config','risk':a2_0xd1d1dd(0x18f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0xd1d1dd(0x1eb),'description':a2_0xd1d1dd(0x1cd),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3b9151){const _0x34e5bd=a2_0xd1d1dd;if(!_0x3b9151['args'][0x0])throw CliErrors[_0x34e5bd(0x1a0)](_0x34e5bd(0x1a4),_0x34e5bd(0x1a9)+CLI_BIN_NAME+_0x34e5bd(0x1e4));},async 'execute'(_0x30d39d){const _0x51fc34=a2_0xd1d1dd,_0x2bdeeb=_0x30d39d[_0x51fc34(0x187)][0x0];if(!_0x2bdeeb)throw CliErrors[_0x51fc34(0x1a0)]('Missing\x20app\x20name.',_0x51fc34(0x1a9)+CLI_BIN_NAME+'\x20app\x20remove\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x2c4236,readRawConfigWithLayers:_0x4dfad1,appDefinedIn:_0x200294}=await import(_0x51fc34(0x1bb)),_0x3bc0de=_0x2c4236({}),_0x2c8c10=_0x3bc0de[_0x51fc34(0x1ed)]||{};if(!_0x2c8c10[_0x2bdeeb])throw CliErrors[_0x51fc34(0x1a0)](_0x51fc34(0x1b1)+_0x2bdeeb+'\x22\x20not\x20found.');const {layers:_0x2916dc}=_0x4dfad1(),_0x4196ac=_0x30d39d[_0x51fc34(0x188)](_0x51fc34(0x1a5)),_0x3e8370=_0x200294(_0x2bdeeb,_0x2916dc[_0x51fc34(0x19c)][_0x51fc34(0x1ed)]??{},_0x2916dc[_0x51fc34(0x1ea)][_0x51fc34(0x1ed)]??{},_0x2916dc['projectConfig']['inherit']===![]),_0x18eed8={'global':_0x4196ac},_0x4a2523=readConfig(_0x18eed8);if(!_0x4a2523[_0x51fc34(0x1ed)]||!_0x4a2523[_0x51fc34(0x1ed)][_0x2bdeeb])throw CliErrors[_0x51fc34(0x1a0)](_0x51fc34(0x1b1)+_0x2bdeeb+_0x51fc34(0x197));delete _0x4a2523[_0x51fc34(0x1ed)][_0x2bdeeb];let _0x49d4c4='';if(_0x4a2523['defaultApp']===_0x2bdeeb){const _0x3b31bd=Object[_0x51fc34(0x19a)](_0x4a2523[_0x51fc34(0x1ed)]);_0x4a2523[_0x51fc34(0x1d9)]=_0x3b31bd[_0x51fc34(0x18e)]>0x0?_0x3b31bd[0x0]:undefined,_0x4a2523[_0x51fc34(0x1d9)]?_0x49d4c4=_0x51fc34(0x1e6)+_0x4a2523[_0x51fc34(0x1d9)]+'\x22.':delete _0x4a2523[_0x51fc34(0x1d9)];}Object['keys'](_0x4a2523[_0x51fc34(0x1ed)])[_0x51fc34(0x18e)]===0x0&&(delete _0x4a2523[_0x51fc34(0x1ed)],delete _0x4a2523[_0x51fc34(0x1d9)]);writeConfig(_0x4a2523,_0x18eed8);const _0x3b8712=_0x3e8370===_0x51fc34(0x1ba)?_0x51fc34(0x1b6)+_0x2bdeeb+_0x51fc34(0x1b7)+(_0x18eed8['global']?_0x51fc34(0x1ec):_0x51fc34(0x1a5))+_0x51fc34(0x1ad):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x2bdeeb+'\x22'+scopeLabel(_0x18eed8)+'.'+_0x49d4c4+_0x3b8712};}},importDef={'service':a2_0xd1d1dd(0x1da),'command':a2_0xd1d1dd(0x1b9),'description':a2_0xd1d1dd(0x1c6),'risk':a2_0xd1d1dd(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x5730dc){return await runInitImport(collectFlags(_0x5730dc,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,useDef,addDef,removeDef,importDef];
1
+ const a2_0x2b2c07=a2_0x3d63;(function(_0x292d1c,_0x4ae815){const _0x5d4125=a2_0x3d63,_0x4a9346=_0x292d1c();while(!![]){try{const _0x2dfa43=parseInt(_0x5d4125(0x96))/0x1*(-parseInt(_0x5d4125(0x65))/0x2)+parseInt(_0x5d4125(0xa9))/0x3*(-parseInt(_0x5d4125(0xa6))/0x4)+-parseInt(_0x5d4125(0x71))/0x5+-parseInt(_0x5d4125(0x8b))/0x6+parseInt(_0x5d4125(0x9e))/0x7*(parseInt(_0x5d4125(0xa1))/0x8)+-parseInt(_0x5d4125(0x9a))/0x9+parseInt(_0x5d4125(0x70))/0xa;if(_0x2dfa43===_0x4ae815)break;else _0x4a9346['push'](_0x4a9346['shift']());}catch(_0x300336){_0x4a9346['push'](_0x4a9346['shift']());}}}(a2_0x5a72,0x7f05b));import{CliErrors}from'../../errors.js';import{initImportFlagDefs,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a2_0x5a72(){const _0x3a0b9f=['appOwnerName','No\x20apps\x20found\x20on\x20the\x20platform.','join','args','Filter\x20by\x20environment\x20(default:\x20current\x20env)','\x20cached\x20app(s)\x20for\x20env=\x22','length','production','4946568sCietW','Switch\x20the\x20default\x20app','../../commands/app/cache.js','mergedCli','Usage:\x20','source','defaultApp','Remote\x20app\x20name\x20to\x20activate','string','type','appPublishStatus','426931DLMAcR','Use\x20`','import','nonInteractive','3622437BZuZxj','globalPath','read','Default\x20app\x20set\x20to\x20\x22','7049lzaaiO','Missing\x20app\x20name.','pull','8056QkKYVR','cache','Use\x20global\x20config\x20scope','projectPath','project-default','188jVkcgu','../../context.js','env','52293ZvHJoV','boolean','4SsyHpL','items','use','appCode','Available:\x20','Loaded\x20','name','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','envName','map','\x22\x20not\x20found.','32393560HupdOq','4165410zPKPbR','validation','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','accessKey','write','appName','Read\x20app\x20list\x20from\x20local\x20cache\x20only','fetchedAt','find','app','Target\x20environment\x20(default:\x20current\x20env)','../../commands/app/remote-source.js','cachePath','str','no-cache','local','Refreshed\x20app\x20cache\x20with\x20','bool'];a2_0x5a72=function(){return _0x3a0b9f;};return a2_0x5a72();}function a2_0x3d63(_0x4f3ade,_0x44c4c8){_0x4f3ade=_0x4f3ade-0x65;const _0x5a72f7=a2_0x5a72();let _0x3d637a=_0x5a72f7[_0x4f3ade];return _0x3d637a;}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':'global','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0xa3),'default':![]};function collectFlags(_0x1f50a9,_0x1f570e){const _0x378eef=a2_0x2b2c07,_0x44c252={};for(const _0x447535 of _0x1f570e){const _0x50a451=_0x447535[_0x378eef(0x94)]===_0x378eef(0xaa)?_0x1f50a9['bool'](_0x447535[_0x378eef(0x6b)]):_0x1f50a9[_0x378eef(0x7e)](_0x447535[_0x378eef(0x6b)]);if(_0x50a451!==''&&_0x50a451!==![])_0x44c252[_0x447535[_0x378eef(0x6b)]]=_0x50a451;}if(_0x1f50a9[_0x378eef(0x99)])_0x44c252[_0x378eef(0x99)]=!![];return _0x44c252;}const listDef={'service':a2_0x2b2c07(0x7a),'command':'list','description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a2_0x2b2c07(0x9c),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x2b2c07(0xa8),'type':a2_0x2b2c07(0x93),'description':a2_0x2b2c07(0x87),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2b2c07(0x80),'type':'boolean','description':a2_0x2b2c07(0x77),'default':![]},{'name':'no-cache','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0x6c),'default':![]}],async 'execute'(_0x584c95){const _0x35f63c=a2_0x2b2c07,_0x17e5d6=_0x584c95[_0x35f63c(0x7e)](_0x35f63c(0xa8))||_0x584c95[_0x35f63c(0x6d)]||getEnv()||_0x35f63c(0x8a),_0x295173=_0x584c95[_0x35f63c(0x82)](_0x35f63c(0x80)),_0x2f1882=_0x584c95[_0x35f63c(0x82)](_0x35f63c(0x7f)),{readRawConfigWithLayers:_0xaceaea,resolveDefaultAppSource:_0x2cb795}=await import('../../context.js'),{getRemoteAppList:_0x581588}=await import(_0x35f63c(0x7c)),{config:_0x5907d2,layers:_0x31413b}=_0xaceaea(),_0x455e58=_0x2cb795(_0x31413b),{defaultApp:_0x166a89}=_0x5907d2,_0x1dd06d=await _0x581588({'env':_0x17e5d6,'accessKey':_0x584c95['accessKey'],'localOnly':_0x295173,'noCache':_0x2f1882}),_0x16ecdc=_0x1dd06d[_0x35f63c(0x66)][_0x35f63c(0x6e)](_0x1a5a70=>{const _0x4d2f89=_0x35f63c;return{'name':_0x1a5a70[_0x4d2f89(0x76)],'appcode':_0x1a5a70[_0x4d2f89(0x68)],'named':!![],'definedIn':'remote','isDefault':_0x1a5a70[_0x4d2f89(0x76)]===_0x166a89,...buildAppProfileListFields(_0x17e5d6),'source':_0x1dd06d[_0x4d2f89(0x90)],'owner':_0x1a5a70[_0x4d2f89(0x83)]??null,'status':_0x1a5a70[_0x4d2f89(0x95)]??null,'cachedAt':_0x1dd06d[_0x4d2f89(0x78)]};});enrichAppListItemsWithMergedSelection(_0x16ecdc,_0x584c95[_0x35f63c(0x8e)]);if(_0x16ecdc['length']===0x0)return{'ok':!![],'data':[],'message':_0x1dd06d[_0x35f63c(0x90)]===_0x35f63c(0xa2)?'No\x20cached\x20apps\x20found.':_0x35f63c(0x84)};const _0x539a43=_0x16ecdc[_0x35f63c(0x79)](_0x5bae39=>_0x5bae39['isCurrent']===!![]),_0x2892a3=_0x166a89??_0x539a43?.[_0x35f63c(0x6b)]??null,_0x18e667={'env':_0x17e5d6,'source':_0x1dd06d[_0x35f63c(0x90)],'fetchedAt':_0x1dd06d[_0x35f63c(0x78)],'cachePath':_0x1dd06d[_0x35f63c(0x7d)],'globalPath':_0x31413b[_0x35f63c(0x9b)]??null,'projectPath':_0x31413b[_0x35f63c(0xa4)]??null,'defaultApp':_0x2892a3,'defaultAppSource':_0x166a89!=null?_0x455e58:null};return{'ok':!![],'data':{'items':_0x16ecdc,'meta':_0x18e667}};}},pullDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0xa0),'description':a2_0x2b2c07(0x73),'risk':a2_0x2b2c07(0x75),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x2b2c07(0xa8),'type':a2_0x2b2c07(0x93),'description':a2_0x2b2c07(0x7b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2b2c07(0x80),'type':a2_0x2b2c07(0xaa),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0x6c),'default':![]}],async 'execute'(_0x1160c9){const _0x57aa19=a2_0x2b2c07,_0xedef3e=_0x1160c9[_0x57aa19(0x7e)](_0x57aa19(0xa8))||_0x1160c9[_0x57aa19(0x6d)]||getEnv()||_0x57aa19(0x8a),_0x4e3d3d=_0x1160c9[_0x57aa19(0x82)](_0x57aa19(0x80)),_0x5ce4be=_0x1160c9['bool'](_0x57aa19(0x7f)),{getRemoteAppList:_0x48cfde}=await import(_0x57aa19(0x7c)),_0xe84a5=await _0x48cfde({'env':_0xedef3e,'accessKey':_0x1160c9[_0x57aa19(0x74)],'localOnly':_0x4e3d3d,'noCache':_0x5ce4be});return{'ok':!![],'data':{'total':_0xe84a5[_0x57aa19(0x66)]['length'],'env':_0xedef3e,'source':_0xe84a5[_0x57aa19(0x90)],'fetchedAt':_0xe84a5[_0x57aa19(0x78)],'cachePath':_0xe84a5[_0x57aa19(0x7d)]},'message':_0xe84a5[_0x57aa19(0x90)]===_0x57aa19(0xa2)?_0x57aa19(0x6a)+_0xe84a5[_0x57aa19(0x66)][_0x57aa19(0x89)]+_0x57aa19(0x88)+_0xedef3e+'\x22.':_0x57aa19(0x81)+_0xe84a5[_0x57aa19(0x66)][_0x57aa19(0x89)]+'\x20app(s)\x20for\x20env=\x22'+_0xedef3e+'\x22.'};}},useDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0x67),'description':a2_0x2b2c07(0x8c),'risk':a2_0x2b2c07(0x75),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x2b2c07(0x6b),'description':a2_0x2b2c07(0x92),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x1ca068){const _0x240548=a2_0x2b2c07;if(!_0x1ca068['args'][0x0])throw CliErrors[_0x240548(0x72)](_0x240548(0x9f),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x1fb8b7){const _0x476d0e=a2_0x2b2c07,_0x283139=_0x1fb8b7[_0x476d0e(0x86)][0x0];if(!_0x283139)throw CliErrors[_0x476d0e(0x72)](_0x476d0e(0x9f),_0x476d0e(0x8f)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x1686e4}=await import(_0x476d0e(0xa7)),{readCachedAppList:_0x4510f5}=await import(_0x476d0e(0x8d)),_0x3e2a7d=_0x1686e4({}),_0x348217=_0x4510f5(_0x3e2a7d[_0x476d0e(0xa8)],_0x3e2a7d[_0x476d0e(0x74)]),_0x48a281=_0x348217?.[_0x476d0e(0x66)][_0x476d0e(0x79)](_0x2ba1bc=>_0x2ba1bc[_0x476d0e(0x76)]===_0x283139);if(!_0x48a281&&_0x3e2a7d[_0x476d0e(0x91)]!==_0x283139){const _0x42761a=[..._0x348217?.[_0x476d0e(0x66)][_0x476d0e(0x6e)](_0x5c2834=>_0x5c2834[_0x476d0e(0x76)])??[]],_0x17c59e=_0x42761a[_0x476d0e(0x89)]===0x0?_0x476d0e(0x97)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps.':_0x476d0e(0x69)+Array['from'](new Set(_0x42761a))[_0x476d0e(0x85)](',\x20');throw CliErrors[_0x476d0e(0x72)]('App\x20\x22'+_0x283139+_0x476d0e(0x6f),_0x17c59e);}const _0x5b9b71=_0x1fb8b7[_0x476d0e(0x82)]('global');let _0x51e79a;if(_0x5b9b71)_0x51e79a={'global':!![]};else{const {isInProject:_0x5a9789}=await import('../../context.js'),_0x123e39=_0x5a9789();_0x51e79a=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x476d0e(0xa5),'inProject':_0x123e39}));}const _0x1ade87=readConfig(_0x51e79a);return _0x1ade87[_0x476d0e(0x91)]=_0x283139,writeConfig(_0x1ade87,_0x51e79a),{'ok':!![],'message':_0x476d0e(0x9d)+_0x283139+'\x22'+scopeLabel(_0x51e79a)+'.'};}},importDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0x98),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a2_0x2b2c07(0x75),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x22f41b){return await runInitImport(collectFlags(_0x22f41b,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x53e806,_0x49bb4e){const _0x101987=a3_0x1899,_0x43313c=_0x53e806();while(!![]){try{const _0x415343=-parseInt(_0x101987(0x101))/0x1*(parseInt(_0x101987(0x10d))/0x2)+-parseInt(_0x101987(0x10e))/0x3+-parseInt(_0x101987(0x109))/0x4*(-parseInt(_0x101987(0x107))/0x5)+parseInt(_0x101987(0x10c))/0x6+parseInt(_0x101987(0x100))/0x7+-parseInt(_0x101987(0x108))/0x8+parseInt(_0x101987(0x102))/0x9;if(_0x415343===_0x49bb4e)break;else _0x43313c['push'](_0x43313c['shift']());}catch(_0x5256b8){_0x43313c['push'](_0x43313c['shift']());}}}(a3_0x3c4e,0x402ca));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0x3c4e(){const _0x359642=['4436QSavko','errorCode','tableData','2404218iaxHnW','163742ILWiLt','158874ydEFoQ','Mock\x20API\x20error:\x20','data','errorMsg','2097109uOzRme','2PWSUNe','119997ZspbhP','../../../mock/app-list.json','utf-8','success','parse','355OMmObP','2502432hZNlYd'];a3_0x3c4e=function(){return _0x359642;};return a3_0x3c4e();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x5d2a1b=a3_0x1899,_0x471593=join(__dirname,_0x5d2a1b(0x103)),_0x2cb85a=readFileSync(_0x471593,_0x5d2a1b(0x104));return JSON[_0x5d2a1b(0x106)](_0x2cb85a);}let _cached=null;function a3_0x1899(_0x3603b5,_0x4c6541){_0x3603b5=_0x3603b5-0x100;const _0x3c4ec9=a3_0x3c4e();let _0x1899da=_0x3c4ec9[_0x3603b5];return _0x1899da;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5acbd3=a3_0x1899,_0x5b0862=getMockAppList();if(!_0x5b0862[_0x5acbd3(0x105)])throw new Error(_0x5acbd3(0x10f)+_0x5b0862[_0x5acbd3(0x111)]+'\x20('+_0x5b0862[_0x5acbd3(0x10a)]+')');return _0x5b0862[_0x5acbd3(0x110)][_0x5acbd3(0x10b)];}
1
+ (function(_0x4d26bb,_0x49c2ab){const _0x534eed=a3_0x244d,_0x4c0e0c=_0x4d26bb();while(!![]){try{const _0x1ec6b8=-parseInt(_0x534eed(0x134))/0x1+-parseInt(_0x534eed(0x132))/0x2*(parseInt(_0x534eed(0x13a))/0x3)+-parseInt(_0x534eed(0x13c))/0x4*(-parseInt(_0x534eed(0x13f))/0x5)+-parseInt(_0x534eed(0x137))/0x6+parseInt(_0x534eed(0x140))/0x7*(parseInt(_0x534eed(0x138))/0x8)+-parseInt(_0x534eed(0x13b))/0x9+parseInt(_0x534eed(0x139))/0xa;if(_0x1ec6b8===_0x49c2ab)break;else _0x4c0e0c['push'](_0x4c0e0c['shift']());}catch(_0x3f123a){_0x4c0e0c['push'](_0x4c0e0c['shift']());}}}(a3_0x4e79,0x836d5));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x244d(_0xf292d0,_0x56ef86){_0xf292d0=_0xf292d0-0x132;const _0x4e7960=a3_0x4e79();let _0x244df6=_0x4e7960[_0xf292d0];return _0x244df6;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1c4eb5=a3_0x244d,_0xdb0418=join(__dirname,'../../../mock/app-list.json'),_0x56337c=readFileSync(_0xdb0418,_0x1c4eb5(0x133));return JSON[_0x1c4eb5(0x141)](_0x56337c);}function a3_0x4e79(){const _0x1060e4=['parse','8abfjIG','utf-8','671584bieqAs','data','tableData','2800602xVPPbm','8vmtUUK','29218570IaxwWk','365163QwNxiv','8690175AptQAG','49708rTmhlz','errorCode','errorMsg','65cYEgGI','320089BPTnhl'];a3_0x4e79=function(){return _0x1060e4;};return a3_0x4e79();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x314147=a3_0x244d,_0x891d3=getMockAppList();if(!_0x891d3['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x891d3[_0x314147(0x13e)]+'\x20('+_0x891d3[_0x314147(0x13d)]+')');return _0x891d3[_0x314147(0x135)][_0x314147(0x136)];}
@@ -1 +1 @@
1
- (function(_0x38a760,_0x4256f1){const _0xe29c71=a4_0xde21,_0x8f3555=_0x38a760();while(!![]){try{const _0x5e28ee=-parseInt(_0xe29c71(0x18e))/0x1*(parseInt(_0xe29c71(0x18f))/0x2)+-parseInt(_0xe29c71(0x18d))/0x3*(parseInt(_0xe29c71(0x18c))/0x4)+parseInt(_0xe29c71(0x186))/0x5+-parseInt(_0xe29c71(0x185))/0x6+-parseInt(_0xe29c71(0x193))/0x7*(-parseInt(_0xe29c71(0x188))/0x8)+-parseInt(_0xe29c71(0x187))/0x9+-parseInt(_0xe29c71(0x18a))/0xa*(-parseInt(_0xe29c71(0x194))/0xb);if(_0x5e28ee===_0x4256f1)break;else _0x8f3555['push'](_0x8f3555['shift']());}catch(_0x2d31ac){_0x8f3555['push'](_0x8f3555['shift']());}}}(a4_0x4916,0xad929));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a4_0x4916(){const _0x43e304=['fetchedAt','2632290wCcZaP','toLowerCase','149468jFBNXh','39UyjyBJ','184pJCQVG','10708DoxVJA','mock','items','trim','29687wNmBfL','99gbWhxc','cache','2171760mRpOVJ','695770IdCrpJ','1091808LgQHrO','296bGYKNh'];a4_0x4916=function(){return _0x43e304;};return a4_0x4916();}export function shouldUseMockRemoteApps(){const _0x59a8e7=a4_0xde21,_0x3a4bff=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x59a8e7(0x192)]()[_0x59a8e7(0x18b)]();return _0x3a4bff===_0x59a8e7(0x190);}function a4_0xde21(_0x42749d,_0x19aa4d){_0x42749d=_0x42749d-0x184;const _0x49165a=a4_0x4916();let _0xde21f4=_0x49165a[_0x42749d];return _0xde21f4;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x594037){const _0x5d12d6=a4_0xde21,{env:_0x13e14b,accessKey:_0x5e483d,localOnly:localOnly=![],noCache:noCache=![]}=_0x594037,_0x548a74=readCachedAppList(_0x13e14b,_0x5e483d),_0x57a991=_0x5e483d?.[_0x5d12d6(0x192)]()?getAppCacheFilePath(_0x13e14b,_0x5e483d):null;if(localOnly)return{'items':_0x548a74?.[_0x5d12d6(0x191)]??[],'source':_0x5d12d6(0x184),'fetchedAt':_0x548a74?.[_0x5d12d6(0x189)]??null,'cachePath':_0x57a991};try{const _0x541249=await getRemoteAppItems(),_0x40ea83=shouldUseMockRemoteApps()?_0x5d12d6(0x190):'remote',_0x36610b=new Date()['toISOString'](),_0x182589=_0x5e483d?.[_0x5d12d6(0x192)]()?writeCachedAppList(_0x13e14b,_0x5e483d,{'env':_0x13e14b,'fetchedAt':_0x36610b,'source':_0x40ea83,'items':_0x541249}):null;return{'items':_0x541249,'source':_0x40ea83,'fetchedAt':_0x36610b,'cachePath':_0x182589};}catch(_0x1d8108){if(!noCache&&_0x548a74)return{'items':_0x548a74[_0x5d12d6(0x191)],'source':_0x5d12d6(0x184),'fetchedAt':_0x548a74[_0x5d12d6(0x189)],'cachePath':_0x57a991};throw _0x1d8108;}}
1
+ (function(_0x2db13b,_0x429d53){const _0x33a893=a4_0xb8c4,_0x3d3f49=_0x2db13b();while(!![]){try{const _0x45be4d=parseInt(_0x33a893(0x1dd))/0x1+-parseInt(_0x33a893(0x1e7))/0x2*(parseInt(_0x33a893(0x1ec))/0x3)+parseInt(_0x33a893(0x1df))/0x4*(parseInt(_0x33a893(0x1db))/0x5)+-parseInt(_0x33a893(0x1de))/0x6*(-parseInt(_0x33a893(0x1ee))/0x7)+-parseInt(_0x33a893(0x1e3))/0x8*(-parseInt(_0x33a893(0x1e9))/0x9)+parseInt(_0x33a893(0x1e8))/0xa*(-parseInt(_0x33a893(0x1e0))/0xb)+-parseInt(_0x33a893(0x1ea))/0xc*(-parseInt(_0x33a893(0x1e2))/0xd);if(_0x45be4d===_0x429d53)break;else _0x3d3f49['push'](_0x3d3f49['shift']());}catch(_0x30c5d0){_0x3d3f49['push'](_0x3d3f49['shift']());}}}(a4_0x3ba7,0xb9871));import{getMyApps}from'../../core/api-client.js';function a4_0x3ba7(){const _0x4985c1=['13iHOXWh','24VtEZPH','items','cache','remote','4jhkDni','31090YLHYiR','2003616XwcWfk','1874004zBpSCY','mock','2014941LiAukO','toLowerCase','5689418vxQVsD','485ipqAdU','fetchedAt','12878LsdZWB','6DcJIzc','22420IKNyiw','319KlcgcS','trim'];a4_0x3ba7=function(){return _0x4985c1;};return a4_0x3ba7();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x4b64f6=a4_0xb8c4,_0x334872=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x4b64f6(0x1e1)]()[_0x4b64f6(0x1ed)]();return _0x334872===_0x4b64f6(0x1eb);}function a4_0xb8c4(_0x4b791b,_0x1b6525){_0x4b791b=_0x4b791b-0x1db;const _0x3ba730=a4_0x3ba7();let _0xb8c42f=_0x3ba730[_0x4b791b];return _0xb8c42f;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x17354f){const _0xd5abc8=a4_0xb8c4,{env:_0x20c4f1,accessKey:_0x59c7c0,localOnly:localOnly=![],noCache:noCache=![]}=_0x17354f,_0x54f540=readCachedAppList(_0x20c4f1,_0x59c7c0),_0x1d6122=_0x59c7c0?.[_0xd5abc8(0x1e1)]()?getAppCacheFilePath(_0x20c4f1,_0x59c7c0):null;if(localOnly)return{'items':_0x54f540?.[_0xd5abc8(0x1e4)]??[],'source':_0xd5abc8(0x1e5),'fetchedAt':_0x54f540?.[_0xd5abc8(0x1dc)]??null,'cachePath':_0x1d6122};try{const _0x1df674=await getRemoteAppItems(),_0x2f93bd=shouldUseMockRemoteApps()?_0xd5abc8(0x1eb):_0xd5abc8(0x1e6),_0x44d796=new Date()['toISOString'](),_0xcb58e2=_0x59c7c0?.[_0xd5abc8(0x1e1)]()?writeCachedAppList(_0x20c4f1,_0x59c7c0,{'env':_0x20c4f1,'fetchedAt':_0x44d796,'source':_0x2f93bd,'items':_0x1df674}):null;return{'items':_0x1df674,'source':_0x2f93bd,'fetchedAt':_0x44d796,'cachePath':_0xcb58e2};}catch(_0x2ea55a){if(!noCache&&_0x54f540)return{'items':_0x54f540[_0xd5abc8(0x1e4)],'source':_0xd5abc8(0x1e5),'fetchedAt':_0x54f540[_0xd5abc8(0x1dc)],'cachePath':_0x1d6122};throw _0x2ea55a;}}
@@ -1 +1 @@
1
- function a5_0x2e54(_0x64a2e0,_0x41f3a6){_0x64a2e0=_0x64a2e0-0xa9;const _0x43777f=a5_0x4377();let _0x2e5495=_0x43777f[_0x64a2e0];return _0x2e5495;}(function(_0x1d6f3e,_0x30260d){const _0x271a4a=a5_0x2e54,_0x237dcc=_0x1d6f3e();while(!![]){try{const _0x19ad39=-parseInt(_0x271a4a(0xae))/0x1*(-parseInt(_0x271a4a(0xb4))/0x2)+-parseInt(_0x271a4a(0xb6))/0x3+-parseInt(_0x271a4a(0xb2))/0x4*(-parseInt(_0x271a4a(0xb3))/0x5)+-parseInt(_0x271a4a(0xb7))/0x6+-parseInt(_0x271a4a(0xb5))/0x7*(-parseInt(_0x271a4a(0xb0))/0x8)+parseInt(_0x271a4a(0xab))/0x9+parseInt(_0x271a4a(0xb9))/0xa*(parseInt(_0x271a4a(0xb8))/0xb);if(_0x19ad39===_0x30260d)break;else _0x237dcc['push'](_0x237dcc['shift']());}catch(_0x4106b9){_0x237dcc['push'](_0x237dcc['shift']());}}}(a5_0x4377,0x82119));function a5_0x4377(){const _0x43ead2=['trim','2154501DwWNcf','isCurrent','appcode','573BPhsOZ','apps','6442664HGDsaf','currentApp','26652HgFEHm','475nBcuLd','102LwWPJb','7aEjjNV','2822157AsewVe','5686404KcmxJS','1964281lbmjhr','40xALdZl','keys','global','defaultApp','name','named'];a5_0x4377=function(){return _0x43ead2;};return a5_0x4377();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x555367,_0x14f51a){const _0x14e611=a5_0x2e54;if(!_0x14f51a)return;const _0x474248=_0x14f51a[_0x14e611(0xaf)]&&typeof _0x14f51a[_0x14e611(0xaf)]==='object'?_0x14f51a[_0x14e611(0xaf)]:{},_0x2be028=!!(_0x14f51a[_0x14e611(0xb1)]??_0x14f51a[_0x14e611(0xbc)]),_0x406925=Object[_0x14e611(0xba)](_0x474248)['length']>0x0||_0x2be028;for(const _0x1c3ec2 of _0x555367){_0x1c3ec2[_0x14e611(0xac)]=![];}const _0x368791=_0x14f51a['appCode']!=null?String(_0x14f51a['appCode'])[_0x14e611(0xaa)]():'';if(_0x406925){const _0x46ca4d=_0x14f51a[_0x14e611(0xb1)]??_0x14f51a[_0x14e611(0xbc)];if(_0x46ca4d)for(const _0x152cea of _0x555367){_0x152cea[_0x14e611(0xa9)]===!![]&&_0x152cea[_0x14e611(0xbd)]===_0x46ca4d&&(_0x152cea[_0x14e611(0xac)]=!![]);}for(const _0x78d875 of _0x555367){if(_0x78d875[_0x14e611(0xa9)]!==![])continue;if(_0x14f51a[_0x14e611(0xbc)])continue;_0x368791&&String(_0x78d875['appcode']??'')[_0x14e611(0xaa)]()===_0x368791&&(_0x78d875[_0x14e611(0xac)]=!![]);}return;}if(!_0x368791)return;for(const _0x31fa55 of _0x555367){String(_0x31fa55[_0x14e611(0xad)]??'')[_0x14e611(0xaa)]()===_0x368791&&(_0x31fa55[_0x14e611(0xac)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x4b1fdb){const _0x4b61dc=a5_0x2e54;return formatScopeLabel(_0x4b1fdb[_0x4b61dc(0xbb)]?'global':'project');}
1
+ (function(_0x5a55f4,_0x43ed3e){const _0x586a64=a5_0x54af,_0x43a6a7=_0x5a55f4();while(!![]){try{const _0x313ada=parseInt(_0x586a64(0x1aa))/0x1+-parseInt(_0x586a64(0x1a7))/0x2*(-parseInt(_0x586a64(0x1a8))/0x3)+parseInt(_0x586a64(0x19f))/0x4+parseInt(_0x586a64(0x19a))/0x5*(parseInt(_0x586a64(0x19c))/0x6)+parseInt(_0x586a64(0x1ab))/0x7+-parseInt(_0x586a64(0x1a6))/0x8*(-parseInt(_0x586a64(0x19b))/0x9)+-parseInt(_0x586a64(0x1a1))/0xa;if(_0x313ada===_0x43ed3e)break;else _0x43a6a7['push'](_0x43a6a7['shift']());}catch(_0xafe537){_0x43a6a7['push'](_0x43a6a7['shift']());}}}(a5_0x3500,0x7ce78));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a5_0x54af(_0x47881e,_0x2c6ee2){_0x47881e=_0x47881e-0x19a;const _0x350036=a5_0x3500();let _0x54afcb=_0x350036[_0x47881e];return _0x54afcb;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4721bd,_0x36800a){const _0x4422c0=a5_0x54af;if(!_0x36800a)return;const _0x3d3176=!!(_0x36800a['currentApp']??_0x36800a[_0x4422c0(0x1ad)]);for(const _0x257670 of _0x4721bd){_0x257670[_0x4422c0(0x1a0)]=![];}const _0x297ea4=_0x36800a['appCode']!=null?String(_0x36800a[_0x4422c0(0x1a2)])[_0x4422c0(0x1a3)]():'';if(_0x3d3176){const _0x37c2fd=_0x36800a[_0x4422c0(0x19e)]??_0x36800a[_0x4422c0(0x1ad)];if(_0x37c2fd)for(const _0x3fbb1e of _0x4721bd){_0x3fbb1e[_0x4422c0(0x1a9)]===!![]&&_0x3fbb1e[_0x4422c0(0x1ac)]===_0x37c2fd&&(_0x3fbb1e['isCurrent']=!![]);}return;}if(!_0x297ea4)return;for(const _0x199085 of _0x4721bd){String(_0x199085[_0x4422c0(0x1a5)]??'')[_0x4422c0(0x1a3)]()===_0x297ea4&&(_0x199085[_0x4422c0(0x1a0)]=!![]);}}function a5_0x3500(){const _0xdc68c8=['defaultApp','150epwKbs','419823jGlXAx','51906CHdQmT','project','currentApp','3400840iSefii','isCurrent','19822090zgCMMj','appCode','trim','global','appcode','88vsnEka','2NPoUEq','862566xruRKs','named','37192mtioKn','3823722hDIhXP','name'];a5_0x3500=function(){return _0xdc68c8;};return a5_0x3500();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x3efbd0){const _0x4a63d5=a5_0x54af;return formatScopeLabel(_0x3efbd0['global']?_0x4a63d5(0x1a4):_0x4a63d5(0x19d));}
@@ -1 +1 @@
1
- function a6_0x4d84(){const _0x59bcdf=['Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','login','695364KEHrDO','\x20auth\x20status','daily','No\x20AccessKey\x20found\x20in\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','project','10221KVIKyB','auth','logout','LOVRABET_ACCESS_KEY\x20env\x20var','env','732gEaAUm','Write\x20to\x20global\x20config\x20(default)','12TeIoCp','1517260RxsdzZ','string','global-default','1861160CrEAOt','slice','production','read','cancelled','validation','push','str','1YjQOhX','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','join','repeat','Shorthand\x20for\x20--access-key','\x20Verify:\x20','write','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','\x20config.','7DbZANN','400829hmHptU','boolean','\x20Current\x20env:\x20','Clear\x20accessKey\x20from\x20config','\x20config','Option\x20A:\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','AccessKey\x20cleared\x20from\x20','AccessKey\x20saved\x20to\x20','access-key','212666FFjaEa','4669479gunFWR','test','development','Invalid\x20accessKey\x20format:\x20\x22','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey:\x20','length','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Show\x20current\x20authentication\x20status','accessKey','Clear\x20from\x20global\x20config\x20(default)','ClientAk','Usage:\x20','trim','8PECiSL','nonInteractive','global','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','status','bool'];a6_0x4d84=function(){return _0x59bcdf;};return a6_0x4d84();}const a6_0x19dce3=a6_0x1181;(function(_0x8bd22e,_0x25219f){const _0x19e231=a6_0x1181,_0x45b0d1=_0x8bd22e();while(!![]){try{const _0x1f668a=parseInt(_0x19e231(0x146))/0x1*(-parseInt(_0x19e231(0x15a))/0x2)+parseInt(_0x19e231(0x133))/0x3*(parseInt(_0x19e231(0x138))/0x4)+-parseInt(_0x19e231(0x13e))/0x5+-parseInt(_0x19e231(0x12d))/0x6*(parseInt(_0x19e231(0x14f))/0x7)+parseInt(_0x19e231(0x124))/0x8*(parseInt(_0x19e231(0x15b))/0x9)+-parseInt(_0x19e231(0x13b))/0xa+parseInt(_0x19e231(0x150))/0xb*(-parseInt(_0x19e231(0x13a))/0xc);if(_0x1f668a===_0x25219f)break;else _0x45b0d1['push'](_0x45b0d1['shift']());}catch(_0x789856){_0x45b0d1['push'](_0x45b0d1['shift']());}}}(a6_0x4d84,0x57d08));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a6_0x1181(_0x463ab9,_0x18c8f6){_0x463ab9=_0x463ab9-0x119;const _0x4d84c4=a6_0x4d84();let _0x1181aa=_0x4d84c4[_0x463ab9];return _0x1181aa;}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function resolveAuthScopeFlags(_0x546187){const _0x264af6=a6_0x1181;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x546187[_0x264af6(0x12a)]('global'),'explicitProject':_0x546187['bool']('project'),'policy':_0x264af6(0x13d)}));}export const authDefinitions=[{'service':'auth','command':a6_0x19dce3(0x12c),'description':a6_0x19dce3(0x128),'risk':a6_0x19dce3(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x19dce3(0x13c),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':'string','description':a6_0x19dce3(0x14a)},{'name':a6_0x19dce3(0x126),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x139),'default':!![]},{'name':a6_0x19dce3(0x132),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x11d),'default':![]}],async 'execute'(_0x45db92){const _0x38ed3c=a6_0x19dce3;let _0x1626d4=(_0x45db92[_0x38ed3c(0x145)](_0x38ed3c(0x159))||_0x45db92[_0x38ed3c(0x145)]('ak')||'')['trim']();const _0x4f1f35=(_0x45db92[_0x38ed3c(0x145)](_0x38ed3c(0x137))||'')[_0x38ed3c(0x123)]();if(!_0x1626d4&&!_0x45db92[_0x38ed3c(0x125)])try{_0x1626d4=await promptAccessKey('');}catch(_0x5de5a2){if(isAbortPrompt(_0x5de5a2))throw CliErrors[_0x38ed3c(0x142)]();throw _0x5de5a2;}if(!_0x1626d4)throw CliErrors[_0x38ed3c(0x143)]('Missing\x20accessKey.',_0x38ed3c(0x122)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]');if(!ACCESS_KEY_PATTERN[_0x38ed3c(0x15c)](_0x1626d4))throw CliErrors[_0x38ed3c(0x143)](_0x38ed3c(0x119)+_0x1626d4+'\x22',_0x38ed3c(0x131));const _0x37919b=resolveAuthScopeFlags(_0x45db92),_0x5abbaa=readScopedConfig(_0x37919b);_0x5abbaa[_0x38ed3c(0x11f)]=_0x1626d4;if(_0x4f1f35){const _0x428798=normalizeEnv(_0x4f1f35);_0x5abbaa[_0x38ed3c(0x137)]=isDaily(_0x428798)?_0x38ed3c(0x12f):isDev(_0x428798)?_0x38ed3c(0x15d):_0x38ed3c(0x140);}writeScopedConfig(_0x5abbaa,_0x37919b);const _0x42c513=_0x37919b[_0x38ed3c(0x126)]?_0x38ed3c(0x126):_0x38ed3c(0x132),_0x405a66=_0x5abbaa[_0x38ed3c(0x137)]?_0x38ed3c(0x152)+_0x5abbaa['env']+'.':'';return{'ok':!![],'message':_0x38ed3c(0x158)+_0x42c513+'\x20config.'+_0x405a66+_0x38ed3c(0x14b)+CLI_BIN_NAME+_0x38ed3c(0x12e)};}},{'service':a6_0x19dce3(0x134),'command':a6_0x19dce3(0x135),'description':a6_0x19dce3(0x153),'risk':a6_0x19dce3(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x19dce3(0x126),'type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x120),'default':!![]},{'name':'project','type':a6_0x19dce3(0x151),'description':a6_0x19dce3(0x12b),'default':![]}],async 'execute'(_0x327405){const _0x208165=a6_0x19dce3,_0x111adb=resolveAuthScopeFlags(_0x327405),_0x16b5f8=readScopedConfig(_0x111adb),_0x14caeb=!!_0x16b5f8[_0x208165(0x11f)];delete _0x16b5f8[_0x208165(0x11f)],writeScopedConfig(_0x16b5f8,_0x111adb);const _0x11b09e=_0x111adb['global']?_0x208165(0x126):_0x208165(0x132);if(_0x14caeb)return{'ok':!![],'message':_0x208165(0x157)+_0x11b09e+_0x208165(0x14e)};return{'ok':!![],'message':_0x208165(0x130)+_0x11b09e+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a6_0x19dce3(0x134),'command':a6_0x19dce3(0x129),'description':a6_0x19dce3(0x11e),'risk':a6_0x19dce3(0x141),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a6_0x19dce3(0x151),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a6_0x19dce3(0x132),'type':'boolean','description':a6_0x19dce3(0x11a),'default':![]}],async 'execute'(_0x5e46e5){const _0x100009=a6_0x19dce3,_0x1816a9=resolveAuthScopeFlags(_0x5e46e5),_0x27645b=readScopedConfig(_0x1816a9),_0x2943e9=process.env.LOVRABET_ACCESS_KEY||undefined,_0x2eb7c9=_0x27645b[_0x100009(0x11f)]||undefined,_0x3006df=_0x2943e9||_0x2eb7c9,_0x30f8a9=_0x2943e9?_0x100009(0x136):_0x2eb7c9?(_0x1816a9['global']?'global':_0x100009(0x132))+_0x100009(0x154):null,_0x2d1ecb=['Auth\x20mode:\x20'+AUTH_MODE[_0x100009(0x121)]];if(_0x3006df){const _0x4bea9c=_0x3006df[_0x100009(0x11c)]>0x8?''+_0x3006df[_0x100009(0x13f)](0x0,0x8)+'*'[_0x100009(0x149)](_0x3006df[_0x100009(0x11c)]-0x8):_0x3006df;_0x2d1ecb[_0x100009(0x144)](_0x100009(0x11b)+_0x4bea9c+(_0x30f8a9?'\x20(via\x20'+_0x30f8a9+')':''));}return!_0x3006df&&(_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x155)+CLI_BIN_NAME+_0x100009(0x127)),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x147)),_0x2d1ecb[_0x100009(0x144)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x2d1ecb['push'](''),_0x2d1ecb[_0x100009(0x144)]('Option\x20C:\x20environment\x20variable'),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x14d)),_0x2d1ecb[_0x100009(0x144)](''),_0x2d1ecb[_0x100009(0x144)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x100009(0x12e)),_0x2d1ecb[_0x100009(0x144)](_0x100009(0x156)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x2d1ecb[_0x100009(0x148)]('\x0a')};}}];
1
+ const a6_0x494e54=a6_0x3c34;function a6_0x3c34(_0x5df519,_0x144f82){_0x5df519=_0x5df519-0x14c;const _0xfd2830=a6_0xfd28();let _0x3c349e=_0xfd2830[_0x5df519];return _0x3c349e;}(function(_0x9e5842,_0xc9d2c7){const _0x2daada=a6_0x3c34,_0x171f10=_0x9e5842();while(!![]){try{const _0x2f3a91=-parseInt(_0x2daada(0x154))/0x1*(-parseInt(_0x2daada(0x170))/0x2)+-parseInt(_0x2daada(0x150))/0x3*(parseInt(_0x2daada(0x157))/0x4)+-parseInt(_0x2daada(0x182))/0x5*(parseInt(_0x2daada(0x155))/0x6)+parseInt(_0x2daada(0x16c))/0x7+-parseInt(_0x2daada(0x16d))/0x8*(parseInt(_0x2daada(0x181))/0x9)+parseInt(_0x2daada(0x179))/0xa+parseInt(_0x2daada(0x159))/0xb*(parseInt(_0x2daada(0x171))/0xc);if(_0x2f3a91===_0xc9d2c7)break;else _0x171f10['push'](_0x171f10['shift']());}catch(_0x5c1346){_0x171f10['push'](_0x171f10['shift']());}}}(a6_0xfd28,0x91e97));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a6_0xfd28(){const _0x29e8a2=['global-default','Show\x20current\x20authentication\x20status','\x20Verify:\x20','trim','AccessKey:\x20','AccessKey\x20cleared\x20from\x20','6263250CCfEut','cancelled','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','auth','push','project','AccessKey\x20saved\x20to\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','1210527KjrXbI','88285ypjmcc','str','Clear\x20from\x20global\x20config\x20(default)','\x20auth\x20status','boolean','env','accessKey','\x20config.\x20Nothing\x20to\x20clear.','\x20(via\x20','\x20config','join','Usage:\x20','Option\x20A:\x20','nonInteractive','logout','production','ClientAk','\x20config.','read','3bwohCG','validation','status','length','333IJfahM','54xuFBUU','Read\x20from\x20global\x20config\x20(default)','3772532BcvtbU','Clear\x20accessKey\x20from\x20config','22qaKlFF','test','global','Then\x20verify\x20with:\x20','LOVRABET_ACCESS_KEY\x20env\x20var','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','Write\x20to\x20global\x20config\x20(default)','access-key','bool','development','repeat','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','slice','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','string','login','Missing\x20accessKey.','2125459gsWmnE','56qfNnhV','daily','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','2188UhazVp','8081748FDbbCX','\x20doctor'];a6_0xfd28=function(){return _0x29e8a2;};return a6_0xfd28();}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function resolveAuthScopeFlags(_0x533f70){const _0x47721f=a6_0x3c34;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x533f70['bool'](_0x47721f(0x15b)),'explicitProject':_0x533f70[_0x47721f(0x161)]('project'),'policy':_0x47721f(0x173)}));}export const authDefinitions=[{'service':a6_0x494e54(0x17c),'command':a6_0x494e54(0x16a),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a6_0x494e54(0x169),'description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':a6_0x494e54(0x186),'description':a6_0x494e54(0x15f),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x167),'default':![]}],async 'execute'(_0x3cf6b0){const _0x4f6e59=a6_0x494e54;let _0x3ac53e=(_0x3cf6b0['str'](_0x4f6e59(0x160))||_0x3cf6b0[_0x4f6e59(0x183)]('ak')||'')[_0x4f6e59(0x176)]();const _0x39ce53=(_0x3cf6b0[_0x4f6e59(0x183)](_0x4f6e59(0x187))||'')['trim']();if(!_0x3ac53e&&!_0x3cf6b0[_0x4f6e59(0x18f)])try{_0x3ac53e=await promptAccessKey('');}catch(_0x436a5b){if(isAbortPrompt(_0x436a5b))throw CliErrors[_0x4f6e59(0x17a)]();throw _0x436a5b;}if(!_0x3ac53e)throw CliErrors[_0x4f6e59(0x151)](_0x4f6e59(0x16b),_0x4f6e59(0x18d)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]');if(!ACCESS_KEY_PATTERN[_0x4f6e59(0x15a)](_0x3ac53e))throw CliErrors[_0x4f6e59(0x151)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x3ac53e+'\x22',_0x4f6e59(0x16f));const _0x501c5e=resolveAuthScopeFlags(_0x3cf6b0),_0xb5c8b0=readScopedConfig(_0x501c5e);_0xb5c8b0[_0x4f6e59(0x188)]=_0x3ac53e;if(_0x39ce53){const _0x415568=normalizeEnv(_0x39ce53);_0xb5c8b0[_0x4f6e59(0x187)]=isDaily(_0x415568)?_0x4f6e59(0x16e):isDev(_0x415568)?_0x4f6e59(0x162):_0x4f6e59(0x14c);}writeScopedConfig(_0xb5c8b0,_0x501c5e);const _0x1e5941=_0x501c5e[_0x4f6e59(0x15b)]?'global':_0x4f6e59(0x17e),_0x2c3e9a=_0xb5c8b0[_0x4f6e59(0x187)]?'\x20Current\x20env:\x20'+_0xb5c8b0['env']+'.':'';return{'ok':!![],'message':_0x4f6e59(0x17f)+_0x1e5941+_0x4f6e59(0x14e)+_0x2c3e9a+_0x4f6e59(0x175)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x494e54(0x17c),'command':a6_0x494e54(0x190),'description':a6_0x494e54(0x158),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x494e54(0x15b),'type':'boolean','description':a6_0x494e54(0x184),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5e46f5){const _0x4d43c9=a6_0x494e54,_0x1c0fb3=resolveAuthScopeFlags(_0x5e46f5),_0x5dbe74=readScopedConfig(_0x1c0fb3),_0x3c2e1f=!!_0x5dbe74[_0x4d43c9(0x188)];delete _0x5dbe74[_0x4d43c9(0x188)],writeScopedConfig(_0x5dbe74,_0x1c0fb3);const _0x4bb717=_0x1c0fb3[_0x4d43c9(0x15b)]?_0x4d43c9(0x15b):_0x4d43c9(0x17e);if(_0x3c2e1f)return{'ok':!![],'message':_0x4d43c9(0x178)+_0x4bb717+_0x4d43c9(0x14e)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x4bb717+_0x4d43c9(0x189)};}},{'service':'auth','command':a6_0x494e54(0x152),'description':a6_0x494e54(0x174),'risk':a6_0x494e54(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x494e54(0x15b),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x156),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x180),'default':![]}],async 'execute'(_0x4743ca){const _0x29b29b=a6_0x494e54,_0x26e3e0=resolveAuthScopeFlags(_0x4743ca),_0x276b1d=readScopedConfig(_0x26e3e0),_0x2bc59e=process.env.LOVRABET_ACCESS_KEY||undefined,_0x453f34=_0x276b1d['accessKey']||undefined,_0x5048ad=_0x2bc59e||_0x453f34,_0x152867=_0x2bc59e?_0x29b29b(0x15d):_0x453f34?(_0x26e3e0[_0x29b29b(0x15b)]?_0x29b29b(0x15b):_0x29b29b(0x17e))+_0x29b29b(0x18b):null,_0x59dbab=['Auth\x20mode:\x20'+AUTH_MODE[_0x29b29b(0x14d)]];if(_0x5048ad){const _0x5e4982=_0x5048ad[_0x29b29b(0x153)]>0x8?''+_0x5048ad[_0x29b29b(0x166)](0x0,0x8)+'*'[_0x29b29b(0x163)](_0x5048ad[_0x29b29b(0x153)]-0x8):_0x5048ad;_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x177)+_0x5e4982+(_0x152867?_0x29b29b(0x18a)+_0x152867+')':''));}return!_0x5048ad&&(_0x59dbab['push'](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x17b)),_0x59dbab['push'](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x18e)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x15e)),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x165)),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)]('Option\x20C:\x20environment\x20variable'),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x168)),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x15c)+CLI_BIN_NAME+_0x29b29b(0x185)),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x164)+CLI_BIN_NAME+_0x29b29b(0x172))),{'ok':!![],'message':_0x59dbab[_0x29b29b(0x18c)]('\x0a')};}}];
@@ -1 +1 @@
1
- (function(_0x5d51a2,_0x18a6a5){const _0x3a0495=a7_0x33b2,_0xb6c55e=_0x5d51a2();while(!![]){try{const _0x49e3a9=parseInt(_0x3a0495(0x17a))/0x1*(parseInt(_0x3a0495(0x171))/0x2)+-parseInt(_0x3a0495(0x177))/0x3*(-parseInt(_0x3a0495(0x170))/0x4)+-parseInt(_0x3a0495(0x17d))/0x5+parseInt(_0x3a0495(0x181))/0x6+parseInt(_0x3a0495(0x16f))/0x7+-parseInt(_0x3a0495(0x178))/0x8*(-parseInt(_0x3a0495(0x173))/0x9)+parseInt(_0x3a0495(0x17b))/0xa*(-parseInt(_0x3a0495(0x17f))/0xb);if(_0x49e3a9===_0x18a6a5)break;else _0xb6c55e['push'](_0xb6c55e['shift']());}catch(_0x4b21ba){_0xb6c55e['push'](_0xb6c55e['shift']());}}}(a7_0x2d4e,0x93f83));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x121ba4=a7_0x33b2;super('User\x20aborted\x20prompt'),this[_0x121ba4(0x179)]='AbortPrompt';}}function a7_0x2d4e(){const _0x294bb2=['16753561MfwGyd','question','6042078owutkJ','):\x20','3360343lRRMxa','4468smZple','459202jJaVpz','SIGINT','22653qbbvMw','\x20\x20AccessKey:\x20','stdout','stdin','1131NsPdIC','536noGalE','name','2QXPGQs','10IoVHZu','\x20\x20AccessKey\x20(','2034390hPYvBS','trim'];a7_0x2d4e=function(){return _0x294bb2;};return a7_0x2d4e();}function a7_0x33b2(_0x400cda,_0x5054cc){_0x400cda=_0x400cda-0x16e;const _0x2d4e7d=a7_0x2d4e();let _0x33b269=_0x2d4e7d[_0x400cda];return _0x33b269;}function createSafeRl(){const _0x536620=a7_0x33b2,_0x5bd16e=createInterface({'input':process[_0x536620(0x176)],'output':process[_0x536620(0x175)]});let _0x4727db;const _0x2e0454=new Promise((_0x461d51,_0x4f0a6c)=>{const _0x2e2ae6=_0x536620;_0x4727db=()=>{const _0x3dd08a=a7_0x33b2;_0x4727db&&(_0x5bd16e['removeListener'](_0x3dd08a(0x172),_0x4727db),_0x4727db=undefined);try{_0x5bd16e['close']();}catch{}_0x4f0a6c(new AbortPrompt());},_0x5bd16e['once'](_0x2e2ae6(0x172),_0x4727db);}),_0x470323=()=>{const _0xe57713=_0x536620;_0x4727db&&(_0x5bd16e['removeListener'](_0xe57713(0x172),_0x4727db),_0x4727db=undefined);try{_0x5bd16e['close']();}catch{}};return{'rl':_0x5bd16e,'abortPromise':_0x2e0454,'disposeSuccess':_0x470323};}export async function promptAccessKey(_0x4cf5ca=''){const {rl:_0x21839e,abortPromise:_0x8a47f1,disposeSuccess:_0x54dd1d}=createSafeRl(),_0x57624d=new Promise(_0x334a8e=>{const _0x5a4ea6=a7_0x33b2,_0x19942e=_0x4cf5ca?_0x5a4ea6(0x17c)+_0x4cf5ca+_0x5a4ea6(0x16e):_0x5a4ea6(0x174);_0x21839e[_0x5a4ea6(0x180)](_0x19942e,_0x1526c1=>{const _0x163a2c=_0x5a4ea6;_0x54dd1d(),_0x334a8e(_0x1526c1[_0x163a2c(0x17e)]()||_0x4cf5ca);});});return Promise['race']([_0x57624d,_0x8a47f1]);}export function isAbortPrompt(_0x3da4f1){return _0x3da4f1 instanceof Error&&_0x3da4f1['name']==='AbortPrompt';}
1
+ function a7_0x3c04(){const _0x5f358b=['User\x20aborted\x20prompt','race','name','692919pfoveu','stdout','124726ZRpcDy','173752zlEACr','):\x20','2546380ETWDLa','trim','5912784oPdgpZ','close','removeListener','question','180gsWCLh','150OwPZCP','once','2361396xmSefD','27747hadpFX','SIGINT','77qwvGnz','stdin'];a7_0x3c04=function(){return _0x5f358b;};return a7_0x3c04();}(function(_0x200122,_0xf68ee3){const _0x8deb5e=a7_0x482d,_0x3f8761=_0x200122();while(!![]){try{const _0x59dced=-parseInt(_0x8deb5e(0x90))/0x1+parseInt(_0x8deb5e(0x83))/0x2*(-parseInt(_0x8deb5e(0x87))/0x3)+parseInt(_0x8deb5e(0x86))/0x4+parseInt(_0x8deb5e(0x93))/0x5+-parseInt(_0x8deb5e(0x7f))/0x6+-parseInt(_0x8deb5e(0x89))/0x7*(-parseInt(_0x8deb5e(0x91))/0x8)+-parseInt(_0x8deb5e(0x8e))/0x9*(-parseInt(_0x8deb5e(0x84))/0xa);if(_0x59dced===_0xf68ee3)break;else _0x3f8761['push'](_0x3f8761['shift']());}catch(_0x491f40){_0x3f8761['push'](_0x3f8761['shift']());}}}(a7_0x3c04,0x8678f));import{createInterface}from'node:readline';function a7_0x482d(_0xb4d3df,_0x2ccd7b){_0xb4d3df=_0xb4d3df-0x7e;const _0x3c0464=a7_0x3c04();let _0x482d00=_0x3c0464[_0xb4d3df];return _0x482d00;}class AbortPrompt extends Error{constructor(){const _0x29e67a=a7_0x482d;super(_0x29e67a(0x8b)),this[_0x29e67a(0x8d)]='AbortPrompt';}}function createSafeRl(){const _0x66bd0b=a7_0x482d,_0x5e1069=createInterface({'input':process[_0x66bd0b(0x8a)],'output':process[_0x66bd0b(0x8f)]});let _0x3df3d5;const _0x1e2875=new Promise((_0x222bd7,_0x12ca92)=>{const _0xe692c2=_0x66bd0b;_0x3df3d5=()=>{const _0x4d492f=a7_0x482d;_0x3df3d5&&(_0x5e1069[_0x4d492f(0x81)]('SIGINT',_0x3df3d5),_0x3df3d5=undefined);try{_0x5e1069[_0x4d492f(0x80)]();}catch{}_0x12ca92(new AbortPrompt());},_0x5e1069[_0xe692c2(0x85)](_0xe692c2(0x88),_0x3df3d5);}),_0x2f28d0=()=>{const _0x5833e2=_0x66bd0b;_0x3df3d5&&(_0x5e1069[_0x5833e2(0x81)](_0x5833e2(0x88),_0x3df3d5),_0x3df3d5=undefined);try{_0x5e1069[_0x5833e2(0x80)]();}catch{}};return{'rl':_0x5e1069,'abortPromise':_0x1e2875,'disposeSuccess':_0x2f28d0};}export async function promptAccessKey(_0x38a8d1=''){const _0x218ce2=a7_0x482d,{rl:_0x556fbb,abortPromise:_0x5d53ae,disposeSuccess:_0x30ad02}=createSafeRl(),_0x177e38=new Promise(_0x230f6c=>{const _0x57f695=a7_0x482d,_0xa60577=_0x38a8d1?'\x20\x20AccessKey\x20('+_0x38a8d1+_0x57f695(0x92):'\x20\x20AccessKey:\x20';_0x556fbb[_0x57f695(0x82)](_0xa60577,_0x44d417=>{const _0x1209ab=_0x57f695;_0x30ad02(),_0x230f6c(_0x44d417[_0x1209ab(0x7e)]()||_0x38a8d1);});});return Promise[_0x218ce2(0x8c)]([_0x177e38,_0x5d53ae]);}export function isAbortPrompt(_0x6bd77a){const _0x5719ec=a7_0x482d;return _0x6bd77a instanceof Error&&_0x6bd77a[_0x5719ec(0x8d)]==='AbortPrompt';}
@@ -1 +1 @@
1
- const a8_0xe3a7b2=a8_0x143e;(function(_0x49cbfa,_0x1e6634){const _0x35b9d0=a8_0x143e,_0x16609f=_0x49cbfa();while(!![]){try{const _0x119d2d=parseInt(_0x35b9d0(0x1bc))/0x1*(-parseInt(_0x35b9d0(0x1c4))/0x2)+parseInt(_0x35b9d0(0x1bf))/0x3*(parseInt(_0x35b9d0(0x1b7))/0x4)+parseInt(_0x35b9d0(0x1c3))/0x5+-parseInt(_0x35b9d0(0x1c8))/0x6+-parseInt(_0x35b9d0(0x1ba))/0x7*(-parseInt(_0x35b9d0(0x1b9))/0x8)+parseInt(_0x35b9d0(0x1bb))/0x9*(parseInt(_0x35b9d0(0x1c6))/0xa)+parseInt(_0x35b9d0(0x1c7))/0xb;if(_0x119d2d===_0x1e6634)break;else _0x16609f['push'](_0x16609f['shift']());}catch(_0x2540f2){_0x16609f['push'](_0x16609f['shift']());}}}(a8_0x3602,0x873fb));function a8_0x3602(){const _0x5985c3=['776707caeuOQ','num','functionName','284166oLomzQ','description','updatedTime','Script\x20ID','1561430utRPlp','2pjJDCw','verbose','1142520qSgnNJ','1810116GSltCN','2592558UwObcn','read','(none)','20mXbiIH','bff','200tdQoRj','195461DOGYgM','9vNiOzX'];a8_0x3602=function(){return _0x5985c3;};return a8_0x3602();}function a8_0x143e(_0x5eee34,_0x4f5f7a){_0x5eee34=_0x5eee34-0x1b6;const _0x3602f2=a8_0x3602();let _0x143ef5=_0x3602f2[_0x5eee34];return _0x143ef5;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0xe3a7b2(0x1b8),'command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0xe3a7b2(0x1c9),'flags':[{...ID_FLAG,'description':a8_0xe3a7b2(0x1c2)},VERBOSE_FLAG],async 'execute'(_0x182392){const _0x2377e8=a8_0xe3a7b2,_0x1295e6=await getBffScriptInfo(_0x182392[_0x2377e8(0x1bd)]('id')),_0xed216=_0x182392['bool'](_0x2377e8(0x1c5));if(_0xed216)return{'ok':!![],'data':_0x1295e6};return{'ok':!![],'data':{'id':_0x1295e6['id'],'appCode':_0x1295e6['appCode'],'functionName':_0x1295e6[_0x2377e8(0x1be)]??'','scriptType':_0x1295e6['scriptType'],'description':_0x1295e6[_0x2377e8(0x1c0)]||_0x2377e8(0x1b6),'createdTime':_0x1295e6['createdTime']??'','updatedTime':_0x1295e6[_0x2377e8(0x1c1)]??''}};}};
1
+ const a8_0x38249d=a8_0x23d3;function a8_0x401d(){const _0x493102=['39528660xnNeyd','appCode','scriptType','description','311512JPBQNH','4028706rbNvEk','24333WNRTzR','4593800ecjMOE','read','createdTime','functionName','7332030ZKVOVn','bool','(none)','2xwFcwB','273lpSrKm','344QlAudZ','8984gYuetB','Script\x20ID','num'];a8_0x401d=function(){return _0x493102;};return a8_0x401d();}(function(_0x10398f,_0x56d067){const _0x138066=a8_0x23d3,_0x4f10b2=_0x10398f();while(!![]){try{const _0x4ae34e=-parseInt(_0x138066(0x90))/0x1*(parseInt(_0x138066(0x86))/0x2)+-parseInt(_0x138066(0x88))/0x3*(parseInt(_0x138066(0x92))/0x4)+-parseInt(_0x138066(0x89))/0x5+-parseInt(_0x138066(0x87))/0x6+-parseInt(_0x138066(0x91))/0x7*(parseInt(_0x138066(0x93))/0x8)+-parseInt(_0x138066(0x8d))/0x9+parseInt(_0x138066(0x96))/0xa;if(_0x4ae34e===_0x56d067)break;else _0x4f10b2['push'](_0x4f10b2['shift']());}catch(_0x383457){_0x4f10b2['push'](_0x4f10b2['shift']());}}}(a8_0x401d,0x78e1a));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x23d3(_0x719b56,_0x3149f8){_0x719b56=_0x719b56-0x83;const _0x401dba=a8_0x401d();let _0x23d3ab=_0x401dba[_0x719b56];return _0x23d3ab;}export const bffDetail={'service':'bff','command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0x38249d(0x8a),'flags':[{...ID_FLAG,'description':a8_0x38249d(0x94)},VERBOSE_FLAG],async 'execute'(_0x563c6a){const _0x337597=a8_0x38249d,_0x5dfdcb=await getBffScriptInfo(_0x563c6a[_0x337597(0x95)]('id')),_0x16c317=_0x563c6a[_0x337597(0x8e)]('verbose');if(_0x16c317)return{'ok':!![],'data':_0x5dfdcb};return{'ok':!![],'data':{'id':_0x5dfdcb['id'],'appCode':_0x5dfdcb[_0x337597(0x83)],'functionName':_0x5dfdcb[_0x337597(0x8c)]??'','scriptType':_0x5dfdcb[_0x337597(0x84)],'description':_0x5dfdcb[_0x337597(0x85)]||_0x337597(0x8f),'createdTime':_0x5dfdcb[_0x337597(0x8b)]??'','updatedTime':_0x5dfdcb['updatedTime']??''}};}};
@@ -1 +1 @@
1
- const a9_0x1ca6fa=a9_0x1e64;function a9_0x562f(){const _0x11440b=['3592230UvzRRL','exec','3aoJHxa','str','BFF\x20executed\x20in\x20','BFF\x20function\x20name\x20to\x20execute','2929458NtwNLx','1193895sGfUzx','882188pfnQpg','286336LPJIau','1912488kiWVAh','name','36tVRDun','read','147221rxUBxD','2plPHMF','now'];a9_0x562f=function(){return _0x11440b;};return a9_0x562f();}function a9_0x1e64(_0x21022c,_0x8786d6){_0x21022c=_0x21022c-0x10e;const _0x562f3d=a9_0x562f();let _0x1e6469=_0x562f3d[_0x21022c];return _0x1e6469;}(function(_0x2e6f0e,_0x2dfba8){const _0x4cfa08=a9_0x1e64,_0x1360c8=_0x2e6f0e();while(!![]){try{const _0x339914=-parseInt(_0x4cfa08(0x10e))/0x1*(-parseInt(_0x4cfa08(0x10f))/0x2)+parseInt(_0x4cfa08(0x113))/0x3*(parseInt(_0x4cfa08(0x119))/0x4)+-parseInt(_0x4cfa08(0x118))/0x5+parseInt(_0x4cfa08(0x11b))/0x6+-parseInt(_0x4cfa08(0x117))/0x7+parseInt(_0x4cfa08(0x11a))/0x8*(-parseInt(_0x4cfa08(0x11d))/0x9)+parseInt(_0x4cfa08(0x111))/0xa;if(_0x339914===_0x2dfba8)break;else _0x1360c8['push'](_0x1360c8['shift']());}catch(_0x256036){_0x1360c8['push'](_0x1360c8['shift']());}}}(a9_0x562f,0x3be32));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':'bff','command':a9_0x1ca6fa(0x112),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x1ca6fa(0x11e),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x1ca6fa(0x116)},PARAMS_FLAG],async 'execute'(_0x5d2342){const _0x5939b9=a9_0x1ca6fa,_0x230667=parseJsonParams(_0x5d2342['str']('params')),_0x53777e=Date['now'](),_0x365954=await executeSdkBff(_0x5d2342[_0x5939b9(0x114)](_0x5939b9(0x11c)),_0x230667),_0x19f7cb=Date[_0x5939b9(0x110)]()-_0x53777e;return{'ok':!![],'data':{'result':_0x365954,'elapsed':_0x19f7cb},'message':_0x5939b9(0x115)+_0x19f7cb+'ms'};}};
1
+ const a9_0x560a11=a9_0x1a58;function a9_0x442d(){const _0x319f66=['2443zKWNPg','name','15006cpCwfJ','read','params','now','bff','890juZkeL','3490xZtjtR','BFF\x20executed\x20in\x20','str','1384629PglNuh','48258LJSaMZ','2760988yTRAIB','23UrfXge','1450730Xdpspi','161120WmeFsT'];a9_0x442d=function(){return _0x319f66;};return a9_0x442d();}(function(_0x591e70,_0x486dcb){const _0x230f48=a9_0x1a58,_0x44e29e=_0x591e70();while(!![]){try{const _0x1e4213=-parseInt(_0x230f48(0x132))/0x1*(-parseInt(_0x230f48(0x12c))/0x2)+parseInt(_0x230f48(0x12f))/0x3+-parseInt(_0x230f48(0x131))/0x4+parseInt(_0x230f48(0x133))/0x5+parseInt(_0x230f48(0x137))/0x6*(parseInt(_0x230f48(0x135))/0x7)+parseInt(_0x230f48(0x134))/0x8+-parseInt(_0x230f48(0x130))/0x9*(parseInt(_0x230f48(0x12b))/0xa);if(_0x1e4213===_0x486dcb)break;else _0x44e29e['push'](_0x44e29e['shift']());}catch(_0x1c864c){_0x44e29e['push'](_0x44e29e['shift']());}}}(a9_0x442d,0x7e4e4));function a9_0x1a58(_0xe11e95,_0x1b5fe7){_0xe11e95=_0xe11e95-0x12a;const _0x442d99=a9_0x442d();let _0x1a582a=_0x442d99[_0xe11e95];return _0x1a582a;}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_0x560a11(0x12a),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x560a11(0x138),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x443295){const _0x54de4a=a9_0x560a11,_0x963333=parseJsonParams(_0x443295[_0x54de4a(0x12e)](_0x54de4a(0x139))),_0x2d9b7d=Date[_0x54de4a(0x13a)](),_0x53b11f=await executeSdkBff(_0x443295[_0x54de4a(0x12e)](_0x54de4a(0x136)),_0x963333),_0x799d62=Date[_0x54de4a(0x13a)]()-_0x2d9b7d;return{'ok':!![],'data':{'result':_0x53b11f,'elapsed':_0x799d62},'message':_0x54de4a(0x12d)+_0x799d62+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3ecd10,_0x17f423){const _0x3fe1be=a10_0x152f,_0x2008ca=_0x3ecd10();while(!![]){try{const _0x21ff66=-parseInt(_0x3fe1be(0x180))/0x1+-parseInt(_0x3fe1be(0x184))/0x2+-parseInt(_0x3fe1be(0x181))/0x3+parseInt(_0x3fe1be(0x182))/0x4+-parseInt(_0x3fe1be(0x186))/0x5+-parseInt(_0x3fe1be(0x185))/0x6*(-parseInt(_0x3fe1be(0x17f))/0x7)+parseInt(_0x3fe1be(0x183))/0x8;if(_0x21ff66===_0x17f423)break;else _0x2008ca['push'](_0x2008ca['shift']());}catch(_0x30750b){_0x2008ca['push'](_0x2008ca['shift']());}}}(a10_0x58ca,0x4507b));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x152f(_0x8fbd53,_0xfd00a4){_0x8fbd53=_0x8fbd53-0x17f;const _0x58ca6e=a10_0x58ca();let _0x152f9c=_0x58ca6e[_0x8fbd53];return _0x152f9c;}import{bffExec}from'../../commands/bff/exec.js';function a10_0x58ca(){const _0x25f359=['120372PCKMmg','63456FwOMKA','1190508jmsRBj','1874940lhUWrr','122808iIEljH','283518cWLIBT','156EsDHZw','231920ogzMTs'];a10_0x58ca=function(){return _0x25f359;};return a10_0x58ca();}export const bffDefinitions=[bffDetail,bffExec];
1
+ function a10_0x36b4(_0x4b17c5,_0x4d67a4){_0x4b17c5=_0x4b17c5-0xf4;const _0x5cc03f=a10_0x5cc0();let _0x36b4b4=_0x5cc03f[_0x4b17c5];return _0x36b4b4;}(function(_0x1ebaed,_0x502b03){const _0x2b2e80=a10_0x36b4,_0x263792=_0x1ebaed();while(!![]){try{const _0x4d37a5=-parseInt(_0x2b2e80(0xf8))/0x1+-parseInt(_0x2b2e80(0xf9))/0x2*(-parseInt(_0x2b2e80(0xff))/0x3)+-parseInt(_0x2b2e80(0xf6))/0x4*(-parseInt(_0x2b2e80(0xfb))/0x5)+-parseInt(_0x2b2e80(0xfd))/0x6*(-parseInt(_0x2b2e80(0xf5))/0x7)+-parseInt(_0x2b2e80(0xfe))/0x8*(-parseInt(_0x2b2e80(0xfc))/0x9)+-parseInt(_0x2b2e80(0xf4))/0xa+-parseInt(_0x2b2e80(0xfa))/0xb*(-parseInt(_0x2b2e80(0xf7))/0xc);if(_0x4d37a5===_0x502b03)break;else _0x263792['push'](_0x263792['shift']());}catch(_0x58358f){_0x263792['push'](_0x263792['shift']());}}}(a10_0x5cc0,0x31e42));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a10_0x5cc0(){const _0x1dca30=['45208zYfBEF','21wDkZpW','3608940qNwCUg','56eEEIRE','2092iklKyj','235884tArFYU','270687bYIjTG','37218Jjrabh','11dCobJv','2685sQxZql','612DOwDrN','15672HokzZQ'];a10_0x5cc0=function(){return _0x1dca30;};return a10_0x5cc0();}
@@ -1 +1 @@
1
- (function(_0x29800b,_0x17313f){const _0x499c3c=a11_0x5174,_0x5aea33=_0x29800b();while(!![]){try{const _0x3a0017=-parseInt(_0x499c3c(0x77))/0x1+parseInt(_0x499c3c(0x7c))/0x2+-parseInt(_0x499c3c(0x79))/0x3+-parseInt(_0x499c3c(0x81))/0x4+parseInt(_0x499c3c(0x82))/0x5*(parseInt(_0x499c3c(0x84))/0x6)+-parseInt(_0x499c3c(0x7b))/0x7+parseInt(_0x499c3c(0x80))/0x8*(parseInt(_0x499c3c(0x83))/0x9);if(_0x3a0017===_0x17313f)break;else _0x5aea33['push'](_0x5aea33['shift']());}catch(_0x4b903e){_0x5aea33['push'](_0x5aea33['shift']());}}}(a11_0x4362,0xc05ad));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{APP_PROFILE_FLAG_KEY_MAP,APP_PROFILE_CONFIG_KEYS,buildAppDoctorFields,buildAppProfileListFields,collectAppProfileOverrides,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getAppProfileConfigKeyList,getAppProfileConfigKeySummary,getAppProfileFlagDefs,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isAppProfileConfigKey,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a11_0x4362(){const _0x44089a=['project-or-global-explicit','global','383538OVtURC','validation','4233726hczqXs','project-default','7616315lesZWT','763174JAfMLm','inProject','\x20init`\x20first.','Use\x20only\x20one\x20config\x20scope\x20flag.','91592WyiUZY','1347856OmOhrS','6450LOVxqX','2097YGDmgK','4458FSsvUQ','project','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).'];a11_0x4362=function(){return _0x44089a;};return a11_0x4362();}export function resolveConfigScope(_0x17ea6e){const _0x344948=a11_0x5174,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x171eda}=_0x17ea6e;if(explicitGlobal&&explicitProject)throw CliErrors[_0x344948(0x78)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x344948(0x7f));if(explicitGlobal)return _0x344948(0x76);if(explicitProject)return'project';switch(_0x171eda){case'global-default':return _0x344948(0x76);case _0x344948(0x7a):return _0x17ea6e[_0x344948(0x7d)]??isInProject()?_0x344948(0x85):'global';case _0x344948(0x75):if(!(_0x17ea6e[_0x344948(0x7d)]??isInProject()))throw CliErrors['validation'](_0x344948(0x74),_0x344948(0x86)+CLI_BIN_NAME+_0x344948(0x7e));return _0x344948(0x85);}}export function toScopeFlags(_0x32d052){return{'global':_0x32d052==='global'};}function a11_0x5174(_0x3e73ce,_0x4933a6){_0x3e73ce=_0x3e73ce-0x74;const _0x4362a5=a11_0x4362();let _0x517428=_0x4362a5[_0x3e73ce];return _0x517428;}export function formatScopeLabel(_0x41d76b){return _0x41d76b==='global'?'\x20(global)':'';}
1
+ (function(_0x2e5dbc,_0x1c981c){const _0x3fb282=a11_0x1b92,_0x43a5ca=_0x2e5dbc();while(!![]){try{const _0x3042de=-parseInt(_0x3fb282(0xfa))/0x1*(parseInt(_0x3fb282(0xfb))/0x2)+parseInt(_0x3fb282(0xff))/0x3*(parseInt(_0x3fb282(0x10c))/0x4)+-parseInt(_0x3fb282(0x10e))/0x5*(-parseInt(_0x3fb282(0x100))/0x6)+-parseInt(_0x3fb282(0x10b))/0x7*(-parseInt(_0x3fb282(0x10d))/0x8)+parseInt(_0x3fb282(0x104))/0x9+parseInt(_0x3fb282(0x105))/0xa+-parseInt(_0x3fb282(0x10a))/0xb;if(_0x3042de===_0x1c981c)break;else _0x43a5ca['push'](_0x43a5ca['shift']());}catch(_0x9693bd){_0x43a5ca['push'](_0x43a5ca['shift']());}}}(a11_0x5b8d,0x42b3f));import{CLI_BIN_NAME}from'../../constant/cli.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';function a11_0x1b92(_0x28ae68,_0x19a741){_0x28ae68=_0x28ae68-0xf8;const _0x5b8dd5=a11_0x5b8d();let _0x1b9285=_0x5b8dd5[_0x28ae68];return _0x1b9285;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a11_0x5b8d(){const _0x308418=['\x20init`\x20first.','Use\x20only\x20one\x20config\x20scope\x20flag.','1895796dnSIyi','5201640TbLIoR','project','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','10158027cShVgh','7wUmRTw','477912RTOxKa','454544LezhQm','23350GPphCv','project-default','inProject','694ZonLSL','508WQpjwx','validation','\x20(global)','project-or-global-explicit','12cjSwBA','138ztebtk','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'];a11_0x5b8d=function(){return _0x308418;};return a11_0x5b8d();}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(_0x219bce){const _0x12ce44=a11_0x1b92,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x6adf1a}=_0x219bce;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x12ce44(0x108),_0x12ce44(0x103));if(explicitGlobal)return _0x12ce44(0x109);if(explicitProject)return _0x12ce44(0x106);switch(_0x6adf1a){case'global-default':return'global';case _0x12ce44(0xf8):return _0x219bce[_0x12ce44(0xf9)]??isInProject()?_0x12ce44(0x106):_0x12ce44(0x109);case _0x12ce44(0xfe):if(!(_0x219bce[_0x12ce44(0xf9)]??isInProject()))throw CliErrors[_0x12ce44(0xfc)](_0x12ce44(0x107),_0x12ce44(0x101)+CLI_BIN_NAME+_0x12ce44(0x102));return _0x12ce44(0x106);}}export function toScopeFlags(_0x36cda8){return{'global':_0x36cda8==='global'};}export function formatScopeLabel(_0x83f6d6){const _0x1ae87d=a11_0x1b92;return _0x83f6d6===_0x1ae87d(0x109)?_0x1ae87d(0xfd):'';}
@@ -1 +1 @@
1
- (function(_0x3fa11f,_0xfc83b9){const _0x2e0e3b=a12_0x4a5e,_0x2440b7=_0x3fa11f();while(!![]){try{const _0x55b62c=parseInt(_0x2e0e3b(0x18c))/0x1+-parseInt(_0x2e0e3b(0x188))/0x2+parseInt(_0x2e0e3b(0x17f))/0x3*(parseInt(_0x2e0e3b(0x183))/0x4)+parseInt(_0x2e0e3b(0x17b))/0x5+parseInt(_0x2e0e3b(0x17e))/0x6*(-parseInt(_0x2e0e3b(0x182))/0x7)+parseInt(_0x2e0e3b(0x187))/0x8+parseInt(_0x2e0e3b(0x18f))/0x9;if(_0x55b62c===_0xfc83b9)break;else _0x2440b7['push'](_0x2440b7['shift']());}catch(_0x2660d7){_0x2440b7['push'](_0x2440b7['shift']());}}}(a12_0x59b4,0x66bfa));import{CliErrors}from'../../errors.js';function isSet(_0x48d78c,_0x23cc6e){const _0x5db041=_0x48d78c['flag'](_0x23cc6e);return _0x5db041!==undefined&&_0x5db041!==''&&_0x5db041!==![]&&_0x5db041!==0x0;}function fmtNames(_0x156c8d){const _0x1d4f4b=a12_0x4a5e;return _0x156c8d[_0x1d4f4b(0x181)](_0x3d06c0=>'--'+_0x3d06c0)[_0x1d4f4b(0x17d)](',\x20');}export function requireOneOf(_0x5607da,_0x4c97af,_0x5e72e9){const _0x314db8=a12_0x4a5e,_0xe2f7fb=_0x4c97af[_0x314db8(0x184)](_0x320e91=>isSet(_0x5607da,_0x320e91));if(_0xe2f7fb[_0x314db8(0x18d)]!==0x1)throw CliErrors[_0x314db8(0x176)](_0xe2f7fb[_0x314db8(0x18d)]===0x0?_0x314db8(0x175)+fmtNames(_0x4c97af)+'\x20is\x20required\x20for\x20`'+_0x5e72e9+'`.':_0x314db8(0x17c)+fmtNames(_0x4c97af)+_0x314db8(0x190)+fmtNames(_0xe2f7fb)+'.',_0xe2f7fb[_0x314db8(0x18d)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x4c97af):_0x314db8(0x189));}export function requireAnyOf(_0x430a4f,_0x185c9e,_0x53c64e){const _0x53bc92=a12_0x4a5e;if(!_0x185c9e[_0x53bc92(0x180)](_0x39d9f3=>isSet(_0x430a4f,_0x39d9f3)))throw CliErrors['validation'](_0x53bc92(0x17a)+fmtNames(_0x185c9e)+_0x53bc92(0x178)+_0x53c64e+'`.',_0x53bc92(0x18e)+fmtNames(_0x185c9e));}export function mutuallyExclusive(_0x1549e0,_0x4d3423,_0x490f1c){const _0x38a5ee=a12_0x4a5e,_0x45aae7=_0x4d3423[_0x38a5ee(0x184)](_0x243ac8=>isSet(_0x1549e0,_0x243ac8));if(_0x45aae7[_0x38a5ee(0x18d)]>0x1)throw CliErrors[_0x38a5ee(0x176)]('Flags\x20'+fmtNames(_0x45aae7)+_0x38a5ee(0x185)+_0x490f1c+'`.',_0x38a5ee(0x18a)+fmtNames(_0x4d3423));}function a12_0x4a5e(_0xca1120,_0x2ebab2){_0xca1120=_0xca1120-0x175;const _0x59b4ad=a12_0x59b4();let _0x4a5e2d=_0x59b4ad[_0xca1120];return _0x4a5e2d;}export function validatePattern(_0x41f791,_0x1a861e,_0x210c62,_0x5baee9){const _0x11658c=a12_0x4a5e,_0x3dfa2c=_0x41f791[_0x11658c(0x179)](_0x1a861e);if(_0x3dfa2c&&!_0x210c62[_0x11658c(0x177)](_0x3dfa2c))throw CliErrors[_0x11658c(0x176)](_0x11658c(0x186)+_0x1a861e+':\x20expected\x20'+_0x5baee9+_0x11658c(0x18b)+_0x3dfa2c+'\x22.');}function a12_0x59b4(){const _0x28fa61=['length','Provide\x20one\x20of:\x20','6495957zUIfjW','\x20is\x20allowed,\x20found:\x20','Exactly\x20one\x20of\x20','validation','test','\x20is\x20required\x20for\x20`','str','At\x20least\x20one\x20of\x20','1604615biGDhp','Only\x20one\x20of\x20','join','3438258KkpsCK','33YUaMbU','some','map','7QjIXtV','45556DviHKO','filter','\x20are\x20mutually\x20exclusive\x20for\x20`','Invalid\x20--','2396040myOKPS','1533578ENnHUo','Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20',',\x20got\x20\x22','293210JGOSTE'];a12_0x59b4=function(){return _0x28fa61;};return a12_0x59b4();}
1
+ (function(_0x4974c6,_0x409797){const _0xbd5a16=a12_0x4853,_0x29aab7=_0x4974c6();while(!![]){try{const _0x307b9b=parseInt(_0xbd5a16(0x1ce))/0x1*(parseInt(_0xbd5a16(0x1d6))/0x2)+parseInt(_0xbd5a16(0x1dd))/0x3*(parseInt(_0xbd5a16(0x1e5))/0x4)+-parseInt(_0xbd5a16(0x1db))/0x5+-parseInt(_0xbd5a16(0x1da))/0x6+-parseInt(_0xbd5a16(0x1e6))/0x7*(parseInt(_0xbd5a16(0x1d3))/0x8)+parseInt(_0xbd5a16(0x1cf))/0x9+-parseInt(_0xbd5a16(0x1dc))/0xa*(-parseInt(_0xbd5a16(0x1d0))/0xb);if(_0x307b9b===_0x409797)break;else _0x29aab7['push'](_0x29aab7['shift']());}catch(_0x5a46c1){_0x29aab7['push'](_0x29aab7['shift']());}}}(a12_0x5b78,0x4b2d1));function a12_0x5b78(){const _0x212406=['some','Provide\x20one\x20of:\x20','flag','str','Only\x20one\x20of\x20',':\x20expected\x20','validation','20yJqLHH','643237qxLAtb','At\x20least\x20one\x20of\x20','filter','\x20is\x20required\x20for\x20`','map','1TDqFvQ','81720efqjmT','77HsIhTw','\x20is\x20allowed,\x20found:\x20','test','32sThdcA','Invalid\x20--','\x20are\x20mutually\x20exclusive\x20for\x20`','735242NNQqsP','length',',\x20got\x20\x22','Exactly\x20one\x20of\x20','1216404evZsUf','340275vOfPkU','346840qscGhX','196071pwShcL'];a12_0x5b78=function(){return _0x212406;};return a12_0x5b78();}import{CliErrors}from'../../errors.js';function isSet(_0x5d7d5a,_0x16b79d){const _0x2da6db=a12_0x4853,_0x2d7b2c=_0x5d7d5a[_0x2da6db(0x1e0)](_0x16b79d);return _0x2d7b2c!==undefined&&_0x2d7b2c!==''&&_0x2d7b2c!==![]&&_0x2d7b2c!==0x0;}function a12_0x4853(_0x383da1,_0x482309){_0x383da1=_0x383da1-0x1cc;const _0x5b783c=a12_0x5b78();let _0x4853ea=_0x5b783c[_0x383da1];return _0x4853ea;}function fmtNames(_0x365e69){const _0x30f113=a12_0x4853;return _0x365e69[_0x30f113(0x1cd)](_0x27083a=>'--'+_0x27083a)['join'](',\x20');}export function requireOneOf(_0x2343a3,_0x4a6c99,_0x1a3eaa){const _0xae5af7=a12_0x4853,_0xb31e67=_0x4a6c99[_0xae5af7(0x1e8)](_0x5dc4ca=>isSet(_0x2343a3,_0x5dc4ca));if(_0xb31e67[_0xae5af7(0x1d7)]!==0x1)throw CliErrors[_0xae5af7(0x1e4)](_0xb31e67[_0xae5af7(0x1d7)]===0x0?_0xae5af7(0x1d9)+fmtNames(_0x4a6c99)+_0xae5af7(0x1cc)+_0x1a3eaa+'`.':_0xae5af7(0x1e2)+fmtNames(_0x4a6c99)+_0xae5af7(0x1d1)+fmtNames(_0xb31e67)+'.',_0xb31e67['length']===0x0?_0xae5af7(0x1df)+fmtNames(_0x4a6c99):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x1b169f,_0x4fdddc,_0x3e0888){const _0x3af4b1=a12_0x4853;if(!_0x4fdddc[_0x3af4b1(0x1de)](_0x4276a4=>isSet(_0x1b169f,_0x4276a4)))throw CliErrors[_0x3af4b1(0x1e4)](_0x3af4b1(0x1e7)+fmtNames(_0x4fdddc)+_0x3af4b1(0x1cc)+_0x3e0888+'`.',_0x3af4b1(0x1df)+fmtNames(_0x4fdddc));}export function mutuallyExclusive(_0x7d8d84,_0x31e0bd,_0x60e6dc){const _0x1da691=a12_0x4853,_0x494c52=_0x31e0bd[_0x1da691(0x1e8)](_0x51ddf5=>isSet(_0x7d8d84,_0x51ddf5));if(_0x494c52[_0x1da691(0x1d7)]>0x1)throw CliErrors[_0x1da691(0x1e4)]('Flags\x20'+fmtNames(_0x494c52)+_0x1da691(0x1d5)+_0x60e6dc+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x31e0bd));}export function validatePattern(_0x565a0d,_0x1c664e,_0x37767b,_0x278ffa){const _0x57d60b=a12_0x4853,_0xeddd7=_0x565a0d[_0x57d60b(0x1e1)](_0x1c664e);if(_0xeddd7&&!_0x37767b[_0x57d60b(0x1d2)](_0xeddd7))throw CliErrors[_0x57d60b(0x1e4)](_0x57d60b(0x1d4)+_0x1c664e+_0x57d60b(0x1e3)+_0x278ffa+_0x57d60b(0x1d8)+_0xeddd7+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x1ea999=a13_0x36df;(function(_0x5dbc39,_0x52e124){const _0xcd6304=a13_0x36df,_0x572407=_0x5dbc39();while(!![]){try{const _0x43cc42=-parseInt(_0xcd6304(0x181))/0x1+parseInt(_0xcd6304(0x174))/0x2*(parseInt(_0xcd6304(0x17b))/0x3)+parseInt(_0xcd6304(0x177))/0x4*(parseInt(_0xcd6304(0x183))/0x5)+-parseInt(_0xcd6304(0x171))/0x6*(parseInt(_0xcd6304(0x16e))/0x7)+parseInt(_0xcd6304(0x17e))/0x8*(parseInt(_0xcd6304(0x178))/0x9)+parseInt(_0xcd6304(0x182))/0xa+parseInt(_0xcd6304(0x17d))/0xb*(parseInt(_0xcd6304(0x179))/0xc);if(_0x43cc42===_0x52e124)break;else _0x572407['push'](_0x572407['shift']());}catch(_0x3cf556){_0x572407['push'](_0x572407['shift']());}}}(a13_0x37d8,0xb5a03));function a13_0x36df(_0x16a732,_0x39a1d8){_0x16a732=_0x16a732-0x16e;const _0x37d8b3=a13_0x37d8();let _0x36df9d=_0x37d8b3[_0x16a732];return _0x36df9d;}export const CODE_FLAG={'name':a13_0x1ea999(0x180),'type':a13_0x1ea999(0x170),'required':!![],'description':a13_0x1ea999(0x17a),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x1ea999(0x176)}};export const SQLCODE_FLAG={'name':a13_0x1ea999(0x172),'type':a13_0x1ea999(0x170),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x1ea999(0x175)}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0x1ea999(0x17c),'description':a13_0x1ea999(0x173)};export const PARAMS_FLAG={'name':a13_0x1ea999(0x185),'type':a13_0x1ea999(0x170),'description':a13_0x1ea999(0x186)};export const NAME_FLAG={'name':a13_0x1ea999(0x16f),'type':a13_0x1ea999(0x170),'description':a13_0x1ea999(0x184)};function a13_0x37d8(){const _0x2c36e8=['Resource\x20ID','code','384623uSyvCD','7634450ltWlcK','230iPGrFf','Resource\x20name\x20for\x20lookup','params','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','12229qQifNg','name','string','3786pGvDkQ','sqlcode','Return\x20full\x20raw\x20response\x20object','4rayYGz','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','19644vBdDWr','9olEYRT','8676FxYxYR','Dataset\x20code\x20(32-char\x20hex\x20UUID)','732957ftCqWC','boolean','77VztTGP','5982952XnTAIZ'];a13_0x37d8=function(){return _0x2c36e8;};return a13_0x37d8();}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a13_0x1ea999(0x17f)};
1
+ function a13_0x4fd8(){const _0x3e55bd=['number','3PsbQpx','693qpugYF','4968007kZrAFh','string','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','3343302TzjTXH','1002Eayqtb','Resource\x20name\x20for\x20lookup','boolean','59810qTltml','sqlcode','Resource\x20ID','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1740152ArFkRB','params','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Return\x20full\x20raw\x20response\x20object','1265168hJleCx','Dataset\x20code\x20(32-char\x20hex\x20UUID)','20QfporT','24771ggreaI','10AxDsle','code'];a13_0x4fd8=function(){return _0x3e55bd;};return a13_0x4fd8();}function a13_0x2ecd(_0x3cc250,_0x1f08e2){_0x3cc250=_0x3cc250-0xc0;const _0x4fd85f=a13_0x4fd8();let _0x2ecde5=_0x4fd85f[_0x3cc250];return _0x2ecde5;}const a13_0x17a922=a13_0x2ecd;(function(_0x2fedac,_0xae13b9){const _0xfc7b15=a13_0x2ecd,_0x3d9c58=_0x2fedac();while(!![]){try{const _0x1c7798=-parseInt(_0xfc7b15(0xcf))/0x1*(-parseInt(_0xfc7b15(0xce))/0x2)+parseInt(_0xfc7b15(0xd3))/0x3*(-parseInt(_0xfc7b15(0xcc))/0x4)+-parseInt(_0xfc7b15(0xc4))/0x5+-parseInt(_0xfc7b15(0xc1))/0x6*(-parseInt(_0xfc7b15(0xd4))/0x7)+parseInt(_0xfc7b15(0xc8))/0x8+parseInt(_0xfc7b15(0xc0))/0x9*(-parseInt(_0xfc7b15(0xd0))/0xa)+parseInt(_0xfc7b15(0xd5))/0xb;if(_0x1c7798===_0xae13b9)break;else _0x3d9c58['push'](_0x3d9c58['shift']());}catch(_0x5193ae){_0x3d9c58['push'](_0x3d9c58['shift']());}}}(a13_0x4fd8,0x390c3));export const CODE_FLAG={'name':a13_0x17a922(0xd1),'type':a13_0x17a922(0xd6),'required':!![],'description':a13_0x17a922(0xcd),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x17a922(0xd7)}};export const SQLCODE_FLAG={'name':a13_0x17a922(0xc5),'type':a13_0x17a922(0xd6),'required':!![],'description':a13_0x17a922(0xca),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0x17a922(0xc3),'description':a13_0x17a922(0xcb)};export const PARAMS_FLAG={'name':a13_0x17a922(0xc9),'type':a13_0x17a922(0xd6),'description':a13_0x17a922(0xc7)};export const NAME_FLAG={'name':'name','type':a13_0x17a922(0xd6),'description':a13_0x17a922(0xc2)};export const ID_FLAG={'name':'id','type':a13_0x17a922(0xd2),'required':!![],'description':a13_0x17a922(0xc6)};
@@ -1 +1 @@
1
- function a14_0x1a1a(_0x507b41,_0x357a26){_0x507b41=_0x507b41-0x185;const _0x2db3e0=a14_0x2db3();let _0x1a1aa1=_0x2db3e0[_0x507b41];return _0x1a1aa1;}const a14_0x12c9aa=a14_0x1a1a;(function(_0x1f73c1,_0x50facd){const _0x34fb53=a14_0x1a1a,_0x5aa555=_0x1f73c1();while(!![]){try{const _0x184bab=-parseInt(_0x34fb53(0x1a2))/0x1*(parseInt(_0x34fb53(0x1c4))/0x2)+-parseInt(_0x34fb53(0x1c0))/0x3*(-parseInt(_0x34fb53(0x195))/0x4)+parseInt(_0x34fb53(0x1bf))/0x5+parseInt(_0x34fb53(0x1b7))/0x6*(parseInt(_0x34fb53(0x19a))/0x7)+parseInt(_0x34fb53(0x1a7))/0x8+-parseInt(_0x34fb53(0x19c))/0x9*(parseInt(_0x34fb53(0x1a1))/0xa)+-parseInt(_0x34fb53(0x1b2))/0xb;if(_0x184bab===_0x50facd)break;else _0x5aa555['push'](_0x5aa555['shift']());}catch(_0x4b894c){_0x5aa555['push'](_0x5aa555['shift']());}}}(a14_0x2db3,0x405fc));function a14_0x2db3(){const _0x370b71=['Key\x20\x22','2089539CxGXUE','get','`\x20=\x20\x22','App\x20\x22','Available\x20for\x20--app:\x20','20MWqpiu','1HhGEEh','\x20app\x20add`.','Value\x20to\x20assign','key','str','2781056yrdvWw','list','riskLevel','pretty','\x22\x20not\x20found\x20on\x20app\x20\x22','Deleted\x20`','Operate\x20within\x20a\x20specific\x20app\x20profile','Config\x20files:\x0a','raw','\x22\x20not\x20found.','apps','491832vlIibJ','args','Usage:\x20','Config\x20key\x20(supports\x20dot\x20notation:\x20apps.myapp.env)','config','132WRDvkz','Missing\x20key\x20argument.','Missing\x20key\x20or\x20value.','Get\x20a\x20config\x20value','boolean','`\x20from\x20app\x20\x22','string','Settable\x20top-level\x20keys:\x20','239930mntMcV','324VzeBls','\x20(global)','\x22\x20is\x20not\x20settable.','\x20config\x20get\x20<key>','144532FqyHny','pageSize','(none)','\x22.\x20Allowed:\x20','includes','Set\x20`','stringify','\x22\x20not\x20found\x20at\x20top\x20level.','log','Add\x20it\x20first\x20with\x20`','\x22\x20on\x20app\x20profile.','Top-level\x20key\x20\x22','Key\x20not\x20found:\x20','List\x20current\x20config','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','write','join','bool','read','Set\x20a\x20config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','app','validation','format','split','\x20\x20project:\x20','value','Invalid\x20value\x20for\x20\x22','9932XPtoYk','Delete\x20a\x20config\x20value','object','global','\x22\x20not\x20found\x20in\x20config.','57659WHArXf'];a14_0x2db3=function(){return _0x370b71;};return a14_0x2db3();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getAppProfileConfigKeySummary,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isAppProfileConfigKey,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a14_0x12c9aa(0x198),'type':a14_0x12c9aa(0x1bb),'description':'Write\x20to\x20global\x20config','default':![]},APP_FLAG={'name':a14_0x12c9aa(0x18e),'type':a14_0x12c9aa(0x1bd),'description':a14_0x12c9aa(0x1ad)},listDef={'service':a14_0x12c9aa(0x1b6),'command':a14_0x12c9aa(0x1a8),'description':a14_0x12c9aa(0x185),'risk':a14_0x12c9aa(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1692eb){const _0x2829dd=a14_0x12c9aa,{buildConfigFromFlags:_0x57d456}=await import(_0x2829dd(0x187)),_0x14ade2=_0x57d456({}),_0x58238d=getProjectConfigPath(),_0x62f0a0=resolveWriteConfigPath(_0x2829dd(0x198));if(_0x1692eb[_0x2829dd(0x190)]===_0x2829dd(0x1aa))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x14ade2[_0x2829dd(0x1af)],null,0x2)+'\x0a\x0a')+_0x2829dd(0x1ae)+(_0x2829dd(0x192)+(_0x58238d??_0x2829dd(0x1c6))+'\x0a')+('\x20\x20global:\x20\x20'+_0x62f0a0)};return{'ok':!![],'data':{'effective':_0x14ade2[_0x2829dd(0x1af)],'configFiles':{'project':_0x58238d??null,'global':_0x62f0a0}}};}},getDef={'service':a14_0x12c9aa(0x1b6),'command':a14_0x12c9aa(0x19d),'description':a14_0x12c9aa(0x1ba),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x12c9aa(0x1a5),'description':a14_0x12c9aa(0x1b5),'required':!![]}],'flags':[],async 'execute'(_0x40a8aa){const _0x2e1749=a14_0x12c9aa,_0x6b87a7=_0x40a8aa[_0x2e1749(0x1b3)][0x0];if(!_0x6b87a7)throw CliErrors['validation'](_0x2e1749(0x1b8),_0x2e1749(0x1b4)+CLI_BIN_NAME+_0x2e1749(0x1c3));const {buildConfigFromFlags:_0x5dd8a0}=await import(_0x2e1749(0x187)),{raw:_0x10435e}=_0x5dd8a0({});if(_0x6b87a7[_0x2e1749(0x1c8)]('.')){const _0x3408e3=_0x6b87a7[_0x2e1749(0x191)]('.');let _0x8fecb3=_0x10435e;for(const _0x3f979b of _0x3408e3){if(_0x8fecb3==null||typeof _0x8fecb3!==_0x2e1749(0x197))throw CliErrors['validation'](_0x2e1749(0x1d0)+_0x6b87a7);_0x8fecb3=_0x8fecb3[_0x3f979b];}if(_0x8fecb3===undefined)throw CliErrors[_0x2e1749(0x18f)](_0x2e1749(0x1d0)+_0x6b87a7);return console[_0x2e1749(0x1cc)](typeof _0x8fecb3===_0x2e1749(0x197)?JSON[_0x2e1749(0x1ca)](_0x8fecb3,null,0x2):String(_0x8fecb3)),{'ok':!![]};}const _0x3ac08b=_0x10435e[_0x6b87a7];if(_0x3ac08b===undefined)throw CliErrors['validation'](_0x2e1749(0x1d0)+_0x6b87a7);return console['log'](typeof _0x3ac08b==='object'?JSON[_0x2e1749(0x1ca)](_0x3ac08b,null,0x2):String(_0x3ac08b)),{'ok':!![]};}},setDef={'service':a14_0x12c9aa(0x1b6),'command':'set','description':a14_0x12c9aa(0x18c),'risk':a14_0x12c9aa(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x12c9aa(0x1a5),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x12c9aa(0x193),'description':a14_0x12c9aa(0x1a4),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0x11a63b){const _0x9b8c53=a14_0x12c9aa,_0x1e6522=_0x11a63b[_0x9b8c53(0x1b3)][0x0],_0x2223d5=_0x11a63b[_0x9b8c53(0x1b3)][0x1];if(!_0x1e6522||_0x2223d5===undefined)throw CliErrors['validation'](_0x9b8c53(0x1b9),_0x9b8c53(0x1b4)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--app\x20<name>]\x20[--global]');if(ENUM_KEYS[_0x1e6522]&&!ENUM_KEYS[_0x1e6522][_0x9b8c53(0x1c8)](_0x2223d5))throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x194)+_0x1e6522+_0x9b8c53(0x1c7)+ENUM_KEYS[_0x1e6522][_0x9b8c53(0x189)](',\x20'));if(_0x1e6522===_0x9b8c53(0x1a9))throw CliErrors['validation'](_0x9b8c53(0x18d));if(_0x1e6522===_0x9b8c53(0x1c5)){const _0x4e2022=Number(_0x2223d5);if(isNaN(_0x4e2022)||_0x4e2022<=0x0)throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x186));}const _0x4d81ed=resolveWriteScope({'explicitGlobal':_0x11a63b[_0x9b8c53(0x18a)](_0x9b8c53(0x198)),'policy':'project-or-global-explicit'}),_0x2e55b2=toScopeFlags(_0x4d81ed),_0x5b1b2d=readScopedConfig(_0x2e55b2),_0x542bb6=_0x11a63b['str'](_0x9b8c53(0x18e));if(_0x542bb6){if(!_0x5b1b2d[_0x9b8c53(0x1b1)])_0x5b1b2d[_0x9b8c53(0x1b1)]={};if(!_0x5b1b2d[_0x9b8c53(0x1b1)][_0x542bb6])throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x19f)+_0x542bb6+_0x9b8c53(0x199),_0x9b8c53(0x1cd)+CLI_BIN_NAME+_0x9b8c53(0x1a3));if(!isAppProfileConfigKey(_0x1e6522))throw CliErrors[_0x9b8c53(0x18f)]('Cannot\x20set\x20\x22'+_0x1e6522+_0x9b8c53(0x1ce),_0x9b8c53(0x1a0)+getAppProfileConfigKeySummary());_0x5b1b2d[_0x9b8c53(0x1b1)][_0x542bb6][_0x1e6522]=_0x1e6522===_0x9b8c53(0x1c5)?Number(_0x2223d5):_0x2223d5,console['log'](_0x9b8c53(0x1c9)+_0x1e6522+_0x9b8c53(0x19e)+_0x2223d5+'\x22\x20on\x20app\x20\x22'+_0x542bb6+'\x22'+(_0x4d81ed===_0x9b8c53(0x198)?_0x9b8c53(0x1c1):''));}else{if(!isTopLevelConfigKey(_0x1e6522))throw CliErrors[_0x9b8c53(0x18f)](_0x9b8c53(0x1cf)+_0x1e6522+_0x9b8c53(0x1c2),_0x9b8c53(0x1be)+getTopLevelConfigKeySummary());_0x5b1b2d[_0x1e6522]=_0x1e6522===_0x9b8c53(0x1c5)?Number(_0x2223d5):_0x2223d5,console[_0x9b8c53(0x1cc)](_0x9b8c53(0x1c9)+_0x1e6522+_0x9b8c53(0x19e)+_0x2223d5+'\x22'+(_0x4d81ed==='global'?_0x9b8c53(0x1c1):''));}return writeScopedConfig(_0x5b1b2d,_0x2e55b2),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a14_0x12c9aa(0x196),'risk':a14_0x12c9aa(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0x5639ad){const _0x5d3f86=a14_0x12c9aa,_0xf8116c=_0x5639ad[_0x5d3f86(0x1b3)][0x0];if(!_0xf8116c)throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x1b8),_0x5d3f86(0x1b4)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--app\x20<name>]\x20[--global]');const _0x599eef=resolveWriteScope({'explicitGlobal':_0x5639ad[_0x5d3f86(0x18a)]('global'),'policy':'project-or-global-explicit'}),_0x977dfa=toScopeFlags(_0x599eef),_0x45a141=readScopedConfig(_0x977dfa),_0x5e2f5a=_0x5639ad[_0x5d3f86(0x1a6)](_0x5d3f86(0x18e));if(_0x5e2f5a){if(!_0x45a141[_0x5d3f86(0x1b1)]?.[_0x5e2f5a])throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x19f)+_0x5e2f5a+_0x5d3f86(0x1b0));if(_0x45a141['apps'][_0x5e2f5a][_0xf8116c]===undefined)throw CliErrors[_0x5d3f86(0x18f)](_0x5d3f86(0x19b)+_0xf8116c+_0x5d3f86(0x1ab)+_0x5e2f5a+'\x22.');delete _0x45a141[_0x5d3f86(0x1b1)][_0x5e2f5a][_0xf8116c],console[_0x5d3f86(0x1cc)](_0x5d3f86(0x1ac)+_0xf8116c+_0x5d3f86(0x1bc)+_0x5e2f5a+'\x22'+(_0x599eef==='global'?'\x20(global)':''));}else{if(_0x45a141[_0xf8116c]===undefined)throw CliErrors['validation'](_0x5d3f86(0x19b)+_0xf8116c+_0x5d3f86(0x1cb));delete _0x45a141[_0xf8116c],console['log'](_0x5d3f86(0x1ac)+_0xf8116c+'`'+(_0x599eef===_0x5d3f86(0x198)?_0x5d3f86(0x1c1):''));}return writeScopedConfig(_0x45a141,_0x977dfa),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a14_0x2d6b(_0x50524a,_0x3de2f3){_0x50524a=_0x50524a-0xe3;const _0x1bb4e4=a14_0x1bb4();let _0x2d6b9f=_0x1bb4e4[_0x50524a];return _0x2d6b9f;}const a14_0x21d685=a14_0x2d6b;(function(_0x46244b,_0x3b4b78){const _0x231213=a14_0x2d6b,_0x1c1684=_0x46244b();while(!![]){try{const _0x547da7=parseInt(_0x231213(0x119))/0x1+-parseInt(_0x231213(0xf1))/0x2*(parseInt(_0x231213(0xfd))/0x3)+parseInt(_0x231213(0x104))/0x4*(parseInt(_0x231213(0x106))/0x5)+-parseInt(_0x231213(0x11c))/0x6*(-parseInt(_0x231213(0xed))/0x7)+-parseInt(_0x231213(0x101))/0x8+-parseInt(_0x231213(0xf2))/0x9+-parseInt(_0x231213(0x100))/0xa*(parseInt(_0x231213(0x111))/0xb);if(_0x547da7===_0x3b4b78)break;else _0x1c1684['push'](_0x1c1684['shift']());}catch(_0x4b4f66){_0x1c1684['push'](_0x1c1684['shift']());}}}(a14_0x1bb4,0x698fc));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_0x21d685(0x10e),'type':a14_0x21d685(0xe6),'description':a14_0x21d685(0xe4),'default':![]},listDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0x112),'description':'List\x20current\x20config','risk':a14_0x21d685(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1f2280){const _0x107475=a14_0x21d685,{buildConfigFromFlags:_0x2a4e5b}=await import(_0x107475(0x10d)),_0x13620f=_0x2a4e5b({}),_0x3daa39=getProjectConfigPath(),_0x580c11=resolveWriteConfigPath(_0x107475(0x10e));if(_0x1f2280[_0x107475(0x109)]===_0x107475(0xe5))return{'ok':!![],'message':_0x107475(0xef)+(JSON[_0x107475(0xe3)](_0x13620f[_0x107475(0xfc)],null,0x2)+'\x0a\x0a')+_0x107475(0x10a)+(_0x107475(0x115)+(_0x3daa39??_0x107475(0xfb))+'\x0a')+(_0x107475(0xea)+_0x580c11)};return{'ok':!![],'data':{'effective':_0x13620f[_0x107475(0xfc)],'configFiles':{'project':_0x3daa39??null,'global':_0x580c11}}};}},getDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0x10f),'description':a14_0x21d685(0x116),'risk':a14_0x21d685(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x2a90a2){const _0x1414c0=a14_0x21d685,_0x421f3e=_0x2a90a2[_0x1414c0(0x11a)][0x0];if(!_0x421f3e)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x1414c0(0x105)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x2a18ae}=await import('../../context.js'),{raw:_0x4a1346}=_0x2a18ae({});if(_0x421f3e[_0x1414c0(0xf4)]('.')){const _0x86ba1b=_0x421f3e[_0x1414c0(0x102)]('.');let _0x468b92=_0x4a1346;for(const _0x66a2ea of _0x86ba1b){if(_0x468b92==null||typeof _0x468b92!=='object')throw CliErrors[_0x1414c0(0xe9)](_0x1414c0(0xfa)+_0x421f3e);_0x468b92=_0x468b92[_0x66a2ea];}if(_0x468b92===undefined)throw CliErrors[_0x1414c0(0xe9)]('Key\x20not\x20found:\x20'+_0x421f3e);return console[_0x1414c0(0xf3)](typeof _0x468b92==='object'?JSON[_0x1414c0(0xe3)](_0x468b92,null,0x2):String(_0x468b92)),{'ok':!![]};}const _0x42ba67=_0x4a1346[_0x421f3e];if(_0x42ba67===undefined)throw CliErrors[_0x1414c0(0xe9)](_0x1414c0(0xfa)+_0x421f3e);return console[_0x1414c0(0xf3)](typeof _0x42ba67===_0x1414c0(0x10b)?JSON[_0x1414c0(0xe3)](_0x42ba67,null,0x2):String(_0x42ba67)),{'ok':!![]};}},setDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0xf6),'description':'Set\x20a\x20config\x20value','risk':a14_0x21d685(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x21d685(0xf0),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x21d685(0x118),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x174612){const _0x2e940b=a14_0x21d685,_0x4f005d=_0x174612['args'][0x0],_0x60d1fc=_0x174612[_0x2e940b(0x11a)][0x1];if(!_0x4f005d||_0x60d1fc===undefined)throw CliErrors[_0x2e940b(0xe9)]('Missing\x20key\x20or\x20value.',_0x2e940b(0x105)+CLI_BIN_NAME+_0x2e940b(0xff));if(ENUM_KEYS[_0x4f005d]&&!ENUM_KEYS[_0x4f005d][_0x2e940b(0xf4)](_0x60d1fc))throw CliErrors['validation'](_0x2e940b(0x10c)+_0x4f005d+_0x2e940b(0xe8)+ENUM_KEYS[_0x4f005d][_0x2e940b(0xec)](',\x20'));if(_0x4f005d===_0x2e940b(0xee))throw CliErrors[_0x2e940b(0xe9)](_0x2e940b(0xfe));if(_0x4f005d===_0x2e940b(0x114)){const _0x4b1381=Number(_0x60d1fc);if(isNaN(_0x4b1381)||_0x4b1381<=0x0)throw CliErrors['validation'](_0x2e940b(0x107));}const _0x1830c1=resolveWriteScope({'explicitGlobal':_0x174612[_0x2e940b(0x117)](_0x2e940b(0x10e)),'policy':_0x2e940b(0x113)}),_0x263407=toScopeFlags(_0x1830c1),_0xa995c=readScopedConfig(_0x263407);if(!isTopLevelConfigKey(_0x4f005d))throw CliErrors['validation'](_0x2e940b(0xf5)+_0x4f005d+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());return _0xa995c[_0x4f005d]=_0x4f005d==='pageSize'?Number(_0x60d1fc):_0x60d1fc,console[_0x2e940b(0xf3)]('Set\x20`'+_0x4f005d+_0x2e940b(0xf8)+_0x60d1fc+'\x22'+(_0x1830c1===_0x2e940b(0x10e)?_0x2e940b(0x103):'')),writeScopedConfig(_0xa995c,_0x263407),{'ok':!![]};}},deleteDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0xf9),'description':a14_0x21d685(0xe7),'risk':a14_0x21d685(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x21d685(0xf0),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4bfcce){const _0x2f51ef=a14_0x21d685,_0x548760=_0x4bfcce[_0x2f51ef(0x11a)][0x0];if(!_0x548760)throw CliErrors[_0x2f51ef(0xe9)](_0x2f51ef(0xeb),_0x2f51ef(0x105)+CLI_BIN_NAME+_0x2f51ef(0x108));const _0x36a166=resolveWriteScope({'explicitGlobal':_0x4bfcce[_0x2f51ef(0x117)](_0x2f51ef(0x10e)),'policy':_0x2f51ef(0x113)}),_0x5e6298=toScopeFlags(_0x36a166),_0xca2f51=readScopedConfig(_0x5e6298);if(_0xca2f51[_0x548760]===undefined)throw CliErrors[_0x2f51ef(0xe9)]('Key\x20\x22'+_0x548760+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xca2f51[_0x548760],console[_0x2f51ef(0xf3)]('Deleted\x20`'+_0x548760+'`'+(_0x36a166==='global'?'\x20(global)':'')),writeScopedConfig(_0xca2f51,_0x5e6298),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a14_0x1bb4(){const _0x285d14=['list','project-or-global-explicit','pageSize','\x20\x20project:\x20','Get\x20a\x20config\x20value','bool','value','566848anTpxU','args','config','714846ApLPOI','stringify','Write\x20to\x20global\x20config','pretty','boolean','Delete\x20a\x20config\x20value','\x22.\x20Allowed:\x20','validation','\x20\x20global:\x20\x20','Missing\x20key\x20argument.','join','49uZzZkI','riskLevel','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','key','26304gFtmUr','6797610MmaxSy','log','includes','Top-level\x20key\x20\x22','set','read','`\x20=\x20\x22','delete','Key\x20not\x20found:\x20','(none)','raw','105DaACyg','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20set\x20<key>\x20<value>\x20[--global]','5820Omzygl','2258232GfSoYl','split','\x20(global)','14008KKKTaP','Usage:\x20','780OIRvVg','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20delete\x20<key>\x20[--global]','format','Config\x20files:\x0a','object','Invalid\x20value\x20for\x20\x22','../../context.js','global','get','write','319xSmMga'];a14_0x1bb4=function(){return _0x285d14;};return a14_0x1bb4();}
@@ -1 +1 @@
1
- (function(_0x393cd0,_0x21d332){var _0x5981db=a15_0x2865,_0x256390=_0x393cd0();while(!![]){try{var _0x1047ff=-parseInt(_0x5981db(0x148))/0x1*(parseInt(_0x5981db(0x13f))/0x2)+parseInt(_0x5981db(0x143))/0x3*(-parseInt(_0x5981db(0x144))/0x4)+-parseInt(_0x5981db(0x13e))/0x5*(parseInt(_0x5981db(0x14a))/0x6)+-parseInt(_0x5981db(0x140))/0x7*(parseInt(_0x5981db(0x142))/0x8)+-parseInt(_0x5981db(0x141))/0x9+parseInt(_0x5981db(0x146))/0xa*(-parseInt(_0x5981db(0x145))/0xb)+-parseInt(_0x5981db(0x147))/0xc*(-parseInt(_0x5981db(0x149))/0xd);if(_0x1047ff===_0x21d332)break;else _0x256390['push'](_0x256390['shift']());}catch(_0x11663b){_0x256390['push'](_0x256390['shift']());}}}(a15_0x30a6,0x2f2a6));function a15_0x30a6(){var _0xae8986=['1693272seLALv','5ZxQkpc','175546pjoNFQ','767326skSVFE','2173500kNsmXG','16wDAhMO','3OPkerZ','963448RJHDLn','520718hpOPMR','10LQfEZO','5599536dHcAss','2QHSOoq','39PoQBEk'];a15_0x30a6=function(){return _0xae8986;};return a15_0x30a6();}function a15_0x2865(_0x1a2bb4,_0x4ce7f0){_0x1a2bb4=_0x1a2bb4-0x13e;var _0x30a63f=a15_0x30a6();var _0x2865c1=_0x30a63f[_0x1a2bb4];return _0x2865c1;}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,APP_PROFILE_CONFIG_KEYS as APP_PROFILE_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getAppProfileConfigKeyList,getAppProfileConfigKeySummary,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isAppProfileConfigKey,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x10c50c,_0x5decd9){var _0xf627b9=a15_0x43ac,_0x114df2=_0x10c50c();while(!![]){try{var _0x2b680b=-parseInt(_0xf627b9(0x132))/0x1*(parseInt(_0xf627b9(0x12c))/0x2)+parseInt(_0xf627b9(0x12a))/0x3+parseInt(_0xf627b9(0x130))/0x4*(-parseInt(_0xf627b9(0x127))/0x5)+parseInt(_0xf627b9(0x128))/0x6*(-parseInt(_0xf627b9(0x12d))/0x7)+-parseInt(_0xf627b9(0x12e))/0x8+parseInt(_0xf627b9(0x129))/0x9*(parseInt(_0xf627b9(0x12f))/0xa)+-parseInt(_0xf627b9(0x131))/0xb*(-parseInt(_0xf627b9(0x12b))/0xc);if(_0x2b680b===_0x5decd9)break;else _0x114df2['push'](_0x114df2['shift']());}catch(_0x582596){_0x114df2['push'](_0x114df2['shift']());}}}(a15_0x8e8d,0x37b44));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a15_0x8e8d(){var _0x4319cc=['1243DBwFyz','3wAWXST','47605lcwnXL','18ErHuss','27RWcoSy','358194EYZTje','122172HhBYwV','233710NfjloH','846601xMJwiq','3267360SkvBTt','457510wfjxnA','24lhyLuV'];a15_0x8e8d=function(){return _0x4319cc;};return a15_0x8e8d();}export{readScopedConfig,writeScopedConfig}from'../../context.js';function a15_0x43ac(_0x359925,_0x56eb8f){_0x359925=_0x359925-0x127;var _0x8e8d85=a15_0x8e8d();var _0x43acd0=_0x8e8d85[_0x359925];return _0x43acd0;}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';