@lovrabet/lovrabet-cli 2.0.2 → 2.0.3

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 +3 -2
@@ -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_0x2b99aa=a29_0x511b;(function(_0x59efda,_0x28cf93){const _0x1de739=a29_0x511b,_0x31786f=_0x59efda();while(!![]){try{const _0x466d3b=-parseInt(_0x1de739(0xea))/0x1+-parseInt(_0x1de739(0xf1))/0x2*(parseInt(_0x1de739(0xf3))/0x3)+parseInt(_0x1de739(0xe1))/0x4+-parseInt(_0x1de739(0xf2))/0x5*(parseInt(_0x1de739(0xfb))/0x6)+parseInt(_0x1de739(0xf7))/0x7*(-parseInt(_0x1de739(0xff))/0x8)+parseInt(_0x1de739(0xeb))/0x9*(-parseInt(_0x1de739(0xe0))/0xa)+parseInt(_0x1de739(0xf8))/0xb*(parseInt(_0x1de739(0xe7))/0xc);if(_0x466d3b===_0x28cf93)break;else _0x31786f['push'](_0x31786f['shift']());}catch(_0x3fcdd7){_0x31786f['push'](_0x31786f['shift']());}}}(a29_0x1f45,0x2cef5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x1f45(){const _0x10d0df=['83112JryTap','Access\x20key\x20(client-ak\x20auth)','has','Override\x20API\x20domain','7hMgnjh','671HYRpRt','Default\x20page\x20size','Locale','1458dKHNde','entries','filter','defaultValue','920048BrNGkS','cliSettableTopLevel','266810ryIkoG','968532vOpaBD','format','join','env','enumValues','Target\x20environment','163752Cclbyo','Override\x20user\x20domain','locale','226400MRkkzm','108urxAic','Default\x20output\x20format','riskLevel','Config\x20key.\x20Top-level:\x20','importable','map','2BIpABq','4140BAMDZu'];a29_0x1f45=function(){return _0x10d0df;};return a29_0x1f45();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a29_0x2b99aa(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe4)],'importable':!![]},'format':{'description':a29_0x2b99aa(0xec),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe2)],'importable':!![]},'pageSize':{'description':a29_0x2b99aa(0xf9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x2b99aa(0xf6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x2b99aa(0xe8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x2b99aa(0xf4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xed)],'importable':!![]},'locale':{'description':a29_0x2b99aa(0xfa),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe9)],'importable':!![],'legacyCompatOnly':!![]}};function a29_0x511b(_0x45837e,_0x13fc2a){_0x45837e=_0x45837e-0xdf;const _0x1f45eb=a29_0x1f45();let _0x511ba4=_0x1f45eb[_0x45837e];return _0x511ba4;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x2b99aa(0xfc)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x52543c])=>_0x52543c[a29_0x2b99aa(0xdf)])[a29_0x2b99aa(0xf0)](([_0x4420b4])=>_0x4420b4));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x2b99aa(0xfd)](([,_0x573ecf])=>_0x573ecf[a29_0x2b99aa(0xe5)])[a29_0x2b99aa(0xf0)](([_0x37a2c0,_0x208176])=>[_0x37a2c0,[..._0x208176['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x2b99aa(0xfc)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x6946ef])=>_0x6946ef[a29_0x2b99aa(0xef)])[a29_0x2b99aa(0xf0)](([_0x517077])=>_0x517077);export function getConfigFieldSchema(_0x208d51){return CONFIG_FIELD_SCHEMAS[_0x208d51];}export function getConfigEnumValues(_0x5c27f5){return getConfigFieldSchema(_0x5c27f5)?.['enumValues'];}export function getConfigDefaultValue(_0x21a301){const _0x9f963a=a29_0x2b99aa;return getConfigFieldSchema(_0x21a301)?.[_0x9f963a(0xfe)];}export function isTopLevelConfigKey(_0x239b03){const _0x2f846b=a29_0x2b99aa;return TOP_LEVEL_CONFIG_KEYS[_0x2f846b(0xf5)](_0x239b03);}export function isLegacyCompatConfigKey(_0xe7f965){return getConfigFieldSchema(_0xe7f965)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5cfd3a){const _0x1f6f58=a29_0x2b99aa;return[..._0x5cfd3a][_0x1f6f58(0xe3)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x166dd4=a29_0x2b99aa;return _0x166dd4(0xee)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x3909ca){return{'env':_0x3909ca,'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 a30_0x1eb3(){const _0x531a9f=['855310bQtMyi','865321rCgYZg','396772bALsgZ','171ZBPzJq','56465lfYFeu','6puHNTS','9861516HXSxAi','1032128KKNbES','32289279iwfYdd','642xpfRVQ','12rGuarL','ClientAk','8VzOhsR','client-ak'];a30_0x1eb3=function(){return _0x531a9f;};return a30_0x1eb3();}const a30_0x42d6d4=a30_0x5b98;(function(_0x37b623,_0x16873c){const _0xe26925=a30_0x5b98,_0x1863fe=_0x37b623();while(!![]){try{const _0x5b30ea=-parseInt(_0xe26925(0x16c))/0x1+parseInt(_0xe26925(0x164))/0x2+parseInt(_0xe26925(0x170))/0x3*(-parseInt(_0xe26925(0x16d))/0x4)+-parseInt(_0xe26925(0x16f))/0x5*(parseInt(_0xe26925(0x166))/0x6)+-parseInt(_0xe26925(0x171))/0x7*(-parseInt(_0xe26925(0x169))/0x8)+-parseInt(_0xe26925(0x16e))/0x9*(parseInt(_0xe26925(0x16b))/0xa)+parseInt(_0xe26925(0x165))/0xb*(parseInt(_0xe26925(0x167))/0xc);if(_0x5b30ea===_0x16873c)break;else _0x1863fe['push'](_0x1863fe['shift']());}catch(_0x28b7f1){_0x1863fe['push'](_0x1863fe['shift']());}}}(a30_0x1eb3,0xeb216));export const AUTH_MODE={'ClientAk':a30_0x42d6d4(0x16a)};function a30_0x5b98(_0x70dddb,_0xfba872){_0x70dddb=_0x70dddb-0x164;const _0x1eb3bf=a30_0x1eb3();let _0x5b98b7=_0x1eb3bf[_0x70dddb];return _0x5b98b7;}export function isAuthMode(_0x3feee7){const _0x4ae869=a30_0x42d6d4;return _0x3feee7===AUTH_MODE[_0x4ae869(0x168)];}
@@ -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_0x91d0eb=a31_0x284b;function a31_0x2256(){const _0x38d65f=['fromEntries','verbose','292692GqiiBV','boolean','12085590ILAQmB','map','Environment','474IHvTPh','Alias\x20for\x20--non-interactive','<name>','appcode','string','Preview\x20operation\x20without\x20executing','sqlcode','Output\x20format','Override\x20appcode','env','JSON\x20params\x20for\x20execute\x20commands','dryRun','<code>','type','dry-run','clear','SQL\x20query\x20code','app','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','5640005fhYbRZ','48sdwCTX','production\x20|\x20development\x20|\x20daily','51132DtRlXz','Filter\x20JSON\x20output\x20(implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Lovrabet\x20Runtime\x20CLI','Show\x20help','name','9061736yHDFnA','Verbose\x20output','global','yes','lovrabet','2808JPhYDt','Select\x20app\x20profile\x20by\x20name','63tXzueW','344710BCJdCr','non-interactive','115aOymyO','meowKey','nonInteractive','Clear\x20output','format','@lovrabet/lovrabet-cli','Record\x20ID','Use\x20global\x20config\x20scope','params'];a31_0x2256=function(){return _0x38d65f;};return a31_0x2256();}(function(_0x26758c,_0x598ad5){const _0x314e6c=a31_0x284b,_0x16c2f3=_0x26758c();while(!![]){try{const _0x31aac6=parseInt(_0x314e6c(0x13a))/0x1*(-parseInt(_0x314e6c(0x119))/0x2)+-parseInt(_0x314e6c(0x12e))/0x3*(parseInt(_0x314e6c(0x130))/0x4)+parseInt(_0x314e6c(0x109))/0x5*(parseInt(_0x314e6c(0x114))/0x6)+parseInt(_0x314e6c(0x12d))/0x7+-parseInt(_0x314e6c(0x135))/0x8+parseInt(_0x314e6c(0x106))/0x9*(-parseInt(_0x314e6c(0x107))/0xa)+parseInt(_0x314e6c(0x116))/0xb;if(_0x31aac6===_0x598ad5)break;else _0x16c2f3['push'](_0x16c2f3['shift']());}catch(_0x40639d){_0x16c2f3['push'](_0x16c2f3['shift']());}}}(a31_0x2256,0xbf011));export const CLI_BIN_NAME=a31_0x91d0eb(0x139);export const CLI_DISPLAY_NAME=a31_0x91d0eb(0x132);export const NPM_PACKAGE_NAME=a31_0x91d0eb(0x10e);function a31_0x284b(_0x3fb7d4,_0x3bdd45){_0x3fb7d4=_0x3fb7d4-0x106;const _0x225651=a31_0x2256();let _0x284b97=_0x225651[_0x3fb7d4];return _0x284b97;}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a31_0x91d0eb(0x11c),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x121),'hint':a31_0x91d0eb(0x125)},{'name':a31_0x91d0eb(0x12a),'meowKey':a31_0x91d0eb(0x12a),'type':'string','description':a31_0x91d0eb(0x13b),'hint':a31_0x91d0eb(0x11b)},{'name':a31_0x91d0eb(0x122),'meowKey':a31_0x91d0eb(0x122),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x118),'hint':a31_0x91d0eb(0x12f)},{'name':'format','meowKey':a31_0x91d0eb(0x10d),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x120),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x131),'hint':'<expr>'},{'name':'dry-run','meowKey':a31_0x91d0eb(0x124),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x11e)},{'name':a31_0x91d0eb(0x138),'meowKey':'yes','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x12c)},{'name':a31_0x91d0eb(0x108),'meowKey':a31_0x91d0eb(0x10b),'type':a31_0x91d0eb(0x115),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a31_0x91d0eb(0x137),'meowKey':a31_0x91d0eb(0x137),'type':'boolean','description':a31_0x91d0eb(0x110)},{'name':'ci','meowKey':'ci','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x11a),'hidden':!![]},{'name':a31_0x91d0eb(0x12b),'meowKey':'help','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x133)},{'name':'id','meowKey':'id','type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x10f),'hidden':!![]},{'name':a31_0x91d0eb(0x134),'meowKey':a31_0x91d0eb(0x134),'type':a31_0x91d0eb(0x11d),'description':'Name\x20filter','hidden':!![]},{'name':a31_0x91d0eb(0x11f),'meowKey':a31_0x91d0eb(0x11f),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x129),'hidden':!![]},{'name':a31_0x91d0eb(0x111),'meowKey':a31_0x91d0eb(0x111),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x123),'hidden':!![]},{'name':'verbose','meowKey':a31_0x91d0eb(0x113),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x136),'hidden':!![]},{'name':a31_0x91d0eb(0x128),'meowKey':a31_0x91d0eb(0x128),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x91d0eb(0x11c),a31_0x91d0eb(0x12a),a31_0x91d0eb(0x122),a31_0x91d0eb(0x10d),'jq',a31_0x91d0eb(0x127),a31_0x91d0eb(0x138),'non-interactive','ci']);export function buildMeowFlags(){const _0x5cf7a5=a31_0x91d0eb;return Object[_0x5cf7a5(0x112)](GLOBAL_FLAGS[_0x5cf7a5(0x117)](_0x42c971=>[_0x42c971[_0x5cf7a5(0x10a)],{'type':_0x42c971[_0x5cf7a5(0x126)]}]));}
@@ -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
+ function a32_0x5639(){const _0x13583b=['1405916yvXUOk','production','compress','3342042ZwKmll','7115540nehYnq','7eIsOzQ','18471192cZRUZf','52257MrdwUP','4438311vVyNgt','9603702fZDAhD','en-US','write'];a32_0x5639=function(){return _0x13583b;};return a32_0x5639();}const a32_0x5e8e3b=a32_0x4b0f;(function(_0xa1c9eb,_0x5cb6f4){const _0x92790d=a32_0x4b0f,_0x570e88=_0xa1c9eb();while(!![]){try{const _0x297134=parseInt(_0x92790d(0x1bf))/0x1+-parseInt(_0x92790d(0x1c7))/0x2+parseInt(_0x92790d(0x1c0))/0x3+parseInt(_0x92790d(0x1c4))/0x4+parseInt(_0x92790d(0x1c8))/0x5+-parseInt(_0x92790d(0x1c1))/0x6*(-parseInt(_0x92790d(0x1c9))/0x7)+-parseInt(_0x92790d(0x1be))/0x8;if(_0x297134===_0x5cb6f4)break;else _0x570e88['push'](_0x570e88['shift']());}catch(_0x4ccf70){_0x570e88['push'](_0x570e88['shift']());}}}(a32_0x5639,0xe2502));export const DEFAULT_APP_PROFILE_NAME='main';function a32_0x4b0f(_0x364b7b,_0xb1f3d5){_0x364b7b=_0x364b7b-0x1be;const _0x56392d=a32_0x5639();let _0x4b0f52=_0x56392d[_0x364b7b];return _0x4b0f52;}export const DEFAULT_CONFIG_VALUES={'env':a32_0x5e8e3b(0x1c5),'format':a32_0x5e8e3b(0x1c6),'locale':a32_0x5e8e3b(0x1c2),'riskLevel':a32_0x5e8e3b(0x1c3)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a32_0x5e8e3b(0x1c6);
@@ -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_0x540e7a=a33_0x5331;(function(_0x4dc13c,_0x4b757e){const _0x5f493a=a33_0x5331,_0x507fd6=_0x4dc13c();while(!![]){try{const _0x12585d=-parseInt(_0x5f493a(0x166))/0x1+-parseInt(_0x5f493a(0x172))/0x2*(-parseInt(_0x5f493a(0x16a))/0x3)+parseInt(_0x5f493a(0x165))/0x4*(parseInt(_0x5f493a(0x16e))/0x5)+-parseInt(_0x5f493a(0x169))/0x6*(parseInt(_0x5f493a(0x168))/0x7)+-parseInt(_0x5f493a(0x174))/0x8*(-parseInt(_0x5f493a(0x175))/0x9)+parseInt(_0x5f493a(0x16c))/0xa+parseInt(_0x5f493a(0x16f))/0xb*(parseInt(_0x5f493a(0x171))/0xc);if(_0x12585d===_0x4b757e)break;else _0x507fd6['push'](_0x507fd6['shift']());}catch(_0x10e922){_0x507fd6['push'](_0x507fd6['shift']());}}}(a33_0x272b,0x3dae6));import{getEnv,isProduction}from'../constant/env.js';function a33_0x5331(_0x2c13bf,_0x54e2c9){_0x2c13bf=_0x2c13bf-0x165;const _0x272b0f=a33_0x272b();let _0x5331d9=_0x272b0f[_0x2c13bf];return _0x5331d9;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3dc3ea){const _0x47d9e0=a33_0x5331;customApiDomain=_0x3dc3ea?.[_0x47d9e0(0x16d)],customUserDomain=_0x3dc3ea?.['userDomain'],customRuntimeDomain=_0x3dc3ea?.[_0x47d9e0(0x167)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x540e7a(0x170):'https://user-daily.lovrabet.com');function a33_0x272b(){const _0x2fcb4a=['https://user.lovrabet.com','404484siKZFZ','478wDoGpV','https://daily-runtime.lovrabet.com','208NlogqB','130680reoWPe','https://daily-api.lovrabet.com','8hnyQGC','357626UMJHtX','runtimeDomain','143409HPtJjN','132TIztSQ','1782AkaqPY','https://runtime.lovrabet.com','3029640OoyPzt','apiDomain','259270AmHORG','44zaZfxP'];a33_0x272b=function(){return _0x2fcb4a;};return a33_0x272b();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a33_0x540e7a(0x176));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0x540e7a(0x16b):a33_0x540e7a(0x173));
@@ -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_0x53f676=a34_0x4582;(function(_0x118f27,_0x3f0a0d){const _0x1cefa4=a34_0x4582,_0x198a4b=_0x118f27();while(!![]){try{const _0x1a6dbb=-parseInt(_0x1cefa4(0x14b))/0x1*(parseInt(_0x1cefa4(0x150))/0x2)+-parseInt(_0x1cefa4(0x14c))/0x3+-parseInt(_0x1cefa4(0x14e))/0x4*(-parseInt(_0x1cefa4(0x14f))/0x5)+parseInt(_0x1cefa4(0x14d))/0x6+parseInt(_0x1cefa4(0x151))/0x7*(parseInt(_0x1cefa4(0x149))/0x8)+parseInt(_0x1cefa4(0x154))/0x9*(-parseInt(_0x1cefa4(0x155))/0xa)+-parseInt(_0x1cefa4(0x152))/0xb*(-parseInt(_0x1cefa4(0x153))/0xc);if(_0x1a6dbb===_0x3f0a0d)break;else _0x198a4b['push'](_0x198a4b['shift']());}catch(_0x3f6321){_0x198a4b['push'](_0x198a4b['shift']());}}}(a34_0x21c1,0xf03e5));export const RUNTIME_ENV_VALUES=[a34_0x53f676(0x14a),'development','daily'];export function normalizeEnv(_0x2d1844){const _0x1495f4=a34_0x53f676;return _0x2d1844===_0x1495f4(0x156)?_0x1495f4(0x14a):_0x2d1844;}export function isProduction(_0xdbd934){const _0x12bf99=a34_0x53f676;return normalizeEnv(_0xdbd934)===_0x12bf99(0x14a);}export function isDaily(_0x1ca380){return normalizeEnv(_0x1ca380)==='daily';}export function isDev(_0x259d14){const _0x2d35a4=normalizeEnv(_0x259d14);return _0x2d35a4==='development'||_0x2d35a4==='dev';}function a34_0x4582(_0x3a6d3a,_0x22dd0f){_0x3a6d3a=_0x3a6d3a-0x149;const _0x21c160=a34_0x21c1();let _0x4582a4=_0x21c160[_0x3a6d3a];return _0x4582a4;}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x53f676(0x14a));export function getEnv(){return env;}export function initEnv(_0x1e098c){env=normalizeEnv(_0x1e098c);}function a34_0x21c1(){const _0x47b540=['2674578zkvMSh','940GTXVBM','3585mMFqny','2258322btorso','525YQlMME','341dsbDHL','431796BolKEb','9fIenIp','108690tSabtv','online','91984ylaiJo','production','1cmwzdp','1404042jRvpmA'];a34_0x21c1=function(){return _0x47b540;};return a34_0x21c1();}
@@ -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_0x1f46f5=a35_0x2860;function a35_0x2232(){const _0x58d9e4=['14751HXdPty','pretty','9KyVGbI','254188diWBoA','957033BfVbIB','100726vQdwje','json','8DZkalV','168024RAoGZw','compress','319880rGgPOA','1037610xWiIdd','2750QNJHdl'];a35_0x2232=function(){return _0x58d9e4;};return a35_0x2232();}(function(_0x133ec7,_0x51e9ce){const _0x39fb17=a35_0x2860,_0x19ef6b=_0x133ec7();while(!![]){try{const _0x479e20=parseInt(_0x39fb17(0x1bc))/0x1+parseInt(_0x39fb17(0x1be))/0x2*(parseInt(_0x39fb17(0x1bb))/0x3)+parseInt(_0x39fb17(0x1c3))/0x4+parseInt(_0x39fb17(0x1c4))/0x5+parseInt(_0x39fb17(0x1c1))/0x6+parseInt(_0x39fb17(0x1bd))/0x7*(-parseInt(_0x39fb17(0x1c0))/0x8)+parseInt(_0x39fb17(0x1c6))/0x9*(-parseInt(_0x39fb17(0x1c5))/0xa);if(_0x479e20===_0x51e9ce)break;else _0x19ef6b['push'](_0x19ef6b['shift']());}catch(_0x3879ca){_0x19ef6b['push'](_0x19ef6b['shift']());}}}(a35_0x2232,0x208d1));function a35_0x2860(_0x110efa,_0x1ba1eb){_0x110efa=_0x110efa-0x1bb;const _0x2232d1=a35_0x2232();let _0x286026=_0x2232d1[_0x110efa];return _0x286026;}export const OUTPUT_FORMAT_VALUES=[a35_0x1f46f5(0x1bf),a35_0x1f46f5(0x1c7),a35_0x1f46f5(0x1c2)];
@@ -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
+ function a36_0x74b0(_0x440229,_0x125bc8){_0x440229=_0x440229-0xa4;const _0x39f5d8=a36_0x39f5();let _0x74b09b=_0x39f5d8[_0x440229];return _0x74b09b;}const a36_0x4943be=a36_0x74b0;function a36_0x39f5(){const _0x20c333=['high-risk-write','540008ghIajp','31718bjUQkm','60MegSjX','60JbQcnK','3956733DdqgsH','21uQkaSk','642591siZuRH','1142468DHMiUY','846571PybiUJ','8KddgYk','read','259585ZEEiki'];a36_0x39f5=function(){return _0x20c333;};return a36_0x39f5();}(function(_0x983cf8,_0xdbf8cb){const _0x5228ce=a36_0x74b0,_0x1cb2d6=_0x983cf8();while(!![]){try{const _0x3f1d99=parseInt(_0x5228ce(0xad))/0x1*(parseInt(_0x5228ce(0xa9))/0x2)+-parseInt(_0x5228ce(0xae))/0x3+-parseInt(_0x5228ce(0xaf))/0x4+-parseInt(_0x5228ce(0xa6))/0x5*(parseInt(_0x5228ce(0xaa))/0x6)+parseInt(_0x5228ce(0xa8))/0x7+parseInt(_0x5228ce(0xa4))/0x8*(parseInt(_0x5228ce(0xac))/0x9)+parseInt(_0x5228ce(0xab))/0xa*(parseInt(_0x5228ce(0xb0))/0xb);if(_0x3f1d99===_0xdbf8cb)break;else _0x1cb2d6['push'](_0x1cb2d6['shift']());}catch(_0x10d9f6){_0x1cb2d6['push'](_0x1cb2d6['shift']());}}}(a36_0x39f5,0x476fa));export const RISK_LEVEL_VALUES=[a36_0x4943be(0xa5),'write',a36_0x4943be(0xa7)];
@@ -0,0 +1 @@
1
+ (function(_0x1fc322,_0x3445e0){const _0x6f3b23=a37_0x520b,_0x59035a=_0x1fc322();while(!![]){try{const _0x58e4a6=-parseInt(_0x6f3b23(0x1d3))/0x1*(parseInt(_0x6f3b23(0x1d7))/0x2)+-parseInt(_0x6f3b23(0x1d4))/0x3*(parseInt(_0x6f3b23(0x1d8))/0x4)+parseInt(_0x6f3b23(0x1d1))/0x5+parseInt(_0x6f3b23(0x1cd))/0x6*(-parseInt(_0x6f3b23(0x1d6))/0x7)+-parseInt(_0x6f3b23(0x1d0))/0x8*(-parseInt(_0x6f3b23(0x1cc))/0x9)+-parseInt(_0x6f3b23(0x1ce))/0xa*(-parseInt(_0x6f3b23(0x1d5))/0xb)+-parseInt(_0x6f3b23(0x1d2))/0xc*(parseInt(_0x6f3b23(0x1cf))/0xd);if(_0x58e4a6===_0x3445e0)break;else _0x59035a['push'](_0x59035a['shift']());}catch(_0x197381){_0x59035a['push'](_0x59035a['shift']());}}}(a37_0x3a69,0x6a8da));function a37_0x520b(_0x145664,_0x4bdcd2){_0x145664=_0x145664-0x1cc;const _0x3a6989=a37_0x3a69();let _0x520b5d=_0x3a6989[_0x145664];return _0x520b5d;}export const USER_ACCESS_KEY_CREATE_URL='https://user.lovrabet.com/user/ak';function a37_0x3a69(){const _0x22a3b2=['2258545rRAMjV','1848684ogVLnT','237701wtxEdF','3fLLRgy','6974czhHys','31094kyvihV','4pUROtM','688136MrGfvA','9eMJrTj','240kZJkrP','9770vVrNmJ','26iRjwvz','3988360xgtSNH'];a37_0x3a69=function(){return _0x22a3b2;};return a37_0x3a69();}
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_0x2ec93e=a38_0x5dd9;(function(_0xb6de09,_0x2c21e8){const _0x41b996=a38_0x5dd9,_0x170957=_0xb6de09();while(!![]){try{const _0x381a28=-parseInt(_0x41b996(0x20a))/0x1*(-parseInt(_0x41b996(0x22b))/0x2)+parseInt(_0x41b996(0x225))/0x3+parseInt(_0x41b996(0x221))/0x4*(parseInt(_0x41b996(0x1f0))/0x5)+parseInt(_0x41b996(0x1ef))/0x6+parseInt(_0x41b996(0x20d))/0x7*(parseInt(_0x41b996(0x1fa))/0x8)+parseInt(_0x41b996(0x215))/0x9+-parseInt(_0x41b996(0x232))/0xa;if(_0x381a28===_0x2c21e8)break;else _0x170957['push'](_0x170957['shift']());}catch(_0x5756f6){_0x170957['push'](_0x170957['shift']());}}}(a38_0x4934,0xbae81));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';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';function a38_0x4934(){const _0x58a700=['./constant/env.js','empty','trim','2811384ctVszx','inherit','PAGE_SIZE','setRawMode','3923460gJRFaF','read','userDomain','stdout','ACCESS_KEY','join','17968oIDgQM','slice','development','.lovrabetrc','riskLevel','APPCODE','cwd','43726130fdKZQZ','true','parse','error','globalConfig','1666692OSBodb','10qmlgLc','env','FORMAT','production','host','apps','projectConfig','project','global','argv','21416RldknI','apiDomain','code','string','find','./constant/domain.js','defaultApp','online','object','locale','VERBOSE','values','setRawCommand','missing','.lovrabet.json','runtimeDomain','50miBnol','stringify','daily','1113dQrZmY','authRequired','EPERM','stdin','raw','appcode','utf8','APP','11448405RfMvMW','message','isTTY','app','.tmp','nonInteractive','EXDEV','format','accessKey'];a38_0x4934=function(){return _0x58a700;};return a38_0x4934();}export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';function a38_0x5dd9(_0x445a03,_0x280c1a){_0x445a03=_0x445a03-0x1ef;const _0x4934d8=a38_0x4934();let _0x5dd9b7=_0x4934d8[_0x445a03];return _0x5dd9b7;}const CONFIG_NAMES=['.lovrabet.json',a38_0x2ec93e(0x22e)];export const NEW_CONFIG_NAME=a38_0x2ec93e(0x208);function resolveConfigPath(_0x574f13){for(const _0x1989b6 of CONFIG_NAMES){const _0x5719a6=resolve(_0x574f13,_0x1989b6);if(existsSync(_0x5719a6))return _0x5719a6;}return undefined;}export function resolveWriteConfigPath(_0x3fa8a4){const _0x1e1805=a38_0x2ec93e,_0xce7666=_0x3fa8a4===_0x1e1805(0x1f7)?process['cwd']():homedir(),_0x173846=resolveConfigPath(_0xce7666);return _0x173846??resolve(_0xce7666,NEW_CONFIG_NAME);}export function readConfigFile(_0x20568d){const _0x167cac=a38_0x2ec93e;try{if(existsSync(_0x20568d)){const _0x42b205=readFileSync(_0x20568d,{'encoding':_0x167cac(0x213)});if(_0x42b205){const _0x2409e1=JSON[_0x167cac(0x234)](_0x42b205);return migrateOnlineEnv(_0x20568d,_0x2409e1),_0x2409e1;}}}catch{}return{};}function migrateOnlineEnv(_0x24325f,_0x4e443c){const _0x10f78f=a38_0x2ec93e;let _0x44e026=![];_0x4e443c[_0x10f78f(0x1f1)]===_0x10f78f(0x201)&&(_0x4e443c[_0x10f78f(0x1f1)]='production',_0x44e026=!![]);if(_0x4e443c['apps']&&typeof _0x4e443c['apps']===_0x10f78f(0x202))for(const _0x16bb36 of Object['values'](_0x4e443c[_0x10f78f(0x1f5)])){_0x16bb36&&_0x16bb36[_0x10f78f(0x1f1)]===_0x10f78f(0x201)&&(_0x16bb36[_0x10f78f(0x1f1)]='production',_0x44e026=!![]);}if(_0x44e026)try{writeConfigFile(_0x24325f,_0x4e443c);}catch{}}export function writeConfigFile(_0x24c9fb,_0x475872){const _0x574448=a38_0x2ec93e,_0x1cf420=dirname(_0x24c9fb);!existsSync(_0x1cf420)&&mkdirSync(_0x1cf420,{'recursive':!![]});const _0x480c38=_0x24c9fb+_0x574448(0x219);try{writeFileSync(_0x480c38,JSON['stringify'](_0x475872,null,0x2)+'\x0a',{'encoding':_0x574448(0x213),'mode':0x180});try{renameSync(_0x480c38,_0x24c9fb);}catch(_0x1dbbad){if(_0x1dbbad[_0x574448(0x1fc)]===_0x574448(0x20f)||_0x1dbbad[_0x574448(0x1fc)]===_0x574448(0x21b)||_0x1dbbad[_0x574448(0x1fc)]==='EACCES'){writeFileSync(_0x24c9fb,JSON[_0x574448(0x20b)](_0x475872,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x480c38);}catch{}}else throw _0x1dbbad;}}catch(_0x389b19){try{unlinkSync(_0x480c38);}catch{}throw _0x389b19;}}export function isNonInteractiveMode(_0x534566){const _0xd70770=a38_0x2ec93e;return!!(_0x534566[_0xd70770(0x21a)]||_0x534566['ci']||process.env.LOVRABET_CI==='true'||process.env.RABETBASE_CI===_0xd70770(0x233)||process.env.LOVRABET_CI===_0xd70770(0x233)||process.env.CI==='true'||!process[_0xd70770(0x228)][_0xd70770(0x217)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xfc337f=a38_0x2ec93e;if(!process['stdin'][_0xfc337f(0x217)])return![];try{const _0x550de2=process['stdin']['isRaw'];return process[_0xfc337f(0x210)][_0xfc337f(0x224)](!![]),process[_0xfc337f(0x210)][_0xfc337f(0x224)](_0x550de2??![]),!![];}catch{return![];}}export async function createContext(_0x15879e){const _0x405b6b=a38_0x2ec93e,_0x4e5909=readRawConfig(),_0xb9692=buildConfig(_0x4e5909,_0x15879e);await initGlobalEnvironment(_0xb9692);const {getUserDomain:_0x59877f,getApiDomain:_0x431032}=await import(_0x405b6b(0x1ff)),_0x44b0ab={'apiDomain':_0x431032(),'userDomain':_0x59877f()},_0x4dbc06=await buildAuth(_0xb9692);logger['setLogPath'](process[_0x405b6b(0x231)]());const _0x5b19e8=(CLI_BIN_NAME+'\x20'+process[_0x405b6b(0x1f9)][_0x405b6b(0x22c)](0x2)[_0x405b6b(0x22a)]('\x20'))[_0x405b6b(0x220)]();logger[_0x405b6b(0x206)](_0x5b19e8);const _0x23bb86=isNonInteractiveMode(_0x15879e);return{'config':_0xb9692,'auth':_0x4dbc06,'logger':logger,'env':_0x44b0ab,'nonInteractive':_0x23bb86};}export function buildConfigFromFlags(_0x5f2ab7){return buildConfig(readRawConfig(),_0x5f2ab7);}export function readAppCodeFromConfig(){const _0x4a32e3=a38_0x2ec93e,_0x3aa3df=readRawConfig(),_0x270e45=_0x3aa3df[_0x4a32e3(0x212)]??_0x3aa3df[_0x4a32e3(0x218)];if(typeof _0x270e45===_0x4a32e3(0x1fd)&&_0x270e45[_0x4a32e3(0x220)]())return _0x270e45[_0x4a32e3(0x220)]();const _0x241e00=_0x3aa3df[_0x4a32e3(0x1f5)]&&typeof _0x3aa3df[_0x4a32e3(0x1f5)]==='object'?_0x3aa3df['apps']:{},_0x307ce7=_0x3aa3df[_0x4a32e3(0x200)]?_0x241e00[_0x3aa3df[_0x4a32e3(0x200)]]:undefined;if(_0x307ce7?.[_0x4a32e3(0x212)])return String(_0x307ce7[_0x4a32e3(0x212)])[_0x4a32e3(0x220)]();const _0x6d10be=normalizeEnv(String(_0x3aa3df['env']||'production')),_0x26baf7=isDaily(_0x6d10be)?_0x4a32e3(0x20c):isDev(_0x6d10be)?_0x4a32e3(0x22d):_0x4a32e3(0x1f3),_0x4ca3bf=resolveCachedAppCode(typeof _0x3aa3df[_0x4a32e3(0x200)]===_0x4a32e3(0x1fd)?_0x3aa3df[_0x4a32e3(0x200)]:undefined,_0x26baf7,typeof _0x3aa3df[_0x4a32e3(0x21d)]===_0x4a32e3(0x1fd)?_0x3aa3df[_0x4a32e3(0x21d)]:undefined);if(_0x4ca3bf)return _0x4ca3bf;const _0x1a410b=Object[_0x4a32e3(0x205)](_0x241e00)[_0x4a32e3(0x1fe)](_0xd1c00=>_0xd1c00?.[_0x4a32e3(0x212)]);return _0x1a410b?.[_0x4a32e3(0x212)]?String(_0x1a410b[_0x4a32e3(0x212)])[_0x4a32e3(0x220)]():undefined;}export function readScopedConfig(_0x54af3a){const _0x42e29e=a38_0x2ec93e,_0x2cc12a=_0x54af3a[_0x42e29e(0x1f8)]?'global':_0x42e29e(0x1f7);return readConfigFile(resolveWriteConfigPath(_0x2cc12a));}export function writeScopedConfig(_0x35a3dc,_0x58e692){const _0x4b0660=a38_0x2ec93e,_0x331ee8=_0x58e692[_0x4b0660(0x1f8)]?_0x4b0660(0x1f8):_0x4b0660(0x1f7);writeConfigFile(resolveWriteConfigPath(_0x331ee8),_0x35a3dc);}export async function initGlobalEnvironment(_0x4f3c12){const _0x5afbc9=a38_0x2ec93e,{initEnv:_0x146431}=await import(_0x5afbc9(0x21e));_0x146431(_0x4f3c12['env']);const {initDomains:_0x2dfe70}=await import(_0x5afbc9(0x1ff));_0x2dfe70({'apiDomain':_0x4f3c12['raw'][_0x5afbc9(0x1fb)]||_0x4f3c12['raw'][_0x5afbc9(0x1f4)]||undefined,'userDomain':_0x4f3c12[_0x5afbc9(0x211)][_0x5afbc9(0x227)]||undefined,'runtimeDomain':_0x4f3c12[_0x5afbc9(0x211)][_0x5afbc9(0x209)]||undefined});}export function getProjectConfigPath(){const _0x53331b=a38_0x2ec93e;return resolveConfigPath(process[_0x53331b(0x231)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4ee677){const _0x5fe693=a38_0x2ec93e;if(!existsSync(_0x4ee677))return{'status':_0x5fe693(0x207)};try{const _0x2a3f6f=readFileSync(_0x4ee677,{'encoding':'utf8'});if(!_0x2a3f6f?.['trim']())return{'status':_0x5fe693(0x21f)};const _0x4f701e=JSON['parse'](_0x2a3f6f);return{'status':'ok','data':_0x4f701e};}catch(_0x101046){return{'status':_0x5fe693(0x235),'message':_0x101046 instanceof Error?_0x101046[_0x5fe693(0x216)]:String(_0x101046)};}}export function loadRawConfigLayers(_0x248990){const _0x3d9976=a38_0x2ec93e;let _0x3cb4da={},_0x5c6a9f={},_0x29360b,_0x30f094;try{_0x29360b=resolveConfigPath(homedir());if(_0x29360b){const _0x5e1e84=readFileSync(_0x29360b,{'encoding':_0x3d9976(0x213)});if(_0x5e1e84)_0x3cb4da=JSON[_0x3d9976(0x234)](_0x5e1e84);}}catch{}try{const _0x2fb197=_0x248990||process[_0x3d9976(0x231)]();_0x30f094=resolveConfigPath(_0x2fb197);if(_0x30f094){const _0xba1712=readFileSync(_0x30f094,{'encoding':'utf8'});if(_0xba1712)_0x5c6a9f=JSON[_0x3d9976(0x234)](_0xba1712);}}catch{}return{'globalPath':_0x29360b,'projectPath':_0x30f094,'globalConfig':_0x3cb4da,'projectConfig':_0x5c6a9f};}function mergeRawConfigLayers(_0x3cca11){const _0x302355=a38_0x2ec93e,{globalConfig:_0x7b41a8,projectConfig:_0x45ea35}=_0x3cca11;if(_0x45ea35[_0x302355(0x222)]===![]){const _0x8b1795={..._0x45ea35};return delete _0x8b1795[_0x302355(0x222)],_0x8b1795;}const _0x1c6190={..._0x7b41a8,..._0x45ea35};if(_0x302355(0x200)in _0x45ea35)_0x1c6190[_0x302355(0x200)]=_0x45ea35['defaultApp'];else _0x7b41a8['defaultApp']&&(_0x1c6190[_0x302355(0x200)]=_0x7b41a8['defaultApp']);return _0x1c6190;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x438795){return mergeRawConfigLayers(loadRawConfigLayers(_0x438795));}export function readRawConfigWithLayers(_0x354a81){const _0x45d5a4=loadRawConfigLayers(_0x354a81);return{'config':mergeRawConfigLayers(_0x45d5a4),'layers':_0x45d5a4};}export function resolveDefaultAppSource(_0x98ebff){const _0xcc9d1a=a38_0x2ec93e;if(_0xcc9d1a(0x200)in _0x98ebff[_0xcc9d1a(0x1f6)])return _0xcc9d1a(0x1f7);if(_0x98ebff[_0xcc9d1a(0x1f6)][_0xcc9d1a(0x222)]===![])return null;if(_0x98ebff[_0xcc9d1a(0x236)][_0xcc9d1a(0x200)])return _0xcc9d1a(0x1f8);return null;}function buildConfig(_0x10f708,_0x3fdad8){const _0x4d0317=a38_0x2ec93e,_0x3cae7d=_0x10f708[_0x4d0317(0x200)]||undefined,_0x179bb7=_0x3fdad8['app']||env(_0x4d0317(0x214))||undefined,_0x3f8501=_0x179bb7||_0x3cae7d||undefined,_0x1a28f5=env(_0x4d0317(0x229))||_0x10f708[_0x4d0317(0x21d)]||undefined,_0x109674=_0x3fdad8['env']||env('ENV')||_0x10f708['env']||DEFAULT_CONFIG_VALUES[_0x4d0317(0x1f1)],_0x31bb61=normalizeEnv(String(_0x109674)),_0x6c0f0c=isDaily(_0x31bb61)?'daily':isDev(_0x31bb61)?_0x4d0317(0x22d):'production',_0x5eb43e=resolveCachedAppCode(_0x3f8501,_0x6c0f0c,_0x1a28f5),_0xd72256=_0x3fdad8[_0x4d0317(0x212)]||env(_0x4d0317(0x230))||_0x5eb43e||_0x10f708[_0x4d0317(0x212)]||_0x10f708[_0x4d0317(0x218)]||undefined,_0x19ea7d=_0x10f708[_0x4d0317(0x203)]||DEFAULT_CONFIG_VALUES[_0x4d0317(0x203)],_0x142754=undefined,_0x40cc2b=_0x3fdad8[_0x4d0317(0x21c)]||env(_0x4d0317(0x1f2))||_0x10f708['format'],_0x5a85a1=normalizeLegacyOutputFormat(_0x40cc2b),_0x1ac53f=env(_0x4d0317(0x223))||_0x10f708['pageSize'],_0x256218=_0x1ac53f?Number(_0x1ac53f)||undefined:undefined,_0x373d03=_0x10f708[_0x4d0317(0x22f)]||_0x10f708['maxRisk'],_0x431269=_0x373d03===_0x4d0317(0x226)||_0x373d03==='write'||_0x373d03==='high-risk-write'?_0x373d03:DEFAULT_CONFIG_VALUES[_0x4d0317(0x22f)],_0x14affb=env(_0x4d0317(0x204)),_0x147520=_0x14affb==='1'||_0x14affb==='true';return{'appCode':typeof _0xd72256===_0x4d0317(0x1fd)&&_0xd72256[_0x4d0317(0x220)]()?_0xd72256[_0x4d0317(0x220)]():undefined,'env':_0x6c0f0c,'locale':_0x19ea7d,'cookie':_0x142754,'accessKey':_0x1a28f5,'format':_0x5a85a1,'pageSize':_0x256218,'riskLevel':_0x431269,'verbose':_0x147520,'defaultApp':_0x3cae7d,'currentApp':typeof _0x3f8501===_0x4d0317(0x1fd)?_0x3f8501:undefined,'raw':_0x10f708};}function env(_0x479166){return process.env[`LOVRABET_${_0x479166}`]||undefined;}async function buildAuth(_0x254fe2){const _0x293997=a38_0x2ec93e,_0x34e2f8='',_0x413224=!!_0x254fe2[_0x293997(0x21d)];return{'cookie':_0x34e2f8,'isLoggedIn':_0x413224,async 'getOrLogin'(){const _0x4d8694=_0x293997;if(_0x413224)return _0x34e2f8;throw CliErrors[_0x4d8694(0x20e)]();}};}
@@ -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 a39_0x899a(_0x158802,_0x2057dd){_0x158802=_0x158802-0x72;const _0x1e5d29=a39_0x1e5d();let _0x899a3=_0x1e5d29[_0x158802];return _0x899a3;}(function(_0x22cf5b,_0x227319){const _0x488e58=a39_0x899a,_0xa7989=_0x22cf5b();while(!![]){try{const _0x52675a=parseInt(_0x488e58(0x86))/0x1*(-parseInt(_0x488e58(0x9a))/0x2)+parseInt(_0x488e58(0x81))/0x3+parseInt(_0x488e58(0x84))/0x4+-parseInt(_0x488e58(0x95))/0x5*(-parseInt(_0x488e58(0x7d))/0x6)+-parseInt(_0x488e58(0x79))/0x7*(parseInt(_0x488e58(0x9e))/0x8)+-parseInt(_0x488e58(0x74))/0x9+parseInt(_0x488e58(0x80))/0xa*(parseInt(_0x488e58(0x7b))/0xb);if(_0x52675a===_0x227319)break;else _0xa7989['push'](_0xa7989['shift']());}catch(_0x1f25e6){_0xa7989['push'](_0xa7989['shift']());}}}(a39_0x1e5d,0x974ca));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;function a39_0x1e5d(){const _0x472ff4=['tableData','abort','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','sqlCode','4524660OhXsLR','Configure\x20accessKey\x20in\x20.lovrabet.json.','apiError','cli:lovrabet-runtime','object','385YZGfpv','data','2066647XnlgXX','POST','2582922aEkrbI','API\x20error:\x20','validation','20sprRgJ','1533960ZOrscW','signal','application/json','4149416EBlFnM','name','4447iUfbbC','GET','code','/client/app/my-apps','isArray','/client/user/loginUserInfo','Request\x20timeout:\x20','message','SQL\x20query\x20not\x20found:\x20','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','appName','/client/sql/query','test','success','/client/bff/query/','5owSSPM','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','stringify','filter','/client/dataset/list','38bYRHRJ','errorMsg','errorCode','appCode','166976KUxRqq','status','string','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','/client/dataset/query?'];a39_0x1e5d=function(){return _0x472ff4;};return a39_0x1e5d();}export function setActiveAK(_0x1d48de){_activeAK=_0x1d48de||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x32377a,_0x169ed6={}){const _0xc8cd0e=a39_0x899a,{method:method=_0xc8cd0e(0x87),body:_0x5a5b9e,headers:headers={},timeout:timeout=0x7530}=_0x169ed6,_0x3cf0fa=_activeAK,_0xebbfa9=getRuntimeDomain();if(!_0x3cf0fa)throw CliErrors['authRequired'](_0xc8cd0e(0x75));const _0x174995=''+_0xebbfa9+_0x32377a,_0x4187ad={'X-User-AK':_0x3cf0fa},_0x30358d=new AbortController(),_0x17d5b0=setTimeout(()=>_0x30358d[_0xc8cd0e(0xa4)](),timeout);try{const _0x56942b=await fetch(_0x174995,{'method':method,'headers':{'Content-Type':_0xc8cd0e(0x83),'X-Invoke-Source':_0xc8cd0e(0x77),..._0x4187ad,...headers},'body':_0x5a5b9e?JSON[_0xc8cd0e(0x97)](_0x5a5b9e):undefined,'signal':_0x30358d[_0xc8cd0e(0x82)]});let _0x12f108;try{_0x12f108=await _0x56942b['json']();}catch{throw CliErrors[_0xc8cd0e(0x76)](_0xc8cd0e(0x96)+_0x56942b[_0xc8cd0e(0x9f)]+')',_0x56942b[_0xc8cd0e(0x9f)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x56942b['ok']||_0x12f108[_0xc8cd0e(0x93)]===![])throw CliErrors['apiError'](_0x12f108[_0xc8cd0e(0x9b)]||_0x12f108[_0xc8cd0e(0x8d)]||_0xc8cd0e(0x7e)+_0x56942b[_0xc8cd0e(0x9f)],_0x12f108[_0xc8cd0e(0x9c)]?'API\x20error\x20code:\x20'+_0x12f108[_0xc8cd0e(0x9c)]:undefined);return _0x12f108;}catch(_0x2c3f2b){if(_0x2c3f2b instanceof Error&&_0x2c3f2b[_0xc8cd0e(0x85)]==='AbortError')throw CliErrors['apiError'](_0xc8cd0e(0x8c)+_0x174995);throw _0x2c3f2b;}finally{clearTimeout(_0x17d5b0);}}export async function getBffScriptInfo(_0x43708b){const _0x4b5718=a39_0x899a,_0x56dbe0=await apiRequest(_0x4b5718(0x94)+_0x43708b);if(!_0x56dbe0[_0x4b5718(0x7a)])throw CliErrors['validation']('BFF\x20script\x20not\x20found:\x20id='+_0x43708b);return _0x56dbe0[_0x4b5718(0x7a)];}export async function getSqlQueryInfo(_0x5b287e,_0x2dfcf3){const _0xc54eae=a39_0x899a,_0x2741ed=await apiRequest(_0xc54eae(0x91),{'method':_0xc54eae(0x7c),'body':{'appCode':_0x5b287e,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2dfcf3}}),_0x4bb98a=_0x2741ed[_0xc54eae(0x7a)],_0x2dad37=_0x4bb98a&&typeof _0x4bb98a===_0xc54eae(0x78)&&'tableData'in _0x4bb98a?_0x4bb98a[_0xc54eae(0xa3)]?.[0x0]:_0x4bb98a&&typeof _0x4bb98a==='object'&&_0xc54eae(0x73)in _0x4bb98a?_0x4bb98a:undefined;if(!_0x2dad37)throw CliErrors[_0xc54eae(0x7f)](_0xc54eae(0x8e)+_0x2dfcf3);return _0x2dad37;}function isRemoteAppItem(_0x17c5df){const _0x3af8b1=a39_0x899a;return!!_0x17c5df&&typeof _0x17c5df==='object'&&typeof _0x17c5df[_0x3af8b1(0x9d)]==='string'&&typeof _0x17c5df[_0x3af8b1(0x90)]===_0x3af8b1(0xa0);}function extractRemoteAppItems(_0x53b9e9){const _0x18ec96=a39_0x899a;if(Array[_0x18ec96(0x8a)](_0x53b9e9))return _0x53b9e9['filter'](isRemoteAppItem);if(!_0x53b9e9||typeof _0x53b9e9!==_0x18ec96(0x78))throw CliErrors[_0x18ec96(0x76)](_0x18ec96(0xa1));const _0x7a6f62=_0x53b9e9;if(Array[_0x18ec96(0x8a)](_0x7a6f62[_0x18ec96(0xa3)]))return _0x7a6f62[_0x18ec96(0xa3)][_0x18ec96(0x98)](isRemoteAppItem);if(_0x7a6f62[_0x18ec96(0x7a)]&&typeof _0x7a6f62[_0x18ec96(0x7a)]===_0x18ec96(0x78)){const _0x4ba503=_0x7a6f62[_0x18ec96(0x7a)];if(Array[_0x18ec96(0x8a)](_0x4ba503['tableData']))return _0x4ba503[_0x18ec96(0xa3)]['filter'](isRemoteAppItem);}throw CliErrors['apiError'](_0x18ec96(0x72));}export async function getMyApps(){const _0x258e7f=a39_0x899a,_0x9921af=await apiRequest(_0x258e7f(0x89));return extractRemoteAppItems(_0x9921af['data']);}export async function getLoginUserInfo(){const _0x513683=a39_0x899a,_0x8af6f5=await apiRequest(_0x513683(0x8b));if(!_0x8af6f5[_0x513683(0x7a)]||typeof _0x8af6f5[_0x513683(0x7a)]!==_0x513683(0x78)||Array[_0x513683(0x8a)](_0x8af6f5[_0x513683(0x7a)]))throw CliErrors[_0x513683(0x76)](_0x513683(0x8f));return _0x8af6f5['data'];}export async function listDatasets(_0x420ecd,_0xcaec90){const _0x4e2f8d=a39_0x899a,_0x53f9cd=await apiRequest(_0x4e2f8d(0x99),{'method':_0x4e2f8d(0x7c),'body':{'appCode':_0x420ecd,..._0xcaec90?.[_0x4e2f8d(0x88)]&&{'code':_0xcaec90[_0x4e2f8d(0x88)]},..._0xcaec90?.[_0x4e2f8d(0x85)]&&{'name':_0xcaec90[_0x4e2f8d(0x85)]}}});return extractList(_0x53f9cd['data']);}export async function getDatasetDetail(_0xd170e4){const _0x5ee022=a39_0x899a,_0xbb4306=/^\d+$/[_0x5ee022(0x92)](_0xd170e4)?'id':_0x5ee022(0x88),_0x226c33=await apiRequest(_0x5ee022(0xa2)+_0xbb4306+'='+_0xd170e4);return _0x226c33[_0x5ee022(0x7a)];}
@@ -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 a40_0x452d(_0x57483d,_0x3732e4){_0x57483d=_0x57483d-0x1ac;const _0x4b7b62=a40_0x4b7b();let _0x452dbc=_0x4b7b62[_0x57483d];return _0x452dbc;}(function(_0x3cefd8,_0x58bb64){const _0x2a8ef8=a40_0x452d,_0x379834=_0x3cefd8();while(!![]){try{const _0x37cdb9=parseInt(_0x2a8ef8(0x1ae))/0x1*(parseInt(_0x2a8ef8(0x1ad))/0x2)+-parseInt(_0x2a8ef8(0x1b6))/0x3+parseInt(_0x2a8ef8(0x1be))/0x4+parseInt(_0x2a8ef8(0x1ac))/0x5*(parseInt(_0x2a8ef8(0x1b0))/0x6)+parseInt(_0x2a8ef8(0x1bf))/0x7+-parseInt(_0x2a8ef8(0x1b5))/0x8*(parseInt(_0x2a8ef8(0x1b2))/0x9)+-parseInt(_0x2a8ef8(0x1b9))/0xa*(-parseInt(_0x2a8ef8(0x1bd))/0xb);if(_0x37cdb9===_0x58bb64)break;else _0x379834['push'](_0x379834['shift']());}catch(_0x5c9641){_0x379834['push'](_0x379834['shift']());}}}(a40_0x4b7b,0xbb814));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a40_0x4b7b(){const _0x1bc6af=['874264TcZPth','2202305HghfHB','808715RToqlA','2506tXskpe','1201LondTd','get','12euxAMg','dbName','252tixqis','find','entries','382088bkeXoq','1464723QXSPtZ','has','set','2320490dsoNqV','map','dbtableConfig','dbId','11MjdCKH'];a40_0x4b7b=function(){return _0x1bc6af;};return a40_0x4b7b();}export async function listDatabases(_0x26e636){const _0x57ad1f=a40_0x452d;if(cache[_0x57ad1f(0x1b7)](_0x26e636))return cache[_0x57ad1f(0x1af)](_0x26e636);const _0x346dc1=await listDatasets(_0x26e636),_0x28c9e3=new Map();for(const _0x325b2c of _0x346dc1){const _0x1144ea=_0x325b2c[_0x57ad1f(0x1bb)];_0x1144ea?.['dbId']!=null&&_0x28c9e3[_0x57ad1f(0x1b8)](_0x1144ea[_0x57ad1f(0x1bc)],_0x1144ea[_0x57ad1f(0x1b1)]??'db-'+_0x1144ea[_0x57ad1f(0x1bc)]);}const _0x3ef318=[..._0x28c9e3[_0x57ad1f(0x1b4)]()][_0x57ad1f(0x1ba)](([_0x29ef49,_0x4de1ef])=>({'dbId':_0x29ef49,'dbName':_0x4de1ef}));return cache[_0x57ad1f(0x1b8)](_0x26e636,_0x3ef318),_0x3ef318;}export async function getDbName(_0x1ee1ec,_0x11424f){const _0x4bec35=a40_0x452d;try{const _0x46e364=await listDatabases(_0x1ee1ec);return _0x46e364[_0x4bec35(0x1b3)](_0x438a72=>_0x438a72[_0x4bec35(0x1bc)]===_0x11424f)?.[_0x4bec35(0x1b1)];}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 a41_0x2693(){const _0x11b0b4=['78RGJfSe','dataset_','getOne','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','function','bff','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','batchCreate','367083ksQtIQ','442554XPORwS','update','460OKCPbw','models','accessKey','appCode','2644645tNLKZA','2106204IKDPnm','25928ryKpWV','env','authMode','1wDareU','sql','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','delete','execute','1201114PKePgZ','345840UwnVkF','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27'];a41_0x2693=function(){return _0x11b0b4;};return a41_0x2693();}(function(_0x45aae0,_0x595829){const _0x2c64ac=a41_0x10bd,_0x20a6e7=_0x45aae0();while(!![]){try{const _0x2da547=parseInt(_0x2c64ac(0x105))/0x1*(-parseInt(_0x2c64ac(0x10b))/0x2)+parseInt(_0x2c64ac(0x118))/0x3+-parseInt(_0x2c64ac(0x101))/0x4+-parseInt(_0x2c64ac(0x11e))/0x5+parseInt(_0x2c64ac(0x10e))/0x6*(-parseInt(_0x2c64ac(0x102))/0x7)+parseInt(_0x2c64ac(0x10c))/0x8+parseInt(_0x2c64ac(0x117))/0x9*(parseInt(_0x2c64ac(0x11a))/0xa);if(_0x2da547===_0x595829)break;else _0x20a6e7['push'](_0x20a6e7['shift']());}catch(_0x525146){_0x20a6e7['push'](_0x20a6e7['shift']());}}}(a41_0x2693,0x58909));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x4e85d8){const _0x581e44=a41_0x10bd;_client=createClient({'appCode':_0x4e85d8[_0x581e44(0x11d)],'env':_0x4e85d8[_0x581e44(0x103)],'authMode':_0x4e85d8[_0x581e44(0x104)],..._0x4e85d8['accessKey']?{'accessKey':_0x4e85d8[_0x581e44(0x11c)]}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0x5d956f=a41_0x10bd;if(!_client)throw new Error(_0x5d956f(0x115));return _client;}export async function executeData(_0x5b8016,_0x49d365,_0x26c49a){const _0x3f1a87=a41_0x10bd,_0x1bf745=ensureClient(),_0x1053a7=_0x3f1a87(0x10f)+_0x5b8016,_0x19aaab=_0x1bf745[_0x3f1a87(0x11b)][_0x1053a7];if(!_0x19aaab||typeof _0x19aaab[_0x49d365]!==_0x3f1a87(0x113))throw new Error(_0x3f1a87(0x112)+_0x49d365+'\x22.\x20'+_0x3f1a87(0x108));if(_0x49d365==='batchCreate')return _0x19aaab[_0x3f1a87(0x116)](parseBatchCreateItemsFromParams(_0x26c49a));const _0x404e89=_0x26c49a!==undefined&&_0x26c49a!==null&&!Array['isArray'](_0x26c49a)?_0x26c49a:{};switch(_0x49d365){case _0x3f1a87(0x110):{const _0x1e60db=_0x404e89['id'];if(_0x1e60db===undefined||_0x1e60db===null)throw new Error(_0x3f1a87(0x10d));return _0x19aaab['getOne'](_0x1e60db);}case'update':{const {id:_0x55579a,..._0x1fa73b}=_0x404e89;if(_0x55579a===undefined||_0x55579a===null)throw new Error(_0x3f1a87(0x111));return _0x19aaab[_0x3f1a87(0x119)](_0x55579a,_0x1fa73b);}case'delete':{const _0xd84d80=_0x404e89['id'];if(_0xd84d80===undefined||_0xd84d80===null)throw new Error(_0x3f1a87(0x107));return _0x19aaab[_0x3f1a87(0x109)](_0xd84d80);}default:return _0x19aaab[_0x49d365](_0x404e89);}}export async function executeSdkSql(_0x2eb2ed,_0x436ee4){const _0x460efc=a41_0x10bd,_0x458640=ensureClient();return _0x458640[_0x460efc(0x106)][_0x460efc(0x10a)]({'sqlCode':_0x2eb2ed,'params':_0x436ee4});}function a41_0x10bd(_0xafa309,_0x5d2f0a){_0xafa309=_0xafa309-0x101;const _0x2693d1=a41_0x2693();let _0x10bde3=_0x2693d1[_0xafa309];return _0x10bde3;}export async function executeSdkBff(_0x185ead,_0x340428){const _0x621479=a41_0x10bd,_0x522b12=ensureClient();return _0x522b12[_0x621479(0x114)][_0x621479(0x10a)]({'scriptName':_0x185ead,'params':_0x340428});}
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
+ function a42_0x1a3d(){const _0x487ddc=['1243416uSiEOX','511201zVFBzf','1149078CnOXqc','742851xRnsxM','4766418BfCvBY','Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.','3366223Zyxfxl','196OjZMAS','2yGYJsY','16855VWGPsG'];a42_0x1a3d=function(){return _0x487ddc;};return a42_0x1a3d();}const a42_0x66c8d0=a42_0x46f3;(function(_0x152538,_0x4c73b3){const _0x122877=a42_0x46f3,_0x4d7c9e=_0x152538();while(!![]){try{const _0x5650dc=parseInt(_0x122877(0x12f))/0x1+-parseInt(_0x122877(0x138))/0x2*(-parseInt(_0x122877(0x131))/0x3)+-parseInt(_0x122877(0x137))/0x4*(-parseInt(_0x122877(0x12d))/0x5)+parseInt(_0x122877(0x130))/0x6+-parseInt(_0x122877(0x136))/0x7+parseInt(_0x122877(0x12e))/0x8+-parseInt(_0x122877(0x132))/0x9;if(_0x5650dc===_0x4c73b3)break;else _0x4d7c9e['push'](_0x4d7c9e['shift']());}catch(_0x1fd870){_0x4d7c9e['push'](_0x4d7c9e['shift']());}}}(a42_0x1a3d,0x3f95e));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a42_0x46f3(_0x4034b8,_0x335465){_0x4034b8=_0x4034b8-0x12d;const _0x1a3de8=a42_0x1a3d();let _0x46f332=_0x1a3de8[_0x4034b8];return _0x46f332;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a42_0x66c8d0(0x133)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':a42_0x66c8d0(0x134),'notInProjectHint':a42_0x66c8d0(0x135)});
@@ -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(_0x372f23,_0x233ac9){var _0x89d7b6=a43_0x3143,_0x173325=_0x372f23();while(!![]){try{var _0x2b18c=-parseInt(_0x89d7b6(0x1b5))/0x1+parseInt(_0x89d7b6(0x1b2))/0x2+parseInt(_0x89d7b6(0x1b7))/0x3+-parseInt(_0x89d7b6(0x1b6))/0x4*(parseInt(_0x89d7b6(0x1b4))/0x5)+parseInt(_0x89d7b6(0x1b1))/0x6+parseInt(_0x89d7b6(0x1b3))/0x7+-parseInt(_0x89d7b6(0x1b8))/0x8;if(_0x2b18c===_0x233ac9)break;else _0x173325['push'](_0x173325['shift']());}catch(_0x721f6d){_0x173325['push'](_0x173325['shift']());}}}(a43_0x4efa,0x3359d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a43_0x3143(_0x9547ad,_0x254279){_0x9547ad=_0x9547ad-0x1b1;var _0x4efac8=a43_0x4efa();var _0x314375=_0x4efac8[_0x9547ad];return _0x314375;}import{buildAllFlags as a43_0x16a5ee}from'@lovrabet/cli-framework';export function buildAllFlags(_0x11e061){return a43_0x16a5ee(_0x11e061,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a43_0x4efa(){var _0x2e4e62=['2061792yUiPyP','1380090KfcyYv','723150xhpDGz','398230PkXQVs','4135eSaBcD','357589FerGrk','544nsxpOS','868914BqFSBf'];a43_0x4efa=function(){return _0x2e4e62;};return a43_0x4efa();}
@@ -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_0x5a6f(){const _0x41d46b=['6786528QdpkIR','4889752UMKnuw','48URRHHY','543352kATtDG','body','1328616CbfPBd','926914TeRPff','431545UjGhRE','876018UQgIjs','description'];a44_0x5a6f=function(){return _0x41d46b;};return a44_0x5a6f();}(function(_0x17ebe0,_0x3a22aa){const _0x82b2d8=a44_0x8571,_0x3333f6=_0x17ebe0();while(!![]){try{const _0x3629f2=-parseInt(_0x82b2d8(0x1c5))/0x1+parseInt(_0x82b2d8(0x1c8))/0x2+-parseInt(_0x82b2d8(0x1ca))/0x3+-parseInt(_0x82b2d8(0x1c4))/0x4*(parseInt(_0x82b2d8(0x1c9))/0x5)+parseInt(_0x82b2d8(0x1c2))/0x6+parseInt(_0x82b2d8(0x1c3))/0x7+parseInt(_0x82b2d8(0x1c7))/0x8;if(_0x3629f2===_0x3a22aa)break;else _0x3333f6['push'](_0x3333f6['shift']());}catch(_0x5135ff){_0x3333f6['push'](_0x3333f6['shift']());}}}(a44_0x5a6f,0x8f93c));function a44_0x8571(_0x2d5391,_0x5ce23c){_0x2d5391=_0x2d5391-0x1c2;const _0x5a6f91=a44_0x5a6f();let _0x857119=_0x5a6f91[_0x2d5391];return _0x857119;}export function dryRun(_0x11fdc3,_0x41a472){const _0x2949e5={'method':_0x11fdc3,'url':_0x41a472},_0x4b8039={'body'(_0x126bbd){const _0x438e47=a44_0x8571;return _0x2949e5[_0x438e47(0x1c6)]=_0x126bbd,_0x4b8039;},'description'(_0x2087a3){const _0x4a1678=a44_0x8571;return _0x2949e5[_0x4a1678(0x1cb)]=_0x2087a3,_0x4b8039;},'build'(){return{..._0x2949e5};}};return _0x4b8039;}
@@ -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_0x2c5e(_0x135ec5,_0x26bd0a){_0x135ec5=_0x135ec5-0xf6;const _0x24f57f=a45_0x24f5();let _0x2c5e63=_0x24f57f[_0x135ec5];return _0x2c5e63;}(function(_0x57afc0,_0x2d5487){const _0x4d5dc5=a45_0x2c5e,_0x49f072=_0x57afc0();while(!![]){try{const _0x5b9bfc=-parseInt(_0x4d5dc5(0xf8))/0x1+parseInt(_0x4d5dc5(0xf9))/0x2+-parseInt(_0x4d5dc5(0xf6))/0x3+-parseInt(_0x4d5dc5(0xf7))/0x4+-parseInt(_0x4d5dc5(0xfd))/0x5*(parseInt(_0x4d5dc5(0xfb))/0x6)+-parseInt(_0x4d5dc5(0xfa))/0x7+parseInt(_0x4d5dc5(0xfc))/0x8;if(_0x5b9bfc===_0x2d5487)break;else _0x49f072['push'](_0x49f072['shift']());}catch(_0x5ef7ee){_0x49f072['push'](_0x49f072['shift']());}}}(a45_0x24f5,0xe7c5a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a45_0x24f5(){const _0x2a2c48=['12nDKjKg','36283536uWAeoe','2260205EYzAMy','489081HwtRZv','3726040ztFQNL','593898LZfrDg','1279058GjuRKZ','11431812VLYwdu'];a45_0x24f5=function(){return _0x2a2c48;};return a45_0x24f5();}export const validateFlags=helpers['validateFlags'];
@@ -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
+ function a46_0x40e0(_0x654fb8,_0x3570a5){_0x654fb8=_0x654fb8-0xc2;const _0x5da561=a46_0x5da5();let _0x40e0ac=_0x5da561[_0x654fb8];return _0x40e0ac;}const a46_0x37bbba=a46_0x40e0;(function(_0x15448b,_0x2bb186){const _0x22c88b=a46_0x40e0,_0x9f580d=_0x15448b();while(!![]){try{const _0x1b4c94=-parseInt(_0x22c88b(0xc9))/0x1+parseInt(_0x22c88b(0xc4))/0x2*(-parseInt(_0x22c88b(0xc8))/0x3)+-parseInt(_0x22c88b(0xca))/0x4+parseInt(_0x22c88b(0xc6))/0x5+parseInt(_0x22c88b(0xc3))/0x6+-parseInt(_0x22c88b(0xc5))/0x7+parseInt(_0x22c88b(0xc2))/0x8;if(_0x1b4c94===_0x2bb186)break;else _0x9f580d['push'](_0x9f580d['shift']());}catch(_0x416a49){_0x9f580d['push'](_0x9f580d['shift']());}}}(a46_0x5da5,0x62312));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a46_0x5da5(){const _0x1cfb78=['456939bcucbE','1124180poyAZq','generateFullHelp','44721pTZNeY','736259EIxuMO','1949688isgKlt','5444184COdGRf','4804200wuqOuI','2JbXxLP'];a46_0x5da5=function(){return _0x1cfb78;};return a46_0x5da5();}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':_0x5e2b2d=>serviceGroups['get'](_0x5e2b2d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).'});export function generateCommandHelp(_0x14390e){return generators['generateCommandHelp'](_0x14390e);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a46_0x37bbba(0xc7)];
@@ -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(_0x14bec8,_0x502c64){var _0x5bc397=a47_0x1c0d,_0x1418a8=_0x14bec8();while(!![]){try{var _0x2ef6b6=-parseInt(_0x5bc397(0x19a))/0x1*(parseInt(_0x5bc397(0x196))/0x2)+parseInt(_0x5bc397(0x19e))/0x3+parseInt(_0x5bc397(0x198))/0x4*(-parseInt(_0x5bc397(0x19b))/0x5)+parseInt(_0x5bc397(0x19d))/0x6*(parseInt(_0x5bc397(0x194))/0x7)+parseInt(_0x5bc397(0x195))/0x8+parseInt(_0x5bc397(0x199))/0x9*(-parseInt(_0x5bc397(0x19c))/0xa)+parseInt(_0x5bc397(0x197))/0xb;if(_0x2ef6b6===_0x502c64)break;else _0x1418a8['push'](_0x1418a8['shift']());}catch(_0x512a10){_0x1418a8['push'](_0x1418a8['shift']());}}}(a47_0x55df,0x1b038));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a47_0x1c0d(_0x3db0fe,_0x1836e5){_0x3db0fe=_0x3db0fe-0x194;var _0x55df3e=a47_0x55df();var _0x1c0dc9=_0x55df3e[_0x3db0fe];return _0x1c0dc9;}function a47_0x55df(){var _0x333b4e=['896232DHGIIu','234462nhkuon','1731796SrOHMG','101024WcrczA','1876005NbMPKx','1nqvQqq','5JBlmKx','10uDmyPp','6REBaBm','34458RuitHx','1264403gLXHph'];a47_0x55df=function(){return _0x333b4e;};return a47_0x55df();}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 a48_0x4fc6(_0x504b49,_0x380d8f){_0x504b49=_0x504b49-0x1a4;var _0x46a298=a48_0x46a2();var _0x4fc681=_0x46a298[_0x504b49];return _0x4fc681;}function a48_0x46a2(){var _0x932320=['41330tIVHTw','12690mTVAJn','12585510vKCkXQ','3912ZVPEgs','458025GxLeEO','10182096wCJUqX','7710rLXren','77499sahnjx','66hMdfBz','11299120IlQXTC'];a48_0x46a2=function(){return _0x932320;};return a48_0x46a2();}(function(_0x561421,_0x1d9243){var _0x1abe87=a48_0x4fc6,_0x7155b8=_0x561421();while(!![]){try{var _0x5884b8=-parseInt(_0x1abe87(0x1aa))/0x1+parseInt(_0x1abe87(0x1a4))/0x2*(-parseInt(_0x1abe87(0x1ad))/0x3)+-parseInt(_0x1abe87(0x1a9))/0x4*(parseInt(_0x1abe87(0x1ac))/0x5)+-parseInt(_0x1abe87(0x1ab))/0x6+-parseInt(_0x1abe87(0x1a8))/0x7+parseInt(_0x1abe87(0x1a5))/0x8+parseInt(_0x1abe87(0x1a7))/0x9*(parseInt(_0x1abe87(0x1a6))/0xa);if(_0x5884b8===_0x1d9243)break;else _0x7155b8['push'](_0x7155b8['shift']());}catch(_0x49da83){_0x7155b8['push'](_0x7155b8['shift']());}}}(a48_0x46a2,0xe22b0));export{formatOutput}from'@lovrabet/cli-framework';
@@ -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(_0x1fbc2a,_0x1f399b){const _0x3a0863=a49_0x6a0a,_0x40420d=_0x1fbc2a();while(!![]){try{const _0x14ae34=parseInt(_0x3a0863(0x1c5))/0x1+-parseInt(_0x3a0863(0x1b5))/0x2+parseInt(_0x3a0863(0x1b2))/0x3*(parseInt(_0x3a0863(0x1b6))/0x4)+-parseInt(_0x3a0863(0x1b4))/0x5*(-parseInt(_0x3a0863(0x1ce))/0x6)+-parseInt(_0x3a0863(0x1d0))/0x7*(-parseInt(_0x3a0863(0x1b0))/0x8)+parseInt(_0x3a0863(0x1c1))/0x9+parseInt(_0x3a0863(0x1c0))/0xa*(-parseInt(_0x3a0863(0x1d2))/0xb);if(_0x14ae34===_0x1f399b)break;else _0x40420d['push'](_0x40420d['shift']());}catch(_0x4ab6a3){_0x40420d['push'](_0x40420d['shift']());}}}(a49_0x17e1,0xb23a0));function toKebab(_0x345bfb){const _0x55e689=a49_0x6a0a;return _0x345bfb[_0x55e689(0x1bf)](/_/g,'-')[_0x55e689(0x1bf)](/-([A-Z]+)/g,(_0x164dc4,_0x45c8d9)=>'-'+_0x45c8d9[_0x55e689(0x1b9)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x13f8b9,_0x19c282,_0x288ae1)=>_0x19c282+'-'+_0x288ae1)['toLowerCase']();}function buildKnownFlags(_0x34ae05){const _0x456dfa=a49_0x6a0a,_0x37ee96=new Set();for(const _0x4a158f of _0x34ae05){_0x37ee96[_0x456dfa(0x1c9)](_0x4a158f[_0x456dfa(0x1d3)]),_0x37ee96[_0x456dfa(0x1c9)](toCamelCase(_0x4a158f['name']));}for(const _0x4eb33b of[_0x456dfa(0x1b8),'dryRun','yes',_0x456dfa(0x1c8)]){_0x37ee96[_0x456dfa(0x1c9)](_0x4eb33b);}for(const _0x3fcb8a of[_0x456dfa(0x1cd),_0x456dfa(0x1bd),_0x456dfa(0x1ca),_0x456dfa(0x1c2),_0x456dfa(0x1b1),_0x456dfa(0x1c7),'ci','global',_0x456dfa(0x1ae)]){_0x37ee96[_0x456dfa(0x1c9)](_0x3fcb8a);}return _0x37ee96;}function buildFlagTypeMap(_0x29320c){const _0x4051d1=a49_0x6a0a,_0x19b5a5=new Map();for(const _0x2a58cf of _0x29320c){_0x19b5a5['set'](_0x2a58cf['name'],_0x2a58cf[_0x4051d1(0x1c4)]),_0x19b5a5[_0x4051d1(0x1b7)](toCamelCase(_0x2a58cf[_0x4051d1(0x1d3)]),_0x2a58cf[_0x4051d1(0x1c4)]);}return _0x19b5a5;}function a49_0x6a0a(_0x5d6554,_0x4e586e){_0x5d6554=_0x5d6554-0x1ad;const _0x17e123=a49_0x17e1();let _0x6a0a34=_0x17e123[_0x5d6554];return _0x6a0a34;}function toCamelCase(_0x382083){const _0xae8d84=a49_0x6a0a;return _0x382083[_0xae8d84(0x1bf)](/-([a-z])/g,(_0x442c64,_0x55ec0f)=>_0x55ec0f[_0xae8d84(0x1be)]());}function a49_0x17e1(){const _0x1ddeea=['21525361exkHvO','name','sticky','has','alias','version','push','1088104wkQROv','nonInteractive','1158537mUFJet','get','10urYIOZ','1519368WmUqIY','4cnxVNw','set','dry-run','toLowerCase','length','string','corrected','env','toUpperCase','replace','10rkLIHy','11638332OnmmnK','app','boolean','type','616835NgaPbe','indexOf','non-interactive','format','add','appcode','number','slice','help','1410972mcGdfQ','original','35oEdECV','entries'];a49_0x17e1=function(){return _0x1ddeea;};return a49_0x17e1();}function aliasHandler(_0x342074,_0x14e3bc){const _0x4225d7=a49_0x6a0a,_0x2c3a0a=[];for(const _0x443688 of Object['keys'](_0x342074)){if(_0x14e3bc['has'](_0x443688))continue;const _0x1a5730=toKebab(_0x443688);_0x1a5730!==_0x443688&&_0x14e3bc[_0x4225d7(0x1d5)](_0x1a5730)&&_0x2c3a0a[_0x4225d7(0x1af)]({'original':_0x443688,'corrected':_0x1a5730,'handler':_0x4225d7(0x1ad)});}return _0x2c3a0a;}function stickyHandler(_0x279494,_0x198c02,_0x5ee72e){const _0x203c0a=a49_0x6a0a,_0x379658=[];for(const [_0x40c7e6,_0x4b958f]of Object[_0x203c0a(0x1d1)](_0x279494)){if(_0x4b958f!==!![])continue;for(let _0x3d7269=_0x40c7e6[_0x203c0a(0x1ba)]-0x1;_0x3d7269>0x0;_0x3d7269--){const _0x43b391=_0x40c7e6['slice'](0x0,_0x3d7269),_0x3c25ab=_0x40c7e6[_0x203c0a(0x1cc)](_0x3d7269),_0x35abf7=toKebab(_0x43b391),_0x4e07ca=toCamelCase(_0x43b391),_0x1721a6=_0x198c02[_0x203c0a(0x1d5)](_0x43b391)?_0x43b391:_0x198c02[_0x203c0a(0x1d5)](_0x35abf7)?_0x35abf7:_0x198c02[_0x203c0a(0x1d5)](_0x4e07ca)?_0x4e07ca:null;if(!_0x1721a6)continue;const _0x3edeac=_0x5ee72e[_0x203c0a(0x1b3)](_0x1721a6)??_0x203c0a(0x1bb);let _0x4212f0;if(_0x3edeac===_0x203c0a(0x1cb)){const _0x17955b=Number(_0x3c25ab);if(isNaN(_0x17955b)||_0x3c25ab==='')continue;_0x4212f0=_0x17955b;}else{if(_0x3edeac===_0x203c0a(0x1c3))continue;else{if(_0x3c25ab==='')continue;_0x4212f0=_0x3c25ab;}}_0x379658['push']({'original':_0x40c7e6,'corrected':_0x1721a6+'='+_0x4212f0,'handler':_0x203c0a(0x1d4)});break;}}return _0x379658;}export function correctFlags(_0x1689d5,_0x12e567){const _0x12956b=a49_0x6a0a,_0x58d2b3=buildKnownFlags(_0x12e567),_0x4ceb5a=buildFlagTypeMap(_0x12e567),_0x52659c=aliasHandler(_0x1689d5,_0x58d2b3),_0x555637=stickyHandler(_0x1689d5,_0x58d2b3,_0x4ceb5a),_0x4bd396=[..._0x52659c,..._0x555637];if(_0x4bd396[_0x12956b(0x1ba)]===0x0)return{'flags':_0x1689d5,'corrections':[]};const _0x20a5ed={..._0x1689d5},_0x1d1362=new Set();for(const _0xb30190 of _0x52659c){_0x20a5ed[_0xb30190['corrected']]=_0x1689d5[_0xb30190[_0x12956b(0x1cf)]],_0x1d1362['add'](_0xb30190['original']);}for(const _0x1a78cf of _0x555637){const _0x3cf746=_0x1a78cf['corrected'][_0x12956b(0x1c6)]('='),_0xc8431=_0x1a78cf[_0x12956b(0x1bc)][_0x12956b(0x1cc)](0x0,_0x3cf746),_0x5bb3ff=_0x1a78cf['corrected'][_0x12956b(0x1cc)](_0x3cf746+0x1),_0x2e2329=_0x4ceb5a[_0x12956b(0x1b3)](_0xc8431)??_0x12956b(0x1bb);_0x2e2329===_0x12956b(0x1cb)?_0x20a5ed[_0xc8431]=Number(_0x5bb3ff):_0x20a5ed[_0xc8431]=_0x5bb3ff,_0x1d1362[_0x12956b(0x1c9)](_0x1a78cf[_0x12956b(0x1cf)]);}for(const _0x4e84d3 of _0x1d1362){delete _0x20a5ed[_0x4e84d3];}return{'flags':_0x20a5ed,'corrections':_0x4bd396};}
@@ -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(_0x5ae078,_0x16957a){var _0x1fd0f1=a50_0x32aa,_0x4f3453=_0x5ae078();while(!![]){try{var _0x2eb399=-parseInt(_0x1fd0f1(0x84))/0x1*(parseInt(_0x1fd0f1(0x7f))/0x2)+parseInt(_0x1fd0f1(0x82))/0x3+-parseInt(_0x1fd0f1(0x81))/0x4*(parseInt(_0x1fd0f1(0x87))/0x5)+parseInt(_0x1fd0f1(0x85))/0x6+-parseInt(_0x1fd0f1(0x83))/0x7+-parseInt(_0x1fd0f1(0x86))/0x8*(-parseInt(_0x1fd0f1(0x7e))/0x9)+parseInt(_0x1fd0f1(0x80))/0xa;if(_0x2eb399===_0x16957a)break;else _0x4f3453['push'](_0x4f3453['shift']());}catch(_0x5a5d5c){_0x4f3453['push'](_0x4f3453['shift']());}}}(a50_0x37b3,0x3906a));function a50_0x32aa(_0x4a4c9e,_0x5acff8){_0x4a4c9e=_0x4a4c9e-0x7e;var _0x37b339=a50_0x37b3();var _0x32aa4a=_0x37b339[_0x4a4c9e];return _0x32aa4a;}function a50_0x37b3(){var _0x542b5a=['71127niVeaD','1830983cvphPV','2lkWFxi','399108EMOpOO','24bAOVyc','2740VskJPr','973179XwKdjF','34470WnEfQv','1599330FNRMzE','328siWrol'];a50_0x37b3=function(){return _0x542b5a;};return a50_0x37b3();}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 a51_0x487d(_0x5ceb23,_0x313511){_0x5ceb23=_0x5ceb23-0xf9;const _0x392d7b=a51_0x392d();let _0x487dc6=_0x392d7b[_0x5ceb23];return _0x487dc6;}(function(_0x3063bd,_0x460708){const _0x29cc2e=a51_0x487d,_0xa6ff99=_0x3063bd();while(!![]){try{const _0x4ef453=parseInt(_0x29cc2e(0x106))/0x1*(-parseInt(_0x29cc2e(0x10f))/0x2)+parseInt(_0x29cc2e(0x111))/0x3+-parseInt(_0x29cc2e(0x112))/0x4+-parseInt(_0x29cc2e(0x10e))/0x5*(parseInt(_0x29cc2e(0x109))/0x6)+-parseInt(_0x29cc2e(0xfc))/0x7+parseInt(_0x29cc2e(0xfa))/0x8+parseInt(_0x29cc2e(0xfe))/0x9;if(_0x4ef453===_0x460708)break;else _0xa6ff99['push'](_0xa6ff99['shift']());}catch(_0x2385f6){_0xa6ff99['push'](_0xa6ff99['shift']());}}}(a51_0x392d,0x258de));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x341e3e,_0x492808,_0xc92ee4){const _0x5312af=a51_0x487d,_0x38bde2=buildConfirmationContext(_0x341e3e,_0x492808,_0xc92ee4),_0x58acff=['⚠\x20\x20High-risk\x20operation:\x20'+_0x38bde2[_0x5312af(0x10c)]];return _0x38bde2[_0x5312af(0x105)]&&_0x58acff[_0x5312af(0x10b)](_0x5312af(0x101)+_0x38bde2['description']),_0x38bde2[_0x5312af(0x10d)]&&_0x58acff[_0x5312af(0x10b)](_0x5312af(0xf9)+_0x38bde2['affectedRecords']),_0x58acff[_0x5312af(0x10b)](_0x5312af(0x108)),_0x58acff;}export function reconstructCommandArgv(_0x5d2744,_0x19678c){const _0x4e158c=a51_0x487d,_0x2d70e2=[CLI_BIN_NAME,_0x5d2744[_0x4e158c(0x102)],_0x5d2744[_0x4e158c(0xff)]];for(const [_0x2b552f,_0x11619f]of Object[_0x4e158c(0x100)](_0x19678c)){if(_0x11619f===!![])_0x2d70e2[_0x4e158c(0x10b)]('--'+_0x2b552f);else _0x11619f!==![]&&_0x11619f!==undefined&&_0x11619f!==''&&_0x2d70e2['push']('--'+_0x2b552f+'\x20'+JSON['stringify'](_0x11619f));}return _0x2d70e2[_0x4e158c(0x10b)](_0x4e158c(0x103)),_0x2d70e2[_0x4e158c(0x104)]('\x20');}function buildConfirmationContext(_0x123253,_0x1fa82c,_0x378a37){const _0x3a6010=a51_0x487d,_0x2a79f2=extractAffectedRecords(_0x378a37);return{'commandLabel':_0x1fa82c,'description':_0x123253[_0x3a6010(0x105)],'affectedRecords':_0x2a79f2};}function extractAffectedRecords(_0x20def6){const _0x4452d6=a51_0x487d,_0x1a79e9=[];if(_0x20def6[_0x4452d6(0x107)])_0x1a79e9[_0x4452d6(0x10b)]('code='+_0x20def6['code']);if(_0x20def6['id'])_0x1a79e9[_0x4452d6(0x10b)](_0x4452d6(0xfd)+_0x20def6['id']);if(_0x20def6[_0x4452d6(0xfb)])_0x1a79e9[_0x4452d6(0x10b)]('name='+_0x20def6['name']);if(_0x20def6[_0x4452d6(0x10a)])_0x1a79e9[_0x4452d6(0x10b)](_0x4452d6(0x110)+_0x20def6['params']);return _0x1a79e9['length']>0x0?_0x1a79e9[_0x4452d6(0x104)](',\x20'):undefined;}function a51_0x392d(){const _0xc8616c=['530525SJxSon','245518CzKFau','params=','662640ehYpsz','5076iPQrGN','\x20\x20\x20Affected:\x20','1958808QTkhLT','name','1809017IKhjoU','id=','3649671mlJDef','command','entries','\x20\x20\x20','service','--yes','join','description','2JPaqMb','code','\x20\x20\x20Continue?\x20[y/N]\x20','12fKQCRr','params','push','commandLabel','affectedRecords'];a51_0x392d=function(){return _0xc8616c;};return a51_0x392d();}
@@ -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_0x4a85(_0x35879e,_0x28081c){_0x35879e=_0x35879e-0x173;const _0x4facb9=a52_0x4fac();let _0x4a856c=_0x4facb9[_0x35879e];return _0x4a856c;}(function(_0x771a49,_0x1d1d4f){const _0x487287=a52_0x4a85,_0x3e6152=_0x771a49();while(!![]){try{const _0x2494ed=parseInt(_0x487287(0x17f))/0x1*(parseInt(_0x487287(0x177))/0x2)+-parseInt(_0x487287(0x17a))/0x3*(parseInt(_0x487287(0x17b))/0x4)+-parseInt(_0x487287(0x17c))/0x5*(-parseInt(_0x487287(0x184))/0x6)+-parseInt(_0x487287(0x181))/0x7*(parseInt(_0x487287(0x182))/0x8)+-parseInt(_0x487287(0x175))/0x9+-parseInt(_0x487287(0x173))/0xa*(-parseInt(_0x487287(0x183))/0xb)+parseInt(_0x487287(0x17d))/0xc*(parseInt(_0x487287(0x17e))/0xd);if(_0x2494ed===_0x1d1d4f)break;else _0x3e6152['push'](_0x3e6152['shift']());}catch(_0xc81809){_0x3e6152['push'](_0x3e6152['shift']());}}}(a52_0x4fac,0x2cb4e));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x2eb3ea){const _0x3830b0=a52_0x4a85;if(_0x2eb3ea instanceof LovrabetError)return CliErrors[_0x3830b0(0x178)](userFacingLovrabetMessage(_0x2eb3ea));return _0x2eb3ea;}function a52_0x4fac(){const _0x369989=['3uypLgG','1086312CvtLBs','72230RWqoMr','252PfLuQX','369863ycmMrU','2JxxPGY','string','7hQhRHD','1328168IVxyzq','88JtBlBm','48HKgFRr','272870vxiKCI','stringify','3162960yEuxZz','message','40822pvgdEv','validation','trim'];a52_0x4fac=function(){return _0x369989;};return a52_0x4fac();}function userFacingLovrabetMessage(_0x363860){const _0x53a1d5=a52_0x4a85,_0x739448=_0x363860['description'];if(_0x739448!==undefined&&_0x739448!==null){if(typeof _0x739448===_0x53a1d5(0x180)&&_0x739448['trim']())return _0x739448[_0x53a1d5(0x179)]();try{return JSON[_0x53a1d5(0x174)](_0x739448);}catch{}}return _0x363860[_0x53a1d5(0x176)];}