@lovrabet/lovrabet-cli 2.0.5-beta.2 → 2.0.6

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 (65) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/logs/index.js +1 -1
  24. package/lib/commands/registry.js +1 -1
  25. package/lib/commands/schema.js +1 -1
  26. package/lib/commands/skill/index.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/constant/url.js +1 -1
  39. package/lib/context.js +1 -1
  40. package/lib/core/api-client.js +1 -1
  41. package/lib/core/db-resolver.js +1 -1
  42. package/lib/core/sdk-client.js +1 -1
  43. package/lib/errors.js +1 -1
  44. package/lib/framework/build-all-flags.js +1 -1
  45. package/lib/framework/dryrun.js +1 -1
  46. package/lib/framework/flags.js +1 -1
  47. package/lib/framework/help.js +1 -1
  48. package/lib/framework/index.js +1 -1
  49. package/lib/framework/output.js +1 -1
  50. package/lib/framework/preparse.js +1 -1
  51. package/lib/framework/response.js +1 -1
  52. package/lib/framework/runner-confirmation.js +1 -1
  53. package/lib/framework/runner-error.js +1 -1
  54. package/lib/framework/runner.js +1 -1
  55. package/lib/framework/schema-export.js +1 -1
  56. package/lib/framework/types.js +1 -1
  57. package/lib/help.js +1 -1
  58. package/lib/skills/npx-skills-add.js +1 -1
  59. package/lib/utils/apply-jq-filter.js +1 -1
  60. package/lib/utils/logger.js +1 -1
  61. package/lib/utils/params.js +1 -1
  62. package/lib/utils/platform.js +1 -1
  63. package/lib/utils/version.js +1 -1
  64. package/lib/utils/write-cli-side-channel.js +1 -1
  65. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x8b2c4d=a0_0x4b11;(function(_0x36d4ce,_0x5413bf){const _0x4298b5=a0_0x4b11,_0x43392d=_0x36d4ce();while(!![]){try{const _0x3bd667=parseInt(_0x4298b5(0x146))/0x1*(-parseInt(_0x4298b5(0x124))/0x2)+-parseInt(_0x4298b5(0x11f))/0x3+-parseInt(_0x4298b5(0x148))/0x4+-parseInt(_0x4298b5(0x140))/0x5+parseInt(_0x4298b5(0x122))/0x6*(-parseInt(_0x4298b5(0x128))/0x7)+parseInt(_0x4298b5(0x138))/0x8*(-parseInt(_0x4298b5(0x142))/0x9)+parseInt(_0x4298b5(0x12e))/0xa*(parseInt(_0x4298b5(0x132))/0xb);if(_0x3bd667===_0x5413bf)break;else _0x43392d['push'](_0x43392d['shift']());}catch(_0x28827f){_0x43392d['push'](_0x43392d['shift']());}}}(a0_0x18ae,0x34996));import{jsx as a0_0x2654a0}from'react/jsx-runtime';function a0_0x18ae(){const _0x2aba6f=['code',':\x20--','24LrWOnA','original','help','log','slice','defaultCommand','error','ERR_STREAM_DESTROYED','1011755XPCxHF','exitCode','415746ncwTgX','flags','Error:\x20','write','203815rWOuGB','handler','1593008foAzig','cancelled','843834qwjdwZ','corrected','stderr','132NWMGwa','input','2oGbgOb','unknownCommand','name','exit','93254TwUYoq','Hint:\x20','assign','catch','[preparse]\x20','args','1940LlYwqD','./framework/preparse.js','hint','ERR_USE_AFTER_CLOSE','98252UaUZoY','flatMap','length','\x0aCancelled.\x0a'];a0_0x18ae=function(){return _0x2aba6f;};return a0_0x18ae();}function a0_0x4b11(_0x3756ce,_0x1011db){_0x3756ce=_0x3756ce-0x11f;const _0x18ae04=a0_0x18ae();let _0x4b1133=_0x18ae04[_0x3756ce];return _0x4b1133;}import a0_0x55810b from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x55810b(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x8b2c4d(0x12b)](handleError);async function main(){try{await run();}catch(_0x456414){handleError(_0x456414);}}async function run(){const _0x4879f6=a0_0x8b2c4d;let _0x1dd45a=cli[_0x4879f6(0x123)][0x0],_0x5db701=cli[_0x4879f6(0x123)][0x1];const _0x3c82f9=cli[_0x4879f6(0x143)];try{const {correctFlags:_0x93440}=await import(_0x4879f6(0x12f)),_0x145cba=getAllDefinitions()[_0x4879f6(0x133)](_0x2b5df7=>_0x2b5df7['flags']??[]),{flags:_0x2811d8,corrections:_0x1f8c30}=_0x93440(_0x3c82f9,_0x145cba);if(_0x1f8c30[_0x4879f6(0x134)]>0x0){for(const _0x33bf67 of _0x1f8c30){process[_0x4879f6(0x121)][_0x4879f6(0x145)](_0x4879f6(0x12c)+_0x33bf67[_0x4879f6(0x147)]+_0x4879f6(0x137)+_0x33bf67[_0x4879f6(0x139)]+'\x20->\x20--'+_0x33bf67[_0x4879f6(0x120)]+'\x0a');}Object[_0x4879f6(0x12a)](_0x3c82f9,_0x2811d8);}}catch{}if(!_0x1dd45a||!isKnownService(_0x1dd45a)){const {waitUntilExit:_0x3ab4db}=render(a0_0x2654a0(Help,{}));await _0x3ab4db();return;}const _0x3cab35=getServiceEntry(_0x1dd45a);if(!_0x5db701){if(_0x3c82f9[_0x4879f6(0x13a)]){console[_0x4879f6(0x13b)](generateServiceHelp(_0x1dd45a));return;}if(_0x3cab35[_0x4879f6(0x13d)])_0x5db701=_0x3cab35['defaultCommand'];else{console[_0x4879f6(0x13b)](generateServiceHelp(_0x1dd45a));return;}}const _0x4c6733=findDefinition(_0x1dd45a,_0x5db701);!_0x4c6733&&(console[_0x4879f6(0x13b)](generateServiceHelp(_0x1dd45a)),handleError(CliErrors[_0x4879f6(0x125)](_0x1dd45a+'\x20'+_0x5db701)));if(_0x3c82f9[_0x4879f6(0x13a)]){console[_0x4879f6(0x13b)](generateCommandHelp(_0x4c6733));return;}const _0x5cb81f=buildConfigFromFlags(_0x3c82f9);await initGlobalEnvironment(_0x5cb81f);const _0xd461e6=createPipelineEnv(_0x5cb81f,_0x3c82f9);_0xd461e6[_0x4879f6(0x12d)]=cli[_0x4879f6(0x123)][_0x4879f6(0x13c)](0x2),await runCommand(_0x4c6733,_0xd461e6);}function handleError(_0x5c1d4c){const _0x2da95=a0_0x8b2c4d;if(_0x5c1d4c instanceof CliError){_0x5c1d4c['code']===_0x2da95(0x149)&&(process[_0x2da95(0x121)][_0x2da95(0x145)](_0x2da95(0x135)),process[_0x2da95(0x127)](0x0));console['error'](_0x2da95(0x144)+_0x5c1d4c['message']);if(_0x5c1d4c[_0x2da95(0x130)])console[_0x2da95(0x13e)](_0x2da95(0x129)+_0x5c1d4c[_0x2da95(0x130)]);process[_0x2da95(0x127)](_0x5c1d4c[_0x2da95(0x141)]);}isUserCancellation(_0x5c1d4c)&&(process[_0x2da95(0x121)]['write']('\x0aCancelled.\x0a'),process[_0x2da95(0x127)](0x0)),console[_0x2da95(0x13e)]('Unexpected\x20error:',_0x5c1d4c),process[_0x2da95(0x127)](0x1);}function isUserCancellation(_0x4c5de0){const _0x81e0b1=a0_0x8b2c4d;if(!(_0x4c5de0 instanceof Error))return![];if(_0x4c5de0[_0x81e0b1(0x126)]==='ExitPromptError')return!![];if(_0x4c5de0[_0x81e0b1(0x136)]===_0x81e0b1(0x131))return!![];if(_0x4c5de0[_0x81e0b1(0x136)]===_0x81e0b1(0x13f))return!![];return![];}
2
+ const a0_0x3dd920=a0_0x5e28;function a0_0x5e28(_0x45c63c,_0x22b063){_0x45c63c=_0x45c63c-0x15f;const _0x43629d=a0_0x4362();let _0x5e286f=_0x43629d[_0x45c63c];return _0x5e286f;}(function(_0x20f143,_0x311d3f){const _0x887324=a0_0x5e28,_0x5de9ea=_0x20f143();while(!![]){try{const _0x3c8b49=parseInt(_0x887324(0x173))/0x1*(-parseInt(_0x887324(0x162))/0x2)+-parseInt(_0x887324(0x164))/0x3+-parseInt(_0x887324(0x174))/0x4*(parseInt(_0x887324(0x170))/0x5)+-parseInt(_0x887324(0x16a))/0x6*(parseInt(_0x887324(0x17d))/0x7)+-parseInt(_0x887324(0x167))/0x8*(parseInt(_0x887324(0x180))/0x9)+-parseInt(_0x887324(0x179))/0xa+parseInt(_0x887324(0x182))/0xb;if(_0x3c8b49===_0x311d3f)break;else _0x5de9ea['push'](_0x5de9ea['shift']());}catch(_0x2da5fa){_0x5de9ea['push'](_0x5de9ea['shift']());}}}(a0_0x4362,0x6a9e8));import{jsx as a0_0x9d9138}from'react/jsx-runtime';import a0_0x41f5e3 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x41f5e3(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x3dd920(0x171)](handleError);async function main(){try{await run();}catch(_0xef9b6b){handleError(_0xef9b6b);}}async function run(){const _0x375925=a0_0x3dd920;let _0x27113d=cli[_0x375925(0x172)][0x0],_0x4ffc0f=cli['input'][0x1];const _0xe428dc=cli[_0x375925(0x184)];try{const {correctFlags:_0x400ed9}=await import(_0x375925(0x185)),_0x3ccaf8=getAllDefinitions()['flatMap'](_0x21af68=>_0x21af68[_0x375925(0x184)]??[]),{flags:_0x47252e,corrections:_0xc23840}=_0x400ed9(_0xe428dc,_0x3ccaf8);if(_0xc23840['length']>0x0){for(const _0x49b617 of _0xc23840){process[_0x375925(0x178)]['write'](_0x375925(0x166)+_0x49b617[_0x375925(0x175)]+_0x375925(0x160)+_0x49b617['original']+_0x375925(0x16d)+_0x49b617[_0x375925(0x186)]+'\x0a');}Object[_0x375925(0x176)](_0xe428dc,_0x47252e);}}catch{}if(!_0x27113d||!isKnownService(_0x27113d)){const {waitUntilExit:_0x2e9af1}=render(a0_0x9d9138(Help,{}));await _0x2e9af1();return;}const _0x34f5b7=getServiceEntry(_0x27113d);if(!_0x4ffc0f){if(_0xe428dc[_0x375925(0x183)]){console[_0x375925(0x177)](generateServiceHelp(_0x27113d));return;}if(_0x34f5b7[_0x375925(0x16b)])_0x4ffc0f=_0x34f5b7[_0x375925(0x16b)];else{console[_0x375925(0x177)](generateServiceHelp(_0x27113d));return;}}const _0x16bdd3=findDefinition(_0x27113d,_0x4ffc0f);!_0x16bdd3&&(console[_0x375925(0x177)](generateServiceHelp(_0x27113d)),handleError(CliErrors[_0x375925(0x161)](_0x27113d+'\x20'+_0x4ffc0f)));if(_0xe428dc[_0x375925(0x183)]){console['log'](generateCommandHelp(_0x16bdd3));return;}const _0x1f6a44=buildConfigFromFlags(_0xe428dc);await initGlobalEnvironment(_0x1f6a44);const _0x71e0e4=createPipelineEnv(_0x1f6a44,_0xe428dc);_0x71e0e4[_0x375925(0x17c)]=cli['input'][_0x375925(0x165)](0x2),await runCommand(_0x16bdd3,_0x71e0e4);}function handleError(_0x1f55b0){const _0x99ea74=a0_0x3dd920;if(_0x1f55b0 instanceof CliError){_0x1f55b0[_0x99ea74(0x16e)]===_0x99ea74(0x15f)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process[_0x99ea74(0x16c)](0x0));console[_0x99ea74(0x168)](_0x99ea74(0x17f)+_0x1f55b0[_0x99ea74(0x163)]);if(_0x1f55b0[_0x99ea74(0x16f)])console[_0x99ea74(0x168)]('Hint:\x20'+_0x1f55b0[_0x99ea74(0x16f)]);process[_0x99ea74(0x16c)](_0x1f55b0[_0x99ea74(0x17a)]);}isUserCancellation(_0x1f55b0)&&(process['stderr'][_0x99ea74(0x17b)](_0x99ea74(0x169)),process['exit'](0x0)),console[_0x99ea74(0x168)]('Unexpected\x20error:',_0x1f55b0),process['exit'](0x1);}function a0_0x4362(){const _0x4ce0cc=['message','2587770YLjHAa','slice','[preparse]\x20','8FFBEJc','error','\x0aCancelled.\x0a','6SYxGFJ','defaultCommand','exit','\x20->\x20--','code','hint','370295kjGnpO','catch','input','1rzDoKX','44CHoPjR','handler','assign','log','stderr','8537550mEkXsJ','exitCode','write','args','2684689AEPMiS','ERR_STREAM_DESTROYED','Error:\x20','1853991OWrKHn','name','45488960ODJNao','help','flags','./framework/preparse.js','corrected','cancelled',':\x20--','unknownCommand','1156256hLhaxW'];a0_0x4362=function(){return _0x4ce0cc;};return a0_0x4362();}function isUserCancellation(_0x44c6bd){const _0x48230e=a0_0x3dd920;if(!(_0x44c6bd instanceof Error))return![];if(_0x44c6bd[_0x48230e(0x181)]==='ExitPromptError')return!![];if(_0x44c6bd[_0x48230e(0x16e)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x44c6bd[_0x48230e(0x16e)]===_0x48230e(0x17e))return!![];return![];}
@@ -1 +1 @@
1
- (function(_0x3fbce0,_0x597d27){const _0x55a3e5=a1_0x1756,_0x330ade=_0x3fbce0();while(!![]){try{const _0x43fcaa=-parseInt(_0x55a3e5(0x9e))/0x1*(-parseInt(_0x55a3e5(0x92))/0x2)+parseInt(_0x55a3e5(0x95))/0x3+-parseInt(_0x55a3e5(0xa3))/0x4+-parseInt(_0x55a3e5(0x8d))/0x5+-parseInt(_0x55a3e5(0x90))/0x6*(parseInt(_0x55a3e5(0x9d))/0x7)+-parseInt(_0x55a3e5(0x97))/0x8+parseInt(_0x55a3e5(0x8f))/0x9*(parseInt(_0x55a3e5(0xa5))/0xa);if(_0x43fcaa===_0x597d27)break;else _0x330ade['push'](_0x330ade['shift']());}catch(_0x19bbf5){_0x330ade['push'](_0x330ade['shift']());}}}(a1_0x5be8,0xe2050));function a1_0x1756(_0x414b1b,_0x5ce505){_0x414b1b=_0x414b1b-0x8d;const _0x5be8b3=a1_0x5be8();let _0x175617=_0x5be8b3[_0x414b1b];return _0x175617;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a1_0x5be8(){const _0x3f4159=['utf8','10JIDwth','appCode','my-apps.json','5025150nubfWD','code','7988643UfKgYe','6294bfEYYH','parse','1420bzoEQb','appName','.tmp','5210613zZCuuZ','sha256','2850288droAzt','slice','stringify','ak_','trim','.lovrabet','4683BffIzT','1877GOGCNy','cache','EXDEV','items','update','3873180NrbLDu'];a1_0x5be8=function(){return _0x3f4159;};return a1_0x5be8();}function fingerprintAccessKey(_0x3244b3){const _0x473d55=a1_0x1756,_0x395c23=_0x3244b3[_0x473d55(0x9b)](),_0x1e1709=_0x395c23[_0x473d55(0x98)](-0x6)||'unknown',_0x1bd42d=createHash(_0x473d55(0x96))[_0x473d55(0xa2)](_0x395c23)['digest']('hex')[_0x473d55(0x98)](0x0,0xc);return _0x473d55(0x9a)+_0x1e1709+'_'+_0x1bd42d;}export function getAppCacheFilePath(_0x1bd471,_0x212434){const _0x31ab57=a1_0x1756;return resolve(homedir(),_0x31ab57(0x9c),_0x31ab57(0x9f),_0x1bd471,fingerprintAccessKey(_0x212434),_0x31ab57(0xa7));}export function readCachedAppList(_0x3892e5,_0xfa568e){const _0x544056=a1_0x1756;if(!_0xfa568e?.['trim']())return null;const _0x12159e=getAppCacheFilePath(_0x3892e5,_0xfa568e);if(!existsSync(_0x12159e))return null;try{const _0x595233=readFileSync(_0x12159e,_0x544056(0xa4));if(!_0x595233[_0x544056(0x9b)]())return null;const _0x2a7541=JSON[_0x544056(0x91)](_0x595233);if(!Array['isArray'](_0x2a7541[_0x544056(0xa1)]))return null;return _0x2a7541;}catch{return null;}}export function writeCachedAppList(_0xce1ff8,_0x453a6a,_0x38713c){const _0x4fe1e5=a1_0x1756,_0x362501=getAppCacheFilePath(_0xce1ff8,_0x453a6a),_0x5f281a=dirname(_0x362501);!existsSync(_0x5f281a)&&mkdirSync(_0x5f281a,{'recursive':!![]});const _0x297324=_0x362501+_0x4fe1e5(0x94);try{writeFileSync(_0x297324,JSON[_0x4fe1e5(0x99)](_0x38713c,null,0x2)+'\x0a',{'encoding':_0x4fe1e5(0xa4),'mode':0x180});try{renameSync(_0x297324,_0x362501);}catch(_0x1448c3){if(_0x1448c3[_0x4fe1e5(0x8e)]==='EPERM'||_0x1448c3[_0x4fe1e5(0x8e)]===_0x4fe1e5(0xa0)||_0x1448c3[_0x4fe1e5(0x8e)]==='EACCES'){writeFileSync(_0x362501,JSON['stringify'](_0x38713c,null,0x2)+'\x0a',{'encoding':_0x4fe1e5(0xa4)});try{unlinkSync(_0x297324);}catch{}}else throw _0x1448c3;}}catch(_0x5cad1e){try{unlinkSync(_0x297324);}catch{}throw _0x5cad1e;}return _0x362501;}export function resolveCachedAppCode(_0x2a37a2,_0x49fdfb,_0x35d6f6){const _0x5d8aef=a1_0x1756;if(!_0x2a37a2)return undefined;const _0x160429=readCachedAppList(_0x49fdfb,_0x35d6f6),_0x2875b1=_0x160429?.[_0x5d8aef(0xa1)]['find'](_0x227f28=>_0x227f28[_0x5d8aef(0x93)]===_0x2a37a2);return _0x2875b1?.[_0x5d8aef(0xa6)]?.[_0x5d8aef(0x9b)]()||undefined;}
1
+ (function(_0x2be061,_0x1d332f){const _0x33f742=a1_0x1e4a,_0x281281=_0x2be061();while(!![]){try{const _0x1f1b6b=-parseInt(_0x33f742(0x1a9))/0x1+parseInt(_0x33f742(0x195))/0x2+-parseInt(_0x33f742(0x19c))/0x3+-parseInt(_0x33f742(0x1a0))/0x4+parseInt(_0x33f742(0x191))/0x5+parseInt(_0x33f742(0x19b))/0x6*(parseInt(_0x33f742(0x1a6))/0x7)+-parseInt(_0x33f742(0x194))/0x8*(parseInt(_0x33f742(0x18d))/0x9);if(_0x1f1b6b===_0x1d332f)break;else _0x281281['push'](_0x281281['shift']());}catch(_0x5c4135){_0x281281['push'](_0x281281['shift']());}}}(a1_0x2be0,0x3329b));import{createHash}from'node:crypto';function a1_0x1e4a(_0x3b0e79,_0x493862){_0x3b0e79=_0x3b0e79-0x18b;const _0x2be020=a1_0x2be0();let _0x1e4a80=_0x2be020[_0x3b0e79];return _0x1e4a80;}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x2032f1){const _0x3184d4=a1_0x1e4a,_0x47aa23=_0x2032f1[_0x3184d4(0x18c)](),_0x4522de=_0x47aa23['slice'](-0x6)||_0x3184d4(0x197),_0x1cb9d7=createHash(_0x3184d4(0x1a7))[_0x3184d4(0x19f)](_0x47aa23)[_0x3184d4(0x1a8)](_0x3184d4(0x1a3))[_0x3184d4(0x193)](0x0,0xc);return _0x3184d4(0x19e)+_0x4522de+'_'+_0x1cb9d7;}export function getAppCacheFilePath(_0x3850ab,_0x43d5c2){const _0x2d40cd=a1_0x1e4a;return resolve(homedir(),_0x2d40cd(0x1a4),'cache',_0x3850ab,fingerprintAccessKey(_0x43d5c2),_0x2d40cd(0x1a1));}export function readCachedAppList(_0x249989,_0x2afc37){const _0x2e0f64=a1_0x1e4a;if(!_0x2afc37?.['trim']())return null;const _0x204b17=getAppCacheFilePath(_0x249989,_0x2afc37);if(!existsSync(_0x204b17))return null;try{const _0x3bc2a0=readFileSync(_0x204b17,_0x2e0f64(0x1aa));if(!_0x3bc2a0[_0x2e0f64(0x18c)]())return null;const _0x4663f8=JSON[_0x2e0f64(0x19d)](_0x3bc2a0);if(!Array[_0x2e0f64(0x1a2)](_0x4663f8[_0x2e0f64(0x18f)]))return null;return _0x4663f8;}catch{return null;}}export function writeCachedAppList(_0x570b5f,_0x5ef3af,_0x20fad3){const _0x1954ad=a1_0x1e4a,_0x12753b=getAppCacheFilePath(_0x570b5f,_0x5ef3af),_0x2174fd=dirname(_0x12753b);!existsSync(_0x2174fd)&&mkdirSync(_0x2174fd,{'recursive':!![]});const _0x44e575=_0x12753b+_0x1954ad(0x1a5);try{writeFileSync(_0x44e575,JSON[_0x1954ad(0x19a)](_0x20fad3,null,0x2)+'\x0a',{'encoding':_0x1954ad(0x1aa),'mode':0x180});try{renameSync(_0x44e575,_0x12753b);}catch(_0x18ff79){if(_0x18ff79[_0x1954ad(0x192)]===_0x1954ad(0x198)||_0x18ff79[_0x1954ad(0x192)]===_0x1954ad(0x18b)||_0x18ff79[_0x1954ad(0x192)]===_0x1954ad(0x18e)){writeFileSync(_0x12753b,JSON[_0x1954ad(0x19a)](_0x20fad3,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x44e575);}catch{}}else throw _0x18ff79;}}catch(_0x5827d3){try{unlinkSync(_0x44e575);}catch{}throw _0x5827d3;}return _0x12753b;}function a1_0x2be0(){const _0x4fb443=['parse','ak_','update','254804MoWidR','my-apps.json','isArray','hex','.lovrabet','.tmp','2066554YAerHe','sha256','digest','178754azmfOa','utf8','EXDEV','trim','9EBeRhW','EACCES','items','find','1211640hzmbaB','code','slice','755880ouAeVR','563248pYkqOF','appName','unknown','EPERM','appCode','stringify','6mjcGHr','818013KadoPM'];a1_0x2be0=function(){return _0x4fb443;};return a1_0x2be0();}export function resolveCachedAppCode(_0x35442e,_0x353ae5,_0x28bc4c){const _0x2f3273=a1_0x1e4a;if(!_0x35442e)return undefined;const _0x5a8b20=readCachedAppList(_0x353ae5,_0x28bc4c),_0x2d5587=_0x5a8b20?.['items'][_0x2f3273(0x190)](_0x49ccf3=>_0x49ccf3[_0x2f3273(0x196)]===_0x35442e);return _0x2d5587?.[_0x2f3273(0x199)]?.[_0x2f3273(0x18c)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x2706a8=a2_0x35b8;(function(_0x4c370a,_0x1dfda7){const _0xd534=a2_0x35b8,_0x411afe=_0x4c370a();while(!![]){try{const _0x2deeef=-parseInt(_0xd534(0x18a))/0x1*(-parseInt(_0xd534(0x17e))/0x2)+-parseInt(_0xd534(0x19c))/0x3+parseInt(_0xd534(0x189))/0x4+parseInt(_0xd534(0x1b0))/0x5+parseInt(_0xd534(0x17a))/0x6*(parseInt(_0xd534(0x19f))/0x7)+parseInt(_0xd534(0x18d))/0x8+parseInt(_0xd534(0x1b7))/0x9;if(_0x2deeef===_0x1dfda7)break;else _0x411afe['push'](_0x411afe['shift']());}catch(_0xff1478){_0x411afe['push'](_0x411afe['shift']());}}}(a2_0x48a5,0xbd0c9));import{CliErrors}from'../../errors.js';function a2_0x35b8(_0x4b1666,_0x461cd8){_0x4b1666=_0x4b1666-0x174;const _0x48a5a2=a2_0x48a5();let _0x35b8c2=_0x48a5a2[_0x4b1666];return _0x35b8c2;}import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':'global','type':a2_0x2706a8(0x198),'description':a2_0x2706a8(0x1ac),'default':![]};function a2_0x48a5(){const _0x24465c=['envName','isCurrent','\x20cached\x20app(s)\x20for\x20env=\x22','Use\x20global\x20config\x20scope','list','Switch\x20the\x20default\x20app','defaultApp','1442105EEwdaP','cache','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','import','../../commands/app/cache.js','Read\x20from\x20local\x20cache\x20only','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','2730843nvpBhp','fetchedAt','accessKey','local','Target\x20environment\x20(default:\x20current\x20env)','mergedCli','env','Initialize\x20.lovrabet.json\x20config\x20file','Refreshed\x20app\x20cache\x20with\x20','../../context.js','type','find','args','join','12378FNjNgN','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','from','source','202490ynlpnW','App\x20\x22','Default\x20app\x20set\x20to\x20\x22','appPublishStatus','globalPath','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','../../commands/app/remote-source.js','cachePath','production','pull','map','588744zFtMpY','1kaHmtd','name','validation','4195104RuuDgw','length','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','string','Usage:\x20','bool','app','Missing\x20app\x20name.','\x20app\x20use\x20<name>\x20[--global]','projectPath','appName','boolean','No\x20apps\x20found\x20on\x20the\x20platform.','appCode','Remote\x20app\x20name\x20to\x20activate','2129928TjWBYc','init','remote','406gODJBK','items','use','project-default','str','Use\x20`','global','no-cache','write','\x20app(s)\x20for\x20env=\x22'];a2_0x48a5=function(){return _0x24465c;};return a2_0x48a5();}function collectFlags(_0x4cf7f5,_0x522710){const _0x19e2b7=a2_0x2706a8,_0x134d4b={};for(const _0x4287bc of _0x522710){const _0x3a03bd=_0x4287bc[_0x19e2b7(0x176)]===_0x19e2b7(0x198)?_0x4cf7f5['bool'](_0x4287bc[_0x19e2b7(0x18b)]):_0x4cf7f5[_0x19e2b7(0x1a3)](_0x4287bc['name']);if(_0x3a03bd!==''&&_0x3a03bd!==![])_0x134d4b[_0x4287bc[_0x19e2b7(0x18b)]]=_0x3a03bd;}if(_0x4cf7f5['nonInteractive'])_0x134d4b['nonInteractive']=!![];return _0x134d4b;}const initDef={'service':a2_0x2706a8(0x193),'command':a2_0x2706a8(0x19d),'description':a2_0x2706a8(0x1be),'risk':a2_0x2706a8(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x5c872e){return await runInit(collectFlags(_0x5c872e,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x2706a8(0x193),'command':a2_0x2706a8(0x1ad),'description':a2_0x2706a8(0x18f),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a2_0x2706a8(0x190),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a2_0x2706a8(0x198),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x2706a8(0x1a6),'type':a2_0x2706a8(0x198),'description':a2_0x2706a8(0x1b6),'default':![]}],async 'execute'(_0x248bdb){const _0x3a300c=a2_0x2706a8,_0x278055=_0x248bdb[_0x3a300c(0x1a3)](_0x3a300c(0x1bd))||_0x248bdb[_0x3a300c(0x1a9)]||getEnv()||_0x3a300c(0x186),_0x15f20c=_0x248bdb['bool'](_0x3a300c(0x1ba)),_0x4961af=_0x248bdb[_0x3a300c(0x192)](_0x3a300c(0x1a6)),{readRawConfigWithLayers:_0x37107e,resolveDefaultAppSource:_0x127f86}=await import('../../context.js'),{getRemoteAppList:_0x4859bd}=await import(_0x3a300c(0x184)),{config:_0x4ef572,layers:_0x3fa30c}=_0x37107e(),_0x10b02a=_0x127f86(_0x3fa30c),{defaultApp:_0x4b1d23}=_0x4ef572,_0x7b189f=await _0x4859bd({'env':_0x278055,'accessKey':_0x248bdb[_0x3a300c(0x1b9)],'localOnly':_0x15f20c,'noCache':_0x4961af}),_0x2e548a=_0x7b189f[_0x3a300c(0x1a0)]['map'](_0x4f18b4=>{const _0x26443a=_0x3a300c;return{'name':_0x4f18b4['appName'],'appcode':_0x4f18b4[_0x26443a(0x19a)],'named':!![],'definedIn':_0x26443a(0x19e),'isDefault':_0x4f18b4[_0x26443a(0x197)]===_0x4b1d23,...buildAppProfileListFields(_0x278055),'source':_0x7b189f[_0x26443a(0x17d)],'owner':_0x4f18b4['appOwnerName']??null,'status':_0x4f18b4[_0x26443a(0x181)]??null,'cachedAt':_0x7b189f[_0x26443a(0x1b8)]};});enrichAppListItemsWithMergedSelection(_0x2e548a,_0x248bdb[_0x3a300c(0x1bc)]);if(_0x2e548a[_0x3a300c(0x18e)]===0x0)return{'ok':!![],'data':[],'message':_0x7b189f[_0x3a300c(0x17d)]===_0x3a300c(0x1b1)?'No\x20cached\x20apps\x20found.':_0x3a300c(0x199)};const _0x3d26e1=_0x2e548a[_0x3a300c(0x177)](_0x1c72d1=>_0x1c72d1[_0x3a300c(0x1aa)]===!![]),_0x8a0183=_0x4b1d23??_0x3d26e1?.['name']??null,_0x2db22={'env':_0x278055,'source':_0x7b189f[_0x3a300c(0x17d)],'fetchedAt':_0x7b189f[_0x3a300c(0x1b8)],'cachePath':_0x7b189f[_0x3a300c(0x185)],'globalPath':_0x3fa30c[_0x3a300c(0x182)]??null,'projectPath':_0x3fa30c[_0x3a300c(0x196)]??null,'defaultApp':_0x8a0183,'defaultAppSource':_0x4b1d23!=null?_0x10b02a:null};return{'ok':!![],'data':{'items':_0x2e548a,'meta':_0x2db22}};}},pullDef={'service':a2_0x2706a8(0x193),'command':a2_0x2706a8(0x187),'description':a2_0x2706a8(0x1b2),'risk':a2_0x2706a8(0x1a7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x2706a8(0x1bd),'type':a2_0x2706a8(0x190),'description':a2_0x2706a8(0x1bb),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2706a8(0x1ba),'type':'boolean','description':a2_0x2706a8(0x1b5),'default':![]},{'name':a2_0x2706a8(0x1a6),'type':a2_0x2706a8(0x198),'description':a2_0x2706a8(0x1b6),'default':![]}],async 'execute'(_0x4e410b){const _0x51df04=a2_0x2706a8,_0x548bc1=_0x4e410b[_0x51df04(0x1a3)](_0x51df04(0x1bd))||_0x4e410b[_0x51df04(0x1a9)]||getEnv()||_0x51df04(0x186),_0x1ceed5=_0x4e410b['bool'](_0x51df04(0x1ba)),_0x46f4af=_0x4e410b[_0x51df04(0x192)]('no-cache'),{getRemoteAppList:_0x24eb01}=await import(_0x51df04(0x184)),_0x32c562=await _0x24eb01({'env':_0x548bc1,'accessKey':_0x4e410b[_0x51df04(0x1b9)],'localOnly':_0x1ceed5,'noCache':_0x46f4af});return{'ok':!![],'data':{'total':_0x32c562['items']['length'],'env':_0x548bc1,'source':_0x32c562[_0x51df04(0x17d)],'fetchedAt':_0x32c562[_0x51df04(0x1b8)],'cachePath':_0x32c562['cachePath']},'message':_0x32c562[_0x51df04(0x17d)]==='cache'?'Loaded\x20'+_0x32c562[_0x51df04(0x1a0)][_0x51df04(0x18e)]+_0x51df04(0x1ab)+_0x548bc1+'\x22.':_0x51df04(0x174)+_0x32c562[_0x51df04(0x1a0)][_0x51df04(0x18e)]+_0x51df04(0x1a8)+_0x548bc1+'\x22.'};}},useDef={'service':a2_0x2706a8(0x193),'command':a2_0x2706a8(0x1a1),'description':a2_0x2706a8(0x1ae),'risk':a2_0x2706a8(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x2706a8(0x18b),'description':a2_0x2706a8(0x19b),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x43de9c){const _0x4ee769=a2_0x2706a8;if(!_0x43de9c['args'][0x0])throw CliErrors[_0x4ee769(0x18c)]('Missing\x20app\x20name.',_0x4ee769(0x191)+CLI_BIN_NAME+_0x4ee769(0x195));},async 'execute'(_0x45c82f){const _0x1f350d=a2_0x2706a8,_0x45cda5=_0x45c82f[_0x1f350d(0x178)][0x0];if(!_0x45cda5)throw CliErrors[_0x1f350d(0x18c)](_0x1f350d(0x194),_0x1f350d(0x191)+CLI_BIN_NAME+_0x1f350d(0x195));const {buildConfigFromFlags:_0x486c69}=await import(_0x1f350d(0x175)),{readCachedAppList:_0x595f4d}=await import(_0x1f350d(0x1b4)),_0x1892b6=_0x486c69({}),_0x401a3c=_0x595f4d(_0x1892b6['env'],_0x1892b6[_0x1f350d(0x1b9)]),_0x12afe6=_0x401a3c?.[_0x1f350d(0x1a0)]['find'](_0x2ed07f=>_0x2ed07f[_0x1f350d(0x197)]===_0x45cda5);if(!_0x12afe6&&_0x1892b6[_0x1f350d(0x1af)]!==_0x45cda5){const _0x16866d=[..._0x401a3c?.[_0x1f350d(0x1a0)][_0x1f350d(0x188)](_0x4dd00f=>_0x4dd00f[_0x1f350d(0x197)])??[]],_0xb97c61=_0x16866d[_0x1f350d(0x18e)]===0x0?_0x1f350d(0x1a4)+CLI_BIN_NAME+_0x1f350d(0x183):'Available:\x20'+Array[_0x1f350d(0x17c)](new Set(_0x16866d))[_0x1f350d(0x179)](',\x20');throw CliErrors[_0x1f350d(0x18c)](_0x1f350d(0x17f)+_0x45cda5+'\x22\x20not\x20found.',_0xb97c61);}const _0x34cca4=_0x45c82f[_0x1f350d(0x192)](_0x1f350d(0x1a5));let _0x3fae30;if(_0x34cca4)_0x3fae30={'global':!![]};else{const {isInProject:_0x383415}=await import(_0x1f350d(0x175)),_0x1669ab=_0x383415();_0x3fae30=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x1f350d(0x1a2),'inProject':_0x1669ab}));}const _0x15a6e0=readConfig(_0x3fae30);return _0x15a6e0[_0x1f350d(0x1af)]=_0x45cda5,writeConfig(_0x15a6e0,_0x3fae30),{'ok':!![],'message':_0x1f350d(0x180)+_0x45cda5+'\x22'+scopeLabel(_0x3fae30)+'.'};}},importDef={'service':a2_0x2706a8(0x193),'command':a2_0x2706a8(0x1b3),'description':a2_0x2706a8(0x17b),'risk':a2_0x2706a8(0x1a7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x52f21c){return await runInitImport(collectFlags(_0x52f21c,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ function a2_0x51bf(_0x591655,_0xfa893b){_0x591655=_0x591655-0xaf;const _0x1e758e=a2_0x1e75();let _0x51bf74=_0x1e758e[_0x591655];return _0x51bf74;}function a2_0x1e75(){const _0x324213=['Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','map','list','no-cache','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','items','\x20cached\x20app(s)\x20for\x20env=\x22','Missing\x20app\x20name.','source','\x22\x20not\x20found.','1612PxggyE','166672FjNIPY','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','global','cache','appName','Use\x20`','production','appPublishStatus','type','Filter\x20by\x20environment\x20(default:\x20current\x20env)','bool','import','nonInteractive','fetchedAt','../../commands/app/cache.js','isCurrent','No\x20cached\x20apps\x20found.','str','boolean','project-default','defaultApp','mergedCli','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','use','envName','accessKey','validation','length','5210wnxfVf','write','Default\x20app\x20set\x20to\x20\x22','Loaded\x20','23604690XzRWEy','find','init','150yBBlcn','string','from','cachePath','\x20app(s)\x20for\x20env=\x22','Available:\x20','name','local','appCode','globalPath','8843eUKDsL','env','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','Target\x20environment\x20(default:\x20current\x20env)','30522ouDZdU','projectPath','../../context.js','810669gKKkwy','Remote\x20app\x20name\x20to\x20activate','Usage:\x20','No\x20apps\x20found\x20on\x20the\x20platform.','1281wLEuti','app','7296660twPhSg','read','pull','args','../../commands/app/remote-source.js','Read\x20from\x20local\x20cache\x20only','Use\x20global\x20config\x20scope'];a2_0x1e75=function(){return _0x324213;};return a2_0x1e75();}const a2_0x165ac0=a2_0x51bf;(function(_0x314d7f,_0x45f02c){const _0x327b0d=a2_0x51bf,_0x313779=_0x314d7f();while(!![]){try{const _0x88e3b1=parseInt(_0x327b0d(0xd9))/0x1*(-parseInt(_0x327b0d(0xcf))/0x2)+parseInt(_0x327b0d(0xe0))/0x3+parseInt(_0x327b0d(0xf7))/0x4*(parseInt(_0x327b0d(0xc8))/0x5)+parseInt(_0x327b0d(0xdd))/0x6*(-parseInt(_0x327b0d(0xe4))/0x7)+parseInt(_0x327b0d(0xf8))/0x8+-parseInt(_0x327b0d(0xe6))/0x9+parseInt(_0x327b0d(0xcc))/0xa;if(_0x88e3b1===_0x45f02c)break;else _0x313779['push'](_0x313779['shift']());}catch(_0x5655ee){_0x313779['push'](_0x313779['shift']());}}}(a2_0x1e75,0xa2bc6));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a2_0x165ac0(0xfa),'type':a2_0x165ac0(0xbe),'description':a2_0x165ac0(0xec),'default':![]};function collectFlags(_0x30ffb5,_0x61b861){const _0x333519=a2_0x165ac0,_0x373462={};for(const _0x55f866 of _0x61b861){const _0x3713c5=_0x55f866[_0x333519(0xb4)]===_0x333519(0xbe)?_0x30ffb5[_0x333519(0xb6)](_0x55f866['name']):_0x30ffb5[_0x333519(0xbd)](_0x55f866[_0x333519(0xd5)]);if(_0x3713c5!==''&&_0x3713c5!==![])_0x373462[_0x55f866['name']]=_0x3713c5;}if(_0x30ffb5[_0x333519(0xb8)])_0x373462[_0x333519(0xb8)]=!![];return _0x373462;}const initDef={'service':a2_0x165ac0(0xe5),'command':a2_0x165ac0(0xce),'description':'Initialize\x20.lovrabet.json\x20config\x20file','risk':a2_0x165ac0(0xc9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x553f66){return await runInit(collectFlags(_0x553f66,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x165ac0(0xe5),'command':a2_0x165ac0(0xef),'description':a2_0x165ac0(0xf9),'risk':a2_0x165ac0(0xe7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a2_0x165ac0(0xd0),'description':a2_0x165ac0(0xb5),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x165ac0(0xd6),'type':a2_0x165ac0(0xbe),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x165ac0(0xf0),'type':'boolean','description':a2_0x165ac0(0xed),'default':![]}],async 'execute'(_0x181a85){const _0x313ea3=a2_0x165ac0,_0x121a7a=_0x181a85['str'](_0x313ea3(0xda))||_0x181a85[_0x313ea3(0xc4)]||getEnv()||_0x313ea3(0xb2),_0x49ec60=_0x181a85['bool']('local'),_0x1ef513=_0x181a85[_0x313ea3(0xb6)]('no-cache'),{readRawConfigWithLayers:_0x30a4d6,resolveDefaultAppSource:_0x708b67}=await import(_0x313ea3(0xdf)),{getRemoteAppList:_0x10cfe2}=await import(_0x313ea3(0xea)),{config:_0xde0f5,layers:_0x30f4f5}=_0x30a4d6(),_0x354c36=_0x708b67(_0x30f4f5),{defaultApp:_0x791b27}=_0xde0f5,_0x2f3211=await _0x10cfe2({'env':_0x121a7a,'accessKey':_0x181a85[_0x313ea3(0xc5)],'localOnly':_0x49ec60,'noCache':_0x1ef513}),_0x356dab=_0x2f3211[_0x313ea3(0xf2)][_0x313ea3(0xee)](_0x22d17e=>{const _0x288a5b=_0x313ea3;return{'name':_0x22d17e[_0x288a5b(0xb0)],'appcode':_0x22d17e[_0x288a5b(0xd7)],'named':!![],'definedIn':'remote','isDefault':_0x22d17e[_0x288a5b(0xb0)]===_0x791b27,...buildAppProfileListFields(_0x121a7a),'source':_0x2f3211['source'],'owner':_0x22d17e['appOwnerName']??null,'status':_0x22d17e[_0x288a5b(0xb3)]??null,'cachedAt':_0x2f3211['fetchedAt']};});enrichAppListItemsWithMergedSelection(_0x356dab,_0x181a85[_0x313ea3(0xc1)]);if(_0x356dab[_0x313ea3(0xc7)]===0x0)return{'ok':!![],'data':[],'message':_0x2f3211[_0x313ea3(0xf5)]==='cache'?_0x313ea3(0xbc):_0x313ea3(0xe3)};const _0x29ff82=_0x356dab[_0x313ea3(0xcd)](_0x2e2b0b=>_0x2e2b0b[_0x313ea3(0xbb)]===!![]),_0x2e1c1b=_0x791b27??_0x29ff82?.[_0x313ea3(0xd5)]??null,_0x2ae2e9={'env':_0x121a7a,'source':_0x2f3211[_0x313ea3(0xf5)],'fetchedAt':_0x2f3211[_0x313ea3(0xb9)],'cachePath':_0x2f3211[_0x313ea3(0xd2)],'globalPath':_0x30f4f5[_0x313ea3(0xd8)]??null,'projectPath':_0x30f4f5[_0x313ea3(0xde)]??null,'defaultApp':_0x2e1c1b,'defaultAppSource':_0x791b27!=null?_0x354c36:null};return{'ok':!![],'data':{'items':_0x356dab,'meta':_0x2ae2e9}};}},pullDef={'service':a2_0x165ac0(0xe5),'command':a2_0x165ac0(0xe8),'description':a2_0x165ac0(0xf1),'risk':a2_0x165ac0(0xc9),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x165ac0(0xda),'type':a2_0x165ac0(0xd0),'description':a2_0x165ac0(0xdc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x165ac0(0xd6),'type':a2_0x165ac0(0xbe),'description':a2_0x165ac0(0xeb),'default':![]},{'name':a2_0x165ac0(0xf0),'type':a2_0x165ac0(0xbe),'description':a2_0x165ac0(0xed),'default':![]}],async 'execute'(_0xd2c136){const _0x532e78=a2_0x165ac0,_0x401372=_0xd2c136[_0x532e78(0xbd)](_0x532e78(0xda))||_0xd2c136[_0x532e78(0xc4)]||getEnv()||'production',_0x2497f5=_0xd2c136[_0x532e78(0xb6)](_0x532e78(0xd6)),_0x3a6523=_0xd2c136['bool'](_0x532e78(0xf0)),{getRemoteAppList:_0x3a2f1e}=await import(_0x532e78(0xea)),_0x2acaa3=await _0x3a2f1e({'env':_0x401372,'accessKey':_0xd2c136[_0x532e78(0xc5)],'localOnly':_0x2497f5,'noCache':_0x3a6523});return{'ok':!![],'data':{'total':_0x2acaa3['items'][_0x532e78(0xc7)],'env':_0x401372,'source':_0x2acaa3[_0x532e78(0xf5)],'fetchedAt':_0x2acaa3[_0x532e78(0xb9)],'cachePath':_0x2acaa3[_0x532e78(0xd2)]},'message':_0x2acaa3[_0x532e78(0xf5)]===_0x532e78(0xaf)?_0x532e78(0xcb)+_0x2acaa3['items']['length']+_0x532e78(0xf3)+_0x401372+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x2acaa3['items'][_0x532e78(0xc7)]+_0x532e78(0xd3)+_0x401372+'\x22.'};}},useDef={'service':a2_0x165ac0(0xe5),'command':a2_0x165ac0(0xc3),'description':'Switch\x20the\x20default\x20app','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x165ac0(0xd5),'description':a2_0x165ac0(0xe1),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x52a804){const _0x226f75=a2_0x165ac0;if(!_0x52a804['args'][0x0])throw CliErrors[_0x226f75(0xc6)](_0x226f75(0xf4),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x486c96){const _0x1c7a87=a2_0x165ac0,_0x4270f4=_0x486c96[_0x1c7a87(0xe9)][0x0];if(!_0x4270f4)throw CliErrors[_0x1c7a87(0xc6)](_0x1c7a87(0xf4),_0x1c7a87(0xe2)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x53930f}=await import('../../context.js'),{readCachedAppList:_0x4051fc}=await import(_0x1c7a87(0xba)),_0x3f0663=_0x53930f({}),_0x1a1ad7=_0x4051fc(_0x3f0663[_0x1c7a87(0xda)],_0x3f0663['accessKey']),_0x23c8c7=_0x1a1ad7?.[_0x1c7a87(0xf2)][_0x1c7a87(0xcd)](_0x300751=>_0x300751[_0x1c7a87(0xb0)]===_0x4270f4);if(!_0x23c8c7&&_0x3f0663[_0x1c7a87(0xc0)]!==_0x4270f4){const _0x2a6ee9=[..._0x1a1ad7?.[_0x1c7a87(0xf2)][_0x1c7a87(0xee)](_0x284900=>_0x284900['appName'])??[]],_0x461d5b=_0x2a6ee9[_0x1c7a87(0xc7)]===0x0?_0x1c7a87(0xb1)+CLI_BIN_NAME+_0x1c7a87(0xdb):_0x1c7a87(0xd4)+Array[_0x1c7a87(0xd1)](new Set(_0x2a6ee9))['join'](',\x20');throw CliErrors[_0x1c7a87(0xc6)]('App\x20\x22'+_0x4270f4+_0x1c7a87(0xf6),_0x461d5b);}const _0x125a46=_0x486c96['bool'](_0x1c7a87(0xfa));let _0xd9b23a;if(_0x125a46)_0xd9b23a={'global':!![]};else{const {isInProject:_0x26b641}=await import('../../context.js'),_0x21dd1d=_0x26b641();_0xd9b23a=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x1c7a87(0xbf),'inProject':_0x21dd1d}));}const _0x119698=readConfig(_0xd9b23a);return _0x119698[_0x1c7a87(0xc0)]=_0x4270f4,writeConfig(_0x119698,_0xd9b23a),{'ok':!![],'message':_0x1c7a87(0xca)+_0x4270f4+'\x22'+scopeLabel(_0xd9b23a)+'.'};}},importDef={'service':'app','command':a2_0x165ac0(0xb7),'description':a2_0x165ac0(0xc2),'risk':a2_0x165ac0(0xc9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4cc236){return await runInitImport(collectFlags(_0x4cc236,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x507dbd,_0x1b587e){const _0x106ce9=a3_0x3711,_0x2879a3=_0x507dbd();while(!![]){try{const _0x3459ee=parseInt(_0x106ce9(0x115))/0x1*(-parseInt(_0x106ce9(0x10c))/0x2)+parseInt(_0x106ce9(0x113))/0x3+-parseInt(_0x106ce9(0x10b))/0x4+-parseInt(_0x106ce9(0x111))/0x5+-parseInt(_0x106ce9(0x10e))/0x6+-parseInt(_0x106ce9(0x110))/0x7+parseInt(_0x106ce9(0x10d))/0x8;if(_0x3459ee===_0x1b587e)break;else _0x2879a3['push'](_0x2879a3['shift']());}catch(_0xea26af){_0x2879a3['push'](_0x2879a3['shift']());}}}(a3_0x460d,0xcc9b8));import{fileURLToPath}from'url';import{dirname,join}from'path';function a3_0x3711(_0x30ef82,_0x2c90b5){_0x30ef82=_0x30ef82-0x108;const _0x460d35=a3_0x460d();let _0x3711ac=_0x460d35[_0x30ef82];return _0x3711ac;}function a3_0x460d(){const _0x29adfa=['495716kDqBTh','3922gyyRbI','29025976LYRnIJ','9298452iMJABP','tableData','3172673xLeJLV','1074550Odxjjq','../../../mock/app-list.json','2143554Ajofjv','errorMsg','593HyjeUb','data','parse','Mock\x20API\x20error:\x20','success'];a3_0x460d=function(){return _0x29adfa;};return a3_0x460d();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1fa7dd=a3_0x3711,_0x5f0add=join(__dirname,_0x1fa7dd(0x112)),_0x1f4862=readFileSync(_0x5f0add,'utf-8');return JSON[_0x1fa7dd(0x108)](_0x1f4862);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x4d1600=a3_0x3711,_0x6ab4c2=getMockAppList();if(!_0x6ab4c2[_0x4d1600(0x10a)])throw new Error(_0x4d1600(0x109)+_0x6ab4c2[_0x4d1600(0x114)]+'\x20('+_0x6ab4c2['errorCode']+')');return _0x6ab4c2[_0x4d1600(0x116)][_0x4d1600(0x10f)];}
1
+ (function(_0x1b0268,_0x31ed2c){const _0x470c94=a3_0x4da2,_0x2c16c4=_0x1b0268();while(!![]){try{const _0x22dd32=-parseInt(_0x470c94(0x1b7))/0x1+parseInt(_0x470c94(0x1b8))/0x2*(-parseInt(_0x470c94(0x1c5))/0x3)+parseInt(_0x470c94(0x1c0))/0x4*(parseInt(_0x470c94(0x1c8))/0x5)+parseInt(_0x470c94(0x1c2))/0x6+-parseInt(_0x470c94(0x1c3))/0x7+-parseInt(_0x470c94(0x1c4))/0x8*(-parseInt(_0x470c94(0x1c1))/0x9)+-parseInt(_0x470c94(0x1bd))/0xa;if(_0x22dd32===_0x31ed2c)break;else _0x2c16c4['push'](_0x2c16c4['shift']());}catch(_0x173b65){_0x2c16c4['push'](_0x2c16c4['shift']());}}}(a3_0x1c89,0x904db));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x38df67=a3_0x4da2,_0x26743a=join(__dirname,_0x38df67(0x1bf)),_0x74327d=readFileSync(_0x26743a,_0x38df67(0x1bc));return JSON[_0x38df67(0x1ba)](_0x74327d);}let _cached=null;function a3_0x4da2(_0x2f3692,_0x486643){_0x2f3692=_0x2f3692-0x1b7;const _0x1c8970=a3_0x1c89();let _0x4da21c=_0x1c8970[_0x2f3692];return _0x4da21c;}function a3_0x1c89(){const _0xf406e8=['2gwYDyY','errorMsg','parse','success','utf-8','5070920ivLMuF','Mock\x20API\x20error:\x20','../../../mock/app-list.json','3321436ilYsVQ','162963KgPDhC','5936604cmBQUE','3836182ujgXDt','104kHlgcW','324651HXSxXp','tableData','data','5QjIxIg','300782KIDdKM'];a3_0x1c89=function(){return _0xf406e8;};return a3_0x1c89();}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x46b32f=a3_0x4da2,_0x4629e9=getMockAppList();if(!_0x4629e9[_0x46b32f(0x1bb)])throw new Error(_0x46b32f(0x1be)+_0x4629e9[_0x46b32f(0x1b9)]+'\x20('+_0x4629e9['errorCode']+')');return _0x4629e9[_0x46b32f(0x1c7)][_0x46b32f(0x1c6)];}
@@ -1 +1 @@
1
- (function(_0x4377f8,_0x350143){const _0x5d81cd=a4_0x4a50,_0x14421c=_0x4377f8();while(!![]){try{const _0x2c5598=-parseInt(_0x5d81cd(0x151))/0x1*(parseInt(_0x5d81cd(0x153))/0x2)+parseInt(_0x5d81cd(0x147))/0x3+-parseInt(_0x5d81cd(0x149))/0x4*(-parseInt(_0x5d81cd(0x14e))/0x5)+-parseInt(_0x5d81cd(0x152))/0x6+-parseInt(_0x5d81cd(0x148))/0x7+parseInt(_0x5d81cd(0x14a))/0x8*(parseInt(_0x5d81cd(0x14f))/0x9)+parseInt(_0x5d81cd(0x144))/0xa*(parseInt(_0x5d81cd(0x14b))/0xb);if(_0x2c5598===_0x350143)break;else _0x14421c['push'](_0x14421c['shift']());}catch(_0x5cacd0){_0x14421c['push'](_0x14421c['shift']());}}}(a4_0x4d5d,0x84e55));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_0x4d5d(){const _0xf8a836=['715788EGjahI','14uSkSXc','toISOString','3772310mTqpyV','mock','fetchedAt','219975ihxTEx','2870007NDdPaY','8LZZBJG','8FNWSQv','11mykGqF','toLowerCase','cache','2020185RPuVqd','7369794GtbqZY','trim','143408LEgvyp'];a4_0x4d5d=function(){return _0xf8a836;};return a4_0x4d5d();}export function shouldUseMockRemoteApps(){const _0x31bb67=a4_0x4a50,_0xa1deca=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x31bb67(0x150)]()[_0x31bb67(0x14c)]();return _0xa1deca===_0x31bb67(0x145);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x4a50(_0xcd46f5,_0x2b5383){_0xcd46f5=_0xcd46f5-0x144;const _0x4d5dc2=a4_0x4d5d();let _0x4a508e=_0x4d5dc2[_0xcd46f5];return _0x4a508e;}export async function getRemoteAppList(_0x4f814d){const _0x577fd9=a4_0x4a50,{env:_0x39428d,accessKey:_0x2b840f,localOnly:localOnly=![],noCache:noCache=![]}=_0x4f814d,_0x52efe9=readCachedAppList(_0x39428d,_0x2b840f),_0x4e6db2=_0x2b840f?.['trim']()?getAppCacheFilePath(_0x39428d,_0x2b840f):null;if(localOnly)return{'items':_0x52efe9?.['items']??[],'source':'cache','fetchedAt':_0x52efe9?.[_0x577fd9(0x146)]??null,'cachePath':_0x4e6db2};try{const _0x10b393=await getRemoteAppItems(),_0x266051=shouldUseMockRemoteApps()?_0x577fd9(0x145):'remote',_0x5bbda7=new Date()[_0x577fd9(0x154)](),_0x22d019=_0x2b840f?.['trim']()?writeCachedAppList(_0x39428d,_0x2b840f,{'env':_0x39428d,'fetchedAt':_0x5bbda7,'source':_0x266051,'items':_0x10b393}):null;return{'items':_0x10b393,'source':_0x266051,'fetchedAt':_0x5bbda7,'cachePath':_0x22d019};}catch(_0x12bb1f){if(!noCache&&_0x52efe9)return{'items':_0x52efe9['items'],'source':_0x577fd9(0x14d),'fetchedAt':_0x52efe9[_0x577fd9(0x146)],'cachePath':_0x4e6db2};throw _0x12bb1f;}}
1
+ (function(_0x30ba06,_0x2efb8e){const _0x1dd4f8=a4_0x3c26,_0x4351cd=_0x30ba06();while(!![]){try{const _0x51f2b5=-parseInt(_0x1dd4f8(0x1d4))/0x1*(-parseInt(_0x1dd4f8(0x1e3))/0x2)+parseInt(_0x1dd4f8(0x1e2))/0x3*(-parseInt(_0x1dd4f8(0x1e1))/0x4)+parseInt(_0x1dd4f8(0x1dd))/0x5*(-parseInt(_0x1dd4f8(0x1e5))/0x6)+-parseInt(_0x1dd4f8(0x1db))/0x7+parseInt(_0x1dd4f8(0x1de))/0x8*(-parseInt(_0x1dd4f8(0x1e6))/0x9)+parseInt(_0x1dd4f8(0x1d3))/0xa*(-parseInt(_0x1dd4f8(0x1d9))/0xb)+parseInt(_0x1dd4f8(0x1d6))/0xc;if(_0x51f2b5===_0x2efb8e)break;else _0x4351cd['push'](_0x4351cd['shift']());}catch(_0x24e90a){_0x4351cd['push'](_0x4351cd['shift']());}}}(a4_0x522b,0xae073));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a4_0x522b(){const _0x54e61e=['toISOString','84TKNHhb','45DNkKQM','20950NYaVvq','96374wzgXtF','trim','54515976gdMFLF','mock','toLowerCase','6655pksWsD','items','7723247khrfCA','cache','115095juwknJ','2020264lcEmFs','fetchedAt','remote','1039792VtEIfz','3gKrmhg','8pWOAXs'];a4_0x522b=function(){return _0x54e61e;};return a4_0x522b();}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0xf9c5bf=a4_0x3c26,_0x44e1a6=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0xf9c5bf(0x1d5)]()[_0xf9c5bf(0x1d8)]();return _0x44e1a6===_0xf9c5bf(0x1d7);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a4_0x3c26(_0x265113,_0x1c1e8b){_0x265113=_0x265113-0x1d3;const _0x522b9d=a4_0x522b();let _0x3c2647=_0x522b9d[_0x265113];return _0x3c2647;}export async function getRemoteAppList(_0x5bd4b5){const _0xc768ac=a4_0x3c26,{env:_0x390f88,accessKey:_0x36ee6f,localOnly:localOnly=![],noCache:noCache=![]}=_0x5bd4b5,_0x21c356=readCachedAppList(_0x390f88,_0x36ee6f),_0x3850c9=_0x36ee6f?.['trim']()?getAppCacheFilePath(_0x390f88,_0x36ee6f):null;if(localOnly)return{'items':_0x21c356?.['items']??[],'source':_0xc768ac(0x1dc),'fetchedAt':_0x21c356?.[_0xc768ac(0x1df)]??null,'cachePath':_0x3850c9};try{const _0x2e9dd9=await getRemoteAppItems(),_0x5d9892=shouldUseMockRemoteApps()?_0xc768ac(0x1d7):_0xc768ac(0x1e0),_0x7e5290=new Date()[_0xc768ac(0x1e4)](),_0x1bf88f=_0x36ee6f?.[_0xc768ac(0x1d5)]()?writeCachedAppList(_0x390f88,_0x36ee6f,{'env':_0x390f88,'fetchedAt':_0x7e5290,'source':_0x5d9892,'items':_0x2e9dd9}):null;return{'items':_0x2e9dd9,'source':_0x5d9892,'fetchedAt':_0x7e5290,'cachePath':_0x1bf88f};}catch(_0x309c07){if(!noCache&&_0x21c356)return{'items':_0x21c356[_0xc768ac(0x1da)],'source':_0xc768ac(0x1dc),'fetchedAt':_0x21c356[_0xc768ac(0x1df)],'cachePath':_0x3850c9};throw _0x309c07;}}
@@ -1 +1 @@
1
- (function(_0x296e28,_0x3149c4){const _0x570fc5=a5_0x49ad,_0x5b295d=_0x296e28();while(!![]){try{const _0x2e19cb=parseInt(_0x570fc5(0xda))/0x1+parseInt(_0x570fc5(0xdc))/0x2*(parseInt(_0x570fc5(0xdd))/0x3)+parseInt(_0x570fc5(0xe8))/0x4+-parseInt(_0x570fc5(0xe4))/0x5*(parseInt(_0x570fc5(0xe5))/0x6)+parseInt(_0x570fc5(0xe7))/0x7*(-parseInt(_0x570fc5(0xe2))/0x8)+-parseInt(_0x570fc5(0xdb))/0x9+parseInt(_0x570fc5(0xde))/0xa*(parseInt(_0x570fc5(0xe6))/0xb);if(_0x2e19cb===_0x3149c4)break;else _0x5b295d['push'](_0x5b295d['shift']());}catch(_0x147d84){_0x5b295d['push'](_0x5b295d['shift']());}}}(a5_0x5350,0xdd72c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0x49ad(_0x230f5a,_0x5e552b){_0x230f5a=_0x230f5a-0xd9;const _0x53505e=a5_0x5350();let _0x49adc7=_0x53505e[_0x230f5a];return _0x49adc7;}export function enrichAppListItemsWithMergedSelection(_0x29c26f,_0xbef144){const _0x27f068=a5_0x49ad;if(!_0xbef144)return;const _0x5b97bc=!!(_0xbef144['currentApp']??_0xbef144[_0x27f068(0xe1)]);for(const _0x4b1502 of _0x29c26f){_0x4b1502[_0x27f068(0xdf)]=![];}const _0x5801c0=_0xbef144[_0x27f068(0xea)]!=null?String(_0xbef144[_0x27f068(0xea)])[_0x27f068(0xe3)]():'';if(_0x5b97bc){const _0x4c7069=_0xbef144[_0x27f068(0xe9)]??_0xbef144[_0x27f068(0xe1)];if(_0x4c7069)for(const _0x11c366 of _0x29c26f){_0x11c366[_0x27f068(0xd9)]===!![]&&_0x11c366['name']===_0x4c7069&&(_0x11c366[_0x27f068(0xdf)]=!![]);}return;}if(!_0x5801c0)return;for(const _0x5c7ff8 of _0x29c26f){String(_0x5c7ff8['appcode']??'')[_0x27f068(0xe3)]()===_0x5801c0&&(_0x5c7ff8[_0x27f068(0xdf)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a5_0x5350(){const _0x13a4e8=['currentApp','appCode','named','939465KMtfFx','1775574lymKea','262FnklAq','17571YNjWrp','40CeTInx','isCurrent','project','defaultApp','8nImxVQ','trim','669855lUUnma','54pTjyWf','4661646xPaRVX','12056576ARscIb','2522276NQvsgR'];a5_0x5350=function(){return _0x13a4e8;};return a5_0x5350();}export function scopeLabel(_0x335368){const _0x5c604c=a5_0x49ad;return formatScopeLabel(_0x335368['global']?'global':_0x5c604c(0xe0));}
1
+ (function(_0x27623f,_0xcbda82){const _0x22c1c2=a5_0x34ca,_0x44b802=_0x27623f();while(!![]){try{const _0x3e8f78=parseInt(_0x22c1c2(0x132))/0x1*(parseInt(_0x22c1c2(0x138))/0x2)+parseInt(_0x22c1c2(0x130))/0x3+-parseInt(_0x22c1c2(0x12f))/0x4+parseInt(_0x22c1c2(0x13a))/0x5*(parseInt(_0x22c1c2(0x13b))/0x6)+-parseInt(_0x22c1c2(0x137))/0x7+parseInt(_0x22c1c2(0x133))/0x8*(-parseInt(_0x22c1c2(0x134))/0x9)+parseInt(_0x22c1c2(0x12e))/0xa;if(_0x3e8f78===_0xcbda82)break;else _0x44b802['push'](_0x44b802['shift']());}catch(_0x2cc455){_0x44b802['push'](_0x44b802['shift']());}}}(a5_0x4209,0x7abc1));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a5_0x4209(){const _0x2226e8=['414369ejwpBF','project','appCode','6769735nuWAWi','980708xHHdLK','name','275TWRJuD','32358xmcroX','global','trim','isCurrent','currentApp','13513330MOMTQY','3350364NIedhX','1474206ixgdzH','defaultApp','1iSFWrm','56SJdQQL'];a5_0x4209=function(){return _0x2226e8;};return a5_0x4209();}export{CLI_BIN_NAME};function a5_0x34ca(_0x424f11,_0x202f92){_0x424f11=_0x424f11-0x12c;const _0x4209f8=a5_0x4209();let _0x34ca50=_0x4209f8[_0x424f11];return _0x34ca50;}export function enrichAppListItemsWithMergedSelection(_0x469a12,_0x9ed944){const _0x157749=a5_0x34ca;if(!_0x9ed944)return;const _0x46adb2=!!(_0x9ed944[_0x157749(0x12d)]??_0x9ed944[_0x157749(0x131)]);for(const _0x154435 of _0x469a12){_0x154435[_0x157749(0x12c)]=![];}const _0x37968a=_0x9ed944[_0x157749(0x136)]!=null?String(_0x9ed944[_0x157749(0x136)])[_0x157749(0x13d)]():'';if(_0x46adb2){const _0x1844f5=_0x9ed944[_0x157749(0x12d)]??_0x9ed944[_0x157749(0x131)];if(_0x1844f5)for(const _0x25c4bc of _0x469a12){_0x25c4bc['named']===!![]&&_0x25c4bc[_0x157749(0x139)]===_0x1844f5&&(_0x25c4bc['isCurrent']=!![]);}return;}if(!_0x37968a)return;for(const _0xe429ca of _0x469a12){String(_0xe429ca['appcode']??'')[_0x157749(0x13d)]()===_0x37968a&&(_0xe429ca['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x38c1db){const _0x4da116=a5_0x34ca;return formatScopeLabel(_0x38c1db[_0x4da116(0x13c)]?_0x4da116(0x13c):_0x4da116(0x135));}
@@ -1 +1 @@
1
- const a6_0xb0b263=a6_0x149b;(function(_0x302d93,_0x2881ad){const _0x30872d=a6_0x149b,_0x356d41=_0x302d93();while(!![]){try{const _0x574f0c=-parseInt(_0x30872d(0x1ed))/0x1*(-parseInt(_0x30872d(0x1ff))/0x2)+-parseInt(_0x30872d(0x1ee))/0x3*(-parseInt(_0x30872d(0x1f7))/0x4)+parseInt(_0x30872d(0x20e))/0x5+parseInt(_0x30872d(0x204))/0x6*(-parseInt(_0x30872d(0x1fa))/0x7)+-parseInt(_0x30872d(0x1d4))/0x8+parseInt(_0x30872d(0x207))/0x9+-parseInt(_0x30872d(0x1dc))/0xa;if(_0x574f0c===_0x2881ad)break;else _0x356d41['push'](_0x356d41['shift']());}catch(_0x3f44c7){_0x356d41['push'](_0x356d41['shift']());}}}(a6_0x35d0,0x7e3c2));function a6_0x149b(_0x60d722,_0x32cbfb){_0x60d722=_0x60d722-0x1cd;const _0x35d0a0=a6_0x35d0();let _0x149bdb=_0x35d0a0[_0x60d722];return _0x149bdb;}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a6_0x35d0(){const _0x591778=['Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','status','2844fAIZjJ','init','access-key','8309ImJjOk','AccessKey\x20(ak_xxx...)','trim','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Option\x20A:\x20','1460DvMbEC','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','daily','length','str','750YBFvNu','Read\x20from\x20global\x20config\x20(default)','Shorthand\x20for\x20--access-key','4732713gaRFJd','\x20Verify:\x20','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','auth','push','Write\x20to\x20global\x20config\x20(default)','258180yQOjMw','accessKey','boolean','string','\x20(via\x20','AccessKey\x20saved\x20to\x20','write','project','read','nonInteractive','2325144hvynPI','repeat','development','production','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20status','test','10010760EAGGEQ','\x20Current\x20env:\x20','Then\x20verify\x20with:\x20','envName','env','global','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','bool','Then\x20run:\x20','join','cancelled','Option\x20C:\x20environment\x20variable','\x20config.\x20Nothing\x20to\x20clear.','Tip:\x20you\x20can\x20also\x20run:','global-default','\x20scope.','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','1102VcQunS','2427LSqpoe','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20Lovrabet\x20User\x20Center:','Invalid\x20accessKey\x20format:\x20\x22','slice'];a6_0x35d0=function(){return _0x591778;};return a6_0x35d0();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x202b31=a6_0x149b;writeCliSideChannelLine(_0x202b31(0x1f1)),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x202b31(0x1e9)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function resolveAuthScopeFlags(_0x4eaf09){const _0x3c8401=a6_0x149b;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4eaf09['bool']('global'),'explicitProject':_0x4eaf09[_0x3c8401(0x1e3)](_0x3c8401(0x1d1)),'policy':_0x3c8401(0x1ea)}));}async function resolveAuthWriteInput(_0xc96bcc){const _0x3f06a4=a6_0x149b;let _0x5280be=(_0xc96bcc[_0x3f06a4(0x203)]('access-key')||_0xc96bcc['str']('ak')||'')['trim']();const _0x571cfe=(_0xc96bcc['str']('env')||'')[_0x3f06a4(0x1fc)]();if(!_0x5280be&&!_0xc96bcc[_0x3f06a4(0x1d3)])try{showAccessKeyCreateHint(),_0x5280be=await promptAccessKey('');}catch(_0x53ab06){if(isAbortPrompt(_0x53ab06))throw CliErrors[_0x3f06a4(0x1e6)]();throw _0x53ab06;}if(!_0x5280be)throw CliErrors['validation']('Missing\x20accessKey.',['Create\x20one\x20in\x20Lovrabet\x20User\x20Center:\x20'+USER_ACCESS_KEY_CREATE_URL,_0x3f06a4(0x1e4)+CLI_BIN_NAME+_0x3f06a4(0x1fd)]['join']('\x0a'));if(!ACCESS_KEY_PATTERN[_0x3f06a4(0x1db)](_0x5280be))throw CliErrors['validation'](_0x3f06a4(0x1f2)+_0x5280be+'\x22',_0x3f06a4(0x1f4));if(!_0x571cfe)return{'accessKey':_0x5280be};const _0x56e0e3=normalizeEnv(_0x571cfe);return{'accessKey':_0x5280be,'env':isDaily(_0x56e0e3)?_0x3f06a4(0x201):isDev(_0x56e0e3)?_0x3f06a4(0x1d6):_0x3f06a4(0x1d7)};}export const authDefinitions=[{'service':a6_0xb0b263(0x20b),'command':'login','description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a6_0xb0b263(0x1d0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0xb0b263(0x1f9),'type':a6_0xb0b263(0x1cd),'description':a6_0xb0b263(0x1fb)},{'name':'ak','type':a6_0xb0b263(0x1cd),'description':a6_0xb0b263(0x206)},{'name':a6_0xb0b263(0x1e1),'type':'boolean','description':a6_0xb0b263(0x20d),'default':!![]},{'name':a6_0xb0b263(0x1d1),'type':a6_0xb0b263(0x210),'description':a6_0xb0b263(0x1ef),'default':![]}],async 'execute'(_0x2a4464){const _0x2b5b3e=a6_0xb0b263,_0x2a848c=await resolveAuthWriteInput(_0x2a4464),_0x20424f=resolveAuthScopeFlags(_0x2a4464),_0x19ef61=readScopedConfig(_0x20424f);_0x19ef61['accessKey']=_0x2a848c[_0x2b5b3e(0x20f)];_0x2a848c[_0x2b5b3e(0x1e0)]&&(_0x19ef61[_0x2b5b3e(0x1e0)]=_0x2a848c['env']);writeScopedConfig(_0x19ef61,_0x20424f);const _0x222c68=_0x20424f[_0x2b5b3e(0x1e1)]?_0x2b5b3e(0x1e1):_0x2b5b3e(0x1d1),_0x2ddd2b=_0x19ef61[_0x2b5b3e(0x1e0)]?_0x2b5b3e(0x1dd)+_0x19ef61['env']+'.':'';return{'ok':!![],'message':_0x2b5b3e(0x1cf)+_0x222c68+'\x20config.'+_0x2ddd2b+_0x2b5b3e(0x208)+CLI_BIN_NAME+_0x2b5b3e(0x1da)};}},{'service':a6_0xb0b263(0x20b),'command':a6_0xb0b263(0x1f8),'description':a6_0xb0b263(0x1e2),'risk':a6_0xb0b263(0x1d0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0xb0b263(0x1f9),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a6_0xb0b263(0x1cd),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a6_0xb0b263(0x1cd),'description':a6_0xb0b263(0x1f5)},{'name':a6_0xb0b263(0x1e1),'type':'boolean','description':a6_0xb0b263(0x20d),'default':!![]},{'name':a6_0xb0b263(0x1d1),'type':a6_0xb0b263(0x210),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4873ae){const _0x4ea11e=a6_0xb0b263,_0x1748cb=await resolveAuthWriteInput(_0x4873ae),_0x339774=resolveAuthScopeFlags(_0x4873ae),_0x1a6215={'accessKey':_0x1748cb[_0x4ea11e(0x20f)]};_0x1748cb[_0x4ea11e(0x1e0)]&&(_0x1a6215[_0x4ea11e(0x1e0)]=_0x1748cb['env']);writeScopedConfig(_0x1a6215,_0x339774);const _0x1b8f63=_0x339774[_0x4ea11e(0x1e1)]?_0x4ea11e(0x1e1):_0x4ea11e(0x1d1),_0x357686=_0x1a6215[_0x4ea11e(0x1e0)]?_0x4ea11e(0x1dd)+_0x1a6215[_0x4ea11e(0x1e0)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x1b8f63+_0x4ea11e(0x1eb)+_0x357686+_0x4ea11e(0x208)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0xb0b263(0x20b),'command':'logout','description':'Clear\x20accessKey\x20from\x20config','risk':a6_0xb0b263(0x1d0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a6_0xb0b263(0x210),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a6_0xb0b263(0x1d1),'type':a6_0xb0b263(0x210),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x2f9265){const _0x45ae69=a6_0xb0b263,_0x4800e7=resolveAuthScopeFlags(_0x2f9265),_0x3b901a=readScopedConfig(_0x4800e7),_0x17d29c=!!_0x3b901a[_0x45ae69(0x20f)];delete _0x3b901a[_0x45ae69(0x20f)],writeScopedConfig(_0x3b901a,_0x4800e7);const _0x420068=_0x4800e7[_0x45ae69(0x1e1)]?'global':_0x45ae69(0x1d1);if(_0x17d29c)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x420068+'\x20config.'};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x420068+_0x45ae69(0x1e8)};}},{'service':a6_0xb0b263(0x20b),'command':a6_0xb0b263(0x1f6),'description':'Show\x20current\x20authentication\x20status','risk':a6_0xb0b263(0x1d2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0xb0b263(0x1e1),'type':a6_0xb0b263(0x210),'description':a6_0xb0b263(0x205),'default':!![]},{'name':a6_0xb0b263(0x1d1),'type':a6_0xb0b263(0x210),'description':a6_0xb0b263(0x1d9),'default':![]}],async 'execute'(_0xc1f88){const _0x3c8dfd=a6_0xb0b263,_0x2ad3b3=resolveAuthScopeFlags(_0xc1f88),_0x947dad=readScopedConfig(_0x2ad3b3),_0x33930d=process.env.LOVRABET_ACCESS_KEY||undefined,_0x235c50=_0x947dad[_0x3c8dfd(0x20f)]||undefined,_0x14c6a3=_0x33930d||_0x235c50,_0x4196ff=_0x33930d?'LOVRABET_ACCESS_KEY\x20env\x20var':_0x235c50?(_0x2ad3b3[_0x3c8dfd(0x1e1)]?_0x3c8dfd(0x1e1):_0x3c8dfd(0x1d1))+_0x3c8dfd(0x1f0):null,_0x11f99c=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x14c6a3){const _0x58fab6=_0x14c6a3[_0x3c8dfd(0x202)]>0x8?''+_0x14c6a3[_0x3c8dfd(0x1f3)](0x0,0x8)+'*'[_0x3c8dfd(0x1d5)](_0x14c6a3[_0x3c8dfd(0x202)]-0x8):_0x14c6a3;_0x11f99c['push']('AccessKey:\x20'+_0x58fab6+(_0x4196ff?_0x3c8dfd(0x1ce)+_0x4196ff+')':''));}return!_0x14c6a3&&(_0x11f99c[_0x3c8dfd(0x20c)](''),_0x11f99c[_0x3c8dfd(0x20c)](_0x3c8dfd(0x20a)),_0x11f99c[_0x3c8dfd(0x20c)](''),_0x11f99c['push'](_0x3c8dfd(0x1fe)+CLI_BIN_NAME+_0x3c8dfd(0x209)),_0x11f99c[_0x3c8dfd(0x20c)](''),_0x11f99c['push'](_0x3c8dfd(0x200)),_0x11f99c[_0x3c8dfd(0x20c)](_0x3c8dfd(0x1d8)),_0x11f99c['push'](''),_0x11f99c[_0x3c8dfd(0x20c)](_0x3c8dfd(0x1e7)),_0x11f99c[_0x3c8dfd(0x20c)]('\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx'),_0x11f99c['push'](''),_0x11f99c['push'](_0x3c8dfd(0x1de)+CLI_BIN_NAME+_0x3c8dfd(0x1da)),_0x11f99c['push'](_0x3c8dfd(0x1ec)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x11f99c[_0x3c8dfd(0x1e5)]('\x0a')};}},{'service':a6_0xb0b263(0x20b),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0xb0b263(0x1d2),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3f6f2d){const _0x12be0f=a6_0xb0b263,_0x3488de=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3488de,'meta':{'env':_0x3f6f2d[_0x12be0f(0x1df)]??_0x12be0f(0x1d7)}}};}}];
1
+ const a6_0x1fe5b5=a6_0x1e61;(function(_0x45739f,_0x3ada61){const _0x367be9=a6_0x1e61,_0x2f7125=_0x45739f();while(!![]){try{const _0x5f5a16=parseInt(_0x367be9(0x20f))/0x1*(parseInt(_0x367be9(0x231))/0x2)+-parseInt(_0x367be9(0x229))/0x3+-parseInt(_0x367be9(0x1f1))/0x4*(-parseInt(_0x367be9(0x21d))/0x5)+-parseInt(_0x367be9(0x23c))/0x6*(-parseInt(_0x367be9(0x237))/0x7)+parseInt(_0x367be9(0x206))/0x8*(parseInt(_0x367be9(0x20e))/0x9)+-parseInt(_0x367be9(0x1f0))/0xa+-parseInt(_0x367be9(0x218))/0xb*(parseInt(_0x367be9(0x211))/0xc);if(_0x5f5a16===_0x3ada61)break;else _0x2f7125['push'](_0x2f7125['shift']());}catch(_0x167ddd){_0x2f7125['push'](_0x2f7125['shift']());}}}(a6_0x5d9a,0x36766));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x1e61(_0xcf1e36,_0x3098dd){_0xcf1e36=_0xcf1e36-0x1f0;const _0x5d9ad1=a6_0x5d9a();let _0x1e6145=_0x5d9ad1[_0xcf1e36];return _0x1e6145;}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x2a7470=a6_0x1e61;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20Lovrabet\x20User\x20Center:'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x2a7470(0x220));}function resolveAuthScopeFlags(_0x1be59a){const _0xdd5d4f=a6_0x1e61;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1be59a[_0xdd5d4f(0x222)]('global'),'explicitProject':_0x1be59a[_0xdd5d4f(0x222)](_0xdd5d4f(0x226)),'policy':_0xdd5d4f(0x235)}));}async function resolveAuthWriteInput(_0x5b181e){const _0x26f964=a6_0x1e61;let _0x3e900c=(_0x5b181e[_0x26f964(0x234)](_0x26f964(0x1fd))||_0x5b181e['str']('ak')||'')[_0x26f964(0x239)]();const _0x25ec84=(_0x5b181e[_0x26f964(0x234)]('env')||'')[_0x26f964(0x239)]();if(!_0x3e900c&&!_0x5b181e[_0x26f964(0x1f5)])try{showAccessKeyCreateHint(),_0x3e900c=await promptAccessKey('');}catch(_0x1d34de){if(isAbortPrompt(_0x1d34de))throw CliErrors[_0x26f964(0x207)]();throw _0x1d34de;}if(!_0x3e900c)throw CliErrors['validation'](_0x26f964(0x22f),[_0x26f964(0x213)+USER_ACCESS_KEY_CREATE_URL,_0x26f964(0x238)+CLI_BIN_NAME+_0x26f964(0x22e)][_0x26f964(0x23f)]('\x0a'));if(!ACCESS_KEY_PATTERN[_0x26f964(0x1f9)](_0x3e900c))throw CliErrors[_0x26f964(0x21a)](_0x26f964(0x1fb)+_0x3e900c+'\x22',_0x26f964(0x21f));if(!_0x25ec84)return{'accessKey':_0x3e900c};const _0x5c3071=normalizeEnv(_0x25ec84);return{'accessKey':_0x3e900c,'env':isDaily(_0x5c3071)?_0x26f964(0x1f7):isDev(_0x5c3071)?_0x26f964(0x205):_0x26f964(0x200)};}function a6_0x5d9a(){const _0x2a35f1=['\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Missing\x20accessKey.','logout','2WuTUxG','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20global\x20config\x20(default)','str','global-default','boolean','4823ROgRfM','Then\x20run:\x20','trim','Clear\x20from\x20global\x20config\x20(default)','\x20doctor','2016sMoVes','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','join','AccessKey\x20cleared\x20from\x20','3006400UAFldD','371096IgEQBe','slice','\x20Current\x20env:\x20','push','nonInteractive','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','daily','info','test','global','Invalid\x20accessKey\x20format:\x20\x22','\x20config.\x20Nothing\x20to\x20clear.','access-key','Option\x20A:\x20','AccessKey\x20(ak_xxx...)','production','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Option\x20C:\x20environment\x20variable','env','envName','development','96ZBcfQn','cancelled','\x20auth\x20status','length','\x20(via\x20','Auth\x20mode:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Verify:\x20','327384dsJhnN','372227jCRLqe','AccessKey\x20saved\x20to\x20','9924SqFBaN','Read\x20from\x20global\x20config\x20(default)','Create\x20one\x20in\x20Lovrabet\x20User\x20Center:\x20','LOVRABET_ACCESS_KEY\x20env\x20var','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','accessKey','Show\x20current\x20authentication\x20status','2563SFDUSS','Then\x20verify\x20with:\x20','validation','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','Shorthand\x20for\x20--access-key','5yeJbZg','auth','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20login\x20--access-key\x20<ak_xxx>','string','bool','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20config','login','project','Auth\x20config\x20reinitialized\x20in\x20','read','1249824PksFmi','write','\x20config.','repeat','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'];a6_0x5d9a=function(){return _0x2a35f1;};return a6_0x5d9a();}export const authDefinitions=[{'service':'auth','command':a6_0x1fe5b5(0x225),'description':a6_0x1fe5b5(0x1f6),'risk':a6_0x1fe5b5(0x22a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1fe5b5(0x1fd),'type':a6_0x1fe5b5(0x221),'description':a6_0x1fe5b5(0x1ff)},{'name':'ak','type':a6_0x1fe5b5(0x221),'description':a6_0x1fe5b5(0x21c)},{'name':a6_0x1fe5b5(0x1fa),'type':a6_0x1fe5b5(0x236),'description':a6_0x1fe5b5(0x233),'default':!![]},{'name':a6_0x1fe5b5(0x226),'type':a6_0x1fe5b5(0x236),'description':a6_0x1fe5b5(0x20c),'default':![]}],async 'execute'(_0x164639){const _0xff8124=a6_0x1fe5b5,_0x2ebf8f=await resolveAuthWriteInput(_0x164639),_0x41eb2e=resolveAuthScopeFlags(_0x164639),_0x51c3b3=readScopedConfig(_0x41eb2e);_0x51c3b3[_0xff8124(0x216)]=_0x2ebf8f[_0xff8124(0x216)];_0x2ebf8f[_0xff8124(0x203)]&&(_0x51c3b3['env']=_0x2ebf8f[_0xff8124(0x203)]);writeScopedConfig(_0x51c3b3,_0x41eb2e);const _0x1ea040=_0x41eb2e[_0xff8124(0x1fa)]?_0xff8124(0x1fa):_0xff8124(0x226),_0x2bf728=_0x51c3b3['env']?'\x20Current\x20env:\x20'+_0x51c3b3[_0xff8124(0x203)]+'.':'';return{'ok':!![],'message':_0xff8124(0x210)+_0x1ea040+'\x20config.'+_0x2bf728+_0xff8124(0x20d)+CLI_BIN_NAME+_0xff8124(0x208)};}},{'service':a6_0x1fe5b5(0x21e),'command':'init','description':a6_0x1fe5b5(0x23d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1fe5b5(0x1fd),'type':'string','description':a6_0x1fe5b5(0x1ff)},{'name':'ak','type':a6_0x1fe5b5(0x221),'description':'Shorthand\x20for\x20--access-key'},{'name':a6_0x1fe5b5(0x203),'type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a6_0x1fe5b5(0x1fa),'type':a6_0x1fe5b5(0x236),'description':a6_0x1fe5b5(0x233),'default':!![]},{'name':a6_0x1fe5b5(0x226),'type':a6_0x1fe5b5(0x236),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x771ad8){const _0x590aa1=a6_0x1fe5b5,_0x359814=await resolveAuthWriteInput(_0x771ad8),_0x7f799c=resolveAuthScopeFlags(_0x771ad8),_0x3b5096={'accessKey':_0x359814[_0x590aa1(0x216)]};_0x359814[_0x590aa1(0x203)]&&(_0x3b5096[_0x590aa1(0x203)]=_0x359814[_0x590aa1(0x203)]);writeScopedConfig(_0x3b5096,_0x7f799c);const _0x1afef2=_0x7f799c['global']?_0x590aa1(0x1fa):_0x590aa1(0x226),_0x5f19b0=_0x3b5096[_0x590aa1(0x203)]?_0x590aa1(0x1f3)+_0x3b5096['env']+'.':'';return{'ok':!![],'message':_0x590aa1(0x227)+_0x1afef2+'\x20scope.'+_0x5f19b0+_0x590aa1(0x20d)+CLI_BIN_NAME+_0x590aa1(0x208)};}},{'service':a6_0x1fe5b5(0x21e),'command':a6_0x1fe5b5(0x230),'description':'Clear\x20accessKey\x20from\x20config','risk':a6_0x1fe5b5(0x22a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1fe5b5(0x1fa),'type':a6_0x1fe5b5(0x236),'description':a6_0x1fe5b5(0x23a),'default':!![]},{'name':a6_0x1fe5b5(0x226),'type':a6_0x1fe5b5(0x236),'description':a6_0x1fe5b5(0x232),'default':![]}],async 'execute'(_0x58d8f5){const _0x398fab=a6_0x1fe5b5,_0x517946=resolveAuthScopeFlags(_0x58d8f5),_0x17f7f2=readScopedConfig(_0x517946),_0x92b394=!!_0x17f7f2[_0x398fab(0x216)];delete _0x17f7f2[_0x398fab(0x216)],writeScopedConfig(_0x17f7f2,_0x517946);const _0x2961b5=_0x517946[_0x398fab(0x1fa)]?_0x398fab(0x1fa):'project';if(_0x92b394)return{'ok':!![],'message':_0x398fab(0x240)+_0x2961b5+_0x398fab(0x22b)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x2961b5+_0x398fab(0x1fc)};}},{'service':a6_0x1fe5b5(0x21e),'command':'status','description':a6_0x1fe5b5(0x217),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x1fe5b5(0x1fa),'type':'boolean','description':a6_0x1fe5b5(0x212),'default':!![]},{'name':a6_0x1fe5b5(0x226),'type':'boolean','description':a6_0x1fe5b5(0x201),'default':![]}],async 'execute'(_0x167e8c){const _0x557576=a6_0x1fe5b5,_0x12c882=resolveAuthScopeFlags(_0x167e8c),_0x1f657e=readScopedConfig(_0x12c882),_0x414e78=process.env.LOVRABET_ACCESS_KEY||undefined,_0x336508=_0x1f657e[_0x557576(0x216)]||undefined,_0x1f3901=_0x414e78||_0x336508,_0x511f74=_0x414e78?_0x557576(0x214):_0x336508?(_0x12c882[_0x557576(0x1fa)]?_0x557576(0x1fa):_0x557576(0x226))+_0x557576(0x224):null,_0x1e8a96=[_0x557576(0x20b)+AUTH_MODE['ClientAk']];if(_0x1f3901){const _0x116899=_0x1f3901[_0x557576(0x209)]>0x8?''+_0x1f3901[_0x557576(0x1f2)](0x0,0x8)+'*'[_0x557576(0x22c)](_0x1f3901[_0x557576(0x209)]-0x8):_0x1f3901;_0x1e8a96[_0x557576(0x1f4)]('AccessKey:\x20'+_0x116899+(_0x511f74?_0x557576(0x20a)+_0x511f74+')':''));}return!_0x1f3901&&(_0x1e8a96['push'](''),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x22d)),_0x1e8a96[_0x557576(0x1f4)](''),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x1fe)+CLI_BIN_NAME+_0x557576(0x223)),_0x1e8a96[_0x557576(0x1f4)](''),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x21b)),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x215)),_0x1e8a96[_0x557576(0x1f4)](''),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x202)),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x23e)),_0x1e8a96[_0x557576(0x1f4)](''),_0x1e8a96[_0x557576(0x1f4)](_0x557576(0x219)+CLI_BIN_NAME+'\x20auth\x20status'),_0x1e8a96[_0x557576(0x1f4)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x557576(0x23b))),{'ok':!![],'message':_0x1e8a96[_0x557576(0x23f)]('\x0a')};}},{'service':a6_0x1fe5b5(0x21e),'command':a6_0x1fe5b5(0x1f8),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0x1fe5b5(0x228),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x19fee3){const _0x4797a5=a6_0x1fe5b5,_0x5de264=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x5de264,'meta':{'env':_0x19fee3[_0x4797a5(0x204)]??_0x4797a5(0x200)}}};}}];
@@ -1 +1 @@
1
- function a7_0x3a4e(){const _0x58be31=['1910769GHNIlY','stdin','40SzDqUo','trim','3257375pQdZLh','AbortPrompt','820998DfcLRV','1604208wPtDrG','name','580596AcDCQN','SIGINT','2lceYkU','close','112KsKNuj','stdout','1500480qGJuit','User\x20aborted\x20prompt','question','161340hRnWez','once'];a7_0x3a4e=function(){return _0x58be31;};return a7_0x3a4e();}(function(_0xbf241b,_0x229b9f){const _0x37ec9e=a7_0x35c2,_0x1724e2=_0xbf241b();while(!![]){try{const _0x3546af=parseInt(_0x37ec9e(0x1d9))/0x1+parseInt(_0x37ec9e(0x1db))/0x2*(parseInt(_0x37ec9e(0x1d0))/0x3)+parseInt(_0x37ec9e(0x1d7))/0x4+-parseInt(_0x37ec9e(0x1d4))/0x5+parseInt(_0x37ec9e(0x1ce))/0x6*(parseInt(_0x37ec9e(0x1dd))/0x7)+-parseInt(_0x37ec9e(0x1d2))/0x8*(parseInt(_0x37ec9e(0x1d6))/0x9)+-parseInt(_0x37ec9e(0x1df))/0xa;if(_0x3546af===_0x229b9f)break;else _0x1724e2['push'](_0x1724e2['shift']());}catch(_0x65037e){_0x1724e2['push'](_0x1724e2['shift']());}}}(a7_0x3a4e,0xc128a));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5ac566=a7_0x35c2;super(_0x5ac566(0x1e0)),this[_0x5ac566(0x1d8)]=_0x5ac566(0x1d5);}}function createSafeRl(){const _0x4bf545=a7_0x35c2,_0x3d0a75=createInterface({'input':process[_0x4bf545(0x1d1)],'output':process[_0x4bf545(0x1de)]});let _0x3110b2;const _0x2c192f=new Promise((_0x370b02,_0x199fc5)=>{const _0x451a1b=_0x4bf545;_0x3110b2=()=>{const _0x5b9a04=a7_0x35c2;_0x3110b2&&(_0x3d0a75['removeListener']('SIGINT',_0x3110b2),_0x3110b2=undefined);try{_0x3d0a75[_0x5b9a04(0x1dc)]();}catch{}_0x199fc5(new AbortPrompt());},_0x3d0a75[_0x451a1b(0x1cf)](_0x451a1b(0x1da),_0x3110b2);}),_0x95d0b0=()=>{const _0x46a6c7=_0x4bf545;_0x3110b2&&(_0x3d0a75['removeListener'](_0x46a6c7(0x1da),_0x3110b2),_0x3110b2=undefined);try{_0x3d0a75[_0x46a6c7(0x1dc)]();}catch{}};return{'rl':_0x3d0a75,'abortPromise':_0x2c192f,'disposeSuccess':_0x95d0b0};}function a7_0x35c2(_0x3db2bd,_0x4d41b0){_0x3db2bd=_0x3db2bd-0x1cd;const _0x3a4ebe=a7_0x3a4e();let _0x35c2e4=_0x3a4ebe[_0x3db2bd];return _0x35c2e4;}export async function promptAccessKey(_0x522b7b=''){const {rl:_0x21a5a1,abortPromise:_0x314ca3,disposeSuccess:_0x25f8f9}=createSafeRl(),_0x2abdec=new Promise(_0x360177=>{const _0x5f1f68=a7_0x35c2,_0x2d34ca=_0x522b7b?'AccessKey\x20('+_0x522b7b+'):\x20':'AccessKey\x20(paste\x20ak_...):\x20';_0x21a5a1[_0x5f1f68(0x1cd)](_0x2d34ca,_0x43a49b=>{const _0x568591=_0x5f1f68;_0x25f8f9(),_0x360177(_0x43a49b[_0x568591(0x1d3)]()||_0x522b7b);});});return Promise['race']([_0x2abdec,_0x314ca3]);}export function isAbortPrompt(_0x59a001){const _0x36b230=a7_0x35c2;return _0x59a001 instanceof Error&&_0x59a001[_0x36b230(0x1d8)]===_0x36b230(0x1d5);}
1
+ (function(_0x229edc,_0x127130){const _0x4e1ba5=a7_0x1b0a,_0x143f0e=_0x229edc();while(!![]){try{const _0x379e54=-parseInt(_0x4e1ba5(0xcb))/0x1+-parseInt(_0x4e1ba5(0xca))/0x2+-parseInt(_0x4e1ba5(0xc2))/0x3*(-parseInt(_0x4e1ba5(0xd1))/0x4)+parseInt(_0x4e1ba5(0xbd))/0x5+-parseInt(_0x4e1ba5(0xc8))/0x6*(-parseInt(_0x4e1ba5(0xcc))/0x7)+parseInt(_0x4e1ba5(0xc6))/0x8+-parseInt(_0x4e1ba5(0xc5))/0x9*(parseInt(_0x4e1ba5(0xc1))/0xa);if(_0x379e54===_0x127130)break;else _0x143f0e['push'](_0x143f0e['shift']());}catch(_0x5a1d33){_0x143f0e['push'](_0x143f0e['shift']());}}}(a7_0x1ff6,0x75f1d));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x11e498=a7_0x1b0a;super(_0x11e498(0xbc)),this[_0x11e498(0xce)]=_0x11e498(0xc9);}}function createSafeRl(){const _0x5143c9=a7_0x1b0a,_0x5302d0=createInterface({'input':process[_0x5143c9(0xc4)],'output':process[_0x5143c9(0xbf)]});let _0x5f5467;const _0x3579a7=new Promise((_0x4e0578,_0x346f2f)=>{const _0xa3a13=_0x5143c9;_0x5f5467=()=>{const _0x44a0a5=a7_0x1b0a;_0x5f5467&&(_0x5302d0[_0x44a0a5(0xc7)]('SIGINT',_0x5f5467),_0x5f5467=undefined);try{_0x5302d0[_0x44a0a5(0xcf)]();}catch{}_0x346f2f(new AbortPrompt());},_0x5302d0['once'](_0xa3a13(0xcd),_0x5f5467);}),_0x522d36=()=>{const _0x5be164=_0x5143c9;_0x5f5467&&(_0x5302d0[_0x5be164(0xc7)]('SIGINT',_0x5f5467),_0x5f5467=undefined);try{_0x5302d0[_0x5be164(0xcf)]();}catch{}};return{'rl':_0x5302d0,'abortPromise':_0x3579a7,'disposeSuccess':_0x522d36};}function a7_0x1b0a(_0x35faf8,_0x2a09e6){_0x35faf8=_0x35faf8-0xbc;const _0x1ff69f=a7_0x1ff6();let _0x1b0ae5=_0x1ff69f[_0x35faf8];return _0x1b0ae5;}function a7_0x1ff6(){const _0x11515b=['User\x20aborted\x20prompt','1375230mNXaCt','race','stdout','):\x20','7550DGZbkz','318522CVmntD','question','stdin','10251JZUPXm','6265008lLmaTQ','removeListener','40530GjTefR','AbortPrompt','541862daWUQU','149658EWHhwL','511LCalAF','SIGINT','name','close','trim','8dAloKY','AccessKey\x20('];a7_0x1ff6=function(){return _0x11515b;};return a7_0x1ff6();}export async function promptAccessKey(_0x283d46=''){const _0x21eff8=a7_0x1b0a,{rl:_0x1afac3,abortPromise:_0x547124,disposeSuccess:_0x18b11a}=createSafeRl(),_0x52925d=new Promise(_0x5e5490=>{const _0x42cf40=a7_0x1b0a,_0xc71ac2=_0x283d46?_0x42cf40(0xd2)+_0x283d46+_0x42cf40(0xc0):'AccessKey\x20(paste\x20ak_...):\x20';_0x1afac3[_0x42cf40(0xc3)](_0xc71ac2,_0x1be743=>{const _0x13bde1=_0x42cf40;_0x18b11a(),_0x5e5490(_0x1be743[_0x13bde1(0xd0)]()||_0x283d46);});});return Promise[_0x21eff8(0xbe)]([_0x52925d,_0x547124]);}export function isAbortPrompt(_0x1e0620){const _0x15a15d=a7_0x1b0a;return _0x1e0620 instanceof Error&&_0x1e0620[_0x15a15d(0xce)]===_0x15a15d(0xc9);}
@@ -1 +1 @@
1
- const a8_0x468300=a8_0x3b85;(function(_0x53aa57,_0xadf9b6){const _0x42ce49=a8_0x3b85,_0x58c4ff=_0x53aa57();while(!![]){try{const _0x93c098=-parseInt(_0x42ce49(0xa8))/0x1+-parseInt(_0x42ce49(0x9a))/0x2+parseInt(_0x42ce49(0xa7))/0x3+-parseInt(_0x42ce49(0xa6))/0x4+-parseInt(_0x42ce49(0xa3))/0x5+parseInt(_0x42ce49(0x9b))/0x6+parseInt(_0x42ce49(0xa0))/0x7*(parseInt(_0x42ce49(0x9e))/0x8);if(_0x93c098===_0xadf9b6)break;else _0x58c4ff['push'](_0x58c4ff['shift']());}catch(_0x5f244b){_0x58c4ff['push'](_0x58c4ff['shift']());}}}(a8_0x7157,0x39261));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x7157(){const _0x28e079=['1389425skqMoP','Get\x20BFF\x20script\x20details\x20by\x20ID','num','1495040MzTBpd','1270050KRcVlw','143591TbGVWL','Script\x20ID','(none)','scriptType','738224ICHeUj','73674mOoqeB','bff','appCode','13280bWXsrD','createdTime','4060oNBPri','updatedTime','functionName'];a8_0x7157=function(){return _0x28e079;};return a8_0x7157();}function a8_0x3b85(_0x34cfb3,_0x531219){_0x34cfb3=_0x34cfb3-0x99;const _0x71572b=a8_0x7157();let _0x3b850a=_0x71572b[_0x34cfb3];return _0x3b850a;}export const bffDetail={'service':a8_0x468300(0x9c),'command':'detail','description':a8_0x468300(0xa4),'risk':'read','flags':[{...ID_FLAG,'description':a8_0x468300(0xa9)},VERBOSE_FLAG],async 'execute'(_0x428eec){const _0x543d2e=a8_0x468300,_0x40365f=await getBffScriptInfo(_0x428eec[_0x543d2e(0xa5)]('id')),_0x4b28d9=_0x428eec['bool']('verbose');if(_0x4b28d9)return{'ok':!![],'data':_0x40365f};return{'ok':!![],'data':{'id':_0x40365f['id'],'appCode':_0x40365f[_0x543d2e(0x9d)],'functionName':_0x40365f[_0x543d2e(0xa2)]??'','scriptType':_0x40365f[_0x543d2e(0x99)],'description':_0x40365f['description']||_0x543d2e(0xaa),'createdTime':_0x40365f[_0x543d2e(0x9f)]??'','updatedTime':_0x40365f[_0x543d2e(0xa1)]??''}};}};
1
+ const a8_0x42d129=a8_0x5e36;(function(_0x556851,_0x3259c8){const _0x175b83=a8_0x5e36,_0x59eb5c=_0x556851();while(!![]){try{const _0x4ef05c=-parseInt(_0x175b83(0xdf))/0x1+parseInt(_0x175b83(0xce))/0x2*(parseInt(_0x175b83(0xd0))/0x3)+-parseInt(_0x175b83(0xcf))/0x4+parseInt(_0x175b83(0xd2))/0x5*(-parseInt(_0x175b83(0xcd))/0x6)+-parseInt(_0x175b83(0xdd))/0x7*(parseInt(_0x175b83(0xda))/0x8)+parseInt(_0x175b83(0xd6))/0x9*(parseInt(_0x175b83(0xcc))/0xa)+parseInt(_0x175b83(0xd5))/0xb;if(_0x4ef05c===_0x3259c8)break;else _0x59eb5c['push'](_0x59eb5c['shift']());}catch(_0x3b33a5){_0x59eb5c['push'](_0x59eb5c['shift']());}}}(a8_0x23e2,0xce53b));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x23e2(){const _0x200274=['description','6929705LfzsQo','scriptType','appCode','31151593EOARuC','10755nOItQx','(none)','Script\x20ID','Get\x20BFF\x20script\x20details\x20by\x20ID','309008hqolza','num','read','77PwBEks','bff','800608qOiNTn','functionName','6310THOmya','6kWlfQh','1844714zRRpEk','4207260GwmqJY','3tMlLiu'];a8_0x23e2=function(){return _0x200274;};return a8_0x23e2();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x5e36(_0x42ac20,_0x193cb6){_0x42ac20=_0x42ac20-0xcc;const _0x23e2b7=a8_0x23e2();let _0x5e36e0=_0x23e2b7[_0x42ac20];return _0x5e36e0;}export const bffDetail={'service':a8_0x42d129(0xde),'command':'detail','description':a8_0x42d129(0xd9),'risk':a8_0x42d129(0xdc),'flags':[{...ID_FLAG,'description':a8_0x42d129(0xd8)},VERBOSE_FLAG],async 'execute'(_0x2fcae7){const _0x5cc17e=a8_0x42d129,_0xc066f5=await getBffScriptInfo(_0x2fcae7[_0x5cc17e(0xdb)]('id')),_0x25c90c=_0x2fcae7['bool']('verbose');if(_0x25c90c)return{'ok':!![],'data':_0xc066f5};return{'ok':!![],'data':{'id':_0xc066f5['id'],'appCode':_0xc066f5[_0x5cc17e(0xd4)],'functionName':_0xc066f5[_0x5cc17e(0xe0)]??'','scriptType':_0xc066f5[_0x5cc17e(0xd3)],'description':_0xc066f5[_0x5cc17e(0xd1)]||_0x5cc17e(0xd7),'createdTime':_0xc066f5['createdTime']??'','updatedTime':_0xc066f5['updatedTime']??''}};}};
@@ -1 +1 @@
1
- const a9_0x2e6f2=a9_0x45a4;(function(_0x2b2a34,_0x58fc99){const _0xc79670=a9_0x45a4,_0x2265bf=_0x2b2a34();while(!![]){try{const _0x2792fd=parseInt(_0xc79670(0xdb))/0x1*(parseInt(_0xc79670(0xe4))/0x2)+-parseInt(_0xc79670(0xe5))/0x3+parseInt(_0xc79670(0xe1))/0x4*(parseInt(_0xc79670(0xe2))/0x5)+-parseInt(_0xc79670(0xe0))/0x6*(parseInt(_0xc79670(0xde))/0x7)+-parseInt(_0xc79670(0xdf))/0x8*(-parseInt(_0xc79670(0xdc))/0x9)+-parseInt(_0xc79670(0xdd))/0xa+parseInt(_0xc79670(0xe3))/0xb*(-parseInt(_0xc79670(0xe7))/0xc);if(_0x2792fd===_0x58fc99)break;else _0x2265bf['push'](_0x2265bf['shift']());}catch(_0x1513a5){_0x2265bf['push'](_0x2265bf['shift']());}}}(a9_0x1647,0x4a1d8));function a9_0x45a4(_0x4d4af2,_0x5dfe32){_0x4d4af2=_0x4d4af2-0xd9;const _0x16471b=a9_0x1647();let _0x45a45e=_0x16471b[_0x4d4af2];return _0x45a45e;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a9_0x1647(){const _0x56f838=['7yqRIEK','136tMHJCX','64716CkhMXE','8iUUDdp','79680VhAyHf','11iIlZyi','2FVnRzs','731766iOWQNc','BFF\x20executed\x20in\x20','594324iqElto','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','now','str','409873JKyhcL','307089SMUnKu','4139910CBKoYf'];a9_0x1647=function(){return _0x56f838;};return a9_0x1647();}export const bffExec={'service':'bff','command':'exec','description':a9_0x2e6f2(0xe8),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x3e1b9){const _0x39a665=a9_0x2e6f2,_0x1e9ef3=parseJsonParams(_0x3e1b9[_0x39a665(0xda)]('params')),_0xf65ad=Date['now'](),_0xe2c967=await executeSdkBff(_0x3e1b9['str']('name'),_0x1e9ef3),_0x1991be=Date[_0x39a665(0xd9)]()-_0xf65ad;return{'ok':!![],'data':{'result':_0xe2c967,'elapsed':_0x1991be},'message':_0x39a665(0xe6)+_0x1991be+'ms'};}};
1
+ const a9_0x476db1=a9_0x537f;(function(_0x50ca4b,_0x24eab0){const _0x297ea9=a9_0x537f,_0x11dd80=_0x50ca4b();while(!![]){try{const _0x3486e4=parseInt(_0x297ea9(0x1c8))/0x1*(-parseInt(_0x297ea9(0x1c7))/0x2)+-parseInt(_0x297ea9(0x1cc))/0x3+-parseInt(_0x297ea9(0x1cf))/0x4*(-parseInt(_0x297ea9(0x1cb))/0x5)+-parseInt(_0x297ea9(0x1d4))/0x6+parseInt(_0x297ea9(0x1d3))/0x7*(-parseInt(_0x297ea9(0x1d6))/0x8)+parseInt(_0x297ea9(0x1c5))/0x9+parseInt(_0x297ea9(0x1d5))/0xa*(parseInt(_0x297ea9(0x1ca))/0xb);if(_0x3486e4===_0x24eab0)break;else _0x11dd80['push'](_0x11dd80['shift']());}catch(_0x457724){_0x11dd80['push'](_0x11dd80['shift']());}}}(a9_0xfe2f,0xd7276));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a9_0xfe2f(){const _0x320953=['5073320kysXTv','1942008AXHhrQ','1420ZETIYX','16bhufXP','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','12629187WlZumW','name','10TXEkET','291488DkaoWD','str','292831lpRjzC','5zzibxt','4599702eJVSBz','now','params','1846828YmDWAZ','read','BFF\x20executed\x20in\x20','BFF\x20function\x20name\x20to\x20execute'];a9_0xfe2f=function(){return _0x320953;};return a9_0xfe2f();}function a9_0x537f(_0x1d7d87,_0x3e73bb){_0x1d7d87=_0x1d7d87-0x1c5;const _0xfe2f94=a9_0xfe2f();let _0x537f43=_0xfe2f94[_0x1d7d87];return _0x537f43;}export const bffExec={'service':'bff','command':'exec','description':a9_0x476db1(0x1d7),'risk':a9_0x476db1(0x1d0),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x476db1(0x1d2)},PARAMS_FLAG],async 'execute'(_0x280f39){const _0x45123e=a9_0x476db1,_0x289b2e=parseJsonParams(_0x280f39['str'](_0x45123e(0x1ce))),_0x559a6d=Date[_0x45123e(0x1cd)](),_0x2bc9ea=await executeSdkBff(_0x280f39[_0x45123e(0x1c9)](_0x45123e(0x1c6)),_0x289b2e),_0x151175=Date[_0x45123e(0x1cd)]()-_0x559a6d;return{'ok':!![],'data':{'result':_0x2bc9ea,'elapsed':_0x151175},'message':_0x45123e(0x1d1)+_0x151175+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x38a012,_0x1bea56){const _0x44ad1a=a10_0x2568,_0x44bd62=_0x38a012();while(!![]){try{const _0x4158fb=-parseInt(_0x44ad1a(0xf7))/0x1*(parseInt(_0x44ad1a(0xf6))/0x2)+-parseInt(_0x44ad1a(0xf8))/0x3*(-parseInt(_0x44ad1a(0xf9))/0x4)+-parseInt(_0x44ad1a(0x100))/0x5*(parseInt(_0x44ad1a(0xff))/0x6)+parseInt(_0x44ad1a(0xfc))/0x7+parseInt(_0x44ad1a(0xfe))/0x8*(-parseInt(_0x44ad1a(0xfb))/0x9)+parseInt(_0x44ad1a(0xfd))/0xa*(parseInt(_0x44ad1a(0xf4))/0xb)+-parseInt(_0x44ad1a(0xf5))/0xc*(parseInt(_0x44ad1a(0xfa))/0xd);if(_0x4158fb===_0x1bea56)break;else _0x44bd62['push'](_0x44bd62['shift']());}catch(_0x4cd814){_0x44bd62['push'](_0x44bd62['shift']());}}}(a10_0x385b,0x2af26));import{bffDetail}from'../../commands/bff/detail.js';function a10_0x2568(_0x357b50,_0x4aca85){_0x357b50=_0x357b50-0xf4;const _0x385b83=a10_0x385b();let _0x256852=_0x385b83[_0x357b50];return _0x256852;}import{bffExec}from'../../commands/bff/exec.js';function a10_0x385b(){const _0x292f51=['3524bwgROv','13foFtAU','253134WYaJYz','643923YUWaOr','2045040lflxZP','16eRajzb','67986zJWVKI','60mAuzEI','11IxGphK','927132lwxvjZ','2zNktsR','149757fKWMmO','1017COxtAV'];a10_0x385b=function(){return _0x292f51;};return a10_0x385b();}export const bffDefinitions=[bffDetail,bffExec];
1
+ function a10_0x53e7(_0x52ddb7,_0xa8c22c){_0x52ddb7=_0x52ddb7-0x1ae;const _0x4c2232=a10_0x4c22();let _0x53e7fd=_0x4c2232[_0x52ddb7];return _0x53e7fd;}(function(_0xaa010d,_0x21229c){const _0x438fc7=a10_0x53e7,_0x2fb679=_0xaa010d();while(!![]){try{const _0x521898=parseInt(_0x438fc7(0x1b5))/0x1*(-parseInt(_0x438fc7(0x1b4))/0x2)+parseInt(_0x438fc7(0x1b3))/0x3+parseInt(_0x438fc7(0x1b2))/0x4*(-parseInt(_0x438fc7(0x1b6))/0x5)+-parseInt(_0x438fc7(0x1af))/0x6+parseInt(_0x438fc7(0x1b7))/0x7+-parseInt(_0x438fc7(0x1b1))/0x8+parseInt(_0x438fc7(0x1ae))/0x9*(-parseInt(_0x438fc7(0x1b0))/0xa);if(_0x521898===_0x21229c)break;else _0x2fb679['push'](_0x2fb679['shift']());}catch(_0x132025){_0x2fb679['push'](_0x2fb679['shift']());}}}(a10_0x4c22,0x1df8c));function a10_0x4c22(){const _0xcdaac3=['234730jkIppN','1aDKdQl','5SRzwGW','1692439yOEfZn','190269LhCJAd','56772CeopZH','60HYcgQv','165752rOetqB','131492KCerNe','564756KnXYRl'];a10_0x4c22=function(){return _0xcdaac3;};return a10_0x4c22();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x502502,_0x5293a1){const _0x144a01=a11_0xdb18,_0x525d60=_0x502502();while(!![]){try{const _0x1f1ae5=-parseInt(_0x144a01(0x17a))/0x1+parseInt(_0x144a01(0x185))/0x2+-parseInt(_0x144a01(0x182))/0x3*(parseInt(_0x144a01(0x17e))/0x4)+-parseInt(_0x144a01(0x17d))/0x5*(-parseInt(_0x144a01(0x176))/0x6)+parseInt(_0x144a01(0x181))/0x7*(-parseInt(_0x144a01(0x183))/0x8)+parseInt(_0x144a01(0x188))/0x9+parseInt(_0x144a01(0x189))/0xa*(parseInt(_0x144a01(0x186))/0xb);if(_0x1f1ae5===_0x5293a1)break;else _0x525d60['push'](_0x525d60['shift']());}catch(_0x23a122){_0x525d60['push'](_0x525d60['shift']());}}}(a11_0x4158,0x40276));function a11_0xdb18(_0x34a527,_0x232984){_0x34a527=_0x34a527-0x176;const _0x415804=a11_0x4158();let _0xdb189b=_0x415804[_0x34a527];return _0xdb189b;}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{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(_0x32a098){const _0x288ba5=a11_0xdb18,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x359233}=_0x32a098;if(explicitGlobal&&explicitProject)throw CliErrors[_0x288ba5(0x178)](_0x288ba5(0x179),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x288ba5(0x17c);if(explicitProject)return'project';switch(_0x359233){case _0x288ba5(0x180):return _0x288ba5(0x17c);case _0x288ba5(0x184):return _0x32a098['inProject']??isInProject()?'project':'global';case'project-or-global-explicit':if(!(_0x32a098[_0x288ba5(0x187)]??isInProject()))throw CliErrors[_0x288ba5(0x178)](_0x288ba5(0x17f),_0x288ba5(0x177)+CLI_BIN_NAME+_0x288ba5(0x17b));return'project';}}export function toScopeFlags(_0x3b503f){const _0x4c51e3=a11_0xdb18;return{'global':_0x3b503f===_0x4c51e3(0x17c)};}export function formatScopeLabel(_0x428b4d){const _0x5213fd=a11_0xdb18;return _0x428b4d===_0x5213fd(0x17c)?'\x20(global)':'';}function a11_0x4158(){const _0x51232d=['validation','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','138860lJpHrN','\x20init`\x20first.','global','5gjWaRs','1580924qvPcVS','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','global-default','4039tHQRWp','3EItjje','640yIZHsH','project-default','208722bzBrgj','209FlDIVt','inProject','2274246vIyqBX','243370XtrXte','141402kfvwYp','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'];a11_0x4158=function(){return _0x51232d;};return a11_0x4158();}
1
+ (function(_0x57cc6b,_0xc4b21b){const _0x141b85=a11_0x2651,_0xdd8f76=_0x57cc6b();while(!![]){try{const _0x464d0d=-parseInt(_0x141b85(0xa5))/0x1*(parseInt(_0x141b85(0x9b))/0x2)+-parseInt(_0x141b85(0x9f))/0x3*(-parseInt(_0x141b85(0xa2))/0x4)+-parseInt(_0x141b85(0x9c))/0x5*(-parseInt(_0x141b85(0xab))/0x6)+parseInt(_0x141b85(0xac))/0x7*(-parseInt(_0x141b85(0xa9))/0x8)+-parseInt(_0x141b85(0xa1))/0x9*(parseInt(_0x141b85(0xa7))/0xa)+parseInt(_0x141b85(0x99))/0xb+parseInt(_0x141b85(0x9a))/0xc*(-parseInt(_0x141b85(0xa6))/0xd);if(_0x464d0d===_0xc4b21b)break;else _0xdd8f76['push'](_0xdd8f76['shift']());}catch(_0xb1309c){_0xdd8f76['push'](_0xdd8f76['shift']());}}}(a11_0x4e66,0x65bfd));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{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a11_0x2651(_0x4535e8,_0x5d51ca){_0x4535e8=_0x4535e8-0x99;const _0x4e66c0=a11_0x4e66();let _0x2651a3=_0x4e66c0[_0x4535e8];return _0x2651a3;}export function resolveConfigScope(_0x587664){const _0x1f0015=a11_0x2651,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x15a20c}=_0x587664;if(explicitGlobal&&explicitProject)throw CliErrors[_0x1f0015(0xa8)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return _0x1f0015(0xaa);switch(_0x15a20c){case'global-default':return'global';case'project-default':return _0x587664['inProject']??isInProject()?'project':'global';case _0x1f0015(0x9e):if(!(_0x587664[_0x1f0015(0x9d)]??isInProject()))throw CliErrors[_0x1f0015(0xa8)](_0x1f0015(0xa0),_0x1f0015(0xa3)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1f0015(0xaa);}}function a11_0x4e66(){const _0x300f29=['9dVGzZL','157172ySeCDa','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','global','204184BMZChz','76271GrbSGq','3518850zbKQez','validation','1584RbvrfW','project','30XNkdGj','3199tcOgKw','7250199FgKXqb','1956fzltuJ','2WruFZS','613965mCtzrd','inProject','project-or-global-explicit','57ZOGWnQ','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).'];a11_0x4e66=function(){return _0x300f29;};return a11_0x4e66();}export function toScopeFlags(_0x3f2676){return{'global':_0x3f2676==='global'};}export function formatScopeLabel(_0x1bde05){const _0x3bc592=a11_0x2651;return _0x1bde05===_0x3bc592(0xa4)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x512b06,_0x58b2db){const _0x4f751b=a12_0xc751,_0x1df387=_0x512b06();while(!![]){try{const _0x11119d=-parseInt(_0x4f751b(0x184))/0x1*(parseInt(_0x4f751b(0x178))/0x2)+-parseInt(_0x4f751b(0x172))/0x3*(-parseInt(_0x4f751b(0x17b))/0x4)+-parseInt(_0x4f751b(0x16e))/0x5+-parseInt(_0x4f751b(0x174))/0x6+parseInt(_0x4f751b(0x181))/0x7+-parseInt(_0x4f751b(0x16d))/0x8+parseInt(_0x4f751b(0x170))/0x9*(parseInt(_0x4f751b(0x180))/0xa);if(_0x11119d===_0x58b2db)break;else _0x1df387['push'](_0x1df387['shift']());}catch(_0xbe359){_0x1df387['push'](_0x1df387['shift']());}}}(a12_0x451e,0x5d500));import{CliErrors}from'../../errors.js';function a12_0x451e(){const _0x1e84da=['Provide\x20one\x20of:\x20','72EmFxAg','Exactly\x20one\x20of\x20','some','\x20is\x20allowed,\x20found:\x20',':\x20expected\x20','3520430LPYILy','1149442CWgmeQ','join','\x20is\x20required\x20for\x20`','31UcMIiZ','Use\x20only\x20one\x20of:\x20','1041488ipEQpG','360105weKOPl','validation','18BbmHps','test','104457KNzfaJ','map','4349016jFpgtP','\x20are\x20mutually\x20exclusive\x20for\x20`','length','Only\x20one\x20of\x20','11986lkhVTK','filter'];a12_0x451e=function(){return _0x1e84da;};return a12_0x451e();}function isSet(_0x328ad8,_0x3d90ac){const _0x286b78=_0x328ad8['flag'](_0x3d90ac);return _0x286b78!==undefined&&_0x286b78!==''&&_0x286b78!==![]&&_0x286b78!==0x0;}function fmtNames(_0x199355){const _0x20aff0=a12_0xc751;return _0x199355[_0x20aff0(0x173)](_0x162ce0=>'--'+_0x162ce0)[_0x20aff0(0x182)](',\x20');}export function requireOneOf(_0x4cc916,_0xa23c85,_0x5e14a3){const _0x5286c0=a12_0xc751,_0x1c6f66=_0xa23c85[_0x5286c0(0x179)](_0x5aa60b=>isSet(_0x4cc916,_0x5aa60b));if(_0x1c6f66['length']!==0x1)throw CliErrors[_0x5286c0(0x16f)](_0x1c6f66[_0x5286c0(0x176)]===0x0?_0x5286c0(0x17c)+fmtNames(_0xa23c85)+_0x5286c0(0x183)+_0x5e14a3+'`.':_0x5286c0(0x177)+fmtNames(_0xa23c85)+_0x5286c0(0x17e)+fmtNames(_0x1c6f66)+'.',_0x1c6f66[_0x5286c0(0x176)]===0x0?_0x5286c0(0x17a)+fmtNames(_0xa23c85):'Remove\x20all\x20but\x20one.');}function a12_0xc751(_0x3ef35a,_0x38bced){_0x3ef35a=_0x3ef35a-0x16c;const _0x451e3b=a12_0x451e();let _0xc7516=_0x451e3b[_0x3ef35a];return _0xc7516;}export function requireAnyOf(_0x52f794,_0x303bc0,_0x4e3af5){const _0x1a8812=a12_0xc751;if(!_0x303bc0[_0x1a8812(0x17d)](_0x37c730=>isSet(_0x52f794,_0x37c730)))throw CliErrors[_0x1a8812(0x16f)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x303bc0)+_0x1a8812(0x183)+_0x4e3af5+'`.',_0x1a8812(0x17a)+fmtNames(_0x303bc0));}export function mutuallyExclusive(_0x1c7fa3,_0x15036f,_0x2cff76){const _0x568c21=a12_0xc751,_0x58d633=_0x15036f['filter'](_0x2e3ce2=>isSet(_0x1c7fa3,_0x2e3ce2));if(_0x58d633[_0x568c21(0x176)]>0x1)throw CliErrors[_0x568c21(0x16f)]('Flags\x20'+fmtNames(_0x58d633)+_0x568c21(0x175)+_0x2cff76+'`.',_0x568c21(0x16c)+fmtNames(_0x15036f));}export function validatePattern(_0x5f28c7,_0x3fb338,_0x3219fd,_0x3e84b3){const _0x2315d9=a12_0xc751,_0xf69a5a=_0x5f28c7['str'](_0x3fb338);if(_0xf69a5a&&!_0x3219fd[_0x2315d9(0x171)](_0xf69a5a))throw CliErrors[_0x2315d9(0x16f)]('Invalid\x20--'+_0x3fb338+_0x2315d9(0x17f)+_0x3e84b3+',\x20got\x20\x22'+_0xf69a5a+'\x22.');}
1
+ (function(_0x544b79,_0x4604cf){const _0x11e567=a12_0x2891,_0x197168=_0x544b79();while(!![]){try{const _0x14cf31=-parseInt(_0x11e567(0xe9))/0x1*(parseInt(_0x11e567(0xdd))/0x2)+-parseInt(_0x11e567(0xe2))/0x3+-parseInt(_0x11e567(0xed))/0x4+-parseInt(_0x11e567(0xf0))/0x5*(parseInt(_0x11e567(0xf2))/0x6)+-parseInt(_0x11e567(0xde))/0x7+parseInt(_0x11e567(0xf5))/0x8+-parseInt(_0x11e567(0xf1))/0x9*(-parseInt(_0x11e567(0xf6))/0xa);if(_0x14cf31===_0x4604cf)break;else _0x197168['push'](_0x197168['shift']());}catch(_0x1d70cf){_0x197168['push'](_0x197168['shift']());}}}(a12_0x4fde,0x28696));function a12_0x2891(_0xa793dc,_0x1f1ac7){_0xa793dc=_0xa793dc-0xdc;const _0x4fdefb=a12_0x4fde();let _0x2891e4=_0x4fdefb[_0xa793dc];return _0x2891e4;}import{CliErrors}from'../../errors.js';function isSet(_0x403215,_0x5e64f5){const _0x40daa3=a12_0x2891,_0x681dc4=_0x403215[_0x40daa3(0xf4)](_0x5e64f5);return _0x681dc4!==undefined&&_0x681dc4!==''&&_0x681dc4!==![]&&_0x681dc4!==0x0;}function fmtNames(_0x48dd07){const _0x2cb6a1=a12_0x2891;return _0x48dd07[_0x2cb6a1(0xf3)](_0x3c9050=>'--'+_0x3c9050)[_0x2cb6a1(0xec)](',\x20');}export function requireOneOf(_0x26f7ad,_0x52b16,_0x119b38){const _0x374823=a12_0x2891,_0x3ec073=_0x52b16['filter'](_0x79f34c=>isSet(_0x26f7ad,_0x79f34c));if(_0x3ec073[_0x374823(0xee)]!==0x1)throw CliErrors[_0x374823(0xe8)](_0x3ec073[_0x374823(0xee)]===0x0?_0x374823(0xeb)+fmtNames(_0x52b16)+_0x374823(0xe3)+_0x119b38+'`.':_0x374823(0xe5)+fmtNames(_0x52b16)+_0x374823(0xe7)+fmtNames(_0x3ec073)+'.',_0x3ec073['length']===0x0?_0x374823(0xe6)+fmtNames(_0x52b16):_0x374823(0xef));}export function requireAnyOf(_0x55c016,_0x1ef2b8,_0x292a46){const _0x59b94e=a12_0x2891;if(!_0x1ef2b8['some'](_0x30e82d=>isSet(_0x55c016,_0x30e82d)))throw CliErrors[_0x59b94e(0xe8)](_0x59b94e(0xea)+fmtNames(_0x1ef2b8)+_0x59b94e(0xe3)+_0x292a46+'`.',_0x59b94e(0xe6)+fmtNames(_0x1ef2b8));}function a12_0x4fde(){const _0x2b76a7=['2612200XEfwtp','2930WNKnYH','Flags\x20','\x20are\x20mutually\x20exclusive\x20for\x20`','446174aAvMXi','1035230ckOrKP','Invalid\x20--','Use\x20only\x20one\x20of:\x20',':\x20expected\x20','46824AjjdAs','\x20is\x20required\x20for\x20`','filter','Only\x20one\x20of\x20','Provide\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','validation','1Smcoxg','At\x20least\x20one\x20of\x20','Exactly\x20one\x20of\x20','join','716892sBPCKS','length','Remove\x20all\x20but\x20one.','490335Gxiqwa','18459VRYaqw','12IJbSDV','map','flag'];a12_0x4fde=function(){return _0x2b76a7;};return a12_0x4fde();}export function mutuallyExclusive(_0x5432b7,_0x1391ad,_0x26077f){const _0x432d69=a12_0x2891,_0x37142f=_0x1391ad[_0x432d69(0xe4)](_0x241e53=>isSet(_0x5432b7,_0x241e53));if(_0x37142f[_0x432d69(0xee)]>0x1)throw CliErrors[_0x432d69(0xe8)](_0x432d69(0xf7)+fmtNames(_0x37142f)+_0x432d69(0xdc)+_0x26077f+'`.',_0x432d69(0xe0)+fmtNames(_0x1391ad));}export function validatePattern(_0x8e06ad,_0x26b3e7,_0x56a3d,_0x433069){const _0x113eb1=a12_0x2891,_0x2df65f=_0x8e06ad['str'](_0x26b3e7);if(_0x2df65f&&!_0x56a3d['test'](_0x2df65f))throw CliErrors[_0x113eb1(0xe8)](_0x113eb1(0xdf)+_0x26b3e7+_0x113eb1(0xe1)+_0x433069+',\x20got\x20\x22'+_0x2df65f+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x4abe66=a13_0x49ec;function a13_0xc637(){const _0x4a8281=['params','Resource\x20ID','3352200lCHMFV','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','2510VphiiO','37737ceCLtQ','string','3955832tUvMQh','208Agsblt','verbose','2325882IqLQck','1921310tEhDCM','name','11433RBHVke','3WoKaPq','number','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','78148ZGvGAj'];a13_0xc637=function(){return _0x4a8281;};return a13_0xc637();}(function(_0x136db5,_0x4e7148){const _0x5cd398=a13_0x49ec,_0xaa18a5=_0x136db5();while(!![]){try{const _0x4bb5e0=-parseInt(_0x5cd398(0x11a))/0x1+-parseInt(_0x5cd398(0x118))/0x2*(parseInt(_0x5cd398(0x11b))/0x3)+parseInt(_0x5cd398(0x129))/0x4+-parseInt(_0x5cd398(0x124))/0x5+parseInt(_0x5cd398(0x117))/0x6+parseInt(_0x5cd398(0x121))/0x7*(-parseInt(_0x5cd398(0x115))/0x8)+-parseInt(_0x5cd398(0x127))/0x9*(-parseInt(_0x5cd398(0x126))/0xa);if(_0x4bb5e0===_0x4e7148)break;else _0xaa18a5['push'](_0xaa18a5['shift']());}catch(_0x68494f){_0xaa18a5['push'](_0xaa18a5['shift']());}}}(a13_0xc637,0x79280));function a13_0x49ec(_0x281244,_0x5cf38c){_0x281244=_0x281244-0x115;const _0xc637f6=a13_0xc637();let _0x49ec66=_0xc637f6[_0x281244];return _0x49ec66;}export const CODE_FLAG={'name':a13_0x4abe66(0x11d),'type':'string','required':!![],'description':a13_0x4abe66(0x11e),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x4abe66(0x125)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a13_0x4abe66(0x128),'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_0x4abe66(0x120)}};export const VERBOSE_FLAG={'name':a13_0x4abe66(0x116),'type':'boolean','description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':a13_0x4abe66(0x122),'type':a13_0x4abe66(0x128),'description':a13_0x4abe66(0x11f)};export const NAME_FLAG={'name':a13_0x4abe66(0x119),'type':a13_0x4abe66(0x128),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a13_0x4abe66(0x11c),'required':!![],'description':a13_0x4abe66(0x123)};
1
+ const a13_0x2e6140=a13_0x3eab;(function(_0x500669,_0x243586){const _0x31432d=a13_0x3eab,_0x53f89b=_0x500669();while(!![]){try{const _0x4e057a=-parseInt(_0x31432d(0x1ea))/0x1*(-parseInt(_0x31432d(0x1e8))/0x2)+parseInt(_0x31432d(0x1fd))/0x3+parseInt(_0x31432d(0x1ed))/0x4*(parseInt(_0x31432d(0x1e7))/0x5)+parseInt(_0x31432d(0x1ee))/0x6*(-parseInt(_0x31432d(0x1f9))/0x7)+parseInt(_0x31432d(0x1f5))/0x8+parseInt(_0x31432d(0x1fa))/0x9*(parseInt(_0x31432d(0x1e4))/0xa)+-parseInt(_0x31432d(0x1f7))/0xb*(parseInt(_0x31432d(0x1eb))/0xc);if(_0x4e057a===_0x243586)break;else _0x53f89b['push'](_0x53f89b['shift']());}catch(_0x25f1cd){_0x53f89b['push'](_0x53f89b['shift']());}}}(a13_0x25e1,0x4c1d5));export const CODE_FLAG={'name':a13_0x2e6140(0x1fe),'type':a13_0x2e6140(0x1f6),'required':!![],'description':a13_0x2e6140(0x1e6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x2e6140(0x1fb)}};export const SQLCODE_FLAG={'name':a13_0x2e6140(0x1e5),'type':a13_0x2e6140(0x1f6),'required':!![],'description':a13_0x2e6140(0x1ef),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x2e6140(0x1e9)}};function a13_0x3eab(_0x43433b,_0x483e17){_0x43433b=_0x43433b-0x1e4;const _0x25e11e=a13_0x25e1();let _0x3eaba1=_0x25e11e[_0x43433b];return _0x3eaba1;}export const VERBOSE_FLAG={'name':a13_0x2e6140(0x1f3),'type':a13_0x2e6140(0x1f0),'description':a13_0x2e6140(0x1f1)};function a13_0x25e1(){const _0x2676f4=['number','262216LpCFVT','string','231dvOVhv','name','1832789KytCvH','9hSLgLq','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','Resource\x20name\x20for\x20lookup','1465881QgfYfx','code','5037380iHgJZh','sqlcode','Dataset\x20code\x20(32-char\x20hex\x20UUID)','806635qeJqUZ','348OkLaFN','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','291TmcrcA','471336gncgjJ','Resource\x20ID','8iwsVsi','6JCiIbN','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','boolean','Return\x20full\x20raw\x20response\x20object','params','verbose'];a13_0x25e1=function(){return _0x2676f4;};return a13_0x25e1();}export const PARAMS_FLAG={'name':a13_0x2e6140(0x1f2),'type':a13_0x2e6140(0x1f6),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a13_0x2e6140(0x1f8),'type':a13_0x2e6140(0x1f6),'description':a13_0x2e6140(0x1fc)};export const ID_FLAG={'name':'id','type':a13_0x2e6140(0x1f4),'required':!![],'description':a13_0x2e6140(0x1ec)};
@@ -1 +1 @@
1
- const a14_0x45993c=a14_0x1fd4;function a14_0x1fd4(_0x1db0ed,_0x2fb186){_0x1db0ed=_0x1db0ed-0x90;const _0x49e3a0=a14_0x49e3();let _0x1fd457=_0x49e3a0[_0x1db0ed];return _0x1fd457;}(function(_0x44664b,_0x5df3af){const _0x24a5be=a14_0x1fd4,_0x5597f6=_0x44664b();while(!![]){try{const _0xebfcc9=-parseInt(_0x24a5be(0xb6))/0x1*(parseInt(_0x24a5be(0xcf))/0x2)+-parseInt(_0x24a5be(0xbb))/0x3+-parseInt(_0x24a5be(0x92))/0x4+-parseInt(_0x24a5be(0x90))/0x5*(-parseInt(_0x24a5be(0xbf))/0x6)+parseInt(_0x24a5be(0xc4))/0x7+parseInt(_0x24a5be(0xb5))/0x8*(parseInt(_0x24a5be(0xc8))/0x9)+-parseInt(_0x24a5be(0x99))/0xa;if(_0xebfcc9===_0x5df3af)break;else _0x5597f6['push'](_0x5597f6['shift']());}catch(_0x5739c1){_0x5597f6['push'](_0x5597f6['shift']());}}}(a14_0x49e3,0xb85db));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_0x45993c(0xcd),'type':a14_0x45993c(0xa7),'description':'Write\x20to\x20global\x20config','default':![]},listDef={'service':a14_0x45993c(0xb8),'command':a14_0x45993c(0xb0),'description':a14_0x45993c(0xad),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x578fea){const _0x280f4=a14_0x45993c,{buildConfigFromFlags:_0x374daf}=await import('../../context.js'),_0x9e6390=_0x374daf({}),_0x2c4581=getProjectConfigPath(),_0x2131e9=resolveWriteConfigPath(_0x280f4(0xcd));if(_0x578fea[_0x280f4(0xb2)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x280f4(0x91)](_0x9e6390[_0x280f4(0xc5)],null,0x2)+'\x0a\x0a')+_0x280f4(0xb3)+(_0x280f4(0x97)+(_0x2c4581??_0x280f4(0x9e))+'\x0a')+(_0x280f4(0xa2)+_0x2131e9)};return{'ok':!![],'data':{'effective':_0x9e6390['raw'],'configFiles':{'project':_0x2c4581??null,'global':_0x2131e9}}};}},getDef={'service':'config','command':a14_0x45993c(0x9a),'description':a14_0x45993c(0xa5),'risk':a14_0x45993c(0xc7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x45993c(0xc2),'description':a14_0x45993c(0x96),'required':!![]}],'flags':[],async 'execute'(_0x45011e){const _0x450746=a14_0x45993c,_0x3f3c46=_0x45011e[_0x450746(0xa1)][0x0];if(!_0x3f3c46)throw CliErrors[_0x450746(0xc1)](_0x450746(0xbd),'Usage:\x20'+CLI_BIN_NAME+_0x450746(0xa8));const {buildConfigFromFlags:_0x40ae55}=await import(_0x450746(0xbe)),{raw:_0x94c605}=_0x40ae55({});if(_0x3f3c46['includes']('.')){const _0x3aeace=_0x3f3c46[_0x450746(0x94)]('.');let _0x4bc249=_0x94c605;for(const _0x2e34fc of _0x3aeace){if(_0x4bc249==null||typeof _0x4bc249!==_0x450746(0x9c))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x3f3c46);_0x4bc249=_0x4bc249[_0x2e34fc];}if(_0x4bc249===undefined)throw CliErrors['validation'](_0x450746(0xc9)+_0x3f3c46);return console[_0x450746(0xa9)](typeof _0x4bc249===_0x450746(0x9c)?JSON[_0x450746(0x91)](_0x4bc249,null,0x2):String(_0x4bc249)),{'ok':!![]};}const _0x5c349e=_0x94c605[_0x3f3c46];if(_0x5c349e===undefined)throw CliErrors[_0x450746(0xc1)]('Key\x20not\x20found:\x20'+_0x3f3c46);return console[_0x450746(0xa9)](typeof _0x5c349e===_0x450746(0x9c)?JSON[_0x450746(0x91)](_0x5c349e,null,0x2):String(_0x5c349e)),{'ok':!![]};}},setDef={'service':a14_0x45993c(0xb8),'command':a14_0x45993c(0xb1),'description':a14_0x45993c(0xba),'risk':a14_0x45993c(0xa4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x45993c(0xc2),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x45993c(0x9d),'description':a14_0x45993c(0xb9),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x65493e){const _0x1ef19e=a14_0x45993c,_0x5b06e1=_0x65493e[_0x1ef19e(0xa1)][0x0],_0x4ea040=_0x65493e[_0x1ef19e(0xa1)][0x1];if(!_0x5b06e1||_0x4ea040===undefined)throw CliErrors[_0x1ef19e(0xc1)](_0x1ef19e(0xb4),_0x1ef19e(0xc3)+CLI_BIN_NAME+_0x1ef19e(0x9b));if(ENUM_KEYS[_0x5b06e1]&&!ENUM_KEYS[_0x5b06e1][_0x1ef19e(0xcc)](_0x4ea040))throw CliErrors['validation'](_0x1ef19e(0xab)+_0x5b06e1+_0x1ef19e(0x93)+ENUM_KEYS[_0x5b06e1]['join'](',\x20'));if(_0x5b06e1===_0x1ef19e(0xac))throw CliErrors['validation'](_0x1ef19e(0xaf));if(_0x5b06e1==='pageSize'){const _0x4cc38d=Number(_0x4ea040);if(isNaN(_0x4cc38d)||_0x4cc38d<=0x0)throw CliErrors['validation'](_0x1ef19e(0xcb));}const _0x2ea385=resolveWriteScope({'explicitGlobal':_0x65493e[_0x1ef19e(0xca)](_0x1ef19e(0xcd)),'policy':_0x1ef19e(0xb7)}),_0x2e58cb=toScopeFlags(_0x2ea385),_0x20267b=readScopedConfig(_0x2e58cb);if(!isTopLevelConfigKey(_0x5b06e1))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x5b06e1+_0x1ef19e(0x98),_0x1ef19e(0xce)+getTopLevelConfigKeySummary());return _0x20267b[_0x5b06e1]=_0x5b06e1===_0x1ef19e(0xbc)?Number(_0x4ea040):_0x4ea040,console[_0x1ef19e(0xa9)](_0x1ef19e(0xa6)+_0x5b06e1+_0x1ef19e(0xc0)+_0x4ea040+'\x22'+(_0x2ea385===_0x1ef19e(0xcd)?_0x1ef19e(0x95):'')),writeScopedConfig(_0x20267b,_0x2e58cb),{'ok':!![]};}},deleteDef={'service':a14_0x45993c(0xb8),'command':a14_0x45993c(0xae),'description':a14_0x45993c(0x9f),'risk':a14_0x45993c(0xa4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x260145){const _0x17141d=a14_0x45993c,_0xe7bd64=_0x260145[_0x17141d(0xa1)][0x0];if(!_0xe7bd64)throw CliErrors[_0x17141d(0xc1)](_0x17141d(0xbd),_0x17141d(0xc3)+CLI_BIN_NAME+_0x17141d(0xaa));const _0x1c864d=resolveWriteScope({'explicitGlobal':_0x260145[_0x17141d(0xca)]('global'),'policy':'project-or-global-explicit'}),_0x44f91=toScopeFlags(_0x1c864d),_0x267483=readScopedConfig(_0x44f91);if(_0x267483[_0xe7bd64]===undefined)throw CliErrors[_0x17141d(0xc1)](_0x17141d(0xa3)+_0xe7bd64+_0x17141d(0xc6));return delete _0x267483[_0xe7bd64],console[_0x17141d(0xa9)](_0x17141d(0xa0)+_0xe7bd64+'`'+(_0x1c864d===_0x17141d(0xcd)?'\x20(global)':'')),writeScopedConfig(_0x267483,_0x44f91),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a14_0x49e3(){const _0x1f5627=['`\x20=\x20\x22','validation','key','Usage:\x20','8019347xaNKSg','raw','\x22\x20not\x20found\x20at\x20top\x20level.','read','3343581nbOzkv','Key\x20not\x20found:\x20','bool','pageSize\x20must\x20be\x20a\x20positive\x20number','includes','global','Settable\x20top-level\x20keys:\x20','7534jlgBvR','5SfiSQI','stringify','2905904iZvPdF','\x22.\x20Allowed:\x20','split','\x20(global)','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','\x20\x20project:\x20','\x22\x20is\x20not\x20settable.','4883970LUCWXP','get','\x20config\x20set\x20<key>\x20<value>\x20[--global]','object','value','(none)','Delete\x20a\x20config\x20value','Deleted\x20`','args','\x20\x20global:\x20\x20','Key\x20\x22','write','Get\x20a\x20config\x20value','Set\x20`','boolean','\x20config\x20get\x20<key>','log','\x20config\x20delete\x20<key>\x20[--global]','Invalid\x20value\x20for\x20\x22','riskLevel','List\x20current\x20config','delete','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','list','set','format','Config\x20files:\x0a','Missing\x20key\x20or\x20value.','8fRfsxv','1LBuWtQ','project-or-global-explicit','config','Value\x20to\x20assign','Set\x20a\x20config\x20value','349284trWQzZ','pageSize','Missing\x20key\x20argument.','../../context.js','3438606WDxesA'];a14_0x49e3=function(){return _0x1f5627;};return a14_0x49e3();}
1
+ const a14_0x3fa855=a14_0x3f05;(function(_0x24b791,_0xb2de27){const _0x1d5685=a14_0x3f05,_0x37a76b=_0x24b791();while(!![]){try{const _0x43e1ca=-parseInt(_0x1d5685(0x101))/0x1+-parseInt(_0x1d5685(0x12b))/0x2*(parseInt(_0x1d5685(0x10e))/0x3)+-parseInt(_0x1d5685(0x112))/0x4+parseInt(_0x1d5685(0x122))/0x5*(parseInt(_0x1d5685(0x126))/0x6)+-parseInt(_0x1d5685(0xfe))/0x7*(parseInt(_0x1d5685(0x118))/0x8)+parseInt(_0x1d5685(0x127))/0x9+-parseInt(_0x1d5685(0x12c))/0xa*(-parseInt(_0x1d5685(0x108))/0xb);if(_0x43e1ca===_0xb2de27)break;else _0x37a76b['push'](_0x37a76b['shift']());}catch(_0x1024bb){_0x37a76b['push'](_0x37a76b['shift']());}}}(a14_0x1821,0xcf38a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':'boolean','description':a14_0x3fa855(0x106),'default':![]},listDef={'service':a14_0x3fa855(0x10f),'command':a14_0x3fa855(0x117),'description':'List\x20current\x20config','risk':a14_0x3fa855(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x50e934){const _0x2f9fe4=a14_0x3fa855,{buildConfigFromFlags:_0x509398}=await import(_0x2f9fe4(0x105)),_0x377f90=_0x509398({}),_0x226b07=getProjectConfigPath(),_0x465d40=resolveWriteConfigPath(_0x2f9fe4(0x11a));if(_0x50e934['format']===_0x2f9fe4(0xfa))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x2f9fe4(0xf7)](_0x377f90['raw'],null,0x2)+'\x0a\x0a')+_0x2f9fe4(0x10c)+('\x20\x20project:\x20'+(_0x226b07??_0x2f9fe4(0x111))+'\x0a')+(_0x2f9fe4(0x107)+_0x465d40)};return{'ok':!![],'data':{'effective':_0x377f90[_0x2f9fe4(0x120)],'configFiles':{'project':_0x226b07??null,'global':_0x465d40}}};}},getDef={'service':a14_0x3fa855(0x10f),'command':a14_0x3fa855(0x125),'description':a14_0x3fa855(0x113),'risk':a14_0x3fa855(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a14_0x3fa855(0x104),'required':!![]}],'flags':[],async 'execute'(_0x59608a){const _0x5afba0=a14_0x3fa855,_0x5cf259=_0x59608a[_0x5afba0(0xf8)][0x0];if(!_0x5cf259)throw CliErrors[_0x5afba0(0x128)](_0x5afba0(0x129),_0x5afba0(0xf9)+CLI_BIN_NAME+_0x5afba0(0xf6));const {buildConfigFromFlags:_0x4450f4}=await import(_0x5afba0(0x105)),{raw:_0x223dee}=_0x4450f4({});if(_0x5cf259[_0x5afba0(0x110)]('.')){const _0x1b6789=_0x5cf259[_0x5afba0(0x103)]('.');let _0x17dad0=_0x223dee;for(const _0xa3f8fd of _0x1b6789){if(_0x17dad0==null||typeof _0x17dad0!==_0x5afba0(0x114))throw CliErrors['validation'](_0x5afba0(0x123)+_0x5cf259);_0x17dad0=_0x17dad0[_0xa3f8fd];}if(_0x17dad0===undefined)throw CliErrors[_0x5afba0(0x128)]('Key\x20not\x20found:\x20'+_0x5cf259);return console['log'](typeof _0x17dad0===_0x5afba0(0x114)?JSON['stringify'](_0x17dad0,null,0x2):String(_0x17dad0)),{'ok':!![]};}const _0x49ccc7=_0x223dee[_0x5cf259];if(_0x49ccc7===undefined)throw CliErrors[_0x5afba0(0x128)]('Key\x20not\x20found:\x20'+_0x5cf259);return console[_0x5afba0(0x12a)](typeof _0x49ccc7===_0x5afba0(0x114)?JSON['stringify'](_0x49ccc7,null,0x2):String(_0x49ccc7)),{'ok':!![]};}},setDef={'service':a14_0x3fa855(0x10f),'command':a14_0x3fa855(0x11b),'description':'Set\x20a\x20config\x20value','risk':a14_0x3fa855(0x11f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x3fa855(0x10d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x3fa855(0x11d),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2a4ca5){const _0x2ca084=a14_0x3fa855,_0x56b4ee=_0x2a4ca5[_0x2ca084(0xf8)][0x0],_0x4b8fc6=_0x2a4ca5[_0x2ca084(0xf8)][0x1];if(!_0x56b4ee||_0x4b8fc6===undefined)throw CliErrors[_0x2ca084(0x128)]('Missing\x20key\x20or\x20value.',_0x2ca084(0xf9)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x56b4ee]&&!ENUM_KEYS[_0x56b4ee][_0x2ca084(0x110)](_0x4b8fc6))throw CliErrors['validation'](_0x2ca084(0xff)+_0x56b4ee+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x56b4ee][_0x2ca084(0x100)](',\x20'));if(_0x56b4ee==='riskLevel')throw CliErrors['validation'](_0x2ca084(0x121));if(_0x56b4ee===_0x2ca084(0x11c)){const _0x5694f2=Number(_0x4b8fc6);if(isNaN(_0x5694f2)||_0x5694f2<=0x0)throw CliErrors[_0x2ca084(0x128)](_0x2ca084(0x10b));}const _0x54a8e2=resolveWriteScope({'explicitGlobal':_0x2a4ca5[_0x2ca084(0xfb)](_0x2ca084(0x11a)),'policy':'project-or-global-explicit'}),_0xc5a193=toScopeFlags(_0x54a8e2),_0x41f5d4=readScopedConfig(_0xc5a193);if(!isTopLevelConfigKey(_0x56b4ee))throw CliErrors[_0x2ca084(0x128)](_0x2ca084(0x102)+_0x56b4ee+_0x2ca084(0x124),_0x2ca084(0x109)+getTopLevelConfigKeySummary());return _0x41f5d4[_0x56b4ee]=_0x56b4ee===_0x2ca084(0x11c)?Number(_0x4b8fc6):_0x4b8fc6,console[_0x2ca084(0x12a)](_0x2ca084(0x12d)+_0x56b4ee+_0x2ca084(0x12e)+_0x4b8fc6+'\x22'+(_0x54a8e2===_0x2ca084(0x11a)?'\x20(global)':'')),writeScopedConfig(_0x41f5d4,_0xc5a193),{'ok':!![]};}},deleteDef={'service':a14_0x3fa855(0x10f),'command':a14_0x3fa855(0x11e),'description':a14_0x3fa855(0x10a),'risk':a14_0x3fa855(0x11f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x3fa855(0x10d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4690ad){const _0x1c3cd1=a14_0x3fa855,_0x37232d=_0x4690ad[_0x1c3cd1(0xf8)][0x0];if(!_0x37232d)throw CliErrors[_0x1c3cd1(0x128)](_0x1c3cd1(0x129),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x4a5ba6=resolveWriteScope({'explicitGlobal':_0x4690ad[_0x1c3cd1(0xfb)](_0x1c3cd1(0x11a)),'policy':_0x1c3cd1(0x119)}),_0x37b954=toScopeFlags(_0x4a5ba6),_0x329965=readScopedConfig(_0x37b954);if(_0x329965[_0x37232d]===undefined)throw CliErrors[_0x1c3cd1(0x128)](_0x1c3cd1(0x115)+_0x37232d+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x329965[_0x37232d],console[_0x1c3cd1(0x12a)](_0x1c3cd1(0x116)+_0x37232d+'`'+(_0x4a5ba6==='global'?_0x1c3cd1(0xfc):'')),writeScopedConfig(_0x329965,_0x37b954),{'ok':!![]};}};function a14_0x3f05(_0x174a4f,_0x133a24){_0x174a4f=_0x174a4f-0xf6;const _0x18211c=a14_0x1821();let _0x3f0545=_0x18211c[_0x174a4f];return _0x3f0545;}function a14_0x1821(){const _0x2885af=['pretty','bool','\x20(global)','read','329KtNnwc','Invalid\x20value\x20for\x20\x22','join','178962rRmMua','Top-level\x20key\x20\x22','split','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','../../context.js','Write\x20to\x20global\x20config','\x20\x20global:\x20\x20','15422AdNsZG','Settable\x20top-level\x20keys:\x20','Delete\x20a\x20config\x20value','pageSize\x20must\x20be\x20a\x20positive\x20number','Config\x20files:\x0a','key','111417muClSa','config','includes','(none)','3722168UUGFDP','Get\x20a\x20config\x20value','object','Key\x20\x22','Deleted\x20`','list','213848gIexyz','project-or-global-explicit','global','set','pageSize','value','delete','write','raw','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','28925hbFQwH','Key\x20not\x20found:\x20','\x22\x20is\x20not\x20settable.','get','42AoTRTM','2944305tKiiLm','validation','Missing\x20key\x20argument.','log','34qajnfL','24810WTKkqp','Set\x20`','`\x20=\x20\x22','\x20config\x20get\x20<key>','stringify','args','Usage:\x20'];a14_0x1821=function(){return _0x2885af;};return a14_0x1821();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x232dd2,_0x4169f3){var _0x34bc5d=a15_0x55ac,_0x5ef388=_0x232dd2();while(!![]){try{var _0xba3447=-parseInt(_0x34bc5d(0x117))/0x1+parseInt(_0x34bc5d(0x11c))/0x2*(parseInt(_0x34bc5d(0x115))/0x3)+parseInt(_0x34bc5d(0x11e))/0x4*(parseInt(_0x34bc5d(0x11d))/0x5)+parseInt(_0x34bc5d(0x116))/0x6*(parseInt(_0x34bc5d(0x11a))/0x7)+parseInt(_0x34bc5d(0x119))/0x8+-parseInt(_0x34bc5d(0x11f))/0x9*(parseInt(_0x34bc5d(0x11b))/0xa)+parseInt(_0x34bc5d(0x118))/0xb;if(_0xba3447===_0x4169f3)break;else _0x5ef388['push'](_0x5ef388['shift']());}catch(_0x33ca4f){_0x5ef388['push'](_0x5ef388['shift']());}}}(a15_0x5bfb,0xa0606));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a15_0x5bfb(){var _0x3f48ac=['56PRovbx','20uPahnm','70220UDPbqf','20rXNrip','255768EQEvkv','2364399xkodBA','57CmWJTf','431052jEDmjF','886389VZVGCA','1953842JRrbRk','3147976puLSiM'];a15_0x5bfb=function(){return _0x3f48ac;};return a15_0x5bfb();}function a15_0x55ac(_0xe57b0a,_0x5a2f9b){_0xe57b0a=_0xe57b0a-0x115;var _0x5bfbfd=a15_0x5bfb();var _0x55ac6f=_0x5bfbfd[_0xe57b0a];return _0x55ac6f;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x1155a1,_0x457501){var _0x5f3413=a15_0x40cb,_0x84db04=_0x1155a1();while(!![]){try{var _0x274eb0=-parseInt(_0x5f3413(0x183))/0x1*(parseInt(_0x5f3413(0x182))/0x2)+parseInt(_0x5f3413(0x179))/0x3+-parseInt(_0x5f3413(0x17d))/0x4*(-parseInt(_0x5f3413(0x180))/0x5)+-parseInt(_0x5f3413(0x181))/0x6*(parseInt(_0x5f3413(0x17f))/0x7)+-parseInt(_0x5f3413(0x17a))/0x8*(-parseInt(_0x5f3413(0x17c))/0x9)+-parseInt(_0x5f3413(0x17e))/0xa+parseInt(_0x5f3413(0x17b))/0xb;if(_0x274eb0===_0x457501)break;else _0x84db04['push'](_0x84db04['shift']());}catch(_0x31c318){_0x84db04['push'](_0x84db04['shift']());}}}(a15_0xd2c5,0x814e8));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a15_0x40cb(_0x2e6e2f,_0x118e13){_0x2e6e2f=_0x2e6e2f-0x179;var _0xd2c5f3=a15_0xd2c5();var _0x40cb5a=_0xd2c5f3[_0x2e6e2f];return _0x40cb5a;}function a15_0xd2c5(){var _0x444f4e=['110857CREJNq','794985ZBHgCx','536KjsvFz','4391035kyVCyp','74925ZVSIMU','187048htvfTg','1540870gIXkwJ','234409maYHgT','110ZqwOYJ','102Daglge','18IsuFLA'];a15_0xd2c5=function(){return _0x444f4e;};return a15_0xd2c5();}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';