@lovrabet/lovrabet-cli 2.0.3 → 2.0.4-beta.0

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 +6 -6
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x5b7f(){const _0x409a44=['catch','\x0aCancelled.\x0a','6FRQIGP','62MGaQgm','Unexpected\x20error:','388JbHSEO','ExitPromptError','1161AYazjn','input','cancelled',':\x20--','error','11780760gqUKXW','hint','./framework/preparse.js','ERR_USE_AFTER_CLOSE','Hint:\x20','9904oRwgQo','log','24952UBAOYJ','help','[preparse]\x20','write','assign','exitCode','exit','defaultCommand','message','3754190OmAnjD','original','543EWTgbs','stderr','22oTtoFm','corrected','580671AGWOKN','\x20->\x20--','handler','flags','6070490EaNaif','name'];a0_0x5b7f=function(){return _0x409a44;};return a0_0x5b7f();}const a0_0x346722=a0_0x49b2;(function(_0x3deeca,_0x4cf1af){const _0x2604ea=a0_0x49b2,_0x30ce9e=_0x3deeca();while(!![]){try{const _0xb6a5c=parseInt(_0x2604ea(0xaa))/0x1*(parseInt(_0x2604ea(0x9c))/0x2)+-parseInt(_0x2604ea(0x8f))/0x3*(-parseInt(_0x2604ea(0x9e))/0x4)+parseInt(_0x2604ea(0xb5))/0x5*(parseInt(_0x2604ea(0x9b))/0x6)+parseInt(_0x2604ea(0x93))/0x7+parseInt(_0x2604ea(0xac))/0x8*(-parseInt(_0x2604ea(0xa0))/0x9)+-parseInt(_0x2604ea(0x97))/0xa*(-parseInt(_0x2604ea(0x91))/0xb)+-parseInt(_0x2604ea(0xa5))/0xc;if(_0xb6a5c===_0x4cf1af)break;else _0x30ce9e['push'](_0x30ce9e['shift']());}catch(_0x425d0f){_0x30ce9e['push'](_0x30ce9e['shift']());}}}(a0_0x5b7f,0xf14e5));import{jsx as a0_0x52dd65}from'react/jsx-runtime';import a0_0x1f1260 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_0x1f1260(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x346722(0x99)](handleError);function a0_0x49b2(_0x23047a,_0x5abb3a){_0x23047a=_0x23047a-0x8e;const _0x5b7f1d=a0_0x5b7f();let _0x49b2b7=_0x5b7f1d[_0x23047a];return _0x49b2b7;}async function main(){try{await run();}catch(_0xfcc216){handleError(_0xfcc216);}}async function run(){const _0x5766a0=a0_0x346722;let _0x5ad983=cli[_0x5766a0(0xa1)][0x0],_0x51504e=cli['input'][0x1];const _0x17c09a=cli[_0x5766a0(0x96)];try{const {correctFlags:_0x13274b}=await import(_0x5766a0(0xa7)),_0x4e09cc=getAllDefinitions()['flatMap'](_0x3c74da=>_0x3c74da[_0x5766a0(0x96)]??[]),{flags:_0x1934d3,corrections:_0x19f002}=_0x13274b(_0x17c09a,_0x4e09cc);if(_0x19f002['length']>0x0){for(const _0x4f0237 of _0x19f002){process['stderr'][_0x5766a0(0xaf)](_0x5766a0(0xae)+_0x4f0237[_0x5766a0(0x95)]+_0x5766a0(0xa3)+_0x4f0237[_0x5766a0(0x8e)]+_0x5766a0(0x94)+_0x4f0237[_0x5766a0(0x92)]+'\x0a');}Object[_0x5766a0(0xb0)](_0x17c09a,_0x1934d3);}}catch{}if(!_0x5ad983||!isKnownService(_0x5ad983)){const {waitUntilExit:_0x4a71fc}=render(a0_0x52dd65(Help,{}));await _0x4a71fc();return;}const _0x33109d=getServiceEntry(_0x5ad983);if(!_0x51504e){if(_0x17c09a[_0x5766a0(0xad)]){console[_0x5766a0(0xab)](generateServiceHelp(_0x5ad983));return;}if(_0x33109d[_0x5766a0(0xb3)])_0x51504e=_0x33109d[_0x5766a0(0xb3)];else{console['log'](generateServiceHelp(_0x5ad983));return;}}const _0x3fac09=findDefinition(_0x5ad983,_0x51504e);!_0x3fac09&&(console[_0x5766a0(0xab)](generateServiceHelp(_0x5ad983)),handleError(CliErrors['unknownCommand'](_0x5ad983+'\x20'+_0x51504e)));if(_0x17c09a[_0x5766a0(0xad)]){console[_0x5766a0(0xab)](generateCommandHelp(_0x3fac09));return;}const _0x15eb36=buildConfigFromFlags(_0x17c09a);await initGlobalEnvironment(_0x15eb36);const _0x4dcc40=createPipelineEnv(_0x15eb36,_0x17c09a);_0x4dcc40['args']=cli[_0x5766a0(0xa1)]['slice'](0x2),await runCommand(_0x3fac09,_0x4dcc40);}function handleError(_0x5006c9){const _0x207018=a0_0x346722;if(_0x5006c9 instanceof CliError){_0x5006c9['code']===_0x207018(0xa2)&&(process[_0x207018(0x90)][_0x207018(0xaf)](_0x207018(0x9a)),process[_0x207018(0xb2)](0x0));console[_0x207018(0xa4)]('Error:\x20'+_0x5006c9[_0x207018(0xb4)]);if(_0x5006c9[_0x207018(0xa6)])console[_0x207018(0xa4)](_0x207018(0xa9)+_0x5006c9[_0x207018(0xa6)]);process[_0x207018(0xb2)](_0x5006c9[_0x207018(0xb1)]);}isUserCancellation(_0x5006c9)&&(process[_0x207018(0x90)][_0x207018(0xaf)]('\x0aCancelled.\x0a'),process['exit'](0x0)),console[_0x207018(0xa4)](_0x207018(0x9d),_0x5006c9),process[_0x207018(0xb2)](0x1);}function isUserCancellation(_0x413f70){const _0x5d4d6d=a0_0x346722;if(!(_0x413f70 instanceof Error))return![];if(_0x413f70[_0x5d4d6d(0x98)]===_0x5d4d6d(0x9f))return!![];if(_0x413f70['code']===_0x5d4d6d(0xa8))return!![];if(_0x413f70['code']==='ERR_STREAM_DESTROYED')return!![];return![];}
2
+ const a0_0x234c34=a0_0x2dca;(function(_0x41636e,_0x26b57e){const _0x96caca=a0_0x2dca,_0x531236=_0x41636e();while(!![]){try{const _0x247383=-parseInt(_0x96caca(0x17f))/0x1+parseInt(_0x96caca(0x177))/0x2*(-parseInt(_0x96caca(0x182))/0x3)+parseInt(_0x96caca(0x199))/0x4*(-parseInt(_0x96caca(0x180))/0x5)+-parseInt(_0x96caca(0x195))/0x6*(-parseInt(_0x96caca(0x198))/0x7)+parseInt(_0x96caca(0x173))/0x8+-parseInt(_0x96caca(0x17b))/0x9+parseInt(_0x96caca(0x186))/0xa*(parseInt(_0x96caca(0x19b))/0xb);if(_0x247383===_0x26b57e)break;else _0x531236['push'](_0x531236['shift']());}catch(_0x26fb92){_0x531236['push'](_0x531236['shift']());}}}(a0_0x108d,0xc7bbf));import{jsx as a0_0x367d6d}from'react/jsx-runtime';import a0_0x1887b7 from'meow';import{render}from'ink';function a0_0x108d(){const _0x3f77e0=['unknownCommand','12JExswJ','error','[preparse]\x20','3667391WoKSnO','118004JutydU','exitCode','297ACVcKS','assign','10912152SGAIyT','log','Unexpected\x20error:','cancelled','1875154frWfGA','ERR_STREAM_DESTROYED','Error:\x20','input','12609315Nnrjqb','defaultCommand','slice','stderr','1332375BfXGEW','85xvHuhB','original','3QXpFHO','write','ExitPromptError','hint','955100ySPnYT','flatMap','corrected','help','\x20->\x20--','exit','\x0aCancelled.\x0a','catch','code','handler','flags','length','./framework/preparse.js','Hint:\x20'];a0_0x108d=function(){return _0x3f77e0;};return a0_0x108d();}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';function a0_0x2dca(_0x6cf273,_0x2c8e7d){_0x6cf273=_0x6cf273-0x172;const _0x108da8=a0_0x108d();let _0x2dcafc=_0x108da8[_0x6cf273];return _0x2dcafc;}const helpText=generateFullHelp(),cli=a0_0x1887b7(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x234c34(0x18d)](handleError);async function main(){try{await run();}catch(_0x16f72f){handleError(_0x16f72f);}}async function run(){const _0x48ac7c=a0_0x234c34;let _0x4fe696=cli[_0x48ac7c(0x17a)][0x0],_0x2cf9c6=cli['input'][0x1];const _0x45715c=cli[_0x48ac7c(0x190)];try{const {correctFlags:_0x59cd6a}=await import(_0x48ac7c(0x192)),_0x2b0dd9=getAllDefinitions()[_0x48ac7c(0x187)](_0x1f34b8=>_0x1f34b8['flags']??[]),{flags:_0x21a04a,corrections:_0x3431a6}=_0x59cd6a(_0x45715c,_0x2b0dd9);if(_0x3431a6[_0x48ac7c(0x191)]>0x0){for(const _0x318347 of _0x3431a6){process['stderr'][_0x48ac7c(0x183)](_0x48ac7c(0x197)+_0x318347[_0x48ac7c(0x18f)]+':\x20--'+_0x318347[_0x48ac7c(0x181)]+_0x48ac7c(0x18a)+_0x318347[_0x48ac7c(0x188)]+'\x0a');}Object[_0x48ac7c(0x172)](_0x45715c,_0x21a04a);}}catch{}if(!_0x4fe696||!isKnownService(_0x4fe696)){const {waitUntilExit:_0x4e992d}=render(a0_0x367d6d(Help,{}));await _0x4e992d();return;}const _0x1a9820=getServiceEntry(_0x4fe696);if(!_0x2cf9c6){if(_0x45715c[_0x48ac7c(0x189)]){console['log'](generateServiceHelp(_0x4fe696));return;}if(_0x1a9820[_0x48ac7c(0x17c)])_0x2cf9c6=_0x1a9820['defaultCommand'];else{console['log'](generateServiceHelp(_0x4fe696));return;}}const _0x340264=findDefinition(_0x4fe696,_0x2cf9c6);!_0x340264&&(console[_0x48ac7c(0x174)](generateServiceHelp(_0x4fe696)),handleError(CliErrors[_0x48ac7c(0x194)](_0x4fe696+'\x20'+_0x2cf9c6)));if(_0x45715c[_0x48ac7c(0x189)]){console['log'](generateCommandHelp(_0x340264));return;}const _0x16e8ff=buildConfigFromFlags(_0x45715c);await initGlobalEnvironment(_0x16e8ff);const _0x4385f2=createPipelineEnv(_0x16e8ff,_0x45715c);_0x4385f2['args']=cli[_0x48ac7c(0x17a)][_0x48ac7c(0x17d)](0x2),await runCommand(_0x340264,_0x4385f2);}function handleError(_0x2656f4){const _0xab4ecd=a0_0x234c34;if(_0x2656f4 instanceof CliError){_0x2656f4[_0xab4ecd(0x18e)]===_0xab4ecd(0x176)&&(process[_0xab4ecd(0x17e)][_0xab4ecd(0x183)](_0xab4ecd(0x18c)),process[_0xab4ecd(0x18b)](0x0));console[_0xab4ecd(0x196)](_0xab4ecd(0x179)+_0x2656f4['message']);if(_0x2656f4[_0xab4ecd(0x185)])console[_0xab4ecd(0x196)](_0xab4ecd(0x193)+_0x2656f4[_0xab4ecd(0x185)]);process['exit'](_0x2656f4[_0xab4ecd(0x19a)]);}isUserCancellation(_0x2656f4)&&(process[_0xab4ecd(0x17e)][_0xab4ecd(0x183)]('\x0aCancelled.\x0a'),process[_0xab4ecd(0x18b)](0x0)),console[_0xab4ecd(0x196)](_0xab4ecd(0x175),_0x2656f4),process['exit'](0x1);}function isUserCancellation(_0x23bb16){const _0x26a2e4=a0_0x234c34;if(!(_0x23bb16 instanceof Error))return![];if(_0x23bb16['name']===_0x26a2e4(0x184))return!![];if(_0x23bb16[_0x26a2e4(0x18e)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x23bb16[_0x26a2e4(0x18e)]===_0x26a2e4(0x178))return!![];return![];}
@@ -1 +1 @@
1
- (function(_0x296d93,_0x56b5d5){const _0xc9314e=a1_0x3d6c,_0x36f5d5=_0x296d93();while(!![]){try{const _0x391616=-parseInt(_0xc9314e(0x120))/0x1*(-parseInt(_0xc9314e(0x135))/0x2)+parseInt(_0xc9314e(0x11f))/0x3*(parseInt(_0xc9314e(0x123))/0x4)+parseInt(_0xc9314e(0x119))/0x5*(parseInt(_0xc9314e(0x125))/0x6)+parseInt(_0xc9314e(0x126))/0x7+-parseInt(_0xc9314e(0x12e))/0x8*(parseInt(_0xc9314e(0x131))/0x9)+-parseInt(_0xc9314e(0x130))/0xa+-parseInt(_0xc9314e(0x11b))/0xb;if(_0x391616===_0x56b5d5)break;else _0x36f5d5['push'](_0x36f5d5['shift']());}catch(_0x4a8827){_0x36f5d5['push'](_0x36f5d5['shift']());}}}(a1_0x2ec0,0x1cc47));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a1_0x2ec0(){const _0x235244=['find','2600928QkvluH','items','EXDEV','trim','331869iZsOFd','185PMznrc','parse','my-apps.json','8ggqdpW','digest','251058TwVihd','140616pHIMVa','isArray','appName','sha256','utf8','.lovrabet','.tmp','ak_','203160pWNXpQ','code','1635600BgzDJg','9lBaddJ','stringify','slice','EPERM','1002HlEyHv','hex','25vbzKXD'];a1_0x2ec0=function(){return _0x235244;};return a1_0x2ec0();}import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x37d149){const _0xba5372=a1_0x3d6c,_0x159cdd=_0x37d149[_0xba5372(0x11e)](),_0x35a4ee=_0x159cdd[_0xba5372(0x133)](-0x6)||'unknown',_0x300c71=createHash(_0xba5372(0x129))['update'](_0x159cdd)[_0xba5372(0x124)](_0xba5372(0x118))[_0xba5372(0x133)](0x0,0xc);return _0xba5372(0x12d)+_0x35a4ee+'_'+_0x300c71;}export function getAppCacheFilePath(_0x29bd58,_0x1d7822){const _0x512c9b=a1_0x3d6c;return resolve(homedir(),_0x512c9b(0x12b),'cache',_0x29bd58,fingerprintAccessKey(_0x1d7822),_0x512c9b(0x122));}export function readCachedAppList(_0x2e59cc,_0x4ca7b1){const _0x1c3dfc=a1_0x3d6c;if(!_0x4ca7b1?.['trim']())return null;const _0x469260=getAppCacheFilePath(_0x2e59cc,_0x4ca7b1);if(!existsSync(_0x469260))return null;try{const _0x392400=readFileSync(_0x469260,'utf8');if(!_0x392400[_0x1c3dfc(0x11e)]())return null;const _0x396078=JSON[_0x1c3dfc(0x121)](_0x392400);if(!Array[_0x1c3dfc(0x127)](_0x396078[_0x1c3dfc(0x11c)]))return null;return _0x396078;}catch{return null;}}function a1_0x3d6c(_0x335fed,_0x23cd5e){_0x335fed=_0x335fed-0x118;const _0x2ec038=a1_0x2ec0();let _0x3d6c1f=_0x2ec038[_0x335fed];return _0x3d6c1f;}export function writeCachedAppList(_0x398a6b,_0x16aae5,_0x379554){const _0x45e6cc=a1_0x3d6c,_0x321d21=getAppCacheFilePath(_0x398a6b,_0x16aae5),_0x434624=dirname(_0x321d21);!existsSync(_0x434624)&&mkdirSync(_0x434624,{'recursive':!![]});const _0x5cfbec=_0x321d21+_0x45e6cc(0x12c);try{writeFileSync(_0x5cfbec,JSON['stringify'](_0x379554,null,0x2)+'\x0a',{'encoding':_0x45e6cc(0x12a),'mode':0x180});try{renameSync(_0x5cfbec,_0x321d21);}catch(_0xa48406){if(_0xa48406[_0x45e6cc(0x12f)]===_0x45e6cc(0x134)||_0xa48406['code']===_0x45e6cc(0x11d)||_0xa48406[_0x45e6cc(0x12f)]==='EACCES'){writeFileSync(_0x321d21,JSON[_0x45e6cc(0x132)](_0x379554,null,0x2)+'\x0a',{'encoding':_0x45e6cc(0x12a)});try{unlinkSync(_0x5cfbec);}catch{}}else throw _0xa48406;}}catch(_0x505c6d){try{unlinkSync(_0x5cfbec);}catch{}throw _0x505c6d;}return _0x321d21;}export function resolveCachedAppCode(_0x24bf4a,_0x48e93a,_0x9f99d7){const _0x13bdd2=a1_0x3d6c;if(!_0x24bf4a)return undefined;const _0x184a26=readCachedAppList(_0x48e93a,_0x9f99d7),_0x336a4f=_0x184a26?.['items'][_0x13bdd2(0x11a)](_0x5aa43d=>_0x5aa43d[_0x13bdd2(0x128)]===_0x24bf4a);return _0x336a4f?.['appCode']?.[_0x13bdd2(0x11e)]()||undefined;}
1
+ (function(_0xae7398,_0x3182b9){const _0x374574=a1_0x5a7c,_0x3bc839=_0xae7398();while(!![]){try{const _0x20f28b=-parseInt(_0x374574(0x14f))/0x1*(-parseInt(_0x374574(0x146))/0x2)+parseInt(_0x374574(0x14c))/0x3+-parseInt(_0x374574(0x140))/0x4+parseInt(_0x374574(0x147))/0x5*(parseInt(_0x374574(0x149))/0x6)+parseInt(_0x374574(0x156))/0x7*(parseInt(_0x374574(0x153))/0x8)+parseInt(_0x374574(0x154))/0x9+-parseInt(_0x374574(0x157))/0xa*(parseInt(_0x374574(0x158))/0xb);if(_0x20f28b===_0x3182b9)break;else _0x3bc839['push'](_0x3bc839['shift']());}catch(_0x43f695){_0x3bc839['push'](_0x3bc839['shift']());}}}(a1_0x3f41,0x4ba40));function a1_0x5a7c(_0x3dd6c0,_0x4a520a){_0x3dd6c0=_0x3dd6c0-0x13e;const _0x3f41cf=a1_0x3f41();let _0x5a7c7f=_0x3f41cf[_0x3dd6c0];return _0x5a7c7f;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a1_0x3f41(){const _0x291644=['370ibrlWG','335929EmucgU','appName','unknown','items','parse','code','EXDEV','1442312phPGOi','ak_','isArray','EACCES','hex','.tmp','122gYClOr','842055ysGNFu','.lovrabet','18qComIn','my-apps.json','slice','592950gUGAwI','trim','stringify','8989DINQml','cache','appCode','update','72NPAjZh','2083950VQiwpm','find','247009egpueM'];a1_0x3f41=function(){return _0x291644;};return a1_0x3f41();}import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x50359f){const _0xc88dc7=a1_0x5a7c,_0x89ca43=_0x50359f[_0xc88dc7(0x14d)](),_0x91ca44=_0x89ca43[_0xc88dc7(0x14b)](-0x6)||_0xc88dc7(0x15a),_0xfe60c2=createHash('sha256')[_0xc88dc7(0x152)](_0x89ca43)['digest'](_0xc88dc7(0x144))[_0xc88dc7(0x14b)](0x0,0xc);return _0xc88dc7(0x141)+_0x91ca44+'_'+_0xfe60c2;}export function getAppCacheFilePath(_0x3ea4a5,_0x283ad0){const _0x10f7af=a1_0x5a7c;return resolve(homedir(),_0x10f7af(0x148),_0x10f7af(0x150),_0x3ea4a5,fingerprintAccessKey(_0x283ad0),_0x10f7af(0x14a));}export function readCachedAppList(_0x2ddc50,_0x4deb04){const _0x4e297c=a1_0x5a7c;if(!_0x4deb04?.[_0x4e297c(0x14d)]())return null;const _0x239dee=getAppCacheFilePath(_0x2ddc50,_0x4deb04);if(!existsSync(_0x239dee))return null;try{const _0x29f9cb=readFileSync(_0x239dee,'utf8');if(!_0x29f9cb[_0x4e297c(0x14d)]())return null;const _0x3fc233=JSON[_0x4e297c(0x15c)](_0x29f9cb);if(!Array[_0x4e297c(0x142)](_0x3fc233[_0x4e297c(0x15b)]))return null;return _0x3fc233;}catch{return null;}}export function writeCachedAppList(_0x3b5009,_0xf6b3de,_0x6b75d5){const _0x565f3b=a1_0x5a7c,_0x3333af=getAppCacheFilePath(_0x3b5009,_0xf6b3de),_0x30f103=dirname(_0x3333af);!existsSync(_0x30f103)&&mkdirSync(_0x30f103,{'recursive':!![]});const _0x121dde=_0x3333af+_0x565f3b(0x145);try{writeFileSync(_0x121dde,JSON[_0x565f3b(0x14e)](_0x6b75d5,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x121dde,_0x3333af);}catch(_0x4d5bd2){if(_0x4d5bd2[_0x565f3b(0x13e)]==='EPERM'||_0x4d5bd2[_0x565f3b(0x13e)]===_0x565f3b(0x13f)||_0x4d5bd2[_0x565f3b(0x13e)]===_0x565f3b(0x143)){writeFileSync(_0x3333af,JSON[_0x565f3b(0x14e)](_0x6b75d5,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x121dde);}catch{}}else throw _0x4d5bd2;}}catch(_0x173376){try{unlinkSync(_0x121dde);}catch{}throw _0x173376;}return _0x3333af;}export function resolveCachedAppCode(_0x382949,_0x5ed4e3,_0x5bb94c){const _0x1be53d=a1_0x5a7c;if(!_0x382949)return undefined;const _0x1e97f2=readCachedAppList(_0x5ed4e3,_0x5bb94c),_0x3eea10=_0x1e97f2?.[_0x1be53d(0x15b)][_0x1be53d(0x155)](_0x3bb3b6=>_0x3bb3b6[_0x1be53d(0x159)]===_0x382949);return _0x3eea10?.[_0x1be53d(0x151)]?.[_0x1be53d(0x14d)]()||undefined;}
@@ -1 +1 @@
1
- const a2_0x1b69a4=a2_0x3991;(function(_0x2b8080,_0x3f6755){const _0x4a5be4=a2_0x3991,_0x41ef94=_0x2b8080();while(!![]){try{const _0x13089c=parseInt(_0x4a5be4(0x1a6))/0x1+-parseInt(_0x4a5be4(0x19c))/0x2+-parseInt(_0x4a5be4(0x18e))/0x3+-parseInt(_0x4a5be4(0x176))/0x4+parseInt(_0x4a5be4(0x1b7))/0x5*(parseInt(_0x4a5be4(0x1aa))/0x6)+parseInt(_0x4a5be4(0x1a3))/0x7+parseInt(_0x4a5be4(0x195))/0x8;if(_0x13089c===_0x3f6755)break;else _0x41ef94['push'](_0x41ef94['shift']());}catch(_0x6a86c9){_0x41ef94['push'](_0x41ef94['shift']());}}}(a2_0x50e9,0x5ed1a));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';function a2_0x50e9(){const _0x45dc9a=['529572kOoGRS','map','find','defaultApp','Available:\x20','no-cache','envName','4588213RKPCOD','global','source','713485htDFhK','Read\x20from\x20local\x20cache\x20only','type','Default\x20app\x20set\x20to\x20\x22','7158qQCGJO','app','string','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','\x20app(s)\x20for\x20env=\x22','local','../../commands/app/cache.js','../../context.js','\x20app\x20use\x20<name>\x20[--global]','No\x20cached\x20apps\x20found.','cachePath','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','read','535IJUQfA','Switch\x20the\x20default\x20app','\x22\x20not\x20found.','accessKey','items','nonInteractive','cache','args','2983856uXABzx','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','isCurrent','Usage:\x20','pull','Use\x20`','bool','No\x20apps\x20found\x20on\x20the\x20platform.','import','Missing\x20app\x20name.','App\x20\x22','Refreshed\x20app\x20cache\x20with\x20','length','remote','\x20cached\x20app(s)\x20for\x20env=\x22','projectPath','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','from','appCode','str','validation','write','appOwnerName','Initialize\x20.lovrabet.json\x20config\x20file','1462626QlidQg','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','init','appPublishStatus','../../commands/app/remote-source.js','Loaded\x20','project-default','3120600dIJFSg','boolean','production','appName','env','name','fetchedAt'];a2_0x50e9=function(){return _0x45dc9a;};return a2_0x50e9();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a2_0x3991(_0x53bbb5,_0x1f4829){_0x53bbb5=_0x53bbb5-0x176;const _0x50e9e3=a2_0x50e9();let _0x3991ca=_0x50e9e3[_0x53bbb5];return _0x3991ca;}const GLOBAL_FLAG={'name':a2_0x1b69a4(0x1a4),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function collectFlags(_0x4f9bf1,_0x36b3aa){const _0x96dc67=a2_0x1b69a4,_0x5d4d50={};for(const _0x53e651 of _0x36b3aa){const _0x37afac=_0x53e651[_0x96dc67(0x1a8)]===_0x96dc67(0x196)?_0x4f9bf1[_0x96dc67(0x17c)](_0x53e651[_0x96dc67(0x19a)]):_0x4f9bf1[_0x96dc67(0x189)](_0x53e651[_0x96dc67(0x19a)]);if(_0x37afac!==''&&_0x37afac!==![])_0x5d4d50[_0x53e651[_0x96dc67(0x19a)]]=_0x37afac;}if(_0x4f9bf1[_0x96dc67(0x1bc)])_0x5d4d50[_0x96dc67(0x1bc)]=!![];return _0x5d4d50;}const initDef={'service':a2_0x1b69a4(0x1ab),'command':a2_0x1b69a4(0x190),'description':a2_0x1b69a4(0x18d),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x26cea6){return await runInit(collectFlags(_0x26cea6,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':'list','description':a2_0x1b69a4(0x186),'risk':a2_0x1b69a4(0x1b6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x1b69a4(0x199),'type':a2_0x1b69a4(0x1ac),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1b69a4(0x1af),'type':a2_0x1b69a4(0x196),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1b5),'default':![]}],async 'execute'(_0x4ed164){const _0x13aad5=a2_0x1b69a4,_0x29eb7d=_0x4ed164[_0x13aad5(0x189)](_0x13aad5(0x199))||_0x4ed164[_0x13aad5(0x1a2)]||getEnv()||_0x13aad5(0x197),_0x511d07=_0x4ed164[_0x13aad5(0x17c)](_0x13aad5(0x1af)),_0x3a55b0=_0x4ed164[_0x13aad5(0x17c)](_0x13aad5(0x1a1)),{readRawConfigWithLayers:_0x5a0d49,resolveDefaultAppSource:_0x44b013}=await import(_0x13aad5(0x1b1)),{getRemoteAppList:_0x1af75b}=await import('../../commands/app/remote-source.js'),{config:_0x2f8b4d,layers:_0x29a42d}=_0x5a0d49(),_0x8ee0e8=_0x44b013(_0x29a42d),{defaultApp:_0x2ba71}=_0x2f8b4d,_0x1357be=await _0x1af75b({'env':_0x29eb7d,'accessKey':_0x4ed164['accessKey'],'localOnly':_0x511d07,'noCache':_0x3a55b0}),_0x3164f0=_0x1357be[_0x13aad5(0x1bb)][_0x13aad5(0x19d)](_0x284291=>{const _0x4ad581=_0x13aad5;return{'name':_0x284291[_0x4ad581(0x198)],'appcode':_0x284291[_0x4ad581(0x188)],'named':!![],'definedIn':_0x4ad581(0x183),'isDefault':_0x284291['appName']===_0x2ba71,...buildAppProfileListFields(_0x29eb7d),'source':_0x1357be[_0x4ad581(0x1a5)],'owner':_0x284291[_0x4ad581(0x18c)]??null,'status':_0x284291[_0x4ad581(0x191)]??null,'cachedAt':_0x1357be[_0x4ad581(0x19b)]};});enrichAppListItemsWithMergedSelection(_0x3164f0,_0x4ed164['mergedCli']);if(_0x3164f0[_0x13aad5(0x182)]===0x0)return{'ok':!![],'data':[],'message':_0x1357be[_0x13aad5(0x1a5)]==='cache'?_0x13aad5(0x1b3):_0x13aad5(0x17d)};const _0x39ca9a=_0x3164f0[_0x13aad5(0x19e)](_0xa1a099=>_0xa1a099[_0x13aad5(0x178)]===!![]),_0x1c1b96=_0x2ba71??_0x39ca9a?.[_0x13aad5(0x19a)]??null,_0x52a04a={'env':_0x29eb7d,'source':_0x1357be[_0x13aad5(0x1a5)],'fetchedAt':_0x1357be[_0x13aad5(0x19b)],'cachePath':_0x1357be[_0x13aad5(0x1b4)],'globalPath':_0x29a42d['globalPath']??null,'projectPath':_0x29a42d[_0x13aad5(0x185)]??null,'defaultApp':_0x1c1b96,'defaultAppSource':_0x2ba71!=null?_0x8ee0e8:null};return{'ok':!![],'data':{'items':_0x3164f0,'meta':_0x52a04a}};}},pullDef={'service':a2_0x1b69a4(0x1ab),'command':a2_0x1b69a4(0x17a),'description':a2_0x1b69a4(0x1ad),'risk':a2_0x1b69a4(0x18b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x1b69a4(0x199),'type':a2_0x1b69a4(0x1ac),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x1b69a4(0x1af),'type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1a7),'default':![]},{'name':'no-cache','type':a2_0x1b69a4(0x196),'description':a2_0x1b69a4(0x1b5),'default':![]}],async 'execute'(_0x15808d){const _0x1a5e58=a2_0x1b69a4,_0x1d7ee8=_0x15808d[_0x1a5e58(0x189)]('env')||_0x15808d['envName']||getEnv()||_0x1a5e58(0x197),_0x27f873=_0x15808d[_0x1a5e58(0x17c)]('local'),_0x48f78b=_0x15808d[_0x1a5e58(0x17c)](_0x1a5e58(0x1a1)),{getRemoteAppList:_0x94f8c0}=await import(_0x1a5e58(0x192)),_0x168856=await _0x94f8c0({'env':_0x1d7ee8,'accessKey':_0x15808d[_0x1a5e58(0x1ba)],'localOnly':_0x27f873,'noCache':_0x48f78b});return{'ok':!![],'data':{'total':_0x168856[_0x1a5e58(0x1bb)]['length'],'env':_0x1d7ee8,'source':_0x168856[_0x1a5e58(0x1a5)],'fetchedAt':_0x168856[_0x1a5e58(0x19b)],'cachePath':_0x168856[_0x1a5e58(0x1b4)]},'message':_0x168856['source']===_0x1a5e58(0x1bd)?_0x1a5e58(0x193)+_0x168856[_0x1a5e58(0x1bb)][_0x1a5e58(0x182)]+_0x1a5e58(0x184)+_0x1d7ee8+'\x22.':_0x1a5e58(0x181)+_0x168856['items'][_0x1a5e58(0x182)]+_0x1a5e58(0x1ae)+_0x1d7ee8+'\x22.'};}},useDef={'service':a2_0x1b69a4(0x1ab),'command':'use','description':a2_0x1b69a4(0x1b8),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x65fafa){const _0x407e6e=a2_0x1b69a4;if(!_0x65fafa[_0x407e6e(0x1be)][0x0])throw CliErrors[_0x407e6e(0x18a)](_0x407e6e(0x17f),_0x407e6e(0x179)+CLI_BIN_NAME+_0x407e6e(0x1b2));},async 'execute'(_0x282d8a){const _0x42bf3c=a2_0x1b69a4,_0x39667b=_0x282d8a[_0x42bf3c(0x1be)][0x0];if(!_0x39667b)throw CliErrors[_0x42bf3c(0x18a)](_0x42bf3c(0x17f),'Usage:\x20'+CLI_BIN_NAME+_0x42bf3c(0x1b2));const {buildConfigFromFlags:_0x4f275f}=await import(_0x42bf3c(0x1b1)),{readCachedAppList:_0x20d0db}=await import(_0x42bf3c(0x1b0)),_0x33a50d=_0x4f275f({}),_0x55a337=_0x20d0db(_0x33a50d[_0x42bf3c(0x199)],_0x33a50d[_0x42bf3c(0x1ba)]),_0x2338e2=_0x55a337?.['items']['find'](_0x57621f=>_0x57621f['appName']===_0x39667b);if(!_0x2338e2&&_0x33a50d[_0x42bf3c(0x19f)]!==_0x39667b){const _0x42ee63=[..._0x55a337?.[_0x42bf3c(0x1bb)][_0x42bf3c(0x19d)](_0x3718c2=>_0x3718c2['appName'])??[]],_0x60f624=_0x42ee63[_0x42bf3c(0x182)]===0x0?_0x42bf3c(0x17b)+CLI_BIN_NAME+_0x42bf3c(0x18f):_0x42bf3c(0x1a0)+Array[_0x42bf3c(0x187)](new Set(_0x42ee63))['join'](',\x20');throw CliErrors[_0x42bf3c(0x18a)](_0x42bf3c(0x180)+_0x39667b+_0x42bf3c(0x1b9),_0x60f624);}const _0x1a4833=_0x282d8a[_0x42bf3c(0x17c)]('global');let _0x29a3aa;if(_0x1a4833)_0x29a3aa={'global':!![]};else{const {isInProject:_0x1163f5}=await import(_0x42bf3c(0x1b1)),_0x49102c=_0x1163f5();_0x29a3aa=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x42bf3c(0x194),'inProject':_0x49102c}));}const _0x3f5fc5=readConfig(_0x29a3aa);return _0x3f5fc5[_0x42bf3c(0x19f)]=_0x39667b,writeConfig(_0x3f5fc5,_0x29a3aa),{'ok':!![],'message':_0x42bf3c(0x1a9)+_0x39667b+'\x22'+scopeLabel(_0x29a3aa)+'.'};}},importDef={'service':'app','command':a2_0x1b69a4(0x17e),'description':a2_0x1b69a4(0x177),'risk':a2_0x1b69a4(0x18b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x16a0d9){return await runInitImport(collectFlags(_0x16a0d9,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a2_0x4b1e57=a2_0x53a4;(function(_0x4296bc,_0x4faf8f){const _0x1b39bb=a2_0x53a4,_0x359f32=_0x4296bc();while(!![]){try{const _0x3017e2=parseInt(_0x1b39bb(0x19d))/0x1*(parseInt(_0x1b39bb(0x185))/0x2)+parseInt(_0x1b39bb(0x1a0))/0x3+-parseInt(_0x1b39bb(0x17f))/0x4+-parseInt(_0x1b39bb(0x171))/0x5*(-parseInt(_0x1b39bb(0x162))/0x6)+-parseInt(_0x1b39bb(0x198))/0x7+-parseInt(_0x1b39bb(0x167))/0x8+parseInt(_0x1b39bb(0x169))/0x9;if(_0x3017e2===_0x4faf8f)break;else _0x359f32['push'](_0x359f32['shift']());}catch(_0x2292c3){_0x359f32['push'](_0x359f32['shift']());}}}(a2_0x2ab6,0x9280c));import{CliErrors}from'../../errors.js';function a2_0x53a4(_0x4ed51d,_0x3b96d4){_0x4ed51d=_0x4ed51d-0x158;const _0x2ab6e1=a2_0x2ab6();let _0x53a497=_0x2ab6e1[_0x4ed51d];return _0x53a497;}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_0x4b1e57(0x16e),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function collectFlags(_0x4e1c80,_0x5f5146){const _0x40c801=a2_0x4b1e57,_0x5582b1={};for(const _0x4e9ab7 of _0x5f5146){const _0x341a81=_0x4e9ab7['type']===_0x40c801(0x158)?_0x4e1c80[_0x40c801(0x173)](_0x4e9ab7[_0x40c801(0x175)]):_0x4e1c80[_0x40c801(0x15e)](_0x4e9ab7[_0x40c801(0x175)]);if(_0x341a81!==''&&_0x341a81!==![])_0x5582b1[_0x4e9ab7['name']]=_0x341a81;}if(_0x4e1c80['nonInteractive'])_0x5582b1[_0x40c801(0x199)]=!![];return _0x5582b1;}function a2_0x2ab6(){const _0x3f0808=['list','read','../../commands/app/remote-source.js','Switch\x20the\x20default\x20app','defaultApp','app','join','remote','find','args','appPublishStatus','isCurrent','Loaded\x20','Refreshed\x20app\x20cache\x20with\x20','\x20app\x20use\x20<name>\x20[--global]','appOwnerName','App\x20\x22','6454266xXDDEG','nonInteractive','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','projectPath','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','1437vwJnpc','length','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','997041Uubcbk','source','boolean','No\x20apps\x20found\x20on\x20the\x20platform.','map','globalPath','\x20app(s)\x20for\x20env=\x22','\x20app\x20list`\x20to\x20discover\x20remote\x20apps.','str','fetchedAt','Usage:\x20','appCode','78978VRFGau','../../context.js','pull','accessKey','Use\x20`','6385928ooeZDr','from','17000802HLCPfn','local','No\x20cached\x20apps\x20found.','validation','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','global','init','Read\x20from\x20local\x20cache\x20only','110RjFaVd','production','bool','items','name','mergedCli','write','cachePath','envName','use','Missing\x20app\x20name.','env','no-cache','project-default','2779772UxoDbM','Initialize\x20.lovrabet.json\x20config\x20file','import','Filter\x20by\x20environment\x20(default:\x20current\x20env)','string','\x20cached\x20app(s)\x20for\x20env=\x22','702DmduaK','appName'];a2_0x2ab6=function(){return _0x3f0808;};return a2_0x2ab6();}const initDef={'service':a2_0x4b1e57(0x18c),'command':a2_0x4b1e57(0x16f),'description':a2_0x4b1e57(0x180),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x12a9b2){return await runInit(collectFlags(_0x12a9b2,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a2_0x4b1e57(0x18c),'command':a2_0x4b1e57(0x187),'description':a2_0x4b1e57(0x19c),'risk':a2_0x4b1e57(0x188),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x4b1e57(0x17c),'type':'string','description':a2_0x4b1e57(0x182),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a2_0x4b1e57(0x158),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a2_0x4b1e57(0x17d),'type':a2_0x4b1e57(0x158),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x37cc83){const _0x16302d=a2_0x4b1e57,_0x237f5c=_0x37cc83[_0x16302d(0x15e)](_0x16302d(0x17c))||_0x37cc83[_0x16302d(0x179)]||getEnv()||'production',_0x3f2fbc=_0x37cc83[_0x16302d(0x173)](_0x16302d(0x16a)),_0x5bf825=_0x37cc83[_0x16302d(0x173)]('no-cache'),{readRawConfigWithLayers:_0x13c591,resolveDefaultAppSource:_0x52cd34}=await import(_0x16302d(0x163)),{getRemoteAppList:_0x682f5b}=await import(_0x16302d(0x189)),{config:_0x4d9917,layers:_0x14a5c2}=_0x13c591(),_0xd6224d=_0x52cd34(_0x14a5c2),{defaultApp:_0x14f5d8}=_0x4d9917,_0x122416=await _0x682f5b({'env':_0x237f5c,'accessKey':_0x37cc83[_0x16302d(0x165)],'localOnly':_0x3f2fbc,'noCache':_0x5bf825}),_0x42343d=_0x122416[_0x16302d(0x174)]['map'](_0x5cfa76=>{const _0x53b7b4=_0x16302d;return{'name':_0x5cfa76[_0x53b7b4(0x186)],'appcode':_0x5cfa76[_0x53b7b4(0x161)],'named':!![],'definedIn':_0x53b7b4(0x18e),'isDefault':_0x5cfa76[_0x53b7b4(0x186)]===_0x14f5d8,...buildAppProfileListFields(_0x237f5c),'source':_0x122416[_0x53b7b4(0x1a1)],'owner':_0x5cfa76[_0x53b7b4(0x196)]??null,'status':_0x5cfa76[_0x53b7b4(0x191)]??null,'cachedAt':_0x122416[_0x53b7b4(0x15f)]};});enrichAppListItemsWithMergedSelection(_0x42343d,_0x37cc83[_0x16302d(0x176)]);if(_0x42343d['length']===0x0)return{'ok':!![],'data':[],'message':_0x122416[_0x16302d(0x1a1)]==='cache'?_0x16302d(0x16b):_0x16302d(0x159)};const _0xaf2aec=_0x42343d[_0x16302d(0x18f)](_0x29230e=>_0x29230e[_0x16302d(0x192)]===!![]),_0x56ef90=_0x14f5d8??_0xaf2aec?.['name']??null,_0x4b3e7e={'env':_0x237f5c,'source':_0x122416[_0x16302d(0x1a1)],'fetchedAt':_0x122416[_0x16302d(0x15f)],'cachePath':_0x122416[_0x16302d(0x178)],'globalPath':_0x14a5c2[_0x16302d(0x15b)]??null,'projectPath':_0x14a5c2[_0x16302d(0x19b)]??null,'defaultApp':_0x56ef90,'defaultAppSource':_0x14f5d8!=null?_0xd6224d:null};return{'ok':!![],'data':{'items':_0x42343d,'meta':_0x4b3e7e}};}},pullDef={'service':a2_0x4b1e57(0x18c),'command':a2_0x4b1e57(0x164),'description':a2_0x4b1e57(0x19f),'risk':a2_0x4b1e57(0x177),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x4b1e57(0x17c),'type':a2_0x4b1e57(0x183),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a2_0x4b1e57(0x170),'default':![]},{'name':a2_0x4b1e57(0x17d),'type':a2_0x4b1e57(0x158),'description':a2_0x4b1e57(0x19a),'default':![]}],async 'execute'(_0x5d10f8){const _0x1eebb4=a2_0x4b1e57,_0x402245=_0x5d10f8[_0x1eebb4(0x15e)](_0x1eebb4(0x17c))||_0x5d10f8[_0x1eebb4(0x179)]||getEnv()||_0x1eebb4(0x172),_0x3cefb4=_0x5d10f8['bool'](_0x1eebb4(0x16a)),_0x1f0c69=_0x5d10f8['bool'](_0x1eebb4(0x17d)),{getRemoteAppList:_0x4a728e}=await import('../../commands/app/remote-source.js'),_0x51f71b=await _0x4a728e({'env':_0x402245,'accessKey':_0x5d10f8[_0x1eebb4(0x165)],'localOnly':_0x3cefb4,'noCache':_0x1f0c69});return{'ok':!![],'data':{'total':_0x51f71b[_0x1eebb4(0x174)][_0x1eebb4(0x19e)],'env':_0x402245,'source':_0x51f71b[_0x1eebb4(0x1a1)],'fetchedAt':_0x51f71b[_0x1eebb4(0x15f)],'cachePath':_0x51f71b[_0x1eebb4(0x178)]},'message':_0x51f71b[_0x1eebb4(0x1a1)]==='cache'?_0x1eebb4(0x193)+_0x51f71b['items'][_0x1eebb4(0x19e)]+_0x1eebb4(0x184)+_0x402245+'\x22.':_0x1eebb4(0x194)+_0x51f71b[_0x1eebb4(0x174)][_0x1eebb4(0x19e)]+_0x1eebb4(0x15c)+_0x402245+'\x22.'};}},useDef={'service':a2_0x4b1e57(0x18c),'command':a2_0x4b1e57(0x17a),'description':a2_0x4b1e57(0x18a),'risk':a2_0x4b1e57(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x4b1e57(0x175),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3a9322){const _0x10e09a=a2_0x4b1e57;if(!_0x3a9322[_0x10e09a(0x190)][0x0])throw CliErrors['validation'](_0x10e09a(0x17b),_0x10e09a(0x160)+CLI_BIN_NAME+_0x10e09a(0x195));},async 'execute'(_0x40f198){const _0x536733=a2_0x4b1e57,_0x2c78c2=_0x40f198[_0x536733(0x190)][0x0];if(!_0x2c78c2)throw CliErrors[_0x536733(0x16c)](_0x536733(0x17b),_0x536733(0x160)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x1a257a}=await import(_0x536733(0x163)),{readCachedAppList:_0x4d6096}=await import('../../commands/app/cache.js'),_0x394ba2=_0x1a257a({}),_0x2688b3=_0x4d6096(_0x394ba2[_0x536733(0x17c)],_0x394ba2[_0x536733(0x165)]),_0x4330ca=_0x2688b3?.[_0x536733(0x174)][_0x536733(0x18f)](_0x2ea014=>_0x2ea014['appName']===_0x2c78c2);if(!_0x4330ca&&_0x394ba2[_0x536733(0x18b)]!==_0x2c78c2){const _0x4e64fc=[..._0x2688b3?.[_0x536733(0x174)][_0x536733(0x15a)](_0x256bf8=>_0x256bf8[_0x536733(0x186)])??[]],_0x12559b=_0x4e64fc[_0x536733(0x19e)]===0x0?_0x536733(0x166)+CLI_BIN_NAME+_0x536733(0x15d):'Available:\x20'+Array[_0x536733(0x168)](new Set(_0x4e64fc))[_0x536733(0x18d)](',\x20');throw CliErrors[_0x536733(0x16c)](_0x536733(0x197)+_0x2c78c2+'\x22\x20not\x20found.',_0x12559b);}const _0x3c7c7a=_0x40f198[_0x536733(0x173)](_0x536733(0x16e));let _0x134f05;if(_0x3c7c7a)_0x134f05={'global':!![]};else{const {isInProject:_0x413279}=await import('../../context.js'),_0x26cf2e=_0x413279();_0x134f05=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x536733(0x17e),'inProject':_0x26cf2e}));}const _0x178e7d=readConfig(_0x134f05);return _0x178e7d[_0x536733(0x18b)]=_0x2c78c2,writeConfig(_0x178e7d,_0x134f05),{'ok':!![],'message':'Default\x20app\x20set\x20to\x20\x22'+_0x2c78c2+'\x22'+scopeLabel(_0x134f05)+'.'};}},importDef={'service':a2_0x4b1e57(0x18c),'command':a2_0x4b1e57(0x181),'description':a2_0x4b1e57(0x16d),'risk':a2_0x4b1e57(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x20026c){return await runInitImport(collectFlags(_0x20026c,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x19a290,_0x1ad996){const _0x59b5f9=a3_0xe52c,_0x14eca7=_0x19a290();while(!![]){try{const _0x3b5626=-parseInt(_0x59b5f9(0x96))/0x1+parseInt(_0x59b5f9(0x95))/0x2*(-parseInt(_0x59b5f9(0xa1))/0x3)+-parseInt(_0x59b5f9(0xa3))/0x4*(-parseInt(_0x59b5f9(0x93))/0x5)+-parseInt(_0x59b5f9(0x98))/0x6+-parseInt(_0x59b5f9(0x9b))/0x7*(-parseInt(_0x59b5f9(0xa4))/0x8)+-parseInt(_0x59b5f9(0xa2))/0x9*(-parseInt(_0x59b5f9(0x9c))/0xa)+parseInt(_0x59b5f9(0x9d))/0xb;if(_0x3b5626===_0x1ad996)break;else _0x14eca7['push'](_0x14eca7['shift']());}catch(_0x49e718){_0x14eca7['push'](_0x14eca7['shift']());}}}(a3_0x5b70,0x5673f));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a3_0x5b70(){const _0x28c170=['2jKezUV','330410eHTJPP','utf-8','1235466cdzdWs','parse','success','377188sFATTv','90iJIUXo','3004430FTsuPc','errorMsg','tableData','../../../mock/app-list.json','303078mZIDux','37629YCGwdd','13596wUguRq','40MFLdcR','errorCode','605abZHgs','Mock\x20API\x20error:\x20'];a3_0x5b70=function(){return _0x28c170;};return a3_0x5b70();}function loadMockAppList(){const _0x19acb7=a3_0xe52c,_0x7c80e7=join(__dirname,_0x19acb7(0xa0)),_0x3df190=readFileSync(_0x7c80e7,_0x19acb7(0x97));return JSON[_0x19acb7(0x99)](_0x3df190);}let _cached=null;function a3_0xe52c(_0x30a93a,_0x35fd3f){_0x30a93a=_0x30a93a-0x93;const _0x5b7063=a3_0x5b70();let _0xe52c6a=_0x5b7063[_0x30a93a];return _0xe52c6a;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x54420d=a3_0xe52c,_0xd2566c=getMockAppList();if(!_0xd2566c[_0x54420d(0x9a)])throw new Error(_0x54420d(0x94)+_0xd2566c[_0x54420d(0x9e)]+'\x20('+_0xd2566c[_0x54420d(0xa5)]+')');return _0xd2566c['data'][_0x54420d(0x9f)];}
1
+ (function(_0x109368,_0x3bfbd9){const _0xb93fee=a3_0x500b,_0x43cc9d=_0x109368();while(!![]){try{const _0x2a99b9=parseInt(_0xb93fee(0x93))/0x1*(-parseInt(_0xb93fee(0x8f))/0x2)+-parseInt(_0xb93fee(0x8b))/0x3*(-parseInt(_0xb93fee(0x86))/0x4)+-parseInt(_0xb93fee(0x8a))/0x5*(-parseInt(_0xb93fee(0x91))/0x6)+parseInt(_0xb93fee(0x94))/0x7+-parseInt(_0xb93fee(0x87))/0x8*(-parseInt(_0xb93fee(0x96))/0x9)+-parseInt(_0xb93fee(0x8e))/0xa+parseInt(_0xb93fee(0x95))/0xb;if(_0x2a99b9===_0x3bfbd9)break;else _0x43cc9d['push'](_0x43cc9d['shift']());}catch(_0x2fedc8){_0x43cc9d['push'](_0x43cc9d['shift']());}}}(a3_0x3706,0xb0004));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x500b(_0x2dc905,_0x2ec08a){_0x2dc905=_0x2dc905-0x85;const _0x370676=a3_0x3706();let _0x500b2e=_0x370676[_0x2dc905];return _0x500b2e;}function a3_0x3706(){const _0x1e8906=['7598415esWWCQ','34551aWuyrM','errorMsg','644JVhXqC','920PYvJLC','tableData','Mock\x20API\x20error:\x20','5pNobnN','1611dhcFCk','parse','errorCode','6238050sCkZet','14BIJvaJ','success','5766156BJKGqZ','data','180537QvXFTk','3001117nilWwN'];a3_0x3706=function(){return _0x1e8906;};return a3_0x3706();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x295679=a3_0x500b,_0x13cca6=join(__dirname,'../../../mock/app-list.json'),_0x21514f=readFileSync(_0x13cca6,'utf-8');return JSON[_0x295679(0x8c)](_0x21514f);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x2b2920=a3_0x500b,_0x19bf6f=getMockAppList();if(!_0x19bf6f[_0x2b2920(0x90)])throw new Error(_0x2b2920(0x89)+_0x19bf6f[_0x2b2920(0x85)]+'\x20('+_0x19bf6f[_0x2b2920(0x8d)]+')');return _0x19bf6f[_0x2b2920(0x92)][_0x2b2920(0x88)];}
@@ -1 +1 @@
1
- (function(_0x1c1e8f,_0x440502){const _0x519699=a4_0x3088,_0x2bc6db=_0x1c1e8f();while(!![]){try{const _0xd40e7b=-parseInt(_0x519699(0xf1))/0x1*(-parseInt(_0x519699(0xf7))/0x2)+-parseInt(_0x519699(0xf4))/0x3+-parseInt(_0x519699(0xee))/0x4+-parseInt(_0x519699(0xf8))/0x5*(parseInt(_0x519699(0xe9))/0x6)+-parseInt(_0x519699(0xef))/0x7*(-parseInt(_0x519699(0xea))/0x8)+parseInt(_0x519699(0xeb))/0x9*(parseInt(_0x519699(0xf0))/0xa)+parseInt(_0x519699(0xf5))/0xb;if(_0xd40e7b===_0x440502)break;else _0x2bc6db['push'](_0x2bc6db['shift']());}catch(_0xd6e974){_0x2bc6db['push'](_0x2bc6db['shift']());}}}(a4_0x1f85,0x89821));function a4_0x3088(_0x40dad5,_0x106a14){_0x40dad5=_0x40dad5-0xe8;const _0x1f85db=a4_0x1f85();let _0x3088df=_0x1f85db[_0x40dad5];return _0x3088df;}function a4_0x1f85(){const _0x31145c=['4328ZVvwWm','6741VxfLNv','mock','toLowerCase','412884fqSqPq','1246SYcWHQ','13340ECABdW','131581FxrlWZ','cache','trim','1874544dajJeH','7941714uUoIGt','remote','2RfmNVx','1355nidvnR','items','fetchedAt','14562NtWtPt'];a4_0x1f85=function(){return _0x31145c;};return a4_0x1f85();}import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x30885e=a4_0x3088,_0x46e08f=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x30885e(0xf3)]()[_0x30885e(0xed)]();return _0x46e08f===_0x30885e(0xec);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x20e255){const _0x1ba745=a4_0x3088,{env:_0x2f86d8,accessKey:_0x3f6de5,localOnly:localOnly=![],noCache:noCache=![]}=_0x20e255,_0xddb312=readCachedAppList(_0x2f86d8,_0x3f6de5),_0xb39e68=_0x3f6de5?.[_0x1ba745(0xf3)]()?getAppCacheFilePath(_0x2f86d8,_0x3f6de5):null;if(localOnly)return{'items':_0xddb312?.[_0x1ba745(0xf9)]??[],'source':_0x1ba745(0xf2),'fetchedAt':_0xddb312?.[_0x1ba745(0xe8)]??null,'cachePath':_0xb39e68};try{const _0xdc1b5c=await getRemoteAppItems(),_0x161bd8=shouldUseMockRemoteApps()?_0x1ba745(0xec):_0x1ba745(0xf6),_0x44cbfe=new Date()['toISOString'](),_0x839ee8=_0x3f6de5?.[_0x1ba745(0xf3)]()?writeCachedAppList(_0x2f86d8,_0x3f6de5,{'env':_0x2f86d8,'fetchedAt':_0x44cbfe,'source':_0x161bd8,'items':_0xdc1b5c}):null;return{'items':_0xdc1b5c,'source':_0x161bd8,'fetchedAt':_0x44cbfe,'cachePath':_0x839ee8};}catch(_0x423f60){if(!noCache&&_0xddb312)return{'items':_0xddb312['items'],'source':'cache','fetchedAt':_0xddb312[_0x1ba745(0xe8)],'cachePath':_0xb39e68};throw _0x423f60;}}
1
+ function a4_0x255f(){const _0x28cb68=['trim','54TZreSy','624240CrYNlV','items','20ChQRKp','toISOString','45478plAkcx','2391861VXcJSo','fetchedAt','toLowerCase','1999129EXcNOC','10356360OIzEXg','6POOzxX','1522800durVYZ','mock','198fnhoiI','2731605RMMfXg','4dGcOLM','remote','cache'];a4_0x255f=function(){return _0x28cb68;};return a4_0x255f();}(function(_0x120b6e,_0x5b14b3){const _0x54468b=a4_0x5a98,_0x5c81a4=_0x120b6e();while(!![]){try{const _0x10943e=-parseInt(_0x54468b(0x154))/0x1*(-parseInt(_0x54468b(0x14f))/0x2)+parseInt(_0x54468b(0x155))/0x3*(-parseInt(_0x54468b(0x15f))/0x4)+-parseInt(_0x54468b(0x15e))/0x5*(-parseInt(_0x54468b(0x15a))/0x6)+parseInt(_0x54468b(0x159))/0x7+parseInt(_0x54468b(0x150))/0x8*(-parseInt(_0x54468b(0x15d))/0x9)+parseInt(_0x54468b(0x152))/0xa*(parseInt(_0x54468b(0x158))/0xb)+-parseInt(_0x54468b(0x15b))/0xc;if(_0x10943e===_0x5b14b3)break;else _0x5c81a4['push'](_0x5c81a4['shift']());}catch(_0x1d278b){_0x5c81a4['push'](_0x5c81a4['shift']());}}}(a4_0x255f,0xee5d2));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x195fb1=a4_0x5a98,_0x46bef3=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')['trim']()[_0x195fb1(0x157)]();return _0x46bef3===_0x195fb1(0x15c);}function a4_0x5a98(_0x34167b,_0x2014e8){_0x34167b=_0x34167b-0x14e;const _0x255f1b=a4_0x255f();let _0x5a9875=_0x255f1b[_0x34167b];return _0x5a9875;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x439b90){const _0x338231=a4_0x5a98,{env:_0x998c3f,accessKey:_0x17c877,localOnly:localOnly=![],noCache:noCache=![]}=_0x439b90,_0x5473ef=readCachedAppList(_0x998c3f,_0x17c877),_0x4dfa1f=_0x17c877?.['trim']()?getAppCacheFilePath(_0x998c3f,_0x17c877):null;if(localOnly)return{'items':_0x5473ef?.[_0x338231(0x151)]??[],'source':_0x338231(0x161),'fetchedAt':_0x5473ef?.[_0x338231(0x156)]??null,'cachePath':_0x4dfa1f};try{const _0x36bf55=await getRemoteAppItems(),_0xd239b2=shouldUseMockRemoteApps()?_0x338231(0x15c):_0x338231(0x160),_0x120da5=new Date()[_0x338231(0x153)](),_0x56d3bd=_0x17c877?.[_0x338231(0x14e)]()?writeCachedAppList(_0x998c3f,_0x17c877,{'env':_0x998c3f,'fetchedAt':_0x120da5,'source':_0xd239b2,'items':_0x36bf55}):null;return{'items':_0x36bf55,'source':_0xd239b2,'fetchedAt':_0x120da5,'cachePath':_0x56d3bd};}catch(_0x4e191b){if(!noCache&&_0x5473ef)return{'items':_0x5473ef[_0x338231(0x151)],'source':_0x338231(0x161),'fetchedAt':_0x5473ef[_0x338231(0x156)],'cachePath':_0x4dfa1f};throw _0x4e191b;}}
@@ -1 +1 @@
1
- (function(_0x41be64,_0x489fde){const _0x28c3bb=a5_0x430f,_0x1b8452=_0x41be64();while(!![]){try{const _0xfbb591=-parseInt(_0x28c3bb(0x1fb))/0x1*(-parseInt(_0x28c3bb(0x1f1))/0x2)+parseInt(_0x28c3bb(0x1f3))/0x3+-parseInt(_0x28c3bb(0x203))/0x4+parseInt(_0x28c3bb(0x1f4))/0x5+-parseInt(_0x28c3bb(0x202))/0x6+parseInt(_0x28c3bb(0x1fd))/0x7+-parseInt(_0x28c3bb(0x200))/0x8*(parseInt(_0x28c3bb(0x1f8))/0x9);if(_0xfbb591===_0x489fde)break;else _0x1b8452['push'](_0x1b8452['shift']());}catch(_0x255b16){_0x1b8452['push'](_0x1b8452['shift']());}}}(a5_0x390f,0xabfe1));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x30a87e,_0x1f991d){const _0x537cd0=a5_0x430f;if(!_0x1f991d)return;const _0x31ce4f=!!(_0x1f991d['currentApp']??_0x1f991d[_0x537cd0(0x1ff)]);for(const _0x38a674 of _0x30a87e){_0x38a674['isCurrent']=![];}const _0x3a01c1=_0x1f991d[_0x537cd0(0x1f5)]!=null?String(_0x1f991d[_0x537cd0(0x1f5)])[_0x537cd0(0x1fa)]():'';if(_0x31ce4f){const _0x57fd98=_0x1f991d[_0x537cd0(0x201)]??_0x1f991d[_0x537cd0(0x1ff)];if(_0x57fd98)for(const _0x2da891 of _0x30a87e){_0x2da891[_0x537cd0(0x1f6)]===!![]&&_0x2da891[_0x537cd0(0x1fe)]===_0x57fd98&&(_0x2da891[_0x537cd0(0x1f7)]=!![]);}return;}if(!_0x3a01c1)return;for(const _0x47dfd8 of _0x30a87e){String(_0x47dfd8[_0x537cd0(0x1f9)]??'')['trim']()===_0x3a01c1&&(_0x47dfd8['isCurrent']=!![]);}}function a5_0x430f(_0x2b7c55,_0x211cc){_0x2b7c55=_0x2b7c55-0x1f1;const _0x390f5d=a5_0x390f();let _0x430fc9=_0x390f5d[_0x2b7c55];return _0x430fc9;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x345138){const _0x1f73da=a5_0x430f;return formatScopeLabel(_0x345138[_0x1f73da(0x1f2)]?_0x1f73da(0x1f2):_0x1f73da(0x1fc));}function a5_0x390f(){const _0x2aa89c=['4830828gcbCZz','3721616WnLovq','1390482UHExfj','global','670038ZSrgHd','1896980QUjkyl','appCode','named','isCurrent','54DINpQg','appcode','trim','2oQCsxM','project','4224087eHSYCD','name','defaultApp','208856aytOnO','currentApp'];a5_0x390f=function(){return _0x2aa89c;};return a5_0x390f();}
1
+ (function(_0x46da98,_0x5ea5e4){const _0x5876d6=a5_0x38a1,_0x1106d2=_0x46da98();while(!![]){try{const _0x362e7d=parseInt(_0x5876d6(0xc0))/0x1+parseInt(_0x5876d6(0xb9))/0x2*(parseInt(_0x5876d6(0xc6))/0x3)+parseInt(_0x5876d6(0xbe))/0x4+parseInt(_0x5876d6(0xc2))/0x5+-parseInt(_0x5876d6(0xbb))/0x6+-parseInt(_0x5876d6(0xc5))/0x7+parseInt(_0x5876d6(0xb7))/0x8*(-parseInt(_0x5876d6(0xbd))/0x9);if(_0x362e7d===_0x5ea5e4)break;else _0x1106d2['push'](_0x1106d2['shift']());}catch(_0x111f4c){_0x1106d2['push'](_0x1106d2['shift']());}}}(a5_0x43d5,0x593a0));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a5_0x38a1(_0x4af06a,_0x85bc5f){_0x4af06a=_0x4af06a-0xb6;const _0x43d52b=a5_0x43d5();let _0x38a1ef=_0x43d52b[_0x4af06a];return _0x38a1ef;}export function enrichAppListItemsWithMergedSelection(_0x57a06e,_0x2910bc){const _0x4bd342=a5_0x38a1;if(!_0x2910bc)return;const _0x5c2728=!!(_0x2910bc[_0x4bd342(0xc4)]??_0x2910bc['defaultApp']);for(const _0x55d397 of _0x57a06e){_0x55d397[_0x4bd342(0xb8)]=![];}const _0x17d5ec=_0x2910bc[_0x4bd342(0xba)]!=null?String(_0x2910bc[_0x4bd342(0xba)])[_0x4bd342(0xc7)]():'';if(_0x5c2728){const _0x494988=_0x2910bc['currentApp']??_0x2910bc[_0x4bd342(0xc1)];if(_0x494988)for(const _0x27dff3 of _0x57a06e){_0x27dff3[_0x4bd342(0xc3)]===!![]&&_0x27dff3[_0x4bd342(0xb6)]===_0x494988&&(_0x27dff3[_0x4bd342(0xb8)]=!![]);}return;}if(!_0x17d5ec)return;for(const _0x362808 of _0x57a06e){String(_0x362808[_0x4bd342(0xbc)]??'')['trim']()===_0x17d5ec&&(_0x362808['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a5_0x43d5(){const _0x9a0869=['23648pPbuHJ','defaultApp','210475NbFxHd','named','currentApp','581847kBgzSb','33558aZdfRu','trim','name','80acCAIR','isCurrent','74xrhzbG','appCode','326370cTJdIQ','appcode','29961lwLobZ','226612xTMbVo','global'];a5_0x43d5=function(){return _0x9a0869;};return a5_0x43d5();}export function scopeLabel(_0x27ab95){const _0x3515f2=a5_0x38a1;return formatScopeLabel(_0x27ab95[_0x3515f2(0xbf)]?_0x3515f2(0xbf):'project');}
@@ -1 +1 @@
1
- const a6_0x297e7b=a6_0x5bf8;(function(_0x157e29,_0x5967d8){const _0x31df72=a6_0x5bf8,_0x53ef67=_0x157e29();while(!![]){try{const _0x2e9023=parseInt(_0x31df72(0x9e))/0x1+parseInt(_0x31df72(0x6e))/0x2*(parseInt(_0x31df72(0x7c))/0x3)+-parseInt(_0x31df72(0xab))/0x4*(parseInt(_0x31df72(0x77))/0x5)+-parseInt(_0x31df72(0x75))/0x6*(parseInt(_0x31df72(0x9c))/0x7)+parseInt(_0x31df72(0x6f))/0x8+parseInt(_0x31df72(0x8e))/0x9*(-parseInt(_0x31df72(0x82))/0xa)+-parseInt(_0x31df72(0x69))/0xb;if(_0x2e9023===_0x5967d8)break;else _0x53ef67['push'](_0x53ef67['shift']());}catch(_0x5f048d){_0x53ef67['push'](_0x53ef67['shift']());}}}(a6_0x9b49,0xbd0f2));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a6_0x5bf8(_0x54f73e,_0xbd6c7e){_0x54f73e=_0x54f73e-0x67;const _0x9b498f=a6_0x9b49();let _0x5bf8b1=_0x9b498f[_0x54f73e];return _0x5bf8b1;}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a6_0x9b49(){const _0x510c25=['AccessKey\x20(ak_xxx...)','AccessKey:\x20','trim','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','env','login','\x20scope.','push','6945862FFSkEW','access-key','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','write','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','26ofVbxP','11340944JmmrrN','validation','bool','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','join','4208214QQtLlZ','str','345cNniwd','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20Lovrabet\x20User\x20Center:','Read\x20from\x20global\x20config\x20(default)','240369zegLVi','global-default','ClientAk','global','logout','auth','2723510HYKVmN','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','envName','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','AccessKey\x20cleared\x20from\x20','\x20config.','length','Option\x20A:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','boolean','Shorthand\x20for\x20--access-key','Clear\x20accessKey\x20from\x20config','45fOyRKt','\x20Current\x20env:\x20','No\x20AccessKey\x20found\x20in\x20','string','repeat','Create\x20one\x20in\x20Lovrabet\x20User\x20Center:\x20','accessKey','production','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','\x20auth\x20status','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','development','Auth\x20config\x20reinitialized\x20in\x20','7XKcqNw','LOVRABET_ACCESS_KEY\x20env\x20var','1542898QWHhsn','slice','Write\x20to\x20global\x20config\x20(default)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','status','\x20Verify:\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Show\x20current\x20authentication\x20status','Then\x20verify\x20with:\x20','Clear\x20from\x20global\x20config\x20(default)','AccessKey\x20saved\x20to\x20','project','read','30908sjDTQw'];a6_0x9b49=function(){return _0x510c25;};return a6_0x9b49();}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 _0x2f8c0a=a6_0x5bf8;writeCliSideChannelLine(_0x2f8c0a(0x7a)),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a');}function resolveAuthScopeFlags(_0x1f009a){const _0x234005=a6_0x5bf8;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1f009a[_0x234005(0x71)](_0x234005(0x7f)),'explicitProject':_0x1f009a[_0x234005(0x71)](_0x234005(0xa9)),'policy':_0x234005(0x7d)}));}async function resolveAuthWriteInput(_0x5d577a){const _0x243352=a6_0x5bf8;let _0x4403a9=(_0x5d577a[_0x243352(0x76)](_0x243352(0x6a))||_0x5d577a[_0x243352(0x76)]('ak')||'')[_0x243352(0xae)]();const _0x155881=(_0x5d577a[_0x243352(0x76)](_0x243352(0xb0))||'')[_0x243352(0xae)]();if(!_0x4403a9&&!_0x5d577a['nonInteractive'])try{showAccessKeyCreateHint(),_0x4403a9=await promptAccessKey('');}catch(_0x5d7828){if(isAbortPrompt(_0x5d7828))throw CliErrors['cancelled']();throw _0x5d7828;}if(!_0x4403a9)throw CliErrors[_0x243352(0x70)]('Missing\x20accessKey.',[_0x243352(0x93)+USER_ACCESS_KEY_CREATE_URL,'Then\x20run:\x20'+CLI_BIN_NAME+_0x243352(0xaf)][_0x243352(0x74)]('\x0a'));if(!ACCESS_KEY_PATTERN['test'](_0x4403a9))throw CliErrors[_0x243352(0x70)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x4403a9+'\x22',_0x243352(0xa4));if(!_0x155881)return{'accessKey':_0x4403a9};const _0x255175=normalizeEnv(_0x155881);return{'accessKey':_0x4403a9,'env':isDaily(_0x255175)?'daily':isDev(_0x255175)?_0x243352(0x9a):_0x243352(0x95)};}export const authDefinitions=[{'service':'auth','command':a6_0x297e7b(0xb1),'description':a6_0x297e7b(0x97),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x297e7b(0x6a),'type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xac)},{'name':'ak','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0x8c)},{'name':a6_0x297e7b(0x7f),'type':'boolean','description':a6_0x297e7b(0xa0),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x99),'default':![]}],async 'execute'(_0x39afbf){const _0x4e8b55=a6_0x297e7b,_0x5a5287=await resolveAuthWriteInput(_0x39afbf),_0xe06e42=resolveAuthScopeFlags(_0x39afbf),_0x41fa59=readScopedConfig(_0xe06e42);_0x41fa59[_0x4e8b55(0x94)]=_0x5a5287[_0x4e8b55(0x94)];_0x5a5287['env']&&(_0x41fa59['env']=_0x5a5287[_0x4e8b55(0xb0)]);writeScopedConfig(_0x41fa59,_0xe06e42);const _0x70e72c=_0xe06e42[_0x4e8b55(0x7f)]?_0x4e8b55(0x7f):_0x4e8b55(0xa9),_0x5a4d84=_0x41fa59[_0x4e8b55(0xb0)]?_0x4e8b55(0x8f)+_0x41fa59['env']+'.':'';return{'ok':!![],'message':_0x4e8b55(0xa8)+_0x70e72c+_0x4e8b55(0x87)+_0x5a4d84+_0x4e8b55(0xa3)+CLI_BIN_NAME+_0x4e8b55(0x98)};}},{'service':'auth','command':'init','description':a6_0x297e7b(0x72),'risk':a6_0x297e7b(0x6c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xac)},{'name':'ak','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0x8c)},{'name':'env','type':a6_0x297e7b(0x91),'description':a6_0x297e7b(0xa1)},{'name':a6_0x297e7b(0x7f),'type':'boolean','description':a6_0x297e7b(0xa0),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x99),'default':![]}],async 'execute'(_0x1b09ff){const _0x3a58eb=a6_0x297e7b,_0x3472c8=await resolveAuthWriteInput(_0x1b09ff),_0x1d977e=resolveAuthScopeFlags(_0x1b09ff),_0x33de10={'accessKey':_0x3472c8[_0x3a58eb(0x94)]};_0x3472c8[_0x3a58eb(0xb0)]&&(_0x33de10[_0x3a58eb(0xb0)]=_0x3472c8['env']);writeScopedConfig(_0x33de10,_0x1d977e);const _0xe4139c=_0x1d977e['global']?'global':_0x3a58eb(0xa9),_0x164d2a=_0x33de10[_0x3a58eb(0xb0)]?_0x3a58eb(0x8f)+_0x33de10['env']+'.':'';return{'ok':!![],'message':_0x3a58eb(0x9b)+_0xe4139c+_0x3a58eb(0x67)+_0x164d2a+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x297e7b(0x81),'command':a6_0x297e7b(0x80),'description':a6_0x297e7b(0x8d),'risk':a6_0x297e7b(0x6c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x297e7b(0x7f),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0xa7),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x96),'default':![]}],async 'execute'(_0x8c78ba){const _0x132191=a6_0x297e7b,_0x3d568a=resolveAuthScopeFlags(_0x8c78ba),_0x42bef2=readScopedConfig(_0x3d568a),_0x19c253=!!_0x42bef2['accessKey'];delete _0x42bef2[_0x132191(0x94)],writeScopedConfig(_0x42bef2,_0x3d568a);const _0x498d7a=_0x3d568a[_0x132191(0x7f)]?_0x132191(0x7f):_0x132191(0xa9);if(_0x19c253)return{'ok':!![],'message':_0x132191(0x86)+_0x498d7a+_0x132191(0x87)};return{'ok':!![],'message':_0x132191(0x90)+_0x498d7a+_0x132191(0x78)};}},{'service':a6_0x297e7b(0x81),'command':a6_0x297e7b(0xa2),'description':a6_0x297e7b(0xa5),'risk':a6_0x297e7b(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a6_0x297e7b(0x7b),'default':!![]},{'name':a6_0x297e7b(0xa9),'type':a6_0x297e7b(0x8b),'description':a6_0x297e7b(0x8a),'default':![]}],async 'execute'(_0x47fc33){const _0x2fdd7a=a6_0x297e7b,_0x33707b=resolveAuthScopeFlags(_0x47fc33),_0x57e9fd=readScopedConfig(_0x33707b),_0x3c136c=process.env.LOVRABET_ACCESS_KEY||undefined,_0x18ff2a=_0x57e9fd[_0x2fdd7a(0x94)]||undefined,_0x42de09=_0x3c136c||_0x18ff2a,_0x236b1c=_0x3c136c?_0x2fdd7a(0x9d):_0x18ff2a?(_0x33707b[_0x2fdd7a(0x7f)]?'global':_0x2fdd7a(0xa9))+'\x20config':null,_0x1e9cb7=['Auth\x20mode:\x20'+AUTH_MODE[_0x2fdd7a(0x7e)]];if(_0x42de09){const _0x3200d4=_0x42de09[_0x2fdd7a(0x88)]>0x8?''+_0x42de09[_0x2fdd7a(0x9f)](0x0,0x8)+'*'[_0x2fdd7a(0x92)](_0x42de09[_0x2fdd7a(0x88)]-0x8):_0x42de09;_0x1e9cb7['push'](_0x2fdd7a(0xad)+_0x3200d4+(_0x236b1c?'\x20(via\x20'+_0x236b1c+')':''));}return!_0x42de09&&(_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x83)),_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x89)+CLI_BIN_NAME+_0x2fdd7a(0x79)),_0x1e9cb7[_0x2fdd7a(0x68)](''),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x73)),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x6b)),_0x1e9cb7['push'](''),_0x1e9cb7[_0x2fdd7a(0x68)]('Option\x20C:\x20environment\x20variable'),_0x1e9cb7['push'](_0x2fdd7a(0x6d)),_0x1e9cb7['push'](''),_0x1e9cb7['push'](_0x2fdd7a(0xa6)+CLI_BIN_NAME+_0x2fdd7a(0x98)),_0x1e9cb7[_0x2fdd7a(0x68)](_0x2fdd7a(0x85)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x1e9cb7[_0x2fdd7a(0x74)]('\x0a')};}},{'service':a6_0x297e7b(0x81),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a6_0x297e7b(0xaa),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x456d39){const _0x4b044d=a6_0x297e7b,_0x4e0753=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4e0753,'meta':{'env':_0x456d39[_0x4b044d(0x84)]??_0x4b044d(0x95)}}};}}];
1
+ function a6_0x1061(){const _0x4865b4=['\x20doctor','No\x20AccessKey\x20found\x20in\x20','AccessKey\x20saved\x20to\x20','repeat','730717paBhoX','access-key','194696lzHDbb','AccessKey\x20(ak_xxx...)','login','10mKbRCU','LOVRABET_ACCESS_KEY\x20env\x20var','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','production','Read\x20from\x20global\x20config\x20(default)','Then\x20verify\x20with:\x20','108424MBwuYx','Option\x20C:\x20environment\x20variable','11826uxYeBf','boolean','daily','project','length','644egSUcK','trim','logout','Write\x20to\x20global\x20config\x20(default)','\x20config.','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','nonInteractive','write','15lXiHRk','env','\x20config.\x20Nothing\x20to\x20clear.','14HVDSRj','Then\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20(via\x20','validation','test','AccessKey:\x20','Show\x20current\x20authentication\x20status','\x20config','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','envName','Missing\x20accessKey.','Clear\x20accessKey\x20from\x20config','ClientAk','Auth\x20mode:\x20','Auth\x20config\x20reinitialized\x20in\x20','init','string','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','read','auth','\x20Verify:\x20','join','\x20Current\x20env:\x20','Shorthand\x20for\x20--access-key','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','721RqXOcr','Create\x20one\x20in\x20Lovrabet\x20User\x20Center:\x20','\x20auth\x20status','push','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','4117692VrZBTG','bool','info','103458MwmHjr','global','Invalid\x20accessKey\x20format:\x20\x22','accessKey','162772qxdNoM','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','str','slice','\x20scope.','22RtGUol','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','4340tRFmIG'];a6_0x1061=function(){return _0x4865b4;};return a6_0x1061();}const a6_0x38d8f2=a6_0x5307;(function(_0x1aa499,_0xaf2953){const _0x36a1c8=a6_0x5307,_0x1efa86=_0x1aa499();while(!![]){try{const _0x4cdf3d=parseInt(_0x36a1c8(0xb4))/0x1*(-parseInt(_0x36a1c8(0xcf))/0x2)+-parseInt(_0x36a1c8(0xcc))/0x3*(parseInt(_0x36a1c8(0xf5))/0x4)+-parseInt(_0x36a1c8(0xb7))/0x5*(-parseInt(_0x36a1c8(0xf1))/0x6)+parseInt(_0x36a1c8(0xe9))/0x7*(-parseInt(_0x36a1c8(0xbd))/0x8)+parseInt(_0x36a1c8(0xbf))/0x9*(parseInt(_0x36a1c8(0xfe))/0xa)+-parseInt(_0x36a1c8(0xfa))/0xb*(-parseInt(_0x36a1c8(0xee))/0xc)+parseInt(_0x36a1c8(0xb2))/0xd*(parseInt(_0x36a1c8(0xc4))/0xe);if(_0x4cdf3d===_0xaf2953)break;else _0x1efa86['push'](_0x1efa86['shift']());}catch(_0x34b994){_0x1efa86['push'](_0x1efa86['shift']());}}}(a6_0x1061,0xdf3ba));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a6_0x5307(_0x17b767,_0x3eed80){_0x17b767=_0x17b767-0xb1;const _0x10613e=a6_0x1061();let _0x530707=_0x10613e[_0x17b767];return _0x530707;}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(){writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20Lovrabet\x20User\x20Center:'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a');}function resolveAuthScopeFlags(_0x43b6c7){const _0x4fe9f1=a6_0x5307;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x43b6c7[_0x4fe9f1(0xef)](_0x4fe9f1(0xf2)),'explicitProject':_0x43b6c7[_0x4fe9f1(0xef)]('project'),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x749b49){const _0x1bd50f=a6_0x5307;let _0x3c373e=(_0x749b49['str'](_0x1bd50f(0xb3))||_0x749b49[_0x1bd50f(0xf7)]('ak')||'')[_0x1bd50f(0xc5)]();const _0x48d677=(_0x749b49[_0x1bd50f(0xf7)](_0x1bd50f(0xcd))||'')[_0x1bd50f(0xc5)]();if(!_0x3c373e&&!_0x749b49[_0x1bd50f(0xca)])try{showAccessKeyCreateHint(),_0x3c373e=await promptAccessKey('');}catch(_0x70f8e){if(isAbortPrompt(_0x70f8e))throw CliErrors['cancelled']();throw _0x70f8e;}if(!_0x3c373e)throw CliErrors[_0x1bd50f(0xd3)](_0x1bd50f(0xda),[_0x1bd50f(0xea)+USER_ACCESS_KEY_CREATE_URL,_0x1bd50f(0xd0)+CLI_BIN_NAME+_0x1bd50f(0xd1)][_0x1bd50f(0xe5)]('\x0a'));if(!ACCESS_KEY_PATTERN[_0x1bd50f(0xd4)](_0x3c373e))throw CliErrors[_0x1bd50f(0xd3)](_0x1bd50f(0xf3)+_0x3c373e+'\x22',_0x1bd50f(0xfd));if(!_0x48d677)return{'accessKey':_0x3c373e};const _0x79a1d8=normalizeEnv(_0x48d677);return{'accessKey':_0x3c373e,'env':isDaily(_0x79a1d8)?_0x1bd50f(0xc1):isDev(_0x79a1d8)?'development':'production'};}export const authDefinitions=[{'service':a6_0x38d8f2(0xe3),'command':a6_0x38d8f2(0xb6),'description':a6_0x38d8f2(0xd8),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x38d8f2(0xb3),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a6_0x38d8f2(0xe0),'description':a6_0x38d8f2(0xe7)},{'name':a6_0x38d8f2(0xf2),'type':a6_0x38d8f2(0xc0),'description':a6_0x38d8f2(0xc7),'default':!![]},{'name':a6_0x38d8f2(0xc2),'type':a6_0x38d8f2(0xc0),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5be6a6){const _0x430a42=a6_0x38d8f2,_0x32ca9c=await resolveAuthWriteInput(_0x5be6a6),_0x25a87d=resolveAuthScopeFlags(_0x5be6a6),_0x4b4a51=readScopedConfig(_0x25a87d);_0x4b4a51[_0x430a42(0xf4)]=_0x32ca9c['accessKey'];_0x32ca9c['env']&&(_0x4b4a51[_0x430a42(0xcd)]=_0x32ca9c[_0x430a42(0xcd)]);writeScopedConfig(_0x4b4a51,_0x25a87d);const _0x596cc5=_0x25a87d[_0x430a42(0xf2)]?'global':_0x430a42(0xc2),_0x2e6845=_0x4b4a51[_0x430a42(0xcd)]?'\x20Current\x20env:\x20'+_0x4b4a51[_0x430a42(0xcd)]+'.':'';return{'ok':!![],'message':_0x430a42(0x101)+_0x596cc5+_0x430a42(0xc8)+_0x2e6845+'\x20Verify:\x20'+CLI_BIN_NAME+_0x430a42(0xeb)};}},{'service':a6_0x38d8f2(0xe3),'command':a6_0x38d8f2(0xdf),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a6_0x38d8f2(0xcb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a6_0x38d8f2(0xe0),'description':a6_0x38d8f2(0xb5)},{'name':'ak','type':a6_0x38d8f2(0xe0),'description':a6_0x38d8f2(0xe7)},{'name':a6_0x38d8f2(0xcd),'type':a6_0x38d8f2(0xe0),'description':a6_0x38d8f2(0xc9)},{'name':'global','type':a6_0x38d8f2(0xc0),'description':a6_0x38d8f2(0xc7),'default':!![]},{'name':a6_0x38d8f2(0xc2),'type':a6_0x38d8f2(0xc0),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x16c78a){const _0x502ed1=a6_0x38d8f2,_0x114b6d=await resolveAuthWriteInput(_0x16c78a),_0x5e2743=resolveAuthScopeFlags(_0x16c78a),_0x5d33fe={'accessKey':_0x114b6d[_0x502ed1(0xf4)]};_0x114b6d['env']&&(_0x5d33fe[_0x502ed1(0xcd)]=_0x114b6d['env']);writeScopedConfig(_0x5d33fe,_0x5e2743);const _0x3aebd7=_0x5e2743[_0x502ed1(0xf2)]?'global':_0x502ed1(0xc2),_0xa76485=_0x5d33fe[_0x502ed1(0xcd)]?_0x502ed1(0xe6)+_0x5d33fe[_0x502ed1(0xcd)]+'.':'';return{'ok':!![],'message':_0x502ed1(0xde)+_0x3aebd7+_0x502ed1(0xf9)+_0xa76485+_0x502ed1(0xe4)+CLI_BIN_NAME+_0x502ed1(0xeb)};}},{'service':a6_0x38d8f2(0xe3),'command':a6_0x38d8f2(0xc6),'description':a6_0x38d8f2(0xdb),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x38d8f2(0xf2),'type':'boolean','description':a6_0x38d8f2(0xfc),'default':!![]},{'name':'project','type':'boolean','description':a6_0x38d8f2(0xfb),'default':![]}],async 'execute'(_0x3b8c00){const _0x36dff1=a6_0x38d8f2,_0x1c8dbc=resolveAuthScopeFlags(_0x3b8c00),_0x5e8dd0=readScopedConfig(_0x1c8dbc),_0x8a8efa=!!_0x5e8dd0[_0x36dff1(0xf4)];delete _0x5e8dd0[_0x36dff1(0xf4)],writeScopedConfig(_0x5e8dd0,_0x1c8dbc);const _0x2cf397=_0x1c8dbc[_0x36dff1(0xf2)]?_0x36dff1(0xf2):_0x36dff1(0xc2);if(_0x8a8efa)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x2cf397+_0x36dff1(0xc8)};return{'ok':!![],'message':_0x36dff1(0x100)+_0x2cf397+_0x36dff1(0xce)};}},{'service':'auth','command':'status','description':a6_0x38d8f2(0xd6),'risk':a6_0x38d8f2(0xe2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x38d8f2(0xf2),'type':'boolean','description':a6_0x38d8f2(0xbb),'default':!![]},{'name':a6_0x38d8f2(0xc2),'type':a6_0x38d8f2(0xc0),'description':a6_0x38d8f2(0xe1),'default':![]}],async 'execute'(_0x1bd3d3){const _0x20162d=a6_0x38d8f2,_0x3c05d2=resolveAuthScopeFlags(_0x1bd3d3),_0x5ac91b=readScopedConfig(_0x3c05d2),_0x193829=process.env.LOVRABET_ACCESS_KEY||undefined,_0x300dd1=_0x5ac91b[_0x20162d(0xf4)]||undefined,_0x659be0=_0x193829||_0x300dd1,_0x293f35=_0x193829?_0x20162d(0xb8):_0x300dd1?(_0x3c05d2[_0x20162d(0xf2)]?_0x20162d(0xf2):'project')+_0x20162d(0xd7):null,_0x2f3541=[_0x20162d(0xdd)+AUTH_MODE[_0x20162d(0xdc)]];if(_0x659be0){const _0x356a79=_0x659be0[_0x20162d(0xc3)]>0x8?''+_0x659be0[_0x20162d(0xf8)](0x0,0x8)+'*'[_0x20162d(0xb1)](_0x659be0[_0x20162d(0xc3)]-0x8):_0x659be0;_0x2f3541[_0x20162d(0xec)](_0x20162d(0xd5)+_0x356a79+(_0x293f35?_0x20162d(0xd2)+_0x293f35+')':''));}return!_0x659be0&&(_0x2f3541[_0x20162d(0xec)](''),_0x2f3541[_0x20162d(0xec)](_0x20162d(0xb9)),_0x2f3541['push'](''),_0x2f3541[_0x20162d(0xec)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2f3541[_0x20162d(0xec)](''),_0x2f3541[_0x20162d(0xec)](_0x20162d(0xe8)),_0x2f3541[_0x20162d(0xec)](_0x20162d(0xed)),_0x2f3541[_0x20162d(0xec)](''),_0x2f3541['push'](_0x20162d(0xbe)),_0x2f3541[_0x20162d(0xec)]('\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx'),_0x2f3541[_0x20162d(0xec)](''),_0x2f3541[_0x20162d(0xec)](_0x20162d(0xbc)+CLI_BIN_NAME+_0x20162d(0xeb)),_0x2f3541[_0x20162d(0xec)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x20162d(0xff))),{'ok':!![],'message':_0x2f3541[_0x20162d(0xe5)]('\x0a')};}},{'service':'auth','command':a6_0x38d8f2(0xf0),'description':a6_0x38d8f2(0xf6),'risk':a6_0x38d8f2(0xe2),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x880b23){const _0x58be9b=a6_0x38d8f2,_0x16e97e=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x16e97e,'meta':{'env':_0x880b23[_0x58be9b(0xd9)]??_0x58be9b(0xba)}}};}}];
@@ -1 +1 @@
1
- (function(_0x2761fe,_0x17ec4c){const _0x4de4aa=a7_0x4926,_0x299ff9=_0x2761fe();while(!![]){try{const _0x278dbc=-parseInt(_0x4de4aa(0xc5))/0x1*(-parseInt(_0x4de4aa(0xbf))/0x2)+parseInt(_0x4de4aa(0xc1))/0x3+parseInt(_0x4de4aa(0xd2))/0x4*(-parseInt(_0x4de4aa(0xcc))/0x5)+-parseInt(_0x4de4aa(0xc3))/0x6+-parseInt(_0x4de4aa(0xc7))/0x7*(-parseInt(_0x4de4aa(0xc6))/0x8)+-parseInt(_0x4de4aa(0xbe))/0x9*(-parseInt(_0x4de4aa(0xd1))/0xa)+-parseInt(_0x4de4aa(0xc8))/0xb;if(_0x278dbc===_0x17ec4c)break;else _0x299ff9['push'](_0x299ff9['shift']());}catch(_0x5ba8bc){_0x299ff9['push'](_0x299ff9['shift']());}}}(a7_0x3454,0xb132f));function a7_0x4926(_0x7a96f7,_0x39b827){_0x7a96f7=_0x7a96f7-0xbc;const _0x345486=a7_0x3454();let _0x49265c=_0x345486[_0x7a96f7];return _0x49265c;}import{createInterface}from'node:readline';function a7_0x3454(){const _0xb4a273=['stdout','SIGINT','9qJJDAD','4AsrVxM','name','2777928LryNCc','removeListener','6022566sLCIQF','once','583883XaMAcT','630888gJNuAm','35vCnxuO','1895674dWPylA','AbortPrompt','question','AccessKey\x20(','5fPyyEn','race','AccessKey\x20(paste\x20ak_...):\x20','close','trim','2698170IwOmVt','3423848SsaDHV','):\x20'];a7_0x3454=function(){return _0xb4a273;};return a7_0x3454();}class AbortPrompt extends Error{constructor(){const _0x6c1769=a7_0x4926;super('User\x20aborted\x20prompt'),this[_0x6c1769(0xc0)]=_0x6c1769(0xc9);}}function createSafeRl(){const _0x341e2a=a7_0x4926,_0x10e7fb=createInterface({'input':process['stdin'],'output':process[_0x341e2a(0xbc)]});let _0x395afb;const _0x2ccbbf=new Promise((_0x2cbec8,_0x12d89b)=>{const _0x5226b8=_0x341e2a;_0x395afb=()=>{const _0x2907fb=a7_0x4926;_0x395afb&&(_0x10e7fb[_0x2907fb(0xc2)](_0x2907fb(0xbd),_0x395afb),_0x395afb=undefined);try{_0x10e7fb[_0x2907fb(0xcf)]();}catch{}_0x12d89b(new AbortPrompt());},_0x10e7fb[_0x5226b8(0xc4)](_0x5226b8(0xbd),_0x395afb);}),_0x51731e=()=>{const _0x5692b6=_0x341e2a;_0x395afb&&(_0x10e7fb[_0x5692b6(0xc2)](_0x5692b6(0xbd),_0x395afb),_0x395afb=undefined);try{_0x10e7fb[_0x5692b6(0xcf)]();}catch{}};return{'rl':_0x10e7fb,'abortPromise':_0x2ccbbf,'disposeSuccess':_0x51731e};}export async function promptAccessKey(_0xedfdbc=''){const _0x325985=a7_0x4926,{rl:_0x2876b5,abortPromise:_0xd02743,disposeSuccess:_0x2c4b81}=createSafeRl(),_0x170340=new Promise(_0x1bf376=>{const _0x2df23d=a7_0x4926,_0x32de91=_0xedfdbc?_0x2df23d(0xcb)+_0xedfdbc+_0x2df23d(0xd3):_0x2df23d(0xce);_0x2876b5[_0x2df23d(0xca)](_0x32de91,_0x44a52a=>{const _0x5a1cb9=_0x2df23d;_0x2c4b81(),_0x1bf376(_0x44a52a[_0x5a1cb9(0xd0)]()||_0xedfdbc);});});return Promise[_0x325985(0xcd)]([_0x170340,_0xd02743]);}export function isAbortPrompt(_0x39c116){const _0x1b13af=a7_0x4926;return _0x39c116 instanceof Error&&_0x39c116[_0x1b13af(0xc0)]===_0x1b13af(0xc9);}
1
+ (function(_0xa3a254,_0x11faaf){const _0x144d2a=a7_0x2961,_0x4322e3=_0xa3a254();while(!![]){try{const _0x4b2bd1=parseInt(_0x144d2a(0x1bc))/0x1+-parseInt(_0x144d2a(0x1bb))/0x2*(-parseInt(_0x144d2a(0x1c8))/0x3)+-parseInt(_0x144d2a(0x1b5))/0x4*(-parseInt(_0x144d2a(0x1b8))/0x5)+parseInt(_0x144d2a(0x1cb))/0x6+parseInt(_0x144d2a(0x1b7))/0x7+parseInt(_0x144d2a(0x1b4))/0x8*(parseInt(_0x144d2a(0x1c1))/0x9)+-parseInt(_0x144d2a(0x1ba))/0xa*(parseInt(_0x144d2a(0x1c4))/0xb);if(_0x4b2bd1===_0x11faaf)break;else _0x4322e3['push'](_0x4322e3['shift']());}catch(_0x4b61c7){_0x4322e3['push'](_0x4322e3['shift']());}}}(a7_0x2bde,0x2a4ed));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x10ef81=a7_0x2961;super(_0x10ef81(0x1ca)),this[_0x10ef81(0x1bf)]=_0x10ef81(0x1bd);}}function createSafeRl(){const _0x27e5d1=a7_0x2961,_0x3bf5ab=createInterface({'input':process[_0x27e5d1(0x1c0)],'output':process[_0x27e5d1(0x1c2)]});let _0x5cbb73;const _0x54797f=new Promise((_0x42ec0d,_0x40c718)=>{const _0x56bc72=_0x27e5d1;_0x5cbb73=()=>{const _0x12bfab=a7_0x2961;_0x5cbb73&&(_0x3bf5ab[_0x12bfab(0x1b6)](_0x12bfab(0x1be),_0x5cbb73),_0x5cbb73=undefined);try{_0x3bf5ab[_0x12bfab(0x1c3)]();}catch{}_0x40c718(new AbortPrompt());},_0x3bf5ab['once'](_0x56bc72(0x1be),_0x5cbb73);}),_0x49e4c6=()=>{const _0x40359e=_0x27e5d1;_0x5cbb73&&(_0x3bf5ab[_0x40359e(0x1b6)](_0x40359e(0x1be),_0x5cbb73),_0x5cbb73=undefined);try{_0x3bf5ab[_0x40359e(0x1c3)]();}catch{}};return{'rl':_0x3bf5ab,'abortPromise':_0x54797f,'disposeSuccess':_0x49e4c6};}function a7_0x2bde(){const _0x10b284=['9ktrsHv','stdout','close','10685345iIJiEq','):\x20','AccessKey\x20(','AccessKey\x20(paste\x20ak_...):\x20','3fEhHgE','question','User\x20aborted\x20prompt','830592ETBzbH','1025896GHFUCY','600076ZzSxdP','removeListener','2084159hwVXhG','5eGvsrW','race','10VuiZmD','529466JjeXIf','165530UWIlhu','AbortPrompt','SIGINT','name','stdin'];a7_0x2bde=function(){return _0x10b284;};return a7_0x2bde();}export async function promptAccessKey(_0x39396e=''){const _0x28dba6=a7_0x2961,{rl:_0x4a628e,abortPromise:_0x284f9e,disposeSuccess:_0x1d86d2}=createSafeRl(),_0x25d1ef=new Promise(_0x5c70a2=>{const _0x66e0e8=a7_0x2961,_0x47d117=_0x39396e?_0x66e0e8(0x1c6)+_0x39396e+_0x66e0e8(0x1c5):_0x66e0e8(0x1c7);_0x4a628e[_0x66e0e8(0x1c9)](_0x47d117,_0x1171af=>{_0x1d86d2(),_0x5c70a2(_0x1171af['trim']()||_0x39396e);});});return Promise[_0x28dba6(0x1b9)]([_0x25d1ef,_0x284f9e]);}function a7_0x2961(_0x3931f8,_0x295b58){_0x3931f8=_0x3931f8-0x1b4;const _0x2bdeec=a7_0x2bde();let _0x2961e5=_0x2bdeec[_0x3931f8];return _0x2961e5;}export function isAbortPrompt(_0x663abd){return _0x663abd instanceof Error&&_0x663abd['name']==='AbortPrompt';}
@@ -1 +1 @@
1
- const a8_0x44a4d5=a8_0x4cb4;function a8_0x4cb4(_0x3ae12d,_0x474a33){_0x3ae12d=_0x3ae12d-0xda;const _0x3686c7=a8_0x3686();let _0x4cb43e=_0x3686c7[_0x3ae12d];return _0x4cb43e;}(function(_0x12bcd9,_0x584c59){const _0x4c29f7=a8_0x4cb4,_0x13898f=_0x12bcd9();while(!![]){try{const _0x223e45=parseInt(_0x4c29f7(0xe8))/0x1*(parseInt(_0x4c29f7(0xdc))/0x2)+parseInt(_0x4c29f7(0xe7))/0x3+parseInt(_0x4c29f7(0xe0))/0x4*(-parseInt(_0x4c29f7(0xef))/0x5)+-parseInt(_0x4c29f7(0xe4))/0x6+-parseInt(_0x4c29f7(0xe5))/0x7+-parseInt(_0x4c29f7(0xe3))/0x8*(-parseInt(_0x4c29f7(0xe1))/0x9)+parseInt(_0x4c29f7(0xed))/0xa*(parseInt(_0x4c29f7(0xdd))/0xb);if(_0x223e45===_0x584c59)break;else _0x13898f['push'](_0x13898f['shift']());}catch(_0x135ab7){_0x13898f['push'](_0x13898f['shift']());}}}(a8_0x3686,0x3da4e));import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x3686(){const _0x5b5a49=['verbose','24kfrXsM','2673wEQGNZ','bool','344dQBSzG','2515104YgWWzb','316351YwPdey','description','1007562oGtIcX','396sGcDjg','(none)','num','bff','appCode','10voSyGz','createdTime','399590nodyfW','Get\x20BFF\x20script\x20details\x20by\x20ID','updatedTime','1234HPsQjL','6637642pzmWAQ','read'];a8_0x3686=function(){return _0x5b5a49;};return a8_0x3686();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x44a4d5(0xeb),'command':'detail','description':a8_0x44a4d5(0xda),'risk':a8_0x44a4d5(0xde),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x3b8fdc){const _0x55c930=a8_0x44a4d5,_0x5b97ec=await getBffScriptInfo(_0x3b8fdc[_0x55c930(0xea)]('id')),_0x4606a3=_0x3b8fdc[_0x55c930(0xe2)](_0x55c930(0xdf));if(_0x4606a3)return{'ok':!![],'data':_0x5b97ec};return{'ok':!![],'data':{'id':_0x5b97ec['id'],'appCode':_0x5b97ec[_0x55c930(0xec)],'functionName':_0x5b97ec['functionName']??'','scriptType':_0x5b97ec['scriptType'],'description':_0x5b97ec[_0x55c930(0xe6)]||_0x55c930(0xe9),'createdTime':_0x5b97ec[_0x55c930(0xee)]??'','updatedTime':_0x5b97ec[_0x55c930(0xdb)]??''}};}};
1
+ const a8_0x7423c=a8_0x4142;(function(_0x36e771,_0x1a0a13){const _0x14f669=a8_0x4142,_0x59d805=_0x36e771();while(!![]){try{const _0x33ca8c=parseInt(_0x14f669(0x1ab))/0x1+-parseInt(_0x14f669(0x1af))/0x2*(-parseInt(_0x14f669(0x1a0))/0x3)+-parseInt(_0x14f669(0x1ad))/0x4+-parseInt(_0x14f669(0x1a9))/0x5+-parseInt(_0x14f669(0x1a1))/0x6+-parseInt(_0x14f669(0x1ac))/0x7+parseInt(_0x14f669(0x1aa))/0x8*(parseInt(_0x14f669(0x1a2))/0x9);if(_0x33ca8c===_0x1a0a13)break;else _0x59d805['push'](_0x59d805['shift']());}catch(_0x596039){_0x59d805['push'](_0x59d805['shift']());}}}(a8_0x12a0,0x9f0d6));function a8_0x12a0(){const _0x529656=['createdTime','verbose','1521750sFiXqk','3504KgDUuU','625524yqaEls','3631474MofqqU','1906264dnQQJq','num','2PWpSCP','read','bool','appCode','scriptType','description','2927334IBmhro','6504828Moppjh','29466wRReQF','detail','updatedTime','bff','functionName'];a8_0x12a0=function(){return _0x529656;};return a8_0x12a0();}import{getBffScriptInfo}from'../../core/api-client.js';function a8_0x4142(_0x5253e3,_0x4d9cfa){_0x5253e3=_0x5253e3-0x19e;const _0x12a087=a8_0x12a0();let _0x414288=_0x12a087[_0x5253e3];return _0x414288;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a8_0x7423c(0x1a5),'command':a8_0x7423c(0x1a3),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0x7423c(0x1b0),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x1ed45c){const _0x2df1b9=a8_0x7423c,_0x3a2480=await getBffScriptInfo(_0x1ed45c[_0x2df1b9(0x1ae)]('id')),_0x17a400=_0x1ed45c[_0x2df1b9(0x1b1)](_0x2df1b9(0x1a8));if(_0x17a400)return{'ok':!![],'data':_0x3a2480};return{'ok':!![],'data':{'id':_0x3a2480['id'],'appCode':_0x3a2480[_0x2df1b9(0x1b2)],'functionName':_0x3a2480[_0x2df1b9(0x1a6)]??'','scriptType':_0x3a2480[_0x2df1b9(0x19e)],'description':_0x3a2480[_0x2df1b9(0x19f)]||'(none)','createdTime':_0x3a2480[_0x2df1b9(0x1a7)]??'','updatedTime':_0x3a2480[_0x2df1b9(0x1a4)]??''}};}};
@@ -1 +1 @@
1
- function a9_0x5124(){const _0x17b047=['93122YsaqDV','218832XmLBDz','112aeOnNe','bff','351452BhBuYg','60298XxIZsf','9yfnqUq','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','1708550TxppzA','116118IRxgXT','name','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','read','4627070PIgvpq','params','exec','49qgHpEe','str'];a9_0x5124=function(){return _0x17b047;};return a9_0x5124();}const a9_0x2bbd40=a9_0x4287;function a9_0x4287(_0x39e61b,_0x3a908c){_0x39e61b=_0x39e61b-0x1e2;const _0x51245c=a9_0x5124();let _0x428797=_0x51245c[_0x39e61b];return _0x428797;}(function(_0x34cb76,_0x4317a4){const _0x2bfff0=a9_0x4287,_0x5b32bf=_0x34cb76();while(!![]){try{const _0x44bde1=parseInt(_0x2bfff0(0x1f2))/0x1+parseInt(_0x2bfff0(0x1e4))/0x2+parseInt(_0x2bfff0(0x1e5))/0x3*(-parseInt(_0x2bfff0(0x1e3))/0x4)+parseInt(_0x2bfff0(0x1e8))/0x5+parseInt(_0x2bfff0(0x1f3))/0x6*(parseInt(_0x2bfff0(0x1f0))/0x7)+-parseInt(_0x2bfff0(0x1f4))/0x8*(-parseInt(_0x2bfff0(0x1e9))/0x9)+-parseInt(_0x2bfff0(0x1ed))/0xa;if(_0x44bde1===_0x4317a4)break;else _0x5b32bf['push'](_0x5b32bf['shift']());}catch(_0x1a626d){_0x5b32bf['push'](_0x5b32bf['shift']());}}}(a9_0x5124,0x2aa19));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x2bbd40(0x1e2),'command':a9_0x2bbd40(0x1ef),'description':a9_0x2bbd40(0x1eb),'risk':a9_0x2bbd40(0x1ec),'flags':[{...NAME_FLAG,'required':!![],'description':a9_0x2bbd40(0x1e6)},PARAMS_FLAG],async 'execute'(_0xbdfa23){const _0x4bea27=a9_0x2bbd40,_0x29f65c=parseJsonParams(_0xbdfa23['str'](_0x4bea27(0x1ee))),_0x3016de=Date['now'](),_0x2610f9=await executeSdkBff(_0xbdfa23[_0x4bea27(0x1f1)](_0x4bea27(0x1ea)),_0x29f65c),_0x4eeb6c=Date['now']()-_0x3016de;return{'ok':!![],'data':{'result':_0x2610f9,'elapsed':_0x4eeb6c},'message':_0x4bea27(0x1e7)+_0x4eeb6c+'ms'};}};
1
+ const a9_0x240f5a=a9_0x2e27;(function(_0x17b915,_0xd3e14e){const _0x2fa4ae=a9_0x2e27,_0x4e8904=_0x17b915();while(!![]){try{const _0x405e46=parseInt(_0x2fa4ae(0x67))/0x1*(-parseInt(_0x2fa4ae(0x6e))/0x2)+parseInt(_0x2fa4ae(0x75))/0x3+-parseInt(_0x2fa4ae(0x6a))/0x4*(-parseInt(_0x2fa4ae(0x69))/0x5)+-parseInt(_0x2fa4ae(0x70))/0x6+parseInt(_0x2fa4ae(0x6f))/0x7*(parseInt(_0x2fa4ae(0x74))/0x8)+parseInt(_0x2fa4ae(0x73))/0x9+parseInt(_0x2fa4ae(0x6c))/0xa;if(_0x405e46===_0xd3e14e)break;else _0x4e8904['push'](_0x4e8904['shift']());}catch(_0x5e8b38){_0x4e8904['push'](_0x4e8904['shift']());}}}(a9_0x3745,0xcc308));import{executeSdkBff}from'../../core/sdk-client.js';function a9_0x2e27(_0x1828fd,_0x14664f){_0x1828fd=_0x1828fd-0x66;const _0x37458a=a9_0x3745();let _0x2e27d2=_0x37458a[_0x1828fd];return _0x2e27d2;}function a9_0x3745(){const _0x26cfa0=['read','205WFgLnY','25780NGmrFc','BFF\x20executed\x20in\x20','12242880PxLUyk','str','472PXNrxf','106666Pitwbe','8016162Zufoui','params','bff','696987DUCpTr','184UaeCTO','2268063ogsJxy','now','exec','2119LXwtUQ'];a9_0x3745=function(){return _0x26cfa0;};return a9_0x3745();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x240f5a(0x72),'command':a9_0x240f5a(0x66),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x240f5a(0x68),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0xbbb49c){const _0xfd9d4f=a9_0x240f5a,_0x3bebf5=parseJsonParams(_0xbbb49c['str'](_0xfd9d4f(0x71))),_0x481e82=Date[_0xfd9d4f(0x76)](),_0x1a7904=await executeSdkBff(_0xbbb49c[_0xfd9d4f(0x6d)]('name'),_0x3bebf5),_0x529ab0=Date['now']()-_0x481e82;return{'ok':!![],'data':{'result':_0x1a7904,'elapsed':_0x529ab0},'message':_0xfd9d4f(0x6b)+_0x529ab0+'ms'};}};
@@ -1 +1 @@
1
- function a10_0x40fe(_0x4772a7,_0x5c0960){_0x4772a7=_0x4772a7-0x14c;const _0x599cbc=a10_0x599c();let _0x40fec7=_0x599cbc[_0x4772a7];return _0x40fec7;}function a10_0x599c(){const _0x16d280=['8748SXRKWE','8AaZqca','63LWDSwn','5355477yPqjoE','1273935dWaEsG','178590eltJif','1621064gTEMvC','236790sbhFcE','113880QOTpkz'];a10_0x599c=function(){return _0x16d280;};return a10_0x599c();}(function(_0x46665f,_0x53612a){const _0x1d6588=a10_0x40fe,_0x400392=_0x46665f();while(!![]){try{const _0x175cef=parseInt(_0x1d6588(0x154))/0x1*(-parseInt(_0x1d6588(0x153))/0x2)+parseInt(_0x1d6588(0x151))/0x3+-parseInt(_0x1d6588(0x152))/0x4+parseInt(_0x1d6588(0x14e))/0x5+parseInt(_0x1d6588(0x14f))/0x6*(parseInt(_0x1d6588(0x14c))/0x7)+parseInt(_0x1d6588(0x150))/0x8+-parseInt(_0x1d6588(0x14d))/0x9;if(_0x175cef===_0x53612a)break;else _0x400392['push'](_0x400392['shift']());}catch(_0x38040a){_0x400392['push'](_0x400392['shift']());}}}(a10_0x599c,0x23938));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x542d33,_0x1d7868){const _0x55dc18=a10_0x1b33,_0x211336=_0x542d33();while(!![]){try{const _0xe8411=-parseInt(_0x55dc18(0x1e2))/0x1*(parseInt(_0x55dc18(0x1de))/0x2)+-parseInt(_0x55dc18(0x1da))/0x3*(parseInt(_0x55dc18(0x1e3))/0x4)+-parseInt(_0x55dc18(0x1e1))/0x5+parseInt(_0x55dc18(0x1db))/0x6*(parseInt(_0x55dc18(0x1d9))/0x7)+-parseInt(_0x55dc18(0x1dc))/0x8*(parseInt(_0x55dc18(0x1e0))/0x9)+parseInt(_0x55dc18(0x1dd))/0xa+parseInt(_0x55dc18(0x1df))/0xb;if(_0xe8411===_0x1d7868)break;else _0x211336['push'](_0x211336['shift']());}catch(_0x5c0cdc){_0x211336['push'](_0x211336['shift']());}}}(a10_0x23df,0xb1504));function a10_0x1b33(_0xe0f7e8,_0x1b7185){_0xe0f7e8=_0xe0f7e8-0x1d9;const _0x23dfa8=a10_0x23df();let _0x1b337a=_0x23dfa8[_0xe0f7e8];return _0x1b337a;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a10_0x23df(){const _0x23896d=['20954WVlzOb','30097870qBntPb','430821HvOVIb','2842715WhlRCY','15XaNwtY','4SLYZHc','14enrqdz','682101qKoVqH','446196vjCjvh','232FuCBBt','1826400SDqodB'];a10_0x23df=function(){return _0x23896d;};return a10_0x23df();}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x380355,_0x301375){const _0x4649fa=a11_0x5916,_0x4bbce8=_0x380355();while(!![]){try{const _0x3a9169=-parseInt(_0x4649fa(0x186))/0x1+parseInt(_0x4649fa(0x194))/0x2*(-parseInt(_0x4649fa(0x189))/0x3)+parseInt(_0x4649fa(0x18b))/0x4*(parseInt(_0x4649fa(0x191))/0x5)+parseInt(_0x4649fa(0x187))/0x6*(-parseInt(_0x4649fa(0x19a))/0x7)+parseInt(_0x4649fa(0x184))/0x8*(parseInt(_0x4649fa(0x195))/0x9)+parseInt(_0x4649fa(0x18e))/0xa*(parseInt(_0x4649fa(0x18c))/0xb)+-parseInt(_0x4649fa(0x192))/0xc*(-parseInt(_0x4649fa(0x188))/0xd);if(_0x3a9169===_0x301375)break;else _0x4bbce8['push'](_0x4bbce8['shift']());}catch(_0x59c2d8){_0x4bbce8['push'](_0x4bbce8['shift']());}}}(a11_0x27be,0x548e1));function a11_0x5916(_0x254d8f,_0x344b55){_0x254d8f=_0x254d8f-0x184;const _0x27bead=a11_0x27be();let _0x5916dd=_0x27bead[_0x254d8f];return _0x5916dd;}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';function a11_0x27be(){const _0x3884c0=['117yvnjyQ','global','248624VpCnrz','439263oddMGx','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','130PyBrJH','\x20init`\x20first.','inProject','25bfqYME','8127204iTSPiD','\x20(global)','21202Qohqxg','1027863OgAmcJ','project','project-or-global-explicit','project-default','Use\x20only\x20one\x20config\x20scope\x20flag.','7LzTqPN','24RpWkTF','validation','595238UEyYvO','2968698jqsnCj','13tdHtOJ'];a11_0x27be=function(){return _0x3884c0;};return a11_0x27be();}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(_0x3cc48d){const _0x585f2c=a11_0x5916,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x22e93a}=_0x3cc48d;if(explicitGlobal&&explicitProject)throw CliErrors[_0x585f2c(0x185)](_0x585f2c(0x18d),_0x585f2c(0x199));if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x22e93a){case'global-default':return _0x585f2c(0x18a);case _0x585f2c(0x198):return _0x3cc48d[_0x585f2c(0x190)]??isInProject()?_0x585f2c(0x196):_0x585f2c(0x18a);case _0x585f2c(0x197):if(!(_0x3cc48d['inProject']??isInProject()))throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x585f2c(0x18f));return'project';}}export function toScopeFlags(_0x2502fd){return{'global':_0x2502fd==='global'};}export function formatScopeLabel(_0x4adc97){const _0x136f8a=a11_0x5916;return _0x4adc97===_0x136f8a(0x18a)?_0x136f8a(0x193):'';}
1
+ (function(_0x1acc54,_0x43918b){const _0x17e850=a11_0x4154,_0x141331=_0x1acc54();while(!![]){try{const _0x475f94=parseInt(_0x17e850(0xa0))/0x1+parseInt(_0x17e850(0x90))/0x2+-parseInt(_0x17e850(0x91))/0x3+parseInt(_0x17e850(0x97))/0x4+parseInt(_0x17e850(0x8d))/0x5*(-parseInt(_0x17e850(0x99))/0x6)+-parseInt(_0x17e850(0x98))/0x7+parseInt(_0x17e850(0x9d))/0x8;if(_0x475f94===_0x43918b)break;else _0x141331['push'](_0x141331['shift']());}catch(_0x4256e0){_0x141331['push'](_0x141331['shift']());}}}(a11_0x50b3,0xe14e4));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a11_0x4154(_0x2a10d7,_0x19d2f4){_0x2a10d7=_0x2a10d7-0x8d;const _0x50b300=a11_0x50b3();let _0x4154be=_0x50b300[_0x2a10d7];return _0x4154be;}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(_0xe71e6f){const _0x36ae1c=a11_0x4154,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x429887}=_0xe71e6f;if(explicitGlobal&&explicitProject)throw CliErrors[_0x36ae1c(0x94)](_0x36ae1c(0x9a),_0x36ae1c(0x96));if(explicitGlobal)return _0x36ae1c(0x9e);if(explicitProject)return _0x36ae1c(0x92);switch(_0x429887){case'global-default':return _0x36ae1c(0x9e);case _0x36ae1c(0x8f):return _0xe71e6f[_0x36ae1c(0x9c)]??isInProject()?_0x36ae1c(0x92):_0x36ae1c(0x9e);case _0x36ae1c(0x95):if(!(_0xe71e6f[_0x36ae1c(0x9c)]??isInProject()))throw CliErrors[_0x36ae1c(0x94)](_0x36ae1c(0x9b),_0x36ae1c(0x93)+CLI_BIN_NAME+_0x36ae1c(0x9f));return'project';}}export function toScopeFlags(_0x254f08){return{'global':_0x254f08==='global'};}export function formatScopeLabel(_0x1a315d){const _0x4cbd86=a11_0x4154;return _0x1a315d===_0x4cbd86(0x9e)?_0x4cbd86(0x8e):'';}function a11_0x50b3(){const _0x339609=['project','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','validation','project-or-global-explicit','Use\x20only\x20one\x20config\x20scope\x20flag.','4610416KeOsOP','11337921gNuuZs','234Accnaa','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','inProject','4645720xSHCoG','global','\x20init`\x20first.','199519FNJEow','1285MecrPI','\x20(global)','project-default','2093656qaejlO','1281264DkagLH'];a11_0x50b3=function(){return _0x339609;};return a11_0x50b3();}
@@ -1 +1 @@
1
- (function(_0x55c5b1,_0x3d2ec4){const _0xa10e89=a12_0x5f07,_0x31a1f0=_0x55c5b1();while(!![]){try{const _0x5b53c7=parseInt(_0xa10e89(0x155))/0x1*(-parseInt(_0xa10e89(0x169))/0x2)+-parseInt(_0xa10e89(0x15d))/0x3+parseInt(_0xa10e89(0x160))/0x4*(parseInt(_0xa10e89(0x15c))/0x5)+parseInt(_0xa10e89(0x15f))/0x6+-parseInt(_0xa10e89(0x153))/0x7*(parseInt(_0xa10e89(0x15b))/0x8)+-parseInt(_0xa10e89(0x164))/0x9*(parseInt(_0xa10e89(0x157))/0xa)+parseInt(_0xa10e89(0x16d))/0xb;if(_0x5b53c7===_0x3d2ec4)break;else _0x31a1f0['push'](_0x31a1f0['shift']());}catch(_0x566e1f){_0x31a1f0['push'](_0x31a1f0['shift']());}}}(a12_0x3d8d,0x99461));function a12_0x3d8d(){const _0x4eb501=['filter','1723888Fieztc','5XCTVAN','461622TQeEFY','validation','4571886lsJmmd','671964QPJbbm',',\x20got\x20\x22','Flags\x20','length','783HyeYJM','test','some','\x20are\x20mutually\x20exclusive\x20for\x20`','Only\x20one\x20of\x20','1046324FIdQbU','str','Provide\x20one\x20of:\x20','Invalid\x20--','25162676JvGAnF','28ZhbkDH','\x20is\x20allowed,\x20found:\x20','1FIsGUO','map','120770ZDVWQo','flag','\x20is\x20required\x20for\x20`'];a12_0x3d8d=function(){return _0x4eb501;};return a12_0x3d8d();}import{CliErrors}from'../../errors.js';function isSet(_0x6bad59,_0x1b546b){const _0x54cf8a=a12_0x5f07,_0x27632c=_0x6bad59[_0x54cf8a(0x158)](_0x1b546b);return _0x27632c!==undefined&&_0x27632c!==''&&_0x27632c!==![]&&_0x27632c!==0x0;}function fmtNames(_0x32d702){const _0x4b236a=a12_0x5f07;return _0x32d702[_0x4b236a(0x156)](_0x413082=>'--'+_0x413082)['join'](',\x20');}function a12_0x5f07(_0x4a9a38,_0x18e8ac){_0x4a9a38=_0x4a9a38-0x153;const _0x3d8d4f=a12_0x3d8d();let _0x5f0747=_0x3d8d4f[_0x4a9a38];return _0x5f0747;}export function requireOneOf(_0x25ba59,_0x2a56b4,_0x4017e6){const _0x30fe35=a12_0x5f07,_0x3304cc=_0x2a56b4[_0x30fe35(0x15a)](_0x313296=>isSet(_0x25ba59,_0x313296));if(_0x3304cc['length']!==0x1)throw CliErrors['validation'](_0x3304cc[_0x30fe35(0x163)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x2a56b4)+_0x30fe35(0x159)+_0x4017e6+'`.':_0x30fe35(0x168)+fmtNames(_0x2a56b4)+_0x30fe35(0x154)+fmtNames(_0x3304cc)+'.',_0x3304cc[_0x30fe35(0x163)]===0x0?_0x30fe35(0x16b)+fmtNames(_0x2a56b4):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x19dd69,_0x8b554b,_0x42c249){const _0x1ca0bc=a12_0x5f07;if(!_0x8b554b[_0x1ca0bc(0x166)](_0x49b171=>isSet(_0x19dd69,_0x49b171)))throw CliErrors[_0x1ca0bc(0x15e)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x8b554b)+_0x1ca0bc(0x159)+_0x42c249+'`.',_0x1ca0bc(0x16b)+fmtNames(_0x8b554b));}export function mutuallyExclusive(_0x595ee2,_0x1d5c32,_0x6a094e){const _0x46c492=a12_0x5f07,_0x37aa2e=_0x1d5c32[_0x46c492(0x15a)](_0x1f3818=>isSet(_0x595ee2,_0x1f3818));if(_0x37aa2e[_0x46c492(0x163)]>0x1)throw CliErrors['validation'](_0x46c492(0x162)+fmtNames(_0x37aa2e)+_0x46c492(0x167)+_0x6a094e+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x1d5c32));}export function validatePattern(_0x2cc7d7,_0x295778,_0x5be8b0,_0x1e84bc){const _0x561c24=a12_0x5f07,_0x5e9908=_0x2cc7d7[_0x561c24(0x16a)](_0x295778);if(_0x5e9908&&!_0x5be8b0[_0x561c24(0x165)](_0x5e9908))throw CliErrors[_0x561c24(0x15e)](_0x561c24(0x16c)+_0x295778+':\x20expected\x20'+_0x1e84bc+_0x561c24(0x161)+_0x5e9908+'\x22.');}
1
+ function a12_0x3a4c(){const _0x1c04ab=['At\x20least\x20one\x20of\x20','2550690kCLQmJ','1357367AhDhQH','7952502FLFQzb','30612aOpLPi','63UgGkIt',',\x20got\x20\x22','128SWMUyj','test','Remove\x20all\x20but\x20one.','491999RGDXce','some','map','\x20is\x20required\x20for\x20`','Exactly\x20one\x20of\x20','10ttUZYc','length','5aiNQCN','filter','flag','Only\x20one\x20of\x20','\x20is\x20allowed,\x20found:\x20','Provide\x20one\x20of:\x20','str','1239848ECtgmB','62393400NGqVEe','\x20are\x20mutually\x20exclusive\x20for\x20`','join','validation','Invalid\x20--','8wghyAY',':\x20expected\x20','Flags\x20'];a12_0x3a4c=function(){return _0x1c04ab;};return a12_0x3a4c();}(function(_0x3be10a,_0x5f41e2){const _0x2b3c83=a12_0x55a1,_0x312d71=_0x3be10a();while(!![]){try{const _0x5aa0cd=parseInt(_0x2b3c83(0x1cf))/0x1*(-parseInt(_0x2b3c83(0x1e3))/0x2)+parseInt(_0x2b3c83(0x1ea))/0x3*(parseInt(_0x2b3c83(0x1cc))/0x4)+parseInt(_0x2b3c83(0x1d6))/0x5*(-parseInt(_0x2b3c83(0x1e9))/0x6)+-parseInt(_0x2b3c83(0x1eb))/0x7*(parseInt(_0x2b3c83(0x1dd))/0x8)+parseInt(_0x2b3c83(0x1e7))/0x9+parseInt(_0x2b3c83(0x1d4))/0xa*(-parseInt(_0x2b3c83(0x1e8))/0xb)+parseInt(_0x2b3c83(0x1de))/0xc;if(_0x5aa0cd===_0x5f41e2)break;else _0x312d71['push'](_0x312d71['shift']());}catch(_0x3e3e9e){_0x312d71['push'](_0x312d71['shift']());}}}(a12_0x3a4c,0xf3975));import{CliErrors}from'../../errors.js';function isSet(_0x589b87,_0x546634){const _0x3ec4e=a12_0x55a1,_0x5a8dab=_0x589b87[_0x3ec4e(0x1d8)](_0x546634);return _0x5a8dab!==undefined&&_0x5a8dab!==''&&_0x5a8dab!==![]&&_0x5a8dab!==0x0;}function fmtNames(_0xa6f856){const _0x2e2f92=a12_0x55a1;return _0xa6f856[_0x2e2f92(0x1d1)](_0x562250=>'--'+_0x562250)[_0x2e2f92(0x1e0)](',\x20');}export function requireOneOf(_0x25f3ea,_0x5bc50c,_0x16b0b9){const _0x3b11b3=a12_0x55a1,_0x493a0c=_0x5bc50c[_0x3b11b3(0x1d7)](_0x295f50=>isSet(_0x25f3ea,_0x295f50));if(_0x493a0c[_0x3b11b3(0x1d5)]!==0x1)throw CliErrors[_0x3b11b3(0x1e1)](_0x493a0c[_0x3b11b3(0x1d5)]===0x0?_0x3b11b3(0x1d3)+fmtNames(_0x5bc50c)+_0x3b11b3(0x1d2)+_0x16b0b9+'`.':_0x3b11b3(0x1d9)+fmtNames(_0x5bc50c)+_0x3b11b3(0x1da)+fmtNames(_0x493a0c)+'.',_0x493a0c['length']===0x0?_0x3b11b3(0x1db)+fmtNames(_0x5bc50c):_0x3b11b3(0x1ce));}function a12_0x55a1(_0x66de55,_0x544514){_0x66de55=_0x66de55-0x1cb;const _0x3a4c6a=a12_0x3a4c();let _0x55a1b7=_0x3a4c6a[_0x66de55];return _0x55a1b7;}export function requireAnyOf(_0x50e1f2,_0x1a178e,_0x3b0691){const _0xd86dea=a12_0x55a1;if(!_0x1a178e[_0xd86dea(0x1d0)](_0x1279f9=>isSet(_0x50e1f2,_0x1279f9)))throw CliErrors[_0xd86dea(0x1e1)](_0xd86dea(0x1e6)+fmtNames(_0x1a178e)+_0xd86dea(0x1d2)+_0x3b0691+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x1a178e));}export function mutuallyExclusive(_0x48d72d,_0x4e09fa,_0x13c9fa){const _0x4c64d2=a12_0x55a1,_0x2b7d87=_0x4e09fa[_0x4c64d2(0x1d7)](_0x121a01=>isSet(_0x48d72d,_0x121a01));if(_0x2b7d87[_0x4c64d2(0x1d5)]>0x1)throw CliErrors[_0x4c64d2(0x1e1)](_0x4c64d2(0x1e5)+fmtNames(_0x2b7d87)+_0x4c64d2(0x1df)+_0x13c9fa+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x4e09fa));}export function validatePattern(_0x501c24,_0x4aba33,_0xf7b89,_0xd90b61){const _0x276f3e=a12_0x55a1,_0x2016d4=_0x501c24[_0x276f3e(0x1dc)](_0x4aba33);if(_0x2016d4&&!_0xf7b89[_0x276f3e(0x1cd)](_0x2016d4))throw CliErrors[_0x276f3e(0x1e1)](_0x276f3e(0x1e2)+_0x4aba33+_0x276f3e(0x1e4)+_0xd90b61+_0x276f3e(0x1cb)+_0x2016d4+'\x22.');}
@@ -1 +1 @@
1
- const a13_0x5d753c=a13_0x1f88;(function(_0x35e9ab,_0x48db2f){const _0x3aaa73=a13_0x1f88,_0x40ff16=_0x35e9ab();while(!![]){try{const _0x345a5f=-parseInt(_0x3aaa73(0xbf))/0x1+parseInt(_0x3aaa73(0xb4))/0x2+-parseInt(_0x3aaa73(0xc0))/0x3*(parseInt(_0x3aaa73(0xb9))/0x4)+-parseInt(_0x3aaa73(0xbb))/0x5+-parseInt(_0x3aaa73(0xc2))/0x6*(-parseInt(_0x3aaa73(0xb2))/0x7)+parseInt(_0x3aaa73(0xc6))/0x8+parseInt(_0x3aaa73(0xc4))/0x9*(parseInt(_0x3aaa73(0xb5))/0xa);if(_0x345a5f===_0x48db2f)break;else _0x40ff16['push'](_0x40ff16['shift']());}catch(_0x5039f8){_0x40ff16['push'](_0x40ff16['shift']());}}}(a13_0x3537,0xc8ba6));export const CODE_FLAG={'name':a13_0x5d753c(0xb0),'type':a13_0x5d753c(0xbc),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x5d753c(0xba)}};export const SQLCODE_FLAG={'name':a13_0x5d753c(0xb8),'type':a13_0x5d753c(0xbc),'required':!![],'description':a13_0x5d753c(0xc5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a13_0x5d753c(0xb1)}};export const VERBOSE_FLAG={'name':a13_0x5d753c(0xaf),'type':a13_0x5d753c(0xbd),'description':'Return\x20full\x20raw\x20response\x20object'};function a13_0x3537(){const _0x5be3eb=['number','1036614yHKFWH','10zDMgFU','name','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','sqlcode','4mqSUaC','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','2930040MXqgnq','string','boolean','Resource\x20name\x20for\x20lookup','1568083wAHByw','4034451fNOGbl','Resource\x20ID','42SNzvHJ','params','18856143TKzypD','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','11120416ViKvBj','verbose','code','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','317604WBPOYi'];a13_0x3537=function(){return _0x5be3eb;};return a13_0x3537();}function a13_0x1f88(_0xbdffbf,_0x423a01){_0xbdffbf=_0xbdffbf-0xaf;const _0x353764=a13_0x3537();let _0x1f88f6=_0x353764[_0xbdffbf];return _0x1f88f6;}export const PARAMS_FLAG={'name':a13_0x5d753c(0xc3),'type':a13_0x5d753c(0xbc),'description':a13_0x5d753c(0xb7)};export const NAME_FLAG={'name':a13_0x5d753c(0xb6),'type':a13_0x5d753c(0xbc),'description':a13_0x5d753c(0xbe)};export const ID_FLAG={'name':'id','type':a13_0x5d753c(0xb3),'required':!![],'description':a13_0x5d753c(0xc1)};
1
+ const a13_0x4f8af2=a13_0x109b;(function(_0x16209f,_0x41c5f9){const _0x6796ee=a13_0x109b,_0xcc1e7d=_0x16209f();while(!![]){try{const _0x45c650=-parseInt(_0x6796ee(0x10c))/0x1*(-parseInt(_0x6796ee(0x102))/0x2)+-parseInt(_0x6796ee(0xf8))/0x3+-parseInt(_0x6796ee(0x106))/0x4*(-parseInt(_0x6796ee(0x104))/0x5)+-parseInt(_0x6796ee(0x10a))/0x6*(-parseInt(_0x6796ee(0xfe))/0x7)+parseInt(_0x6796ee(0xfd))/0x8*(parseInt(_0x6796ee(0xff))/0x9)+parseInt(_0x6796ee(0x101))/0xa*(parseInt(_0x6796ee(0x10b))/0xb)+parseInt(_0x6796ee(0x109))/0xc*(-parseInt(_0x6796ee(0xf9))/0xd);if(_0x45c650===_0x41c5f9)break;else _0xcc1e7d['push'](_0xcc1e7d['shift']());}catch(_0x57461c){_0xcc1e7d['push'](_0xcc1e7d['shift']());}}}(a13_0x68a5,0x59446));export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a13_0x4f8af2(0xfc),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a13_0x4f8af2(0x103),'type':'string','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':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0x4f8af2(0x105),'description':a13_0x4f8af2(0x10d)};function a13_0x68a5(){const _0x230f16=['sqlcode','823785OkKqQc','boolean','12zumVKD','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','string','420dSGofV','4362858dtDyxl','2688807VJELjr','131hibNMO','Return\x20full\x20raw\x20response\x20object','452094FszjFT','705796bMlOZi','Resource\x20ID','number','Dataset\x20code\x20(32-char\x20hex\x20UUID)','8JWzxSv','7VCPpWq','5897781qgsjpe','name','20RjZDQL','778eYflGt'];a13_0x68a5=function(){return _0x230f16;};return a13_0x68a5();}export const PARAMS_FLAG={'name':'params','type':a13_0x4f8af2(0x108),'description':a13_0x4f8af2(0x107)};function a13_0x109b(_0x413894,_0xa28b40){_0x413894=_0x413894-0xf8;const _0x68a5f8=a13_0x68a5();let _0x109b31=_0x68a5f8[_0x413894];return _0x109b31;}export const NAME_FLAG={'name':a13_0x4f8af2(0x100),'type':a13_0x4f8af2(0x108),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a13_0x4f8af2(0xfb),'required':!![],'description':a13_0x4f8af2(0xfa)};
@@ -1 +1 @@
1
- function a14_0x9fc3(){const _0x21664b=['#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','../../context.js','25152HYjOvH','write','Value\x20to\x20assign','delete','\x20config\x20set\x20<key>\x20<value>\x20[--global]','args','includes','Usage:\x20','raw','global','406HdbJKz','bool','key','set','Top-level\x20key\x20\x22','read','Settable\x20top-level\x20keys:\x20','object','\x20\x20global:\x20\x20','\x22\x20is\x20not\x20settable.','337814kYltaI','pageSize','pretty','pageSize\x20must\x20be\x20a\x20positive\x20number','log','boolean','stringify','Key\x20not\x20found:\x20','Missing\x20key\x20argument.','Delete\x20a\x20config\x20value','Write\x20to\x20global\x20config','2878011KCskBe','\x20\x20project:\x20','Config\x20files:\x0a','Get\x20a\x20config\x20value','6wtUrER','4075936xQaEPz','format','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','join','validation','List\x20current\x20config','\x20config\x20delete\x20<key>\x20[--global]','`\x20=\x20\x22','3491665vMMupz','1053639soYSYb','config','project-or-global-explicit','riskLevel','2148471uiaxLK','\x20(global)','Invalid\x20value\x20for\x20\x22','Set\x20`'];a14_0x9fc3=function(){return _0x21664b;};return a14_0x9fc3();}const a14_0x2d66b8=a14_0x3f33;(function(_0x29407e,_0x42a260){const _0x5f1c88=a14_0x3f33,_0x53a3b1=_0x29407e();while(!![]){try{const _0x5a486f=parseInt(_0x5f1c88(0x151))/0x1+parseInt(_0x5f1c88(0x138))/0x2+-parseInt(_0x5f1c88(0x143))/0x3+parseInt(_0x5f1c88(0x148))/0x4+-parseInt(_0x5f1c88(0x150))/0x5*(parseInt(_0x5f1c88(0x147))/0x6)+-parseInt(_0x5f1c88(0x165))/0x7*(parseInt(_0x5f1c88(0x15b))/0x8)+parseInt(_0x5f1c88(0x155))/0x9;if(_0x5a486f===_0x42a260)break;else _0x53a3b1['push'](_0x53a3b1['shift']());}catch(_0x1015fa){_0x53a3b1['push'](_0x53a3b1['shift']());}}}(a14_0x9fc3,0x9c4e3));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';function a14_0x3f33(_0x19540a,_0x2418c9){_0x19540a=_0x19540a-0x136;const _0x9fc34f=a14_0x9fc3();let _0x3f338c=_0x9fc34f[_0x19540a];return _0x3f338c;}const GLOBAL_FLAG={'name':a14_0x2d66b8(0x164),'type':a14_0x2d66b8(0x13d),'description':a14_0x2d66b8(0x142),'default':![]},listDef={'service':a14_0x2d66b8(0x152),'command':'list','description':a14_0x2d66b8(0x14d),'risk':a14_0x2d66b8(0x16a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3fe21a){const _0x5e2bdb=a14_0x2d66b8,{buildConfigFromFlags:_0x2ce836}=await import(_0x5e2bdb(0x15a)),_0x10043f=_0x2ce836({}),_0xbce7fb=getProjectConfigPath(),_0x5a28fa=resolveWriteConfigPath(_0x5e2bdb(0x164));if(_0x3fe21a[_0x5e2bdb(0x149)]===_0x5e2bdb(0x13a))return{'ok':!![],'message':_0x5e2bdb(0x159)+(JSON['stringify'](_0x10043f[_0x5e2bdb(0x163)],null,0x2)+'\x0a\x0a')+_0x5e2bdb(0x145)+(_0x5e2bdb(0x144)+(_0xbce7fb??'(none)')+'\x0a')+(_0x5e2bdb(0x136)+_0x5a28fa)};return{'ok':!![],'data':{'effective':_0x10043f['raw'],'configFiles':{'project':_0xbce7fb??null,'global':_0x5a28fa}}};}},getDef={'service':a14_0x2d66b8(0x152),'command':'get','description':a14_0x2d66b8(0x146),'risk':a14_0x2d66b8(0x16a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x2d66b8(0x167),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x50a348){const _0x533c8e=a14_0x2d66b8,_0x4cb306=_0x50a348[_0x533c8e(0x160)][0x0];if(!_0x4cb306)throw CliErrors[_0x533c8e(0x14c)](_0x533c8e(0x140),_0x533c8e(0x162)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x28b284}=await import(_0x533c8e(0x15a)),{raw:_0x4a88dc}=_0x28b284({});if(_0x4cb306[_0x533c8e(0x161)]('.')){const _0x48c55a=_0x4cb306['split']('.');let _0x40cdaf=_0x4a88dc;for(const _0x2481ea of _0x48c55a){if(_0x40cdaf==null||typeof _0x40cdaf!=='object')throw CliErrors['validation'](_0x533c8e(0x13f)+_0x4cb306);_0x40cdaf=_0x40cdaf[_0x2481ea];}if(_0x40cdaf===undefined)throw CliErrors[_0x533c8e(0x14c)](_0x533c8e(0x13f)+_0x4cb306);return console['log'](typeof _0x40cdaf===_0x533c8e(0x16c)?JSON[_0x533c8e(0x13e)](_0x40cdaf,null,0x2):String(_0x40cdaf)),{'ok':!![]};}const _0x2feb88=_0x4a88dc[_0x4cb306];if(_0x2feb88===undefined)throw CliErrors[_0x533c8e(0x14c)](_0x533c8e(0x13f)+_0x4cb306);return console['log'](typeof _0x2feb88==='object'?JSON[_0x533c8e(0x13e)](_0x2feb88,null,0x2):String(_0x2feb88)),{'ok':!![]};}},setDef={'service':a14_0x2d66b8(0x152),'command':a14_0x2d66b8(0x168),'description':'Set\x20a\x20config\x20value','risk':a14_0x2d66b8(0x15c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x2d66b8(0x167),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a14_0x2d66b8(0x15d),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4e2fb1){const _0xca2f70=a14_0x2d66b8,_0x1b8bdf=_0x4e2fb1[_0xca2f70(0x160)][0x0],_0x3fcc1d=_0x4e2fb1['args'][0x1];if(!_0x1b8bdf||_0x3fcc1d===undefined)throw CliErrors[_0xca2f70(0x14c)]('Missing\x20key\x20or\x20value.',_0xca2f70(0x162)+CLI_BIN_NAME+_0xca2f70(0x15f));if(ENUM_KEYS[_0x1b8bdf]&&!ENUM_KEYS[_0x1b8bdf][_0xca2f70(0x161)](_0x3fcc1d))throw CliErrors['validation'](_0xca2f70(0x157)+_0x1b8bdf+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x1b8bdf][_0xca2f70(0x14b)](',\x20'));if(_0x1b8bdf===_0xca2f70(0x154))throw CliErrors['validation'](_0xca2f70(0x14a));if(_0x1b8bdf===_0xca2f70(0x139)){const _0x360fd0=Number(_0x3fcc1d);if(isNaN(_0x360fd0)||_0x360fd0<=0x0)throw CliErrors[_0xca2f70(0x14c)](_0xca2f70(0x13b));}const _0x389d5a=resolveWriteScope({'explicitGlobal':_0x4e2fb1['bool'](_0xca2f70(0x164)),'policy':_0xca2f70(0x153)}),_0x1cd2ef=toScopeFlags(_0x389d5a),_0x32ec16=readScopedConfig(_0x1cd2ef);if(!isTopLevelConfigKey(_0x1b8bdf))throw CliErrors['validation'](_0xca2f70(0x169)+_0x1b8bdf+_0xca2f70(0x137),_0xca2f70(0x16b)+getTopLevelConfigKeySummary());return _0x32ec16[_0x1b8bdf]=_0x1b8bdf==='pageSize'?Number(_0x3fcc1d):_0x3fcc1d,console[_0xca2f70(0x13c)](_0xca2f70(0x158)+_0x1b8bdf+_0xca2f70(0x14f)+_0x3fcc1d+'\x22'+(_0x389d5a===_0xca2f70(0x164)?_0xca2f70(0x156):'')),writeScopedConfig(_0x32ec16,_0x1cd2ef),{'ok':!![]};}},deleteDef={'service':a14_0x2d66b8(0x152),'command':a14_0x2d66b8(0x15e),'description':a14_0x2d66b8(0x141),'risk':a14_0x2d66b8(0x15c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1a7a2d){const _0x4c7523=a14_0x2d66b8,_0x448f11=_0x1a7a2d[_0x4c7523(0x160)][0x0];if(!_0x448f11)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x4c7523(0x162)+CLI_BIN_NAME+_0x4c7523(0x14e));const _0x39b4ef=resolveWriteScope({'explicitGlobal':_0x1a7a2d[_0x4c7523(0x166)](_0x4c7523(0x164)),'policy':_0x4c7523(0x153)}),_0x4a7118=toScopeFlags(_0x39b4ef),_0x26d893=readScopedConfig(_0x4a7118);if(_0x26d893[_0x448f11]===undefined)throw CliErrors[_0x4c7523(0x14c)]('Key\x20\x22'+_0x448f11+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x26d893[_0x448f11],console[_0x4c7523(0x13c)]('Deleted\x20`'+_0x448f11+'`'+(_0x39b4ef===_0x4c7523(0x164)?'\x20(global)':'')),writeScopedConfig(_0x26d893,_0x4a7118),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a14_0x16015f=a14_0x44be;(function(_0x20e491,_0x3fe6db){const _0x524b4e=a14_0x44be,_0x2c87b2=_0x20e491();while(!![]){try{const _0x237bcd=parseInt(_0x524b4e(0x174))/0x1+-parseInt(_0x524b4e(0x170))/0x2*(parseInt(_0x524b4e(0x166))/0x3)+-parseInt(_0x524b4e(0x190))/0x4*(parseInt(_0x524b4e(0x182))/0x5)+-parseInt(_0x524b4e(0x188))/0x6*(-parseInt(_0x524b4e(0x173))/0x7)+parseInt(_0x524b4e(0x163))/0x8*(-parseInt(_0x524b4e(0x16d))/0x9)+parseInt(_0x524b4e(0x19d))/0xa*(parseInt(_0x524b4e(0x186))/0xb)+parseInt(_0x524b4e(0x193))/0xc;if(_0x237bcd===_0x3fe6db)break;else _0x2c87b2['push'](_0x2c87b2['shift']());}catch(_0x28a5d4){_0x2c87b2['push'](_0x2c87b2['shift']());}}}(a14_0x385b,0x36636));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';function a14_0x385b(){const _0x179d43=['../../context.js','get','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','36216QloSKO','\x20config\x20get\x20<key>','stringify','218PDbJTt','bool','Missing\x20key\x20or\x20value.','24479ajTxjG','49081OFNgpH','Set\x20a\x20config\x20value','object','split','Missing\x20key\x20argument.','list','riskLevel','includes','raw','value','write','config','\x22\x20not\x20found\x20at\x20top\x20level.','global','845720smDZms','validation','Key\x20not\x20found:\x20','\x20config\x20delete\x20<key>\x20[--global]','297hnrCpx','key','30rqnNeO','Get\x20a\x20config\x20value','args','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Write\x20to\x20global\x20config','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','\x20\x20global:\x20\x20','pageSize\x20must\x20be\x20a\x20positive\x20number','4ebCZlh','log','Usage:\x20','3528480SKNtBS','project-or-global-explicit','\x20(global)','\x20\x20project:\x20','`\x20=\x20\x22','boolean','Settable\x20top-level\x20keys:\x20','set','List\x20current\x20config','delete','111290EkulTb','Value\x20to\x20assign','440khZRHJ','pageSize','join','1317mjFXJG','Key\x20\x22','Config\x20files:\x0a','(none)'];a14_0x385b=function(){return _0x179d43;};return a14_0x385b();}function a14_0x44be(_0x4923c7,_0x399733){_0x4923c7=_0x4923c7-0x163;const _0x385bc7=a14_0x385b();let _0x44be4d=_0x385bc7[_0x4923c7];return _0x44be4d;}const GLOBAL_FLAG={'name':'global','type':a14_0x16015f(0x198),'description':a14_0x16015f(0x18c),'default':![]},listDef={'service':a14_0x16015f(0x17f),'command':a14_0x16015f(0x179),'description':a14_0x16015f(0x19b),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x57467b){const _0x331cde=a14_0x16015f,{buildConfigFromFlags:_0x4302f4}=await import(_0x331cde(0x16a)),_0x3fe178=_0x4302f4({}),_0x4c0498=getProjectConfigPath(),_0x24a33d=resolveWriteConfigPath(_0x331cde(0x181));if(_0x57467b['format']==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x331cde(0x16f)](_0x3fe178[_0x331cde(0x17c)],null,0x2)+'\x0a\x0a')+_0x331cde(0x168)+(_0x331cde(0x196)+(_0x4c0498??_0x331cde(0x169))+'\x0a')+(_0x331cde(0x18e)+_0x24a33d)};return{'ok':!![],'data':{'effective':_0x3fe178[_0x331cde(0x17c)],'configFiles':{'project':_0x4c0498??null,'global':_0x24a33d}}};}},getDef={'service':a14_0x16015f(0x17f),'command':a14_0x16015f(0x16b),'description':a14_0x16015f(0x189),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x16015f(0x187),'description':a14_0x16015f(0x18d),'required':!![]}],'flags':[],async 'execute'(_0x5b512b){const _0x559501=a14_0x16015f,_0x16598f=_0x5b512b[_0x559501(0x18a)][0x0];if(!_0x16598f)throw CliErrors[_0x559501(0x183)](_0x559501(0x178),'Usage:\x20'+CLI_BIN_NAME+_0x559501(0x16e));const {buildConfigFromFlags:_0x30a319}=await import(_0x559501(0x16a)),{raw:_0x5ef323}=_0x30a319({});if(_0x16598f[_0x559501(0x17b)]('.')){const _0x1727bb=_0x16598f[_0x559501(0x177)]('.');let _0x19ff69=_0x5ef323;for(const _0xef69bb of _0x1727bb){if(_0x19ff69==null||typeof _0x19ff69!==_0x559501(0x176))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x16598f);_0x19ff69=_0x19ff69[_0xef69bb];}if(_0x19ff69===undefined)throw CliErrors[_0x559501(0x183)](_0x559501(0x184)+_0x16598f);return console[_0x559501(0x191)](typeof _0x19ff69===_0x559501(0x176)?JSON[_0x559501(0x16f)](_0x19ff69,null,0x2):String(_0x19ff69)),{'ok':!![]};}const _0x45c170=_0x5ef323[_0x16598f];if(_0x45c170===undefined)throw CliErrors[_0x559501(0x183)](_0x559501(0x184)+_0x16598f);return console['log'](typeof _0x45c170===_0x559501(0x176)?JSON[_0x559501(0x16f)](_0x45c170,null,0x2):String(_0x45c170)),{'ok':!![]};}},setDef={'service':'config','command':a14_0x16015f(0x19a),'description':a14_0x16015f(0x175),'risk':a14_0x16015f(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x16015f(0x187),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x16015f(0x17d),'description':a14_0x16015f(0x19e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3e6e35){const _0x5a4ec7=a14_0x16015f,_0x7fc687=_0x3e6e35[_0x5a4ec7(0x18a)][0x0],_0x30c5da=_0x3e6e35[_0x5a4ec7(0x18a)][0x1];if(!_0x7fc687||_0x30c5da===undefined)throw CliErrors[_0x5a4ec7(0x183)](_0x5a4ec7(0x172),_0x5a4ec7(0x192)+CLI_BIN_NAME+_0x5a4ec7(0x18b));if(ENUM_KEYS[_0x7fc687]&&!ENUM_KEYS[_0x7fc687][_0x5a4ec7(0x17b)](_0x30c5da))throw CliErrors[_0x5a4ec7(0x183)]('Invalid\x20value\x20for\x20\x22'+_0x7fc687+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x7fc687][_0x5a4ec7(0x165)](',\x20'));if(_0x7fc687===_0x5a4ec7(0x17a))throw CliErrors[_0x5a4ec7(0x183)](_0x5a4ec7(0x16c));if(_0x7fc687===_0x5a4ec7(0x164)){const _0x30ea31=Number(_0x30c5da);if(isNaN(_0x30ea31)||_0x30ea31<=0x0)throw CliErrors['validation'](_0x5a4ec7(0x18f));}const _0x2cc678=resolveWriteScope({'explicitGlobal':_0x3e6e35[_0x5a4ec7(0x171)](_0x5a4ec7(0x181)),'policy':_0x5a4ec7(0x194)}),_0x37b90f=toScopeFlags(_0x2cc678),_0x210b07=readScopedConfig(_0x37b90f);if(!isTopLevelConfigKey(_0x7fc687))throw CliErrors[_0x5a4ec7(0x183)]('Top-level\x20key\x20\x22'+_0x7fc687+'\x22\x20is\x20not\x20settable.',_0x5a4ec7(0x199)+getTopLevelConfigKeySummary());return _0x210b07[_0x7fc687]=_0x7fc687==='pageSize'?Number(_0x30c5da):_0x30c5da,console['log']('Set\x20`'+_0x7fc687+_0x5a4ec7(0x197)+_0x30c5da+'\x22'+(_0x2cc678==='global'?_0x5a4ec7(0x195):'')),writeScopedConfig(_0x210b07,_0x37b90f),{'ok':!![]};}},deleteDef={'service':a14_0x16015f(0x17f),'command':a14_0x16015f(0x19c),'description':'Delete\x20a\x20config\x20value','risk':a14_0x16015f(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x26a87e){const _0x3e076a=a14_0x16015f,_0x30de9e=_0x26a87e[_0x3e076a(0x18a)][0x0];if(!_0x30de9e)throw CliErrors[_0x3e076a(0x183)]('Missing\x20key\x20argument.',_0x3e076a(0x192)+CLI_BIN_NAME+_0x3e076a(0x185));const _0x2bdd76=resolveWriteScope({'explicitGlobal':_0x26a87e['bool']('global'),'policy':_0x3e076a(0x194)}),_0x3d5997=toScopeFlags(_0x2bdd76),_0x535e10=readScopedConfig(_0x3d5997);if(_0x535e10[_0x30de9e]===undefined)throw CliErrors[_0x3e076a(0x183)](_0x3e076a(0x167)+_0x30de9e+_0x3e076a(0x180));return delete _0x535e10[_0x30de9e],console[_0x3e076a(0x191)]('Deleted\x20`'+_0x30de9e+'`'+(_0x2bdd76===_0x3e076a(0x181)?'\x20(global)':'')),writeScopedConfig(_0x535e10,_0x3d5997),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- function a15_0x1f12(){var _0x1d3828=['102422sFdpWA','2987528tGMzlR','1335259OyqqKW','345821BAEycg','2557710kRsLhg','6105177OuyiHi','10YIjFbk','190750ZejEuF','39txKeHr','136JXkPaz'];a15_0x1f12=function(){return _0x1d3828;};return a15_0x1f12();}(function(_0x665003,_0x2a80b6){var _0x3ca7fb=a15_0x2f0b,_0x330cff=_0x665003();while(!![]){try{var _0x57bfb5=parseInt(_0x3ca7fb(0x85))/0x1+-parseInt(_0x3ca7fb(0x83))/0x2*(-parseInt(_0x3ca7fb(0x8b))/0x3)+-parseInt(_0x3ca7fb(0x84))/0x4+parseInt(_0x3ca7fb(0x8a))/0x5+-parseInt(_0x3ca7fb(0x87))/0x6+-parseInt(_0x3ca7fb(0x86))/0x7*(parseInt(_0x3ca7fb(0x82))/0x8)+parseInt(_0x3ca7fb(0x88))/0x9*(parseInt(_0x3ca7fb(0x89))/0xa);if(_0x57bfb5===_0x2a80b6)break;else _0x330cff['push'](_0x330cff['shift']());}catch(_0x5e9005){_0x330cff['push'](_0x330cff['shift']());}}}(a15_0x1f12,0xabfe7));import{CLI_BIN_NAME}from'../../constant/cli.js';function a15_0x2f0b(_0x2d55c2,_0x6c2fd8){_0x2d55c2=_0x2d55c2-0x82;var _0x1f127e=a15_0x1f12();var _0x2f0b65=_0x1f127e[_0x2d55c2];return _0x2f0b65;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x2fad50,_0x477054){var _0x704aa5=a15_0x4a1e,_0x34ab1b=_0x2fad50();while(!![]){try{var _0x1498c7=parseInt(_0x704aa5(0xbb))/0x1*(-parseInt(_0x704aa5(0xc0))/0x2)+parseInt(_0x704aa5(0xbf))/0x3*(-parseInt(_0x704aa5(0xc1))/0x4)+parseInt(_0x704aa5(0xbd))/0x5+parseInt(_0x704aa5(0xc3))/0x6+-parseInt(_0x704aa5(0xbc))/0x7*(parseInt(_0x704aa5(0xb9))/0x8)+-parseInt(_0x704aa5(0xbe))/0x9*(parseInt(_0x704aa5(0xc4))/0xa)+parseInt(_0x704aa5(0xba))/0xb*(parseInt(_0x704aa5(0xc2))/0xc);if(_0x1498c7===_0x477054)break;else _0x34ab1b['push'](_0x34ab1b['shift']());}catch(_0x9147ef){_0x34ab1b['push'](_0x34ab1b['shift']());}}}(a15_0x4e3c,0xb7a61));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a15_0x4a1e(_0x191252,_0x37718a){_0x191252=_0x191252-0xb9;var _0x4e3c76=a15_0x4e3c();var _0x4a1eb6=_0x4e3c76[_0x191252];return _0x4a1eb6;}function a15_0x4e3c(){var _0x439899=['1438RHjnsY','4CYGAuB','36636LBadsz','3009378oWTUdt','27030BcBFgF','24iLIKRt','8052PXWIwe','1483cJEtwJ','249865yjiIyE','798860cwHjDV','135pARZWD','2789997tNzIuv'];a15_0x4e3c=function(){return _0x439899;};return a15_0x4e3c();}