@lovrabet/lovrabet-cli 2.0.1-beta.8 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -0
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -0
  5. package/lib/commands/app/remote-source.js +1 -0
  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 -0
  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 -0
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init/index.js +1 -1
  23. package/lib/commands/init.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -0
  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 -0
  31. package/lib/constant/auth-mode.js +1 -1
  32. package/lib/constant/cli.js +1 -1
  33. package/lib/constant/defaults.js +1 -0
  34. package/lib/constant/domain.js +1 -1
  35. package/lib/constant/env.js +1 -1
  36. package/lib/constant/output.js +1 -0
  37. package/lib/constant/risk.js +1 -0
  38. package/lib/context.js +1 -1
  39. package/lib/core/api-client.js +1 -1
  40. package/lib/core/db-resolver.js +1 -1
  41. package/lib/core/sdk-client.js +1 -1
  42. package/lib/errors.js +1 -1
  43. package/lib/framework/build-all-flags.js +1 -0
  44. package/lib/framework/dryrun.js +1 -1
  45. package/lib/framework/flags.js +1 -1
  46. package/lib/framework/help.js +1 -1
  47. package/lib/framework/index.js +1 -1
  48. package/lib/framework/output.js +1 -1
  49. package/lib/framework/preparse.js +1 -1
  50. package/lib/framework/response.js +1 -1
  51. package/lib/framework/runner-confirmation.js +1 -0
  52. package/lib/framework/runner-error.js +1 -0
  53. package/lib/framework/runner.js +1 -1
  54. package/lib/framework/schema-export.js +1 -0
  55. package/lib/framework/types.js +1 -1
  56. package/lib/help.js +1 -1
  57. package/lib/utils/apply-jq-filter.js +1 -1
  58. package/lib/utils/logger.js +1 -1
  59. package/lib/utils/params.js +1 -1
  60. package/lib/utils/version.js +1 -1
  61. package/lib/utils/write-cli-side-channel.js +1 -1
  62. package/package.json +4 -3
  63. package/lib/auth/auth-server-ui.js +0 -1
  64. package/lib/auth/auth-server.js +0 -1
  65. package/lib/auth/constant.js +0 -1
  66. package/lib/auth/get-cookie.js +0 -1
  67. package/lib/auth/is-session-valid.js +0 -1
  68. package/lib/auth/login-success-html.js +0 -1
  69. package/lib/auth/logout.js +0 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a7_0x13a683=a7_0x4750;(function(_0x283896,_0x35e7f1){const _0x157803=a7_0x4750,_0x107439=_0x283896();while(!![]){try{const _0x4c6caf=-parseInt(_0x157803(0x1db))/0x1*(parseInt(_0x157803(0x1e1))/0x2)+-parseInt(_0x157803(0x1ef))/0x3+-parseInt(_0x157803(0x1ea))/0x4+-parseInt(_0x157803(0x1e5))/0x5+parseInt(_0x157803(0x1f3))/0x6*(parseInt(_0x157803(0x1e6))/0x7)+-parseInt(_0x157803(0x1df))/0x8*(-parseInt(_0x157803(0x1de))/0x9)+parseInt(_0x157803(0x1d8))/0xa;if(_0x4c6caf===_0x35e7f1)break;else _0x107439['push'](_0x107439['shift']());}catch(_0x1c2dfd){_0x107439['push'](_0x107439['shift']());}}}(a7_0x4bce,0x37089));import{jsx as a7_0xf4cdd6}from'react/jsx-runtime';import a7_0x3920c0 from'meow';import{render}from'ink';import{Help}from'./help.js';function a7_0x4750(_0xffaafc,_0x2749c1){_0xffaafc=_0xffaafc-0x1d1;const _0x4bce59=a7_0x4bce();let _0x4750a4=_0x4bce59[_0xffaafc];return _0x4750a4;}import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';function a7_0x4bce(){const _0x2552e7=['catch','Unexpected\x20error:','[preparse]\x20','flatMap','help','code','10230070QFfpCJ','error','cancelled','1VpwbEc','write','corrected','37314ohypJo','24DNpfyN','exit','488658etsHDg','stderr','unknownCommand','message','786485otnIIL','7tzlaPB','ExitPromptError','\x20->\x20--','assign','1067084AWdFsa','ERR_USE_AFTER_CLOSE','ERR_STREAM_DESTROYED','input','defaultCommand','1322154AkohKd','flags','handler','slice','1794522fZfvbD','log','original'];a7_0x4bce=function(){return _0x2552e7;};return a7_0x4bce();}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=a7_0x3920c0(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});await run()[a7_0x13a683(0x1d2)](handleError);async function run(){const _0x3d07be=a7_0x13a683,_0xb25751=cli['input'][0x0];let _0x3292b1=cli[_0x3d07be(0x1ed)][0x1];const _0x2409eb=cli['flags'];try{const {correctFlags:_0x46a8aa}=await import('./framework/preparse.js'),_0x5c046d=getAllDefinitions()[_0x3d07be(0x1d5)](_0x209149=>_0x209149[_0x3d07be(0x1f0)]??[]),{flags:_0x1969ce,corrections:_0x20f605}=_0x46a8aa(_0x2409eb,_0x5c046d);if(_0x20f605['length']>0x0){for(const _0x50f549 of _0x20f605){process[_0x3d07be(0x1e2)][_0x3d07be(0x1dc)](_0x3d07be(0x1d4)+_0x50f549[_0x3d07be(0x1f1)]+':\x20--'+_0x50f549[_0x3d07be(0x1d1)]+_0x3d07be(0x1e8)+_0x50f549[_0x3d07be(0x1dd)]+'\x0a');}Object[_0x3d07be(0x1e9)](_0x2409eb,_0x1969ce);}}catch{}if(!_0xb25751||!isKnownService(_0xb25751)){render(a7_0xf4cdd6(Help,{}));return;}const _0x4246c2=getServiceEntry(_0xb25751);if(!_0x3292b1){if(_0x2409eb[_0x3d07be(0x1d6)]){console['log'](generateServiceHelp(_0xb25751));return;}if(_0x4246c2[_0x3d07be(0x1ee)])_0x3292b1=_0x4246c2['defaultCommand'];else{console[_0x3d07be(0x1f4)](generateServiceHelp(_0xb25751));return;}}const _0x2d9b86=findDefinition(_0xb25751,_0x3292b1);!_0x2d9b86&&(console[_0x3d07be(0x1f4)](generateServiceHelp(_0xb25751)),handleError(CliErrors[_0x3d07be(0x1e3)](_0xb25751+'\x20'+_0x3292b1)));if(_0x2409eb[_0x3d07be(0x1d6)]){console[_0x3d07be(0x1f4)](generateCommandHelp(_0x2d9b86));return;}const _0x20b46b=buildConfigFromFlags(_0x2409eb);await initGlobalEnvironment(_0x20b46b);const _0x4e781f=createPipelineEnv(_0x20b46b,_0x2409eb);_0x4e781f['args']=cli['input'][_0x3d07be(0x1f2)](0x2),await runCommand(_0x2d9b86,_0x4e781f);}function handleError(_0x1c5518){const _0x1ab0cd=a7_0x13a683;if(_0x1c5518 instanceof CliError){_0x1c5518['code']===_0x1ab0cd(0x1da)&&process['exit'](0x0);console[_0x1ab0cd(0x1d9)]('Error:\x20'+_0x1c5518[_0x1ab0cd(0x1e4)]);if(_0x1c5518['hint'])console[_0x1ab0cd(0x1d9)]('Hint:\x20'+_0x1c5518['hint']);process[_0x1ab0cd(0x1e0)](_0x1c5518['exitCode']);}isUserCancellation(_0x1c5518)&&process[_0x1ab0cd(0x1e0)](0x0),console['error'](_0x1ab0cd(0x1d3),_0x1c5518),process[_0x1ab0cd(0x1e0)](0x1);}function isUserCancellation(_0x1a0caa){const _0x5c42f7=a7_0x13a683;if(!(_0x1a0caa instanceof Error))return![];if(_0x1a0caa['name']===_0x5c42f7(0x1e7))return!![];if(_0x1a0caa[_0x5c42f7(0x1d7)]===_0x5c42f7(0x1eb))return!![];if(_0x1a0caa[_0x5c42f7(0x1d7)]===_0x5c42f7(0x1ec))return!![];return![];}
2
+ const a0_0x483995=a0_0x160b;function a0_0x160b(_0x4784af,_0x20c089){_0x4784af=_0x4784af-0xec;const _0x5d3f46=a0_0x5d3f();let _0x160bf8=_0x5d3f46[_0x4784af];return _0x160bf8;}(function(_0x4a8e94,_0xb96e43){const _0x3b9100=a0_0x160b,_0x472267=_0x4a8e94();while(!![]){try{const _0x3b016b=parseInt(_0x3b9100(0x101))/0x1*(parseInt(_0x3b9100(0xef))/0x2)+-parseInt(_0x3b9100(0x102))/0x3+parseInt(_0x3b9100(0x109))/0x4*(parseInt(_0x3b9100(0xec))/0x5)+parseInt(_0x3b9100(0x112))/0x6*(parseInt(_0x3b9100(0x10c))/0x7)+-parseInt(_0x3b9100(0x111))/0x8+-parseInt(_0x3b9100(0xf7))/0x9+parseInt(_0x3b9100(0x10a))/0xa*(parseInt(_0x3b9100(0x100))/0xb);if(_0x3b016b===_0xb96e43)break;else _0x472267['push'](_0x472267['shift']());}catch(_0x204552){_0x472267['push'](_0x472267['shift']());}}}(a0_0x5d3f,0x5ca47));import{jsx as a0_0x265818}from'react/jsx-runtime';import a0_0x9332da from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x9332da(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x483995(0xfc)](handleError);async function main(){try{await run();}catch(_0x3ec842){handleError(_0x3ec842);}}async function run(){const _0x4e971e=a0_0x483995;let _0x5a8c4e=cli[_0x4e971e(0xee)][0x0],_0xdad4b5=cli[_0x4e971e(0xee)][0x1];const _0x7b26c2=cli[_0x4e971e(0xfa)];try{const {correctFlags:_0x165801}=await import('./framework/preparse.js'),_0x54d468=getAllDefinitions()['flatMap'](_0x4a48c7=>_0x4a48c7['flags']??[]),{flags:_0x4e255c,corrections:_0x483b6c}=_0x165801(_0x7b26c2,_0x54d468);if(_0x483b6c[_0x4e971e(0x104)]>0x0){for(const _0x2939ca of _0x483b6c){process[_0x4e971e(0xfb)][_0x4e971e(0x116)](_0x4e971e(0xfd)+_0x2939ca['handler']+_0x4e971e(0x103)+_0x2939ca[_0x4e971e(0xf8)]+_0x4e971e(0xff)+_0x2939ca[_0x4e971e(0xf2)]+'\x0a');}Object['assign'](_0x7b26c2,_0x4e255c);}}catch{}if(!_0x5a8c4e||!isKnownService(_0x5a8c4e)){const {waitUntilExit:_0x9023e2}=render(a0_0x265818(Help,{}));await _0x9023e2();return;}const _0x437ccc=getServiceEntry(_0x5a8c4e);if(!_0xdad4b5){if(_0x7b26c2[_0x4e971e(0xf1)]){console['log'](generateServiceHelp(_0x5a8c4e));return;}if(_0x437ccc['defaultCommand'])_0xdad4b5=_0x437ccc[_0x4e971e(0xf3)];else{console[_0x4e971e(0xed)](generateServiceHelp(_0x5a8c4e));return;}}_0x5a8c4e===_0x4e971e(0x10b)&&_0xdad4b5===_0x4e971e(0xf9)&&(_0x5a8c4e=_0x4e971e(0xf0),process[_0x4e971e(0xfb)][_0x4e971e(0x116)](_0x4e971e(0xf5)+CLI_BIN_NAME+'\x20init\x20import`\x20has\x20moved\x20to\x20`'+CLI_BIN_NAME+_0x4e971e(0xf4)));const _0x55122a=findDefinition(_0x5a8c4e,_0xdad4b5);!_0x55122a&&(console[_0x4e971e(0xed)](generateServiceHelp(_0x5a8c4e)),handleError(CliErrors[_0x4e971e(0x110)](_0x5a8c4e+'\x20'+_0xdad4b5)));if(_0x7b26c2[_0x4e971e(0xf1)]){console[_0x4e971e(0xed)](generateCommandHelp(_0x55122a));return;}const _0x2e1919=buildConfigFromFlags(_0x7b26c2);await initGlobalEnvironment(_0x2e1919);const _0x2758fa=createPipelineEnv(_0x2e1919,_0x7b26c2);_0x2758fa[_0x4e971e(0x107)]=cli['input'][_0x4e971e(0x117)](0x2),await runCommand(_0x55122a,_0x2758fa);}function handleError(_0x32b6b3){const _0x5aaeec=a0_0x483995;if(_0x32b6b3 instanceof CliError){_0x32b6b3['code']===_0x5aaeec(0xf6)&&(process[_0x5aaeec(0xfb)][_0x5aaeec(0x116)](_0x5aaeec(0xfe)),process['exit'](0x0));console[_0x5aaeec(0x115)]('Error:\x20'+_0x32b6b3[_0x5aaeec(0x114)]);if(_0x32b6b3['hint'])console['error'](_0x5aaeec(0x105)+_0x32b6b3['hint']);process[_0x5aaeec(0x113)](_0x32b6b3['exitCode']);}isUserCancellation(_0x32b6b3)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process[_0x5aaeec(0x113)](0x0)),console['error'](_0x5aaeec(0x10d),_0x32b6b3),process[_0x5aaeec(0x113)](0x1);}function isUserCancellation(_0x2c9e8a){const _0x1e54c3=a0_0x483995;if(!(_0x2c9e8a instanceof Error))return![];if(_0x2c9e8a[_0x1e54c3(0x10f)]==='ExitPromptError')return!![];if(_0x2c9e8a['code']===_0x1e54c3(0x108))return!![];if(_0x2c9e8a[_0x1e54c3(0x106)]===_0x1e54c3(0x10e))return!![];return![];}function a0_0x5d3f(){const _0x29a30b=['ERR_USE_AFTER_CLOSE','4152ZSAETN','3069740YIxrGb','init','1582LUfreA','Unexpected\x20error:','ERR_STREAM_DESTROYED','name','unknownCommand','2814760HjFNJE','19452mYNdLZ','exit','message','error','write','slice','905Bqjkut','log','input','378HozdkI','app','help','corrected','defaultCommand','\x20app\x20import`.\x0a','[deprecation]\x20`','cancelled','430551keVqTy','original','import','flags','stderr','catch','[preparse]\x20','\x0aCancelled.\x0a','\x20->\x20--','11zcdmNg','369IDKIgZ','1554414EwbyVz',':\x20--','length','Hint:\x20','code','args'];a0_0x5d3f=function(){return _0x29a30b;};return a0_0x5d3f();}
@@ -0,0 +1 @@
1
+ (function(_0x5d13d1,_0x4e58c6){const _0x10847e=a1_0x5d04,_0x29f656=_0x5d13d1();while(!![]){try{const _0xc99d26=-parseInt(_0x10847e(0xa3))/0x1+-parseInt(_0x10847e(0xb0))/0x2*(-parseInt(_0x10847e(0x9d))/0x3)+parseInt(_0x10847e(0x9c))/0x4+-parseInt(_0x10847e(0xaa))/0x5*(parseInt(_0x10847e(0xac))/0x6)+parseInt(_0x10847e(0xad))/0x7+-parseInt(_0x10847e(0xb3))/0x8*(parseInt(_0x10847e(0xa2))/0x9)+-parseInt(_0x10847e(0x9e))/0xa*(parseInt(_0x10847e(0xb5))/0xb);if(_0xc99d26===_0x4e58c6)break;else _0x29f656['push'](_0x29f656['shift']());}catch(_0x37b419){_0x29f656['push'](_0x29f656['shift']());}}}(a1_0x1951,0xd86dc));function a1_0x1951(){const _0x410789=['.lovrabet','EPERM','1148884vTvFxF','172266uHxoDW','30jgxMVl','trim','update','sha256','342rztWzJ','1274268DVSijd','isArray','slice','find','parse','appCode','code','250nrYigB','stringify','33858zxCUVG','7638736oIpuID','cache','.tmp','44tMmksD','ak_','unknown','13584XJzWnY','appName','492503rdItfc','utf8','my-apps.json','EXDEV'];a1_0x1951=function(){return _0x410789;};return a1_0x1951();}function a1_0x5d04(_0x4046c0,_0x4a4e6f){_0x4046c0=_0x4046c0-0x9a;const _0x195166=a1_0x1951();let _0x5d04da=_0x195166[_0x4046c0];return _0x5d04da;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function fingerprintAccessKey(_0x91634f){const _0x302157=a1_0x5d04,_0x519dd2=_0x91634f[_0x302157(0x9f)](),_0x35dddd=_0x519dd2[_0x302157(0xa5)](-0x6)||_0x302157(0xb2),_0x7e606f=createHash(_0x302157(0xa1))[_0x302157(0xa0)](_0x519dd2)['digest']('hex')[_0x302157(0xa5)](0x0,0xc);return _0x302157(0xb1)+_0x35dddd+'_'+_0x7e606f;}export function getAppCacheFilePath(_0x181813,_0x1fb007){const _0x306ac1=a1_0x5d04;return resolve(homedir(),_0x306ac1(0x9a),_0x306ac1(0xae),_0x181813,fingerprintAccessKey(_0x1fb007),_0x306ac1(0xb7));}export function readCachedAppList(_0x2491c7,_0x547d54){const _0x36c1d7=a1_0x5d04;if(!_0x547d54?.['trim']())return null;const _0x207086=getAppCacheFilePath(_0x2491c7,_0x547d54);if(!existsSync(_0x207086))return null;try{const _0x7413ee=readFileSync(_0x207086,_0x36c1d7(0xb6));if(!_0x7413ee[_0x36c1d7(0x9f)]())return null;const _0x50449a=JSON[_0x36c1d7(0xa7)](_0x7413ee);if(!Array[_0x36c1d7(0xa4)](_0x50449a['items']))return null;return _0x50449a;}catch{return null;}}export function writeCachedAppList(_0x46c000,_0x9d28a6,_0x521cf1){const _0x1a5427=a1_0x5d04,_0xbd7c8c=getAppCacheFilePath(_0x46c000,_0x9d28a6),_0x495052=dirname(_0xbd7c8c);!existsSync(_0x495052)&&mkdirSync(_0x495052,{'recursive':!![]});const _0x5f246c=_0xbd7c8c+_0x1a5427(0xaf);try{writeFileSync(_0x5f246c,JSON[_0x1a5427(0xab)](_0x521cf1,null,0x2)+'\x0a',{'encoding':_0x1a5427(0xb6),'mode':0x180});try{renameSync(_0x5f246c,_0xbd7c8c);}catch(_0x5cdddb){if(_0x5cdddb['code']===_0x1a5427(0x9b)||_0x5cdddb[_0x1a5427(0xa9)]===_0x1a5427(0xb8)||_0x5cdddb['code']==='EACCES'){writeFileSync(_0xbd7c8c,JSON[_0x1a5427(0xab)](_0x521cf1,null,0x2)+'\x0a',{'encoding':_0x1a5427(0xb6)});try{unlinkSync(_0x5f246c);}catch{}}else throw _0x5cdddb;}}catch(_0x3772e9){try{unlinkSync(_0x5f246c);}catch{}throw _0x3772e9;}return _0xbd7c8c;}export function resolveCachedAppCode(_0x4538f8,_0x329a6f,_0x488c6c){const _0x2ac518=a1_0x5d04;if(!_0x4538f8)return undefined;const _0x1b5d46=readCachedAppList(_0x329a6f,_0x488c6c),_0x4c45bf=_0x1b5d46?.['items'][_0x2ac518(0xa6)](_0x4de3ef=>_0x4de3ef[_0x2ac518(0xb4)]===_0x4538f8);return _0x4c45bf?.[_0x2ac518(0xa8)]?.[_0x2ac518(0x9f)]()||undefined;}
@@ -1 +1 @@
1
- const a8_0x2c62bd=a8_0x22c7;(function(_0x37ab6b,_0x4e9509){const _0x28ef9e=a8_0x22c7,_0x14ba46=_0x37ab6b();while(!![]){try{const _0x1dacd7=-parseInt(_0x28ef9e(0x12f))/0x1+parseInt(_0x28ef9e(0x140))/0x2+-parseInt(_0x28ef9e(0x11b))/0x3*(-parseInt(_0x28ef9e(0x131))/0x4)+parseInt(_0x28ef9e(0x113))/0x5*(-parseInt(_0x28ef9e(0x105))/0x6)+parseInt(_0x28ef9e(0x12b))/0x7+parseInt(_0x28ef9e(0x12a))/0x8+-parseInt(_0x28ef9e(0x144))/0x9;if(_0x1dacd7===_0x4e9509)break;else _0x14ba46['push'](_0x14ba46['shift']());}catch(_0x5e6c8a){_0x14ba46['push'](_0x14ba46['shift']());}}}(a8_0x1906,0x25ea1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,migrateLegacySingleApp,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';const GLOBAL_FLAG={'name':a8_0x2c62bd(0x125),'type':a8_0x2c62bd(0x13e),'description':a8_0x2c62bd(0x11c),'default':![]},PROFILE_FLAG_KEYS={'env':a8_0x2c62bd(0x12d),'cookie':'cookie','accessKey':a8_0x2c62bd(0x153),'accesskey':'accessKey','defaultFormat':a8_0x2c62bd(0x128),'pageSize':a8_0x2c62bd(0x134),'pagesize':a8_0x2c62bd(0x134),'riskLevel':a8_0x2c62bd(0x150),'risklevel':a8_0x2c62bd(0x150),'locale':a8_0x2c62bd(0xfe)},listDef={'service':a8_0x2c62bd(0x129),'command':'list','description':a8_0x2c62bd(0x10a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a8_0x2c62bd(0x125),'type':a8_0x2c62bd(0x13e),'description':'Show\x20only\x20global\x20config\x20apps','default':![]},{'name':a8_0x2c62bd(0x104),'type':a8_0x2c62bd(0x13e),'description':a8_0x2c62bd(0x109),'default':![]}],async 'execute'(_0x45f351){const _0x3dfedf=a8_0x2c62bd,{readRawConfigWithLayers:_0xd3fa9,appDefinedIn:_0xbc3a16,resolveDefaultAppSource:_0x5c1191}=await import(_0x3dfedf(0x11f)),_0x24767f=_0x45f351[_0x3dfedf(0x117)](_0x3dfedf(0x125)),_0x14a2b5=_0x45f351[_0x3dfedf(0x117)](_0x3dfedf(0x104)),_0x35fcd4=_0x24767f?_0x3dfedf(0x125):_0x14a2b5?'project':_0x3dfedf(0x10b),{config:_0x7bbe8d,layers:_0x11fb3e}=_0xd3fa9(),_0x334d54=_0x5c1191(_0x11fb3e),{defaultApp:_0x4ed988}=_0x7bbe8d;function _0x36c3de(_0x2a0d73,_0x539064){const _0x466b50=_0x3dfedf,_0x2fa17b=[],_0x3f19f4=_0x2a0d73[_0x466b50(0x149)]&&typeof _0x2a0d73[_0x466b50(0x149)]===_0x466b50(0x10f)?_0x2a0d73['apps']:{},_0x411e34=_0x2a0d73[_0x466b50(0x147)]||undefined;for(const [_0x38d2d2,_0x109d29]of Object[_0x466b50(0x14b)](_0x3f19f4)){if(!_0x109d29||typeof _0x109d29!=='object'||!_0x109d29[_0x466b50(0x12e)])continue;_0x2fa17b[_0x466b50(0x139)]({'name':_0x38d2d2,'appcode':_0x109d29['appcode'],'named':!![],'definedIn':_0x539064,'isDefault':_0x38d2d2===_0x411e34,'env':_0x109d29[_0x466b50(0x12d)]??null,'hasCookie':!!_0x109d29['cookie'],'hasAccessKey':!!_0x109d29[_0x466b50(0x153)],'format':_0x109d29[_0x466b50(0x128)]??null,'pageSize':_0x109d29['pageSize']??null,'riskLevel':_0x109d29['riskLevel']??null,'locale':_0x109d29[_0x466b50(0xfe)]??null});}const _0x2d5a15=Object[_0x466b50(0x126)](_0x3f19f4)[_0x466b50(0x137)]>0x0,_0x23c56c=_0x2a0d73[_0x466b50(0x12e)]||_0x2a0d73[_0x466b50(0x129)];return _0x23c56c&&!_0x2d5a15&&_0x2fa17b[_0x466b50(0x139)]({'name':null,'appcode':String(_0x23c56c),'named':![],'definedIn':_0x539064,'isDefault':![],'env':_0x2a0d73[_0x466b50(0x12d)]??null,'hasCookie':!!_0x2a0d73[_0x466b50(0x11a)],'hasAccessKey':!!_0x2a0d73[_0x466b50(0x153)],'format':_0x2a0d73[_0x466b50(0x128)]??null,'pageSize':_0x2a0d73[_0x466b50(0x134)]??null,'riskLevel':_0x2a0d73[_0x466b50(0x150)]??null,'locale':_0x2a0d73['locale']??null}),_0x2fa17b;}let _0x1cc4c2,_0x5461b6;if(_0x35fcd4===_0x3dfedf(0x125))_0x1cc4c2=_0x36c3de(_0x11fb3e[_0x3dfedf(0x148)],'global'),_0x5461b6=_0x11fb3e[_0x3dfedf(0x13d)];else{if(_0x35fcd4==='project')_0x1cc4c2=_0x36c3de(_0x11fb3e['projectConfig'],_0x3dfedf(0x104)),_0x5461b6=_0x11fb3e[_0x3dfedf(0x10c)];else{const _0x20c738=_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x149)]&&typeof _0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x149)]===_0x3dfedf(0x10f)?_0x11fb3e['globalConfig']['apps']:{},_0x37ce6c=_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x149)]&&typeof _0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x149)]===_0x3dfedf(0x10f)?_0x11fb3e['projectConfig'][_0x3dfedf(0x149)]:{},{apps:apps={}}=_0x7bbe8d,_0x260d86=_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0xfc)]===![],_0x5ae615=Object[_0x3dfedf(0x14b)](apps);_0x1cc4c2=_0x5ae615[_0x3dfedf(0x122)](([_0x586b03,_0x4365cc])=>({'name':_0x586b03,'appcode':_0x4365cc[_0x3dfedf(0x12e)],'named':!![],'definedIn':_0xbc3a16(_0x586b03,_0x20c738,_0x37ce6c,_0x260d86),'isDefault':_0x586b03===_0x4ed988,'env':_0x4365cc[_0x3dfedf(0x12d)]??null,'hasCookie':!!_0x4365cc[_0x3dfedf(0x11a)],'hasAccessKey':!!_0x4365cc[_0x3dfedf(0x153)],'format':_0x4365cc[_0x3dfedf(0x128)]??null,'pageSize':_0x4365cc[_0x3dfedf(0x134)]??null,'riskLevel':_0x4365cc[_0x3dfedf(0x150)]??null,'locale':_0x4365cc[_0x3dfedf(0xfe)]??null}));const _0x16310a=(_0x11fb3e[_0x3dfedf(0x143)]['appcode']||_0x11fb3e['projectConfig'][_0x3dfedf(0x129)])&&(!_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x149)]||Object[_0x3dfedf(0x126)](_0x11fb3e[_0x3dfedf(0x143)]['apps'])[_0x3dfedf(0x137)]===0x0)?String(_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x12e)]||_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x129)]):undefined,_0x25e768=(_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x12e)]||_0x11fb3e[_0x3dfedf(0x148)]['app'])&&(!_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x149)]||Object[_0x3dfedf(0x126)](_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x149)])[_0x3dfedf(0x137)]===0x0)?String(_0x11fb3e['globalConfig'][_0x3dfedf(0x12e)]||_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x129)]):undefined;if(_0x16310a)_0x1cc4c2['push']({'name':null,'appcode':_0x16310a,'named':![],'definedIn':_0x3dfedf(0x104),'isDefault':![],'env':_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x12d)]??null,'hasCookie':!!_0x11fb3e['projectConfig'][_0x3dfedf(0x11a)],'hasAccessKey':!!_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x153)],'format':_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x128)]??null,'pageSize':_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x134)]??null,'riskLevel':_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0x150)]??null,'locale':_0x11fb3e[_0x3dfedf(0x143)][_0x3dfedf(0xfe)]??null});else _0x25e768&&_0x5ae615[_0x3dfedf(0x137)]===0x0&&_0x1cc4c2['push']({'name':null,'appcode':_0x25e768,'named':![],'definedIn':_0x3dfedf(0x125),'isDefault':![],'env':_0x11fb3e['globalConfig']['env']??null,'hasCookie':!!_0x11fb3e['globalConfig'][_0x3dfedf(0x11a)],'hasAccessKey':!!_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x153)],'format':_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x128)]??null,'pageSize':_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x134)]??null,'riskLevel':_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0x150)]??null,'locale':_0x11fb3e[_0x3dfedf(0x148)][_0x3dfedf(0xfe)]??null});}}enrichAppListItemsWithMergedSelection(_0x1cc4c2,_0x45f351['mergedCli']);if(_0x1cc4c2[_0x3dfedf(0x137)]===0x0){const _0x4ff17b=_0x35fcd4===_0x3dfedf(0x10b)?'':_0x3dfedf(0x145)+_0x35fcd4+'\x20config';return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x4ff17b+'.\x20Use\x20`'+CLI_BIN_NAME+_0x3dfedf(0xfd)};}const _0x502913=_0x1cc4c2[_0x3dfedf(0x13a)](_0x2c0d11=>_0x2c0d11[_0x3dfedf(0x112)]===!![]),_0x368a91=_0x4ed988??_0x502913?.[_0x3dfedf(0x12e)]??null,_0x552707=_0x35fcd4===_0x3dfedf(0x10b)?{'globalPath':_0x11fb3e[_0x3dfedf(0x13d)]??null,'projectPath':_0x11fb3e['projectPath']??null,'defaultApp':_0x368a91,'defaultAppSource':_0x4ed988!=null?_0x334d54:null}:{'scope':_0x35fcd4,'configPath':_0x5461b6??null};return{'ok':!![],'data':{'items':_0x1cc4c2,'meta':_0x552707}};}},useDef={'service':'app','command':a8_0x2c62bd(0x14a),'description':'Switch\x20the\x20default\x20app','risk':a8_0x2c62bd(0x127),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a8_0x2c62bd(0x152),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x54fca2){const _0x478f5a=a8_0x2c62bd;if(!_0x54fca2[_0x478f5a(0x136)][0x0])throw CliErrors['validation'](_0x478f5a(0x14d),_0x478f5a(0x13c)+CLI_BIN_NAME+_0x478f5a(0x103));},async 'execute'(_0x194db9){const _0x273e6a=a8_0x2c62bd,_0xbd7a9f=_0x194db9[_0x273e6a(0x136)][0x0];if(!_0xbd7a9f)throw CliErrors[_0x273e6a(0x142)]('Missing\x20app\x20name.',_0x273e6a(0x13c)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x4c12a0,readRawConfigWithLayers:_0x4bbb4b,resolveAppScopeForWrite:_0xebcbad}=await import('../../context.js'),_0x45eb39=_0x4c12a0({}),_0x151a87=_0x45eb39[_0x273e6a(0x149)]||{};if(!_0x151a87[_0xbd7a9f]){const _0x3a6af4=Object['keys'](_0x151a87),_0x40bf7b=_0x3a6af4['length']===0x0?_0x273e6a(0x118)+CLI_BIN_NAME+_0x273e6a(0x135)+_0xbd7a9f+_0x273e6a(0x10e):_0x273e6a(0x110)+_0x3a6af4[_0x273e6a(0x116)](',\x20');throw CliErrors[_0x273e6a(0x142)](_0x273e6a(0x121)+_0xbd7a9f+_0x273e6a(0x108),_0x40bf7b);}const {layers:_0x185227}=_0x4bbb4b(),_0x531afb=_0x194db9[_0x273e6a(0x117)]('global');let _0x12008c,_0x55ce02='';if(_0x531afb)_0x12008c={'global':!![]};else{const {isInProject:_0x543046}=await import(_0x273e6a(0x11f)),_0x3ea5f4=_0x543046()&&!!_0x185227[_0x273e6a(0x10c)];_0x12008c={'global':!_0x3ea5f4};if(_0x3ea5f4){const _0x232079=_0x185227[_0x273e6a(0x143)][_0x273e6a(0x149)]&&typeof _0x185227[_0x273e6a(0x143)]['apps']===_0x273e6a(0x10f)?_0x185227['projectConfig'][_0x273e6a(0x149)]:{};!Object['prototype'][_0x273e6a(0x123)]['call'](_0x232079,_0xbd7a9f)&&(_0x55ce02=_0x273e6a(0x130)+_0xbd7a9f+_0x273e6a(0x13f));}}const _0x41e585=readConfig(_0x12008c);return _0x41e585[_0x273e6a(0x147)]=_0xbd7a9f,writeConfig(_0x41e585,_0x12008c),{'ok':!![],'message':_0x273e6a(0x106)+_0xbd7a9f+_0x273e6a(0x119)+_0x151a87[_0xbd7a9f]?.[_0x273e6a(0x12e)]+')'+scopeLabel(_0x12008c)+_0x55ce02};}},addFlags=[{'name':a8_0x2c62bd(0x12e),'type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x107),'required':!![]},GLOBAL_FLAG,{'name':'env','type':a8_0x2c62bd(0x146),'description':'Target\x20environment','enum':['production',a8_0x2c62bd(0xfa)]},{'name':'cookie','type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x14f)},{'name':'accessKey','type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x111)},{'name':a8_0x2c62bd(0x14c),'type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x101),'enum':[a8_0x2c62bd(0x120),'pretty','compress']},{'name':a8_0x2c62bd(0x134),'type':'number','description':a8_0x2c62bd(0x13b)},{'name':a8_0x2c62bd(0x150),'type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x14e),'enum':[a8_0x2c62bd(0x141),a8_0x2c62bd(0x127),'high-risk-write']},{'name':'locale','type':a8_0x2c62bd(0x146),'description':a8_0x2c62bd(0x100)}],addDef={'service':a8_0x2c62bd(0x129),'command':a8_0x2c62bd(0x102),'description':a8_0x2c62bd(0x132),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a8_0x2c62bd(0x151),'required':!![]}],'flags':addFlags,async 'validate'(_0x3ce058){const _0x123031=a8_0x2c62bd;if(!_0x3ce058['args'][0x0])throw CliErrors['validation'](_0x123031(0x14d),_0x123031(0x13c)+CLI_BIN_NAME+_0x123031(0x10d));},async 'execute'(_0x1a31d1){const _0x6decee=a8_0x2c62bd,_0x2c782c=_0x1a31d1[_0x6decee(0x136)][0x0];if(!_0x2c782c)throw CliErrors['validation'](_0x6decee(0x14d),_0x6decee(0x13c)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--global]');const _0x46dc78=_0x1a31d1[_0x6decee(0xfb)](_0x6decee(0x12e));if(!_0x46dc78)throw CliErrors[_0x6decee(0x11e)](_0x6decee(0x12e),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x5c1590={'global':_0x1a31d1[_0x6decee(0x117)](_0x6decee(0x125))},_0x4b839d=readConfig(_0x5c1590);if(!_0x4b839d[_0x6decee(0x149)])_0x4b839d[_0x6decee(0x149)]={};let _0x286dcd;Object[_0x6decee(0x126)](_0x4b839d[_0x6decee(0x149)])['length']===0x0&&(_0x286dcd=migrateLegacySingleApp(_0x4b839d,_0x2c782c));const _0x346984={'appcode':_0x46dc78};for(const [_0x13d468,_0x3090e3]of Object['entries'](PROFILE_FLAG_KEYS)){const _0x222535=_0x1a31d1[_0x6decee(0xfb)](_0x13d468);_0x222535&&(_0x346984[_0x3090e3]=_0x3090e3===_0x6decee(0x134)?Number(_0x222535):_0x222535);}const _0x3472cc=!!_0x4b839d[_0x6decee(0x149)][_0x2c782c];_0x4b839d[_0x6decee(0x149)][_0x2c782c]=_0x346984;!_0x4b839d[_0x6decee(0x147)]&&(_0x4b839d[_0x6decee(0x147)]=_0x2c782c);writeConfig(_0x4b839d,_0x5c1590);const _0xdec737=!_0x3472cc&&_0x4b839d['defaultApp']===_0x2c782c?_0x6decee(0xf9):'',_0x1ec6b9=(_0x3472cc?'Updated':'Added')+_0x6decee(0x115)+_0x2c782c+_0x6decee(0x119)+_0x46dc78+')'+scopeLabel(_0x5c1590)+'.'+_0xdec737;return{'ok':!![],'message':_0x286dcd?_0x286dcd+'\x0a'+_0x1ec6b9:_0x1ec6b9};}},removeDef={'service':a8_0x2c62bd(0x129),'command':a8_0x2c62bd(0x12c),'description':'Remove\x20an\x20app\x20from\x20config','risk':a8_0x2c62bd(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a8_0x2c62bd(0x11d),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x5a8fc9){const _0x3b9a12=a8_0x2c62bd;if(!_0x5a8fc9[_0x3b9a12(0x136)][0x0])throw CliErrors[_0x3b9a12(0x142)](_0x3b9a12(0x14d),_0x3b9a12(0x13c)+CLI_BIN_NAME+'\x20app\x20remove\x20<name>\x20[--global]');},async 'execute'(_0x2908ab){const _0x1ae439=a8_0x2c62bd,_0x1da8f0=_0x2908ab['args'][0x0];if(!_0x1da8f0)throw CliErrors[_0x1ae439(0x142)](_0x1ae439(0x14d),_0x1ae439(0x13c)+CLI_BIN_NAME+_0x1ae439(0xf8));const {buildConfigFromFlags:_0x1a6e52,readRawConfigWithLayers:_0x1b12ef,resolveAppScopeForWrite:_0x4ef2d4,appDefinedIn:_0x2f138d}=await import(_0x1ae439(0x11f)),_0x498984=_0x1a6e52({}),_0x2fed02=_0x498984[_0x1ae439(0x149)]||{};if(!_0x2fed02[_0x1da8f0])throw CliErrors[_0x1ae439(0x142)](_0x1ae439(0x121)+_0x1da8f0+_0x1ae439(0x108));const {layers:_0x35d93b}=_0x1b12ef(),_0x1d03f2=_0x2908ab[_0x1ae439(0x117)](_0x1ae439(0x125)),_0x2a7781=_0x4ef2d4(_0x1da8f0,_0x1d03f2,_0x35d93b),_0x12e46b={'global':_0x2a7781===_0x1ae439(0x125)},_0x24e856=_0x35d93b['globalConfig'][_0x1ae439(0x149)]&&typeof _0x35d93b[_0x1ae439(0x148)]['apps']==='object'?_0x35d93b['globalConfig'][_0x1ae439(0x149)]:{},_0x991768=_0x35d93b[_0x1ae439(0x143)][_0x1ae439(0x149)]&&typeof _0x35d93b['projectConfig'][_0x1ae439(0x149)]===_0x1ae439(0x10f)?_0x35d93b['projectConfig'][_0x1ae439(0x149)]:{},_0x48d7c5=_0x2f138d(_0x1da8f0,_0x24e856,_0x991768,_0x35d93b[_0x1ae439(0x143)][_0x1ae439(0xfc)]===![]),_0x493207=readConfig(_0x12e46b);if(!_0x493207[_0x1ae439(0x149)]||!_0x493207['apps'][_0x1da8f0])throw CliErrors['validation'](_0x1ae439(0x121)+_0x1da8f0+'\x22\x20not\x20found.');delete _0x493207['apps'][_0x1da8f0];let _0x1e2316='';if(_0x493207[_0x1ae439(0x147)]===_0x1da8f0){const _0x39f546=Object[_0x1ae439(0x126)](_0x493207['apps']);_0x493207[_0x1ae439(0x147)]=_0x39f546[_0x1ae439(0x137)]>0x0?_0x39f546[0x0]:undefined,_0x493207[_0x1ae439(0x147)]?_0x1e2316='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x493207[_0x1ae439(0x147)]+'\x22.':delete _0x493207[_0x1ae439(0x147)];}Object['keys'](_0x493207[_0x1ae439(0x149)])[_0x1ae439(0x137)]===0x0&&(delete _0x493207[_0x1ae439(0x149)],delete _0x493207[_0x1ae439(0x147)]);writeConfig(_0x493207,_0x12e46b);const _0x223e9e=_0x48d7c5===_0x1ae439(0x114)?_0x1ae439(0xff)+_0x1da8f0+_0x1ae439(0x133)+(_0x2a7781===_0x1ae439(0x104)?_0x1ae439(0x125):_0x1ae439(0x104))+'\x20config.':'';return{'ok':!![],'message':_0x1ae439(0x138)+_0x1da8f0+'\x22'+scopeLabel(_0x12e46b)+'.'+_0x1e2316+_0x223e9e};}};function a8_0x22c7(_0x53a4d4,_0x166892){_0x53a4d4=_0x53a4d4-0xf8;const _0x19063b=a8_0x1906();let _0x22c70c=_0x19063b[_0x53a4d4];return _0x22c70c;}export const appDefinitions=[listDef,useDef,addDef,removeDef];function a8_0x1906(){const _0x52b528=['\x22\x20not\x20found.','Show\x20only\x20project\x20config\x20apps','List\x20all\x20configured\x20apps','merged','projectPath','\x20app\x20add\x20<name>\x20--appcode\x20<code>\x20[--env\x20<env>]\x20[--global]','\x20--appcode\x20<code>`\x20first.','object','Available:\x20','Access\x20key\x20(client-ak\x20auth)','isCurrent','45FrwfpJ','both','\x20app\x20\x22','join','bool','Use\x20`','\x22\x20(appcode:\x20','cookie','3jordHS','Use\x20global\x20config\x20scope','name','flagMissing','../../context.js','json','App\x20\x22','map','hasOwnProperty','high-risk-write','global','keys','write','format','app','2436952yGVEPa','226772BEXWjw','remove','env','appcode','55776HkMqkA','\x0aNote:\x20\x22','235436LHxdGe','Add\x20an\x20app\x20to\x20config','\x22\x20still\x20defined\x20in\x20','pageSize','\x20app\x20add\x20','args','length','Removed\x20app\x20\x22','push','find','Default\x20page\x20size','Usage:\x20','globalPath','boolean','\x22\x20is\x20defined\x20in\x20global\x20config;\x20defaultApp\x20written\x20to\x20project\x20to\x20take\x20effect\x20in\x20merged\x20view.','423964eCHroq','read','validation','projectConfig','3361824xSNeQC','\x20in\x20','string','defaultApp','globalConfig','apps','use','entries','defaultFormat','Missing\x20app\x20name.','Risk\x20level','Auth\x20cookie','riskLevel','App\x20profile\x20name\x20(used\x20to\x20switch\x20between\x20apps)','App\x20profile\x20name\x20to\x20activate','accessKey','\x20app\x20remove\x20<name>\x20[--global]','\x20Set\x20as\x20default\x20app.','daily','str','inherit','\x20app\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','locale','\x20Note:\x20app\x20\x22','Locale','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','add','\x20app\x20use\x20<name>\x20[--global]','project','15498MvoUsI','Default\x20app\x20set\x20to\x20\x22','App\x20code\x20(required)'];a8_0x1906=function(){return _0x52b528;};return a8_0x1906();}
1
+ const a2_0x2b2c07=a2_0x3d63;(function(_0x292d1c,_0x4ae815){const _0x5d4125=a2_0x3d63,_0x4a9346=_0x292d1c();while(!![]){try{const _0x2dfa43=parseInt(_0x5d4125(0x96))/0x1*(-parseInt(_0x5d4125(0x65))/0x2)+parseInt(_0x5d4125(0xa9))/0x3*(-parseInt(_0x5d4125(0xa6))/0x4)+-parseInt(_0x5d4125(0x71))/0x5+-parseInt(_0x5d4125(0x8b))/0x6+parseInt(_0x5d4125(0x9e))/0x7*(parseInt(_0x5d4125(0xa1))/0x8)+-parseInt(_0x5d4125(0x9a))/0x9+parseInt(_0x5d4125(0x70))/0xa;if(_0x2dfa43===_0x4ae815)break;else _0x4a9346['push'](_0x4a9346['shift']());}catch(_0x300336){_0x4a9346['push'](_0x4a9346['shift']());}}}(a2_0x5a72,0x7f05b));import{CliErrors}from'../../errors.js';import{initImportFlagDefs,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a2_0x5a72(){const _0x3a0b9f=['appOwnerName','No\x20apps\x20found\x20on\x20the\x20platform.','join','args','Filter\x20by\x20environment\x20(default:\x20current\x20env)','\x20cached\x20app(s)\x20for\x20env=\x22','length','production','4946568sCietW','Switch\x20the\x20default\x20app','../../commands/app/cache.js','mergedCli','Usage:\x20','source','defaultApp','Remote\x20app\x20name\x20to\x20activate','string','type','appPublishStatus','426931DLMAcR','Use\x20`','import','nonInteractive','3622437BZuZxj','globalPath','read','Default\x20app\x20set\x20to\x20\x22','7049lzaaiO','Missing\x20app\x20name.','pull','8056QkKYVR','cache','Use\x20global\x20config\x20scope','projectPath','project-default','188jVkcgu','../../context.js','env','52293ZvHJoV','boolean','4SsyHpL','items','use','appCode','Available:\x20','Loaded\x20','name','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','envName','map','\x22\x20not\x20found.','32393560HupdOq','4165410zPKPbR','validation','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','accessKey','write','appName','Read\x20app\x20list\x20from\x20local\x20cache\x20only','fetchedAt','find','app','Target\x20environment\x20(default:\x20current\x20env)','../../commands/app/remote-source.js','cachePath','str','no-cache','local','Refreshed\x20app\x20cache\x20with\x20','bool'];a2_0x5a72=function(){return _0x3a0b9f;};return a2_0x5a72();}function a2_0x3d63(_0x4f3ade,_0x44c4c8){_0x4f3ade=_0x4f3ade-0x65;const _0x5a72f7=a2_0x5a72();let _0x3d637a=_0x5a72f7[_0x4f3ade];return _0x3d637a;}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':'global','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0xa3),'default':![]};function collectFlags(_0x1f50a9,_0x1f570e){const _0x378eef=a2_0x2b2c07,_0x44c252={};for(const _0x447535 of _0x1f570e){const _0x50a451=_0x447535[_0x378eef(0x94)]===_0x378eef(0xaa)?_0x1f50a9['bool'](_0x447535[_0x378eef(0x6b)]):_0x1f50a9[_0x378eef(0x7e)](_0x447535[_0x378eef(0x6b)]);if(_0x50a451!==''&&_0x50a451!==![])_0x44c252[_0x447535[_0x378eef(0x6b)]]=_0x50a451;}if(_0x1f50a9[_0x378eef(0x99)])_0x44c252[_0x378eef(0x99)]=!![];return _0x44c252;}const listDef={'service':a2_0x2b2c07(0x7a),'command':'list','description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a2_0x2b2c07(0x9c),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a2_0x2b2c07(0xa8),'type':a2_0x2b2c07(0x93),'description':a2_0x2b2c07(0x87),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2b2c07(0x80),'type':'boolean','description':a2_0x2b2c07(0x77),'default':![]},{'name':'no-cache','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0x6c),'default':![]}],async 'execute'(_0x584c95){const _0x35f63c=a2_0x2b2c07,_0x17e5d6=_0x584c95[_0x35f63c(0x7e)](_0x35f63c(0xa8))||_0x584c95[_0x35f63c(0x6d)]||getEnv()||_0x35f63c(0x8a),_0x295173=_0x584c95[_0x35f63c(0x82)](_0x35f63c(0x80)),_0x2f1882=_0x584c95[_0x35f63c(0x82)](_0x35f63c(0x7f)),{readRawConfigWithLayers:_0xaceaea,resolveDefaultAppSource:_0x2cb795}=await import('../../context.js'),{getRemoteAppList:_0x581588}=await import(_0x35f63c(0x7c)),{config:_0x5907d2,layers:_0x31413b}=_0xaceaea(),_0x455e58=_0x2cb795(_0x31413b),{defaultApp:_0x166a89}=_0x5907d2,_0x1dd06d=await _0x581588({'env':_0x17e5d6,'accessKey':_0x584c95['accessKey'],'localOnly':_0x295173,'noCache':_0x2f1882}),_0x16ecdc=_0x1dd06d[_0x35f63c(0x66)][_0x35f63c(0x6e)](_0x1a5a70=>{const _0x4d2f89=_0x35f63c;return{'name':_0x1a5a70[_0x4d2f89(0x76)],'appcode':_0x1a5a70[_0x4d2f89(0x68)],'named':!![],'definedIn':'remote','isDefault':_0x1a5a70[_0x4d2f89(0x76)]===_0x166a89,...buildAppProfileListFields(_0x17e5d6),'source':_0x1dd06d[_0x4d2f89(0x90)],'owner':_0x1a5a70[_0x4d2f89(0x83)]??null,'status':_0x1a5a70[_0x4d2f89(0x95)]??null,'cachedAt':_0x1dd06d[_0x4d2f89(0x78)]};});enrichAppListItemsWithMergedSelection(_0x16ecdc,_0x584c95[_0x35f63c(0x8e)]);if(_0x16ecdc['length']===0x0)return{'ok':!![],'data':[],'message':_0x1dd06d[_0x35f63c(0x90)]===_0x35f63c(0xa2)?'No\x20cached\x20apps\x20found.':_0x35f63c(0x84)};const _0x539a43=_0x16ecdc[_0x35f63c(0x79)](_0x5bae39=>_0x5bae39['isCurrent']===!![]),_0x2892a3=_0x166a89??_0x539a43?.[_0x35f63c(0x6b)]??null,_0x18e667={'env':_0x17e5d6,'source':_0x1dd06d[_0x35f63c(0x90)],'fetchedAt':_0x1dd06d[_0x35f63c(0x78)],'cachePath':_0x1dd06d[_0x35f63c(0x7d)],'globalPath':_0x31413b[_0x35f63c(0x9b)]??null,'projectPath':_0x31413b[_0x35f63c(0xa4)]??null,'defaultApp':_0x2892a3,'defaultAppSource':_0x166a89!=null?_0x455e58:null};return{'ok':!![],'data':{'items':_0x16ecdc,'meta':_0x18e667}};}},pullDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0xa0),'description':a2_0x2b2c07(0x73),'risk':a2_0x2b2c07(0x75),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a2_0x2b2c07(0xa8),'type':a2_0x2b2c07(0x93),'description':a2_0x2b2c07(0x7b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a2_0x2b2c07(0x80),'type':a2_0x2b2c07(0xaa),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a2_0x2b2c07(0xaa),'description':a2_0x2b2c07(0x6c),'default':![]}],async 'execute'(_0x1160c9){const _0x57aa19=a2_0x2b2c07,_0xedef3e=_0x1160c9[_0x57aa19(0x7e)](_0x57aa19(0xa8))||_0x1160c9[_0x57aa19(0x6d)]||getEnv()||_0x57aa19(0x8a),_0x4e3d3d=_0x1160c9[_0x57aa19(0x82)](_0x57aa19(0x80)),_0x5ce4be=_0x1160c9['bool'](_0x57aa19(0x7f)),{getRemoteAppList:_0x48cfde}=await import(_0x57aa19(0x7c)),_0xe84a5=await _0x48cfde({'env':_0xedef3e,'accessKey':_0x1160c9[_0x57aa19(0x74)],'localOnly':_0x4e3d3d,'noCache':_0x5ce4be});return{'ok':!![],'data':{'total':_0xe84a5[_0x57aa19(0x66)]['length'],'env':_0xedef3e,'source':_0xe84a5[_0x57aa19(0x90)],'fetchedAt':_0xe84a5[_0x57aa19(0x78)],'cachePath':_0xe84a5[_0x57aa19(0x7d)]},'message':_0xe84a5[_0x57aa19(0x90)]===_0x57aa19(0xa2)?_0x57aa19(0x6a)+_0xe84a5[_0x57aa19(0x66)][_0x57aa19(0x89)]+_0x57aa19(0x88)+_0xedef3e+'\x22.':_0x57aa19(0x81)+_0xe84a5[_0x57aa19(0x66)][_0x57aa19(0x89)]+'\x20app(s)\x20for\x20env=\x22'+_0xedef3e+'\x22.'};}},useDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0x67),'description':a2_0x2b2c07(0x8c),'risk':a2_0x2b2c07(0x75),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a2_0x2b2c07(0x6b),'description':a2_0x2b2c07(0x92),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x1ca068){const _0x240548=a2_0x2b2c07;if(!_0x1ca068['args'][0x0])throw CliErrors[_0x240548(0x72)](_0x240548(0x9f),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x1fb8b7){const _0x476d0e=a2_0x2b2c07,_0x283139=_0x1fb8b7[_0x476d0e(0x86)][0x0];if(!_0x283139)throw CliErrors[_0x476d0e(0x72)](_0x476d0e(0x9f),_0x476d0e(0x8f)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x1686e4}=await import(_0x476d0e(0xa7)),{readCachedAppList:_0x4510f5}=await import(_0x476d0e(0x8d)),_0x3e2a7d=_0x1686e4({}),_0x348217=_0x4510f5(_0x3e2a7d[_0x476d0e(0xa8)],_0x3e2a7d[_0x476d0e(0x74)]),_0x48a281=_0x348217?.[_0x476d0e(0x66)][_0x476d0e(0x79)](_0x2ba1bc=>_0x2ba1bc[_0x476d0e(0x76)]===_0x283139);if(!_0x48a281&&_0x3e2a7d[_0x476d0e(0x91)]!==_0x283139){const _0x42761a=[..._0x348217?.[_0x476d0e(0x66)][_0x476d0e(0x6e)](_0x5c2834=>_0x5c2834[_0x476d0e(0x76)])??[]],_0x17c59e=_0x42761a[_0x476d0e(0x89)]===0x0?_0x476d0e(0x97)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps.':_0x476d0e(0x69)+Array['from'](new Set(_0x42761a))[_0x476d0e(0x85)](',\x20');throw CliErrors[_0x476d0e(0x72)]('App\x20\x22'+_0x283139+_0x476d0e(0x6f),_0x17c59e);}const _0x5b9b71=_0x1fb8b7[_0x476d0e(0x82)]('global');let _0x51e79a;if(_0x5b9b71)_0x51e79a={'global':!![]};else{const {isInProject:_0x5a9789}=await import('../../context.js'),_0x123e39=_0x5a9789();_0x51e79a=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x476d0e(0xa5),'inProject':_0x123e39}));}const _0x1ade87=readConfig(_0x51e79a);return _0x1ade87[_0x476d0e(0x91)]=_0x283139,writeConfig(_0x1ade87,_0x51e79a),{'ok':!![],'message':_0x476d0e(0x9d)+_0x283139+'\x22'+scopeLabel(_0x51e79a)+'.'};}},importDef={'service':a2_0x2b2c07(0x7a),'command':a2_0x2b2c07(0x98),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a2_0x2b2c07(0x75),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x22f41b){return await runInitImport(collectFlags(_0x22f41b,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,useDef,importDef];
@@ -0,0 +1 @@
1
+ (function(_0x4d26bb,_0x49c2ab){const _0x534eed=a3_0x244d,_0x4c0e0c=_0x4d26bb();while(!![]){try{const _0x1ec6b8=-parseInt(_0x534eed(0x134))/0x1+-parseInt(_0x534eed(0x132))/0x2*(parseInt(_0x534eed(0x13a))/0x3)+-parseInt(_0x534eed(0x13c))/0x4*(-parseInt(_0x534eed(0x13f))/0x5)+-parseInt(_0x534eed(0x137))/0x6+parseInt(_0x534eed(0x140))/0x7*(parseInt(_0x534eed(0x138))/0x8)+-parseInt(_0x534eed(0x13b))/0x9+parseInt(_0x534eed(0x139))/0xa;if(_0x1ec6b8===_0x49c2ab)break;else _0x4c0e0c['push'](_0x4c0e0c['shift']());}catch(_0x3f123a){_0x4c0e0c['push'](_0x4c0e0c['shift']());}}}(a3_0x4e79,0x836d5));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a3_0x244d(_0xf292d0,_0x56ef86){_0xf292d0=_0xf292d0-0x132;const _0x4e7960=a3_0x4e79();let _0x244df6=_0x4e7960[_0xf292d0];return _0x244df6;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1c4eb5=a3_0x244d,_0xdb0418=join(__dirname,'../../../mock/app-list.json'),_0x56337c=readFileSync(_0xdb0418,_0x1c4eb5(0x133));return JSON[_0x1c4eb5(0x141)](_0x56337c);}function a3_0x4e79(){const _0x1060e4=['parse','8abfjIG','utf-8','671584bieqAs','data','tableData','2800602xVPPbm','8vmtUUK','29218570IaxwWk','365163QwNxiv','8690175AptQAG','49708rTmhlz','errorCode','errorMsg','65cYEgGI','320089BPTnhl'];a3_0x4e79=function(){return _0x1060e4;};return a3_0x4e79();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x314147=a3_0x244d,_0x891d3=getMockAppList();if(!_0x891d3['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x891d3[_0x314147(0x13e)]+'\x20('+_0x891d3[_0x314147(0x13d)]+')');return _0x891d3[_0x314147(0x135)][_0x314147(0x136)];}
@@ -0,0 +1 @@
1
+ (function(_0x2db13b,_0x429d53){const _0x33a893=a4_0xb8c4,_0x3d3f49=_0x2db13b();while(!![]){try{const _0x45be4d=parseInt(_0x33a893(0x1dd))/0x1+-parseInt(_0x33a893(0x1e7))/0x2*(parseInt(_0x33a893(0x1ec))/0x3)+parseInt(_0x33a893(0x1df))/0x4*(parseInt(_0x33a893(0x1db))/0x5)+-parseInt(_0x33a893(0x1de))/0x6*(-parseInt(_0x33a893(0x1ee))/0x7)+-parseInt(_0x33a893(0x1e3))/0x8*(-parseInt(_0x33a893(0x1e9))/0x9)+parseInt(_0x33a893(0x1e8))/0xa*(-parseInt(_0x33a893(0x1e0))/0xb)+-parseInt(_0x33a893(0x1ea))/0xc*(-parseInt(_0x33a893(0x1e2))/0xd);if(_0x45be4d===_0x429d53)break;else _0x3d3f49['push'](_0x3d3f49['shift']());}catch(_0x30c5d0){_0x3d3f49['push'](_0x3d3f49['shift']());}}}(a4_0x3ba7,0xb9871));import{getMyApps}from'../../core/api-client.js';function a4_0x3ba7(){const _0x4985c1=['13iHOXWh','24VtEZPH','items','cache','remote','4jhkDni','31090YLHYiR','2003616XwcWfk','1874004zBpSCY','mock','2014941LiAukO','toLowerCase','5689418vxQVsD','485ipqAdU','fetchedAt','12878LsdZWB','6DcJIzc','22420IKNyiw','319KlcgcS','trim'];a4_0x3ba7=function(){return _0x4985c1;};return a4_0x3ba7();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';export function shouldUseMockRemoteApps(){const _0x4b64f6=a4_0xb8c4,_0x334872=(process.env.LOVRABET_APP_LIST_SOURCE||process.env.RABETBASE_APP_LIST_SOURCE||'')[_0x4b64f6(0x1e1)]()[_0x4b64f6(0x1ed)]();return _0x334872===_0x4b64f6(0x1eb);}function a4_0xb8c4(_0x4b791b,_0x1b6525){_0x4b791b=_0x4b791b-0x1db;const _0x3ba730=a4_0x3ba7();let _0xb8c42f=_0x3ba730[_0x4b791b];return _0xb8c42f;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x17354f){const _0xd5abc8=a4_0xb8c4,{env:_0x20c4f1,accessKey:_0x59c7c0,localOnly:localOnly=![],noCache:noCache=![]}=_0x17354f,_0x54f540=readCachedAppList(_0x20c4f1,_0x59c7c0),_0x1d6122=_0x59c7c0?.[_0xd5abc8(0x1e1)]()?getAppCacheFilePath(_0x20c4f1,_0x59c7c0):null;if(localOnly)return{'items':_0x54f540?.[_0xd5abc8(0x1e4)]??[],'source':_0xd5abc8(0x1e5),'fetchedAt':_0x54f540?.[_0xd5abc8(0x1dc)]??null,'cachePath':_0x1d6122};try{const _0x1df674=await getRemoteAppItems(),_0x2f93bd=shouldUseMockRemoteApps()?_0xd5abc8(0x1eb):_0xd5abc8(0x1e6),_0x44d796=new Date()['toISOString'](),_0xcb58e2=_0x59c7c0?.[_0xd5abc8(0x1e1)]()?writeCachedAppList(_0x20c4f1,_0x59c7c0,{'env':_0x20c4f1,'fetchedAt':_0x44d796,'source':_0x2f93bd,'items':_0x1df674}):null;return{'items':_0x1df674,'source':_0x2f93bd,'fetchedAt':_0x44d796,'cachePath':_0xcb58e2};}catch(_0x2ea55a){if(!noCache&&_0x54f540)return{'items':_0x54f540[_0xd5abc8(0x1e4)],'source':_0xd5abc8(0x1e5),'fetchedAt':_0x54f540[_0xd5abc8(0x1dc)],'cachePath':_0x1d6122};throw _0x2ea55a;}}
@@ -1 +1 @@
1
- (function(_0x1da798,_0x344420){const _0x1b040c=a9_0x2a7f,_0x47ef4f=_0x1da798();while(!![]){try{const _0x18e1dd=parseInt(_0x1b040c(0x143))/0x1*(-parseInt(_0x1b040c(0x141))/0x2)+-parseInt(_0x1b040c(0x139))/0x3*(parseInt(_0x1b040c(0x14e))/0x4)+-parseInt(_0x1b040c(0x137))/0x5+-parseInt(_0x1b040c(0x132))/0x6+-parseInt(_0x1b040c(0x134))/0x7*(parseInt(_0x1b040c(0x13a))/0x8)+parseInt(_0x1b040c(0x13c))/0x9+parseInt(_0x1b040c(0x147))/0xa;if(_0x18e1dd===_0x344420)break;else _0x47ef4f['push'](_0x47ef4f['shift']());}catch(_0x2ede8e){_0x47ef4f['push'](_0x47ef4f['shift']());}}}(a9_0xa177,0x7f4f8));function a9_0x2a7f(_0x5d04c5,_0x18218b){_0x5d04c5=_0x5d04c5-0x131;const _0xa177b2=a9_0xa177();let _0x2a7fb5=_0xa177b2[_0x5d04c5];return _0x2a7fb5;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3387bf,_0x282e36){const _0x8c8622=a9_0x2a7f;if(!_0x282e36)return;const _0x228a8d=_0x282e36[_0x8c8622(0x136)]&&typeof _0x282e36['apps']===_0x8c8622(0x144)?_0x282e36[_0x8c8622(0x136)]:{},_0x31f5c7=Object['keys'](_0x228a8d)[_0x8c8622(0x140)]>0x0;for(const _0x2fb03c of _0x3387bf){_0x2fb03c[_0x8c8622(0x13e)]=![];}const _0x5d77f8=_0x282e36[_0x8c8622(0x13d)]!=null?String(_0x282e36[_0x8c8622(0x13d)])[_0x8c8622(0x13b)]():'';if(_0x31f5c7){const _0x1ed2aa=_0x282e36['currentApp']??_0x282e36['defaultApp'];if(_0x1ed2aa)for(const _0x4a4b18 of _0x3387bf){_0x4a4b18['named']===!![]&&_0x4a4b18[_0x8c8622(0x145)]===_0x1ed2aa&&(_0x4a4b18['isCurrent']=!![]);}for(const _0x5dee61 of _0x3387bf){if(_0x5dee61[_0x8c8622(0x14f)]!==![])continue;if(_0x282e36[_0x8c8622(0x14c)])continue;_0x5d77f8&&String(_0x5dee61[_0x8c8622(0x14d)]??'')[_0x8c8622(0x13b)]()===_0x5d77f8&&(_0x5dee61[_0x8c8622(0x13e)]=!![]);}return;}if(!_0x5d77f8)return;for(const _0x5637c7 of _0x3387bf){String(_0x5637c7[_0x8c8622(0x14d)]??'')[_0x8c8622(0x13b)]()===_0x5d77f8&&(_0x5637c7[_0x8c8622(0x13e)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig}from'../../context.js';function a9_0xa177(){const _0x29ab7b=['named','app','5886042aIpfkj','global','1410654FWrnai','pageSize','apps','500605JEMywY','riskLevel','336801MWALtV','8NoVXWB','trim','736533IWSLbc','appCode','isCurrent','\x22\x20to\x20multi-app\x20config\x20(set\x20as\x20default).','length','484834jPNSMj','accessKey','1zjGdsu','object','name','locale','29750970xTHZcK','env','\x20(global)','Migrated\x20existing\x20app\x20\x22','format','defaultApp','appcode','36gfgloK'];a9_0xa177=function(){return _0x29ab7b;};return a9_0xa177();}export function scopeLabel(_0x58677c){const _0x15bae0=a9_0x2a7f;return _0x58677c[_0x15bae0(0x133)]?_0x15bae0(0x149):'';}export function migrateLegacySingleApp(_0x478401,_0xe15f58){const _0x570d3e=a9_0x2a7f,_0x26152b=_0x478401['appcode']||_0x478401['app'];if(!_0x26152b)return undefined;const _0x1b3237=String(_0x26152b);if(_0x1b3237===_0xe15f58)return undefined;const _0x2f9959={'appcode':_0x26152b};if(_0x478401[_0x570d3e(0x148)])_0x2f9959['env']=_0x478401['env'];if(_0x478401['cookie'])_0x2f9959['cookie']=_0x478401['cookie'];if(_0x478401[_0x570d3e(0x142)])_0x2f9959[_0x570d3e(0x142)]=_0x478401[_0x570d3e(0x142)];if(_0x478401['format'])_0x2f9959['format']=_0x478401[_0x570d3e(0x14b)];if(_0x478401[_0x570d3e(0x135)])_0x2f9959[_0x570d3e(0x135)]=_0x478401[_0x570d3e(0x135)];if(_0x478401[_0x570d3e(0x138)])_0x2f9959[_0x570d3e(0x138)]=_0x478401[_0x570d3e(0x138)];if(_0x478401[_0x570d3e(0x146)])_0x2f9959[_0x570d3e(0x146)]=_0x478401['locale'];return _0x478401[_0x570d3e(0x136)][_0x1b3237]=_0x2f9959,_0x478401[_0x570d3e(0x14c)]=_0x1b3237,delete _0x478401['appcode'],delete _0x478401[_0x570d3e(0x131)],_0x570d3e(0x14a)+_0x1b3237+_0x570d3e(0x13f);}
1
+ (function(_0x5a55f4,_0x43ed3e){const _0x586a64=a5_0x54af,_0x43a6a7=_0x5a55f4();while(!![]){try{const _0x313ada=parseInt(_0x586a64(0x1aa))/0x1+-parseInt(_0x586a64(0x1a7))/0x2*(-parseInt(_0x586a64(0x1a8))/0x3)+parseInt(_0x586a64(0x19f))/0x4+parseInt(_0x586a64(0x19a))/0x5*(parseInt(_0x586a64(0x19c))/0x6)+parseInt(_0x586a64(0x1ab))/0x7+-parseInt(_0x586a64(0x1a6))/0x8*(-parseInt(_0x586a64(0x19b))/0x9)+-parseInt(_0x586a64(0x1a1))/0xa;if(_0x313ada===_0x43ed3e)break;else _0x43a6a7['push'](_0x43a6a7['shift']());}catch(_0xafe537){_0x43a6a7['push'](_0x43a6a7['shift']());}}}(a5_0x3500,0x7ce78));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a5_0x54af(_0x47881e,_0x2c6ee2){_0x47881e=_0x47881e-0x19a;const _0x350036=a5_0x3500();let _0x54afcb=_0x350036[_0x47881e];return _0x54afcb;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4721bd,_0x36800a){const _0x4422c0=a5_0x54af;if(!_0x36800a)return;const _0x3d3176=!!(_0x36800a['currentApp']??_0x36800a[_0x4422c0(0x1ad)]);for(const _0x257670 of _0x4721bd){_0x257670[_0x4422c0(0x1a0)]=![];}const _0x297ea4=_0x36800a['appCode']!=null?String(_0x36800a[_0x4422c0(0x1a2)])[_0x4422c0(0x1a3)]():'';if(_0x3d3176){const _0x37c2fd=_0x36800a[_0x4422c0(0x19e)]??_0x36800a[_0x4422c0(0x1ad)];if(_0x37c2fd)for(const _0x3fbb1e of _0x4721bd){_0x3fbb1e[_0x4422c0(0x1a9)]===!![]&&_0x3fbb1e[_0x4422c0(0x1ac)]===_0x37c2fd&&(_0x3fbb1e['isCurrent']=!![]);}return;}if(!_0x297ea4)return;for(const _0x199085 of _0x4721bd){String(_0x199085[_0x4422c0(0x1a5)]??'')[_0x4422c0(0x1a3)]()===_0x297ea4&&(_0x199085[_0x4422c0(0x1a0)]=!![]);}}function a5_0x3500(){const _0xdc68c8=['defaultApp','150epwKbs','419823jGlXAx','51906CHdQmT','project','currentApp','3400840iSefii','isCurrent','19822090zgCMMj','appCode','trim','global','appcode','88vsnEka','2NPoUEq','862566xruRKs','named','37192mtioKn','3823722hDIhXP','name'];a5_0x3500=function(){return _0xdc68c8;};return a5_0x3500();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x3efbd0){const _0x4a63d5=a5_0x54af;return formatScopeLabel(_0x3efbd0['global']?_0x4a63d5(0x1a4):_0x4a63d5(0x19d));}
@@ -1 +1 @@
1
- const a10_0x1d9f71=a10_0x4341;(function(_0xd034d1,_0x14272f){const _0x8e3cc=a10_0x4341,_0x32da81=_0xd034d1();while(!![]){try{const _0x5c03fb=-parseInt(_0x8e3cc(0x1b7))/0x1+parseInt(_0x8e3cc(0x1a7))/0x2+parseInt(_0x8e3cc(0x1ba))/0x3+parseInt(_0x8e3cc(0x1ad))/0x4*(-parseInt(_0x8e3cc(0x1a0))/0x5)+-parseInt(_0x8e3cc(0x1a9))/0x6+-parseInt(_0x8e3cc(0x1a4))/0x7*(-parseInt(_0x8e3cc(0x1b4))/0x8)+parseInt(_0x8e3cc(0x1aa))/0x9*(parseInt(_0x8e3cc(0x1a1))/0xa);if(_0x5c03fb===_0x14272f)break;else _0x32da81['push'](_0x32da81['shift']());}catch(_0x13cee1){_0x32da81['push'](_0x32da81['shift']());}}}(a10_0x4339,0xa8c29));import{jsx as a10_0x3a1e3e}from'react/jsx-runtime';import{unlinkSync,existsSync}from'node:fs';import{render}from'ink';import{cookieFile}from'../../auth/constant.js';import{AuthServer}from'../../auth/auth-server-ui.js';function a10_0x4339(){const _0x3ac9c9=['!\x20Not\x20logged\x20in','1062058LshSla','Auth\x20mode:\x20','join','1161627qKctME','expired\x20or\x20invalid','auth','Clear\x20login\x20session','logout','authMode','write','repeat','215laiQtm','10hlkLHg','valid','length','7caTiUu','AccessKey:\x20','\x20auth\x20login','1613118PwYoFE','login','7759500UIhBVH','22295484Pzpicc','No\x20credentials\x20found.\x20Configure\x20accessKey\x20in\x20.lovrabet.json:','log','84584ykaihZ','push','read','Show\x20current\x20authentication\x20status','status','Or\x20run:\x20','slice','2278264CMcGIz','\x20\x20{\x22appCode\x22:\x22your-app\x22,\x22accessKey\x22:\x22ak_xxx\x22}'];a10_0x4339=function(){return _0x3ac9c9;};return a10_0x4339();}import{getCookie}from'../../auth/get-cookie.js';import{getIsSessionValid}from'../../auth/is-session-valid.js';import{resolveAuthMode}from'../../framework/runner.js';import{readRawConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a10_0x4341(_0x210518,_0x2ce3f3){_0x210518=_0x210518-0x19e;const _0x43391b=a10_0x4339();let _0x4341e9=_0x43391b[_0x210518];return _0x4341e9;}export const authDefinitions=[{'service':a10_0x1d9f71(0x1bc),'command':a10_0x1d9f71(0x1a8),'description':'Login\x20via\x20browser','risk':a10_0x1d9f71(0x1af),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x229b18){return render(a10_0x3a1e3e(AuthServer,{})),{'ok':!![]};}},{'service':'auth','command':a10_0x1d9f71(0x1be),'description':a10_0x1d9f71(0x1bd),'risk':a10_0x1d9f71(0x19e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x25f980){const _0x20776d=a10_0x1d9f71;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x20776d(0x1ac)]('Logged\x20out')):console['log'](_0x20776d(0x1b6)),{'ok':!![]};}},{'service':'auth','command':a10_0x1d9f71(0x1b1),'description':a10_0x1d9f71(0x1b0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(){const _0x14d1b4=a10_0x1d9f71,_0x364954=readRawConfig(),_0x11716e=process.env.LOVRABET_ACCESS_KEY||_0x364954['accessKey']||undefined,_0x1d6ad4=getCookie(),_0x42574f=resolveAuthMode({'rawFlags':{},'appCode':undefined,'cookie':_0x1d6ad4||'','apiDomain':'','isNonInteractive':![],'accessKey':_0x11716e,'authMode':_0x364954[_0x14d1b4(0x1bf)]}),_0x5609e4=[_0x14d1b4(0x1b8)+_0x42574f];if(_0x11716e){const _0x1e80c7=_0x11716e[_0x14d1b4(0x1a3)]>0x8?''+_0x11716e[_0x14d1b4(0x1b3)](0x0,0x8)+'*'[_0x14d1b4(0x19f)](_0x11716e[_0x14d1b4(0x1a3)]-0x8):_0x11716e;_0x5609e4[_0x14d1b4(0x1ae)](_0x14d1b4(0x1a5)+_0x1e80c7);}if(_0x1d6ad4){const _0x32f2c8=await getIsSessionValid();_0x5609e4[_0x14d1b4(0x1ae)]('Cookie:\x20'+(_0x32f2c8?_0x14d1b4(0x1a2):_0x14d1b4(0x1bb)));}return!_0x11716e&&!_0x1d6ad4&&(_0x5609e4[_0x14d1b4(0x1ae)](''),_0x5609e4[_0x14d1b4(0x1ae)](_0x14d1b4(0x1ab)),_0x5609e4[_0x14d1b4(0x1ae)](_0x14d1b4(0x1b5)),_0x5609e4[_0x14d1b4(0x1ae)](_0x14d1b4(0x1b2)+CLI_BIN_NAME+_0x14d1b4(0x1a6))),console[_0x14d1b4(0x1ac)](_0x5609e4[_0x14d1b4(0x1b9)]('\x0a')),{'ok':!![]};}}];
1
+ const a6_0x494e54=a6_0x3c34;function a6_0x3c34(_0x5df519,_0x144f82){_0x5df519=_0x5df519-0x14c;const _0xfd2830=a6_0xfd28();let _0x3c349e=_0xfd2830[_0x5df519];return _0x3c349e;}(function(_0x9e5842,_0xc9d2c7){const _0x2daada=a6_0x3c34,_0x171f10=_0x9e5842();while(!![]){try{const _0x2f3a91=-parseInt(_0x2daada(0x154))/0x1*(-parseInt(_0x2daada(0x170))/0x2)+-parseInt(_0x2daada(0x150))/0x3*(parseInt(_0x2daada(0x157))/0x4)+-parseInt(_0x2daada(0x182))/0x5*(parseInt(_0x2daada(0x155))/0x6)+parseInt(_0x2daada(0x16c))/0x7+-parseInt(_0x2daada(0x16d))/0x8*(parseInt(_0x2daada(0x181))/0x9)+parseInt(_0x2daada(0x179))/0xa+parseInt(_0x2daada(0x159))/0xb*(parseInt(_0x2daada(0x171))/0xc);if(_0x2f3a91===_0xc9d2c7)break;else _0x171f10['push'](_0x171f10['shift']());}catch(_0x5c1346){_0x171f10['push'](_0x171f10['shift']());}}}(a6_0xfd28,0x91e97));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a6_0xfd28(){const _0x29e8a2=['global-default','Show\x20current\x20authentication\x20status','\x20Verify:\x20','trim','AccessKey:\x20','AccessKey\x20cleared\x20from\x20','6263250CCfEut','cancelled','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','auth','push','project','AccessKey\x20saved\x20to\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','1210527KjrXbI','88285ypjmcc','str','Clear\x20from\x20global\x20config\x20(default)','\x20auth\x20status','boolean','env','accessKey','\x20config.\x20Nothing\x20to\x20clear.','\x20(via\x20','\x20config','join','Usage:\x20','Option\x20A:\x20','nonInteractive','logout','production','ClientAk','\x20config.','read','3bwohCG','validation','status','length','333IJfahM','54xuFBUU','Read\x20from\x20global\x20config\x20(default)','3772532BcvtbU','Clear\x20accessKey\x20from\x20config','22qaKlFF','test','global','Then\x20verify\x20with:\x20','LOVRABET_ACCESS_KEY\x20env\x20var','Option\x20B:\x20apps\x20config\x20(.lovrabet.json)','Write\x20to\x20global\x20config\x20(default)','access-key','bool','development','repeat','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','slice','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20\x20export\x20LOVRABET_ACCESS_KEY=ak_xxx','string','login','Missing\x20accessKey.','2125459gsWmnE','56qfNnhV','daily','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','2188UhazVp','8081748FDbbCX','\x20doctor'];a6_0xfd28=function(){return _0x29e8a2;};return a6_0xfd28();}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function resolveAuthScopeFlags(_0x533f70){const _0x47721f=a6_0x3c34;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x533f70['bool'](_0x47721f(0x15b)),'explicitProject':_0x533f70[_0x47721f(0x161)]('project'),'policy':_0x47721f(0x173)}));}export const authDefinitions=[{'service':a6_0x494e54(0x17c),'command':a6_0x494e54(0x16a),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a6_0x494e54(0x169),'description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':a6_0x494e54(0x186),'description':a6_0x494e54(0x15f),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x167),'default':![]}],async 'execute'(_0x3cf6b0){const _0x4f6e59=a6_0x494e54;let _0x3ac53e=(_0x3cf6b0['str'](_0x4f6e59(0x160))||_0x3cf6b0[_0x4f6e59(0x183)]('ak')||'')[_0x4f6e59(0x176)]();const _0x39ce53=(_0x3cf6b0[_0x4f6e59(0x183)](_0x4f6e59(0x187))||'')['trim']();if(!_0x3ac53e&&!_0x3cf6b0[_0x4f6e59(0x18f)])try{_0x3ac53e=await promptAccessKey('');}catch(_0x436a5b){if(isAbortPrompt(_0x436a5b))throw CliErrors[_0x4f6e59(0x17a)]();throw _0x436a5b;}if(!_0x3ac53e)throw CliErrors[_0x4f6e59(0x151)](_0x4f6e59(0x16b),_0x4f6e59(0x18d)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]');if(!ACCESS_KEY_PATTERN[_0x4f6e59(0x15a)](_0x3ac53e))throw CliErrors[_0x4f6e59(0x151)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x3ac53e+'\x22',_0x4f6e59(0x16f));const _0x501c5e=resolveAuthScopeFlags(_0x3cf6b0),_0xb5c8b0=readScopedConfig(_0x501c5e);_0xb5c8b0[_0x4f6e59(0x188)]=_0x3ac53e;if(_0x39ce53){const _0x415568=normalizeEnv(_0x39ce53);_0xb5c8b0[_0x4f6e59(0x187)]=isDaily(_0x415568)?_0x4f6e59(0x16e):isDev(_0x415568)?_0x4f6e59(0x162):_0x4f6e59(0x14c);}writeScopedConfig(_0xb5c8b0,_0x501c5e);const _0x1e5941=_0x501c5e[_0x4f6e59(0x15b)]?'global':_0x4f6e59(0x17e),_0x2c3e9a=_0xb5c8b0[_0x4f6e59(0x187)]?'\x20Current\x20env:\x20'+_0xb5c8b0['env']+'.':'';return{'ok':!![],'message':_0x4f6e59(0x17f)+_0x1e5941+_0x4f6e59(0x14e)+_0x2c3e9a+_0x4f6e59(0x175)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a6_0x494e54(0x17c),'command':a6_0x494e54(0x190),'description':a6_0x494e54(0x158),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x494e54(0x15b),'type':'boolean','description':a6_0x494e54(0x184),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5e46f5){const _0x4d43c9=a6_0x494e54,_0x1c0fb3=resolveAuthScopeFlags(_0x5e46f5),_0x5dbe74=readScopedConfig(_0x1c0fb3),_0x3c2e1f=!!_0x5dbe74[_0x4d43c9(0x188)];delete _0x5dbe74[_0x4d43c9(0x188)],writeScopedConfig(_0x5dbe74,_0x1c0fb3);const _0x4bb717=_0x1c0fb3[_0x4d43c9(0x15b)]?_0x4d43c9(0x15b):_0x4d43c9(0x17e);if(_0x3c2e1f)return{'ok':!![],'message':_0x4d43c9(0x178)+_0x4bb717+_0x4d43c9(0x14e)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x4bb717+_0x4d43c9(0x189)};}},{'service':'auth','command':a6_0x494e54(0x152),'description':a6_0x494e54(0x174),'risk':a6_0x494e54(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a6_0x494e54(0x15b),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x156),'default':!![]},{'name':a6_0x494e54(0x17e),'type':a6_0x494e54(0x186),'description':a6_0x494e54(0x180),'default':![]}],async 'execute'(_0x4743ca){const _0x29b29b=a6_0x494e54,_0x26e3e0=resolveAuthScopeFlags(_0x4743ca),_0x276b1d=readScopedConfig(_0x26e3e0),_0x2bc59e=process.env.LOVRABET_ACCESS_KEY||undefined,_0x453f34=_0x276b1d['accessKey']||undefined,_0x5048ad=_0x2bc59e||_0x453f34,_0x152867=_0x2bc59e?_0x29b29b(0x15d):_0x453f34?(_0x26e3e0[_0x29b29b(0x15b)]?_0x29b29b(0x15b):_0x29b29b(0x17e))+_0x29b29b(0x18b):null,_0x59dbab=['Auth\x20mode:\x20'+AUTH_MODE[_0x29b29b(0x14d)]];if(_0x5048ad){const _0x5e4982=_0x5048ad[_0x29b29b(0x153)]>0x8?''+_0x5048ad[_0x29b29b(0x166)](0x0,0x8)+'*'[_0x29b29b(0x163)](_0x5048ad[_0x29b29b(0x153)]-0x8):_0x5048ad;_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x177)+_0x5e4982+(_0x152867?_0x29b29b(0x18a)+_0x152867+')':''));}return!_0x5048ad&&(_0x59dbab['push'](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x17b)),_0x59dbab['push'](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x18e)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x15e)),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x165)),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)]('Option\x20C:\x20environment\x20variable'),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x168)),_0x59dbab[_0x29b29b(0x17d)](''),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x15c)+CLI_BIN_NAME+_0x29b29b(0x185)),_0x59dbab[_0x29b29b(0x17d)](_0x29b29b(0x164)+CLI_BIN_NAME+_0x29b29b(0x172))),{'ok':!![],'message':_0x59dbab[_0x29b29b(0x18c)]('\x0a')};}}];
@@ -0,0 +1 @@
1
+ function a7_0x3c04(){const _0x5f358b=['User\x20aborted\x20prompt','race','name','692919pfoveu','stdout','124726ZRpcDy','173752zlEACr','):\x20','2546380ETWDLa','trim','5912784oPdgpZ','close','removeListener','question','180gsWCLh','150OwPZCP','once','2361396xmSefD','27747hadpFX','SIGINT','77qwvGnz','stdin'];a7_0x3c04=function(){return _0x5f358b;};return a7_0x3c04();}(function(_0x200122,_0xf68ee3){const _0x8deb5e=a7_0x482d,_0x3f8761=_0x200122();while(!![]){try{const _0x59dced=-parseInt(_0x8deb5e(0x90))/0x1+parseInt(_0x8deb5e(0x83))/0x2*(-parseInt(_0x8deb5e(0x87))/0x3)+parseInt(_0x8deb5e(0x86))/0x4+parseInt(_0x8deb5e(0x93))/0x5+-parseInt(_0x8deb5e(0x7f))/0x6+-parseInt(_0x8deb5e(0x89))/0x7*(-parseInt(_0x8deb5e(0x91))/0x8)+-parseInt(_0x8deb5e(0x8e))/0x9*(-parseInt(_0x8deb5e(0x84))/0xa);if(_0x59dced===_0xf68ee3)break;else _0x3f8761['push'](_0x3f8761['shift']());}catch(_0x491f40){_0x3f8761['push'](_0x3f8761['shift']());}}}(a7_0x3c04,0x8678f));import{createInterface}from'node:readline';function a7_0x482d(_0xb4d3df,_0x2ccd7b){_0xb4d3df=_0xb4d3df-0x7e;const _0x3c0464=a7_0x3c04();let _0x482d00=_0x3c0464[_0xb4d3df];return _0x482d00;}class AbortPrompt extends Error{constructor(){const _0x29e67a=a7_0x482d;super(_0x29e67a(0x8b)),this[_0x29e67a(0x8d)]='AbortPrompt';}}function createSafeRl(){const _0x66bd0b=a7_0x482d,_0x5e1069=createInterface({'input':process[_0x66bd0b(0x8a)],'output':process[_0x66bd0b(0x8f)]});let _0x3df3d5;const _0x1e2875=new Promise((_0x222bd7,_0x12ca92)=>{const _0xe692c2=_0x66bd0b;_0x3df3d5=()=>{const _0x4d492f=a7_0x482d;_0x3df3d5&&(_0x5e1069[_0x4d492f(0x81)]('SIGINT',_0x3df3d5),_0x3df3d5=undefined);try{_0x5e1069[_0x4d492f(0x80)]();}catch{}_0x12ca92(new AbortPrompt());},_0x5e1069[_0xe692c2(0x85)](_0xe692c2(0x88),_0x3df3d5);}),_0x2f28d0=()=>{const _0x5833e2=_0x66bd0b;_0x3df3d5&&(_0x5e1069[_0x5833e2(0x81)](_0x5833e2(0x88),_0x3df3d5),_0x3df3d5=undefined);try{_0x5e1069[_0x5833e2(0x80)]();}catch{}};return{'rl':_0x5e1069,'abortPromise':_0x1e2875,'disposeSuccess':_0x2f28d0};}export async function promptAccessKey(_0x38a8d1=''){const _0x218ce2=a7_0x482d,{rl:_0x556fbb,abortPromise:_0x5d53ae,disposeSuccess:_0x30ad02}=createSafeRl(),_0x177e38=new Promise(_0x230f6c=>{const _0x57f695=a7_0x482d,_0xa60577=_0x38a8d1?'\x20\x20AccessKey\x20('+_0x38a8d1+_0x57f695(0x92):'\x20\x20AccessKey:\x20';_0x556fbb[_0x57f695(0x82)](_0xa60577,_0x44d417=>{const _0x1209ab=_0x57f695;_0x30ad02(),_0x230f6c(_0x44d417[_0x1209ab(0x7e)]()||_0x38a8d1);});});return Promise[_0x218ce2(0x8c)]([_0x177e38,_0x5d53ae]);}export function isAbortPrompt(_0x6bd77a){const _0x5719ec=a7_0x482d;return _0x6bd77a instanceof Error&&_0x6bd77a[_0x5719ec(0x8d)]==='AbortPrompt';}
@@ -1 +1 @@
1
- function a11_0x22c5(){const _0x297d72=['966JKXdrf','3635860hneCAf','updatedTime','5034hpttRx','bff','984564MgsJYa','Get\x20BFF\x20script\x20details\x20by\x20ID','6xpGJpj','32474uBfEBi','879895rPhCTP','bool','detail','111344KewSMe','functionName','createdTime','appCode','12gdFzgP','(none)','description','1559536eQAcys','scriptType'];a11_0x22c5=function(){return _0x297d72;};return a11_0x22c5();}const a11_0x4fb99c=a11_0x5052;(function(_0x2cb7b8,_0x34df78){const _0x5a7308=a11_0x5052,_0x40cf38=_0x2cb7b8();while(!![]){try{const _0x1140a2=parseInt(_0x5a7308(0x108))/0x1*(-parseInt(_0x5a7308(0x107))/0x2)+parseInt(_0x5a7308(0xfb))/0x3*(-parseInt(_0x5a7308(0x10c))/0x4)+-parseInt(_0x5a7308(0x109))/0x5+parseInt(_0x5a7308(0x103))/0x6*(-parseInt(_0x5a7308(0x100))/0x7)+parseInt(_0x5a7308(0xfe))/0x8+parseInt(_0x5a7308(0x105))/0x9+parseInt(_0x5a7308(0x101))/0xa;if(_0x1140a2===_0x34df78)break;else _0x40cf38['push'](_0x40cf38['shift']());}catch(_0x1c288c){_0x40cf38['push'](_0x40cf38['shift']());}}}(a11_0x22c5,0x28de5));function a11_0x5052(_0x41e47e,_0x1385c6){_0x41e47e=_0x41e47e-0xf8;const _0x22c54a=a11_0x22c5();let _0x505295=_0x22c54a[_0x41e47e];return _0x505295;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x4fb99c(0x104),'command':a11_0x4fb99c(0x10b),'description':a11_0x4fb99c(0x106),'risk':'read','flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x2562cc){const _0x4f9e0e=a11_0x4fb99c,_0x1ceb17=await getBffScriptInfo(_0x2562cc['num']('id')),_0xc82a2=_0x2562cc[_0x4f9e0e(0x10a)]('verbose');if(_0xc82a2)return{'ok':!![],'data':_0x1ceb17};return{'ok':!![],'data':{'id':_0x1ceb17['id'],'appCode':_0x1ceb17[_0x4f9e0e(0xfa)],'functionName':_0x1ceb17[_0x4f9e0e(0xf8)]??'','scriptType':_0x1ceb17[_0x4f9e0e(0xff)],'description':_0x1ceb17[_0x4f9e0e(0xfd)]||_0x4f9e0e(0xfc),'createdTime':_0x1ceb17[_0x4f9e0e(0xf9)]??'','updatedTime':_0x1ceb17[_0x4f9e0e(0x102)]??''}};}};
1
+ const a8_0x38249d=a8_0x23d3;function a8_0x401d(){const _0x493102=['39528660xnNeyd','appCode','scriptType','description','311512JPBQNH','4028706rbNvEk','24333WNRTzR','4593800ecjMOE','read','createdTime','functionName','7332030ZKVOVn','bool','(none)','2xwFcwB','273lpSrKm','344QlAudZ','8984gYuetB','Script\x20ID','num'];a8_0x401d=function(){return _0x493102;};return a8_0x401d();}(function(_0x10398f,_0x56d067){const _0x138066=a8_0x23d3,_0x4f10b2=_0x10398f();while(!![]){try{const _0x4ae34e=-parseInt(_0x138066(0x90))/0x1*(parseInt(_0x138066(0x86))/0x2)+-parseInt(_0x138066(0x88))/0x3*(parseInt(_0x138066(0x92))/0x4)+-parseInt(_0x138066(0x89))/0x5+-parseInt(_0x138066(0x87))/0x6+-parseInt(_0x138066(0x91))/0x7*(parseInt(_0x138066(0x93))/0x8)+-parseInt(_0x138066(0x8d))/0x9+parseInt(_0x138066(0x96))/0xa;if(_0x4ae34e===_0x56d067)break;else _0x4f10b2['push'](_0x4f10b2['shift']());}catch(_0x383457){_0x4f10b2['push'](_0x4f10b2['shift']());}}}(a8_0x401d,0x78e1a));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a8_0x23d3(_0x719b56,_0x3149f8){_0x719b56=_0x719b56-0x83;const _0x401dba=a8_0x401d();let _0x23d3ab=_0x401dba[_0x719b56];return _0x23d3ab;}export const bffDetail={'service':'bff','command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a8_0x38249d(0x8a),'flags':[{...ID_FLAG,'description':a8_0x38249d(0x94)},VERBOSE_FLAG],async 'execute'(_0x563c6a){const _0x337597=a8_0x38249d,_0x5dfdcb=await getBffScriptInfo(_0x563c6a[_0x337597(0x95)]('id')),_0x16c317=_0x563c6a[_0x337597(0x8e)]('verbose');if(_0x16c317)return{'ok':!![],'data':_0x5dfdcb};return{'ok':!![],'data':{'id':_0x5dfdcb['id'],'appCode':_0x5dfdcb[_0x337597(0x83)],'functionName':_0x5dfdcb[_0x337597(0x8c)]??'','scriptType':_0x5dfdcb[_0x337597(0x84)],'description':_0x5dfdcb[_0x337597(0x85)]||_0x337597(0x8f),'createdTime':_0x5dfdcb[_0x337597(0x8b)]??'','updatedTime':_0x5dfdcb['updatedTime']??''}};}};
@@ -1 +1 @@
1
- function a12_0x1a64(_0x2afb48,_0x44b587){_0x2afb48=_0x2afb48-0x12a;const _0x367b32=a12_0x367b();let _0x1a643b=_0x367b32[_0x2afb48];return _0x1a643b;}const a12_0x47bf87=a12_0x1a64;(function(_0xb862ae,_0x121f4e){const _0x51de6a=a12_0x1a64,_0x30ecc5=_0xb862ae();while(!![]){try{const _0xaf226e=parseInt(_0x51de6a(0x138))/0x1+-parseInt(_0x51de6a(0x12b))/0x2+parseInt(_0x51de6a(0x135))/0x3+-parseInt(_0x51de6a(0x133))/0x4+-parseInt(_0x51de6a(0x12c))/0x5*(-parseInt(_0x51de6a(0x12f))/0x6)+-parseInt(_0x51de6a(0x130))/0x7+parseInt(_0x51de6a(0x134))/0x8*(parseInt(_0x51de6a(0x132))/0x9);if(_0xaf226e===_0x121f4e)break;else _0x30ecc5['push'](_0x30ecc5['shift']());}catch(_0x125dc0){_0x30ecc5['push'](_0x30ecc5['shift']());}}}(a12_0x367b,0x8c6e5));import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x367b(){const _0x59f188=['read','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','271852HWzfHd','now','BFF\x20function\x20name\x20to\x20execute','1936398gYagvI','5AtZAxc','exec','str','3386766QcOzxD','3160129zxTaBt','BFF\x20executed\x20in\x20','9003429CzVMhZ','231272kYBpNa','8bUvtAB','647925GtmzAY'];a12_0x367b=function(){return _0x59f188;};return a12_0x367b();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a12_0x47bf87(0x12d),'description':a12_0x47bf87(0x137),'risk':a12_0x47bf87(0x136),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x47bf87(0x12a)},PARAMS_FLAG],async 'execute'(_0x231fd3){const _0x3c08c6=a12_0x47bf87,_0x1be70c=parseJsonParams(_0x231fd3['str']('params')),_0x5c3a03=Date[_0x3c08c6(0x139)](),_0x2eb420=await executeSdkBff(_0x231fd3[_0x3c08c6(0x12e)]('name'),_0x1be70c),_0x4da304=Date['now']()-_0x5c3a03;return{'ok':!![],'data':{'result':_0x2eb420,'elapsed':_0x4da304},'message':_0x3c08c6(0x131)+_0x4da304+'ms'};}};
1
+ const a9_0x560a11=a9_0x1a58;function a9_0x442d(){const _0x319f66=['2443zKWNPg','name','15006cpCwfJ','read','params','now','bff','890juZkeL','3490xZtjtR','BFF\x20executed\x20in\x20','str','1384629PglNuh','48258LJSaMZ','2760988yTRAIB','23UrfXge','1450730Xdpspi','161120WmeFsT'];a9_0x442d=function(){return _0x319f66;};return a9_0x442d();}(function(_0x591e70,_0x486dcb){const _0x230f48=a9_0x1a58,_0x44e29e=_0x591e70();while(!![]){try{const _0x1e4213=-parseInt(_0x230f48(0x132))/0x1*(-parseInt(_0x230f48(0x12c))/0x2)+parseInt(_0x230f48(0x12f))/0x3+-parseInt(_0x230f48(0x131))/0x4+parseInt(_0x230f48(0x133))/0x5+parseInt(_0x230f48(0x137))/0x6*(parseInt(_0x230f48(0x135))/0x7)+parseInt(_0x230f48(0x134))/0x8+-parseInt(_0x230f48(0x130))/0x9*(parseInt(_0x230f48(0x12b))/0xa);if(_0x1e4213===_0x486dcb)break;else _0x44e29e['push'](_0x44e29e['shift']());}catch(_0x1c864c){_0x44e29e['push'](_0x44e29e['shift']());}}}(a9_0x442d,0x7e4e4));function a9_0x1a58(_0xe11e95,_0x1b5fe7){_0xe11e95=_0xe11e95-0x12a;const _0x442d99=a9_0x442d();let _0x1a582a=_0x442d99[_0xe11e95];return _0x1a582a;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a9_0x560a11(0x12a),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a9_0x560a11(0x138),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x443295){const _0x54de4a=a9_0x560a11,_0x963333=parseJsonParams(_0x443295[_0x54de4a(0x12e)](_0x54de4a(0x139))),_0x2d9b7d=Date[_0x54de4a(0x13a)](),_0x53b11f=await executeSdkBff(_0x443295[_0x54de4a(0x12e)](_0x54de4a(0x136)),_0x963333),_0x799d62=Date[_0x54de4a(0x13a)]()-_0x2d9b7d;return{'ok':!![],'data':{'result':_0x53b11f,'elapsed':_0x799d62},'message':_0x54de4a(0x12d)+_0x799d62+'ms'};}};
@@ -1 +1 @@
1
- function a13_0x3822(_0x32c53b,_0x132143){_0x32c53b=_0x32c53b-0x12d;const _0x1df84f=a13_0x1df8();let _0x3822b3=_0x1df84f[_0x32c53b];return _0x3822b3;}(function(_0x5879f2,_0x3914e2){const _0x220943=a13_0x3822,_0xbda866=_0x5879f2();while(!![]){try{const _0x483e7b=parseInt(_0x220943(0x131))/0x1*(-parseInt(_0x220943(0x130))/0x2)+-parseInt(_0x220943(0x12f))/0x3*(parseInt(_0x220943(0x139))/0x4)+-parseInt(_0x220943(0x137))/0x5*(-parseInt(_0x220943(0x136))/0x6)+-parseInt(_0x220943(0x12d))/0x7*(-parseInt(_0x220943(0x134))/0x8)+parseInt(_0x220943(0x135))/0x9*(-parseInt(_0x220943(0x12e))/0xa)+-parseInt(_0x220943(0x138))/0xb*(-parseInt(_0x220943(0x132))/0xc)+parseInt(_0x220943(0x133))/0xd;if(_0x483e7b===_0x3914e2)break;else _0xbda866['push'](_0xbda866['shift']());}catch(_0x2d4425){_0xbda866['push'](_0xbda866['shift']());}}}(a13_0x1df8,0x3e2c1));function a13_0x1df8(){const _0x4eb228=['3hmqwVj','2KPlhom','472943tjyAJe','399864kiOPpa','394641oJDwJC','232SZAuVM','9801ITWHrz','102AxyLqn','85435mIYvXh','121VdZGhK','418372NNfeij','54670xexdWy','750KXHplE'];a13_0x1df8=function(){return _0x4eb228;};return a13_0x1df8();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a10_0x36b4(_0x4b17c5,_0x4d67a4){_0x4b17c5=_0x4b17c5-0xf4;const _0x5cc03f=a10_0x5cc0();let _0x36b4b4=_0x5cc03f[_0x4b17c5];return _0x36b4b4;}(function(_0x1ebaed,_0x502b03){const _0x2b2e80=a10_0x36b4,_0x263792=_0x1ebaed();while(!![]){try{const _0x4d37a5=-parseInt(_0x2b2e80(0xf8))/0x1+-parseInt(_0x2b2e80(0xf9))/0x2*(-parseInt(_0x2b2e80(0xff))/0x3)+-parseInt(_0x2b2e80(0xf6))/0x4*(-parseInt(_0x2b2e80(0xfb))/0x5)+-parseInt(_0x2b2e80(0xfd))/0x6*(-parseInt(_0x2b2e80(0xf5))/0x7)+-parseInt(_0x2b2e80(0xfe))/0x8*(-parseInt(_0x2b2e80(0xfc))/0x9)+-parseInt(_0x2b2e80(0xf4))/0xa+-parseInt(_0x2b2e80(0xfa))/0xb*(-parseInt(_0x2b2e80(0xf7))/0xc);if(_0x4d37a5===_0x502b03)break;else _0x263792['push'](_0x263792['shift']());}catch(_0x58358f){_0x263792['push'](_0x263792['shift']());}}}(a10_0x5cc0,0x31e42));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a10_0x5cc0(){const _0x1dca30=['45208zYfBEF','21wDkZpW','3608940qNwCUg','56eEEIRE','2092iklKyj','235884tArFYU','270687bYIjTG','37218Jjrabh','11dCobJv','2685sQxZql','612DOwDrN','15672HokzZQ'];a10_0x5cc0=function(){return _0x1dca30;};return a10_0x5cc0();}
@@ -0,0 +1 @@
1
+ (function(_0x2e5dbc,_0x1c981c){const _0x3fb282=a11_0x1b92,_0x43a5ca=_0x2e5dbc();while(!![]){try{const _0x3042de=-parseInt(_0x3fb282(0xfa))/0x1*(parseInt(_0x3fb282(0xfb))/0x2)+parseInt(_0x3fb282(0xff))/0x3*(parseInt(_0x3fb282(0x10c))/0x4)+-parseInt(_0x3fb282(0x10e))/0x5*(-parseInt(_0x3fb282(0x100))/0x6)+-parseInt(_0x3fb282(0x10b))/0x7*(-parseInt(_0x3fb282(0x10d))/0x8)+parseInt(_0x3fb282(0x104))/0x9+parseInt(_0x3fb282(0x105))/0xa+-parseInt(_0x3fb282(0x10a))/0xb;if(_0x3042de===_0x1c981c)break;else _0x43a5ca['push'](_0x43a5ca['shift']());}catch(_0x9693bd){_0x43a5ca['push'](_0x43a5ca['shift']());}}}(a11_0x5b8d,0x42b3f));import{CLI_BIN_NAME}from'../../constant/cli.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a11_0x1b92(_0x28ae68,_0x19a741){_0x28ae68=_0x28ae68-0xf8;const _0x5b8dd5=a11_0x5b8d();let _0x1b9285=_0x5b8dd5[_0x28ae68];return _0x1b9285;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a11_0x5b8d(){const _0x308418=['\x20init`\x20first.','Use\x20only\x20one\x20config\x20scope\x20flag.','1895796dnSIyi','5201640TbLIoR','project','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global','10158027cShVgh','7wUmRTw','477912RTOxKa','454544LezhQm','23350GPphCv','project-default','inProject','694ZonLSL','508WQpjwx','validation','\x20(global)','project-or-global-explicit','12cjSwBA','138ztebtk','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`'];a11_0x5b8d=function(){return _0x308418;};return a11_0x5b8d();}export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x219bce){const _0x12ce44=a11_0x1b92,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x6adf1a}=_0x219bce;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x12ce44(0x108),_0x12ce44(0x103));if(explicitGlobal)return _0x12ce44(0x109);if(explicitProject)return _0x12ce44(0x106);switch(_0x6adf1a){case'global-default':return'global';case _0x12ce44(0xf8):return _0x219bce[_0x12ce44(0xf9)]??isInProject()?_0x12ce44(0x106):_0x12ce44(0x109);case _0x12ce44(0xfe):if(!(_0x219bce[_0x12ce44(0xf9)]??isInProject()))throw CliErrors[_0x12ce44(0xfc)](_0x12ce44(0x107),_0x12ce44(0x101)+CLI_BIN_NAME+_0x12ce44(0x102));return _0x12ce44(0x106);}}export function toScopeFlags(_0x36cda8){return{'global':_0x36cda8==='global'};}export function formatScopeLabel(_0x83f6d6){const _0x1ae87d=a11_0x1b92;return _0x83f6d6===_0x1ae87d(0x109)?_0x1ae87d(0xfd):'';}
@@ -1 +1 @@
1
- (function(_0xd6ed96,_0x2d25b0){const _0x3ac88d=a14_0xe651,_0x16714d=_0xd6ed96();while(!![]){try{const _0x4c0c53=-parseInt(_0x3ac88d(0x162))/0x1+parseInt(_0x3ac88d(0x171))/0x2+-parseInt(_0x3ac88d(0x15d))/0x3+-parseInt(_0x3ac88d(0x169))/0x4+parseInt(_0x3ac88d(0x15a))/0x5*(parseInt(_0x3ac88d(0x15e))/0x6)+-parseInt(_0x3ac88d(0x161))/0x7+parseInt(_0x3ac88d(0x165))/0x8;if(_0x4c0c53===_0x2d25b0)break;else _0x16714d['push'](_0x16714d['shift']());}catch(_0x27cc02){_0x16714d['push'](_0x16714d['shift']());}}}(a14_0x1f1d,0x382ad));import{CliErrors}from'../../errors.js';function isSet(_0x5754be,_0x36eb63){const _0x52e487=a14_0xe651,_0x168827=_0x5754be[_0x52e487(0x167)](_0x36eb63);return _0x168827!==undefined&&_0x168827!==''&&_0x168827!==![]&&_0x168827!==0x0;}function fmtNames(_0x4c78e6){const _0x5a481f=a14_0xe651;return _0x4c78e6[_0x5a481f(0x160)](_0xc6d999=>'--'+_0xc6d999)[_0x5a481f(0x164)](',\x20');}export function requireOneOf(_0x51800b,_0x1a71d3,_0x40b62f){const _0x3bc60f=a14_0xe651,_0x52fbb0=_0x1a71d3[_0x3bc60f(0x16a)](_0x103113=>isSet(_0x51800b,_0x103113));if(_0x52fbb0[_0x3bc60f(0x16d)]!==0x1)throw CliErrors[_0x3bc60f(0x168)](_0x52fbb0[_0x3bc60f(0x16d)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x1a71d3)+_0x3bc60f(0x16c)+_0x40b62f+'`.':_0x3bc60f(0x163)+fmtNames(_0x1a71d3)+_0x3bc60f(0x15f)+fmtNames(_0x52fbb0)+'.',_0x52fbb0[_0x3bc60f(0x16d)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x1a71d3):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x142e14,_0x394cfe,_0x5382b3){const _0x206726=a14_0xe651;if(!_0x394cfe[_0x206726(0x15b)](_0x3c1e66=>isSet(_0x142e14,_0x3c1e66)))throw CliErrors[_0x206726(0x168)](_0x206726(0x16f)+fmtNames(_0x394cfe)+'\x20is\x20required\x20for\x20`'+_0x5382b3+'`.',_0x206726(0x16e)+fmtNames(_0x394cfe));}export function mutuallyExclusive(_0x33efa1,_0x4e69cc,_0x45751e){const _0x4dbad1=a14_0xe651,_0x4e21fa=_0x4e69cc[_0x4dbad1(0x16a)](_0x3f3266=>isSet(_0x33efa1,_0x3f3266));if(_0x4e21fa[_0x4dbad1(0x16d)]>0x1)throw CliErrors[_0x4dbad1(0x168)]('Flags\x20'+fmtNames(_0x4e21fa)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x45751e+'`.',_0x4dbad1(0x159)+fmtNames(_0x4e69cc));}export function validatePattern(_0x292f59,_0x2304b8,_0x3349ba,_0x2ba17a){const _0x44ebae=a14_0xe651,_0x2a5192=_0x292f59['str'](_0x2304b8);if(_0x2a5192&&!_0x3349ba[_0x44ebae(0x166)](_0x2a5192))throw CliErrors[_0x44ebae(0x168)](_0x44ebae(0x15c)+_0x2304b8+_0x44ebae(0x16b)+_0x2ba17a+_0x44ebae(0x170)+_0x2a5192+'\x22.');}function a14_0xe651(_0x38379a,_0x3c08a9){_0x38379a=_0x38379a-0x159;const _0x1f1d29=a14_0x1f1d();let _0xe65138=_0x1f1d29[_0x38379a];return _0xe65138;}function a14_0x1f1d(){const _0x58715e=['filter',':\x20expected\x20','\x20is\x20required\x20for\x20`','length','Provide\x20one\x20of:\x20','At\x20least\x20one\x20of\x20',',\x20got\x20\x22','751022MKUnNg','Use\x20only\x20one\x20of:\x20','5WnZQhI','some','Invalid\x20--','827895IMZnlb','1104396aRoNQR','\x20is\x20allowed,\x20found:\x20','map','691999CPpZgQ','346108sYTaVZ','Only\x20one\x20of\x20','join','4806368oWOzCZ','test','flag','validation','837528GZwroL'];a14_0x1f1d=function(){return _0x58715e;};return a14_0x1f1d();}
1
+ (function(_0x4974c6,_0x409797){const _0xbd5a16=a12_0x4853,_0x29aab7=_0x4974c6();while(!![]){try{const _0x307b9b=parseInt(_0xbd5a16(0x1ce))/0x1*(parseInt(_0xbd5a16(0x1d6))/0x2)+parseInt(_0xbd5a16(0x1dd))/0x3*(parseInt(_0xbd5a16(0x1e5))/0x4)+-parseInt(_0xbd5a16(0x1db))/0x5+-parseInt(_0xbd5a16(0x1da))/0x6+-parseInt(_0xbd5a16(0x1e6))/0x7*(parseInt(_0xbd5a16(0x1d3))/0x8)+parseInt(_0xbd5a16(0x1cf))/0x9+-parseInt(_0xbd5a16(0x1dc))/0xa*(-parseInt(_0xbd5a16(0x1d0))/0xb);if(_0x307b9b===_0x409797)break;else _0x29aab7['push'](_0x29aab7['shift']());}catch(_0x5a46c1){_0x29aab7['push'](_0x29aab7['shift']());}}}(a12_0x5b78,0x4b2d1));function a12_0x5b78(){const _0x212406=['some','Provide\x20one\x20of:\x20','flag','str','Only\x20one\x20of\x20',':\x20expected\x20','validation','20yJqLHH','643237qxLAtb','At\x20least\x20one\x20of\x20','filter','\x20is\x20required\x20for\x20`','map','1TDqFvQ','81720efqjmT','77HsIhTw','\x20is\x20allowed,\x20found:\x20','test','32sThdcA','Invalid\x20--','\x20are\x20mutually\x20exclusive\x20for\x20`','735242NNQqsP','length',',\x20got\x20\x22','Exactly\x20one\x20of\x20','1216404evZsUf','340275vOfPkU','346840qscGhX','196071pwShcL'];a12_0x5b78=function(){return _0x212406;};return a12_0x5b78();}import{CliErrors}from'../../errors.js';function isSet(_0x5d7d5a,_0x16b79d){const _0x2da6db=a12_0x4853,_0x2d7b2c=_0x5d7d5a[_0x2da6db(0x1e0)](_0x16b79d);return _0x2d7b2c!==undefined&&_0x2d7b2c!==''&&_0x2d7b2c!==![]&&_0x2d7b2c!==0x0;}function a12_0x4853(_0x383da1,_0x482309){_0x383da1=_0x383da1-0x1cc;const _0x5b783c=a12_0x5b78();let _0x4853ea=_0x5b783c[_0x383da1];return _0x4853ea;}function fmtNames(_0x365e69){const _0x30f113=a12_0x4853;return _0x365e69[_0x30f113(0x1cd)](_0x27083a=>'--'+_0x27083a)['join'](',\x20');}export function requireOneOf(_0x2343a3,_0x4a6c99,_0x1a3eaa){const _0xae5af7=a12_0x4853,_0xb31e67=_0x4a6c99[_0xae5af7(0x1e8)](_0x5dc4ca=>isSet(_0x2343a3,_0x5dc4ca));if(_0xb31e67[_0xae5af7(0x1d7)]!==0x1)throw CliErrors[_0xae5af7(0x1e4)](_0xb31e67[_0xae5af7(0x1d7)]===0x0?_0xae5af7(0x1d9)+fmtNames(_0x4a6c99)+_0xae5af7(0x1cc)+_0x1a3eaa+'`.':_0xae5af7(0x1e2)+fmtNames(_0x4a6c99)+_0xae5af7(0x1d1)+fmtNames(_0xb31e67)+'.',_0xb31e67['length']===0x0?_0xae5af7(0x1df)+fmtNames(_0x4a6c99):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x1b169f,_0x4fdddc,_0x3e0888){const _0x3af4b1=a12_0x4853;if(!_0x4fdddc[_0x3af4b1(0x1de)](_0x4276a4=>isSet(_0x1b169f,_0x4276a4)))throw CliErrors[_0x3af4b1(0x1e4)](_0x3af4b1(0x1e7)+fmtNames(_0x4fdddc)+_0x3af4b1(0x1cc)+_0x3e0888+'`.',_0x3af4b1(0x1df)+fmtNames(_0x4fdddc));}export function mutuallyExclusive(_0x7d8d84,_0x31e0bd,_0x60e6dc){const _0x1da691=a12_0x4853,_0x494c52=_0x31e0bd[_0x1da691(0x1e8)](_0x51ddf5=>isSet(_0x7d8d84,_0x51ddf5));if(_0x494c52[_0x1da691(0x1d7)]>0x1)throw CliErrors[_0x1da691(0x1e4)]('Flags\x20'+fmtNames(_0x494c52)+_0x1da691(0x1d5)+_0x60e6dc+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x31e0bd));}export function validatePattern(_0x565a0d,_0x1c664e,_0x37767b,_0x278ffa){const _0x57d60b=a12_0x4853,_0xeddd7=_0x565a0d[_0x57d60b(0x1e1)](_0x1c664e);if(_0xeddd7&&!_0x37767b[_0x57d60b(0x1d2)](_0xeddd7))throw CliErrors[_0x57d60b(0x1e4)](_0x57d60b(0x1d4)+_0x1c664e+_0x57d60b(0x1e3)+_0x278ffa+_0x57d60b(0x1d8)+_0xeddd7+'\x22.');}
@@ -1 +1 @@
1
- const a15_0x584f9b=a15_0x40f3;(function(_0x253f9a,_0x2b2adc){const _0x556e8a=a15_0x40f3,_0x1289d2=_0x253f9a();while(!![]){try{const _0x41df62=-parseInt(_0x556e8a(0xa7))/0x1*(-parseInt(_0x556e8a(0xad))/0x2)+parseInt(_0x556e8a(0xb1))/0x3+-parseInt(_0x556e8a(0xb0))/0x4+parseInt(_0x556e8a(0xaa))/0x5+-parseInt(_0x556e8a(0xae))/0x6+-parseInt(_0x556e8a(0xb3))/0x7+-parseInt(_0x556e8a(0xab))/0x8*(-parseInt(_0x556e8a(0xb4))/0x9);if(_0x41df62===_0x2b2adc)break;else _0x1289d2['push'](_0x1289d2['shift']());}catch(_0x409f4d){_0x1289d2['push'](_0x1289d2['shift']());}}}(a15_0x314d,0x47827));export const CODE_FLAG={'name':a15_0x584f9b(0xac),'type':a15_0x584f9b(0xb5),'required':!![],'description':a15_0x584f9b(0xaf),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a15_0x584f9b(0xa8),'type':'string','required':!![],'description':a15_0x584f9b(0xa5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a15_0x584f9b(0xa9)}};export const VERBOSE_FLAG={'name':'verbose','type':a15_0x584f9b(0xb7),'description':a15_0x584f9b(0xb8)};function a15_0x314d(){const _0x1f38c6=['string','number','boolean','Return\x20full\x20raw\x20response\x20object','Resource\x20ID','params','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','name','9oMFYzG','sqlcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','765900PvWPBd','52312fDpcVi','code','16672zlPaAn','2476950gOgPZT','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1508080jxCYpD','1568253XoJkMK','Resource\x20name\x20for\x20lookup','3948350VdVRil','1233JHPlwa'];a15_0x314d=function(){return _0x1f38c6;};return a15_0x314d();}export const PARAMS_FLAG={'name':a15_0x584f9b(0xa4),'type':a15_0x584f9b(0xb5),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};function a15_0x40f3(_0xb1358,_0x5a4c77){_0xb1358=_0xb1358-0xa3;const _0x314da7=a15_0x314d();let _0x40f34c=_0x314da7[_0xb1358];return _0x40f34c;}export const NAME_FLAG={'name':a15_0x584f9b(0xa6),'type':'string','description':a15_0x584f9b(0xb2)};export const ID_FLAG={'name':'id','type':a15_0x584f9b(0xb6),'required':!![],'description':a15_0x584f9b(0xa3)};
1
+ function a13_0x4fd8(){const _0x3e55bd=['number','3PsbQpx','693qpugYF','4968007kZrAFh','string','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','3343302TzjTXH','1002Eayqtb','Resource\x20name\x20for\x20lookup','boolean','59810qTltml','sqlcode','Resource\x20ID','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1740152ArFkRB','params','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Return\x20full\x20raw\x20response\x20object','1265168hJleCx','Dataset\x20code\x20(32-char\x20hex\x20UUID)','20QfporT','24771ggreaI','10AxDsle','code'];a13_0x4fd8=function(){return _0x3e55bd;};return a13_0x4fd8();}function a13_0x2ecd(_0x3cc250,_0x1f08e2){_0x3cc250=_0x3cc250-0xc0;const _0x4fd85f=a13_0x4fd8();let _0x2ecde5=_0x4fd85f[_0x3cc250];return _0x2ecde5;}const a13_0x17a922=a13_0x2ecd;(function(_0x2fedac,_0xae13b9){const _0xfc7b15=a13_0x2ecd,_0x3d9c58=_0x2fedac();while(!![]){try{const _0x1c7798=-parseInt(_0xfc7b15(0xcf))/0x1*(-parseInt(_0xfc7b15(0xce))/0x2)+parseInt(_0xfc7b15(0xd3))/0x3*(-parseInt(_0xfc7b15(0xcc))/0x4)+-parseInt(_0xfc7b15(0xc4))/0x5+-parseInt(_0xfc7b15(0xc1))/0x6*(-parseInt(_0xfc7b15(0xd4))/0x7)+parseInt(_0xfc7b15(0xc8))/0x8+parseInt(_0xfc7b15(0xc0))/0x9*(-parseInt(_0xfc7b15(0xd0))/0xa)+parseInt(_0xfc7b15(0xd5))/0xb;if(_0x1c7798===_0xae13b9)break;else _0x3d9c58['push'](_0x3d9c58['shift']());}catch(_0x5193ae){_0x3d9c58['push'](_0x3d9c58['shift']());}}}(a13_0x4fd8,0x390c3));export const CODE_FLAG={'name':a13_0x17a922(0xd1),'type':a13_0x17a922(0xd6),'required':!![],'description':a13_0x17a922(0xcd),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a13_0x17a922(0xd7)}};export const SQLCODE_FLAG={'name':a13_0x17a922(0xc5),'type':a13_0x17a922(0xd6),'required':!![],'description':a13_0x17a922(0xca),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a13_0x17a922(0xc3),'description':a13_0x17a922(0xcb)};export const PARAMS_FLAG={'name':a13_0x17a922(0xc9),'type':a13_0x17a922(0xd6),'description':a13_0x17a922(0xc7)};export const NAME_FLAG={'name':'name','type':a13_0x17a922(0xd6),'description':a13_0x17a922(0xc2)};export const ID_FLAG={'name':'id','type':a13_0x17a922(0xd2),'required':!![],'description':a13_0x17a922(0xc6)};
@@ -1 +1 @@
1
- function a16_0x9172(){const _0x55c0b4=['args','includes','write','Missing\x20key\x20argument.','has','pageSize','Deleted\x20`','Operate\x20within\x20a\x20specific\x20app\x20profile','180027wKjgIL','5450700PxGhzp','App\x20\x22','\x20config\x20delete\x20<key>\x20[--app\x20<name>]\x20[--global]','global','join','bool','\x22\x20on\x20app\x20profile.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20(global)','../../context.js','367245NzQeOo','Key\x20\x22','log','\x20app\x20add`.','config','str','Add\x20it\x20first\x20with\x20`','Set\x20a\x20config\x20value','271gWYeqN','\x22\x20not\x20found\x20at\x20top\x20level.','app','riskLevel','Write\x20to\x20global\x20config','validation','pretty','Cannot\x20set\x20\x22','raw','\x20\x20project:\x20','Top-level\x20key\x20\x22','`\x20=\x20\x22','string','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','200IydUMB','Delete\x20a\x20config\x20value','\x22\x20is\x20not\x20settable.','read','apps','\x22\x20not\x20found\x20in\x20config.','Config\x20key\x20to\x20set','get','List\x20current\x20config','Invalid\x20value\x20for\x20\x22','boolean','object','9166wXvJka','Config\x20key\x20to\x20delete','\x20config\x20set\x20<key>\x20<value>\x20[--app\x20<name>]\x20[--global]','Available\x20for\x20--app:\x20','Set\x20`','781270TZVFAd','1556585rKahQd','key','Config\x20key\x20(supports\x20dot\x20notation:\x20apps.myapp.env)','Value\x20to\x20assign','split','\x22\x20not\x20found.','stringify','Usage:\x20','\x20\x20global:\x20\x20','Get\x20a\x20config\x20value','(none)','set','13468030RkUcPk','\x20config\x20get\x20<key>','Key\x20not\x20found:\x20','delete','`\x20from\x20app\x20\x22','format','12mcjUfC'];a16_0x9172=function(){return _0x55c0b4;};return a16_0x9172();}const a16_0x518278=a16_0x36a2;(function(_0x16eaae,_0x1342b3){const _0x83a050=a16_0x36a2,_0x49b227=_0x16eaae();while(!![]){try{const _0x45aec9=-parseInt(_0x83a050(0x1b1))/0x1*(parseInt(_0x83a050(0x1cb))/0x2)+parseInt(_0x83a050(0x19e))/0x3+parseInt(_0x83a050(0x195))/0x4*(parseInt(_0x83a050(0x1d1))/0x5)+parseInt(_0x83a050(0x19f))/0x6+-parseInt(_0x83a050(0x1d0))/0x7+-parseInt(_0x83a050(0x1bf))/0x8*(parseInt(_0x83a050(0x1a9))/0x9)+parseInt(_0x83a050(0x18f))/0xa;if(_0x45aec9===_0x1342b3)break;else _0x49b227['push'](_0x49b227['shift']());}catch(_0x4773e7){_0x49b227['push'](_0x49b227['shift']());}}}(a16_0x9172,0xd5bdd));import{CliErrors}from'../../errors.js';function a16_0x36a2(_0x14b44e,_0x3aaec1){_0x14b44e=_0x14b44e-0x18f;const _0x91722b=a16_0x9172();let _0x36a2de=_0x91722b[_0x14b44e];return _0x36a2de;}import{CLI_BIN_NAME,TOP_LEVEL_KEYS,APP_PROFILE_KEYS,ENUM_KEYS,readScopedConfig,writeScopedConfig,resolveWriteScope}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a16_0x518278(0x1a2),'type':a16_0x518278(0x1c9),'description':a16_0x518278(0x1b5),'default':![]},APP_FLAG={'name':a16_0x518278(0x1b3),'type':a16_0x518278(0x1bd),'description':a16_0x518278(0x19d)},listDef={'service':'config','command':'list','description':a16_0x518278(0x1c7),'risk':a16_0x518278(0x1c2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'defaultOutputFormat':a16_0x518278(0x1b7),'flags':[],async 'execute'(_0x2dc59b){const _0x555fc8=a16_0x518278,{buildConfigFromFlags:_0x25f882}=await import(_0x555fc8(0x1a8)),_0x4eb81a=_0x25f882({}),_0x532662=getProjectConfigPath(),_0x2c0c03=resolveWriteConfigPath(_0x555fc8(0x1a2));if(_0x2dc59b[_0x555fc8(0x194)]===_0x555fc8(0x1b7))return{'ok':!![],'message':_0x555fc8(0x1a6)+(JSON[_0x555fc8(0x1d7)](_0x4eb81a[_0x555fc8(0x1b9)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x555fc8(0x1ba)+(_0x532662??_0x555fc8(0x1db))+'\x0a')+(_0x555fc8(0x1d9)+_0x2c0c03)};return{'ok':!![],'data':{'effective':_0x4eb81a[_0x555fc8(0x1b9)],'configFiles':{'project':_0x532662??null,'global':_0x2c0c03}}};}},getDef={'service':a16_0x518278(0x1ad),'command':a16_0x518278(0x1c6),'description':a16_0x518278(0x1da),'risk':a16_0x518278(0x1c2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x518278(0x1d2),'description':a16_0x518278(0x1d3),'required':!![]}],'flags':[],async 'execute'(_0x4f6a42){const _0x322059=a16_0x518278,_0x299ff6=_0x4f6a42['args'][0x0];if(!_0x299ff6)throw CliErrors[_0x322059(0x1b6)](_0x322059(0x199),_0x322059(0x1d8)+CLI_BIN_NAME+_0x322059(0x190));const {buildConfigFromFlags:_0xbea1a6}=await import('../../context.js'),{raw:_0x129b72}=_0xbea1a6({});if(_0x299ff6[_0x322059(0x197)]('.')){const _0x4b5d74=_0x299ff6[_0x322059(0x1d5)]('.');let _0x546935=_0x129b72;for(const _0x54cc8a of _0x4b5d74){if(_0x546935==null||typeof _0x546935!==_0x322059(0x1ca))throw CliErrors[_0x322059(0x1b6)](_0x322059(0x191)+_0x299ff6);_0x546935=_0x546935[_0x54cc8a];}if(_0x546935===undefined)throw CliErrors[_0x322059(0x1b6)](_0x322059(0x191)+_0x299ff6);return console[_0x322059(0x1ab)](typeof _0x546935===_0x322059(0x1ca)?JSON[_0x322059(0x1d7)](_0x546935,null,0x2):String(_0x546935)),{'ok':!![]};}const _0x2cfdef=_0x129b72[_0x299ff6];if(_0x2cfdef===undefined)throw CliErrors[_0x322059(0x1b6)](_0x322059(0x191)+_0x299ff6);return console[_0x322059(0x1ab)](typeof _0x2cfdef===_0x322059(0x1ca)?JSON[_0x322059(0x1d7)](_0x2cfdef,null,0x2):String(_0x2cfdef)),{'ok':!![]};}},setDef={'service':a16_0x518278(0x1ad),'command':a16_0x518278(0x1dc),'description':a16_0x518278(0x1b0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a16_0x518278(0x1c5),'required':!![]},{'name':'value','description':a16_0x518278(0x1d4),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0xe330c6){const _0x368193=a16_0x518278,_0x257865=_0xe330c6[_0x368193(0x196)][0x0],_0x138d2d=_0xe330c6[_0x368193(0x196)][0x1];if(!_0x257865||_0x138d2d===undefined)throw CliErrors[_0x368193(0x1b6)]('Missing\x20key\x20or\x20value.','Usage:\x20'+CLI_BIN_NAME+_0x368193(0x1cd));if(ENUM_KEYS[_0x257865]&&!ENUM_KEYS[_0x257865][_0x368193(0x197)](_0x138d2d))throw CliErrors[_0x368193(0x1b6)](_0x368193(0x1c8)+_0x257865+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x257865][_0x368193(0x1a3)](',\x20'));if(_0x257865===_0x368193(0x1b4))throw CliErrors[_0x368193(0x1b6)](_0x368193(0x1be));if(_0x257865===_0x368193(0x19b)){const _0x3146ee=Number(_0x138d2d);if(isNaN(_0x3146ee)||_0x3146ee<=0x0)throw CliErrors[_0x368193(0x1b6)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x540f50={'global':_0xe330c6[_0x368193(0x1a4)](_0x368193(0x1a2))},_0x3d9b25=resolveWriteScope(_0x540f50),_0x5d11f3=readScopedConfig(_0x540f50),_0x4e4a8b=_0xe330c6[_0x368193(0x1ae)]('app');if(_0x4e4a8b){if(!_0x5d11f3[_0x368193(0x1c3)])_0x5d11f3['apps']={};if(!_0x5d11f3['apps'][_0x4e4a8b])throw CliErrors[_0x368193(0x1b6)](_0x368193(0x1a0)+_0x4e4a8b+_0x368193(0x1c4),_0x368193(0x1af)+CLI_BIN_NAME+_0x368193(0x1ac));if(!APP_PROFILE_KEYS['has'](_0x257865))throw CliErrors[_0x368193(0x1b6)](_0x368193(0x1b8)+_0x257865+_0x368193(0x1a5),_0x368193(0x1ce)+[...APP_PROFILE_KEYS][_0x368193(0x1a3)](',\x20'));_0x5d11f3['apps'][_0x4e4a8b][_0x257865]=_0x257865===_0x368193(0x19b)?Number(_0x138d2d):_0x138d2d,console[_0x368193(0x1ab)]('Set\x20`'+_0x257865+_0x368193(0x1bc)+_0x138d2d+'\x22\x20on\x20app\x20\x22'+_0x4e4a8b+'\x22'+(_0x3d9b25===_0x368193(0x1a2)?_0x368193(0x1a7):''));}else{if(!TOP_LEVEL_KEYS[_0x368193(0x19a)](_0x257865))throw CliErrors[_0x368193(0x1b6)](_0x368193(0x1bb)+_0x257865+_0x368193(0x1c1),'Settable\x20top-level\x20keys:\x20'+[...TOP_LEVEL_KEYS]['join'](',\x20'));_0x5d11f3[_0x257865]=_0x257865===_0x368193(0x19b)?Number(_0x138d2d):_0x138d2d,console[_0x368193(0x1ab)](_0x368193(0x1cf)+_0x257865+_0x368193(0x1bc)+_0x138d2d+'\x22'+(_0x3d9b25==='global'?_0x368193(0x1a7):''));}return writeScopedConfig(_0x5d11f3,_0x540f50),{'ok':!![]};}},deleteDef={'service':'config','command':a16_0x518278(0x192),'description':a16_0x518278(0x1c0),'risk':a16_0x518278(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a16_0x518278(0x1d2),'description':a16_0x518278(0x1cc),'required':!![]}],'flags':[GLOBAL_FLAG,APP_FLAG],async 'execute'(_0x2e1a18){const _0x3d3c92=a16_0x518278,_0x391847=_0x2e1a18[_0x3d3c92(0x196)][0x0];if(!_0x391847)throw CliErrors['validation'](_0x3d3c92(0x199),_0x3d3c92(0x1d8)+CLI_BIN_NAME+_0x3d3c92(0x1a1));const _0x48d7c4={'global':_0x2e1a18[_0x3d3c92(0x1a4)]('global')},_0x57ca79=resolveWriteScope(_0x48d7c4),_0x116448=readScopedConfig(_0x48d7c4),_0x4417e7=_0x2e1a18[_0x3d3c92(0x1ae)](_0x3d3c92(0x1b3));if(_0x4417e7){if(!_0x116448[_0x3d3c92(0x1c3)]?.[_0x4417e7])throw CliErrors['validation'](_0x3d3c92(0x1a0)+_0x4417e7+_0x3d3c92(0x1d6));if(_0x116448['apps'][_0x4417e7][_0x391847]===undefined)throw CliErrors['validation'](_0x3d3c92(0x1aa)+_0x391847+'\x22\x20not\x20found\x20on\x20app\x20\x22'+_0x4417e7+'\x22.');delete _0x116448[_0x3d3c92(0x1c3)][_0x4417e7][_0x391847],console['log']('Deleted\x20`'+_0x391847+_0x3d3c92(0x193)+_0x4417e7+'\x22'+(_0x57ca79===_0x3d3c92(0x1a2)?'\x20(global)':''));}else{if(_0x116448[_0x391847]===undefined)throw CliErrors['validation'](_0x3d3c92(0x1aa)+_0x391847+_0x3d3c92(0x1b2));delete _0x116448[_0x391847],console[_0x3d3c92(0x1ab)](_0x3d3c92(0x19c)+_0x391847+'`'+(_0x57ca79===_0x3d3c92(0x1a2)?'\x20(global)':''));}return writeScopedConfig(_0x116448,_0x48d7c4),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a14_0x2d6b(_0x50524a,_0x3de2f3){_0x50524a=_0x50524a-0xe3;const _0x1bb4e4=a14_0x1bb4();let _0x2d6b9f=_0x1bb4e4[_0x50524a];return _0x2d6b9f;}const a14_0x21d685=a14_0x2d6b;(function(_0x46244b,_0x3b4b78){const _0x231213=a14_0x2d6b,_0x1c1684=_0x46244b();while(!![]){try{const _0x547da7=parseInt(_0x231213(0x119))/0x1+-parseInt(_0x231213(0xf1))/0x2*(parseInt(_0x231213(0xfd))/0x3)+parseInt(_0x231213(0x104))/0x4*(parseInt(_0x231213(0x106))/0x5)+-parseInt(_0x231213(0x11c))/0x6*(-parseInt(_0x231213(0xed))/0x7)+-parseInt(_0x231213(0x101))/0x8+-parseInt(_0x231213(0xf2))/0x9+-parseInt(_0x231213(0x100))/0xa*(parseInt(_0x231213(0x111))/0xb);if(_0x547da7===_0x3b4b78)break;else _0x1c1684['push'](_0x1c1684['shift']());}catch(_0x4b4f66){_0x1c1684['push'](_0x1c1684['shift']());}}}(a14_0x1bb4,0x698fc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a14_0x21d685(0x10e),'type':a14_0x21d685(0xe6),'description':a14_0x21d685(0xe4),'default':![]},listDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0x112),'description':'List\x20current\x20config','risk':a14_0x21d685(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1f2280){const _0x107475=a14_0x21d685,{buildConfigFromFlags:_0x2a4e5b}=await import(_0x107475(0x10d)),_0x13620f=_0x2a4e5b({}),_0x3daa39=getProjectConfigPath(),_0x580c11=resolveWriteConfigPath(_0x107475(0x10e));if(_0x1f2280[_0x107475(0x109)]===_0x107475(0xe5))return{'ok':!![],'message':_0x107475(0xef)+(JSON[_0x107475(0xe3)](_0x13620f[_0x107475(0xfc)],null,0x2)+'\x0a\x0a')+_0x107475(0x10a)+(_0x107475(0x115)+(_0x3daa39??_0x107475(0xfb))+'\x0a')+(_0x107475(0xea)+_0x580c11)};return{'ok':!![],'data':{'effective':_0x13620f[_0x107475(0xfc)],'configFiles':{'project':_0x3daa39??null,'global':_0x580c11}}};}},getDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0x10f),'description':a14_0x21d685(0x116),'risk':a14_0x21d685(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x2a90a2){const _0x1414c0=a14_0x21d685,_0x421f3e=_0x2a90a2[_0x1414c0(0x11a)][0x0];if(!_0x421f3e)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x1414c0(0x105)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x2a18ae}=await import('../../context.js'),{raw:_0x4a1346}=_0x2a18ae({});if(_0x421f3e[_0x1414c0(0xf4)]('.')){const _0x86ba1b=_0x421f3e[_0x1414c0(0x102)]('.');let _0x468b92=_0x4a1346;for(const _0x66a2ea of _0x86ba1b){if(_0x468b92==null||typeof _0x468b92!=='object')throw CliErrors[_0x1414c0(0xe9)](_0x1414c0(0xfa)+_0x421f3e);_0x468b92=_0x468b92[_0x66a2ea];}if(_0x468b92===undefined)throw CliErrors[_0x1414c0(0xe9)]('Key\x20not\x20found:\x20'+_0x421f3e);return console[_0x1414c0(0xf3)](typeof _0x468b92==='object'?JSON[_0x1414c0(0xe3)](_0x468b92,null,0x2):String(_0x468b92)),{'ok':!![]};}const _0x42ba67=_0x4a1346[_0x421f3e];if(_0x42ba67===undefined)throw CliErrors[_0x1414c0(0xe9)](_0x1414c0(0xfa)+_0x421f3e);return console[_0x1414c0(0xf3)](typeof _0x42ba67===_0x1414c0(0x10b)?JSON[_0x1414c0(0xe3)](_0x42ba67,null,0x2):String(_0x42ba67)),{'ok':!![]};}},setDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0xf6),'description':'Set\x20a\x20config\x20value','risk':a14_0x21d685(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x21d685(0xf0),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a14_0x21d685(0x118),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x174612){const _0x2e940b=a14_0x21d685,_0x4f005d=_0x174612['args'][0x0],_0x60d1fc=_0x174612[_0x2e940b(0x11a)][0x1];if(!_0x4f005d||_0x60d1fc===undefined)throw CliErrors[_0x2e940b(0xe9)]('Missing\x20key\x20or\x20value.',_0x2e940b(0x105)+CLI_BIN_NAME+_0x2e940b(0xff));if(ENUM_KEYS[_0x4f005d]&&!ENUM_KEYS[_0x4f005d][_0x2e940b(0xf4)](_0x60d1fc))throw CliErrors['validation'](_0x2e940b(0x10c)+_0x4f005d+_0x2e940b(0xe8)+ENUM_KEYS[_0x4f005d][_0x2e940b(0xec)](',\x20'));if(_0x4f005d===_0x2e940b(0xee))throw CliErrors[_0x2e940b(0xe9)](_0x2e940b(0xfe));if(_0x4f005d===_0x2e940b(0x114)){const _0x4b1381=Number(_0x60d1fc);if(isNaN(_0x4b1381)||_0x4b1381<=0x0)throw CliErrors['validation'](_0x2e940b(0x107));}const _0x1830c1=resolveWriteScope({'explicitGlobal':_0x174612[_0x2e940b(0x117)](_0x2e940b(0x10e)),'policy':_0x2e940b(0x113)}),_0x263407=toScopeFlags(_0x1830c1),_0xa995c=readScopedConfig(_0x263407);if(!isTopLevelConfigKey(_0x4f005d))throw CliErrors['validation'](_0x2e940b(0xf5)+_0x4f005d+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());return _0xa995c[_0x4f005d]=_0x4f005d==='pageSize'?Number(_0x60d1fc):_0x60d1fc,console[_0x2e940b(0xf3)]('Set\x20`'+_0x4f005d+_0x2e940b(0xf8)+_0x60d1fc+'\x22'+(_0x1830c1===_0x2e940b(0x10e)?_0x2e940b(0x103):'')),writeScopedConfig(_0xa995c,_0x263407),{'ok':!![]};}},deleteDef={'service':a14_0x21d685(0x11b),'command':a14_0x21d685(0xf9),'description':a14_0x21d685(0xe7),'risk':a14_0x21d685(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a14_0x21d685(0xf0),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4bfcce){const _0x2f51ef=a14_0x21d685,_0x548760=_0x4bfcce[_0x2f51ef(0x11a)][0x0];if(!_0x548760)throw CliErrors[_0x2f51ef(0xe9)](_0x2f51ef(0xeb),_0x2f51ef(0x105)+CLI_BIN_NAME+_0x2f51ef(0x108));const _0x36a166=resolveWriteScope({'explicitGlobal':_0x4bfcce[_0x2f51ef(0x117)](_0x2f51ef(0x10e)),'policy':_0x2f51ef(0x113)}),_0x5e6298=toScopeFlags(_0x36a166),_0xca2f51=readScopedConfig(_0x5e6298);if(_0xca2f51[_0x548760]===undefined)throw CliErrors[_0x2f51ef(0xe9)]('Key\x20\x22'+_0x548760+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xca2f51[_0x548760],console[_0x2f51ef(0xf3)]('Deleted\x20`'+_0x548760+'`'+(_0x36a166==='global'?'\x20(global)':'')),writeScopedConfig(_0xca2f51,_0x5e6298),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a14_0x1bb4(){const _0x285d14=['list','project-or-global-explicit','pageSize','\x20\x20project:\x20','Get\x20a\x20config\x20value','bool','value','566848anTpxU','args','config','714846ApLPOI','stringify','Write\x20to\x20global\x20config','pretty','boolean','Delete\x20a\x20config\x20value','\x22.\x20Allowed:\x20','validation','\x20\x20global:\x20\x20','Missing\x20key\x20argument.','join','49uZzZkI','riskLevel','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','key','26304gFtmUr','6797610MmaxSy','log','includes','Top-level\x20key\x20\x22','set','read','`\x20=\x20\x22','delete','Key\x20not\x20found:\x20','(none)','raw','105DaACyg','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20set\x20<key>\x20<value>\x20[--global]','5820Omzygl','2258232GfSoYl','split','\x20(global)','14008KKKTaP','Usage:\x20','780OIRvVg','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20delete\x20<key>\x20[--global]','format','Config\x20files:\x0a','object','Invalid\x20value\x20for\x20\x22','../../context.js','global','get','write','319xSmMga'];a14_0x1bb4=function(){return _0x285d14;};return a14_0x1bb4();}
@@ -1 +1 @@
1
- const a17_0x16db1c=a17_0x378e;(function(_0x2ca652,_0x1704f0){const _0x1007f5=a17_0x378e,_0x2a84fc=_0x2ca652();while(!![]){try{const _0x3592bf=parseInt(_0x1007f5(0x183))/0x1*(-parseInt(_0x1007f5(0x172))/0x2)+parseInt(_0x1007f5(0x180))/0x3+parseInt(_0x1007f5(0x17d))/0x4*(parseInt(_0x1007f5(0x188))/0x5)+parseInt(_0x1007f5(0x176))/0x6*(parseInt(_0x1007f5(0x17b))/0x7)+parseInt(_0x1007f5(0x17e))/0x8*(-parseInt(_0x1007f5(0x190))/0x9)+-parseInt(_0x1007f5(0x17a))/0xa*(-parseInt(_0x1007f5(0x18a))/0xb)+parseInt(_0x1007f5(0x182))/0xc*(-parseInt(_0x1007f5(0x189))/0xd);if(_0x3592bf===_0x1704f0)break;else _0x2a84fc['push'](_0x2a84fc['shift']());}catch(_0x51838f){_0x2a84fc['push'](_0x2a84fc['shift']());}}}(a17_0x41f1,0xa3cc0));import{CLI_BIN_NAME}from'../../constant/cli.js';function a17_0x41f1(){const _0x3951c1=['app','project','locale','Not\x20inside\x20a\x20project\x20(no\x20.lovrabet.json\x20found).','format','207uhbRHI','15692eUFGzM','production','compress','appcode','6XzLOxv','validation','pretty','global','20eYIkeB','3814489aDvFlN','Add\x20--global\x20to\x20write\x20to\x20~/.lovrabet.json,\x20or\x20run\x20`','48252dKNVWv','209232ylRVNe','runtimeDomain','189618YibcDn','accessKey','516CUfkBH','47aNlmSy','json','\x20init`\x20first.','pageSize','userDomain','150jhLpnc','59891LLgAFX','4781117SPoOwQ'];a17_0x41f1=function(){return _0x3951c1;};return a17_0x41f1();}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export function resolveWriteScope(_0x2a2877){const _0x31f83d=a17_0x378e;if(_0x2a2877['global'])return _0x31f83d(0x179);if(!isInProject())throw CliErrors[_0x31f83d(0x177)](_0x31f83d(0x18e),_0x31f83d(0x17c)+CLI_BIN_NAME+_0x31f83d(0x185));return _0x31f83d(0x18c);}function a17_0x378e(_0x51bfc3,_0x85f9db){_0x51bfc3=_0x51bfc3-0x172;const _0x41f169=a17_0x41f1();let _0x378ee8=_0x41f169[_0x51bfc3];return _0x378ee8;}export const TOP_LEVEL_KEYS=new Set(['env',a17_0x16db1c(0x18f),a17_0x16db1c(0x18d),a17_0x16db1c(0x186),a17_0x16db1c(0x175),a17_0x16db1c(0x18b),'apiDomain',a17_0x16db1c(0x187),a17_0x16db1c(0x17f)]);export const APP_PROFILE_KEYS=new Set(['env',a17_0x16db1c(0x18f),a17_0x16db1c(0x18d),a17_0x16db1c(0x186),'cookie',a17_0x16db1c(0x181)]);export const ENUM_KEYS={'env':[a17_0x16db1c(0x173),'daily'],'format':[a17_0x16db1c(0x184),a17_0x16db1c(0x178),a17_0x16db1c(0x174)]};
1
+ (function(_0x10c50c,_0x5decd9){var _0xf627b9=a15_0x43ac,_0x114df2=_0x10c50c();while(!![]){try{var _0x2b680b=-parseInt(_0xf627b9(0x132))/0x1*(parseInt(_0xf627b9(0x12c))/0x2)+parseInt(_0xf627b9(0x12a))/0x3+parseInt(_0xf627b9(0x130))/0x4*(-parseInt(_0xf627b9(0x127))/0x5)+parseInt(_0xf627b9(0x128))/0x6*(-parseInt(_0xf627b9(0x12d))/0x7)+-parseInt(_0xf627b9(0x12e))/0x8+parseInt(_0xf627b9(0x129))/0x9*(parseInt(_0xf627b9(0x12f))/0xa)+-parseInt(_0xf627b9(0x131))/0xb*(-parseInt(_0xf627b9(0x12b))/0xc);if(_0x2b680b===_0x5decd9)break;else _0x114df2['push'](_0x114df2['shift']());}catch(_0x582596){_0x114df2['push'](_0x114df2['shift']());}}}(a15_0x8e8d,0x37b44));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a15_0x8e8d(){var _0x4319cc=['1243DBwFyz','3wAWXST','47605lcwnXL','18ErHuss','27RWcoSy','358194EYZTje','122172HhBYwV','233710NfjloH','846601xMJwiq','3267360SkvBTt','457510wfjxnA','24lhyLuV'];a15_0x8e8d=function(){return _0x4319cc;};return a15_0x8e8d();}export{readScopedConfig,writeScopedConfig}from'../../context.js';function a15_0x43ac(_0x359925,_0x56eb8f){_0x359925=_0x359925-0x127;var _0x8e8d85=a15_0x8e8d();var _0x43acd0=_0x8e8d85[_0x359925];return _0x43acd0;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- function a18_0x654b(_0xd2b133,_0x5291a1){_0xd2b133=_0xd2b133-0x1e5;const _0x3f03da=a18_0x3f03();let _0x654b90=_0x3f03da[_0xd2b133];return _0x654b90;}const a18_0x2d1bda=a18_0x654b;(function(_0x9eb697,_0x503346){const _0x1f0487=a18_0x654b,_0x4fa8ef=_0x9eb697();while(!![]){try{const _0x343234=-parseInt(_0x1f0487(0x21b))/0x1*(-parseInt(_0x1f0487(0x232))/0x2)+-parseInt(_0x1f0487(0x234))/0x3+parseInt(_0x1f0487(0x1e9))/0x4*(parseInt(_0x1f0487(0x213))/0x5)+parseInt(_0x1f0487(0x236))/0x6*(parseInt(_0x1f0487(0x227))/0x7)+-parseInt(_0x1f0487(0x215))/0x8*(-parseInt(_0x1f0487(0x20c))/0x9)+parseInt(_0x1f0487(0x233))/0xa*(parseInt(_0x1f0487(0x207))/0xb)+-parseInt(_0x1f0487(0x20f))/0xc*(parseInt(_0x1f0487(0x22c))/0xd);if(_0x343234===_0x503346)break;else _0x4fa8ef['push'](_0x4fa8ef['shift']());}catch(_0x35d630){_0x4fa8ef['push'](_0x4fa8ef['shift']());}}}(a18_0x3f03,0x4d09c));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a18_0x3f03(){const _0x1ec116=['Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','7tVsGmO','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20PARAMS\x20STRUCTURE','Update\x20an\x20existing\x20record','9269jdIXvX','delete','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','2LjSDGk','7010JKTkrI','446385DFxlqC','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','3645294kxGyfy','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','1444588mnXPsD','\x20\x20WHERE\x20OPERATORS','description','\x20\x20EXAMPLES','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','update','now','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','write','data\x20','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','map','\x20on\x20dataset\x20','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','high-risk-write','read','build','str','join','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','2244cOmMeP','create','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','params','batchCreate','30285YpQSsV','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','aggregate','19332LisDTa','operation','risk','command','5uUbOEG','/api/{appCode}/','520tHCiPT','data','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','282561IKkzVP','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','filter','\x20\x20PAGINATION','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}'];a18_0x3f03=function(){return _0x1ec116;};return a18_0x3f03();}const specs=[{'command':'filter','operation':a18_0x2d1bda(0x21f),'risk':a18_0x2d1bda(0x1fd),'paramsRequired':![],'description':a18_0x2d1bda(0x1e5),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a18_0x2d1bda(0x224),'helpExtra':[a18_0x2d1bda(0x1ea),a18_0x2d1bda(0x225),a18_0x2d1bda(0x1fa),a18_0x2d1bda(0x223),a18_0x2d1bda(0x1e8),a18_0x2d1bda(0x235),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a18_0x2d1bda(0x1e6),a18_0x2d1bda(0x1ee),a18_0x2d1bda(0x217),a18_0x2d1bda(0x1ef),'','\x20\x20LOGICAL\x20COMBINATORS',a18_0x2d1bda(0x1f7),a18_0x2d1bda(0x205),'',a18_0x2d1bda(0x22f),a18_0x2d1bda(0x221),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a18_0x2d1bda(0x21e),a18_0x2d1bda(0x1f3),a18_0x2d1bda(0x206),'',a18_0x2d1bda(0x220),a18_0x2d1bda(0x226),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a18_0x2d1bda(0x209)][a18_0x2d1bda(0x200)]('\x0a')},{'command':'getOne','operation':'getOne','risk':a18_0x2d1bda(0x1fd),'paramsRequired':!![],'description':a18_0x2d1bda(0x229),'paramsHint':a18_0x2d1bda(0x21d)},{'command':a18_0x2d1bda(0x208),'operation':a18_0x2d1bda(0x208),'risk':a18_0x2d1bda(0x1f5),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a18_0x2d1bda(0x1fb)},{'command':'batchCreate','operation':'batchCreate','risk':a18_0x2d1bda(0x1f5),'paramsRequired':!![],'description':a18_0x2d1bda(0x1f2),'paramsHint':a18_0x2d1bda(0x1f4)},{'command':a18_0x2d1bda(0x1f0),'operation':a18_0x2d1bda(0x1f0),'risk':a18_0x2d1bda(0x1f5),'paramsRequired':!![],'description':a18_0x2d1bda(0x22b),'paramsHint':a18_0x2d1bda(0x21c)},{'command':'delete','operation':a18_0x2d1bda(0x22d),'risk':a18_0x2d1bda(0x1fc),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a18_0x2d1bda(0x21d)},{'command':a18_0x2d1bda(0x20e),'operation':a18_0x2d1bda(0x20e),'risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a18_0x2d1bda(0x20d)+a18_0x2d1bda(0x219),'helpExtra':[a18_0x2d1bda(0x203),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a18_0x2d1bda(0x218),a18_0x2d1bda(0x22e),a18_0x2d1bda(0x228),a18_0x2d1bda(0x231),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a18_0x2d1bda(0x22a),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a18_0x2d1bda(0x222),a18_0x2d1bda(0x1ed),a18_0x2d1bda(0x230),a18_0x2d1bda(0x204),a18_0x2d1bda(0x21a),'',a18_0x2d1bda(0x1ec),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a18_0x2d1bda(0x201),'',a18_0x2d1bda(0x1e7),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27'][a18_0x2d1bda(0x200)]('\x0a')}];function makeDataCommand(_0x4facd0){const _0x343b39=a18_0x2d1bda,_0x2de710=_0x343b39(0x1f6)+_0x4facd0[_0x343b39(0x212)],_0xebf752={'service':_0x343b39(0x216),'command':_0x4facd0[_0x343b39(0x212)],'description':_0x4facd0['description'],'risk':_0x4facd0[_0x343b39(0x211)],'helpExtra':_0x4facd0[_0x343b39(0x202)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4facd0['paramsHint']}],'validate':async _0x33b39e=>{const _0x5ccdd7=_0x343b39;_0x4facd0['paramsRequired']&&requireAnyOf(_0x33b39e,[_0x5ccdd7(0x20a)],_0x2de710),_0x4facd0[_0x5ccdd7(0x210)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x33b39e['str']('params')));},async 'execute'(_0x3b8d79){const _0xa511d3=_0x343b39,_0x34ed5d=_0x3b8d79[_0xa511d3(0x1ff)]('code'),_0x502c20=_0x4facd0['operation']===_0xa511d3(0x20b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3b8d79[_0xa511d3(0x1ff)](_0xa511d3(0x20a)))):parseJsonParams(_0x3b8d79['str'](_0xa511d3(0x20a)))??{},_0xaa8d62=Date[_0xa511d3(0x1f1)](),_0x48dfe0=await executeData(_0x34ed5d,_0x4facd0[_0xa511d3(0x210)],_0x502c20),_0x288082=Date[_0xa511d3(0x1f1)]()-_0xaa8d62;return{'ok':!![],'data':{'result':_0x48dfe0,'elapsed':_0x288082},'message':_0xa511d3(0x1f6)+_0x4facd0['command']+'\x20completed\x20in\x20'+_0x288082+'ms'};}};return _0x4facd0['risk']!==_0x343b39(0x1fd)&&(_0xebf752['dryRun']=async _0x310d01=>{const _0x4dbf4a=_0x343b39,_0x1a77f2=_0x310d01['str']('code'),_0x4bda51=_0x4facd0[_0x4dbf4a(0x210)]===_0x4dbf4a(0x20b)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x310d01['str'](_0x4dbf4a(0x20a)))):parseJsonParams(_0x310d01[_0x4dbf4a(0x1ff)]('params'))??{};return dryRun('POST',_0x4dbf4a(0x214)+_0x1a77f2+'/'+_0x4facd0[_0x4dbf4a(0x210)])['body'](_0x4bda51)[_0x4dbf4a(0x1eb)]('Preview:\x20data\x20'+_0x4facd0['command']+_0x4dbf4a(0x1f9)+_0x1a77f2)[_0x4dbf4a(0x1fe)]();}),_0xebf752;}export const dataDefinitions=specs[a18_0x2d1bda(0x1f8)](makeDataCommand);
1
+ function a16_0x6c0a(_0x204982,_0x401459){_0x204982=_0x204982-0x1ab;const _0x3c04f1=a16_0x3c04();let _0x6c0a41=_0x3c04f1[_0x204982];return _0x6c0a41;}const a16_0x968d7b=a16_0x6c0a;(function(_0x495806,_0x36c309){const _0x300e21=a16_0x6c0a,_0x25a7fa=_0x495806();while(!![]){try{const _0x8fa301=parseInt(_0x300e21(0x1dd))/0x1*(parseInt(_0x300e21(0x1b0))/0x2)+parseInt(_0x300e21(0x1b8))/0x3*(-parseInt(_0x300e21(0x1cc))/0x4)+-parseInt(_0x300e21(0x1e5))/0x5+-parseInt(_0x300e21(0x1f2))/0x6+-parseInt(_0x300e21(0x1da))/0x7*(-parseInt(_0x300e21(0x1f9))/0x8)+-parseInt(_0x300e21(0x1b3))/0x9+parseInt(_0x300e21(0x1cf))/0xa;if(_0x8fa301===_0x36c309)break;else _0x25a7fa['push'](_0x25a7fa['shift']());}catch(_0xa1f6df){_0x25a7fa['push'](_0x25a7fa['shift']());}}}(a16_0x3c04,0x7a684));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a16_0x3c04(){const _0x5ad0bb=['713178BepCkQ','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','paramsRequired','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','getOne','61554wFsPgi','update','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','risk','\x20\x20WHERE\x20OPERATORS','now','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','str','map','data','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','operation','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','aggregate','64oukPNQ','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','11001030LSkkor','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','join','description','command','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','/api/{appCode}/','308Avwyxv','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','211CuWyrD','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','build','data\x20','read','batchCreate','write','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','421615tPaUcI','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20completed\x20in\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','delete','POST','code','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','4015158AAmzBy','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','dryRun','params','filter','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','65680qJzDxO','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20on\x20dataset\x20','helpExtra','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','body','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','1906kFblVD','create','\x20\x20PARAMS\x20STRUCTURE'];a16_0x3c04=function(){return _0x5ad0bb;};return a16_0x3c04();}const specs=[{'command':a16_0x968d7b(0x1f6),'operation':a16_0x968d7b(0x1f6),'risk':a16_0x968d7b(0x1e1),'paramsRequired':![],'description':a16_0x968d7b(0x1d7),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a16_0x968d7b(0x1e9),'helpExtra':[a16_0x968d7b(0x1bc),a16_0x968d7b(0x1b4),a16_0x968d7b(0x1f8),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a16_0x968d7b(0x1e4),a16_0x968d7b(0x1ab),a16_0x968d7b(0x1ce),a16_0x968d7b(0x1be),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a16_0x968d7b(0x1d5),a16_0x968d7b(0x1ac),'',a16_0x968d7b(0x1bf),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a16_0x968d7b(0x1c8),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a16_0x968d7b(0x1d0),a16_0x968d7b(0x1c9),a16_0x968d7b(0x1db),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a16_0x968d7b(0x1f1),'','\x20\x20PAGINATION',a16_0x968d7b(0x1ca),a16_0x968d7b(0x1c0),a16_0x968d7b(0x1f3)][a16_0x968d7b(0x1d2)]('\x0a')},{'command':'getOne','operation':a16_0x968d7b(0x1b7),'risk':a16_0x968d7b(0x1e1),'paramsRequired':!![],'description':a16_0x968d7b(0x1ea),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'create','operation':a16_0x968d7b(0x1b1),'risk':'write','paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a16_0x968d7b(0x1af)},{'command':'batchCreate','operation':'batchCreate','risk':a16_0x968d7b(0x1e3),'paramsRequired':!![],'description':a16_0x968d7b(0x1c5),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a16_0x968d7b(0x1b9),'risk':a16_0x968d7b(0x1e3),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x968d7b(0x1de)},{'command':'delete','operation':a16_0x968d7b(0x1ee),'risk':'high-risk-write','paramsRequired':!![],'description':a16_0x968d7b(0x1d8),'paramsHint':a16_0x968d7b(0x1ec)},{'command':'aggregate','operation':a16_0x968d7b(0x1cb),'risk':a16_0x968d7b(0x1e1),'paramsRequired':![],'description':a16_0x968d7b(0x1b6),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a16_0x968d7b(0x1c7),a16_0x968d7b(0x1ae),a16_0x968d7b(0x1eb),a16_0x968d7b(0x1d1),a16_0x968d7b(0x1f7),a16_0x968d7b(0x1e8),a16_0x968d7b(0x1ba),a16_0x968d7b(0x1fa),'',a16_0x968d7b(0x1b2),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x968d7b(0x1e6),a16_0x968d7b(0x1d6),a16_0x968d7b(0x1c4),'\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}',a16_0x968d7b(0x1ed),'','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a16_0x968d7b(0x1fb),'',a16_0x968d7b(0x1dc),a16_0x968d7b(0x1cd)]['join']('\x0a')}];function makeDataCommand(_0x51af36){const _0x148d50=a16_0x968d7b,_0x4b29d3=_0x148d50(0x1e0)+_0x51af36[_0x148d50(0x1d4)],_0x56f172={'service':_0x148d50(0x1c3),'command':_0x51af36['command'],'description':_0x51af36[_0x148d50(0x1d3)],'risk':_0x51af36['risk'],'helpExtra':_0x51af36[_0x148d50(0x1fd)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x51af36['paramsHint']}],'validate':async _0x2f6ea8=>{const _0x3cb081=_0x148d50;_0x51af36[_0x3cb081(0x1b5)]&&requireAnyOf(_0x2f6ea8,['params'],_0x4b29d3),_0x51af36['operation']===_0x3cb081(0x1e2)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f6ea8['str']('params')));},async 'execute'(_0x322560){const _0x401c7b=_0x148d50,_0x4c7478=_0x322560['str'](_0x401c7b(0x1f0)),_0x36f662=_0x51af36['operation']===_0x401c7b(0x1e2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x322560[_0x401c7b(0x1c1)](_0x401c7b(0x1f5)))):parseJsonParams(_0x322560[_0x401c7b(0x1c1)](_0x401c7b(0x1f5)))??{},_0x26d7e2=Date[_0x401c7b(0x1bd)](),_0xb88326=await executeData(_0x4c7478,_0x51af36['operation'],_0x36f662),_0x259e42=Date[_0x401c7b(0x1bd)]()-_0x26d7e2;return{'ok':!![],'data':{'result':_0xb88326,'elapsed':_0x259e42},'message':_0x401c7b(0x1e0)+_0x51af36[_0x401c7b(0x1d4)]+_0x401c7b(0x1e7)+_0x259e42+'ms'};}};return _0x51af36[_0x148d50(0x1bb)]!==_0x148d50(0x1e1)&&(_0x56f172[_0x148d50(0x1f4)]=async _0x4a2628=>{const _0x1452f0=_0x148d50,_0x3cc953=_0x4a2628['str']('code'),_0x59eb8f=_0x51af36[_0x1452f0(0x1c6)]===_0x1452f0(0x1e2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4a2628[_0x1452f0(0x1c1)]('params'))):parseJsonParams(_0x4a2628['str'](_0x1452f0(0x1f5)))??{};return dryRun(_0x1452f0(0x1ef),_0x1452f0(0x1d9)+_0x3cc953+'/'+_0x51af36[_0x1452f0(0x1c6)])[_0x1452f0(0x1ad)](_0x59eb8f)[_0x1452f0(0x1d3)]('Preview:\x20data\x20'+_0x51af36['command']+_0x1452f0(0x1fc)+_0x3cc953)[_0x1452f0(0x1df)]();}),_0x56f172;}export const dataDefinitions=specs[a16_0x968d7b(0x1c2)](makeDataCommand);