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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/LICENSE +184 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/auth/index.js +1 -1
  9. package/lib/commands/auth/prompt.js +1 -1
  10. package/lib/commands/bff/detail.js +1 -1
  11. package/lib/commands/bff/exec.js +1 -1
  12. package/lib/commands/bff/index.js +1 -1
  13. package/lib/commands/common/config-policy.js +1 -1
  14. package/lib/commands/common/constraints.js +1 -1
  15. package/lib/commands/common/flags.js +1 -1
  16. package/lib/commands/config/definitions.js +1 -1
  17. package/lib/commands/config/shared.js +1 -1
  18. package/lib/commands/data/index.js +1 -1
  19. package/lib/commands/dataset/detail.js +1 -1
  20. package/lib/commands/dataset/index.js +1 -1
  21. package/lib/commands/dataset/list.js +1 -1
  22. package/lib/commands/doctor.js +1 -1
  23. package/lib/commands/init.js +1 -1
  24. package/lib/commands/logs/index.js +1 -1
  25. package/lib/commands/registry.js +1 -1
  26. package/lib/commands/schema.js +1 -1
  27. package/lib/commands/skill/index.js +1 -0
  28. package/lib/commands/sql/detail.js +1 -1
  29. package/lib/commands/sql/exec.js +1 -1
  30. package/lib/commands/sql/index.js +1 -1
  31. package/lib/config/schema.js +1 -1
  32. package/lib/constant/auth-mode.js +1 -1
  33. package/lib/constant/cli.js +1 -1
  34. package/lib/constant/defaults.js +1 -1
  35. package/lib/constant/domain.js +1 -1
  36. package/lib/constant/env.js +1 -1
  37. package/lib/constant/output.js +1 -1
  38. package/lib/constant/risk.js +1 -1
  39. package/lib/constant/url.js +1 -0
  40. package/lib/context.js +1 -1
  41. package/lib/core/api-client.js +1 -1
  42. package/lib/core/db-resolver.js +1 -1
  43. package/lib/core/sdk-client.js +1 -1
  44. package/lib/errors.js +1 -1
  45. package/lib/framework/build-all-flags.js +1 -1
  46. package/lib/framework/dryrun.js +1 -1
  47. package/lib/framework/flags.js +1 -1
  48. package/lib/framework/help.js +1 -1
  49. package/lib/framework/index.js +1 -1
  50. package/lib/framework/output.js +1 -1
  51. package/lib/framework/preparse.js +1 -1
  52. package/lib/framework/response.js +1 -1
  53. package/lib/framework/runner-confirmation.js +1 -1
  54. package/lib/framework/runner-error.js +1 -1
  55. package/lib/framework/runner.js +1 -1
  56. package/lib/framework/schema-export.js +1 -1
  57. package/lib/framework/types.js +1 -1
  58. package/lib/help.js +1 -1
  59. package/lib/skills/npx-skills-add.js +1 -0
  60. package/lib/utils/apply-jq-filter.js +1 -1
  61. package/lib/utils/logger.js +1 -1
  62. package/lib/utils/params.js +1 -1
  63. package/lib/utils/platform.js +1 -0
  64. package/lib/utils/version.js +1 -1
  65. package/lib/utils/write-cli-side-channel.js +1 -1
  66. package/package.json +8 -7
@@ -1 +1 @@
1
- const a28_0x4ed05a=a28_0x4d69;(function(_0xd23bf1,_0x4efffc){const _0x3c3ef1=a28_0x4d69,_0xa98a2e=_0xd23bf1();while(!![]){try{const _0x182a21=parseInt(_0x3c3ef1(0x95))/0x1*(parseInt(_0x3c3ef1(0x87))/0x2)+-parseInt(_0x3c3ef1(0x85))/0x3+parseInt(_0x3c3ef1(0x92))/0x4+-parseInt(_0x3c3ef1(0x98))/0x5+parseInt(_0x3c3ef1(0x82))/0x6*(-parseInt(_0x3c3ef1(0x90))/0x7)+parseInt(_0x3c3ef1(0x97))/0x8+parseInt(_0x3c3ef1(0x83))/0x9;if(_0x182a21===_0x4efffc)break;else _0xa98a2e['push'](_0xa98a2e['shift']());}catch(_0x8d5a36){_0xa98a2e['push'](_0xa98a2e['shift']());}}}(a28_0x43b2,0x7dfcd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a28_0x4ed05a(0x8a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a28_0x4ed05a(0x89)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a28_0x4ed05a(0x9b)],'importable':!![]},'pageSize':{'description':a28_0x4ed05a(0x9a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a28_0x4ed05a(0x8f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a28_0x4ed05a(0x94),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a28_0x4ed05a(0x9e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a28_0x4ed05a(0x81),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a28_0x4ed05a(0x8b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a28_0x4ed05a(0x91)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a28_0x4ed05a(0x99)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a28_0x4ed05a(0x88)](CONFIG_FIELD_SCHEMAS)[a28_0x4ed05a(0x93)](([,_0x4e50be])=>_0x4e50be[a28_0x4ed05a(0x9c)])[a28_0x4ed05a(0x8c)](([_0x37ab0c])=>_0x37ab0c));export const CONFIG_ENUM_VALUES=Object[a28_0x4ed05a(0x84)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a28_0x4ed05a(0x93)](([,_0x20f0f4])=>_0x20f0f4[a28_0x4ed05a(0x80)])[a28_0x4ed05a(0x8c)](([_0x4b33e6,_0x3ac449])=>[_0x4b33e6,[..._0x3ac449[a28_0x4ed05a(0x80)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a28_0x4ed05a(0x88)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x9a2fee])=>_0x9a2fee[a28_0x4ed05a(0x96)])['map'](([_0x13e78a])=>_0x13e78a);function a28_0x4d69(_0x57ffbb,_0x469614){_0x57ffbb=_0x57ffbb-0x80;const _0x43b20d=a28_0x43b2();let _0x4d691f=_0x43b20d[_0x57ffbb];return _0x4d691f;}export function getConfigFieldSchema(_0x2232b2){return CONFIG_FIELD_SCHEMAS[_0x2232b2];}export function getConfigEnumValues(_0x50ec17){const _0x48efc5=a28_0x4ed05a;return getConfigFieldSchema(_0x50ec17)?.[_0x48efc5(0x80)];}export function getConfigDefaultValue(_0x5c756f){return getConfigFieldSchema(_0x5c756f)?.['defaultValue'];}export function isTopLevelConfigKey(_0x1da9eb){const _0x11d5c0=a28_0x4ed05a;return TOP_LEVEL_CONFIG_KEYS[_0x11d5c0(0x9d)](_0x1da9eb);}function a28_0x43b2(){const _0x465e74=['join','1553726eOLEhJ','entries','env','Target\x20environment','Risk\x20level','map','legacyCompatOnly','Config\x20key.\x20Top-level:\x20','Override\x20API\x20domain','28HEqbWd','riskLevel','1431844NByuUh','filter','Override\x20user\x20domain','1oQMdUm','importable','6133376Cbbhsj','2688410jNZnPl','locale','Default\x20page\x20size','format','cliSettableTopLevel','has','Override\x20runtime\x20domain','enumValues','Access\x20key\x20(client-ak\x20auth)','126498ZrhsNF','1023003vCYAPb','fromEntries','2631312roPqSo'];a28_0x43b2=function(){return _0x465e74;};return a28_0x43b2();}export function isLegacyCompatConfigKey(_0x102dd1){const _0x1c5adb=a28_0x4ed05a;return getConfigFieldSchema(_0x102dd1)?.[_0x1c5adb(0x8d)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xb98e73){const _0x5504e1=a28_0x4ed05a;return[..._0xb98e73][_0x5504e1(0x86)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1aef5a=a28_0x4ed05a;return _0x1aef5a(0x8e)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x107c08){return{'env':_0x107c08,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a29_0x3b5a9b=a29_0x40c4;(function(_0x39c5b,_0x17c63e){const _0x20d9f0=a29_0x40c4,_0x555a07=_0x39c5b();while(!![]){try{const _0x298c9d=-parseInt(_0x20d9f0(0xf5))/0x1*(-parseInt(_0x20d9f0(0xe2))/0x2)+-parseInt(_0x20d9f0(0xe3))/0x3+-parseInt(_0x20d9f0(0xf9))/0x4+parseInt(_0x20d9f0(0xfc))/0x5+-parseInt(_0x20d9f0(0xe9))/0x6*(-parseInt(_0x20d9f0(0xf3))/0x7)+-parseInt(_0x20d9f0(0xf4))/0x8+parseInt(_0x20d9f0(0xf7))/0x9;if(_0x298c9d===_0x17c63e)break;else _0x555a07['push'](_0x555a07['shift']());}catch(_0x1dcf8c){_0x555a07['push'](_0x555a07['shift']());}}}(a29_0x431e,0x2f3cc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a29_0x3b5a9b(0xe0),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a29_0x3b5a9b(0xfb),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x3b5a9b(0xe4)],'importable':!![]},'pageSize':{'description':a29_0x3b5a9b(0xee),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x3b5a9b(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x3b5a9b(0xe8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x3b5a9b(0xf8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x3b5a9b(0xe1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a29_0x3b5a9b(0xe5),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x3b5a9b(0xf0)](([,_0x48e785])=>_0x48e785[a29_0x3b5a9b(0xf1)])[a29_0x3b5a9b(0xe7)](([_0x2ff973])=>_0x2ff973));export const CONFIG_ENUM_VALUES=Object[a29_0x3b5a9b(0xeb)](Object[a29_0x3b5a9b(0xea)](CONFIG_FIELD_SCHEMAS)[a29_0x3b5a9b(0xf0)](([,_0x11d257])=>_0x11d257[a29_0x3b5a9b(0xed)])['map'](([_0x26bb73,_0x15491c])=>[_0x26bb73,[..._0x15491c[a29_0x3b5a9b(0xed)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x3b5a9b(0xf0)](([,_0x412bdb])=>_0x412bdb[a29_0x3b5a9b(0xf2)])[a29_0x3b5a9b(0xe7)](([_0x4e203f])=>_0x4e203f);export function getConfigFieldSchema(_0x2fefb4){return CONFIG_FIELD_SCHEMAS[_0x2fefb4];}export function getConfigEnumValues(_0x1283e5){const _0xc2c41c=a29_0x3b5a9b;return getConfigFieldSchema(_0x1283e5)?.[_0xc2c41c(0xed)];}export function getConfigDefaultValue(_0x1b33fe){const _0x437831=a29_0x3b5a9b;return getConfigFieldSchema(_0x1b33fe)?.[_0x437831(0xec)];}function a29_0x40c4(_0x395109,_0x31d71d){_0x395109=_0x395109-0xe0;const _0x431e82=a29_0x431e();let _0x40c4ae=_0x431e82[_0x395109];return _0x40c4ae;}function a29_0x431e(){const _0x40a25c=['2631321bSXzDa','Override\x20runtime\x20domain','304488hBjOYI','has','Default\x20output\x20format','1420200atenEA','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','4sxwlDl','944628VGQzkO','format','Locale','Override\x20API\x20domain','map','Override\x20user\x20domain','6jsQzib','entries','fromEntries','defaultValue','enumValues','Default\x20page\x20size','Config\x20key.\x20Top-level:\x20','filter','cliSettableTopLevel','importable','196399kulAXQ','1203056BlGUYa','65199rjIzqG','legacyCompatOnly'];a29_0x431e=function(){return _0x40a25c;};return a29_0x431e();}export function isTopLevelConfigKey(_0x1621f2){const _0x423946=a29_0x3b5a9b;return TOP_LEVEL_CONFIG_KEYS[_0x423946(0xfa)](_0x1621f2);}export function isLegacyCompatConfigKey(_0x27c314){const _0x32b1d1=a29_0x3b5a9b;return getConfigFieldSchema(_0x27c314)?.[_0x32b1d1(0xf6)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3d665b){return[..._0x3d665b]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2f48d1=a29_0x3b5a9b;return _0x2f48d1(0xef)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x5d344e){return{'env':_0x5d344e,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a29_0x3434(){const _0x18ee61=['847600vHUaji','client-ak','522jwgJNs','391NElTMW','26730Rswckr','6120fucKJm','1914bFxvuV','ClientAk','9CjDwrE','6486888unEgZL','306idHxnQ','4457404HjMYma','2471454ZNMpdn'];a29_0x3434=function(){return _0x18ee61;};return a29_0x3434();}const a29_0xff020f=a29_0x65e9;(function(_0x447d7e,_0x10ce78){const _0x5d4657=a29_0x65e9,_0x344f7c=_0x447d7e();while(!![]){try{const _0x193c62=parseInt(_0x5d4657(0x178))/0x1*(-parseInt(_0x5d4657(0x177))/0x2)+parseInt(_0x5d4657(0x174))/0x3+-parseInt(_0x5d4657(0x175))/0x4+-parseInt(_0x5d4657(0x179))/0x5*(-parseInt(_0x5d4657(0x17f))/0x6)+parseInt(_0x5d4657(0x173))/0x7+parseInt(_0x5d4657(0x17e))/0x8*(-parseInt(_0x5d4657(0x17d))/0x9)+-parseInt(_0x5d4657(0x17a))/0xa*(parseInt(_0x5d4657(0x17b))/0xb);if(_0x193c62===_0x10ce78)break;else _0x344f7c['push'](_0x344f7c['shift']());}catch(_0xd33632){_0x344f7c['push'](_0x344f7c['shift']());}}}(a29_0x3434,0x7a8b0));function a29_0x65e9(_0x3cefb4,_0x26c41d){_0x3cefb4=_0x3cefb4-0x173;const _0x343476=a29_0x3434();let _0x65e97e=_0x343476[_0x3cefb4];return _0x65e97e;}export const AUTH_MODE={'ClientAk':a29_0xff020f(0x176)};export function isAuthMode(_0x557d94){const _0x33848d=a29_0xff020f;return _0x557d94===AUTH_MODE[_0x33848d(0x17c)];}
1
+ (function(_0x574c7d,_0x3ba444){const _0x36f775=a30_0x2a5b,_0xd9c21e=_0x574c7d();while(!![]){try{const _0x313269=-parseInt(_0x36f775(0x86))/0x1+parseInt(_0x36f775(0x8b))/0x2*(parseInt(_0x36f775(0x8d))/0x3)+-parseInt(_0x36f775(0x8c))/0x4*(-parseInt(_0x36f775(0x8f))/0x5)+-parseInt(_0x36f775(0x87))/0x6+parseInt(_0x36f775(0x8e))/0x7+-parseInt(_0x36f775(0x85))/0x8*(parseInt(_0x36f775(0x89))/0x9)+-parseInt(_0x36f775(0x88))/0xa;if(_0x313269===_0x3ba444)break;else _0xd9c21e['push'](_0xd9c21e['shift']());}catch(_0x4743b6){_0xd9c21e['push'](_0xd9c21e['shift']());}}}(a30_0x5409,0x67edf));function a30_0x2a5b(_0xa8da36,_0x1032ac){_0xa8da36=_0xa8da36-0x85;const _0x540929=a30_0x5409();let _0x2a5bbd=_0x540929[_0xa8da36];return _0x2a5bbd;}export const AUTH_MODE={'ClientAk':'client-ak'};function a30_0x5409(){const _0x21752a=['14XcKzbv','40Rgztsa','113979TECwHK','5659073XdXVdM','236785jfnnlV','42784ZGRjNM','409608sZEtqo','1288590doWzxa','4337160Ykryvr','108TbZFsR','ClientAk'];a30_0x5409=function(){return _0x21752a;};return a30_0x5409();}export function isAuthMode(_0x27253d){const _0x5ee86b=a30_0x2a5b;return _0x27253d===AUTH_MODE[_0x5ee86b(0x8a)];}
@@ -1 +1 @@
1
- const a30_0x136eca=a30_0x3016;(function(_0x1bff1f,_0x347e95){const _0x20e39e=a30_0x3016,_0x5a3020=_0x1bff1f();while(!![]){try{const _0x32fb72=parseInt(_0x20e39e(0x1db))/0x1*(-parseInt(_0x20e39e(0x1ee))/0x2)+parseInt(_0x20e39e(0x1de))/0x3+parseInt(_0x20e39e(0x1fd))/0x4*(parseInt(_0x20e39e(0x1dd))/0x5)+-parseInt(_0x20e39e(0x1e6))/0x6+parseInt(_0x20e39e(0x1f7))/0x7*(-parseInt(_0x20e39e(0x1eb))/0x8)+parseInt(_0x20e39e(0x1e2))/0x9+parseInt(_0x20e39e(0x1e4))/0xa;if(_0x32fb72===_0x347e95)break;else _0x5a3020['push'](_0x5a3020['shift']());}catch(_0x1f78ee){_0x5a3020['push'](_0x5a3020['shift']());}}}(a30_0x47e4,0xdd52c));export const CLI_BIN_NAME=a30_0x136eca(0x1f3);export const CLI_DISPLAY_NAME=a30_0x136eca(0x1e9);function a30_0x3016(_0x1eea46,_0x2bf155){_0x1eea46=_0x1eea46-0x1d9;const _0x47e442=a30_0x47e4();let _0x3016a4=_0x47e442[_0x1eea46];return _0x3016a4;}function a30_0x47e4(){const _0x409197=['10clqpFB','494160cRzIJk','non-interactive','Filter\x20JSON\x20output\x20(implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Alias\x20for\x20--non-interactive','947259jkohfm','sqlcode','30521290EQvwKV','name','6095394fMMXxK','json\x20|\x20pretty\x20|\x20compress','SQL\x20query\x20code','Lovrabet\x20Runtime\x20CLI','help','3418520AQFZan','dry-run','dryRun','42NHGPdl','app','Preview\x20operation\x20without\x20executing','Override\x20appcode','appcode','lovrabet','boolean','format','Force\x20non-interactive\x20mode\x20(CI)','21dyGLez','<name>','<code>','params','meowKey','<expr>','1984856zbzSXF','Clear\x20output','Name\x20filter','env','Use\x20global\x20config\x20scope','JSON\x20params\x20for\x20execute\x20commands','Verbose\x20output','Output\x20format','string','@lovrabet/lovrabet-cli','yes','clear','fromEntries','Select\x20app\x20profile\x20by\x20name','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','global','Show\x20help','type','production\x20|\x20development\x20|\x20daily','52864IAEULU','verbose'];a30_0x47e4=function(){return _0x409197;};return a30_0x47e4();}export const NPM_PACKAGE_NAME=a30_0x136eca(0x206);export const GLOBAL_FLAGS=[{'name':a30_0x136eca(0x1f2),'meowKey':a30_0x136eca(0x1f2),'type':a30_0x136eca(0x205),'description':a30_0x136eca(0x1f1),'hint':a30_0x136eca(0x1f9)},{'name':a30_0x136eca(0x1ef),'meowKey':a30_0x136eca(0x1ef),'type':a30_0x136eca(0x205),'description':a30_0x136eca(0x20a),'hint':a30_0x136eca(0x1f8)},{'name':a30_0x136eca(0x200),'meowKey':a30_0x136eca(0x200),'type':a30_0x136eca(0x205),'description':'Environment','hint':a30_0x136eca(0x1da)},{'name':a30_0x136eca(0x1f5),'meowKey':a30_0x136eca(0x1f5),'type':a30_0x136eca(0x205),'description':a30_0x136eca(0x204),'hint':a30_0x136eca(0x1e7)},{'name':'jq','meowKey':'jq','type':'string','description':a30_0x136eca(0x1e0),'hint':a30_0x136eca(0x1fc)},{'name':a30_0x136eca(0x1ec),'meowKey':a30_0x136eca(0x1ed),'type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x1f0)},{'name':a30_0x136eca(0x207),'meowKey':a30_0x136eca(0x207),'type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x20b)},{'name':a30_0x136eca(0x1df),'meowKey':a30_0x136eca(0x20c),'type':'boolean','description':a30_0x136eca(0x1f6)},{'name':a30_0x136eca(0x20d),'meowKey':a30_0x136eca(0x20d),'type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x201)},{'name':'ci','meowKey':'ci','type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x1e1),'hidden':!![]},{'name':a30_0x136eca(0x1ea),'meowKey':a30_0x136eca(0x1ea),'type':'boolean','description':a30_0x136eca(0x20e)},{'name':'id','meowKey':'id','type':a30_0x136eca(0x205),'description':'Record\x20ID','hidden':!![]},{'name':a30_0x136eca(0x1e5),'meowKey':a30_0x136eca(0x1e5),'type':a30_0x136eca(0x205),'description':a30_0x136eca(0x1ff),'hidden':!![]},{'name':a30_0x136eca(0x1e3),'meowKey':'sqlcode','type':a30_0x136eca(0x205),'description':a30_0x136eca(0x1e8),'hidden':!![]},{'name':'params','meowKey':a30_0x136eca(0x1fa),'type':a30_0x136eca(0x205),'description':a30_0x136eca(0x202),'hidden':!![]},{'name':'verbose','meowKey':a30_0x136eca(0x1dc),'type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x203),'hidden':!![]},{'name':a30_0x136eca(0x208),'meowKey':a30_0x136eca(0x208),'type':a30_0x136eca(0x1f4),'description':a30_0x136eca(0x1fe),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a30_0x136eca(0x1ef),'env',a30_0x136eca(0x1f5),'jq',a30_0x136eca(0x1ec),a30_0x136eca(0x207),'non-interactive','ci']);export function buildMeowFlags(){const _0x5717f0=a30_0x136eca;return Object[_0x5717f0(0x209)](GLOBAL_FLAGS['map'](_0x5c75fa=>[_0x5c75fa[_0x5717f0(0x1fb)],{'type':_0x5c75fa[_0x5717f0(0x1d9)]}]));}
1
+ const a31_0x20b240=a31_0x2875;(function(_0x1b8538,_0x4869dc){const _0x316922=a31_0x2875,_0x23156b=_0x1b8538();while(!![]){try{const _0x3caf32=parseInt(_0x316922(0x133))/0x1*(-parseInt(_0x316922(0x12f))/0x2)+-parseInt(_0x316922(0x137))/0x3+-parseInt(_0x316922(0x134))/0x4+-parseInt(_0x316922(0x142))/0x5+parseInt(_0x316922(0x12e))/0x6+-parseInt(_0x316922(0x145))/0x7*(-parseInt(_0x316922(0x148))/0x8)+parseInt(_0x316922(0x119))/0x9*(-parseInt(_0x316922(0x126))/0xa);if(_0x3caf32===_0x4869dc)break;else _0x23156b['push'](_0x23156b['shift']());}catch(_0xc73b97){_0x23156b['push'](_0x23156b['shift']());}}}(a31_0x1b65,0x86bea));export const CLI_BIN_NAME='lovrabet';function a31_0x2875(_0x3c0959,_0x3a976b){_0x3c0959=_0x3c0959-0x119;const _0x1b659c=a31_0x1b65();let _0x2875e6=_0x1b659c[_0x3c0959];return _0x2875e6;}export const CLI_DISPLAY_NAME='Lovrabet\x20Runtime\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/lovrabet-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':'string','description':'Override\x20appcode','hint':a31_0x20b240(0x122)},{'name':a31_0x20b240(0x147),'meowKey':'app','type':a31_0x20b240(0x13b),'description':a31_0x20b240(0x12d),'hint':a31_0x20b240(0x138)},{'name':a31_0x20b240(0x124),'meowKey':'env','type':a31_0x20b240(0x13b),'description':a31_0x20b240(0x136),'hint':a31_0x20b240(0x123)},{'name':'format','meowKey':a31_0x20b240(0x120),'type':'string','description':'Output\x20format','hint':a31_0x20b240(0x131)},{'name':'jq','meowKey':'jq','type':a31_0x20b240(0x13b),'description':a31_0x20b240(0x11a),'hint':'<expr>'},{'name':a31_0x20b240(0x139),'meowKey':a31_0x20b240(0x13a),'type':a31_0x20b240(0x135),'description':a31_0x20b240(0x11c)},{'name':a31_0x20b240(0x13d),'meowKey':'yes','type':'boolean','description':a31_0x20b240(0x144)},{'name':a31_0x20b240(0x132),'meowKey':a31_0x20b240(0x11d),'type':a31_0x20b240(0x135),'description':a31_0x20b240(0x143)},{'name':a31_0x20b240(0x13f),'meowKey':a31_0x20b240(0x13f),'type':a31_0x20b240(0x135),'description':a31_0x20b240(0x13e)},{'name':'ci','meowKey':'ci','type':'boolean','description':a31_0x20b240(0x12b),'hidden':!![]},{'name':a31_0x20b240(0x121),'meowKey':a31_0x20b240(0x121),'type':a31_0x20b240(0x135),'description':a31_0x20b240(0x129)},{'name':'id','meowKey':'id','type':'string','description':a31_0x20b240(0x146),'hidden':!![]},{'name':'name','meowKey':a31_0x20b240(0x11b),'type':a31_0x20b240(0x13b),'description':'Name\x20filter','hidden':!![]},{'name':a31_0x20b240(0x125),'meowKey':a31_0x20b240(0x125),'type':a31_0x20b240(0x13b),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a31_0x20b240(0x130),'meowKey':a31_0x20b240(0x130),'type':a31_0x20b240(0x13b),'description':a31_0x20b240(0x141),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a31_0x20b240(0x135),'description':a31_0x20b240(0x128),'hidden':!![]},{'name':'clear','meowKey':a31_0x20b240(0x127),'type':a31_0x20b240(0x135),'description':a31_0x20b240(0x12c),'hidden':!![]}];function a31_0x1b65(){const _0x2dd948=['boolean','Environment','23952ageWyL','<name>','dry-run','dryRun','string','map','yes','Use\x20global\x20config\x20scope','global','meowKey','JSON\x20params\x20for\x20execute\x20commands','866905MfThlC','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20confirmation\x20for\x20high-risk\x20writes','7329119kwZsII','Record\x20ID','app','8oxUAgi','72rWaxqM','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','name','Preview\x20operation\x20without\x20executing','nonInteractive','appcode','fromEntries','format','help','<code>','production\x20|\x20development\x20|\x20daily','env','sqlcode','130040JJdYoC','clear','Verbose\x20output','Show\x20help','type','Alias\x20for\x20--non-interactive','Clear\x20output','Select\x20app\x20profile\x20by\x20name','6180012gLPCGj','838GmzoPi','params','json\x20|\x20pretty\x20|\x20compress','non-interactive','2195sLohyb','1280012eRiIgG'];a31_0x1b65=function(){return _0x2dd948;};return a31_0x1b65();}export const PIPELINE_FLAG_NAMES=new Set([a31_0x20b240(0x11e),'app',a31_0x20b240(0x124),a31_0x20b240(0x120),'jq','dry-run',a31_0x20b240(0x13d),a31_0x20b240(0x132),'ci']);export function buildMeowFlags(){const _0x1bb39a=a31_0x20b240;return Object[_0x1bb39a(0x11f)](GLOBAL_FLAGS[_0x1bb39a(0x13c)](_0x2583cc=>[_0x2583cc[_0x1bb39a(0x140)],{'type':_0x2583cc[_0x1bb39a(0x12a)]}]));}
@@ -1 +1 @@
1
- function a31_0x587d(_0x3b43e0,_0x3416a7){_0x3b43e0=_0x3b43e0-0xa3;const _0x1be418=a31_0x1be4();let _0x587d65=_0x1be418[_0x3b43e0];return _0x587d65;}const a31_0x56dd8b=a31_0x587d;function a31_0x1be4(){const _0x45eeff=['14jStACE','30519JegSHd','compress','52WKrNWw','5000456KkWwZl','12IceYyj','17700111utMwRW','production','2PfbHlF','346668VYdkZw','202926uqmIpb','5658375XeLMXf','write','en-US','5194998BaeUeA','2270ijZDtv'];a31_0x1be4=function(){return _0x45eeff;};return a31_0x1be4();}(function(_0x2c4edd,_0x57cbf4){const _0x57f899=a31_0x587d,_0x49e229=_0x2c4edd();while(!![]){try{const _0x2c24cc=parseInt(_0x57f899(0xa8))/0x1*(-parseInt(_0x57f899(0xa7))/0x2)+parseInt(_0x57f899(0xa9))/0x3*(parseInt(_0x57f899(0xb2))/0x4)+-parseInt(_0x57f899(0xaa))/0x5+parseInt(_0x57f899(0xad))/0x6+parseInt(_0x57f899(0xaf))/0x7*(parseInt(_0x57f899(0xa3))/0x8)+parseInt(_0x57f899(0xb0))/0x9*(parseInt(_0x57f899(0xae))/0xa)+-parseInt(_0x57f899(0xa5))/0xb*(parseInt(_0x57f899(0xa4))/0xc);if(_0x2c24cc===_0x57cbf4)break;else _0x49e229['push'](_0x49e229['shift']());}catch(_0x466a79){_0x49e229['push'](_0x49e229['shift']());}}}(a31_0x1be4,0xa56e6));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a31_0x56dd8b(0xa6),'format':a31_0x56dd8b(0xb1),'locale':a31_0x56dd8b(0xac),'riskLevel':a31_0x56dd8b(0xab)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a31_0x56dd8b(0xb1);
1
+ const a32_0x2c42f7=a32_0x1595;function a32_0x1d97(){const _0x48c907=['563gKHPeN','16854660WAxMfy','150186DauQXT','en-US','889440Bnmdie','3238648gxHZXh','98gKIFwH','compress','2543981QFovNg','283915FLaolF','10coJOTz','161YbLWKD','main','12MDPDTO','9VFBUpc','write'];a32_0x1d97=function(){return _0x48c907;};return a32_0x1d97();}(function(_0xe347a0,_0x155c6a){const _0x577b66=a32_0x1595,_0xaf2357=_0xe347a0();while(!![]){try{const _0x47ae4b=parseInt(_0x577b66(0x201))/0x1*(-parseInt(_0x577b66(0x1f7))/0x2)+-parseInt(_0x577b66(0x1f5))/0x3+parseInt(_0x577b66(0x1fe))/0x4*(parseInt(_0x577b66(0x1fa))/0x5)+parseInt(_0x577b66(0x203))/0x6*(-parseInt(_0x577b66(0x1fc))/0x7)+parseInt(_0x577b66(0x1f6))/0x8*(-parseInt(_0x577b66(0x1ff))/0x9)+parseInt(_0x577b66(0x1fb))/0xa*(parseInt(_0x577b66(0x1f9))/0xb)+parseInt(_0x577b66(0x202))/0xc;if(_0x47ae4b===_0x155c6a)break;else _0xaf2357['push'](_0xaf2357['shift']());}catch(_0x117478){_0xaf2357['push'](_0xaf2357['shift']());}}}(a32_0x1d97,0x7a73c));export const DEFAULT_APP_PROFILE_NAME=a32_0x2c42f7(0x1fd);function a32_0x1595(_0x4304f4,_0x20cef2){_0x4304f4=_0x4304f4-0x1f4;const _0x1d9718=a32_0x1d97();let _0x159580=_0x1d9718[_0x4304f4];return _0x159580;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a32_0x2c42f7(0x1f8),'locale':a32_0x2c42f7(0x1f4),'riskLevel':a32_0x2c42f7(0x200)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a32_0x2c42f7(0x1f8);
@@ -1 +1 @@
1
- const a32_0x125c6d=a32_0x4fc6;function a32_0x4fc6(_0x2e5fdf,_0x3cd2ce){_0x2e5fdf=_0x2e5fdf-0x135;const _0x59b3b2=a32_0x59b3();let _0x4fc62b=_0x59b3b2[_0x2e5fdf];return _0x4fc62b;}(function(_0x490b9d,_0x28dd1b){const _0x3763ae=a32_0x4fc6,_0x76154=_0x490b9d();while(!![]){try{const _0x428863=-parseInt(_0x3763ae(0x13a))/0x1+parseInt(_0x3763ae(0x138))/0x2+parseInt(_0x3763ae(0x13d))/0x3+-parseInt(_0x3763ae(0x13f))/0x4*(parseInt(_0x3763ae(0x136))/0x5)+-parseInt(_0x3763ae(0x13b))/0x6*(parseInt(_0x3763ae(0x141))/0x7)+-parseInt(_0x3763ae(0x137))/0x8*(parseInt(_0x3763ae(0x13e))/0x9)+parseInt(_0x3763ae(0x144))/0xa;if(_0x428863===_0x28dd1b)break;else _0x76154['push'](_0x76154['shift']());}catch(_0x2a5181){_0x76154['push'](_0x76154['shift']());}}}(a32_0x59b3,0xb59f2));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x31ea63){const _0x10f4a4=a32_0x4fc6;customApiDomain=_0x31ea63?.[_0x10f4a4(0x135)],customUserDomain=_0x31ea63?.[_0x10f4a4(0x143)],customRuntimeDomain=_0x31ea63?.['runtimeDomain'];}function a32_0x59b3(){const _0x5d381a=['https://daily-api.lovrabet.com','827702oYbYtM','5838RkYpIK','https://api.lovrabet.com','4024899XznPrX','27LEtpaW','4vgWpTh','https://user.lovrabet.com','9947yscUnM','https://user-daily.lovrabet.com','userDomain','22760620tOYFWf','apiDomain','3057130vJuMts','1076704MeUCWH','703504DKWQrr'];a32_0x59b3=function(){return _0x5d381a;};return a32_0x59b3();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a32_0x125c6d(0x140):a32_0x125c6d(0x142));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a32_0x125c6d(0x13c):a32_0x125c6d(0x139));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');
1
+ const a33_0x540cbf=a33_0x3060;(function(_0x1a4b87,_0x177cb0){const _0x52c0e3=a33_0x3060,_0x424088=_0x1a4b87();while(!![]){try{const _0x311849=-parseInt(_0x52c0e3(0x19a))/0x1*(-parseInt(_0x52c0e3(0x192))/0x2)+parseInt(_0x52c0e3(0x195))/0x3+-parseInt(_0x52c0e3(0x18f))/0x4+parseInt(_0x52c0e3(0x194))/0x5*(parseInt(_0x52c0e3(0x19e))/0x6)+-parseInt(_0x52c0e3(0x196))/0x7+parseInt(_0x52c0e3(0x19c))/0x8*(-parseInt(_0x52c0e3(0x190))/0x9)+parseInt(_0x52c0e3(0x197))/0xa*(parseInt(_0x52c0e3(0x19d))/0xb);if(_0x311849===_0x177cb0)break;else _0x424088['push'](_0x424088['shift']());}catch(_0x40f9f9){_0x424088['push'](_0x424088['shift']());}}}(a33_0x47d6,0xa5326));import{getEnv,isProduction}from'../constant/env.js';function a33_0x47d6(){const _0x36dda8=['https://daily-runtime.lovrabet.com','runtimeDomain','32483FeQATr','https://daily-api.lovrabet.com','80dtGDwM','4801423ylWyzc','16662XPRxdq','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','https://api.lovrabet.com','apiDomain','3080844vKxRXm','469971FtmGJl','userDomain','22vWvJHd','https://user.lovrabet.com','225JBNwvH','3425337mSMLsi','6751423vOnFlg','30mCEhAh'];a33_0x47d6=function(){return _0x36dda8;};return a33_0x47d6();}let customApiDomain,customUserDomain,customRuntimeDomain;function a33_0x3060(_0x23cd7c,_0x38e9d8){_0x23cd7c=_0x23cd7c-0x18e;const _0x47d63d=a33_0x47d6();let _0x306045=_0x47d63d[_0x23cd7c];return _0x306045;}export function initDomains(_0x255ad5){const _0x2a4ba3=a33_0x3060;customApiDomain=_0x255ad5?.[_0x2a4ba3(0x18e)],customUserDomain=_0x255ad5?.[_0x2a4ba3(0x191)],customRuntimeDomain=_0x255ad5?.[_0x2a4ba3(0x199)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x540cbf(0x193):a33_0x540cbf(0x19f));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a33_0x540cbf(0x1a1):a33_0x540cbf(0x19b));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0x540cbf(0x1a0):a33_0x540cbf(0x198));
@@ -1 +1 @@
1
- const a33_0x29d04d=a33_0x4b42;(function(_0x1f2e57,_0x281fb0){const _0x57d5b8=a33_0x4b42,_0xfc8eb8=_0x1f2e57();while(!![]){try{const _0x14c900=-parseInt(_0x57d5b8(0x19e))/0x1*(parseInt(_0x57d5b8(0x19d))/0x2)+-parseInt(_0x57d5b8(0x1a6))/0x3*(-parseInt(_0x57d5b8(0x19b))/0x4)+-parseInt(_0x57d5b8(0x1a5))/0x5*(parseInt(_0x57d5b8(0x1a1))/0x6)+parseInt(_0x57d5b8(0x19f))/0x7*(-parseInt(_0x57d5b8(0x19a))/0x8)+parseInt(_0x57d5b8(0x1a8))/0x9*(parseInt(_0x57d5b8(0x1a4))/0xa)+-parseInt(_0x57d5b8(0x1a2))/0xb+-parseInt(_0x57d5b8(0x19c))/0xc*(-parseInt(_0x57d5b8(0x199))/0xd);if(_0x14c900===_0x281fb0)break;else _0xfc8eb8['push'](_0xfc8eb8['shift']());}catch(_0x2e403d){_0xfc8eb8['push'](_0xfc8eb8['shift']());}}}(a33_0xa70c,0x919eb));export const RUNTIME_ENV_VALUES=[a33_0x29d04d(0x1a7),'development',a33_0x29d04d(0x1a3)];function a33_0xa70c(){const _0x4d881f=['1035UlWcmS','2660189igQprq','dev','4071294SmhVRF','9848487ZnDvSA','daily','1293340dkwEQN','5TfZQUm','1294311QaSbay','production','9YLMrzZ','832BHeDYN','8UUMtiq','4sDgEVt','433788YCqNeh','626VZEhCH'];a33_0xa70c=function(){return _0x4d881f;};return a33_0xa70c();}export function normalizeEnv(_0x3461e6){const _0x4983f8=a33_0x29d04d;return _0x3461e6==='online'?_0x4983f8(0x1a7):_0x3461e6;}export function isProduction(_0x3fd796){const _0x14bf93=a33_0x29d04d;return normalizeEnv(_0x3fd796)===_0x14bf93(0x1a7);}export function isDaily(_0x4c7a92){return normalizeEnv(_0x4c7a92)==='daily';}export function isDev(_0x2a8fd0){const _0x37e007=a33_0x29d04d,_0x31e8a8=normalizeEnv(_0x2a8fd0);return _0x31e8a8==='development'||_0x31e8a8===_0x37e007(0x1a0);}function a33_0x4b42(_0x2cdd67,_0x279358){_0x2cdd67=_0x2cdd67-0x199;const _0xa70c68=a33_0xa70c();let _0x4b42cc=_0xa70c68[_0x2cdd67];return _0x4b42cc;}let env=normalizeEnv(process.env.LOVRABET_ENV||a33_0x29d04d(0x1a7));export function getEnv(){return env;}export function initEnv(_0x1ae2d5){env=normalizeEnv(_0x1ae2d5);}
1
+ const a34_0x42aad1=a34_0x13c8;(function(_0x1f91fd,_0x2a72f1){const _0x49085f=a34_0x13c8,_0x50ebc3=_0x1f91fd();while(!![]){try{const _0x1151d5=-parseInt(_0x49085f(0x9a))/0x1+parseInt(_0x49085f(0xa3))/0x2+parseInt(_0x49085f(0x9e))/0x3+parseInt(_0x49085f(0xa1))/0x4+-parseInt(_0x49085f(0x9d))/0x5+parseInt(_0x49085f(0xa2))/0x6*(parseInt(_0x49085f(0x9f))/0x7)+-parseInt(_0x49085f(0xa4))/0x8*(parseInt(_0x49085f(0x99))/0x9);if(_0x1151d5===_0x2a72f1)break;else _0x50ebc3['push'](_0x50ebc3['shift']());}catch(_0x69a65d){_0x50ebc3['push'](_0x50ebc3['shift']());}}}(a34_0x8cc0,0x767a5));export const RUNTIME_ENV_VALUES=[a34_0x42aad1(0x9c),a34_0x42aad1(0x9b),'daily'];export function normalizeEnv(_0x388677){const _0x6a7f4b=a34_0x42aad1;return _0x388677===_0x6a7f4b(0xa0)?_0x6a7f4b(0x9c):_0x388677;}function a34_0x13c8(_0x3e9a00,_0x177281){_0x3e9a00=_0x3e9a00-0x99;const _0x8cc0ef=a34_0x8cc0();let _0x13c8a1=_0x8cc0ef[_0x3e9a00];return _0x13c8a1;}export function isProduction(_0x158159){const _0x457aed=a34_0x42aad1;return normalizeEnv(_0x158159)===_0x457aed(0x9c);}export function isDaily(_0x1bf8c1){return normalizeEnv(_0x1bf8c1)==='daily';}export function isDev(_0x13d099){const _0x37cb15=a34_0x42aad1,_0x39b30a=normalizeEnv(_0x13d099);return _0x39b30a===_0x37cb15(0x9b)||_0x39b30a==='dev';}function a34_0x8cc0(){const _0x271caf=['4398544MdRMGV','9TIMRSn','960278ctBOAV','development','production','38995isxgFY','1544175yBfWTF','7GCHyXm','online','2062036hhNUJl','5193672SIgIzZ','214668YYQvEl'];a34_0x8cc0=function(){return _0x271caf;};return a34_0x8cc0();}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x42aad1(0x9c));export function getEnv(){return env;}export function initEnv(_0x299fd1){env=normalizeEnv(_0x299fd1);}
@@ -1 +1 @@
1
- const a34_0x351987=a34_0x4787;(function(_0xbe074e,_0x31c71f){const _0xba9d43=a34_0x4787,_0x205b0c=_0xbe074e();while(!![]){try{const _0x3ee8c6=parseInt(_0xba9d43(0x128))/0x1+-parseInt(_0xba9d43(0x127))/0x2*(parseInt(_0xba9d43(0x121))/0x3)+parseInt(_0xba9d43(0x123))/0x4*(-parseInt(_0xba9d43(0x11e))/0x5)+parseInt(_0xba9d43(0x124))/0x6+-parseInt(_0xba9d43(0x122))/0x7+parseInt(_0xba9d43(0x11f))/0x8+parseInt(_0xba9d43(0x126))/0x9;if(_0x3ee8c6===_0x31c71f)break;else _0x205b0c['push'](_0x205b0c['shift']());}catch(_0x4d476e){_0x205b0c['push'](_0x205b0c['shift']());}}}(a34_0x5b0c,0xbedf8));export const OUTPUT_FORMAT_VALUES=['json',a34_0x351987(0x120),a34_0x351987(0x125)];function a34_0x4787(_0x2a8ba5,_0xb55261){_0x2a8ba5=_0x2a8ba5-0x11e;const _0x5b0c03=a34_0x5b0c();let _0x4787d7=_0x5b0c03[_0x2a8ba5];return _0x4787d7;}function a34_0x5b0c(){const _0x346709=['188335YoIVWh','15XUlyjP','9863296tmMvbo','pretty','2853rGLvup','6874147fqrExv','1327152CcgNNq','208092YgcNpA','compress','20879019HEWvrl','2138QnzjwL'];a34_0x5b0c=function(){return _0x346709;};return a34_0x5b0c();}
1
+ const a35_0x108808=a35_0x3a2e;function a35_0x3a2e(_0x169579,_0x3ba9d4){_0x169579=_0x169579-0x1af;const _0x5bc180=a35_0x5bc1();let _0x3a2e1b=_0x5bc180[_0x169579];return _0x3a2e1b;}(function(_0xc85542,_0x2d504b){const _0x462042=a35_0x3a2e,_0x442f09=_0xc85542();while(!![]){try{const _0x1abc4c=parseInt(_0x462042(0x1b1))/0x1*(parseInt(_0x462042(0x1b4))/0x2)+-parseInt(_0x462042(0x1b6))/0x3+-parseInt(_0x462042(0x1b0))/0x4+parseInt(_0x462042(0x1bc))/0x5*(-parseInt(_0x462042(0x1b9))/0x6)+-parseInt(_0x462042(0x1bb))/0x7+parseInt(_0x462042(0x1b3))/0x8*(parseInt(_0x462042(0x1b2))/0x9)+parseInt(_0x462042(0x1ba))/0xa*(parseInt(_0x462042(0x1b8))/0xb);if(_0x1abc4c===_0x2d504b)break;else _0x442f09['push'](_0x442f09['shift']());}catch(_0x1ff42a){_0x442f09['push'](_0x442f09['shift']());}}}(a35_0x5bc1,0x58f4f));export const OUTPUT_FORMAT_VALUES=[a35_0x108808(0x1b5),a35_0x108808(0x1b7),a35_0x108808(0x1af)];function a35_0x5bc1(){const _0x411c2f=['38529qLsEnw','549YLjvfE','27824lgNtKk','18jYsiVB','json','1314486hcJfsK','pretty','6414958TuZPfN','1700286KnTLxu','30EWvbTF','4038552IuXzAP','10qrAzZw','compress','1448904siqNcv'];a35_0x5bc1=function(){return _0x411c2f;};return a35_0x5bc1();}
@@ -1 +1 @@
1
- const a35_0x3016cf=a35_0x3275;function a35_0x110a(){const _0x4cc84f=['1109232kPeWMu','1107yPtxFF','1820022AHhViY','high-risk-write','7254444icQtli','1201236wUHaPj','read','4KOXNhw','89440nHwvuG','4967459cjxPdB','10vOlZTU','1180135EyIyef','80uWGxYK'];a35_0x110a=function(){return _0x4cc84f;};return a35_0x110a();}function a35_0x3275(_0x100d9a,_0x5b7165){_0x100d9a=_0x100d9a-0x179;const _0x110ae5=a35_0x110a();let _0x327522=_0x110ae5[_0x100d9a];return _0x327522;}(function(_0x58a6d8,_0xe869d8){const _0x439d27=a35_0x3275,_0x2cac68=_0x58a6d8();while(!![]){try{const _0x2d44d8=-parseInt(_0x439d27(0x181))/0x1+-parseInt(_0x439d27(0x17b))/0x2*(parseInt(_0x439d27(0x183))/0x3)+parseInt(_0x439d27(0x179))/0x4*(parseInt(_0x439d27(0x17e))/0x5)+parseInt(_0x439d27(0x185))/0x6+parseInt(_0x439d27(0x17d))/0x7+parseInt(_0x439d27(0x17c))/0x8*(parseInt(_0x439d27(0x182))/0x9)+parseInt(_0x439d27(0x180))/0xa*(-parseInt(_0x439d27(0x17f))/0xb);if(_0x2d44d8===_0xe869d8)break;else _0x2cac68['push'](_0x2cac68['shift']());}catch(_0x4dd585){_0x2cac68['push'](_0x2cac68['shift']());}}}(a35_0x110a,0xae389));export const RISK_LEVEL_VALUES=[a35_0x3016cf(0x17a),'write',a35_0x3016cf(0x184)];
1
+ const a36_0x5e71bf=a36_0x1435;function a36_0x5d24(){const _0x3e3eb3=['6SRUXhb','655594KLcRPE','960880ObSPPQ','952fLrizq','652030ALNXsM','9CDsiut','19449880VbooYC','write','1067352JITfiU','high-risk-write','read','21204BmqnIA','3268524UNAulO'];a36_0x5d24=function(){return _0x3e3eb3;};return a36_0x5d24();}(function(_0x362318,_0x366f14){const _0x299a46=a36_0x1435,_0x24acc0=_0x362318();while(!![]){try{const _0x2fa38e=-parseInt(_0x299a46(0xe4))/0x1+parseInt(_0x299a46(0xde))/0x2+parseInt(_0x299a46(0xdb))/0x3*(-parseInt(_0x299a46(0xd8))/0x4)+parseInt(_0x299a46(0xda))/0x5*(parseInt(_0x299a46(0xe3))/0x6)+-parseInt(_0x299a46(0xe2))/0x7+-parseInt(_0x299a46(0xd9))/0x8*(parseInt(_0x299a46(0xe1))/0x9)+parseInt(_0x299a46(0xdc))/0xa;if(_0x2fa38e===_0x366f14)break;else _0x24acc0['push'](_0x24acc0['shift']());}catch(_0x1f3435){_0x24acc0['push'](_0x24acc0['shift']());}}}(a36_0x5d24,0x76890));function a36_0x1435(_0x33ba4d,_0x56546b){_0x33ba4d=_0x33ba4d-0xd8;const _0x5d2460=a36_0x5d24();let _0x14350b=_0x5d2460[_0x33ba4d];return _0x14350b;}export const RISK_LEVEL_VALUES=[a36_0x5e71bf(0xe0),a36_0x5e71bf(0xdd),a36_0x5e71bf(0xdf)];
@@ -0,0 +1 @@
1
+ function a37_0x5e0a(_0x4b17ac,_0x4f864f){_0x4b17ac=_0x4b17ac-0x186;const _0x45ae2e=a37_0x45ae();let _0x5e0a52=_0x45ae2e[_0x4b17ac];return _0x5e0a52;}const a37_0x582c54=a37_0x5e0a;(function(_0x523738,_0x4d5c5e){const _0x373b55=a37_0x5e0a,_0x49fa05=_0x523738();while(!![]){try{const _0x341e08=parseInt(_0x373b55(0x18c))/0x1*(-parseInt(_0x373b55(0x187))/0x2)+parseInt(_0x373b55(0x18d))/0x3*(-parseInt(_0x373b55(0x189))/0x4)+-parseInt(_0x373b55(0x190))/0x5*(parseInt(_0x373b55(0x192))/0x6)+parseInt(_0x373b55(0x191))/0x7*(parseInt(_0x373b55(0x18f))/0x8)+parseInt(_0x373b55(0x18b))/0x9*(-parseInt(_0x373b55(0x18a))/0xa)+-parseInt(_0x373b55(0x188))/0xb*(parseInt(_0x373b55(0x18e))/0xc)+parseInt(_0x373b55(0x186))/0xd;if(_0x341e08===_0x4d5c5e)break;else _0x49fa05['push'](_0x49fa05['shift']());}catch(_0x43bafa){_0x49fa05['push'](_0x49fa05['shift']());}}}(a37_0x45ae,0xd4b07));function a37_0x45ae(){const _0x19bb3a=['13433fIDpFt','633pswzti','5247192XGsmmE','950992lbpGyS','4744045maYjdo','14fAoyTT','6TaBcsj','https://user.lovrabet.com/user/ak','67412631KPVlWM','14qQAnIL','22QxCmYH','17428XONrXJ','1559510zdlUkb','99OlwkJB'];a37_0x45ae=function(){return _0x19bb3a;};return a37_0x45ae();}export const USER_ACCESS_KEY_CREATE_URL=a37_0x582c54(0x193);
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a36_0x5728e6=a36_0x3220;(function(_0x2ab86d,_0x25c5cb){const _0x24251f=a36_0x3220,_0x2f4ef9=_0x2ab86d();while(!![]){try{const _0x2481b9=parseInt(_0x24251f(0x162))/0x1+parseInt(_0x24251f(0x199))/0x2+-parseInt(_0x24251f(0x179))/0x3+parseInt(_0x24251f(0x178))/0x4+parseInt(_0x24251f(0x198))/0x5+parseInt(_0x24251f(0x172))/0x6*(-parseInt(_0x24251f(0x193))/0x7)+parseInt(_0x24251f(0x180))/0x8;if(_0x2481b9===_0x25c5cb)break;else _0x2f4ef9['push'](_0x2f4ef9['shift']());}catch(_0x2bbd24){_0x2f4ef9['push'](_0x2f4ef9['shift']());}}}(a36_0x324c,0x74598));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a36_0x3220(_0x39b544,_0x32ac00){_0x39b544=_0x39b544-0x15d;const _0x324c6b=a36_0x324c();let _0x3220b5=_0x324c6b[_0x39b544];return _0x3220b5;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=[a36_0x5728e6(0x168),a36_0x5728e6(0x18f)];export const NEW_CONFIG_NAME=a36_0x5728e6(0x168);function resolveConfigPath(_0x180a0a){for(const _0x4791d7 of CONFIG_NAMES){const _0x5c1574=resolve(_0x180a0a,_0x4791d7);if(existsSync(_0x5c1574))return _0x5c1574;}return undefined;}export function resolveWriteConfigPath(_0x3ef783){const _0x487697=a36_0x5728e6,_0x422e1d=_0x3ef783===_0x487697(0x175)?process[_0x487697(0x166)]():homedir(),_0x101826=resolveConfigPath(_0x422e1d);return _0x101826??resolve(_0x422e1d,NEW_CONFIG_NAME);}export function readConfigFile(_0x3652a7){const _0x5a57b1=a36_0x5728e6;try{if(existsSync(_0x3652a7)){const _0x32bea3=readFileSync(_0x3652a7,{'encoding':_0x5a57b1(0x177)});if(_0x32bea3){const _0x4db8b2=JSON['parse'](_0x32bea3);return migrateOnlineEnv(_0x3652a7,_0x4db8b2),_0x4db8b2;}}}catch{}return{};}function migrateOnlineEnv(_0x5a1145,_0x44166d){const _0x548570=a36_0x5728e6;let _0x29b7e8=![];_0x44166d[_0x548570(0x191)]===_0x548570(0x186)&&(_0x44166d[_0x548570(0x191)]=_0x548570(0x165),_0x29b7e8=!![]);if(_0x44166d[_0x548570(0x174)]&&typeof _0x44166d[_0x548570(0x174)]===_0x548570(0x16a))for(const _0x58004b of Object[_0x548570(0x197)](_0x44166d[_0x548570(0x174)])){_0x58004b&&_0x58004b[_0x548570(0x191)]==='online'&&(_0x58004b['env']=_0x548570(0x165),_0x29b7e8=!![]);}if(_0x29b7e8)try{writeConfigFile(_0x5a1145,_0x44166d);}catch{}}export function writeConfigFile(_0x26aae8,_0x3d9f4b){const _0xd4e93=a36_0x5728e6,_0x34751f=dirname(_0x26aae8);!existsSync(_0x34751f)&&mkdirSync(_0x34751f,{'recursive':!![]});const _0xfa21fc=_0x26aae8+_0xd4e93(0x17b);try{writeFileSync(_0xfa21fc,JSON['stringify'](_0x3d9f4b,null,0x2)+'\x0a',{'encoding':_0xd4e93(0x177),'mode':0x180});try{renameSync(_0xfa21fc,_0x26aae8);}catch(_0xec468e){if(_0xec468e[_0xd4e93(0x196)]===_0xd4e93(0x15f)||_0xec468e[_0xd4e93(0x196)]===_0xd4e93(0x17e)||_0xec468e['code']===_0xd4e93(0x17c)){writeFileSync(_0x26aae8,JSON[_0xd4e93(0x16c)](_0x3d9f4b,null,0x2)+'\x0a',{'encoding':_0xd4e93(0x177)});try{unlinkSync(_0xfa21fc);}catch{}}else throw _0xec468e;}}catch(_0x1c56d7){try{unlinkSync(_0xfa21fc);}catch{}throw _0x1c56d7;}}export function isNonInteractiveMode(_0xc24276){const _0x56cf8a=a36_0x5728e6;return!!(_0xc24276[_0x56cf8a(0x187)]||_0xc24276['ci']||process.env.LOVRABET_CI===_0x56cf8a(0x19a)||process.env.RABETBASE_CI==='true'||process.env.LOVRABET_CI===_0x56cf8a(0x19a)||process.env.CI===_0x56cf8a(0x19a)||!process['stdout'][_0x56cf8a(0x182)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x482b46=a36_0x5728e6;if(!process[_0x482b46(0x18a)][_0x482b46(0x182)])return![];try{const _0x53abc1=process[_0x482b46(0x18a)]['isRaw'];return process[_0x482b46(0x18a)]['setRawMode'](!![]),process[_0x482b46(0x18a)][_0x482b46(0x181)](_0x53abc1??![]),!![];}catch{return![];}}export async function createContext(_0xe0cb32){const _0x32bd16=a36_0x5728e6,_0x3deaaf=readRawConfig(),_0x3f94f4=buildConfig(_0x3deaaf,_0xe0cb32);await initGlobalEnvironment(_0x3f94f4);const {getUserDomain:_0x3150ac,getApiDomain:_0xc754e5}=await import(_0x32bd16(0x192)),_0x3dd79e={'apiDomain':_0xc754e5(),'userDomain':_0x3150ac()},_0x30d46b=await buildAuth(_0x3f94f4);logger['setLogPath'](process['cwd']());const _0x197a4c=(CLI_BIN_NAME+'\x20'+process[_0x32bd16(0x184)][_0x32bd16(0x189)](0x2)[_0x32bd16(0x16d)]('\x20'))[_0x32bd16(0x18d)]();logger['setRawCommand'](_0x197a4c);const _0xcc91ec=isNonInteractiveMode(_0xe0cb32);return{'config':_0x3f94f4,'auth':_0x30d46b,'logger':logger,'env':_0x3dd79e,'nonInteractive':_0xcc91ec};}export function buildConfigFromFlags(_0x169ee6){return buildConfig(readRawConfig(),_0x169ee6);}export function readAppCodeFromConfig(){const _0x392b0f=a36_0x5728e6,_0x1c2010=readRawConfig(),_0x379d63=_0x1c2010[_0x392b0f(0x170)]??_0x1c2010['app'];if(typeof _0x379d63===_0x392b0f(0x17f)&&_0x379d63[_0x392b0f(0x18d)]())return _0x379d63[_0x392b0f(0x18d)]();const _0x5aa7d7=_0x1c2010[_0x392b0f(0x174)]&&typeof _0x1c2010['apps']===_0x392b0f(0x16a)?_0x1c2010[_0x392b0f(0x174)]:{},_0x30bf58=_0x1c2010['defaultApp']?_0x5aa7d7[_0x1c2010['defaultApp']]:undefined;if(_0x30bf58?.[_0x392b0f(0x170)])return String(_0x30bf58[_0x392b0f(0x170)])['trim']();const _0x427270=normalizeEnv(String(_0x1c2010['env']||_0x392b0f(0x165))),_0x51f5b0=isDaily(_0x427270)?_0x392b0f(0x188):isDev(_0x427270)?'development':'production',_0xcdc903=resolveCachedAppCode(typeof _0x1c2010[_0x392b0f(0x16e)]===_0x392b0f(0x17f)?_0x1c2010[_0x392b0f(0x16e)]:undefined,_0x51f5b0,typeof _0x1c2010[_0x392b0f(0x19c)]==='string'?_0x1c2010['accessKey']:undefined);if(_0xcdc903)return _0xcdc903;const _0x473578=Object[_0x392b0f(0x197)](_0x5aa7d7)['find'](_0x49e5c2=>_0x49e5c2?.[_0x392b0f(0x170)]);return _0x473578?.[_0x392b0f(0x170)]?String(_0x473578[_0x392b0f(0x170)])[_0x392b0f(0x18d)]():undefined;}export function readScopedConfig(_0x8edfe8){const _0x29f9aa=a36_0x5728e6,_0x269254=_0x8edfe8[_0x29f9aa(0x15d)]?'global':_0x29f9aa(0x175);return readConfigFile(resolveWriteConfigPath(_0x269254));}export function writeScopedConfig(_0x3c2031,_0xf5313e){const _0x1b7bc5=a36_0x5728e6,_0x217af2=_0xf5313e['global']?'global':_0x1b7bc5(0x175);writeConfigFile(resolveWriteConfigPath(_0x217af2),_0x3c2031);}function a36_0x324c(){const _0x1db1dc=['EACCES','FORMAT','EXDEV','string','1957536AjHkJX','setRawMode','isTTY','error','argv','development','online','nonInteractive','daily','slice','stdin','missing','inherit','trim','APP','.lovrabetrc','VERBOSE','env','./constant/domain.js','11494vpJngh','high-risk-write','host','code','values','1606080SNRtxL','1744178eUeIdF','true','read','accessKey','global','format','EPERM','ACCESS_KEY','runtimeDomain','94347wJXRgq','raw','write','production','cwd','parse','.lovrabet.json','locale','object','userDomain','stringify','join','defaultApp','projectConfig','appcode','empty','1836sigvTy','riskLevel','apps','project','app','utf8','1115004ZuYgxj','2496225NHSkEM','APPCODE','.tmp'];a36_0x324c=function(){return _0x1db1dc;};return a36_0x324c();}export async function initGlobalEnvironment(_0xb7b263){const _0x1e3dfc=a36_0x5728e6,{initEnv:_0x42dbf5}=await import('./constant/env.js');_0x42dbf5(_0xb7b263[_0x1e3dfc(0x191)]);const {initDomains:_0x5bf5ba}=await import('./constant/domain.js');_0x5bf5ba({'apiDomain':_0xb7b263['raw']['apiDomain']||_0xb7b263[_0x1e3dfc(0x163)][_0x1e3dfc(0x195)]||undefined,'userDomain':_0xb7b263[_0x1e3dfc(0x163)][_0x1e3dfc(0x16b)]||undefined,'runtimeDomain':_0xb7b263[_0x1e3dfc(0x163)][_0x1e3dfc(0x161)]||undefined});}export function getProjectConfigPath(){const _0x3273a2=a36_0x5728e6;return resolveConfigPath(process[_0x3273a2(0x166)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5561a8){const _0x158da7=a36_0x5728e6;if(!existsSync(_0x5561a8))return{'status':_0x158da7(0x18b)};try{const _0x3d23aa=readFileSync(_0x5561a8,{'encoding':_0x158da7(0x177)});if(!_0x3d23aa?.[_0x158da7(0x18d)]())return{'status':_0x158da7(0x171)};const _0xef99=JSON['parse'](_0x3d23aa);return{'status':'ok','data':_0xef99};}catch(_0xffe706){return{'status':_0x158da7(0x183),'message':_0xffe706 instanceof Error?_0xffe706['message']:String(_0xffe706)};}}export function loadRawConfigLayers(_0x1b6e95){const _0xc074b2=a36_0x5728e6;let _0x2cdb28={},_0xcabab3={},_0x2c406c,_0xb94825;try{_0x2c406c=resolveConfigPath(homedir());if(_0x2c406c){const _0x13c86a=readFileSync(_0x2c406c,{'encoding':'utf8'});if(_0x13c86a)_0x2cdb28=JSON[_0xc074b2(0x167)](_0x13c86a);}}catch{}try{const _0x721273=_0x1b6e95||process['cwd']();_0xb94825=resolveConfigPath(_0x721273);if(_0xb94825){const _0x36dd2c=readFileSync(_0xb94825,{'encoding':_0xc074b2(0x177)});if(_0x36dd2c)_0xcabab3=JSON[_0xc074b2(0x167)](_0x36dd2c);}}catch{}return{'globalPath':_0x2c406c,'projectPath':_0xb94825,'globalConfig':_0x2cdb28,'projectConfig':_0xcabab3};}function mergeRawConfigLayers(_0x19a9fe){const _0x14ee4b=a36_0x5728e6,{globalConfig:_0x42475d,projectConfig:_0x3363cb}=_0x19a9fe;if(_0x3363cb['inherit']===![]){const _0x4fe43c={..._0x3363cb};return delete _0x4fe43c[_0x14ee4b(0x18c)],_0x4fe43c;}const _0x23b27d={..._0x42475d,..._0x3363cb};if('defaultApp'in _0x3363cb)_0x23b27d[_0x14ee4b(0x16e)]=_0x3363cb[_0x14ee4b(0x16e)];else _0x42475d[_0x14ee4b(0x16e)]&&(_0x23b27d[_0x14ee4b(0x16e)]=_0x42475d[_0x14ee4b(0x16e)]);return _0x23b27d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x56ee87){return mergeRawConfigLayers(loadRawConfigLayers(_0x56ee87));}export function readRawConfigWithLayers(_0x30d1ac){const _0xd2bb6=loadRawConfigLayers(_0x30d1ac);return{'config':mergeRawConfigLayers(_0xd2bb6),'layers':_0xd2bb6};}export function resolveDefaultAppSource(_0x1abdff){const _0x5063a2=a36_0x5728e6;if(_0x5063a2(0x16e)in _0x1abdff[_0x5063a2(0x16f)])return'project';if(_0x1abdff[_0x5063a2(0x16f)]['inherit']===![])return null;if(_0x1abdff['globalConfig'][_0x5063a2(0x16e)])return'global';return null;}function buildConfig(_0x25e8aa,_0x5e136d){const _0x1b6bca=a36_0x5728e6,_0xbbb5a4=_0x25e8aa['defaultApp']||undefined,_0x4ed42e=_0x5e136d[_0x1b6bca(0x176)]||env(_0x1b6bca(0x18e))||undefined,_0xe80642=_0x4ed42e||_0xbbb5a4||undefined,_0x29dc90=env(_0x1b6bca(0x160))||_0x25e8aa['accessKey']||undefined,_0x468902=_0x5e136d[_0x1b6bca(0x191)]||env('ENV')||_0x25e8aa[_0x1b6bca(0x191)]||DEFAULT_CONFIG_VALUES[_0x1b6bca(0x191)],_0x323ce4=normalizeEnv(String(_0x468902)),_0x1a97b5=isDaily(_0x323ce4)?_0x1b6bca(0x188):isDev(_0x323ce4)?_0x1b6bca(0x185):'production',_0x287469=resolveCachedAppCode(_0xe80642,_0x1a97b5,_0x29dc90),_0x5932e0=_0x5e136d[_0x1b6bca(0x170)]||env(_0x1b6bca(0x17a))||_0x287469||_0x25e8aa[_0x1b6bca(0x170)]||_0x25e8aa['app']||undefined,_0x126d43=_0x25e8aa[_0x1b6bca(0x169)]||DEFAULT_CONFIG_VALUES[_0x1b6bca(0x169)],_0x24903e=undefined,_0x12b8c6=_0x5e136d[_0x1b6bca(0x15e)]||env(_0x1b6bca(0x17d))||_0x25e8aa[_0x1b6bca(0x15e)],_0x294b1b=normalizeLegacyOutputFormat(_0x12b8c6),_0x4dab49=env('PAGE_SIZE')||_0x25e8aa['pageSize'],_0x407904=_0x4dab49?Number(_0x4dab49)||undefined:undefined,_0x321f03=_0x25e8aa[_0x1b6bca(0x173)]||_0x25e8aa['maxRisk'],_0x2a2207=_0x321f03===_0x1b6bca(0x19b)||_0x321f03===_0x1b6bca(0x164)||_0x321f03===_0x1b6bca(0x194)?_0x321f03:DEFAULT_CONFIG_VALUES[_0x1b6bca(0x173)],_0xbce43=env(_0x1b6bca(0x190)),_0x2cb2f0=_0xbce43==='1'||_0xbce43==='true';return{'appCode':typeof _0x5932e0===_0x1b6bca(0x17f)&&_0x5932e0['trim']()?_0x5932e0[_0x1b6bca(0x18d)]():undefined,'env':_0x1a97b5,'locale':_0x126d43,'cookie':_0x24903e,'accessKey':_0x29dc90,'format':_0x294b1b,'pageSize':_0x407904,'riskLevel':_0x2a2207,'verbose':_0x2cb2f0,'defaultApp':_0xbbb5a4,'currentApp':typeof _0xe80642==='string'?_0xe80642:undefined,'raw':_0x25e8aa};}function env(_0x4cb74b){return process.env[`LOVRABET_${_0x4cb74b}`]||undefined;}async function buildAuth(_0x142e54){const _0x1f72da=a36_0x5728e6,_0x517cfe='',_0x16c8ab=!!_0x142e54[_0x1f72da(0x19c)];return{'cookie':_0x517cfe,'isLoggedIn':_0x16c8ab,async 'getOrLogin'(){if(_0x16c8ab)return _0x517cfe;throw CliErrors['authRequired']();}};}
1
+ const a38_0xb0c848=a38_0x51c7;(function(_0x487315,_0x510d5e){const _0x1eb8c7=a38_0x51c7,_0x4211df=_0x487315();while(!![]){try{const _0x732bd8=parseInt(_0x1eb8c7(0x177))/0x1*(parseInt(_0x1eb8c7(0x169))/0x2)+-parseInt(_0x1eb8c7(0x18e))/0x3+parseInt(_0x1eb8c7(0x163))/0x4+parseInt(_0x1eb8c7(0x15d))/0x5+-parseInt(_0x1eb8c7(0x18c))/0x6*(-parseInt(_0x1eb8c7(0x17f))/0x7)+-parseInt(_0x1eb8c7(0x18f))/0x8+-parseInt(_0x1eb8c7(0x195))/0x9*(-parseInt(_0x1eb8c7(0x159))/0xa);if(_0x732bd8===_0x510d5e)break;else _0x4211df['push'](_0x4211df['shift']());}catch(_0x2ebd9c){_0x4211df['push'](_0x4211df['shift']());}}}(a38_0xee5d,0xdecc3));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a38_0x51c7(_0xb935f8,_0x24ee9c){_0xb935f8=_0xb935f8-0x151;const _0xee5db1=a38_0xee5d();let _0x51c7e3=_0xee5db1[_0xb935f8];return _0x51c7e3;}import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=[a38_0xb0c848(0x188),a38_0xb0c848(0x196)];export const NEW_CONFIG_NAME='.lovrabet.json';function resolveConfigPath(_0x3f407b){for(const _0x1ebb4f of CONFIG_NAMES){const _0x5ad23e=resolve(_0x3f407b,_0x1ebb4f);if(existsSync(_0x5ad23e))return _0x5ad23e;}return undefined;}export function resolveWriteConfigPath(_0x15463e){const _0x3efb01=a38_0xb0c848,_0x49d7b0=_0x15463e===_0x3efb01(0x192)?process[_0x3efb01(0x168)]():homedir(),_0x2a6430=resolveConfigPath(_0x49d7b0);return _0x2a6430??resolve(_0x49d7b0,NEW_CONFIG_NAME);}function a38_0xee5d(){const _0x1078c0=['parse','1536648EJNSge','string','missing','true','read','cwd','29486lCVIak','values','code','online','stdin','stringify','format','stdout','riskLevel','APPCODE','slice','nonInteractive','EPERM','find','23NUWLuj','production','error','global','object','maxRisk','defaultApp','locale','21NCMUgq','apps','./constant/domain.js','projectConfig','.tmp','./constant/env.js','PAGE_SIZE','message','isRaw','.lovrabet.json','env','argv','host','2558622fVmzDG','utf8','863181zqnRut','13793048wEXIzw','pageSize','empty','project','isTTY','setRawMode','207NVwyfr','.lovrabetrc','inherit','apiDomain','daily','development','setLogPath','accessKey','globalConfig','high-risk-write','FORMAT','321920jfDnVZ','app','VERBOSE','runtimeDomain','907295iuVRdA','ENV','trim','appcode','raw'];a38_0xee5d=function(){return _0x1078c0;};return a38_0xee5d();}export function readConfigFile(_0x3bdf96){const _0x16b865=a38_0xb0c848;try{if(existsSync(_0x3bdf96)){const _0x54e649=readFileSync(_0x3bdf96,{'encoding':_0x16b865(0x18d)});if(_0x54e649){const _0x16f53a=JSON[_0x16b865(0x162)](_0x54e649);return migrateOnlineEnv(_0x3bdf96,_0x16f53a),_0x16f53a;}}}catch{}return{};}function migrateOnlineEnv(_0x5b5c7b,_0x137356){const _0x5627cc=a38_0xb0c848;let _0x2fd6b0=![];_0x137356['env']===_0x5627cc(0x16c)&&(_0x137356[_0x5627cc(0x189)]=_0x5627cc(0x178),_0x2fd6b0=!![]);if(_0x137356['apps']&&typeof _0x137356[_0x5627cc(0x180)]===_0x5627cc(0x17b))for(const _0x3e9651 of Object['values'](_0x137356[_0x5627cc(0x180)])){_0x3e9651&&_0x3e9651[_0x5627cc(0x189)]===_0x5627cc(0x16c)&&(_0x3e9651[_0x5627cc(0x189)]=_0x5627cc(0x178),_0x2fd6b0=!![]);}if(_0x2fd6b0)try{writeConfigFile(_0x5b5c7b,_0x137356);}catch{}}export function writeConfigFile(_0x189057,_0x1eff71){const _0x455cc0=a38_0xb0c848,_0x57770f=dirname(_0x189057);!existsSync(_0x57770f)&&mkdirSync(_0x57770f,{'recursive':!![]});const _0x24350f=_0x189057+_0x455cc0(0x183);try{writeFileSync(_0x24350f,JSON[_0x455cc0(0x16e)](_0x1eff71,null,0x2)+'\x0a',{'encoding':_0x455cc0(0x18d),'mode':0x180});try{renameSync(_0x24350f,_0x189057);}catch(_0x4c24fc){if(_0x4c24fc['code']===_0x455cc0(0x175)||_0x4c24fc['code']==='EXDEV'||_0x4c24fc[_0x455cc0(0x16b)]==='EACCES'){writeFileSync(_0x189057,JSON[_0x455cc0(0x16e)](_0x1eff71,null,0x2)+'\x0a',{'encoding':_0x455cc0(0x18d)});try{unlinkSync(_0x24350f);}catch{}}else throw _0x4c24fc;}}catch(_0x91220a){try{unlinkSync(_0x24350f);}catch{}throw _0x91220a;}}export function isNonInteractiveMode(_0x5a9ff9){const _0x5859b5=a38_0xb0c848;return!!(_0x5a9ff9[_0x5859b5(0x174)]||_0x5a9ff9['ci']||process.env.LOVRABET_CI===_0x5859b5(0x166)||process.env.RABETBASE_CI===_0x5859b5(0x166)||process.env.LOVRABET_CI===_0x5859b5(0x166)||process.env.CI===_0x5859b5(0x166)||!process[_0x5859b5(0x170)][_0x5859b5(0x193)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x240f53=a38_0xb0c848;if(!process[_0x240f53(0x16d)]['isTTY'])return![];try{const _0x5738af=process[_0x240f53(0x16d)][_0x240f53(0x187)];return process[_0x240f53(0x16d)][_0x240f53(0x194)](!![]),process[_0x240f53(0x16d)][_0x240f53(0x194)](_0x5738af??![]),!![];}catch{return![];}}export async function createContext(_0x199a04){const _0x326848=a38_0xb0c848,_0x4940e0=readRawConfig(),_0x537ba4=buildConfig(_0x4940e0,_0x199a04);await initGlobalEnvironment(_0x537ba4);const {getUserDomain:_0x59381f,getApiDomain:_0x4342ed}=await import(_0x326848(0x181)),_0x37b9ff={'apiDomain':_0x4342ed(),'userDomain':_0x59381f()},_0x317516=await buildAuth(_0x537ba4);logger[_0x326848(0x154)](process['cwd']());const _0x139044=(CLI_BIN_NAME+'\x20'+process[_0x326848(0x18a)][_0x326848(0x173)](0x2)['join']('\x20'))[_0x326848(0x15f)]();logger['setRawCommand'](_0x139044);const _0x3bb441=isNonInteractiveMode(_0x199a04);return{'config':_0x537ba4,'auth':_0x317516,'logger':logger,'env':_0x37b9ff,'nonInteractive':_0x3bb441};}export function buildConfigFromFlags(_0x22a6ab){return buildConfig(readRawConfig(),_0x22a6ab);}export function readAppCodeFromConfig(){const _0x520e85=a38_0xb0c848,_0x1d604e=readRawConfig(),_0x908031=_0x1d604e['appcode']??_0x1d604e[_0x520e85(0x15a)];if(typeof _0x908031===_0x520e85(0x164)&&_0x908031[_0x520e85(0x15f)]())return _0x908031[_0x520e85(0x15f)]();const _0x4046d0=_0x1d604e[_0x520e85(0x180)]&&typeof _0x1d604e[_0x520e85(0x180)]===_0x520e85(0x17b)?_0x1d604e[_0x520e85(0x180)]:{},_0x490425=_0x1d604e[_0x520e85(0x17d)]?_0x4046d0[_0x1d604e[_0x520e85(0x17d)]]:undefined;if(_0x490425?.['appcode'])return String(_0x490425[_0x520e85(0x160)])[_0x520e85(0x15f)]();const _0x4d6a9a=normalizeEnv(String(_0x1d604e['env']||_0x520e85(0x178))),_0xc38437=isDaily(_0x4d6a9a)?_0x520e85(0x152):isDev(_0x4d6a9a)?_0x520e85(0x153):'production',_0x107e40=resolveCachedAppCode(typeof _0x1d604e[_0x520e85(0x17d)]===_0x520e85(0x164)?_0x1d604e[_0x520e85(0x17d)]:undefined,_0xc38437,typeof _0x1d604e[_0x520e85(0x155)]==='string'?_0x1d604e['accessKey']:undefined);if(_0x107e40)return _0x107e40;const _0x3260ba=Object[_0x520e85(0x16a)](_0x4046d0)[_0x520e85(0x176)](_0x55cd53=>_0x55cd53?.[_0x520e85(0x160)]);return _0x3260ba?.[_0x520e85(0x160)]?String(_0x3260ba[_0x520e85(0x160)])[_0x520e85(0x15f)]():undefined;}export function readScopedConfig(_0xa8a645){const _0x32684c=a38_0xb0c848,_0x46bbb7=_0xa8a645[_0x32684c(0x17a)]?_0x32684c(0x17a):_0x32684c(0x192);return readConfigFile(resolveWriteConfigPath(_0x46bbb7));}export function writeScopedConfig(_0x50d575,_0x5e2c10){const _0x132404=a38_0xb0c848,_0x2779e1=_0x5e2c10['global']?_0x132404(0x17a):_0x132404(0x192);writeConfigFile(resolveWriteConfigPath(_0x2779e1),_0x50d575);}export async function initGlobalEnvironment(_0x36a859){const _0x577c54=a38_0xb0c848,{initEnv:_0x5baf0e}=await import(_0x577c54(0x184));_0x5baf0e(_0x36a859[_0x577c54(0x189)]);const {initDomains:_0x227c4d}=await import(_0x577c54(0x181));_0x227c4d({'apiDomain':_0x36a859[_0x577c54(0x161)][_0x577c54(0x151)]||_0x36a859[_0x577c54(0x161)][_0x577c54(0x18b)]||undefined,'userDomain':_0x36a859['raw']['userDomain']||undefined,'runtimeDomain':_0x36a859[_0x577c54(0x161)][_0x577c54(0x15c)]||undefined});}export function getProjectConfigPath(){const _0x45a48a=a38_0xb0c848;return resolveConfigPath(process[_0x45a48a(0x168)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2bfb23){const _0x397acb=a38_0xb0c848;if(!existsSync(_0x2bfb23))return{'status':_0x397acb(0x165)};try{const _0x3e50f1=readFileSync(_0x2bfb23,{'encoding':_0x397acb(0x18d)});if(!_0x3e50f1?.[_0x397acb(0x15f)]())return{'status':_0x397acb(0x191)};const _0x4dd73b=JSON['parse'](_0x3e50f1);return{'status':'ok','data':_0x4dd73b};}catch(_0x6633a9){return{'status':_0x397acb(0x179),'message':_0x6633a9 instanceof Error?_0x6633a9[_0x397acb(0x186)]:String(_0x6633a9)};}}export function loadRawConfigLayers(_0x248009){const _0x15b90a=a38_0xb0c848;let _0x37d07f={},_0x142767={},_0x527828,_0x2a83fa;try{_0x527828=resolveConfigPath(homedir());if(_0x527828){const _0x2b48d5=readFileSync(_0x527828,{'encoding':_0x15b90a(0x18d)});if(_0x2b48d5)_0x37d07f=JSON['parse'](_0x2b48d5);}}catch{}try{const _0x10e5de=_0x248009||process[_0x15b90a(0x168)]();_0x2a83fa=resolveConfigPath(_0x10e5de);if(_0x2a83fa){const _0x8fa0ea=readFileSync(_0x2a83fa,{'encoding':'utf8'});if(_0x8fa0ea)_0x142767=JSON[_0x15b90a(0x162)](_0x8fa0ea);}}catch{}return{'globalPath':_0x527828,'projectPath':_0x2a83fa,'globalConfig':_0x37d07f,'projectConfig':_0x142767};}function mergeRawConfigLayers(_0x3b856d){const _0x27a508=a38_0xb0c848,{globalConfig:_0x4e1168,projectConfig:_0x36a5a5}=_0x3b856d;if(_0x36a5a5[_0x27a508(0x197)]===![]){const _0x3c82c7={..._0x36a5a5};return delete _0x3c82c7['inherit'],_0x3c82c7;}const _0x3b0dd2={..._0x4e1168,..._0x36a5a5};if('defaultApp'in _0x36a5a5)_0x3b0dd2[_0x27a508(0x17d)]=_0x36a5a5[_0x27a508(0x17d)];else _0x4e1168[_0x27a508(0x17d)]&&(_0x3b0dd2[_0x27a508(0x17d)]=_0x4e1168[_0x27a508(0x17d)]);return _0x3b0dd2;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1a4479){return mergeRawConfigLayers(loadRawConfigLayers(_0x1a4479));}export function readRawConfigWithLayers(_0xf163e9){const _0x5063be=loadRawConfigLayers(_0xf163e9);return{'config':mergeRawConfigLayers(_0x5063be),'layers':_0x5063be};}export function resolveDefaultAppSource(_0x26a19c){const _0x336211=a38_0xb0c848;if('defaultApp'in _0x26a19c[_0x336211(0x182)])return _0x336211(0x192);if(_0x26a19c['projectConfig'][_0x336211(0x197)]===![])return null;if(_0x26a19c[_0x336211(0x156)]['defaultApp'])return _0x336211(0x17a);return null;}function buildConfig(_0xfb1c38,_0x592741){const _0x200319=a38_0xb0c848,_0x4dc2e6=_0xfb1c38['defaultApp']||undefined,_0x4f6582=_0x592741[_0x200319(0x15a)]||env('APP')||undefined,_0xae256e=_0x4f6582||_0x4dc2e6||undefined,_0x3f19f3=env('ACCESS_KEY')||_0xfb1c38[_0x200319(0x155)]||undefined,_0x46bca3=_0x592741[_0x200319(0x189)]||env(_0x200319(0x15e))||_0xfb1c38[_0x200319(0x189)]||DEFAULT_CONFIG_VALUES['env'],_0x2a2392=normalizeEnv(String(_0x46bca3)),_0x14201b=isDaily(_0x2a2392)?'daily':isDev(_0x2a2392)?_0x200319(0x153):_0x200319(0x178),_0x46a5fd=resolveCachedAppCode(_0xae256e,_0x14201b,_0x3f19f3),_0x4f9a17=_0x592741[_0x200319(0x160)]||env(_0x200319(0x172))||_0x46a5fd||_0xfb1c38[_0x200319(0x160)]||_0xfb1c38[_0x200319(0x15a)]||undefined,_0x5c2e92=_0xfb1c38[_0x200319(0x17e)]||DEFAULT_CONFIG_VALUES[_0x200319(0x17e)],_0x1e16f1=undefined,_0x41b47d=_0x592741[_0x200319(0x16f)]||env(_0x200319(0x158))||_0xfb1c38[_0x200319(0x16f)],_0x18cce1=normalizeLegacyOutputFormat(_0x41b47d),_0x20733a=env(_0x200319(0x185))||_0xfb1c38[_0x200319(0x190)],_0x516613=_0x20733a?Number(_0x20733a)||undefined:undefined,_0xad3b23=_0xfb1c38[_0x200319(0x171)]||_0xfb1c38[_0x200319(0x17c)],_0x4ded9c=_0xad3b23===_0x200319(0x167)||_0xad3b23==='write'||_0xad3b23===_0x200319(0x157)?_0xad3b23:DEFAULT_CONFIG_VALUES[_0x200319(0x171)],_0x7010e0=env(_0x200319(0x15b)),_0x18899c=_0x7010e0==='1'||_0x7010e0==='true';return{'appCode':typeof _0x4f9a17===_0x200319(0x164)&&_0x4f9a17['trim']()?_0x4f9a17[_0x200319(0x15f)]():undefined,'env':_0x14201b,'locale':_0x5c2e92,'cookie':_0x1e16f1,'accessKey':_0x3f19f3,'format':_0x18cce1,'pageSize':_0x516613,'riskLevel':_0x4ded9c,'verbose':_0x18899c,'defaultApp':_0x4dc2e6,'currentApp':typeof _0xae256e==='string'?_0xae256e:undefined,'raw':_0xfb1c38};}function env(_0x1663a1){return process.env[`LOVRABET_${_0x1663a1}`]||undefined;}async function buildAuth(_0x4dc87a){const _0x1d152c=a38_0xb0c848,_0x247ec1='',_0x5b972b=!!_0x4dc87a[_0x1d152c(0x155)];return{'cookie':_0x247ec1,'isLoggedIn':_0x5b972b,async 'getOrLogin'(){if(_0x5b972b)return _0x247ec1;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x46c323,_0x1dc65b){const _0x523fc5=a37_0x46bd,_0x2a4234=_0x46c323();while(!![]){try{const _0x4f0ddd=-parseInt(_0x523fc5(0x93))/0x1*(parseInt(_0x523fc5(0x83))/0x2)+parseInt(_0x523fc5(0xa0))/0x3+parseInt(_0x523fc5(0x9e))/0x4+-parseInt(_0x523fc5(0x80))/0x5*(-parseInt(_0x523fc5(0x88))/0x6)+parseInt(_0x523fc5(0x99))/0x7+parseInt(_0x523fc5(0x79))/0x8*(parseInt(_0x523fc5(0x87))/0x9)+-parseInt(_0x523fc5(0x7b))/0xa*(parseInt(_0x523fc5(0x90))/0xb);if(_0x4f0ddd===_0x1dc65b)break;else _0x2a4234['push'](_0x2a4234['shift']());}catch(_0x29a9ee){_0x2a4234['push'](_0x2a4234['shift']());}}}(a37_0x508e,0x2b84d));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5e6823){_activeAK=_0x5e6823||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x510465,_0x3a4e80={}){const _0x5c0439=a37_0x46bd,{method:method=_0x5c0439(0x7a),body:_0x2db646,headers:headers={},timeout:timeout=0x7530}=_0x3a4e80,_0x17f36e=_activeAK,_0x10bfa8=getRuntimeDomain();if(!_0x17f36e)throw CliErrors['authRequired'](_0x5c0439(0x78));const _0x38ef6c=''+_0x10bfa8+_0x510465,_0x470822={'X-User-AK':_0x17f36e},_0x44ffca=new AbortController(),_0x1a43bd=setTimeout(()=>_0x44ffca[_0x5c0439(0x92)](),timeout);try{const _0xe95ee6=await fetch(_0x38ef6c,{'method':method,'headers':{'Content-Type':_0x5c0439(0x74),'X-Invoke-Source':'cli:lovrabet-runtime',..._0x470822,...headers},'body':_0x2db646?JSON[_0x5c0439(0x77)](_0x2db646):undefined,'signal':_0x44ffca[_0x5c0439(0x89)]});let _0x1f7462;try{_0x1f7462=await _0xe95ee6['json']();}catch{throw CliErrors[_0x5c0439(0x7c)](_0x5c0439(0x85)+_0xe95ee6['status']+')',_0xe95ee6[_0x5c0439(0xa1)]>=0x190?_0x5c0439(0x9c):undefined);}if(!_0xe95ee6['ok']||_0x1f7462[_0x5c0439(0x9d)]===![])throw CliErrors[_0x5c0439(0x7c)](_0x1f7462[_0x5c0439(0x8a)]||_0x1f7462[_0x5c0439(0x8b)]||_0x5c0439(0x9a)+_0xe95ee6[_0x5c0439(0xa1)],_0x1f7462[_0x5c0439(0x75)]?'API\x20error\x20code:\x20'+_0x1f7462[_0x5c0439(0x75)]:undefined);return _0x1f7462;}catch(_0x45608d){if(_0x45608d instanceof Error&&_0x45608d['name']==='AbortError')throw CliErrors[_0x5c0439(0x7c)](_0x5c0439(0x7f)+_0x38ef6c);throw _0x45608d;}finally{clearTimeout(_0x1a43bd);}}export async function getBffScriptInfo(_0x384815){const _0x5cdb28=a37_0x46bd,_0x57293b=await apiRequest(_0x5cdb28(0x91)+_0x384815);if(!_0x57293b[_0x5cdb28(0x7e)])throw CliErrors[_0x5cdb28(0x8d)]('BFF\x20script\x20not\x20found:\x20id='+_0x384815);return _0x57293b['data'];}export async function getSqlQueryInfo(_0x1f4365,_0x39b7d1){const _0x38f573=a37_0x46bd,_0x2d5043=await apiRequest('/client/sql/query',{'method':'POST','body':{'appCode':_0x1f4365,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x39b7d1}}),_0x1af7ab=_0x2d5043[_0x38f573(0x7e)],_0x1f72bc=_0x1af7ab&&typeof _0x1af7ab===_0x38f573(0x84)&&'tableData'in _0x1af7ab?_0x1af7ab[_0x38f573(0x98)]?.[0x0]:_0x1af7ab&&typeof _0x1af7ab===_0x38f573(0x84)&&_0x38f573(0x82)in _0x1af7ab?_0x1af7ab:undefined;if(!_0x1f72bc)throw CliErrors['validation'](_0x38f573(0x86)+_0x39b7d1);return _0x1f72bc;}function a37_0x508e(){const _0x22e1ff=['Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Check\x20your\x20credentials\x20and\x20try\x20again.','success','1080572XTjJzx','test','544302tUUzXo','status','string','name','application/json','errorCode','/client/dataset/list','stringify','Configure\x20accessKey\x20in\x20.lovrabet.json.','32QxvuiM','GET','20IWvwYz','apiError','filter','data','Request\x20timeout:\x20','53670caaFKO','appCode','sqlCode','32eyvxca','object','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SQL\x20query\x20not\x20found:\x20','656379CzYTSX','6wkqQuT','signal','errorMsg','message','/client/dataset/query?','validation','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','isArray','2763772TgJkco','/client/bff/query/','abort','5617KLOxKB','POST','appName','code','/client/app/my-apps','tableData','116158wYKLIr','API\x20error:\x20'];a37_0x508e=function(){return _0x22e1ff;};return a37_0x508e();}function isRemoteAppItem(_0x160488){const _0x5bf105=a37_0x46bd;return!!_0x160488&&typeof _0x160488===_0x5bf105(0x84)&&typeof _0x160488[_0x5bf105(0x81)]===_0x5bf105(0x72)&&typeof _0x160488[_0x5bf105(0x95)]===_0x5bf105(0x72);}function extractRemoteAppItems(_0x4495a6){const _0x36ffc7=a37_0x46bd;if(Array['isArray'](_0x4495a6))return _0x4495a6[_0x36ffc7(0x7d)](isRemoteAppItem);if(!_0x4495a6||typeof _0x4495a6!=='object')throw CliErrors[_0x36ffc7(0x7c)](_0x36ffc7(0x9b));const _0x34ad1f=_0x4495a6;if(Array[_0x36ffc7(0x8f)](_0x34ad1f['tableData']))return _0x34ad1f[_0x36ffc7(0x98)]['filter'](isRemoteAppItem);if(_0x34ad1f[_0x36ffc7(0x7e)]&&typeof _0x34ad1f['data']===_0x36ffc7(0x84)){const _0x4181ff=_0x34ad1f[_0x36ffc7(0x7e)];if(Array[_0x36ffc7(0x8f)](_0x4181ff[_0x36ffc7(0x98)]))return _0x4181ff[_0x36ffc7(0x98)]['filter'](isRemoteAppItem);}throw CliErrors[_0x36ffc7(0x7c)](_0x36ffc7(0x8e));}export async function getMyApps(){const _0x10b58b=a37_0x46bd,_0x2839dc=await apiRequest(_0x10b58b(0x97));return extractRemoteAppItems(_0x2839dc[_0x10b58b(0x7e)]);}function a37_0x46bd(_0xe1c463,_0xe2db2b){_0xe1c463=_0xe1c463-0x72;const _0x508eea=a37_0x508e();let _0x46bd10=_0x508eea[_0xe1c463];return _0x46bd10;}export async function listDatasets(_0x384672,_0x4653c0){const _0xc44d49=a37_0x46bd,_0x5dac17=await apiRequest(_0xc44d49(0x76),{'method':_0xc44d49(0x94),'body':{'appCode':_0x384672,..._0x4653c0?.[_0xc44d49(0x96)]&&{'code':_0x4653c0[_0xc44d49(0x96)]},..._0x4653c0?.[_0xc44d49(0x73)]&&{'name':_0x4653c0['name']}}});return extractList(_0x5dac17['data']);}export async function getDatasetDetail(_0x599be1){const _0x37b265=a37_0x46bd,_0x179fba=/^\d+$/[_0x37b265(0x9f)](_0x599be1)?'id':_0x37b265(0x96),_0x5cd603=await apiRequest(_0x37b265(0x8c)+_0x179fba+'='+_0x599be1);return _0x5cd603[_0x37b265(0x7e)];}
1
+ (function(_0x4e6824,_0x346d94){const _0x16bb1f=a39_0x4218,_0x5def9=_0x4e6824();while(!![]){try{const _0x2ca419=-parseInt(_0x16bb1f(0x21b))/0x1*(-parseInt(_0x16bb1f(0x1ff))/0x2)+-parseInt(_0x16bb1f(0x20a))/0x3*(parseInt(_0x16bb1f(0x20f))/0x4)+-parseInt(_0x16bb1f(0x212))/0x5*(-parseInt(_0x16bb1f(0x1f3))/0x6)+parseInt(_0x16bb1f(0x219))/0x7+-parseInt(_0x16bb1f(0x1f7))/0x8+-parseInt(_0x16bb1f(0x1f8))/0x9+parseInt(_0x16bb1f(0x21c))/0xa*(-parseInt(_0x16bb1f(0x213))/0xb);if(_0x2ca419===_0x346d94)break;else _0x5def9['push'](_0x5def9['shift']());}catch(_0x57bd5b){_0x5def9['push'](_0x5def9['shift']());}}}(a39_0x4a91,0x5c5f4));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';function a39_0x4218(_0x7eccc,_0x3a9ae6){_0x7eccc=_0x7eccc-0x1f1;const _0x4a9109=a39_0x4a91();let _0x4218d6=_0x4a9109[_0x7eccc];return _0x4218d6;}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x31c421){_activeAK=_0x31c421||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2a477e,_0x1c534a={}){const _0x242e4a=a39_0x4218,{method:method='GET',body:_0x184a60,headers:headers={},timeout:timeout=0x7530}=_0x1c534a,_0x54b81b=_activeAK,_0x3abd27=getRuntimeDomain();if(!_0x54b81b)throw CliErrors[_0x242e4a(0x1fe)](_0x242e4a(0x218));const _0x44c1a9=''+_0x3abd27+_0x2a477e,_0x20502a={'X-User-AK':_0x54b81b},_0x4ae69=new AbortController(),_0x371daa=setTimeout(()=>_0x4ae69[_0x242e4a(0x200)](),timeout);try{const _0x3dc8f7=await fetch(_0x44c1a9,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':_0x242e4a(0x207),..._0x20502a,...headers},'body':_0x184a60?JSON['stringify'](_0x184a60):undefined,'signal':_0x4ae69[_0x242e4a(0x214)]});let _0x71d5c7;try{_0x71d5c7=await _0x3dc8f7[_0x242e4a(0x20d)]();}catch{throw CliErrors['apiError'](_0x242e4a(0x217)+_0x3dc8f7[_0x242e4a(0x20b)]+')',_0x3dc8f7['status']>=0x190?_0x242e4a(0x20c):undefined);}if(!_0x3dc8f7['ok']||_0x71d5c7[_0x242e4a(0x204)]===![])throw CliErrors[_0x242e4a(0x1f1)](_0x71d5c7['errorMsg']||_0x71d5c7['message']||'API\x20error:\x20'+_0x3dc8f7['status'],_0x71d5c7[_0x242e4a(0x215)]?'API\x20error\x20code:\x20'+_0x71d5c7[_0x242e4a(0x215)]:undefined);return _0x71d5c7;}catch(_0x2bc2e0){if(_0x2bc2e0 instanceof Error&&_0x2bc2e0[_0x242e4a(0x1f9)]===_0x242e4a(0x216))throw CliErrors[_0x242e4a(0x1f1)](_0x242e4a(0x21a)+_0x44c1a9);throw _0x2bc2e0;}finally{clearTimeout(_0x371daa);}}export async function getBffScriptInfo(_0xd2782b){const _0x1e3eaf=a39_0x4218,_0x54c1bc=await apiRequest(_0x1e3eaf(0x201)+_0xd2782b);if(!_0x54c1bc[_0x1e3eaf(0x210)])throw CliErrors[_0x1e3eaf(0x1fc)](_0x1e3eaf(0x1f4)+_0xd2782b);return _0x54c1bc['data'];}export async function getSqlQueryInfo(_0x357dd2,_0x2ec9fd){const _0x385d8f=a39_0x4218,_0x194b8a=await apiRequest(_0x385d8f(0x202),{'method':'POST','body':{'appCode':_0x357dd2,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2ec9fd}}),_0x2a1ae4=_0x194b8a[_0x385d8f(0x210)],_0x1732f9=_0x2a1ae4&&typeof _0x2a1ae4===_0x385d8f(0x205)&&_0x385d8f(0x20e)in _0x2a1ae4?_0x2a1ae4[_0x385d8f(0x20e)]?.[0x0]:_0x2a1ae4&&typeof _0x2a1ae4===_0x385d8f(0x205)&&_0x385d8f(0x1fb)in _0x2a1ae4?_0x2a1ae4:undefined;if(!_0x1732f9)throw CliErrors[_0x385d8f(0x1fc)](_0x385d8f(0x203)+_0x2ec9fd);return _0x1732f9;}function isRemoteAppItem(_0x55f133){const _0x11eb3e=a39_0x4218;return!!_0x55f133&&typeof _0x55f133===_0x11eb3e(0x205)&&typeof _0x55f133[_0x11eb3e(0x209)]===_0x11eb3e(0x1f6)&&typeof _0x55f133['appName']===_0x11eb3e(0x1f6);}function extractRemoteAppItems(_0x21a62b){const _0xbd7ca2=a39_0x4218;if(Array[_0xbd7ca2(0x206)](_0x21a62b))return _0x21a62b[_0xbd7ca2(0x1fa)](isRemoteAppItem);if(!_0x21a62b||typeof _0x21a62b!=='object')throw CliErrors[_0xbd7ca2(0x1f1)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x4d0de9=_0x21a62b;if(Array[_0xbd7ca2(0x206)](_0x4d0de9[_0xbd7ca2(0x20e)]))return _0x4d0de9[_0xbd7ca2(0x20e)][_0xbd7ca2(0x1fa)](isRemoteAppItem);if(_0x4d0de9[_0xbd7ca2(0x210)]&&typeof _0x4d0de9[_0xbd7ca2(0x210)]==='object'){const _0x5aa345=_0x4d0de9[_0xbd7ca2(0x210)];if(Array[_0xbd7ca2(0x206)](_0x5aa345[_0xbd7ca2(0x20e)]))return _0x5aa345[_0xbd7ca2(0x20e)][_0xbd7ca2(0x1fa)](isRemoteAppItem);}throw CliErrors[_0xbd7ca2(0x1f1)](_0xbd7ca2(0x208));}export async function getMyApps(){const _0x252635=a39_0x4218,_0x13c810=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x13c810[_0x252635(0x210)]);}export async function getLoginUserInfo(){const _0xe2c696=a39_0x4218,_0x5c6147=await apiRequest(_0xe2c696(0x1f5));if(!_0x5c6147['data']||typeof _0x5c6147[_0xe2c696(0x210)]!=='object'||Array['isArray'](_0x5c6147[_0xe2c696(0x210)]))throw CliErrors[_0xe2c696(0x1f1)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x5c6147[_0xe2c696(0x210)];}function a39_0x4a91(){const _0x2ddac4=['test','918JESAds','BFF\x20script\x20not\x20found:\x20id=','/client/user/loginUserInfo','string','1362664WqFLfK','1390716pJrwjO','name','filter','sqlCode','validation','/client/dataset/list','authRequired','2TCZtKB','abort','/client/bff/query/','/client/sql/query','SQL\x20query\x20not\x20found:\x20','success','object','isArray','cli:lovrabet-runtime','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','appCode','78taLyJE','status','Check\x20your\x20credentials\x20and\x20try\x20again.','json','tableData','90904pVanpb','data','POST','13065DNlGeL','42493dZEULp','signal','errorCode','AbortError','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Configure\x20accessKey\x20in\x20.lovrabet.json.','4958632yAFSNH','Request\x20timeout:\x20','444745BvDAQS','670QJkWrH','code','apiError'];a39_0x4a91=function(){return _0x2ddac4;};return a39_0x4a91();}export async function listDatasets(_0x41cab0,_0x1d3de9){const _0x925850=a39_0x4218,_0x411233=await apiRequest(_0x925850(0x1fd),{'method':_0x925850(0x211),'body':{'appCode':_0x41cab0,..._0x1d3de9?.[_0x925850(0x21d)]&&{'code':_0x1d3de9[_0x925850(0x21d)]},..._0x1d3de9?.[_0x925850(0x1f9)]&&{'name':_0x1d3de9[_0x925850(0x1f9)]}}});return extractList(_0x411233['data']);}export async function getDatasetDetail(_0x19b789){const _0x4dce05=a39_0x4218,_0x393e50=/^\d+$/[_0x4dce05(0x1f2)](_0x19b789)?'id':'code',_0xeb99ec=await apiRequest('/client/dataset/query?'+_0x393e50+'='+_0x19b789);return _0xeb99ec[_0x4dce05(0x210)];}
@@ -1 +1 @@
1
- (function(_0x3c728e,_0x16172f){const _0x423208=a38_0x39b3,_0xdc6e0a=_0x3c728e();while(!![]){try{const _0x45a096=parseInt(_0x423208(0x1ac))/0x1+parseInt(_0x423208(0x1b1))/0x2+parseInt(_0x423208(0x1b3))/0x3+parseInt(_0x423208(0x1b7))/0x4*(-parseInt(_0x423208(0x1b8))/0x5)+parseInt(_0x423208(0x1b9))/0x6*(parseInt(_0x423208(0x1b2))/0x7)+-parseInt(_0x423208(0x1ad))/0x8+-parseInt(_0x423208(0x1a9))/0x9*(parseInt(_0x423208(0x1b0))/0xa);if(_0x45a096===_0x16172f)break;else _0xdc6e0a['push'](_0xdc6e0a['shift']());}catch(_0x5d6942){_0xdc6e0a['push'](_0xdc6e0a['shift']());}}}(a38_0x114e,0xbf583));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5a007d){const _0x314138=a38_0x39b3;if(cache[_0x314138(0x1b4)](_0x5a007d))return cache[_0x314138(0x1b5)](_0x5a007d);const _0x411fe7=await listDatasets(_0x5a007d),_0x16fb95=new Map();for(const _0x296270 of _0x411fe7){const _0x4fbd76=_0x296270[_0x314138(0x1ae)];_0x4fbd76?.[_0x314138(0x1b6)]!=null&&_0x16fb95[_0x314138(0x1ab)](_0x4fbd76[_0x314138(0x1b6)],_0x4fbd76[_0x314138(0x1aa)]??_0x314138(0x1a8)+_0x4fbd76[_0x314138(0x1b6)]);}const _0x28e614=[..._0x16fb95[_0x314138(0x1af)]()][_0x314138(0x1ba)](([_0x133bb5,_0x10b337])=>({'dbId':_0x133bb5,'dbName':_0x10b337}));return cache[_0x314138(0x1ab)](_0x5a007d,_0x28e614),_0x28e614;}export async function getDbName(_0x4893e3,_0x3c9869){const _0x2018fb=a38_0x39b3;try{const _0x564a5b=await listDatabases(_0x4893e3);return _0x564a5b[_0x2018fb(0x1bb)](_0x5e9072=>_0x5e9072[_0x2018fb(0x1b6)]===_0x3c9869)?.[_0x2018fb(0x1aa)];}catch{return undefined;}}function a38_0x39b3(_0x12c2ab,_0x4b5425){_0x12c2ab=_0x12c2ab-0x1a8;const _0x114ea9=a38_0x114e();let _0x39b334=_0x114ea9[_0x12c2ab];return _0x39b334;}function a38_0x114e(){const _0x59a584=['dbtableConfig','entries','4637090jKtbxL','1011440JAyKte','37100sUNdrL','3806028vsrKfi','has','get','dbId','1312904apSSAi','15NdYJsC','240rTpZLW','map','find','db-','9cCAgTE','dbName','set','1251539efYlnp','8046408wzKTwm'];a38_0x114e=function(){return _0x59a584;};return a38_0x114e();}
1
+ (function(_0x12c21f,_0x1d7369){const _0x977272=a40_0x56fa,_0x5ef754=_0x12c21f();while(!![]){try{const _0x2b0212=-parseInt(_0x977272(0x81))/0x1*(parseInt(_0x977272(0x80))/0x2)+-parseInt(_0x977272(0x85))/0x3*(-parseInt(_0x977272(0x8f))/0x4)+parseInt(_0x977272(0x8b))/0x5+parseInt(_0x977272(0x87))/0x6+-parseInt(_0x977272(0x90))/0x7+parseInt(_0x977272(0x86))/0x8+parseInt(_0x977272(0x8a))/0x9*(parseInt(_0x977272(0x8c))/0xa);if(_0x2b0212===_0x1d7369)break;else _0x5ef754['push'](_0x5ef754['shift']());}catch(_0x5bc2fc){_0x5ef754['push'](_0x5ef754['shift']());}}}(a40_0x1c6a,0xc2966));function a40_0x56fa(_0x3791ea,_0x5a2c81){_0x3791ea=_0x3791ea-0x80;const _0x1c6aae=a40_0x1c6a();let _0x56fa3d=_0x1c6aae[_0x3791ea];return _0x56fa3d;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a40_0x1c6a(){const _0x3ecd38=['955dugCJu','has','set','map','249xOfUxH','1010960NeXAQM','1627674gPOOEH','dbId','dbName','2675583vJzanN','3670145kghceo','30JayfIQ','dbtableConfig','db-','66824dMceIB','9320479hOOSek','2684KwQvsf'];a40_0x1c6a=function(){return _0x3ecd38;};return a40_0x1c6a();}export async function listDatabases(_0x4e5930){const _0x3ebdc1=a40_0x56fa;if(cache[_0x3ebdc1(0x82)](_0x4e5930))return cache['get'](_0x4e5930);const _0x3c2e6=await listDatasets(_0x4e5930),_0x5afe1a=new Map();for(const _0x122b74 of _0x3c2e6){const _0x459ef2=_0x122b74[_0x3ebdc1(0x8d)];_0x459ef2?.[_0x3ebdc1(0x88)]!=null&&_0x5afe1a[_0x3ebdc1(0x83)](_0x459ef2[_0x3ebdc1(0x88)],_0x459ef2[_0x3ebdc1(0x89)]??_0x3ebdc1(0x8e)+_0x459ef2[_0x3ebdc1(0x88)]);}const _0x1982b6=[..._0x5afe1a['entries']()][_0x3ebdc1(0x84)](([_0x3fe14f,_0x1c0113])=>({'dbId':_0x3fe14f,'dbName':_0x1c0113}));return cache[_0x3ebdc1(0x83)](_0x4e5930,_0x1982b6),_0x1982b6;}export async function getDbName(_0x50e5ac,_0x32d9cd){const _0x2c998f=a40_0x56fa;try{const _0x52976a=await listDatabases(_0x50e5ac);return _0x52976a['find'](_0x39ba95=>_0x39ba95['dbId']===_0x32d9cd)?.[_0x2c998f(0x89)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x5c86fe,_0x1d16a8){const _0x4840d7=a39_0x52a0,_0x4ebf8e=_0x5c86fe();while(!![]){try{const _0x5a3743=-parseInt(_0x4840d7(0x1bc))/0x1*(parseInt(_0x4840d7(0x1ad))/0x2)+parseInt(_0x4840d7(0x1ac))/0x3+parseInt(_0x4840d7(0x1c5))/0x4+parseInt(_0x4840d7(0x1bd))/0x5+parseInt(_0x4840d7(0x1b2))/0x6*(-parseInt(_0x4840d7(0x1ae))/0x7)+parseInt(_0x4840d7(0x1ab))/0x8+-parseInt(_0x4840d7(0x1bb))/0x9;if(_0x5a3743===_0x1d16a8)break;else _0x4ebf8e['push'](_0x4ebf8e['shift']());}catch(_0x4a73e7){_0x4ebf8e['push'](_0x4ebf8e['shift']());}}}(a39_0x550f,0x21279));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x5eb727){const _0x455a57=a39_0x52a0;_client=createClient({'appCode':_0x5eb727[_0x455a57(0x1b0)],'env':_0x5eb727['env'],'authMode':_0x5eb727[_0x455a57(0x1b7)],..._0x5eb727['accessKey']?{'accessKey':_0x5eb727[_0x455a57(0x1c3)]}:{},'options':{'timeout':0x7530}});}function a39_0x52a0(_0x1d9da5,_0x54aa2d){_0x1d9da5=_0x1d9da5-0x1aa;const _0x550faf=a39_0x550f();let _0x52a05a=_0x550faf[_0x1d9da5];return _0x52a05a;}function ensureClient(){const _0x48dcdd=a39_0x52a0;if(!_client)throw new Error(_0x48dcdd(0x1b9));return _client;}function a39_0x550f(){const _0x2dc0da=['batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','execute','2264058erprcv','163529YtNpbb','397390XSuZeJ','sql','dataset_','isArray','update','\x22.\x20','accessKey','models','992496LvpRpQ','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','1147200WtalNz','271806RasmLL','2HCwjAO','56IwkVlA','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','appCode','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','8034yjVPFI','delete','getOne','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','bff','authMode'];a39_0x550f=function(){return _0x2dc0da;};return a39_0x550f();}export async function executeData(_0x350348,_0x1a0533,_0x2010af){const _0x5343d9=a39_0x52a0,_0x498658=ensureClient(),_0x3b68c0=_0x5343d9(0x1bf)+_0x350348,_0xb9aee7=_0x498658[_0x5343d9(0x1c4)][_0x3b68c0];if(!_0xb9aee7||typeof _0xb9aee7[_0x1a0533]!=='function')throw new Error(_0x5343d9(0x1aa)+_0x1a0533+_0x5343d9(0x1c2)+_0x5343d9(0x1b1));if(_0x1a0533===_0x5343d9(0x1b8))return _0xb9aee7[_0x5343d9(0x1b8)](parseBatchCreateItemsFromParams(_0x2010af));const _0x3edcbc=_0x2010af!==undefined&&_0x2010af!==null&&!Array[_0x5343d9(0x1c0)](_0x2010af)?_0x2010af:{};switch(_0x1a0533){case'getOne':{const _0x2309c2=_0x3edcbc['id'];if(_0x2309c2===undefined||_0x2309c2===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xb9aee7[_0x5343d9(0x1b4)](_0x2309c2);}case'update':{const {id:_0x559d3d,..._0x202900}=_0x3edcbc;if(_0x559d3d===undefined||_0x559d3d===null)throw new Error(_0x5343d9(0x1af));return _0xb9aee7[_0x5343d9(0x1c1)](_0x559d3d,_0x202900);}case _0x5343d9(0x1b3):{const _0x4349dc=_0x3edcbc['id'];if(_0x4349dc===undefined||_0x4349dc===null)throw new Error(_0x5343d9(0x1b5));return _0xb9aee7[_0x5343d9(0x1b3)](_0x4349dc);}default:return _0xb9aee7[_0x1a0533](_0x3edcbc);}}export async function executeSdkSql(_0x6b95d5,_0x2713d5){const _0x4ede57=a39_0x52a0,_0x4ab52d=ensureClient();return _0x4ab52d[_0x4ede57(0x1be)][_0x4ede57(0x1ba)]({'sqlCode':_0x6b95d5,'params':_0x2713d5});}export async function executeSdkBff(_0x5c291e,_0x428704){const _0x469d13=a39_0x52a0,_0xabe74=ensureClient();return _0xabe74[_0x469d13(0x1b6)]['execute']({'scriptName':_0x5c291e,'params':_0x428704});}
1
+ (function(_0x487219,_0x3d6912){const _0x2b049e=a41_0x15f6,_0xa47ec9=_0x487219();while(!![]){try{const _0x34b1cf=-parseInt(_0x2b049e(0x1d3))/0x1*(parseInt(_0x2b049e(0x1cd))/0x2)+-parseInt(_0x2b049e(0x1c0))/0x3*(parseInt(_0x2b049e(0x1ca))/0x4)+parseInt(_0x2b049e(0x1c6))/0x5*(parseInt(_0x2b049e(0x1cb))/0x6)+parseInt(_0x2b049e(0x1d0))/0x7*(parseInt(_0x2b049e(0x1c2))/0x8)+-parseInt(_0x2b049e(0x1bb))/0x9+-parseInt(_0x2b049e(0x1c4))/0xa+parseInt(_0x2b049e(0x1cf))/0xb;if(_0x34b1cf===_0x3d6912)break;else _0xa47ec9['push'](_0xa47ec9['shift']());}catch(_0x90efa){_0xa47ec9['push'](_0xa47ec9['shift']());}}}(a41_0x189a,0xaea0c));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x47715c){const _0x889462=a41_0x15f6;_client=createClient({'appCode':_0x47715c['appCode'],'env':_0x47715c['env'],'authMode':_0x47715c[_0x889462(0x1d2)],..._0x47715c[_0x889462(0x1c9)]?{'accessKey':_0x47715c['accessKey']}:{},'options':{'timeout':0x7530}});}function a41_0x15f6(_0x1de7f8,_0x4d2afc){_0x1de7f8=_0x1de7f8-0x1ba;const _0x189ab5=a41_0x189a();let _0x15f643=_0x189ab5[_0x1de7f8];return _0x15f643;}function ensureClient(){const _0x4833bf=a41_0x15f6;if(!_client)throw new Error(_0x4833bf(0x1ce));return _client;}export async function executeData(_0x1754e8,_0x1f304f,_0x1af332){const _0x2210ec=a41_0x15f6,_0x1c3fd6=ensureClient(),_0x17e6d4=_0x2210ec(0x1c7)+_0x1754e8,_0xf71fa8=_0x1c3fd6[_0x2210ec(0x1be)][_0x17e6d4];if(!_0xf71fa8||typeof _0xf71fa8[_0x1f304f]!==_0x2210ec(0x1cc))throw new Error(_0x2210ec(0x1bf)+_0x1f304f+'\x22.\x20'+_0x2210ec(0x1c5));if(_0x1f304f===_0x2210ec(0x1d1))return _0xf71fa8['batchCreate'](parseBatchCreateItemsFromParams(_0x1af332));const _0xa254c5=_0x1af332!==undefined&&_0x1af332!==null&&!Array['isArray'](_0x1af332)?_0x1af332:{};switch(_0x1f304f){case _0x2210ec(0x1bc):{const _0xaa63f4=_0xa254c5['id'];if(_0xaa63f4===undefined||_0xaa63f4===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xf71fa8[_0x2210ec(0x1bc)](_0xaa63f4);}case _0x2210ec(0x1c3):{const {id:_0x5e0eb2,..._0x4d1eeb}=_0xa254c5;if(_0x5e0eb2===undefined||_0x5e0eb2===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0xf71fa8[_0x2210ec(0x1c3)](_0x5e0eb2,_0x4d1eeb);}case _0x2210ec(0x1c8):{const _0x285dd2=_0xa254c5['id'];if(_0x285dd2===undefined||_0x285dd2===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0xf71fa8[_0x2210ec(0x1c8)](_0x285dd2);}default:return _0xf71fa8[_0x1f304f](_0xa254c5);}}export async function executeSdkSql(_0x41e5f0,_0x445261){const _0x414278=a41_0x15f6,_0x14506c=ensureClient();return _0x14506c[_0x414278(0x1bd)][_0x414278(0x1c1)]({'sqlCode':_0x41e5f0,'params':_0x445261});}function a41_0x189a(){const _0x188eff=['6700cywiMH','dataset_','delete','accessKey','8444slhLvR','4812CwREot','function','31564LuzUMv','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','12884553woKtBd','1126671vTMbdE','batchCreate','authMode','15PkDuCl','bff','11435967QFPZdj','getOne','sql','models','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','1149wjFsrX','execute','56HAytHX','update','3414920Hucmmk','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.'];a41_0x189a=function(){return _0x188eff;};return a41_0x189a();}export async function executeSdkBff(_0x2739a1,_0xcac759){const _0x44aa24=a41_0x15f6,_0x3e349b=ensureClient();return _0x3e349b[_0x44aa24(0x1ba)]['execute']({'scriptName':_0x2739a1,'params':_0xcac759});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a40_0x4df62f=a40_0x456c;function a40_0x1955(){const _0x59a592=['209263gAqWuY','224SbyMrt','529605upqaFb','32qfbZqH','458127KyBJFS','227478pIaIMH','7686lbkmHJ','1075964GBZHya','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.','\x20auth\x20login`.','443432GrxOtb','Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.'];a40_0x1955=function(){return _0x59a592;};return a40_0x1955();}(function(_0x3dadec,_0x1a7e3b){const _0x431f39=a40_0x456c,_0x5b1f17=_0x3dadec();while(!![]){try{const _0x108f1b=parseInt(_0x431f39(0x1d7))/0x1+-parseInt(_0x431f39(0x1d5))/0x2+parseInt(_0x431f39(0x1dc))/0x3+-parseInt(_0x431f39(0x1d2))/0x4+parseInt(_0x431f39(0x1d9))/0x5+-parseInt(_0x431f39(0x1dd))/0x6*(-parseInt(_0x431f39(0x1d8))/0x7)+-parseInt(_0x431f39(0x1da))/0x8*(-parseInt(_0x431f39(0x1db))/0x9);if(_0x108f1b===_0x1a7e3b)break;else _0x5b1f17['push'](_0x5b1f17['shift']());}catch(_0x30c5c2){_0x5b1f17['push'](_0x5b1f17['shift']());}}}(a40_0x1955,0x2360b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a40_0x456c(_0x5d2437,_0x517e63){_0x5d2437=_0x5d2437-0x1d2;const _0x195553=a40_0x1955();let _0x456cca=_0x195553[_0x5d2437];return _0x456cca;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`'+CLI_BIN_NAME+a40_0x4df62f(0x1d4),'configMissingHint':a40_0x4df62f(0x1d6),'notInProjectHint':a40_0x4df62f(0x1d3)});
1
+ const a42_0x4e7e73=a42_0x283b;(function(_0x269589,_0x5c913a){const _0x1700b6=a42_0x283b,_0x15bb82=_0x269589();while(!![]){try{const _0x1e63ad=parseInt(_0x1700b6(0x18a))/0x1+-parseInt(_0x1700b6(0x18f))/0x2*(-parseInt(_0x1700b6(0x18b))/0x3)+-parseInt(_0x1700b6(0x18e))/0x4+parseInt(_0x1700b6(0x188))/0x5+parseInt(_0x1700b6(0x185))/0x6+parseInt(_0x1700b6(0x184))/0x7*(parseInt(_0x1700b6(0x18d))/0x8)+-parseInt(_0x1700b6(0x18c))/0x9*(parseInt(_0x1700b6(0x186))/0xa);if(_0x1e63ad===_0x5c913a)break;else _0x15bb82['push'](_0x15bb82['shift']());}catch(_0x257bd8){_0x15bb82['push'](_0x15bb82['shift']());}}}(a42_0x3154,0x27812));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a42_0x3154(){const _0x18e37b=['742140SlzWBe','1332yBERDQ','652015pvMZro','688938ZdOgEO','2790CMnktM','Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`','1025785DRpqew','\x20auth\x20login`.','188992OiCafU','921jhsTkD','14814QjBaBs','8lIewcJ'];a42_0x3154=function(){return _0x18e37b;};return a42_0x3154();}function a42_0x283b(_0x26fa98,_0x332471){_0x26fa98=_0x26fa98-0x184;const _0x3154d7=a42_0x3154();let _0x283b1f=_0x3154d7[_0x26fa98];return _0x283b1f;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a42_0x4e7e73(0x187)+CLI_BIN_NAME+a42_0x4e7e73(0x189),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x28a62a,_0x583c3d){var _0x36ae58=a41_0x82c8,_0x29dcb7=_0x28a62a();while(!![]){try{var _0x3128dc=-parseInt(_0x36ae58(0x1a7))/0x1+-parseInt(_0x36ae58(0x1a0))/0x2*(parseInt(_0x36ae58(0x1a4))/0x3)+parseInt(_0x36ae58(0x1a3))/0x4*(parseInt(_0x36ae58(0x19e))/0x5)+parseInt(_0x36ae58(0x1a2))/0x6+-parseInt(_0x36ae58(0x19f))/0x7+-parseInt(_0x36ae58(0x1a6))/0x8*(parseInt(_0x36ae58(0x1a1))/0x9)+parseInt(_0x36ae58(0x1a5))/0xa;if(_0x3128dc===_0x583c3d)break;else _0x29dcb7['push'](_0x29dcb7['shift']());}catch(_0xb728b5){_0x29dcb7['push'](_0x29dcb7['shift']());}}}(a41_0x3a75,0x99762));function a41_0x82c8(_0x48c777,_0x1d383b){_0x48c777=_0x48c777-0x19e;var _0x3a7523=a41_0x3a75();var _0x82c8b4=_0x3a7523[_0x48c777];return _0x82c8b4;}function a41_0x3a75(){var _0x526111=['5461615hDDBCn','6042218deowtA','22882GJrwLG','90rjIeWu','168120ovcrkB','4WmTNLr','159LBfipV','15347350INeglF','106208mqSLyN','424193akbDdJ'];a41_0x3a75=function(){return _0x526111;};return a41_0x3a75();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a41_0x14820a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3543f5){return a41_0x14820a(_0x3543f5,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x547261,_0x3c160e){var _0x1c1dc2=a43_0xae38,_0x579e09=_0x547261();while(!![]){try{var _0x212467=parseInt(_0x1c1dc2(0x9b))/0x1+-parseInt(_0x1c1dc2(0x9a))/0x2+parseInt(_0x1c1dc2(0x9d))/0x3+parseInt(_0x1c1dc2(0x99))/0x4+parseInt(_0x1c1dc2(0x9e))/0x5+-parseInt(_0x1c1dc2(0x9c))/0x6*(parseInt(_0x1c1dc2(0x9f))/0x7)+parseInt(_0x1c1dc2(0xa0))/0x8;if(_0x212467===_0x3c160e)break;else _0x579e09['push'](_0x579e09['shift']());}catch(_0x2f2e07){_0x579e09['push'](_0x579e09['shift']());}}}(a43_0x13c7,0xe404b));function a43_0xae38(_0x5e5933,_0x2b8160){_0x5e5933=_0x5e5933-0x99;var _0x13c70b=a43_0x13c7();var _0xae380d=_0x13c70b[_0x5e5933];return _0xae380d;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a43_0xeda800}from'@lovrabet/cli-framework';function a43_0x13c7(){var _0x4bed23=['838764cHHeca','3463316tXzQje','1713923xkguOX','4639728xvIqCE','713763DgrpDL','7887290aGoMDa','14EmPIzp','3785632HoyuxN'];a43_0x13c7=function(){return _0x4bed23;};return a43_0x13c7();}export function buildAllFlags(_0xe147d6){return a43_0xeda800(_0xe147d6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x59272b,_0x1947a3){const _0x51e9d1=a42_0x295f,_0x22161e=_0x59272b();while(!![]){try{const _0x325043=-parseInt(_0x51e9d1(0xb7))/0x1+-parseInt(_0x51e9d1(0xb5))/0x2+-parseInt(_0x51e9d1(0xb3))/0x3+-parseInt(_0x51e9d1(0xad))/0x4*(-parseInt(_0x51e9d1(0xae))/0x5)+-parseInt(_0x51e9d1(0xb2))/0x6+-parseInt(_0x51e9d1(0xb6))/0x7*(parseInt(_0x51e9d1(0xb4))/0x8)+-parseInt(_0x51e9d1(0xb1))/0x9*(-parseInt(_0x51e9d1(0xb0))/0xa);if(_0x325043===_0x1947a3)break;else _0x22161e['push'](_0x22161e['shift']());}catch(_0x55ec4e){_0x22161e['push'](_0x22161e['shift']());}}}(a42_0x4c62,0xae31e));function a42_0x295f(_0x382e87,_0x57c85b){_0x382e87=_0x382e87-0xac;const _0x4c6257=a42_0x4c62();let _0x295f25=_0x4c6257[_0x382e87];return _0x295f25;}export function dryRun(_0xb51ac8,_0x3be687){const _0x155198={'method':_0xb51ac8,'url':_0x3be687},_0x4b3b27={'body'(_0x2f63ed){const _0x2ebc33=a42_0x295f;return _0x155198[_0x2ebc33(0xaf)]=_0x2f63ed,_0x4b3b27;},'description'(_0x5e057a){const _0x41693c=a42_0x295f;return _0x155198[_0x41693c(0xac)]=_0x5e057a,_0x4b3b27;},'build'(){return{..._0x155198};}};return _0x4b3b27;}function a42_0x4c62(){const _0x536c88=['9uLbCiU','3877692hzGxTw','2161602rSdOao','16tIZyqK','1721036HnTBOe','2045708gnMOOl','305342crBjKx','description','41956JUYQjM','150APAvzm','body','35159960VuYMtL'];a42_0x4c62=function(){return _0x536c88;};return a42_0x4c62();}
1
+ function a44_0x5587(_0xf2e6e3,_0xeeb660){_0xf2e6e3=_0xf2e6e3-0x15f;const _0x2ef3cb=a44_0x2ef3();let _0x55870f=_0x2ef3cb[_0xf2e6e3];return _0x55870f;}function a44_0x2ef3(){const _0x341b1d=['28nZeszU','86046ZoftNf','description','7238452XwiUrI','22RtJdjp','1441060pMOras','1dlEvOD','5bXrBdT','36HHPvLI','body','1076466iIhqLd','34370EodFeA','21687CVqrfz','84MxCzGF','32vygXTC','877356EIXiBj'];a44_0x2ef3=function(){return _0x341b1d;};return a44_0x2ef3();}(function(_0x71e4d3,_0x1975f0){const _0x3b0184=a44_0x5587,_0x1a989f=_0x71e4d3();while(!![]){try{const _0x5d5b26=parseInt(_0x3b0184(0x161))/0x1*(-parseInt(_0x3b0184(0x16c))/0x2)+-parseInt(_0x3b0184(0x167))/0x3*(parseInt(_0x3b0184(0x168))/0x4)+-parseInt(_0x3b0184(0x162))/0x5*(-parseInt(_0x3b0184(0x165))/0x6)+parseInt(_0x3b0184(0x166))/0x7*(parseInt(_0x3b0184(0x169))/0x8)+-parseInt(_0x3b0184(0x163))/0x9*(parseInt(_0x3b0184(0x160))/0xa)+parseInt(_0x3b0184(0x15f))/0xb*(-parseInt(_0x3b0184(0x16a))/0xc)+-parseInt(_0x3b0184(0x16e))/0xd*(-parseInt(_0x3b0184(0x16b))/0xe);if(_0x5d5b26===_0x1975f0)break;else _0x1a989f['push'](_0x1a989f['shift']());}catch(_0xe21ae3){_0x1a989f['push'](_0x1a989f['shift']());}}}(a44_0x2ef3,0x607a9));export function dryRun(_0x48c601,_0x353477){const _0x44f78b={'method':_0x48c601,'url':_0x353477},_0x3eb874={'body'(_0x36a0f8){const _0x11e9c3=a44_0x5587;return _0x44f78b[_0x11e9c3(0x164)]=_0x36a0f8,_0x3eb874;},'description'(_0xfdb686){const _0x29fa92=a44_0x5587;return _0x44f78b[_0x29fa92(0x16d)]=_0xfdb686,_0x3eb874;},'build'(){return{..._0x44f78b};}};return _0x3eb874;}
@@ -1 +1 @@
1
- const a43_0x1c072f=a43_0x466b;(function(_0x5085c2,_0xc87d0b){const _0x38962b=a43_0x466b,_0x276c11=_0x5085c2();while(!![]){try{const _0x375fdf=-parseInt(_0x38962b(0x1ca))/0x1*(-parseInt(_0x38962b(0x1c6))/0x2)+-parseInt(_0x38962b(0x1c8))/0x3*(parseInt(_0x38962b(0x1cd))/0x4)+-parseInt(_0x38962b(0x1cc))/0x5*(parseInt(_0x38962b(0x1c7))/0x6)+parseInt(_0x38962b(0x1c9))/0x7*(parseInt(_0x38962b(0x1cb))/0x8)+-parseInt(_0x38962b(0x1c3))/0x9+parseInt(_0x38962b(0x1c2))/0xa+-parseInt(_0x38962b(0x1c5))/0xb;if(_0x375fdf===_0xc87d0b)break;else _0x276c11['push'](_0x276c11['shift']());}catch(_0x4ad10a){_0x276c11['push'](_0x276c11['shift']());}}}(a43_0x350e,0xe40da));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a43_0x466b(_0x2527d2,_0x3d10d1){_0x2527d2=_0x2527d2-0x1c2;const _0x350e49=a43_0x350e();let _0x466bf6=_0x350e49[_0x2527d2];return _0x466bf6;}const helpers=createFlagHelpers(CliErrors);function a43_0x350e(){const _0x433385=['validateFlags','9440670vVHFhj','6806574FuBtDz','parseFlags','5684294ZcLdih','102uEhJic','16836yTKWMM','174699FyHYcZ','23331bZBKWd','34625JPPRaW','1952QnpNhr','1930sLBCNH','16NyvsjA'];a43_0x350e=function(){return _0x433385;};return a43_0x350e();}export const parseFlags=helpers[a43_0x1c072f(0x1c4)];export const validateFlags=helpers[a43_0x1c072f(0x1ce)];
1
+ function a45_0x31da(){const _0x1dbece=['284137aUVfYf','143rFnnSd','488784DItQPk','18HrbNgH','3906xmgZwV','6191211LVNyIb','36553eWGICS','48minOlm','8770mjmMdV','24txqVSS','1005318bhKtmd','951436iKlXsO','20TUCCGS','validateFlags'];a45_0x31da=function(){return _0x1dbece;};return a45_0x31da();}const a45_0x1873e3=a45_0x4272;(function(_0x270b67,_0x2b79a2){const _0x2e5b9a=a45_0x4272,_0x11788f=_0x270b67();while(!![]){try{const _0x59e452=parseInt(_0x2e5b9a(0x17a))/0x1*(parseInt(_0x2e5b9a(0x17d))/0x2)+-parseInt(_0x2e5b9a(0x177))/0x3*(-parseInt(_0x2e5b9a(0x17f))/0x4)+parseInt(_0x2e5b9a(0x180))/0x5*(parseInt(_0x2e5b9a(0x17e))/0x6)+-parseInt(_0x2e5b9a(0x182))/0x7*(parseInt(_0x2e5b9a(0x17b))/0x8)+-parseInt(_0x2e5b9a(0x178))/0x9*(parseInt(_0x2e5b9a(0x17c))/0xa)+parseInt(_0x2e5b9a(0x175))/0xb*(-parseInt(_0x2e5b9a(0x176))/0xc)+-parseInt(_0x2e5b9a(0x179))/0xd;if(_0x59e452===_0x2b79a2)break;else _0x11788f['push'](_0x11788f['shift']());}catch(_0x474354){_0x11788f['push'](_0x11788f['shift']());}}}(a45_0x31da,0xdd35b));function a45_0x4272(_0x16b380,_0x5c08e4){_0x16b380=_0x16b380-0x175;const _0x31da4c=a45_0x31da();let _0x42720b=_0x31da4c[_0x16b380];return _0x42720b;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a45_0x1873e3(0x181)];
@@ -1 +1 @@
1
- const a44_0x1e7344=a44_0x1ace;(function(_0x474476,_0x174892){const _0x56a976=a44_0x1ace,_0x52fc97=_0x474476();while(!![]){try{const _0x51bc3e=-parseInt(_0x56a976(0x1cf))/0x1*(parseInt(_0x56a976(0x1d0))/0x2)+-parseInt(_0x56a976(0x1c3))/0x3+-parseInt(_0x56a976(0x1c5))/0x4*(-parseInt(_0x56a976(0x1c6))/0x5)+parseInt(_0x56a976(0x1c4))/0x6+parseInt(_0x56a976(0x1c9))/0x7+parseInt(_0x56a976(0x1c7))/0x8+parseInt(_0x56a976(0x1c2))/0x9*(-parseInt(_0x56a976(0x1cb))/0xa);if(_0x51bc3e===_0x174892)break;else _0x52fc97['push'](_0x52fc97['shift']());}catch(_0x4c9c25){_0x52fc97['push'](_0x52fc97['shift']());}}}(a44_0xdb91,0xbcf9b));function a44_0xdb91(){const _0x1f520e=['20446PGxier','18NrWreu','2914326dnnfbT','8017110vhUWyD','776RdUddr','18475aEsjwf','2451360nbYuxQ','Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).','4878531BnOdpE','generateServiceHelp','4356470MZZfnN','get','generateCommandHelp','generateFullHelp','43WRrzAY'];a44_0xdb91=function(){return _0x1f520e;};return a44_0xdb91();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a44_0x1ace(_0xd47b29,_0x1bd252){_0xd47b29=_0xd47b29-0x1c2;const _0xdb918d=a44_0xdb91();let _0x1acef3=_0xdb918d[_0xd47b29];return _0x1acef3;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x38f090=>serviceGroups[a44_0x1e7344(0x1cc)](_0x38f090),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a44_0x1e7344(0x1c8)});export function generateCommandHelp(_0x375853){const _0x4ab40b=a44_0x1e7344;return generators[_0x4ab40b(0x1cd)](_0x375853);}export const generateServiceHelp=generators[a44_0x1e7344(0x1ca)];export const generateFullHelp=generators[a44_0x1e7344(0x1ce)];
1
+ const a46_0x377594=a46_0x3893;(function(_0x138c36,_0x464d8a){const _0x527a07=a46_0x3893,_0x97e62=_0x138c36();while(!![]){try{const _0x44f81d=-parseInt(_0x527a07(0x1e9))/0x1*(-parseInt(_0x527a07(0x1e6))/0x2)+-parseInt(_0x527a07(0x1e2))/0x3*(parseInt(_0x527a07(0x1e5))/0x4)+parseInt(_0x527a07(0x1e4))/0x5+parseInt(_0x527a07(0x1e1))/0x6+-parseInt(_0x527a07(0x1ec))/0x7*(-parseInt(_0x527a07(0x1e3))/0x8)+parseInt(_0x527a07(0x1e7))/0x9+-parseInt(_0x527a07(0x1e8))/0xa*(parseInt(_0x527a07(0x1ea))/0xb);if(_0x44f81d===_0x464d8a)break;else _0x97e62['push'](_0x97e62['shift']());}catch(_0x1b3de5){_0x97e62['push'](_0x97e62['shift']());}}}(a46_0x4ef9,0xa7140));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a46_0x4ef9(){const _0x299222=['7AZYpuK','get','generateCommandHelp','2493672NXoQnh','104106iLQrLr','7745192CHrrUN','6192620FxKFLe','52WdoDmE','1538TnagiO','10487196XWjYJQ','144390SlINBx','438jJQXjK','2277VMGrSZ','generateServiceHelp'];a46_0x4ef9=function(){return _0x299222;};return a46_0x4ef9();}function a46_0x3893(_0x576069,_0x45b12a){_0x576069=_0x576069-0x1df;const _0x4ef9b0=a46_0x4ef9();let _0x3893e9=_0x4ef9b0[_0x576069];return _0x3893e9;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x1e25c7=>serviceGroups[a46_0x377594(0x1df)](_0x1e25c7),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).'});export function generateCommandHelp(_0x5a1809){const _0x1d8105=a46_0x377594;return generators[_0x1d8105(0x1e0)](_0x5a1809);}export const generateServiceHelp=generators[a46_0x377594(0x1eb)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x5445c5,_0x40f4ad){var _0xdf8007=a45_0x488a,_0x298925=_0x5445c5();while(!![]){try{var _0x550a23=-parseInt(_0xdf8007(0x15d))/0x1*(parseInt(_0xdf8007(0x162))/0x2)+parseInt(_0xdf8007(0x15b))/0x3*(-parseInt(_0xdf8007(0x15f))/0x4)+-parseInt(_0xdf8007(0x163))/0x5*(-parseInt(_0xdf8007(0x165))/0x6)+parseInt(_0xdf8007(0x15e))/0x7+parseInt(_0xdf8007(0x164))/0x8+parseInt(_0xdf8007(0x166))/0x9*(parseInt(_0xdf8007(0x15c))/0xa)+parseInt(_0xdf8007(0x160))/0xb*(-parseInt(_0xdf8007(0x161))/0xc);if(_0x550a23===_0x40f4ad)break;else _0x298925['push'](_0x298925['shift']());}catch(_0x32e66a){_0x298925['push'](_0x298925['shift']());}}}(a45_0x1db2,0x6a7f3));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a45_0x1db2(){var _0x407f83=['2734544QOYAuu','372234NwHxbR','15858YrENCh','9ivVEJd','3550qFXIHA','1829XWhJUK','3895787ZSVrbm','580292fjowfX','2826571XUWOdJ','36CmBAWs','74VpgJan','15RBEnsb'];a45_0x1db2=function(){return _0x407f83;};return a45_0x1db2();}function a45_0x488a(_0x1dd169,_0x3bdc3d){_0x1dd169=_0x1dd169-0x15b;var _0x1db279=a45_0x1db2();var _0x488a6b=_0x1db279[_0x1dd169];return _0x488a6b;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x39ec04,_0x65e22){var _0x11b38d=a47_0x4066,_0x536649=_0x39ec04();while(!![]){try{var _0x763d91=parseInt(_0x11b38d(0x162))/0x1*(-parseInt(_0x11b38d(0x15f))/0x2)+parseInt(_0x11b38d(0x167))/0x3+-parseInt(_0x11b38d(0x163))/0x4*(parseInt(_0x11b38d(0x161))/0x5)+parseInt(_0x11b38d(0x166))/0x6*(parseInt(_0x11b38d(0x168))/0x7)+parseInt(_0x11b38d(0x164))/0x8+parseInt(_0x11b38d(0x165))/0x9*(parseInt(_0x11b38d(0x160))/0xa)+-parseInt(_0x11b38d(0x169))/0xb;if(_0x763d91===_0x65e22)break;else _0x536649['push'](_0x536649['shift']());}catch(_0xf4910c){_0x536649['push'](_0x536649['shift']());}}}(a47_0x3fed,0x38c2e));function a47_0x3fed(){var _0x41e598=['384052gDcEeH','1061632rElvfO','4446YWVCor','22398dtFTMp','1365075EdMkuJ','595SFDsCy','6163421KDSiwD','9634omGHDv','5600GFKUwO','20EvxXqF','1BVZJWs'];a47_0x3fed=function(){return _0x41e598;};return a47_0x3fed();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a47_0x4066(_0x570944,_0x21c599){_0x570944=_0x570944-0x15f;var _0x3fed26=a47_0x3fed();var _0x4066b8=_0x3fed26[_0x570944];return _0x4066b8;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x12b79c,_0x3e33c1){var _0x5244e7=a46_0x5da5,_0x402e72=_0x12b79c();while(!![]){try{var _0x433833=-parseInt(_0x5244e7(0x11b))/0x1*(-parseInt(_0x5244e7(0x11d))/0x2)+parseInt(_0x5244e7(0x119))/0x3+parseInt(_0x5244e7(0x117))/0x4+parseInt(_0x5244e7(0x118))/0x5*(-parseInt(_0x5244e7(0x11f))/0x6)+-parseInt(_0x5244e7(0x120))/0x7+-parseInt(_0x5244e7(0x11c))/0x8*(parseInt(_0x5244e7(0x11e))/0x9)+-parseInt(_0x5244e7(0x121))/0xa*(-parseInt(_0x5244e7(0x11a))/0xb);if(_0x433833===_0x3e33c1)break;else _0x402e72['push'](_0x402e72['shift']());}catch(_0x207737){_0x402e72['push'](_0x402e72['shift']());}}}(a46_0x257d,0x9335c));function a46_0x5da5(_0x34520f,_0xc29184){_0x34520f=_0x34520f-0x117;var _0x257df0=a46_0x257d();var _0x5da5f5=_0x257df0[_0x34520f];return _0x5da5f5;}export{formatOutput}from'@lovrabet/cli-framework';function a46_0x257d(){var _0x4857fa=['9263142idpCRy','12dyfJgv','465206LqWWRU','10udYrQT','2724776YtSxGv','124560ppWmlr','579996MLxIAB','123167ZaiZmQ','1GLzOIR','8tGpEtD','1725538wEgcJP'];a46_0x257d=function(){return _0x4857fa;};return a46_0x257d();}
1
+ (function(_0x5d5c87,_0x40ffa2){const _0x45ee0f=a48_0x5e4f,_0x5b8c9b=_0x5d5c87();while(!![]){try{const _0x498e52=-parseInt(_0x45ee0f(0xd9))/0x1+-parseInt(_0x45ee0f(0xd3))/0x2+-parseInt(_0x45ee0f(0xd4))/0x3+-parseInt(_0x45ee0f(0xd8))/0x4+parseInt(_0x45ee0f(0xd7))/0x5+-parseInt(_0x45ee0f(0xd5))/0x6+parseInt(_0x45ee0f(0xd6))/0x7;if(_0x498e52===_0x40ffa2)break;else _0x5b8c9b['push'](_0x5b8c9b['shift']());}catch(_0x3fd27c){_0x5b8c9b['push'](_0x5b8c9b['shift']());}}}(a48_0x4be9,0xec506));function a48_0x5e4f(_0x43b241,_0x118b4a){_0x43b241=_0x43b241-0xd3;const _0x4be989=a48_0x4be9();let _0x5e4f51=_0x4be989[_0x43b241];return _0x5e4f51;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a48_0x4be9(){const _0x28f0fb=['3672384Wbessp','10963680WKrjWu','39159512ANASpR','3604945jstqQY','200312ctdxRB','943689SRBBny','2604176DecUHL'];a48_0x4be9=function(){return _0x28f0fb;};return a48_0x4be9();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x2290e0,_0x29642e){const _0x414e17=a47_0x4e4a,_0x10c5fa=_0x2290e0();while(!![]){try{const _0x40166f=parseInt(_0x414e17(0x1f8))/0x1*(parseInt(_0x414e17(0x1e5))/0x2)+parseInt(_0x414e17(0x1ec))/0x3+-parseInt(_0x414e17(0x1f6))/0x4+parseInt(_0x414e17(0x1ea))/0x5+parseInt(_0x414e17(0x1e7))/0x6*(parseInt(_0x414e17(0x1e9))/0x7)+-parseInt(_0x414e17(0x1e0))/0x8+-parseInt(_0x414e17(0x1ed))/0x9*(parseInt(_0x414e17(0x1fb))/0xa);if(_0x40166f===_0x29642e)break;else _0x10c5fa['push'](_0x10c5fa['shift']());}catch(_0x3360e4){_0x10c5fa['push'](_0x10c5fa['shift']());}}}(a47_0x5ad4,0x95f4d));function a47_0x4e4a(_0x4d1b06,_0xf92705){_0x4d1b06=_0x4d1b06-0x1e0;const _0x5ad43a=a47_0x5ad4();let _0x4e4a2f=_0x5ad43a[_0x4d1b06];return _0x4e4a2f;}function toKebab(_0x470edc){const _0x3fe98a=a47_0x4e4a;return _0x470edc[_0x3fe98a(0x1ee)](/_/g,'-')[_0x3fe98a(0x1ee)](/-([A-Z]+)/g,(_0x513b7b,_0x44b8e2)=>'-'+_0x44b8e2[_0x3fe98a(0x1f3)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x5a3836,_0x484684,_0x2bf47d)=>_0x484684+'-'+_0x2bf47d)['toLowerCase']();}function a47_0x5ad4(){const _0x5acf56=['set','slice','add','dryRun','has','keys','corrected','help','number','5431120hTyKrP','get','push','name','version','14ELjVco','toUpperCase','246IvAtUU','original','189917guMOBD','1381345ypsYzE','indexOf','1116258EziuEK','1395lbAIHm','replace','format','dry-run','global','boolean','toLowerCase','env','yes','980444JWAUEU','app','151468WCTmwH','length','non-interactive','82760irkTQN','alias','nonInteractive','string'];a47_0x5ad4=function(){return _0x5acf56;};return a47_0x5ad4();}function buildKnownFlags(_0x32d919){const _0x38cc36=a47_0x4e4a,_0x3ebb38=new Set();for(const _0x4e7691 of _0x32d919){_0x3ebb38[_0x38cc36(0x201)](_0x4e7691['name']),_0x3ebb38[_0x38cc36(0x201)](toCamelCase(_0x4e7691[_0x38cc36(0x1e3)]));}for(const _0x5bfd5d of[_0x38cc36(0x1f0),_0x38cc36(0x202),_0x38cc36(0x1f5),_0x38cc36(0x1ef)]){_0x3ebb38[_0x38cc36(0x201)](_0x5bfd5d);}for(const _0xf2b576 of[_0x38cc36(0x206),_0x38cc36(0x1f4),'appcode',_0x38cc36(0x1f7),_0x38cc36(0x1fd),_0x38cc36(0x1fa),'ci',_0x38cc36(0x1f1),_0x38cc36(0x1e4)]){_0x3ebb38[_0x38cc36(0x201)](_0xf2b576);}return _0x3ebb38;}function buildFlagTypeMap(_0xd5f494){const _0x5974ad=a47_0x4e4a,_0x23e31c=new Map();for(const _0x430633 of _0xd5f494){_0x23e31c[_0x5974ad(0x1ff)](_0x430633[_0x5974ad(0x1e3)],_0x430633['type']),_0x23e31c[_0x5974ad(0x1ff)](toCamelCase(_0x430633[_0x5974ad(0x1e3)]),_0x430633['type']);}return _0x23e31c;}function toCamelCase(_0x25b643){const _0x37a050=a47_0x4e4a;return _0x25b643['replace'](/-([a-z])/g,(_0x4ad9cb,_0x5d5497)=>_0x5d5497[_0x37a050(0x1e6)]());}function aliasHandler(_0x506268,_0x5cf21a){const _0x429060=a47_0x4e4a,_0x48cc36=[];for(const _0x2d1cdf of Object[_0x429060(0x204)](_0x506268)){if(_0x5cf21a[_0x429060(0x203)](_0x2d1cdf))continue;const _0x12c632=toKebab(_0x2d1cdf);_0x12c632!==_0x2d1cdf&&_0x5cf21a[_0x429060(0x203)](_0x12c632)&&_0x48cc36['push']({'original':_0x2d1cdf,'corrected':_0x12c632,'handler':_0x429060(0x1fc)});}return _0x48cc36;}function stickyHandler(_0x36d8e7,_0xfe0ee1,_0x1919bc){const _0x97080f=a47_0x4e4a,_0x23e8e2=[];for(const [_0x4fe5d1,_0x4e3fbe]of Object['entries'](_0x36d8e7)){if(_0x4e3fbe!==!![])continue;for(let _0x39aec2=_0x4fe5d1[_0x97080f(0x1f9)]-0x1;_0x39aec2>0x0;_0x39aec2--){const _0x468e9b=_0x4fe5d1[_0x97080f(0x200)](0x0,_0x39aec2),_0x4d8f6b=_0x4fe5d1[_0x97080f(0x200)](_0x39aec2),_0x117f1b=toKebab(_0x468e9b),_0x5e5d83=toCamelCase(_0x468e9b),_0x250475=_0xfe0ee1[_0x97080f(0x203)](_0x468e9b)?_0x468e9b:_0xfe0ee1[_0x97080f(0x203)](_0x117f1b)?_0x117f1b:_0xfe0ee1[_0x97080f(0x203)](_0x5e5d83)?_0x5e5d83:null;if(!_0x250475)continue;const _0x52f8a5=_0x1919bc[_0x97080f(0x1e1)](_0x250475)??_0x97080f(0x1fe);let _0x36b258;if(_0x52f8a5===_0x97080f(0x207)){const _0x2497bd=Number(_0x4d8f6b);if(isNaN(_0x2497bd)||_0x4d8f6b==='')continue;_0x36b258=_0x2497bd;}else{if(_0x52f8a5===_0x97080f(0x1f2))continue;else{if(_0x4d8f6b==='')continue;_0x36b258=_0x4d8f6b;}}_0x23e8e2[_0x97080f(0x1e2)]({'original':_0x4fe5d1,'corrected':_0x250475+'='+_0x36b258,'handler':'sticky'});break;}}return _0x23e8e2;}export function correctFlags(_0x31617f,_0x27ff6e){const _0x1885ff=a47_0x4e4a,_0x26dfb5=buildKnownFlags(_0x27ff6e),_0x22963c=buildFlagTypeMap(_0x27ff6e),_0x1a4f5b=aliasHandler(_0x31617f,_0x26dfb5),_0x1920da=stickyHandler(_0x31617f,_0x26dfb5,_0x22963c),_0x4ddbb9=[..._0x1a4f5b,..._0x1920da];if(_0x4ddbb9['length']===0x0)return{'flags':_0x31617f,'corrections':[]};const _0x2740b5={..._0x31617f},_0x3d6cfb=new Set();for(const _0xae137f of _0x1a4f5b){_0x2740b5[_0xae137f[_0x1885ff(0x205)]]=_0x31617f[_0xae137f[_0x1885ff(0x1e8)]],_0x3d6cfb['add'](_0xae137f[_0x1885ff(0x1e8)]);}for(const _0x4d31f7 of _0x1920da){const _0x1e2ce6=_0x4d31f7[_0x1885ff(0x205)][_0x1885ff(0x1eb)]('='),_0x3153e4=_0x4d31f7[_0x1885ff(0x205)][_0x1885ff(0x200)](0x0,_0x1e2ce6),_0x3bf50d=_0x4d31f7[_0x1885ff(0x205)][_0x1885ff(0x200)](_0x1e2ce6+0x1),_0x2008a8=_0x22963c[_0x1885ff(0x1e1)](_0x3153e4)??'string';_0x2008a8==='number'?_0x2740b5[_0x3153e4]=Number(_0x3bf50d):_0x2740b5[_0x3153e4]=_0x3bf50d,_0x3d6cfb[_0x1885ff(0x201)](_0x4d31f7[_0x1885ff(0x1e8)]);}for(const _0x546e43 of _0x3d6cfb){delete _0x2740b5[_0x546e43];}return{'flags':_0x2740b5,'corrections':_0x4ddbb9};}
1
+ (function(_0x122f45,_0x33f284){const _0x180975=a49_0x5f45,_0x5e0ec7=_0x122f45();while(!![]){try{const _0x18ab40=parseInt(_0x180975(0x122))/0x1*(-parseInt(_0x180975(0x118))/0x2)+-parseInt(_0x180975(0x11e))/0x3+-parseInt(_0x180975(0x132))/0x4+parseInt(_0x180975(0x121))/0x5*(-parseInt(_0x180975(0x12a))/0x6)+-parseInt(_0x180975(0x125))/0x7*(parseInt(_0x180975(0x110))/0x8)+parseInt(_0x180975(0x119))/0x9+parseInt(_0x180975(0x129))/0xa;if(_0x18ab40===_0x33f284)break;else _0x5e0ec7['push'](_0x5e0ec7['shift']());}catch(_0x59c486){_0x5e0ec7['push'](_0x5e0ec7['shift']());}}}(a49_0x1f4a,0x3ccc0));function toKebab(_0x47673c){const _0xf9c350=a49_0x5f45;return _0x47673c[_0xf9c350(0x130)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x2741b1,_0x27f21f)=>'-'+_0x27f21f[_0xf9c350(0x111)]())[_0xf9c350(0x130)](/([a-z0-9])([A-Z])/g,(_0xd87751,_0x533c60,_0x482167)=>_0x533c60+'-'+_0x482167)[_0xf9c350(0x111)]();}function a49_0x5f45(_0x5291c9,_0x37b945){_0x5291c9=_0x5291c9-0x10f;const _0x1f4a6f=a49_0x1f4a();let _0x5f4541=_0x1f4a6f[_0x5291c9];return _0x5f4541;}function a49_0x1f4a(){const _0x157bff=['type','push','3848qMYzSz','toLowerCase','keys','set','dryRun','get','app','alias','50urDfqJ','1283346mdRBmE','name','has','dry-run','original','410982GBIWng','slice','add','2945foqRYz','14194cInVgB','appcode','string','6566IWgNzm','help','format','number','14092880twHJkC','3444nCrVMS','length','sticky','boolean','corrected','indexOf','replace','global','87000YWIVNL','entries'];a49_0x1f4a=function(){return _0x157bff;};return a49_0x1f4a();}function buildKnownFlags(_0x2262cd){const _0x3b8b25=a49_0x5f45,_0x368fe9=new Set();for(const _0x446282 of _0x2262cd){_0x368fe9[_0x3b8b25(0x120)](_0x446282['name']),_0x368fe9['add'](toCamelCase(_0x446282['name']));}for(const _0x4b9da4 of[_0x3b8b25(0x11c),_0x3b8b25(0x114),'yes',_0x3b8b25(0x127)]){_0x368fe9[_0x3b8b25(0x120)](_0x4b9da4);}for(const _0x2a842f of[_0x3b8b25(0x126),'env',_0x3b8b25(0x123),_0x3b8b25(0x116),'nonInteractive','non-interactive','ci',_0x3b8b25(0x131),'version']){_0x368fe9[_0x3b8b25(0x120)](_0x2a842f);}return _0x368fe9;}function buildFlagTypeMap(_0x3c1dac){const _0x243c3b=a49_0x5f45,_0x2768bb=new Map();for(const _0x2c019d of _0x3c1dac){_0x2768bb['set'](_0x2c019d['name'],_0x2c019d[_0x243c3b(0x134)]),_0x2768bb[_0x243c3b(0x113)](toCamelCase(_0x2c019d[_0x243c3b(0x11a)]),_0x2c019d[_0x243c3b(0x134)]);}return _0x2768bb;}function toCamelCase(_0x15bb61){return _0x15bb61['replace'](/-([a-z])/g,(_0x30a5f8,_0x7d7014)=>_0x7d7014['toUpperCase']());}function aliasHandler(_0x35a5fb,_0x24a4bd){const _0x51b6e2=a49_0x5f45,_0xf65e4b=[];for(const _0x4b43c4 of Object[_0x51b6e2(0x112)](_0x35a5fb)){if(_0x24a4bd['has'](_0x4b43c4))continue;const _0x12bfef=toKebab(_0x4b43c4);_0x12bfef!==_0x4b43c4&&_0x24a4bd[_0x51b6e2(0x11b)](_0x12bfef)&&_0xf65e4b[_0x51b6e2(0x10f)]({'original':_0x4b43c4,'corrected':_0x12bfef,'handler':_0x51b6e2(0x117)});}return _0xf65e4b;}function stickyHandler(_0x280ab8,_0x2de952,_0x1bd16c){const _0x4d92b7=a49_0x5f45,_0x1dcef6=[];for(const [_0x30b4ba,_0x503564]of Object[_0x4d92b7(0x133)](_0x280ab8)){if(_0x503564!==!![])continue;for(let _0x39a020=_0x30b4ba['length']-0x1;_0x39a020>0x0;_0x39a020--){const _0x392b67=_0x30b4ba[_0x4d92b7(0x11f)](0x0,_0x39a020),_0x31fa7d=_0x30b4ba['slice'](_0x39a020),_0x2a06dd=toKebab(_0x392b67),_0x1a2cac=toCamelCase(_0x392b67),_0x31501c=_0x2de952['has'](_0x392b67)?_0x392b67:_0x2de952[_0x4d92b7(0x11b)](_0x2a06dd)?_0x2a06dd:_0x2de952[_0x4d92b7(0x11b)](_0x1a2cac)?_0x1a2cac:null;if(!_0x31501c)continue;const _0x4ecab7=_0x1bd16c[_0x4d92b7(0x115)](_0x31501c)??_0x4d92b7(0x124);let _0x2d3224;if(_0x4ecab7===_0x4d92b7(0x128)){const _0x3a89b4=Number(_0x31fa7d);if(isNaN(_0x3a89b4)||_0x31fa7d==='')continue;_0x2d3224=_0x3a89b4;}else{if(_0x4ecab7===_0x4d92b7(0x12d))continue;else{if(_0x31fa7d==='')continue;_0x2d3224=_0x31fa7d;}}_0x1dcef6[_0x4d92b7(0x10f)]({'original':_0x30b4ba,'corrected':_0x31501c+'='+_0x2d3224,'handler':_0x4d92b7(0x12c)});break;}}return _0x1dcef6;}export function correctFlags(_0x534a0c,_0x5ca158){const _0x3e5d4f=a49_0x5f45,_0x4f8df1=buildKnownFlags(_0x5ca158),_0x412d9a=buildFlagTypeMap(_0x5ca158),_0x45779e=aliasHandler(_0x534a0c,_0x4f8df1),_0x438bb3=stickyHandler(_0x534a0c,_0x4f8df1,_0x412d9a),_0x216d77=[..._0x45779e,..._0x438bb3];if(_0x216d77[_0x3e5d4f(0x12b)]===0x0)return{'flags':_0x534a0c,'corrections':[]};const _0x391589={..._0x534a0c},_0x3dd451=new Set();for(const _0x1abb6b of _0x45779e){_0x391589[_0x1abb6b['corrected']]=_0x534a0c[_0x1abb6b[_0x3e5d4f(0x11d)]],_0x3dd451[_0x3e5d4f(0x120)](_0x1abb6b['original']);}for(const _0xca9622 of _0x438bb3){const _0x3c279c=_0xca9622[_0x3e5d4f(0x12e)][_0x3e5d4f(0x12f)]('='),_0x31a018=_0xca9622[_0x3e5d4f(0x12e)][_0x3e5d4f(0x11f)](0x0,_0x3c279c),_0x45716e=_0xca9622[_0x3e5d4f(0x12e)][_0x3e5d4f(0x11f)](_0x3c279c+0x1),_0x56f587=_0x412d9a[_0x3e5d4f(0x115)](_0x31a018)??_0x3e5d4f(0x124);_0x56f587===_0x3e5d4f(0x128)?_0x391589[_0x31a018]=Number(_0x45716e):_0x391589[_0x31a018]=_0x45716e,_0x3dd451[_0x3e5d4f(0x120)](_0xca9622['original']);}for(const _0x19bc73 of _0x3dd451){delete _0x391589[_0x19bc73];}return{'flags':_0x391589,'corrections':_0x216d77};}
@@ -1 +1 @@
1
- (function(_0x52ca26,_0x3d4781){var _0x34c7cb=a48_0xbcf7,_0x35cce3=_0x52ca26();while(!![]){try{var _0x1d29d9=parseInt(_0x34c7cb(0x192))/0x1+parseInt(_0x34c7cb(0x197))/0x2+parseInt(_0x34c7cb(0x193))/0x3+-parseInt(_0x34c7cb(0x194))/0x4*(parseInt(_0x34c7cb(0x196))/0x5)+-parseInt(_0x34c7cb(0x18e))/0x6*(parseInt(_0x34c7cb(0x190))/0x7)+parseInt(_0x34c7cb(0x191))/0x8+-parseInt(_0x34c7cb(0x195))/0x9*(parseInt(_0x34c7cb(0x18f))/0xa);if(_0x1d29d9===_0x3d4781)break;else _0x35cce3['push'](_0x35cce3['shift']());}catch(_0x3a03b1){_0x35cce3['push'](_0x35cce3['shift']());}}}(a48_0x43d4,0xd7c26));function a48_0x43d4(){var _0x2e80f1=['6qcJGoL','70vUanrv','5712651ICUTMQ','6468712kNWddm','1561949sdhYBw','3198906jOAMbD','264948XMPdqw','2039967LhyGgt','35BOTfHi','626606bWNnEU'];a48_0x43d4=function(){return _0x2e80f1;};return a48_0x43d4();}function a48_0xbcf7(_0x57206c,_0x2546d8){_0x57206c=_0x57206c-0x18e;var _0x43d4bc=a48_0x43d4();var _0xbcf779=_0x43d4bc[_0x57206c];return _0xbcf779;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a50_0x121f(){var _0x5309fd=['677159RkrUtE','1550foQtgN','3204RSKkSO','1293XFuqZY','2597012wqJdjP','8735kFgpxe','310857iOVRlj','334JwOVfd','718692JBffGA','4beTzLj','756nUnXWA','16JeZUDv'];a50_0x121f=function(){return _0x5309fd;};return a50_0x121f();}(function(_0x46eda6,_0x2c82ff){var _0x32cb29=a50_0x3085,_0x17439f=_0x46eda6();while(!![]){try{var _0x247e3a=-parseInt(_0x32cb29(0x1b6))/0x1*(-parseInt(_0x32cb29(0x1ba))/0x2)+parseInt(_0x32cb29(0x1b9))/0x3*(-parseInt(_0x32cb29(0x1bc))/0x4)+-parseInt(_0x32cb29(0x1b8))/0x5*(parseInt(_0x32cb29(0x1bd))/0x6)+parseInt(_0x32cb29(0x1bf))/0x7*(parseInt(_0x32cb29(0x1be))/0x8)+parseInt(_0x32cb29(0x1b5))/0x9*(-parseInt(_0x32cb29(0x1c0))/0xa)+parseInt(_0x32cb29(0x1b7))/0xb+-parseInt(_0x32cb29(0x1bb))/0xc;if(_0x247e3a===_0x2c82ff)break;else _0x17439f['push'](_0x17439f['shift']());}catch(_0xc6a09b){_0x17439f['push'](_0x17439f['shift']());}}}(a50_0x121f,0x3275d));function a50_0x3085(_0x349d39,_0x481299){_0x349d39=_0x349d39-0x1b5;var _0x121f9f=a50_0x121f();var _0x308502=_0x121f9f[_0x349d39];return _0x308502;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x11f579,_0xf7ed56){const _0x4520f3=a49_0x4b34,_0x1179aa=_0x11f579();while(!![]){try{const _0x51515e=parseInt(_0x4520f3(0x1fd))/0x1+parseInt(_0x4520f3(0x209))/0x2+parseInt(_0x4520f3(0x203))/0x3*(parseInt(_0x4520f3(0x1fa))/0x4)+parseInt(_0x4520f3(0x208))/0x5+parseInt(_0x4520f3(0x1f7))/0x6*(parseInt(_0x4520f3(0x1f3))/0x7)+-parseInt(_0x4520f3(0x1fc))/0x8+-parseInt(_0x4520f3(0x205))/0x9;if(_0x51515e===_0xf7ed56)break;else _0x1179aa['push'](_0x1179aa['shift']());}catch(_0x4fdfd7){_0x1179aa['push'](_0x1179aa['shift']());}}}(a49_0xbe62,0x9c314));function a49_0xbe62(){const _0x58a89a=['\x20\x20\x20Affected:\x20','⚠\x20\x20High-risk\x20operation:\x20','2435645mWFNVB','1978970GGfQVB','stringify','\x20\x20\x20','params','code','4188359TJYMWE','join','service','--yes','6pYekgz','\x20\x20\x20Continue?\x20[y/N]\x20','id=','1880516PTVOyo','commandLabel','3770448ZMstwR','1155997mRFgYx','affectedRecords','push','description','name','name=','3GQfcvv','code=','23310063vUMtJq'];a49_0xbe62=function(){return _0x58a89a;};return a49_0xbe62();}function a49_0x4b34(_0x43b4d8,_0x6a89a9){_0x43b4d8=_0x43b4d8-0x1f1;const _0xbe62e9=a49_0xbe62();let _0x4b3435=_0xbe62e9[_0x43b4d8];return _0x4b3435;}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x16f5a5,_0x27e7b6,_0x16b48c){const _0x1cbe53=a49_0x4b34,_0x1fd19f=buildConfirmationContext(_0x16f5a5,_0x27e7b6,_0x16b48c),_0x529240=[_0x1cbe53(0x207)+_0x1fd19f[_0x1cbe53(0x1fb)]];return _0x1fd19f[_0x1cbe53(0x200)]&&_0x529240[_0x1cbe53(0x1ff)](_0x1cbe53(0x20b)+_0x1fd19f[_0x1cbe53(0x200)]),_0x1fd19f['affectedRecords']&&_0x529240[_0x1cbe53(0x1ff)](_0x1cbe53(0x206)+_0x1fd19f[_0x1cbe53(0x1fe)]),_0x529240['push'](_0x1cbe53(0x1f8)),_0x529240;}export function reconstructCommandArgv(_0x3ac503,_0x41df0c){const _0x2afe8e=a49_0x4b34,_0x18d7f6=[CLI_BIN_NAME,_0x3ac503[_0x2afe8e(0x1f5)],_0x3ac503['command']];for(const [_0x5bcfab,_0xb31d0]of Object['entries'](_0x41df0c)){if(_0xb31d0===!![])_0x18d7f6[_0x2afe8e(0x1ff)]('--'+_0x5bcfab);else _0xb31d0!==![]&&_0xb31d0!==undefined&&_0xb31d0!==''&&_0x18d7f6['push']('--'+_0x5bcfab+'\x20'+JSON[_0x2afe8e(0x20a)](_0xb31d0));}return _0x18d7f6[_0x2afe8e(0x1ff)](_0x2afe8e(0x1f6)),_0x18d7f6[_0x2afe8e(0x1f4)]('\x20');}function buildConfirmationContext(_0x4fb4f4,_0x159318,_0x2dde3c){const _0x1d222e=a49_0x4b34,_0x16e4ae=extractAffectedRecords(_0x2dde3c);return{'commandLabel':_0x159318,'description':_0x4fb4f4[_0x1d222e(0x200)],'affectedRecords':_0x16e4ae};}function extractAffectedRecords(_0x5c3c5d){const _0x331669=a49_0x4b34,_0x2fe293=[];if(_0x5c3c5d[_0x331669(0x1f2)])_0x2fe293[_0x331669(0x1ff)](_0x331669(0x204)+_0x5c3c5d[_0x331669(0x1f2)]);if(_0x5c3c5d['id'])_0x2fe293[_0x331669(0x1ff)](_0x331669(0x1f9)+_0x5c3c5d['id']);if(_0x5c3c5d[_0x331669(0x201)])_0x2fe293[_0x331669(0x1ff)](_0x331669(0x202)+_0x5c3c5d[_0x331669(0x201)]);if(_0x5c3c5d[_0x331669(0x1f1)])_0x2fe293[_0x331669(0x1ff)]('params='+_0x5c3c5d[_0x331669(0x1f1)]);return _0x2fe293['length']>0x0?_0x2fe293[_0x331669(0x1f4)](',\x20'):undefined;}
1
+ (function(_0x4ec4ff,_0x4f1189){const _0x402241=a51_0x585b,_0x1a3306=_0x4ec4ff();while(!![]){try{const _0x386e11=-parseInt(_0x402241(0x8a))/0x1+parseInt(_0x402241(0x8c))/0x2+parseInt(_0x402241(0x77))/0x3*(parseInt(_0x402241(0x7a))/0x4)+-parseInt(_0x402241(0x87))/0x5*(parseInt(_0x402241(0x89))/0x6)+-parseInt(_0x402241(0x86))/0x7+parseInt(_0x402241(0x7d))/0x8*(parseInt(_0x402241(0x80))/0x9)+parseInt(_0x402241(0x90))/0xa;if(_0x386e11===_0x4f1189)break;else _0x1a3306['push'](_0x1a3306['shift']());}catch(_0x13e34b){_0x1a3306['push'](_0x1a3306['shift']());}}}(a51_0x14dd,0x48cd2));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x25cd9d,_0x53da28,_0x1a91bb){const _0x42ed64=a51_0x585b,_0x3424dd=buildConfirmationContext(_0x25cd9d,_0x53da28,_0x1a91bb),_0x409c5b=['⚠\x20\x20High-risk\x20operation:\x20'+_0x3424dd[_0x42ed64(0x82)]];return _0x3424dd[_0x42ed64(0x84)]&&_0x409c5b['push'](_0x42ed64(0x76)+_0x3424dd[_0x42ed64(0x84)]),_0x3424dd[_0x42ed64(0x78)]&&_0x409c5b[_0x42ed64(0x8e)](_0x42ed64(0x83)+_0x3424dd[_0x42ed64(0x78)]),_0x409c5b['push']('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x409c5b;}function a51_0x585b(_0x58af95,_0x963159){_0x58af95=_0x58af95-0x76;const _0x14dd92=a51_0x14dd();let _0x585be7=_0x14dd92[_0x58af95];return _0x585be7;}export function reconstructCommandArgv(_0x2b185d,_0x25a397){const _0x45dab7=a51_0x585b,_0x557040=[CLI_BIN_NAME,_0x2b185d[_0x45dab7(0x7b)],_0x2b185d[_0x45dab7(0x8d)]];for(const [_0x5dc1a9,_0x5830c3]of Object[_0x45dab7(0x7f)](_0x25a397)){if(_0x5830c3===!![])_0x557040['push']('--'+_0x5dc1a9);else _0x5830c3!==![]&&_0x5830c3!==undefined&&_0x5830c3!==''&&_0x557040[_0x45dab7(0x8e)]('--'+_0x5dc1a9+'\x20'+JSON[_0x45dab7(0x7c)](_0x5830c3));}return _0x557040[_0x45dab7(0x8e)](_0x45dab7(0x8b)),_0x557040['join']('\x20');}function buildConfirmationContext(_0x510286,_0x2b4e06,_0x77c859){const _0x1f94d4=extractAffectedRecords(_0x77c859);return{'commandLabel':_0x2b4e06,'description':_0x510286['description'],'affectedRecords':_0x1f94d4};}function a51_0x14dd(){const _0x17426d=['257810OoEKkl','--yes','264730qfZSpM','command','push','params','1341190iXjZtr','code','\x20\x20\x20','628872dBrVYH','affectedRecords','name','4QXzIPf','service','stringify','3224dWnDhw','name=','entries','13059LoQgOp','id=','commandLabel','\x20\x20\x20Affected:\x20','description','code=','939547UEczXM','610IWpvvJ','params=','18228CFNGEf'];a51_0x14dd=function(){return _0x17426d;};return a51_0x14dd();}function extractAffectedRecords(_0x88920a){const _0x5e32c3=a51_0x585b,_0x1d0cbc=[];if(_0x88920a[_0x5e32c3(0x91)])_0x1d0cbc[_0x5e32c3(0x8e)](_0x5e32c3(0x85)+_0x88920a['code']);if(_0x88920a['id'])_0x1d0cbc['push'](_0x5e32c3(0x81)+_0x88920a['id']);if(_0x88920a[_0x5e32c3(0x79)])_0x1d0cbc[_0x5e32c3(0x8e)](_0x5e32c3(0x7e)+_0x88920a['name']);if(_0x88920a['params'])_0x1d0cbc[_0x5e32c3(0x8e)](_0x5e32c3(0x88)+_0x88920a[_0x5e32c3(0x8f)]);return _0x1d0cbc['length']>0x0?_0x1d0cbc['join'](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x1c3f18,_0x319af9){const _0x15ef5f=a50_0x38b7,_0x380f23=_0x1c3f18();while(!![]){try{const _0xfeac3f=-parseInt(_0x15ef5f(0xe0))/0x1*(-parseInt(_0x15ef5f(0xde))/0x2)+parseInt(_0x15ef5f(0xe3))/0x3+parseInt(_0x15ef5f(0xea))/0x4*(-parseInt(_0x15ef5f(0xdd))/0x5)+-parseInt(_0x15ef5f(0xe6))/0x6*(-parseInt(_0x15ef5f(0xe2))/0x7)+-parseInt(_0x15ef5f(0xe1))/0x8+parseInt(_0x15ef5f(0xe7))/0x9+-parseInt(_0x15ef5f(0xe4))/0xa*(parseInt(_0x15ef5f(0xe9))/0xb);if(_0xfeac3f===_0x319af9)break;else _0x380f23['push'](_0x380f23['shift']());}catch(_0x15c11e){_0x380f23['push'](_0x380f23['shift']());}}}(a50_0x5d50,0xba125));import{LovrabetError}from'@lovrabet/sdk';function a50_0x38b7(_0x5e966d,_0x1bdf7d){_0x5e966d=_0x5e966d-0xdd;const _0x5d508b=a50_0x5d50();let _0x38b720=_0x5d508b[_0x5e966d];return _0x38b720;}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x1536f3){const _0x3ea99d=a50_0x38b7;if(_0x1536f3 instanceof LovrabetError)return CliErrors[_0x3ea99d(0xe8)](userFacingLovrabetMessage(_0x1536f3));return _0x1536f3;}function a50_0x5d50(){const _0x26246c=['1108WYMRCJ','trim','9385OzHRVr','1812542AfMJVe','string','1asbZIb','2593152GyxpMf','287GNFhVq','4127013Skbgav','50sELEuq','message','18888lARslo','1545993StXxJQ','validation','2148443aDtHfa'];a50_0x5d50=function(){return _0x26246c;};return a50_0x5d50();}function userFacingLovrabetMessage(_0x269220){const _0x19acb8=a50_0x38b7,_0x25c515=_0x269220['description'];if(_0x25c515!==undefined&&_0x25c515!==null){if(typeof _0x25c515===_0x19acb8(0xdf)&&_0x25c515[_0x19acb8(0xeb)]())return _0x25c515[_0x19acb8(0xeb)]();try{return JSON['stringify'](_0x25c515);}catch{}}return _0x269220[_0x19acb8(0xe5)];}
1
+ function a52_0x5e43(_0x1f9137,_0x14ae8e){_0x1f9137=_0x1f9137-0x190;const _0x118619=a52_0x1186();let _0x5e43dd=_0x118619[_0x1f9137];return _0x5e43dd;}(function(_0x173bc3,_0x3c47d2){const _0x54ff53=a52_0x5e43,_0x49bcb8=_0x173bc3();while(!![]){try{const _0x1aee02=parseInt(_0x54ff53(0x194))/0x1+parseInt(_0x54ff53(0x199))/0x2+parseInt(_0x54ff53(0x196))/0x3*(parseInt(_0x54ff53(0x197))/0x4)+parseInt(_0x54ff53(0x191))/0x5+-parseInt(_0x54ff53(0x193))/0x6+parseInt(_0x54ff53(0x195))/0x7+parseInt(_0x54ff53(0x19b))/0x8*(-parseInt(_0x54ff53(0x192))/0x9);if(_0x1aee02===_0x3c47d2)break;else _0x49bcb8['push'](_0x49bcb8['shift']());}catch(_0x50b4a9){_0x49bcb8['push'](_0x49bcb8['shift']());}}}(a52_0x1186,0x899e9));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x189d31){const _0x48561a=a52_0x5e43;if(_0x189d31 instanceof LovrabetError)return CliErrors[_0x48561a(0x19c)](userFacingLovrabetMessage(_0x189d31));return _0x189d31;}function a52_0x1186(){const _0x5d7396=['3946000ubNDZG','6741RGUaqc','1271436AdgEVx','234680VcSMhH','3941049pdOjEq','1225299BXZbxd','4qrYQSO','string','343834imaWZW','trim','14864WroVwv','validation','message'];a52_0x1186=function(){return _0x5d7396;};return a52_0x1186();}function userFacingLovrabetMessage(_0x89443c){const _0xfb1a22=a52_0x5e43,_0x170dcd=_0x89443c['description'];if(_0x170dcd!==undefined&&_0x170dcd!==null){if(typeof _0x170dcd===_0xfb1a22(0x198)&&_0x170dcd[_0xfb1a22(0x19a)]())return _0x170dcd['trim']();try{return JSON['stringify'](_0x170dcd);}catch{}}return _0x89443c[_0xfb1a22(0x190)];}