@lovrabet/lovrabet-cli 2.0.13 → 2.0.14-beta.10

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 (84) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.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/eligibility.js +1 -0
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/common/config-policy.js +1 -1
  16. package/lib/commands/common/constraints.js +1 -1
  17. package/lib/commands/common/flags.js +1 -1
  18. package/lib/commands/config/definitions.js +1 -1
  19. package/lib/commands/config/shared.js +1 -1
  20. package/lib/commands/data/index.js +1 -1
  21. package/lib/commands/dataset/detail.js +1 -1
  22. package/lib/commands/dataset/index.js +1 -1
  23. package/lib/commands/dataset/list.js +1 -1
  24. package/lib/commands/dataset/sdk-doc.js +1 -1
  25. package/lib/commands/doctor.js +1 -1
  26. package/lib/commands/init.js +1 -1
  27. package/lib/commands/kb/index.js +1 -1
  28. package/lib/commands/logs/index.js +1 -1
  29. package/lib/commands/personal-bff/index.js +1 -1
  30. package/lib/commands/registry.js +1 -1
  31. package/lib/commands/schema.js +1 -1
  32. package/lib/commands/service/dynamic.js +1 -0
  33. package/lib/commands/service/index.js +1 -0
  34. package/lib/commands/service/registry.js +1 -0
  35. package/lib/commands/skill/index.js +1 -1
  36. package/lib/commands/skill/templates.js +1 -0
  37. package/lib/commands/skill/validate.js +1 -0
  38. package/lib/commands/sql/detail.js +1 -1
  39. package/lib/commands/sql/exec.js +1 -1
  40. package/lib/commands/sql/index.js +1 -1
  41. package/lib/commands/update.js +1 -1
  42. package/lib/commands/workspace/index.js +1 -0
  43. package/lib/config/schema.js +1 -1
  44. package/lib/constant/app.js +1 -0
  45. package/lib/constant/auth-mode.js +1 -1
  46. package/lib/constant/cli.js +1 -1
  47. package/lib/constant/defaults.js +1 -1
  48. package/lib/constant/distribution.js +1 -1
  49. package/lib/constant/domain.js +1 -1
  50. package/lib/constant/env.js +1 -1
  51. package/lib/constant/output.js +1 -1
  52. package/lib/constant/product.js +1 -1
  53. package/lib/constant/risk.js +1 -1
  54. package/lib/constant/url.js +1 -1
  55. package/lib/context.js +1 -1
  56. package/lib/core/api-client.js +1 -1
  57. package/lib/core/db-resolver.js +1 -1
  58. package/lib/core/sdk-client.js +1 -1
  59. package/lib/errors.js +1 -1
  60. package/lib/framework/build-all-flags.js +1 -1
  61. package/lib/framework/dryrun.js +1 -1
  62. package/lib/framework/flags.js +1 -1
  63. package/lib/framework/help.js +1 -1
  64. package/lib/framework/index.js +1 -1
  65. package/lib/framework/output.js +1 -1
  66. package/lib/framework/preparse.js +1 -1
  67. package/lib/framework/response.js +1 -1
  68. package/lib/framework/runner-confirmation.js +1 -1
  69. package/lib/framework/runner-error.js +1 -1
  70. package/lib/framework/runner.js +1 -1
  71. package/lib/framework/schema-export.js +1 -1
  72. package/lib/framework/types.js +1 -1
  73. package/lib/generated/build-info.js +1 -1
  74. package/lib/help.js +1 -1
  75. package/lib/skills/npx-skills-add.js +1 -1
  76. package/lib/skills/runtime-skill-sync.js +1 -1
  77. package/lib/utils/apply-jq-filter.js +1 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/params.js +1 -1
  80. package/lib/utils/platform.js +1 -1
  81. package/lib/utils/update-notice.js +1 -1
  82. package/lib/utils/version.js +1 -1
  83. package/lib/utils/write-cli-side-channel.js +1 -1
  84. package/package.json +8 -6
@@ -1 +1 @@
1
- const a35_0x290112=a35_0x4fca;(function(_0x31e40d,_0x5906bc){const _0x234bd8=a35_0x4fca,_0x409f02=_0x31e40d();while(!![]){try{const _0x11572b=parseInt(_0x234bd8(0x91))/0x1*(-parseInt(_0x234bd8(0xa4))/0x2)+parseInt(_0x234bd8(0xa8))/0x3+-parseInt(_0x234bd8(0x96))/0x4*(parseInt(_0x234bd8(0xa0))/0x5)+parseInt(_0x234bd8(0xa9))/0x6*(-parseInt(_0x234bd8(0xaa))/0x7)+-parseInt(_0x234bd8(0xa1))/0x8*(-parseInt(_0x234bd8(0xa3))/0x9)+-parseInt(_0x234bd8(0xac))/0xa*(-parseInt(_0x234bd8(0x93))/0xb)+-parseInt(_0x234bd8(0x9f))/0xc*(-parseInt(_0x234bd8(0x9b))/0xd);if(_0x11572b===_0x5906bc)break;else _0x409f02['push'](_0x409f02['shift']());}catch(_0x5002be){_0x409f02['push'](_0x409f02['shift']());}}}(a35_0x5332,0x767fe));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':a35_0x290112(0x8f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a35_0x290112(0x95)],'importable':!![]},'pageSize':{'description':a35_0x290112(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a35_0x290112(0xae),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a35_0x290112(0xa6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a35_0x290112(0x94),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a35_0x290112(0xa2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a35_0x290112(0x99),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a35_0x290112(0x90)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a35_0x290112(0xa7)](CONFIG_FIELD_SCHEMAS)[a35_0x290112(0x9a)](([,_0x3e6f4f])=>_0x3e6f4f[a35_0x290112(0xa5)])['map'](([_0x250d96])=>_0x250d96));export const CONFIG_ENUM_VALUES=Object[a35_0x290112(0x9e)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a35_0x290112(0x9a)](([,_0x5d8b3f])=>_0x5d8b3f['enumValues'])[a35_0x290112(0xad)](([_0xa3de6a,_0x1611ce])=>[_0xa3de6a,[..._0x1611ce[a35_0x290112(0x9d)]||[]]]));function a35_0x5332(){const _0x10529a=['map','Override\x20API\x20domain','Target\x20environment','riskLevel','382vFQNBQ',';\x20local\x20alias:\x20apps.<alias>.appcode','1397EOhEVd','Override\x20runtime\x20domain','format','1218556KilJZA','has','legacyCompatOnly','Risk\x20level','filter','1469ADfCxR','Default\x20page\x20size','enumValues','fromEntries','227244wMXuFd','15ffeHed','8fbuDIL','Access\x20key\x20(client-ak\x20auth)','1008306IOSiua','4084rkDslb','cliSettableTopLevel','Override\x20user\x20domain','entries','2096400RWVFii','5270646kvvDyF','7HSVxar','defaultValue','8430JMUBOu'];a35_0x5332=function(){return _0x10529a;};return a35_0x5332();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a35_0x290112(0xa7)](CONFIG_FIELD_SCHEMAS)[a35_0x290112(0x9a)](([,_0x3fa0c4])=>_0x3fa0c4['importable'])['map'](([_0x217951])=>_0x217951);export function getConfigFieldSchema(_0x1db41c){return CONFIG_FIELD_SCHEMAS[_0x1db41c];}export function getConfigEnumValues(_0x9cb18d){return getConfigFieldSchema(_0x9cb18d)?.['enumValues'];}export function getConfigDefaultValue(_0x47b743){const _0x27cf5e=a35_0x290112;return getConfigFieldSchema(_0x47b743)?.[_0x27cf5e(0xab)];}export function isTopLevelConfigKey(_0x3da9b1){const _0x469774=a35_0x290112;return TOP_LEVEL_CONFIG_KEYS[_0x469774(0x97)](_0x3da9b1);}export function isLegacyCompatConfigKey(_0x4ec03c){const _0x251de1=a35_0x290112;return getConfigFieldSchema(_0x4ec03c)?.[_0x251de1(0x98)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a35_0x4fca(_0x44b945,_0xfd8726){_0x44b945=_0x44b945-0x8f;const _0x53329a=a35_0x5332();let _0x4fcac4=_0x53329a[_0x44b945];return _0x4fcac4;}export function formatConfigKeyList(_0x26a13f){return[..._0x26a13f]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bea66=a35_0x290112;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x4bea66(0x92);}export function buildAppProfileListFields(_0x23c9c9){return{'env':_0x23c9c9,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a42_0x51ad44=a42_0x45ca;(function(_0x52ec59,_0x3775a6){const _0x2ff6f7=a42_0x45ca,_0x36ddcc=_0x52ec59();while(!![]){try{const _0x1a4994=parseInt(_0x2ff6f7(0x97))/0x1*(-parseInt(_0x2ff6f7(0xa3))/0x2)+parseInt(_0x2ff6f7(0x98))/0x3+parseInt(_0x2ff6f7(0xa1))/0x4+parseInt(_0x2ff6f7(0x9b))/0x5+-parseInt(_0x2ff6f7(0xa5))/0x6+-parseInt(_0x2ff6f7(0x96))/0x7+parseInt(_0x2ff6f7(0x8b))/0x8;if(_0x1a4994===_0x3775a6)break;else _0x36ddcc['push'](_0x36ddcc['shift']());}catch(_0x3606a7){_0x36ddcc['push'](_0x36ddcc['shift']());}}}(a42_0x34ee,0xa6ca4));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':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a42_0x51ad44(0xa0)],'importable':!![]},'format':{'description':a42_0x51ad44(0x9c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a42_0x51ad44(0x95)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a42_0x51ad44(0x92),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a42_0x51ad44(0xa4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a42_0x51ad44(0xa2),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a42_0x51ad44(0x91),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a42_0x51ad44(0x8e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a42_0x51ad44(0x9a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a42_0x51ad44(0x93)],'importable':!![]},'locale':{'description':a42_0x51ad44(0x90),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a42_0x51ad44(0x9f)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a42_0x51ad44(0x94)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xd5e629])=>_0xd5e629['cliSettableTopLevel'])[a42_0x51ad44(0x99)](([_0x301d4a])=>_0x301d4a));export const CONFIG_ENUM_VALUES=Object[a42_0x51ad44(0x8c)](Object[a42_0x51ad44(0x94)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x4c5e2c])=>_0x4c5e2c[a42_0x51ad44(0x9d)])['map'](([_0x25c1c5,_0x7e102f])=>[_0x25c1c5,[..._0x7e102f['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a42_0x51ad44(0x94)](CONFIG_FIELD_SCHEMAS)[a42_0x51ad44(0x8f)](([,_0x1659ed])=>_0x1659ed[a42_0x51ad44(0x9e)])['map'](([_0x142fa2])=>_0x142fa2);export function getConfigFieldSchema(_0x3f3454){return CONFIG_FIELD_SCHEMAS[_0x3f3454];}export function getConfigEnumValues(_0x937785){const _0x368255=a42_0x51ad44;return getConfigFieldSchema(_0x937785)?.[_0x368255(0x9d)];}export function getConfigDefaultValue(_0x4a7d4b){const _0x2a0980=a42_0x51ad44;return getConfigFieldSchema(_0x4a7d4b)?.[_0x2a0980(0xa6)];}export function isTopLevelConfigKey(_0x98d175){return TOP_LEVEL_CONFIG_KEYS['has'](_0x98d175);}function a42_0x45ca(_0x4c1a70,_0x179d9d){_0x4c1a70=_0x4c1a70-0x8b;const _0x34ee7a=a42_0x34ee();let _0x45cab4=_0x34ee7a[_0x4c1a70];return _0x45cab4;}export function isLegacyCompatConfigKey(_0x1c782b){const _0x8bd485=a42_0x51ad44;return getConfigFieldSchema(_0x1c782b)?.[_0x8bd485(0x8d)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1a4209){const _0x3e9b08=a42_0x51ad44;return[..._0x1a4209][_0x3e9b08(0xa8)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a42_0x34ee(){const _0x182b3e=['1CAthFP','119424zNXKPR','map','Risk\x20level','6255975khNnYE','Default\x20output\x20format','enumValues','importable','locale','env','2126608FMEsVV','Override\x20runtime\x20domain','478022MpttmV','Override\x20user\x20domain','2842488LumAss','defaultValue','Config\x20key.\x20Top-level:\x20','join',';\x20local\x20alias:\x20apps.<alias>.appcode','7242744tHaCZH','fromEntries','legacyCompatOnly','Access\x20key\x20(client-ak\x20auth)','filter','Locale','Override\x20SkillHub\x20domain','Override\x20API\x20domain','riskLevel','entries','format','9324469KbJSax'];a42_0x34ee=function(){return _0x182b3e;};return a42_0x34ee();}export function getConfigCommandKeyDescription(){const _0x281509=a42_0x51ad44;return _0x281509(0xa7)+getTopLevelConfigKeySummary()+_0x281509(0xa9);}export function buildAppProfileListFields(_0x3e7fee){return{'env':_0x3e7fee,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -0,0 +1 @@
1
+ const a43_0xc62033=a43_0x5b03;function a43_0xf6ff(){const _0x4f2755=['10TiGBZE','704Hasgdt','PUBLISHED','141101xbLXid','4873715KXYPDk','231091WpZzBd','31704kIxLRK','Published','1263588QGdfPn','8itksFC','8640369YsPKJq','6lQfuxB','2cddvEr','UNPUBLISH','2302392HFwOmC'];a43_0xf6ff=function(){return _0x4f2755;};return a43_0xf6ff();}(function(_0x2d6891,_0x408d36){const _0x43fbf5=a43_0x5b03,_0x1e559c=_0x2d6891();while(!![]){try{const _0x204d29=parseInt(_0x43fbf5(0x195))/0x1*(-parseInt(_0x43fbf5(0x18f))/0x2)+parseInt(_0x43fbf5(0x191))/0x3+-parseInt(_0x43fbf5(0x18b))/0x4+-parseInt(_0x43fbf5(0x196))/0x5*(parseInt(_0x43fbf5(0x18e))/0x6)+-parseInt(_0x43fbf5(0x197))/0x7*(-parseInt(_0x43fbf5(0x18c))/0x8)+-parseInt(_0x43fbf5(0x18d))/0x9*(-parseInt(_0x43fbf5(0x192))/0xa)+parseInt(_0x43fbf5(0x193))/0xb*(parseInt(_0x43fbf5(0x198))/0xc);if(_0x204d29===_0x408d36)break;else _0x1e559c['push'](_0x1e559c['shift']());}catch(_0x5e2495){_0x1e559c['push'](_0x1e559c['shift']());}}}(a43_0xf6ff,0x798c9));function a43_0x5b03(_0x205e22,_0x402469){_0x205e22=_0x205e22-0x18b;const _0xf6ffaf=a43_0xf6ff();let _0x5b034e=_0xf6ffaf[_0x205e22];return _0x5b034e;}export const APP_PUBLISH_STATUS={'Published':a43_0xc62033(0x194),'Unpublished':a43_0xc62033(0x190)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a43_0xc62033(0x199)];
@@ -1 +1 @@
1
- function a36_0x570b(){const _0x5a888b=['24YAnILI','9TeXeIf','402479SthJfK','445379ejNPiE','10aEQmVY','1505448bzogWz','1579048uUUxKK','6tpVgOJ','568890WGSUpV','1291cLXcpg','client-ak','83673cxAQTe','ClientAk','262dyyKSL'];a36_0x570b=function(){return _0x5a888b;};return a36_0x570b();}function a36_0x4ae0(_0x2e540c,_0x1a8c1d){_0x2e540c=_0x2e540c-0x1ed;const _0x570bff=a36_0x570b();let _0x4ae081=_0x570bff[_0x2e540c];return _0x4ae081;}const a36_0x7c6d5e=a36_0x4ae0;(function(_0x18db2f,_0x52cd4b){const _0x3e4d6c=a36_0x4ae0,_0x1dd9b1=_0x18db2f();while(!![]){try{const _0x3d975d=-parseInt(_0x3e4d6c(0x1f0))/0x1*(parseInt(_0x3e4d6c(0x1f4))/0x2)+parseInt(_0x3e4d6c(0x1f2))/0x3*(parseInt(_0x3e4d6c(0x1f5))/0x4)+-parseInt(_0x3e4d6c(0x1ef))/0x5*(-parseInt(_0x3e4d6c(0x1ee))/0x6)+parseInt(_0x3e4d6c(0x1f7))/0x7+-parseInt(_0x3e4d6c(0x1ed))/0x8*(parseInt(_0x3e4d6c(0x1f6))/0x9)+parseInt(_0x3e4d6c(0x1f9))/0xa*(parseInt(_0x3e4d6c(0x1f8))/0xb)+parseInt(_0x3e4d6c(0x1fa))/0xc;if(_0x3d975d===_0x52cd4b)break;else _0x1dd9b1['push'](_0x1dd9b1['shift']());}catch(_0x53b72c){_0x1dd9b1['push'](_0x1dd9b1['shift']());}}}(a36_0x570b,0x21b4e));export const AUTH_MODE={'ClientAk':a36_0x7c6d5e(0x1f1)};export function isAuthMode(_0xf62497){const _0x2ccbbc=a36_0x7c6d5e;return _0xf62497===AUTH_MODE[_0x2ccbbc(0x1f3)];}
1
+ function a44_0x4c89(_0x53903a,_0x2aba42){_0x53903a=_0x53903a-0xa5;const _0x4187b4=a44_0x4187();let _0x4c8991=_0x4187b4[_0x53903a];return _0x4c8991;}function a44_0x4187(){const _0x435956=['6173800DdbgAI','30sFeUKf','198IMoLwc','ClientAk','19576bJkaaq','client-ak','6enLtQy','16275897nmmoLP','2329992IUSGoN','1GOZjOa','4119684fkMwsq','4939015amCZlF','1268050iZShQo'];a44_0x4187=function(){return _0x435956;};return a44_0x4187();}const a44_0x3321ba=a44_0x4c89;(function(_0x318663,_0x367d1b){const _0x4c1e36=a44_0x4c89,_0x3ce7f8=_0x318663();while(!![]){try{const _0x3fb047=-parseInt(_0x4c1e36(0xb0))/0x1*(-parseInt(_0x4c1e36(0xa6))/0x2)+-parseInt(_0x4c1e36(0xb1))/0x3+-parseInt(_0x4c1e36(0xa7))/0x4+parseInt(_0x4c1e36(0xa5))/0x5*(-parseInt(_0x4c1e36(0xad))/0x6)+-parseInt(_0x4c1e36(0xaf))/0x7+parseInt(_0x4c1e36(0xab))/0x8*(-parseInt(_0x4c1e36(0xa9))/0x9)+-parseInt(_0x4c1e36(0xa8))/0xa*(-parseInt(_0x4c1e36(0xae))/0xb);if(_0x3fb047===_0x367d1b)break;else _0x3ce7f8['push'](_0x3ce7f8['shift']());}catch(_0x3a76c2){_0x3ce7f8['push'](_0x3ce7f8['shift']());}}}(a44_0x4187,0xbeda7));export const AUTH_MODE={'ClientAk':a44_0x3321ba(0xac)};export function isAuthMode(_0x2bdcb5){const _0x1971e1=a44_0x3321ba;return _0x2bdcb5===AUTH_MODE[_0x1971e1(0xaa)];}
@@ -1 +1 @@
1
- function a37_0x96ad(_0x4f60b8,_0x2aa8f9){_0x4f60b8=_0x4f60b8-0xbb;const _0x5e14c6=a37_0x5e14();let _0x96ad3a=_0x5e14c6[_0x4f60b8];return _0x96ad3a;}const a37_0x59df2a=a37_0x96ad;(function(_0x4b47b6,_0x363546){const _0x211c02=a37_0x96ad,_0x34431e=_0x4b47b6();while(!![]){try{const _0x4fc2b2=parseInt(_0x211c02(0xd2))/0x1*(parseInt(_0x211c02(0xd8))/0x2)+parseInt(_0x211c02(0xc5))/0x3*(-parseInt(_0x211c02(0xe2))/0x4)+-parseInt(_0x211c02(0xdc))/0x5*(-parseInt(_0x211c02(0xcd))/0x6)+parseInt(_0x211c02(0xe3))/0x7+-parseInt(_0x211c02(0xd4))/0x8*(parseInt(_0x211c02(0xe7))/0x9)+parseInt(_0x211c02(0xe6))/0xa+-parseInt(_0x211c02(0xe9))/0xb;if(_0x4fc2b2===_0x363546)break;else _0x34431e['push'](_0x34431e['shift']());}catch(_0x4a182d){_0x34431e['push'](_0x34431e['shift']());}}}(a37_0x5e14,0x46164));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a37_0x59df2a(0xe5)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a37_0x59df2a(0xe4)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a37_0x59df2a(0xce),'meowKey':a37_0x59df2a(0xce),'type':a37_0x59df2a(0xe1),'description':a37_0x59df2a(0xdf),'hint':a37_0x59df2a(0xe8)},{'name':a37_0x59df2a(0xc9),'meowKey':'app','type':a37_0x59df2a(0xe1),'description':a37_0x59df2a(0xd7),'hint':a37_0x59df2a(0xc1)},{'name':a37_0x59df2a(0xbc),'meowKey':a37_0x59df2a(0xbc),'type':a37_0x59df2a(0xe1),'description':'Environment','hint':'production\x20|\x20development\x20|\x20daily'},{'name':a37_0x59df2a(0xc6),'meowKey':a37_0x59df2a(0xc6),'type':a37_0x59df2a(0xe1),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a37_0x59df2a(0xe1),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':'<expr>'},{'name':a37_0x59df2a(0xd3),'meowKey':a37_0x59df2a(0xcc),'type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xe0)},{'name':a37_0x59df2a(0xbd),'meowKey':'yes','type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xde)},{'name':'non-interactive','meowKey':a37_0x59df2a(0xca),'type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xcf)},{'name':'global','meowKey':'global','type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xd5)},{'name':'ci','meowKey':'ci','type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xc4),'hidden':!![]},{'name':a37_0x59df2a(0xbf),'meowKey':a37_0x59df2a(0xbf),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a37_0x59df2a(0xc7),'meowKey':a37_0x59df2a(0xc7),'type':a37_0x59df2a(0xe1),'description':a37_0x59df2a(0xc8),'hidden':!![]},{'name':a37_0x59df2a(0xdd),'meowKey':a37_0x59df2a(0xdd),'type':'string','description':a37_0x59df2a(0xd6),'hidden':!![]},{'name':'params','meowKey':a37_0x59df2a(0xbe),'type':a37_0x59df2a(0xe1),'description':a37_0x59df2a(0xd0),'hidden':!![]},{'name':a37_0x59df2a(0xcb),'meowKey':'verbose','type':a37_0x59df2a(0xbb),'description':a37_0x59df2a(0xd9),'hidden':!![]},{'name':a37_0x59df2a(0xc3),'meowKey':'clear','type':a37_0x59df2a(0xbb),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a37_0x59df2a(0xce),a37_0x59df2a(0xc9),a37_0x59df2a(0xbc),a37_0x59df2a(0xc6),'jq',a37_0x59df2a(0xd3),'yes',a37_0x59df2a(0xc0),'ci']);function a37_0x5e14(){const _0x1584e5=['3650094xDNrSB','cliDisplayName','cliBinName','5471360muJmdC','13212uqdnUv','<code>','8167247zUVtOz','boolean','env','yes','params','help','non-interactive','<name>','type','clear','Alias\x20for\x20--non-interactive','258471twnHBJ','format','name','Name\x20filter','app','nonInteractive','verbose','dryRun','576UXYzsQ','appcode','Force\x20non-interactive\x20mode\x20(CI)','JSON\x20params\x20for\x20execute\x20commands','map','3ffiogB','dry-run','2504ZbbWxZ','Use\x20global\x20config\x20scope','SQL\x20query\x20code','Select\x20app\x20profile\x20by\x20name','377382RvmEtS','Verbose\x20output','meowKey','fromEntries','19340rPwCmr','sqlcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','Override\x20appcode','Preview\x20operation\x20without\x20executing','string','24uDWGYu'];a37_0x5e14=function(){return _0x1584e5;};return a37_0x5e14();}export function buildMeowFlags(){const _0x24f72d=a37_0x59df2a;return Object[_0x24f72d(0xdb)](GLOBAL_FLAGS[_0x24f72d(0xd1)](_0x31f948=>[_0x31f948[_0x24f72d(0xda)],{'type':_0x31f948[_0x24f72d(0xc2)]}]));}
1
+ function a45_0x2a91(){const _0x14de98=['Select\x20app\x20profile\x20by\x20name','Verbose\x20output','Output\x20format','yes','verbose','<expr>','Clear\x20output','Alias\x20for\x20--non-interactive','cliDisplayName','format','4txhcwU','<name>','11612315mOCtmn','params','8ZgWRFB','Name\x20filter','Override\x20appcode','Use\x20global\x20config\x20scope','10597284AbGvrO','map','app','global','meowKey','type','346227itXXXi','6bwtKpA','appcode','1283855VxLlvi','Environment','dry-run','string','Record\x20ID','sqlcode','json\x20|\x20pretty\x20|\x20compress','Skip\x20confirmation\x20for\x20high-risk\x20writes','help','300934cLNgJb','Preview\x20operation\x20without\x20executing','Force\x20non-interactive\x20mode\x20(CI)','<code>','boolean','name','Show\x20help','fromEntries','dryRun','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','1487487pjLtGa','cliBinName','4447820ImknNg','clear','env','SQL\x20query\x20code','138GaaqhW','non-interactive'];a45_0x2a91=function(){return _0x14de98;};return a45_0x2a91();}const a45_0x267388=a45_0x366e;(function(_0x1256c5,_0x376c79){const _0x572694=a45_0x366e,_0xe568bb=_0x1256c5();while(!![]){try{const _0x2dcb55=-parseInt(_0x572694(0x189))/0x1+-parseInt(_0x572694(0x1b4))/0x2*(parseInt(_0x572694(0x193))/0x3)+parseInt(_0x572694(0x1a5))/0x4*(-parseInt(_0x572694(0x1b6))/0x5)+-parseInt(_0x572694(0x199))/0x6*(-parseInt(_0x572694(0x1b3))/0x7)+parseInt(_0x572694(0x1a9))/0x8*(parseInt(_0x572694(0x1ad))/0x9)+-parseInt(_0x572694(0x195))/0xa+parseInt(_0x572694(0x1a7))/0xb;if(_0x2dcb55===_0x376c79)break;else _0xe568bb['push'](_0xe568bb['shift']());}catch(_0x2f2ecf){_0xe568bb['push'](_0xe568bb['shift']());}}}(a45_0x2a91,0xd7082));function a45_0x366e(_0x124a60,_0x191a5f){_0x124a60=_0x124a60-0x187;const _0x2a9174=a45_0x2a91();let _0x366e7b=_0x2a9174[_0x124a60];return _0x366e7b;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a45_0x267388(0x194)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a45_0x267388(0x1a3)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a45_0x267388(0x1b5),'meowKey':a45_0x267388(0x1b5),'type':a45_0x267388(0x1b9),'description':a45_0x267388(0x1ab),'hint':a45_0x267388(0x18c)},{'name':a45_0x267388(0x1af),'meowKey':a45_0x267388(0x1af),'type':a45_0x267388(0x1b9),'description':a45_0x267388(0x19b),'hint':a45_0x267388(0x1a6)},{'name':a45_0x267388(0x197),'meowKey':a45_0x267388(0x197),'type':a45_0x267388(0x1b9),'description':a45_0x267388(0x1b7),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a45_0x267388(0x1a4),'type':'string','description':a45_0x267388(0x19d),'hint':a45_0x267388(0x1bc)},{'name':'jq','meowKey':'jq','type':a45_0x267388(0x1b9),'description':a45_0x267388(0x192),'hint':a45_0x267388(0x1a0)},{'name':a45_0x267388(0x1b8),'meowKey':a45_0x267388(0x191),'type':'boolean','description':a45_0x267388(0x18a)},{'name':a45_0x267388(0x19e),'meowKey':a45_0x267388(0x19e),'type':a45_0x267388(0x18d),'description':a45_0x267388(0x187)},{'name':'non-interactive','meowKey':'nonInteractive','type':a45_0x267388(0x18d),'description':a45_0x267388(0x18b)},{'name':'global','meowKey':a45_0x267388(0x1b0),'type':a45_0x267388(0x18d),'description':a45_0x267388(0x1ac)},{'name':'ci','meowKey':'ci','type':'boolean','description':a45_0x267388(0x1a2),'hidden':!![]},{'name':a45_0x267388(0x188),'meowKey':a45_0x267388(0x188),'type':a45_0x267388(0x18d),'description':a45_0x267388(0x18f)},{'name':'id','meowKey':'id','type':a45_0x267388(0x1b9),'description':a45_0x267388(0x1ba),'hidden':!![]},{'name':a45_0x267388(0x18e),'meowKey':a45_0x267388(0x18e),'type':a45_0x267388(0x1b9),'description':a45_0x267388(0x1aa),'hidden':!![]},{'name':a45_0x267388(0x1bb),'meowKey':a45_0x267388(0x1bb),'type':a45_0x267388(0x1b9),'description':a45_0x267388(0x198),'hidden':!![]},{'name':a45_0x267388(0x1a8),'meowKey':a45_0x267388(0x1a8),'type':a45_0x267388(0x1b9),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a45_0x267388(0x19f),'meowKey':'verbose','type':'boolean','description':a45_0x267388(0x19c),'hidden':!![]},{'name':a45_0x267388(0x196),'meowKey':a45_0x267388(0x196),'type':a45_0x267388(0x18d),'description':a45_0x267388(0x1a1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a45_0x267388(0x1b5),a45_0x267388(0x1af),a45_0x267388(0x197),a45_0x267388(0x1a4),'jq',a45_0x267388(0x1b8),a45_0x267388(0x19e),a45_0x267388(0x19a),'ci']);export function buildMeowFlags(){const _0x518256=a45_0x267388;return Object[_0x518256(0x190)](GLOBAL_FLAGS[_0x518256(0x1ae)](_0x888d9c=>[_0x888d9c[_0x518256(0x1b1)],{'type':_0x888d9c[_0x518256(0x1b2)]}]));}
@@ -1 +1 @@
1
- const a38_0xb00e98=a38_0xb864;(function(_0x42ed54,_0x885022){const _0x125ae5=a38_0xb864,_0x4c4c4f=_0x42ed54();while(!![]){try{const _0x513763=-parseInt(_0x125ae5(0x15b))/0x1+parseInt(_0x125ae5(0x15a))/0x2*(parseInt(_0x125ae5(0x166))/0x3)+-parseInt(_0x125ae5(0x157))/0x4*(parseInt(_0x125ae5(0x160))/0x5)+parseInt(_0x125ae5(0x158))/0x6+parseInt(_0x125ae5(0x15d))/0x7*(parseInt(_0x125ae5(0x159))/0x8)+-parseInt(_0x125ae5(0x163))/0x9*(parseInt(_0x125ae5(0x161))/0xa)+parseInt(_0x125ae5(0x15e))/0xb*(parseInt(_0x125ae5(0x15f))/0xc);if(_0x513763===_0x885022)break;else _0x4c4c4f['push'](_0x4c4c4f['shift']());}catch(_0x3923fd){_0x4c4c4f['push'](_0x4c4c4f['shift']());}}}(a38_0x117e,0x91a41));function a38_0xb864(_0x5e4cea,_0x58a191){_0x5e4cea=_0x5e4cea-0x157;const _0x117eb6=a38_0x117e();let _0xb8649e=_0x117eb6[_0x5e4cea];return _0xb8649e;}export const DEFAULT_APP_PROFILE_NAME=a38_0xb00e98(0x162);export const DEFAULT_CONFIG_VALUES={'env':a38_0xb00e98(0x164),'format':'compress','locale':a38_0xb00e98(0x165),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a38_0xb00e98(0x15c);function a38_0x117e(){const _0x2ef59a=['main','18657gRlFjB','production','en-US','8868bCxVLP','2138956DgeDYf','2400780xLSgsK','16goavqv','128zLBpwO','641904EcKJlg','compress','3068499KvXbkR','10993917meKWuS','12nlziac','10Zyhgqn','760ZSPvDm'];a38_0x117e=function(){return _0x2ef59a;};return a38_0x117e();}
1
+ function a46_0x1247(_0x522344,_0x59c04b){_0x522344=_0x522344-0x1b1;const _0xee4183=a46_0xee41();let _0x1247f0=_0xee4183[_0x522344];return _0x1247f0;}const a46_0x38d43e=a46_0x1247;(function(_0x50c3c5,_0x383f8a){const _0x54afee=a46_0x1247,_0x412c5b=_0x50c3c5();while(!![]){try{const _0x186c3d=parseInt(_0x54afee(0x1b7))/0x1*(-parseInt(_0x54afee(0x1b1))/0x2)+-parseInt(_0x54afee(0x1b4))/0x3*(parseInt(_0x54afee(0x1b5))/0x4)+parseInt(_0x54afee(0x1b3))/0x5+-parseInt(_0x54afee(0x1bc))/0x6+-parseInt(_0x54afee(0x1ba))/0x7+-parseInt(_0x54afee(0x1b2))/0x8*(-parseInt(_0x54afee(0x1b8))/0x9)+parseInt(_0x54afee(0x1b9))/0xa;if(_0x186c3d===_0x383f8a)break;else _0x412c5b['push'](_0x412c5b['shift']());}catch(_0x537399){_0x412c5b['push'](_0x412c5b['shift']());}}}(a46_0xee41,0x1cf4d));export const DEFAULT_APP_PROFILE_NAME=a46_0x38d43e(0x1be);export const DEFAULT_CONFIG_VALUES={'env':a46_0x38d43e(0x1bd),'format':a46_0x38d43e(0x1bf),'locale':a46_0x38d43e(0x1b6),'riskLevel':a46_0x38d43e(0x1bb)};function a46_0xee41(){const _0x12a86e=['1204320EOdExH','production','main','compress','2bbWAJz','16ZXJYiQ','212210WtOYzl','3nuLNlh','536768htNMfV','en-US','228366yUwUZv','468351UWIaxG','6689700oFLspZ','935249ZQmcRV','write'];a46_0xee41=function(){return _0x12a86e;};return a46_0xee41();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a46_0x38d43e(0x1bf);
@@ -1 +1 @@
1
- const a39_0x3a28be=a39_0x1347;(function(_0x889cac,_0x46779f){const _0x497d9f=a39_0x1347,_0x5a00d3=_0x889cac();while(!![]){try{const _0x248dce=parseInt(_0x497d9f(0x1f4))/0x1*(-parseInt(_0x497d9f(0x1f6))/0x2)+parseInt(_0x497d9f(0x1f8))/0x3+parseInt(_0x497d9f(0x1f1))/0x4*(-parseInt(_0x497d9f(0x1f3))/0x5)+-parseInt(_0x497d9f(0x1fc))/0x6*(-parseInt(_0x497d9f(0x1f9))/0x7)+parseInt(_0x497d9f(0x1f5))/0x8+parseInt(_0x497d9f(0x1fa))/0x9*(parseInt(_0x497d9f(0x1f2))/0xa)+-parseInt(_0x497d9f(0x1fb))/0xb;if(_0x248dce===_0x46779f)break;else _0x5a00d3['push'](_0x5a00d3['shift']());}catch(_0x2a6378){_0x5a00d3['push'](_0x5a00d3['shift']());}}}(a39_0x502c,0xf11f2));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a39_0x3a28be(0x1f0)];function a39_0x1347(_0x25034b,_0x39a955){_0x25034b=_0x25034b-0x1ef;const _0x502ca8=a39_0x502c();let _0x1347a4=_0x502ca8[_0x25034b];return _0x1347a4;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a39_0x3a28be(0x1f7)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a39_0x3a28be(0x1ef)];function a39_0x502c(){const _0x468200=['skillSource','486837YfPkAK','7WBNUPD','2532780tcswiU','4985992MkzWMn','4566840IXQPML','npmRegistryBaseUrl','npmPackageName','76Eeeycb','40BIXEJI','407720qRUmYi','1oXYObx','8404328UGSuOt','218796OiIbHQ'];a39_0x502c=function(){return _0x468200;};return a39_0x502c();}
1
+ const a47_0xf502e0=a47_0x4f6e;(function(_0x38ec89,_0x2ee8de){const _0x3197f5=a47_0x4f6e,_0x1c1623=_0x38ec89();while(!![]){try{const _0x3ac6ee=-parseInt(_0x3197f5(0x1e0))/0x1*(-parseInt(_0x3197f5(0x1dd))/0x2)+parseInt(_0x3197f5(0x1e7))/0x3*(-parseInt(_0x3197f5(0x1dc))/0x4)+parseInt(_0x3197f5(0x1e5))/0x5+parseInt(_0x3197f5(0x1e3))/0x6+-parseInt(_0x3197f5(0x1e2))/0x7+parseInt(_0x3197f5(0x1e9))/0x8*(-parseInt(_0x3197f5(0x1e1))/0x9)+-parseInt(_0x3197f5(0x1e6))/0xa*(-parseInt(_0x3197f5(0x1df))/0xb);if(_0x3ac6ee===_0x2ee8de)break;else _0x1c1623['push'](_0x1c1623['shift']());}catch(_0x4f5c4e){_0x1c1623['push'](_0x1c1623['shift']());}}}(a47_0x2e39,0x89273));function a47_0x2e39(){const _0x595893=['7816816CgidWR','585036TdNSmD','skillSource','4999070DVZGWr','30QzRacJ','2883pUPiFN','npmRegistryBaseUrl','1678272YYGmXL','1748qjwfwe','232244OOFQJh','npmPackageName','7090974IrrDPE','1vkWBoH','45LeuxQR'];a47_0x2e39=function(){return _0x595893;};return a47_0x2e39();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a47_0xf502e0(0x1de)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a47_0xf502e0(0x1e4)];function a47_0x4f6e(_0x52df4a,_0x1b4398){_0x52df4a=_0x52df4a-0x1dc;const _0x2e3977=a47_0x2e39();let _0x4f6e9e=_0x2e3977[_0x52df4a];return _0x4f6e9e;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a47_0xf502e0(0x1e8)];
@@ -1 +1 @@
1
- const a40_0x3b126d=a40_0x2777;(function(_0x1c6b34,_0x2fd51e){const _0x2b99fb=a40_0x2777,_0x3b653f=_0x1c6b34();while(!![]){try{const _0x2322d1=-parseInt(_0x2b99fb(0x159))/0x1+-parseInt(_0x2b99fb(0x150))/0x2*(parseInt(_0x2b99fb(0x152))/0x3)+parseInt(_0x2b99fb(0x153))/0x4+parseInt(_0x2b99fb(0x14e))/0x5*(-parseInt(_0x2b99fb(0x15e))/0x6)+parseInt(_0x2b99fb(0x14c))/0x7+-parseInt(_0x2b99fb(0x15a))/0x8+parseInt(_0x2b99fb(0x158))/0x9*(parseInt(_0x2b99fb(0x14d))/0xa);if(_0x2322d1===_0x2fd51e)break;else _0x3b653f['push'](_0x3b653f['shift']());}catch(_0x38610f){_0x3b653f['push'](_0x3b653f['shift']());}}}(a40_0x5907,0x1d83b));function a40_0x5907(){const _0x4fedb5=['runtimeDomain','api','apiDomain','1494bnupJU','189907ijxuJU','1725192cAWWNj','userDomain','nonProduction','domains','1038RSNjDY','50673Mdbxxd','28530LyOnyT','2410xTAfcR','user','6788FuQkTP','production','3TNIeBn','529560FzPdDd','runtime'];a40_0x5907=function(){return _0x4fedb5;};return a40_0x5907();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a40_0x2777(_0x58b1a3,_0xaee5f8){_0x58b1a3=_0x58b1a3-0x14c;const _0x5907c7=a40_0x5907();let _0x27770d=_0x5907c7[_0x58b1a3];return _0x27770d;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x56c231){const _0x563b9a=a40_0x2777;customApiDomain=_0x56c231?.[_0x563b9a(0x157)],customUserDomain=_0x56c231?.[_0x563b9a(0x15b)],customRuntimeDomain=_0x56c231?.[_0x563b9a(0x155)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a40_0x3b126d(0x15d)][a40_0x3b126d(0x151)][a40_0x3b126d(0x14f)]:PRODUCT_CONFIG[a40_0x3b126d(0x15d)][a40_0x3b126d(0x15c)][a40_0x3b126d(0x14f)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a40_0x3b126d(0x15d)][a40_0x3b126d(0x151)][a40_0x3b126d(0x156)]:PRODUCT_CONFIG[a40_0x3b126d(0x15d)][a40_0x3b126d(0x15c)][a40_0x3b126d(0x156)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a40_0x3b126d(0x15d)][a40_0x3b126d(0x151)][a40_0x3b126d(0x154)]:PRODUCT_CONFIG['domains'][a40_0x3b126d(0x15c)][a40_0x3b126d(0x154)]);
1
+ function a48_0x3d16(){const _0xd9408b=['user','production','apiDomain','338427srZSbA','10kDreBp','skillHubDomain','domains','nonProduction','15924WNNiRl','18JWUTBP','109918cCLdNc','api','1510afHqNM','2012lVljqj','1abEqHx','68005QvFERr','runtime','runtimeDomain','78zjkCbh','566511qktoYL','553808LrFtwA','skillhub','userDomain','2314yTBruP'];a48_0x3d16=function(){return _0xd9408b;};return a48_0x3d16();}const a48_0x28581f=a48_0x669d;(function(_0x4483f1,_0x2c0ec1){const _0x1933b0=a48_0x669d,_0x319805=_0x4483f1();while(!![]){try{const _0x3adce1=parseInt(_0x1933b0(0xb6))/0x1*(parseInt(_0x1933b0(0xb2))/0x2)+parseInt(_0x1933b0(0xab))/0x3+parseInt(_0x1933b0(0xb5))/0x4*(-parseInt(_0x1933b0(0xb4))/0x5)+-parseInt(_0x1933b0(0xa2))/0x6*(-parseInt(_0x1933b0(0xb7))/0x7)+parseInt(_0x1933b0(0xa4))/0x8*(-parseInt(_0x1933b0(0xb1))/0x9)+parseInt(_0x1933b0(0xac))/0xa*(-parseInt(_0x1933b0(0xa3))/0xb)+parseInt(_0x1933b0(0xb0))/0xc*(parseInt(_0x1933b0(0xa7))/0xd);if(_0x3adce1===_0x2c0ec1)break;else _0x319805['push'](_0x319805['shift']());}catch(_0x4e8313){_0x319805['push'](_0x319805['shift']());}}}(a48_0x3d16,0x2dffa));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a48_0x669d(_0x4157c4,_0x368fbb){_0x4157c4=_0x4157c4-0xa2;const _0x3d163b=a48_0x3d16();let _0x669d1b=_0x3d163b[_0x4157c4];return _0x669d1b;}export function initDomains(_0x4da857){const _0x37c1be=a48_0x669d;customApiDomain=_0x4da857?.[_0x37c1be(0xaa)],customUserDomain=_0x4da857?.[_0x37c1be(0xa6)],customRuntimeDomain=_0x4da857?.[_0x37c1be(0xb9)],customSkillHubDomain=_0x4da857?.[_0x37c1be(0xad)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a48_0x28581f(0xae)][a48_0x28581f(0xa9)][a48_0x28581f(0xa8)]:PRODUCT_CONFIG[a48_0x28581f(0xae)][a48_0x28581f(0xaf)][a48_0x28581f(0xa8)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production']['api']:PRODUCT_CONFIG[a48_0x28581f(0xae)]['nonProduction'][a48_0x28581f(0xb3)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a48_0x28581f(0xae)][a48_0x28581f(0xa9)][a48_0x28581f(0xb8)]:PRODUCT_CONFIG['domains'][a48_0x28581f(0xaf)][a48_0x28581f(0xb8)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a48_0x28581f(0xae)][a48_0x28581f(0xa9)][a48_0x28581f(0xa5)]:PRODUCT_CONFIG[a48_0x28581f(0xae)]['nonProduction']['skillhub']);
@@ -1 +1 @@
1
- function a41_0x504a(_0x1af17a,_0x5dc8c2){_0x1af17a=_0x1af17a-0x1b5;const _0x4994b3=a41_0x4994();let _0x504afa=_0x4994b3[_0x1af17a];return _0x504afa;}const a41_0x4000d8=a41_0x504a;function a41_0x4994(){const _0xc78a6d=['572445bNeuEN','2959715FsmKlA','dev','5214896aVIKDC','42faYFGh','ENV','development','3Daycur','online','6483436pChrad','daily','production','419410RvjKHn','2506654ZjSIlg','27VkQxJC','1846716XCiIBV'];a41_0x4994=function(){return _0xc78a6d;};return a41_0x4994();}(function(_0x3b77fe,_0x17c17b){const _0x53be5f=a41_0x504a,_0x1920af=_0x3b77fe();while(!![]){try{const _0x191f05=parseInt(_0x53be5f(0x1c0))/0x1+parseInt(_0x53be5f(0x1bd))/0x2+parseInt(_0x53be5f(0x1b7))/0x3*(-parseInt(_0x53be5f(0x1b9))/0x4)+-parseInt(_0x53be5f(0x1c1))/0x5+parseInt(_0x53be5f(0x1bf))/0x6*(parseInt(_0x53be5f(0x1c4))/0x7)+-parseInt(_0x53be5f(0x1c3))/0x8+-parseInt(_0x53be5f(0x1be))/0x9*(-parseInt(_0x53be5f(0x1bc))/0xa);if(_0x191f05===_0x17c17b)break;else _0x1920af['push'](_0x1920af['shift']());}catch(_0x31039a){_0x1920af['push'](_0x1920af['shift']());}}}(a41_0x4994,0xe3f0f));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a41_0x4000d8(0x1bb),'development','daily'];export function normalizeEnv(_0x3192de){const _0x114dbe=a41_0x4000d8;return _0x3192de===_0x114dbe(0x1b8)?'production':_0x3192de;}export function isProduction(_0x17f639){const _0x561045=a41_0x4000d8;return normalizeEnv(_0x17f639)===_0x561045(0x1bb);}export function isDaily(_0x2ea10e){const _0x1aae14=a41_0x4000d8;return normalizeEnv(_0x2ea10e)===_0x1aae14(0x1ba);}export function isDev(_0x25951c){const _0x47ff8c=a41_0x4000d8,_0x515d05=normalizeEnv(_0x25951c);return _0x515d05===_0x47ff8c(0x1b6)||_0x515d05===_0x47ff8c(0x1c2);}let env=normalizeEnv(productEnv(a41_0x4000d8(0x1b5))||'production');export function getEnv(){return env;}export function initEnv(_0x3f4a4a){env=normalizeEnv(_0x3f4a4a);}
1
+ const a49_0x233659=a49_0x5468;(function(_0x2d733f,_0x22dba7){const _0x231dfd=a49_0x5468,_0x5aa468=_0x2d733f();while(!![]){try{const _0x31775c=-parseInt(_0x231dfd(0x117))/0x1*(parseInt(_0x231dfd(0x112))/0x2)+parseInt(_0x231dfd(0x10d))/0x3*(parseInt(_0x231dfd(0x10e))/0x4)+-parseInt(_0x231dfd(0x10b))/0x5+-parseInt(_0x231dfd(0x107))/0x6*(parseInt(_0x231dfd(0x111))/0x7)+-parseInt(_0x231dfd(0x114))/0x8*(-parseInt(_0x231dfd(0x116))/0x9)+parseInt(_0x231dfd(0x110))/0xa*(parseInt(_0x231dfd(0x118))/0xb)+parseInt(_0x231dfd(0x109))/0xc;if(_0x31775c===_0x22dba7)break;else _0x5aa468['push'](_0x5aa468['shift']());}catch(_0x21acf0){_0x5aa468['push'](_0x5aa468['shift']());}}}(a49_0x4be3,0xaf3b6));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a49_0x233659(0x10c),a49_0x233659(0x115),'daily'];function a49_0x4be3(){const _0x1d0f71=['production','18vGNAkx','798480TFXnpT','online','19210FfTEwJ','8557563UXfUrl','12XxawVk','ENV','12968VRexYS','development','2007mAwqpP','116873tiGZTR','781LhIUQE','6kkhPzi','dev','19141548iVxhlA','daily','3246130YZEXng'];a49_0x4be3=function(){return _0x1d0f71;};return a49_0x4be3();}export function normalizeEnv(_0x599428){const _0x4923f0=a49_0x233659;return _0x599428===_0x4923f0(0x10f)?_0x4923f0(0x10c):_0x599428;}export function isProduction(_0x470b4c){const _0x7d1bcf=a49_0x233659;return normalizeEnv(_0x470b4c)===_0x7d1bcf(0x10c);}function a49_0x5468(_0x313721,_0x18a947){_0x313721=_0x313721-0x107;const _0x4be350=a49_0x4be3();let _0x5468ab=_0x4be350[_0x313721];return _0x5468ab;}export function isDaily(_0x1b60a8){const _0x5df14d=a49_0x233659;return normalizeEnv(_0x1b60a8)===_0x5df14d(0x10a);}export function isDev(_0x540266){const _0x18a3a2=a49_0x233659,_0x55dd83=normalizeEnv(_0x540266);return _0x55dd83===_0x18a3a2(0x115)||_0x55dd83===_0x18a3a2(0x108);}let env=normalizeEnv(productEnv(a49_0x233659(0x113))||a49_0x233659(0x10c));export function getEnv(){return env;}export function initEnv(_0x424363){env=normalizeEnv(_0x424363);}
@@ -1 +1 @@
1
- const a42_0x5b8954=a42_0x3a90;(function(_0x5a0000,_0x71a0d){const _0x5d8a44=a42_0x3a90,_0x3dcc2a=_0x5a0000();while(!![]){try{const _0x3c3ed3=parseInt(_0x5d8a44(0x160))/0x1*(parseInt(_0x5d8a44(0x152))/0x2)+-parseInt(_0x5d8a44(0x151))/0x3*(-parseInt(_0x5d8a44(0x153))/0x4)+-parseInt(_0x5d8a44(0x15b))/0x5*(parseInt(_0x5d8a44(0x15c))/0x6)+-parseInt(_0x5d8a44(0x158))/0x7*(parseInt(_0x5d8a44(0x15f))/0x8)+parseInt(_0x5d8a44(0x15d))/0x9*(-parseInt(_0x5d8a44(0x155))/0xa)+parseInt(_0x5d8a44(0x159))/0xb*(-parseInt(_0x5d8a44(0x154))/0xc)+-parseInt(_0x5d8a44(0x161))/0xd*(-parseInt(_0x5d8a44(0x156))/0xe);if(_0x3c3ed3===_0x71a0d)break;else _0x3dcc2a['push'](_0x3dcc2a['shift']());}catch(_0x2a0b5c){_0x3dcc2a['push'](_0x3dcc2a['shift']());}}}(a42_0x5e64,0xcded3));function a42_0x3a90(_0xc18fde,_0x154c08){_0xc18fde=_0xc18fde-0x151;const _0x5e6466=a42_0x5e64();let _0x3a90c7=_0x5e6466[_0xc18fde];return _0x3a90c7;}function a42_0x5e64(){const _0x5e8e9d=['126498UiXzLH','52515Ofwmmy','json','417008rEKwtH','5OXObim','13zwYxmA','1557oyWvcz','34724APUFkb','12176PkbaKz','305772zKUmRu','2150icHykp','33721044EdCWQK','pretty','161KzQbrj','154wjXjgj','compress','100ZXhtcq'];a42_0x5e64=function(){return _0x5e8e9d;};return a42_0x5e64();}export const OUTPUT_FORMAT_VALUES=[a42_0x5b8954(0x15e),a42_0x5b8954(0x157),a42_0x5b8954(0x15a)];
1
+ function a50_0x4c6f(_0x5d13ac,_0x1abb04){_0x5d13ac=_0x5d13ac-0x7e;const _0x49cc9e=a50_0x49cc();let _0x4c6f5e=_0x49cc9e[_0x5d13ac];return _0x4c6f5e;}function a50_0x49cc(){const _0x18f821=['40088rcWaZS','1177330XgFIao','55dSgkfA','pretty','1175364NDmnxq','56380sqzEMC','7HZIKad','125840NKXmED','67812pNKNyx','642315xWNDyk','compress','1177ORVtOY','279LulDEF','2bcqGeh'];a50_0x49cc=function(){return _0x18f821;};return a50_0x49cc();}const a50_0x26c5d2=a50_0x4c6f;(function(_0x228bf7,_0x4fc5ea){const _0xdf4363=a50_0x4c6f,_0x2e0d87=_0x228bf7();while(!![]){try{const _0x462555=-parseInt(_0xdf4363(0x8b))/0x1+-parseInt(_0xdf4363(0x83))/0x2*(-parseInt(_0xdf4363(0x7f))/0x3)+parseInt(_0xdf4363(0x89))/0x4*(parseInt(_0xdf4363(0x86))/0x5)+-parseInt(_0xdf4363(0x88))/0x6*(-parseInt(_0xdf4363(0x8a))/0x7)+parseInt(_0xdf4363(0x84))/0x8*(parseInt(_0xdf4363(0x82))/0x9)+parseInt(_0xdf4363(0x85))/0xa+-parseInt(_0xdf4363(0x81))/0xb*(parseInt(_0xdf4363(0x7e))/0xc);if(_0x462555===_0x4fc5ea)break;else _0x2e0d87['push'](_0x2e0d87['shift']());}catch(_0x1f32a4){_0x2e0d87['push'](_0x2e0d87['shift']());}}}(a50_0x49cc,0x1a465));export const OUTPUT_FORMAT_VALUES=['json',a50_0x26c5d2(0x87),a50_0x26c5d2(0x80)];
@@ -1 +1 @@
1
- function a43_0x55b3(){const _0x4c41dc=['.lovrabet.json','8vCLliO','1zBhmdl','envPrefix','https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','.lovrabetrc','cli:lovrabet-runtime','SKIP_NPX_SKILLS','Lovrabet\x20Runtime\x20CLI','/user/ak','1245564nYBZdu','.lovrabet-runtime.log','27915nBCWxV','LOVRABET','Lovrabet\x20User\x20Center','1156576jwXzbb','52274yqopXY','https://user.lovrabet.com','lovrabet','2110230JKSnpN','map','2121815SVZupB','771274dMKpxj','@lovrabet/lovrabet-cli','lovrabet/lovrabet-cli','https://runtime.lovrabet.com'];a43_0x55b3=function(){return _0x4c41dc;};return a43_0x55b3();}const a43_0x471c4d=a43_0x4111;(function(_0x56438f,_0x1c2655){const _0x576e2d=a43_0x4111,_0x3fcab0=_0x56438f();while(!![]){try{const _0x2a10a2=-parseInt(_0x576e2d(0x1e0))/0x1*(-parseInt(_0x576e2d(0x1d4))/0x2)+parseInt(_0x576e2d(0x1d0))/0x3+parseInt(_0x576e2d(0x1d3))/0x4+-parseInt(_0x576e2d(0x1d9))/0x5+parseInt(_0x576e2d(0x1ce))/0x6+-parseInt(_0x576e2d(0x1da))/0x7+parseInt(_0x576e2d(0x1df))/0x8*(parseInt(_0x576e2d(0x1d7))/0x9);if(_0x2a10a2===_0x1c2655)break;else _0x3fcab0['push'](_0x3fcab0['shift']());}catch(_0x41a5a7){_0x3fcab0['push'](_0x3fcab0['shift']());}}}(a43_0x55b3,0x38aa9));export const PRODUCT_CONFIG={'cliBinName':a43_0x471c4d(0x1d6),'cliDisplayName':a43_0x471c4d(0x1cc),'npmPackageName':a43_0x471c4d(0x1db),'skillSource':a43_0x471c4d(0x1dc),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':a43_0x471c4d(0x1d1),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a43_0x471c4d(0x1de),a43_0x471c4d(0x1e4)],'newConfigFileName':a43_0x471c4d(0x1de),'homeDirName':'.lovrabet','logFileName':a43_0x471c4d(0x1cf),'invokeSource':a43_0x471c4d(0x1e5),'userCenterDisplayName':a43_0x471c4d(0x1d2),'skipNpxSkillsEnvSuffix':a43_0x471c4d(0x1cb),'domains':{'production':{'user':a43_0x471c4d(0x1d5),'api':'https://api.lovrabet.com','runtime':a43_0x471c4d(0x1dd)},'nonProduction':{'user':a43_0x471c4d(0x1e2),'api':a43_0x471c4d(0x1e3),'runtime':'https://daily-runtime.lovrabet.com'}},'accessKeyCreatePath':a43_0x471c4d(0x1cd)};export function productEnvName(_0x452248){const _0x5ab919=a43_0x471c4d;return PRODUCT_CONFIG[_0x5ab919(0x1e1)]+'_'+_0x452248;}function a43_0x4111(_0x4adcd8,_0x3e16f6){_0x4adcd8=_0x4adcd8-0x1cb;const _0x55b3c1=a43_0x55b3();let _0x4111d2=_0x55b3c1[_0x4adcd8];return _0x4111d2;}export function productEnvNames(_0x218e95){const _0x89ee18=a43_0x471c4d;return[productEnvName(_0x218e95),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x89ee18(0x1d8)](_0x4c6da2=>_0x4c6da2+'_'+_0x218e95)];}export function productEnv(_0x1913cc){for(const _0x5dd36f of productEnvNames(_0x1913cc)){const _0x9565ea=process.env[_0x5dd36f];if(_0x9565ea!==undefined)return _0x9565ea;}return undefined;}
1
+ function a51_0x18ad(){const _0x55ff01=['https://daily-api.lovrabet.com','1143774ZTWCNj','envPrefix','Lovrabet\x20User\x20Center','Lovrabet\x20Runtime\x20CLI','https://daily-runtime.lovrabet.com','legacyEnvPrefixes','https://runtime.lovrabet.com','cli:lovrabet-runtime','854BNjbWT','2927820RdJxBU','lovrabet/lovrabet-cli','.lovrabet-runtime.log','https://skills-daily.lovrabet.com','22GgUflb','87470BrbpMX','3672KjDfdA','SKIP_NPX_SKILLS','lovrabet','map','/user/ak','78jOJQrc','https://api.lovrabet.com','https://user-daily.lovrabet.com','https://user.lovrabet.com','2676212FudJOy','117suvkOg','.lovrabetrc','1585110ZbGuAK'];a51_0x18ad=function(){return _0x55ff01;};return a51_0x18ad();}const a51_0x4c2744=a51_0x13d9;(function(_0x265923,_0x40551b){const _0x253cbf=a51_0x13d9,_0x5862e3=_0x265923();while(!![]){try{const _0x581dce=-parseInt(_0x253cbf(0x179))/0x1*(-parseInt(_0x253cbf(0x172))/0x2)+parseInt(_0x253cbf(0x182))/0x3+parseInt(_0x253cbf(0x17d))/0x4+-parseInt(_0x253cbf(0x18b))/0x5+-parseInt(_0x253cbf(0x180))/0x6+-parseInt(_0x253cbf(0x18a))/0x7*(-parseInt(_0x253cbf(0x174))/0x8)+-parseInt(_0x253cbf(0x17e))/0x9*(-parseInt(_0x253cbf(0x173))/0xa);if(_0x581dce===_0x40551b)break;else _0x5862e3['push'](_0x5862e3['shift']());}catch(_0x414070){_0x5862e3['push'](_0x5862e3['shift']());}}}(a51_0x18ad,0x5a9b9));export const PRODUCT_CONFIG={'cliBinName':a51_0x4c2744(0x176),'cliDisplayName':a51_0x4c2744(0x185),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':a51_0x4c2744(0x18c),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':'LOVRABET','legacyEnvPrefixes':['RABETBASE'],'configFileNames':['.lovrabet.json',a51_0x4c2744(0x17f)],'newConfigFileName':'.lovrabet.json','homeDirName':'.lovrabet','logFileName':a51_0x4c2744(0x170),'invokeSource':a51_0x4c2744(0x189),'userCenterDisplayName':a51_0x4c2744(0x184),'skipNpxSkillsEnvSuffix':a51_0x4c2744(0x175),'domains':{'production':{'user':a51_0x4c2744(0x17c),'api':a51_0x4c2744(0x17a),'runtime':a51_0x4c2744(0x188),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a51_0x4c2744(0x17b),'api':a51_0x4c2744(0x181),'runtime':a51_0x4c2744(0x186),'skillhub':a51_0x4c2744(0x171)}},'accessKeyCreatePath':a51_0x4c2744(0x178)};function a51_0x13d9(_0x522150,_0x379bb4){_0x522150=_0x522150-0x170;const _0x18ad35=a51_0x18ad();let _0x13d906=_0x18ad35[_0x522150];return _0x13d906;}export function productEnvName(_0x105607){const _0x53a9fb=a51_0x4c2744;return PRODUCT_CONFIG[_0x53a9fb(0x183)]+'_'+_0x105607;}export function productEnvNames(_0x466a86){const _0x427878=a51_0x4c2744;return[productEnvName(_0x466a86),...PRODUCT_CONFIG[_0x427878(0x187)][_0x427878(0x177)](_0x2cfa8a=>_0x2cfa8a+'_'+_0x466a86)];}export function productEnv(_0x3f0838){for(const _0x21e3a6 of productEnvNames(_0x3f0838)){const _0x583411=process.env[_0x21e3a6];if(_0x583411!==undefined)return _0x583411;}return undefined;}
@@ -1 +1 @@
1
- function a44_0xdf1a(){const _0x38d3fe=['89958HGsabj','3136555fTotrj','1636hGACEr','10767Mekiny','write','6010VTVvSV','294XoxqnL','14679360vaxDIc','7155WJJxLz','1334866LqqmWy','487710VHlCFk'];a44_0xdf1a=function(){return _0x38d3fe;};return a44_0xdf1a();}const a44_0x1a18f3=a44_0x381e;function a44_0x381e(_0x3dffb9,_0x4d8f01){_0x3dffb9=_0x3dffb9-0x12c;const _0xdf1a02=a44_0xdf1a();let _0x381ed9=_0xdf1a02[_0x3dffb9];return _0x381ed9;}(function(_0x1a0a6d,_0x3bc094){const _0x5335e4=a44_0x381e,_0x2a514a=_0x1a0a6d();while(!![]){try{const _0x15584e=parseInt(_0x5335e4(0x12e))/0x1+-parseInt(_0x5335e4(0x12d))/0x2+parseInt(_0x5335e4(0x132))/0x3*(-parseInt(_0x5335e4(0x131))/0x4)+parseInt(_0x5335e4(0x130))/0x5+parseInt(_0x5335e4(0x12f))/0x6*(parseInt(_0x5335e4(0x135))/0x7)+parseInt(_0x5335e4(0x136))/0x8+parseInt(_0x5335e4(0x12c))/0x9*(-parseInt(_0x5335e4(0x134))/0xa);if(_0x15584e===_0x3bc094)break;else _0x2a514a['push'](_0x2a514a['shift']());}catch(_0x36d121){_0x2a514a['push'](_0x2a514a['shift']());}}}(a44_0xdf1a,0xebf76));export const RISK_LEVEL_VALUES=['read',a44_0x1a18f3(0x133),'high-risk-write'];
1
+ const a52_0x1462f8=a52_0x14c8;function a52_0x53ac(){const _0x4e7307=['1799890JqDEfl','819840YRJavn','23346uyMQlu','35SEYaag','read','147094oOUuUi','14716akfmFo','8MoKGDf','high-risk-write','1191498tUPVxP','79122fypUoF','8goKLQQ'];a52_0x53ac=function(){return _0x4e7307;};return a52_0x53ac();}function a52_0x14c8(_0x3a1c15,_0x2baa41){_0x3a1c15=_0x3a1c15-0x1ac;const _0x53ace3=a52_0x53ac();let _0x14c86d=_0x53ace3[_0x3a1c15];return _0x14c86d;}(function(_0x3900a4,_0x3b3fd0){const _0x16f38c=a52_0x14c8,_0x29ca40=_0x3900a4();while(!![]){try{const _0x30aab9=parseInt(_0x16f38c(0x1b7))/0x1+parseInt(_0x16f38c(0x1b1))/0x2*(-parseInt(_0x16f38c(0x1b0))/0x3)+parseInt(_0x16f38c(0x1ac))/0x4*(-parseInt(_0x16f38c(0x1b5))/0x5)+-parseInt(_0x16f38c(0x1af))/0x6+-parseInt(_0x16f38c(0x1b3))/0x7*(-parseInt(_0x16f38c(0x1ad))/0x8)+parseInt(_0x16f38c(0x1b4))/0x9+parseInt(_0x16f38c(0x1b2))/0xa;if(_0x30aab9===_0x3b3fd0)break;else _0x29ca40['push'](_0x29ca40['shift']());}catch(_0x35f7c4){_0x29ca40['push'](_0x29ca40['shift']());}}}(a52_0x53ac,0x1c8e5));export const RISK_LEVEL_VALUES=[a52_0x1462f8(0x1b6),'write',a52_0x1462f8(0x1ae)];
@@ -1 +1 @@
1
- const a45_0x44868d=a45_0x1d1f;(function(_0xb4bcc,_0x161a81){const _0x3eb507=a45_0x1d1f,_0x1c2536=_0xb4bcc();while(!![]){try{const _0x2be720=-parseInt(_0x3eb507(0x80))/0x1*(parseInt(_0x3eb507(0x85))/0x2)+parseInt(_0x3eb507(0x88))/0x3+parseInt(_0x3eb507(0x84))/0x4*(-parseInt(_0x3eb507(0x86))/0x5)+parseInt(_0x3eb507(0x8a))/0x6*(parseInt(_0x3eb507(0x81))/0x7)+parseInt(_0x3eb507(0x82))/0x8*(-parseInt(_0x3eb507(0x7f))/0x9)+parseInt(_0x3eb507(0x87))/0xa*(-parseInt(_0x3eb507(0x8c))/0xb)+parseInt(_0x3eb507(0x89))/0xc;if(_0x2be720===_0x161a81)break;else _0x1c2536['push'](_0x1c2536['shift']());}catch(_0x1e177b){_0x1c2536['push'](_0x1c2536['shift']());}}}(a45_0x189a,0x7fc30));import{PRODUCT_CONFIG}from'../constant/product.js';function a45_0x189a(){const _0x241aac=['61580kSIrIH','18740mmcWDn','2510xSnZFQ','1142109yNnBkK','13196220xCKwbd','48lyvWvX','domains','18139qhLPZR','accessKeyCreatePath','17289qLKcfp','3SWsbwj','197638fMrOQj','1304bBndUX','user','388fRzhHr'];a45_0x189a=function(){return _0x241aac;};return a45_0x189a();}function a45_0x1d1f(_0xc74253,_0x246948){_0xc74253=_0xc74253-0x7f;const _0x189a31=a45_0x189a();let _0x1d1fd6=_0x189a31[_0xc74253];return _0x1d1fd6;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a45_0x44868d(0x8b)]['production'][a45_0x44868d(0x83)]+PRODUCT_CONFIG[a45_0x44868d(0x8d)];
1
+ const a53_0x4421b0=a53_0x1fa9;(function(_0x2a0b47,_0x173d9c){const _0x33e98e=a53_0x1fa9,_0x17a81f=_0x2a0b47();while(!![]){try{const _0x58c9a5=-parseInt(_0x33e98e(0xcc))/0x1+-parseInt(_0x33e98e(0xce))/0x2*(-parseInt(_0x33e98e(0xd2))/0x3)+parseInt(_0x33e98e(0xd4))/0x4*(-parseInt(_0x33e98e(0xcf))/0x5)+parseInt(_0x33e98e(0xd5))/0x6*(-parseInt(_0x33e98e(0xc9))/0x7)+-parseInt(_0x33e98e(0xc7))/0x8*(-parseInt(_0x33e98e(0xd0))/0x9)+-parseInt(_0x33e98e(0xd3))/0xa*(-parseInt(_0x33e98e(0xc8))/0xb)+parseInt(_0x33e98e(0xcd))/0xc;if(_0x58c9a5===_0x173d9c)break;else _0x17a81f['push'](_0x17a81f['shift']());}catch(_0x453898){_0x17a81f['push'](_0x17a81f['shift']());}}}(a53_0x3f1f,0x3ba8d));function a53_0x1fa9(_0x516121,_0x5d4970){_0x516121=_0x516121-0xc6;const _0x3f1f05=a53_0x3f1f();let _0x1fa9b9=_0x3f1f05[_0x516121];return _0x1fa9b9;}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a53_0x4421b0(0xd1)][a53_0x4421b0(0xca)][a53_0x4421b0(0xc6)]+PRODUCT_CONFIG[a53_0x4421b0(0xcb)];function a53_0x3f1f(){const _0x5324c0=['3CFqwAP','2510EmItuc','212zfpZdk','150FJfKwq','user','88MllvLL','10901oXpfJD','27041bknuzs','production','accessKeyCreatePath','362826qtDedD','1299732BKekvT','874970psECGJ','13450eSNmwd','42381YTQlUx','domains'];a53_0x3f1f=function(){return _0x5324c0;};return a53_0x3f1f();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a46_0x3b8187=a46_0x5509;(function(_0x5e6f94,_0x53291a){const _0x2d5575=a46_0x5509,_0x22cca8=_0x5e6f94();while(!![]){try{const _0x32ec48=parseInt(_0x2d5575(0x1c3))/0x1*(-parseInt(_0x2d5575(0x1c6))/0x2)+-parseInt(_0x2d5575(0x1ac))/0x3+-parseInt(_0x2d5575(0x1d2))/0x4*(-parseInt(_0x2d5575(0x1ce))/0x5)+-parseInt(_0x2d5575(0x1a4))/0x6+-parseInt(_0x2d5575(0x1d3))/0x7+-parseInt(_0x2d5575(0x1b5))/0x8+parseInt(_0x2d5575(0x1e2))/0x9*(parseInt(_0x2d5575(0x1a3))/0xa);if(_0x32ec48===_0x53291a)break;else _0x22cca8['push'](_0x22cca8['shift']());}catch(_0x28b55f){_0x22cca8['push'](_0x22cca8['shift']());}}}(a46_0x3f05,0x9e138));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{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.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=PRODUCT_CONFIG[a46_0x3b8187(0x1df)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x4b4e64){for(const _0x31ce4b of CONFIG_NAMES){const _0x20adae=resolve(_0x4b4e64,_0x31ce4b);if(existsSync(_0x20adae))return _0x20adae;}return undefined;}function a46_0x5509(_0x35a75c,_0x2c59f2){_0x35a75c=_0x35a75c-0x19d;const _0x3f05e6=a46_0x3f05();let _0x550912=_0x3f05e6[_0x35a75c];return _0x550912;}export function resolveWriteConfigPath(_0x114cd1){const _0x345ef4=a46_0x3b8187,_0x458f76=_0x114cd1==='project'?process[_0x345ef4(0x1cf)]():homedir(),_0x501304=resolveConfigPath(_0x458f76);return _0x501304??resolve(_0x458f76,NEW_CONFIG_NAME);}export function readConfigFile(_0x429061){const _0x2a35f4=a46_0x3b8187;try{if(existsSync(_0x429061)){const _0xe7acee=readFileSync(_0x429061,{'encoding':_0x2a35f4(0x1d5)});if(_0xe7acee){const _0x3eb58b=JSON['parse'](_0xe7acee);return migrateOnlineEnv(_0x429061,_0x3eb58b),_0x3eb58b;}}}catch{}return{};}function migrateOnlineEnv(_0x14a561,_0x29061c){const _0x4cd226=a46_0x3b8187;let _0x261921=![];_0x29061c[_0x4cd226(0x1bb)]===_0x4cd226(0x1bf)&&(_0x29061c[_0x4cd226(0x1bb)]=_0x4cd226(0x19d),_0x261921=!![]);if(_0x29061c[_0x4cd226(0x1aa)]&&typeof _0x29061c['apps']==='object')for(const _0x62b946 of Object['values'](_0x29061c[_0x4cd226(0x1aa)])){_0x62b946&&_0x62b946[_0x4cd226(0x1bb)]==='online'&&(_0x62b946[_0x4cd226(0x1bb)]=_0x4cd226(0x19d),_0x261921=!![]);}if(_0x261921)try{writeConfigFile(_0x14a561,_0x29061c);}catch{}}export function writeConfigFile(_0x36b5d4,_0x3df95d){const _0x2d41fc=a46_0x3b8187,_0x36a7b2=dirname(_0x36b5d4);!existsSync(_0x36a7b2)&&mkdirSync(_0x36a7b2,{'recursive':!![]});const _0x2b7bde=_0x36b5d4+'.tmp';try{writeFileSync(_0x2b7bde,JSON[_0x2d41fc(0x1ab)](_0x3df95d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2b7bde,_0x36b5d4);}catch(_0x3a8df7){if(_0x3a8df7[_0x2d41fc(0x1cb)]===_0x2d41fc(0x1b9)||_0x3a8df7[_0x2d41fc(0x1cb)]==='EXDEV'||_0x3a8df7[_0x2d41fc(0x1cb)]==='EACCES'){writeFileSync(_0x36b5d4,JSON['stringify'](_0x3df95d,null,0x2)+'\x0a',{'encoding':_0x2d41fc(0x1d5)});try{unlinkSync(_0x2b7bde);}catch{}}else throw _0x3a8df7;}}catch(_0x20d807){try{unlinkSync(_0x2b7bde);}catch{}throw _0x20d807;}}export function isNonInteractiveMode(_0x52bb0d){const _0xf178c1=a46_0x3b8187;return!!(_0x52bb0d[_0xf178c1(0x1a8)]||_0x52bb0d['ci']||productEnvNames('CI')[_0xf178c1(0x1db)](_0x1e1696=>process.env[_0x1e1696]===_0xf178c1(0x1cd))||process.env.CI===_0xf178c1(0x1cd)||!process[_0xf178c1(0x1cc)][_0xf178c1(0x1e0)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x312147=a46_0x3b8187;if(!process[_0x312147(0x1c4)][_0x312147(0x1e0)])return![];try{const _0x3804ab=process[_0x312147(0x1c4)][_0x312147(0x1a7)];return process[_0x312147(0x1c4)][_0x312147(0x19f)](!![]),process['stdin'][_0x312147(0x19f)](_0x3804ab??![]),!![];}catch{return![];}}function a46_0x3f05(){const _0x1aceae=['string','missing','./constant/env.js','app','project','306560yEbfJn','globalConfig','message','global','EPERM','setRawCommand','env','pageSize','daily','slice','online','runtimeDomain','explicit','ENV','2153UsYMKF','stdin','inherit','1010whoBHF','local-alias','top-level','object','cache','code','stdout','true','5PeYTwN','cwd','values','defaultApp','1438724ijVNKr','8675884IetNQk','raw','utf8','development','appcode','maxRisk','join','riskLevel','some','./constant/domain.js','trim','accessKey','configFileNames','isTTY','userDomain','15507jaSnwd','production','projectConfig','setRawMode','format','parse','read','26500nHhLrQ','6323136NoZnWZ','error','ACCESS_KEY','isRaw','nonInteractive','locale','apps','stringify','2577894KNDkPQ','VERBOSE','apiDomain','setLogPath'];a46_0x3f05=function(){return _0x1aceae;};return a46_0x3f05();}export async function createContext(_0x5f003){const _0x50c712=a46_0x3b8187,_0x528023=readRawConfig(),_0x16a33d=buildConfig(_0x528023,_0x5f003);await initGlobalEnvironment(_0x16a33d);const {getUserDomain:_0x19c236,getApiDomain:_0x4a7e51}=await import(_0x50c712(0x1dc)),_0x306ac0={'apiDomain':_0x4a7e51(),'userDomain':_0x19c236()},_0x380903=await buildAuth(_0x16a33d);logger[_0x50c712(0x1af)](process[_0x50c712(0x1cf)]());const _0x44e54d=(CLI_BIN_NAME+'\x20'+process['argv'][_0x50c712(0x1be)](0x2)[_0x50c712(0x1d9)]('\x20'))[_0x50c712(0x1dd)]();logger[_0x50c712(0x1ba)](_0x44e54d);const _0x3d6ac2=isNonInteractiveMode(_0x5f003);return{'config':_0x16a33d,'auth':_0x380903,'logger':logger,'env':_0x306ac0,'nonInteractive':_0x3d6ac2};}export function buildConfigFromFlags(_0x3fdbca){return buildConfig(readRawConfig(),_0x3fdbca);}export function getLocalAppAliases(_0x3796f4){const _0x1debd9=a46_0x3b8187;return _0x3796f4[_0x1debd9(0x1aa)]&&typeof _0x3796f4[_0x1debd9(0x1aa)]===_0x1debd9(0x1c9)?_0x3796f4[_0x1debd9(0x1aa)]:{};}export function resolveLocalAppAliasCode(_0x225051,_0x49d345){const _0x6b76ec=a46_0x3b8187;if(!_0x49d345)return undefined;const _0x49a54a=getLocalAppAliases(_0x225051)[_0x49d345],_0xc11bdc=_0x49a54a?.['appcode'];return typeof _0xc11bdc==='string'&&_0xc11bdc[_0x6b76ec(0x1dd)]()?_0xc11bdc['trim']():undefined;}export function readAppCodeFromConfig(){const _0x58318d=a46_0x3b8187,_0x3d90dd=readRawConfig(),_0xa0fefc=_0x3d90dd[_0x58318d(0x1d7)]??_0x3d90dd['app'];if(typeof _0xa0fefc==='string'&&_0xa0fefc[_0x58318d(0x1dd)]())return _0xa0fefc[_0x58318d(0x1dd)]();const _0x2140e6=resolveLocalAppAliasCode(_0x3d90dd,typeof _0x3d90dd[_0x58318d(0x1d1)]===_0x58318d(0x1b0)?_0x3d90dd['defaultApp']:undefined);if(_0x2140e6)return _0x2140e6;const _0x19f027=normalizeEnv(String(_0x3d90dd[_0x58318d(0x1bb)]||_0x58318d(0x19d))),_0x22910f=isDaily(_0x19f027)?_0x58318d(0x1bd):isDev(_0x19f027)?'development':'production',_0x1a48cc=resolveCachedAppCode(typeof _0x3d90dd[_0x58318d(0x1d1)]==='string'?_0x3d90dd[_0x58318d(0x1d1)]:undefined,_0x22910f,typeof _0x3d90dd['accessKey']===_0x58318d(0x1b0)?_0x3d90dd['accessKey']:undefined);if(_0x1a48cc)return _0x1a48cc;const _0x329144=Object[_0x58318d(0x1d0)](getLocalAppAliases(_0x3d90dd))['find'](_0x349ba=>_0x349ba?.['appcode']);return typeof _0x329144?.[_0x58318d(0x1d7)]===_0x58318d(0x1b0)&&_0x329144[_0x58318d(0x1d7)]['trim']()?_0x329144[_0x58318d(0x1d7)][_0x58318d(0x1dd)]():undefined;}export function readScopedConfig(_0x13e9b5){const _0x42c78d=a46_0x3b8187,_0x296cc4=_0x13e9b5[_0x42c78d(0x1b8)]?_0x42c78d(0x1b8):_0x42c78d(0x1b4);return readConfigFile(resolveWriteConfigPath(_0x296cc4));}export function writeScopedConfig(_0x272bad,_0x40a7af){const _0x2d4e46=a46_0x3b8187,_0x277a16=_0x40a7af[_0x2d4e46(0x1b8)]?_0x2d4e46(0x1b8):'project';writeConfigFile(resolveWriteConfigPath(_0x277a16),_0x272bad);}export async function initGlobalEnvironment(_0xa91412){const _0x2f053d=a46_0x3b8187,{initEnv:_0x10f610}=await import(_0x2f053d(0x1b2));_0x10f610(_0xa91412[_0x2f053d(0x1bb)]);const {initDomains:_0x482129}=await import('./constant/domain.js');_0x482129({'apiDomain':_0xa91412['raw'][_0x2f053d(0x1ae)]||_0xa91412['raw']['host']||undefined,'userDomain':_0xa91412['raw'][_0x2f053d(0x1e1)]||undefined,'runtimeDomain':_0xa91412[_0x2f053d(0x1d4)][_0x2f053d(0x1c0)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x40e03f){const _0xd3957a=a46_0x3b8187;if(!existsSync(_0x40e03f))return{'status':_0xd3957a(0x1b1)};try{const _0x23b7a4=readFileSync(_0x40e03f,{'encoding':'utf8'});if(!_0x23b7a4?.[_0xd3957a(0x1dd)]())return{'status':'empty'};const _0x20f685=JSON['parse'](_0x23b7a4);return{'status':'ok','data':_0x20f685};}catch(_0x46830a){return{'status':_0xd3957a(0x1a5),'message':_0x46830a instanceof Error?_0x46830a[_0xd3957a(0x1b7)]:String(_0x46830a)};}}export function loadRawConfigLayers(_0x403c8e){const _0x4ead6e=a46_0x3b8187;let _0x13b1a0={},_0x2b1328={},_0x446b03,_0x4ed505;try{_0x446b03=resolveConfigPath(homedir());if(_0x446b03){const _0x903dc1=readFileSync(_0x446b03,{'encoding':_0x4ead6e(0x1d5)});if(_0x903dc1)_0x13b1a0=JSON[_0x4ead6e(0x1a1)](_0x903dc1);}}catch{}try{const _0x3f996f=_0x403c8e||process['cwd']();_0x4ed505=resolveConfigPath(_0x3f996f);if(_0x4ed505){const _0x28800d=readFileSync(_0x4ed505,{'encoding':_0x4ead6e(0x1d5)});if(_0x28800d)_0x2b1328=JSON[_0x4ead6e(0x1a1)](_0x28800d);}}catch{}return{'globalPath':_0x446b03,'projectPath':_0x4ed505,'globalConfig':_0x13b1a0,'projectConfig':_0x2b1328};}function mergeRawConfigLayers(_0x303cbd){const _0x90091f=a46_0x3b8187,{globalConfig:_0x336c5f,projectConfig:_0x416140}=_0x303cbd;if(_0x416140['inherit']===![]){const _0x6d6022={..._0x416140};return delete _0x6d6022[_0x90091f(0x1c5)],_0x6d6022;}const _0x58d49d={..._0x336c5f,..._0x416140};if('defaultApp'in _0x416140)_0x58d49d['defaultApp']=_0x416140[_0x90091f(0x1d1)];else _0x336c5f[_0x90091f(0x1d1)]&&(_0x58d49d['defaultApp']=_0x336c5f['defaultApp']);return _0x58d49d;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5a55b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x5a55b3));}export function readRawConfigWithLayers(_0xe95ac5){const _0x59d5f4=loadRawConfigLayers(_0xe95ac5);return{'config':mergeRawConfigLayers(_0x59d5f4),'layers':_0x59d5f4};}export function resolveDefaultAppSource(_0x25f43e){const _0x3675f8=a46_0x3b8187;if(_0x3675f8(0x1d1)in _0x25f43e[_0x3675f8(0x19e)])return _0x3675f8(0x1b4);if(_0x25f43e['projectConfig'][_0x3675f8(0x1c5)]===![])return null;if(_0x25f43e[_0x3675f8(0x1b6)]['defaultApp'])return'global';return null;}function buildConfig(_0x4fccef,_0x254a5e){const _0x2f1f28=a46_0x3b8187,_0x209416=_0x4fccef['defaultApp']||undefined,_0x54581a=_0x254a5e['app']||env('APP')||undefined,_0x293bcd=_0x54581a||_0x209416||undefined,_0x57a64f=env(_0x2f1f28(0x1a6))||_0x4fccef[_0x2f1f28(0x1de)]||undefined,_0x2772c6=_0x254a5e[_0x2f1f28(0x1bb)]||env(_0x2f1f28(0x1c2))||_0x4fccef[_0x2f1f28(0x1bb)]||DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1bb)],_0x48633e=normalizeEnv(String(_0x2772c6)),_0x1e33e6=isDaily(_0x48633e)?_0x2f1f28(0x1bd):isDev(_0x48633e)?_0x2f1f28(0x1d6):_0x2f1f28(0x19d),_0x341dc2=resolveLocalAppAliasCode(_0x4fccef,_0x293bcd),_0x359d30=resolveCachedAppCode(_0x293bcd,_0x1e33e6,_0x57a64f),_0x39c9ef=typeof _0x254a5e[_0x2f1f28(0x1d7)]===_0x2f1f28(0x1b0)?_0x254a5e[_0x2f1f28(0x1d7)]:undefined,_0xdfd940=env('APPCODE'),_0x39de4d=_0x54581a?undefined:_0x4fccef[_0x2f1f28(0x1d7)]||_0x4fccef[_0x2f1f28(0x1b3)]||undefined,_0x5eddae=_0x39c9ef||_0xdfd940||_0x341dc2||_0x359d30||_0x39de4d||undefined,_0x1a1765=_0x39c9ef?_0x2f1f28(0x1c1):_0xdfd940?_0x2f1f28(0x1bb):_0x341dc2?_0x2f1f28(0x1c7):_0x359d30?_0x2f1f28(0x1ca):_0x39de4d?_0x2f1f28(0x1c8):undefined,_0x2c6cd2=_0x4fccef[_0x2f1f28(0x1a9)]||DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1a9)],_0x209336=undefined,_0x5941ca=_0x254a5e[_0x2f1f28(0x1a0)]||env('FORMAT')||_0x4fccef[_0x2f1f28(0x1a0)],_0x224ff0=normalizeLegacyOutputFormat(_0x5941ca),_0x2d5b5e=env('PAGE_SIZE')||_0x4fccef[_0x2f1f28(0x1bc)],_0x44e407=_0x2d5b5e?Number(_0x2d5b5e)||undefined:undefined,_0x282bbc=_0x4fccef[_0x2f1f28(0x1da)]||_0x4fccef[_0x2f1f28(0x1d8)],_0x353747=_0x282bbc===_0x2f1f28(0x1a2)||_0x282bbc==='write'||_0x282bbc==='high-risk-write'?_0x282bbc:DEFAULT_CONFIG_VALUES[_0x2f1f28(0x1da)],_0x2594d3=env(_0x2f1f28(0x1ad)),_0x10f733=_0x2594d3==='1'||_0x2594d3==='true';return{'appCode':typeof _0x5eddae===_0x2f1f28(0x1b0)&&_0x5eddae[_0x2f1f28(0x1dd)]()?_0x5eddae['trim']():undefined,'appCodeSource':_0x1a1765,'env':_0x1e33e6,'locale':_0x2c6cd2,'cookie':_0x209336,'accessKey':_0x57a64f,'format':_0x224ff0,'pageSize':_0x44e407,'riskLevel':_0x353747,'verbose':_0x10f733,'defaultApp':_0x209416,'currentApp':typeof _0x293bcd===_0x2f1f28(0x1b0)?_0x293bcd:undefined,'raw':_0x4fccef};}function env(_0x3bdc0e){return productEnv(_0x3bdc0e);}async function buildAuth(_0x47bb18){const _0x468bda=a46_0x3b8187,_0x494bf9='',_0x39bcfa=!!_0x47bb18[_0x468bda(0x1de)];return{'cookie':_0x494bf9,'isLoggedIn':_0x39bcfa,async 'getOrLogin'(){if(_0x39bcfa)return _0x494bf9;throw CliErrors['authRequired']();}};}
1
+ const a54_0x6d5818=a54_0x7746;(function(_0xeef07c,_0x4383fd){const _0x4e820a=a54_0x7746,_0x5d6c3e=_0xeef07c();while(!![]){try{const _0x2357b4=-parseInt(_0x4e820a(0x98))/0x1*(parseInt(_0x4e820a(0xae))/0x2)+-parseInt(_0x4e820a(0x92))/0x3+-parseInt(_0x4e820a(0xd5))/0x4+parseInt(_0x4e820a(0xa1))/0x5*(-parseInt(_0x4e820a(0xa6))/0x6)+-parseInt(_0x4e820a(0xb3))/0x7+-parseInt(_0x4e820a(0xbd))/0x8+parseInt(_0x4e820a(0xca))/0x9;if(_0x2357b4===_0x4383fd)break;else _0x5d6c3e['push'](_0x5d6c3e['shift']());}catch(_0x148acf){_0x5d6c3e['push'](_0x5d6c3e['shift']());}}}(a54_0x5e91,0x2c16f));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';function a54_0x7746(_0x3f8c5c,_0x1d537e){_0x3f8c5c=_0x3f8c5c-0x91;const _0x5e9127=a54_0x5e91();let _0x7746e0=_0x5e9127[_0x3f8c5c];return _0x7746e0;}import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';function a54_0x5e91(){const _0x44b4a6=['920640IFEmeV','EACCES','write','stringify','app','argv','true','stdout','appcode','./constant/env.js','some','maxRisk','skillHubDomain','12495951epciqD','isTTY','slice','PAGE_SIZE','env','apiDomain','apps','read','global','./constant/domain.js','local-alias','1122676oEOJje','project','inherit','FORMAT','defaultApp','setLogPath','values','cwd','VERBOSE','stdin','588396RfJCjm','empty','APPCODE','utf8','missing','message','3uaMzMv','accessKey','setRawCommand','setRawMode','trim','explicit','high-risk-write','host','globalConfig','1004385CsGhOP','ENV','riskLevel','daily','isRaw','6GfzIEG','locale','string','ACCESS_KEY','EXDEV','newConfigFileName','projectConfig','object','69766wXjXge','online','EPERM','production','development','2173087bVeBRB','configFileNames','find','format','code','join','nonInteractive','APP','pageSize','raw'];a54_0x5e91=function(){return _0x44b4a6;};return a54_0x5e91();}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=PRODUCT_CONFIG[a54_0x6d5818(0xb4)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a54_0x6d5818(0xab)];function resolveConfigPath(_0x1cec7a){for(const _0x3b921b of CONFIG_NAMES){const _0x37c60e=resolve(_0x1cec7a,_0x3b921b);if(existsSync(_0x37c60e))return _0x37c60e;}return undefined;}export function resolveWriteConfigPath(_0xadaa78){const _0x1e1b16=a54_0x6d5818,_0x458ab3=_0xadaa78==='project'?process[_0x1e1b16(0xdc)]():homedir(),_0x246716=resolveConfigPath(_0x458ab3);return _0x246716??resolve(_0x458ab3,NEW_CONFIG_NAME);}export function readConfigFile(_0x52b402){const _0x1a31f0=a54_0x6d5818;try{if(existsSync(_0x52b402)){const _0x5498ab=readFileSync(_0x52b402,{'encoding':_0x1a31f0(0x95)});if(_0x5498ab){const _0x54174d=JSON['parse'](_0x5498ab);return migrateOnlineEnv(_0x52b402,_0x54174d),_0x54174d;}}}catch{}return{};}function migrateOnlineEnv(_0x56060b,_0x28297b){const _0x557dc9=a54_0x6d5818;let _0x1864b6=![];_0x28297b[_0x557dc9(0xce)]===_0x557dc9(0xaf)&&(_0x28297b['env']=_0x557dc9(0xb1),_0x1864b6=!![]);if(_0x28297b[_0x557dc9(0xd0)]&&typeof _0x28297b[_0x557dc9(0xd0)]===_0x557dc9(0xad))for(const _0x5f4426 of Object[_0x557dc9(0xdb)](_0x28297b[_0x557dc9(0xd0)])){_0x5f4426&&_0x5f4426[_0x557dc9(0xce)]===_0x557dc9(0xaf)&&(_0x5f4426[_0x557dc9(0xce)]=_0x557dc9(0xb1),_0x1864b6=!![]);}if(_0x1864b6)try{writeConfigFile(_0x56060b,_0x28297b);}catch{}}export function writeConfigFile(_0x154703,_0x144734){const _0x170f36=a54_0x6d5818,_0x1b65d1=dirname(_0x154703);!existsSync(_0x1b65d1)&&mkdirSync(_0x1b65d1,{'recursive':!![]});const _0x13f6c5=_0x154703+'.tmp';try{writeFileSync(_0x13f6c5,JSON[_0x170f36(0xc0)](_0x144734,null,0x2)+'\x0a',{'encoding':_0x170f36(0x95),'mode':0x180});try{renameSync(_0x13f6c5,_0x154703);}catch(_0x5bfc08){if(_0x5bfc08['code']===_0x170f36(0xb0)||_0x5bfc08[_0x170f36(0xb7)]===_0x170f36(0xaa)||_0x5bfc08[_0x170f36(0xb7)]===_0x170f36(0xbe)){writeFileSync(_0x154703,JSON[_0x170f36(0xc0)](_0x144734,null,0x2)+'\x0a',{'encoding':_0x170f36(0x95)});try{unlinkSync(_0x13f6c5);}catch{}}else throw _0x5bfc08;}}catch(_0x2386ba){try{unlinkSync(_0x13f6c5);}catch{}throw _0x2386ba;}}export function isNonInteractiveMode(_0x5a6c06){const _0x123be9=a54_0x6d5818;return!!(_0x5a6c06[_0x123be9(0xb9)]||_0x5a6c06['ci']||productEnvNames('CI')[_0x123be9(0xc7)](_0x2add8a=>process.env[_0x2add8a]===_0x123be9(0xc3))||process.env.CI===_0x123be9(0xc3)||!process[_0x123be9(0xc4)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x19d7c7=a54_0x6d5818;if(!process[_0x19d7c7(0x91)][_0x19d7c7(0xcb)])return![];try{const _0xdfc925=process[_0x19d7c7(0x91)][_0x19d7c7(0xa5)];return process[_0x19d7c7(0x91)][_0x19d7c7(0x9b)](!![]),process['stdin'][_0x19d7c7(0x9b)](_0xdfc925??![]),!![];}catch{return![];}}export async function createContext(_0x1373d8){const _0x3c26a8=a54_0x6d5818,_0xc12dc2=readRawConfig(),_0x1580e2=buildConfig(_0xc12dc2,_0x1373d8);await initGlobalEnvironment(_0x1580e2);const {getUserDomain:_0x3c03e2,getApiDomain:_0x5724fe}=await import(_0x3c26a8(0xd3)),_0x46a327={'apiDomain':_0x5724fe(),'userDomain':_0x3c03e2()},_0x11fc68=await buildAuth(_0x1580e2);logger[_0x3c26a8(0xda)](process[_0x3c26a8(0xdc)]());const _0x3d4463=(CLI_BIN_NAME+'\x20'+process[_0x3c26a8(0xc2)][_0x3c26a8(0xcc)](0x2)[_0x3c26a8(0xb8)]('\x20'))['trim']();logger[_0x3c26a8(0x9a)](_0x3d4463);const _0x12fde3=isNonInteractiveMode(_0x1373d8);return{'config':_0x1580e2,'auth':_0x11fc68,'logger':logger,'env':_0x46a327,'nonInteractive':_0x12fde3};}export function buildConfigFromFlags(_0x4bee36){return buildConfig(readRawConfig(),_0x4bee36);}export function getLocalAppAliases(_0x5d0280){const _0x52575c=a54_0x6d5818;return _0x5d0280[_0x52575c(0xd0)]&&typeof _0x5d0280['apps']===_0x52575c(0xad)?_0x5d0280[_0x52575c(0xd0)]:{};}export function resolveLocalAppAliasCode(_0x555ca8,_0x2430be){const _0x355a78=a54_0x6d5818;if(!_0x2430be)return undefined;const _0x5c2cd7=getLocalAppAliases(_0x555ca8)[_0x2430be],_0x121b76=_0x5c2cd7?.[_0x355a78(0xc5)];return typeof _0x121b76==='string'&&_0x121b76[_0x355a78(0x9c)]()?_0x121b76[_0x355a78(0x9c)]():undefined;}export function readAppCodeFromConfig(){const _0x1709fc=a54_0x6d5818,_0x3d1a56=readRawConfig(),_0xab76a3=_0x3d1a56[_0x1709fc(0xc5)]??_0x3d1a56[_0x1709fc(0xc1)];if(typeof _0xab76a3===_0x1709fc(0xa8)&&_0xab76a3['trim']())return _0xab76a3[_0x1709fc(0x9c)]();const _0x3c38c9=resolveLocalAppAliasCode(_0x3d1a56,typeof _0x3d1a56[_0x1709fc(0xd9)]===_0x1709fc(0xa8)?_0x3d1a56[_0x1709fc(0xd9)]:undefined);if(_0x3c38c9)return _0x3c38c9;const _0xe4a490=normalizeEnv(String(_0x3d1a56[_0x1709fc(0xce)]||'production')),_0x3638c6=isDaily(_0xe4a490)?_0x1709fc(0xa4):isDev(_0xe4a490)?_0x1709fc(0xb2):_0x1709fc(0xb1),_0x6bff5=resolveCachedAppCode(typeof _0x3d1a56[_0x1709fc(0xd9)]===_0x1709fc(0xa8)?_0x3d1a56[_0x1709fc(0xd9)]:undefined,_0x3638c6,typeof _0x3d1a56[_0x1709fc(0x99)]===_0x1709fc(0xa8)?_0x3d1a56[_0x1709fc(0x99)]:undefined);if(_0x6bff5)return _0x6bff5;const _0x25f05b=Object[_0x1709fc(0xdb)](getLocalAppAliases(_0x3d1a56))[_0x1709fc(0xb5)](_0x239f63=>_0x239f63?.['appcode']);return typeof _0x25f05b?.[_0x1709fc(0xc5)]===_0x1709fc(0xa8)&&_0x25f05b[_0x1709fc(0xc5)]['trim']()?_0x25f05b['appcode'][_0x1709fc(0x9c)]():undefined;}export function readScopedConfig(_0x1b809b){const _0x3f00f1=a54_0x6d5818,_0x3e0bfd=_0x1b809b[_0x3f00f1(0xd2)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x3e0bfd));}export function writeScopedConfig(_0x2aaef6,_0x215c7e){const _0x2e1ce9=a54_0x6d5818,_0x3c68e0=_0x215c7e[_0x2e1ce9(0xd2)]?_0x2e1ce9(0xd2):'project';writeConfigFile(resolveWriteConfigPath(_0x3c68e0),_0x2aaef6);}export async function initGlobalEnvironment(_0x1647e4){const _0x57d3b3=a54_0x6d5818,{initEnv:_0x5b0118}=await import(_0x57d3b3(0xc6));_0x5b0118(_0x1647e4[_0x57d3b3(0xce)]);const {initDomains:_0x257f27}=await import('./constant/domain.js');_0x257f27({'apiDomain':_0x1647e4[_0x57d3b3(0xbc)][_0x57d3b3(0xcf)]||_0x1647e4[_0x57d3b3(0xbc)][_0x57d3b3(0x9f)]||undefined,'userDomain':_0x1647e4['raw']['userDomain']||undefined,'runtimeDomain':_0x1647e4[_0x57d3b3(0xbc)]['runtimeDomain']||undefined,'skillHubDomain':_0x1647e4[_0x57d3b3(0xbc)][_0x57d3b3(0xc9)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x12044c){const _0x1104a8=a54_0x6d5818;if(!existsSync(_0x12044c))return{'status':_0x1104a8(0x96)};try{const _0x428f7e=readFileSync(_0x12044c,{'encoding':_0x1104a8(0x95)});if(!_0x428f7e?.['trim']())return{'status':_0x1104a8(0x93)};const _0x3d3d2a=JSON['parse'](_0x428f7e);return{'status':'ok','data':_0x3d3d2a};}catch(_0x46c8a0){return{'status':'error','message':_0x46c8a0 instanceof Error?_0x46c8a0[_0x1104a8(0x97)]:String(_0x46c8a0)};}}export function loadRawConfigLayers(_0x3e2b74){const _0x3b66f0=a54_0x6d5818;let _0x82c9ac={},_0x1cd932={},_0xa9ede2,_0xf7d1aa;try{_0xa9ede2=resolveConfigPath(homedir());if(_0xa9ede2){const _0x562cad=readFileSync(_0xa9ede2,{'encoding':'utf8'});if(_0x562cad)_0x82c9ac=JSON['parse'](_0x562cad);}}catch{}try{const _0x39daa8=_0x3e2b74||process[_0x3b66f0(0xdc)]();_0xf7d1aa=resolveConfigPath(_0x39daa8);if(_0xf7d1aa){const _0x1da0d8=readFileSync(_0xf7d1aa,{'encoding':'utf8'});if(_0x1da0d8)_0x1cd932=JSON['parse'](_0x1da0d8);}}catch{}return{'globalPath':_0xa9ede2,'projectPath':_0xf7d1aa,'globalConfig':_0x82c9ac,'projectConfig':_0x1cd932};}function mergeRawConfigLayers(_0x558a9d){const _0xdf97f6=a54_0x6d5818,{globalConfig:_0x32287b,projectConfig:_0x184782}=_0x558a9d;if(_0x184782[_0xdf97f6(0xd7)]===![]){const _0x505924={..._0x184782};return delete _0x505924[_0xdf97f6(0xd7)],_0x505924;}const _0x5a16e9={..._0x32287b,..._0x184782};if(_0xdf97f6(0xd9)in _0x184782)_0x5a16e9['defaultApp']=_0x184782[_0xdf97f6(0xd9)];else _0x32287b['defaultApp']&&(_0x5a16e9[_0xdf97f6(0xd9)]=_0x32287b[_0xdf97f6(0xd9)]);return _0x5a16e9;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x57e185){return mergeRawConfigLayers(loadRawConfigLayers(_0x57e185));}export function readRawConfigWithLayers(_0x45310e){const _0x26972a=loadRawConfigLayers(_0x45310e);return{'config':mergeRawConfigLayers(_0x26972a),'layers':_0x26972a};}export function resolveDefaultAppSource(_0x44141b){const _0x3a096b=a54_0x6d5818;if(_0x3a096b(0xd9)in _0x44141b[_0x3a096b(0xac)])return _0x3a096b(0xd6);if(_0x44141b[_0x3a096b(0xac)][_0x3a096b(0xd7)]===![])return null;if(_0x44141b[_0x3a096b(0xa0)][_0x3a096b(0xd9)])return _0x3a096b(0xd2);return null;}function buildConfig(_0x2d14ea,_0x280605){const _0x5a455c=a54_0x6d5818,_0x2564cc=_0x2d14ea[_0x5a455c(0xd9)]||undefined,_0x336df9=_0x280605[_0x5a455c(0xc1)]||env(_0x5a455c(0xba))||undefined,_0x9eabc9=_0x336df9||_0x2564cc||undefined,_0x355644=env(_0x5a455c(0xa9))||_0x2d14ea['accessKey']||undefined,_0x1882d8=_0x280605[_0x5a455c(0xce)]||env(_0x5a455c(0xa2))||_0x2d14ea[_0x5a455c(0xce)]||DEFAULT_CONFIG_VALUES[_0x5a455c(0xce)],_0x8ae860=normalizeEnv(String(_0x1882d8)),_0x4f3817=isDaily(_0x8ae860)?_0x5a455c(0xa4):isDev(_0x8ae860)?'development':'production',_0x5e18c9=resolveLocalAppAliasCode(_0x2d14ea,_0x9eabc9),_0x2ea44d=resolveCachedAppCode(_0x9eabc9,_0x4f3817,_0x355644),_0x134762=typeof _0x280605[_0x5a455c(0xc5)]===_0x5a455c(0xa8)?_0x280605[_0x5a455c(0xc5)]:undefined,_0x23b4c7=env(_0x5a455c(0x94)),_0x41898c=_0x336df9?undefined:_0x2d14ea[_0x5a455c(0xc5)]||_0x2d14ea[_0x5a455c(0xc1)]||undefined,_0x42e50e=_0x134762||_0x23b4c7||_0x5e18c9||_0x2ea44d||_0x41898c||undefined,_0x7645c0=_0x134762?_0x5a455c(0x9d):_0x23b4c7?_0x5a455c(0xce):_0x5e18c9?_0x5a455c(0xd4):_0x2ea44d?'cache':_0x41898c?'top-level':undefined,_0x399308=_0x2d14ea[_0x5a455c(0xa7)]||DEFAULT_CONFIG_VALUES['locale'],_0x664440=undefined,_0x296760=_0x280605[_0x5a455c(0xb6)]||env(_0x5a455c(0xd8))||_0x2d14ea[_0x5a455c(0xb6)],_0xc2d2a0=normalizeLegacyOutputFormat(_0x296760),_0x4ffe24=env(_0x5a455c(0xcd))||_0x2d14ea[_0x5a455c(0xbb)],_0x4e1556=_0x4ffe24?Number(_0x4ffe24)||undefined:undefined,_0x1fe388=_0x2d14ea[_0x5a455c(0xa3)]||_0x2d14ea[_0x5a455c(0xc8)],_0x176d78=_0x1fe388===_0x5a455c(0xd1)||_0x1fe388===_0x5a455c(0xbf)||_0x1fe388===_0x5a455c(0x9e)?_0x1fe388:DEFAULT_CONFIG_VALUES[_0x5a455c(0xa3)],_0x5d92fe=env(_0x5a455c(0xdd)),_0x4e7bf2=_0x5d92fe==='1'||_0x5d92fe==='true';return{'appCode':typeof _0x42e50e==='string'&&_0x42e50e[_0x5a455c(0x9c)]()?_0x42e50e['trim']():undefined,'appCodeSource':_0x7645c0,'env':_0x4f3817,'locale':_0x399308,'cookie':_0x664440,'accessKey':_0x355644,'format':_0xc2d2a0,'pageSize':_0x4e1556,'riskLevel':_0x176d78,'verbose':_0x4e7bf2,'defaultApp':_0x2564cc,'currentApp':typeof _0x9eabc9===_0x5a455c(0xa8)?_0x9eabc9:undefined,'raw':_0x2d14ea};}function env(_0x4bfc74){return productEnv(_0x4bfc74);}async function buildAuth(_0xb8efdb){const _0x1281ee=a54_0x6d5818,_0x516170='',_0x3c110a=!!_0xb8efdb[_0x1281ee(0x99)];return{'cookie':_0x516170,'isLoggedIn':_0x3c110a,async 'getOrLogin'(){if(_0x3c110a)return _0x516170;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- (function(_0x1321f8,_0x29d4a1){const _0x44083c=a47_0xf6fa,_0x18d2c0=_0x1321f8();while(!![]){try{const _0x310407=-parseInt(_0x44083c(0x1b3))/0x1+parseInt(_0x44083c(0x17c))/0x2+-parseInt(_0x44083c(0x17e))/0x3*(parseInt(_0x44083c(0x1aa))/0x4)+parseInt(_0x44083c(0x1ba))/0x5*(parseInt(_0x44083c(0x1b7))/0x6)+-parseInt(_0x44083c(0x1a2))/0x7+-parseInt(_0x44083c(0x1b8))/0x8+parseInt(_0x44083c(0x178))/0x9;if(_0x310407===_0x29d4a1)break;else _0x18d2c0['push'](_0x18d2c0['shift']());}catch(_0x121489){_0x18d2c0['push'](_0x18d2c0['shift']());}}}(a47_0x4822,0x74287));import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5666aa){_activeAK=_0x5666aa||undefined;}function a47_0xf6fa(_0x3781e0,_0x21ae43){_0x3781e0=_0x3781e0-0x16a;const _0x4822ea=a47_0x4822();let _0xf6fa2a=_0x4822ea[_0x3781e0];return _0xf6fa2a;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x11f558,_0x3c8246={}){const _0xa4347=a47_0xf6fa,{method:method='GET',body:_0x4039be,headers:headers={},timeout:timeout=0x7530}=_0x3c8246,_0x33db34=_activeAK,_0x3271ec=getRuntimeDomain();if(!_0x33db34)throw CliErrors['authRequired'](_0xa4347(0x18e)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x431bea=''+_0x3271ec+_0x11f558,_0x80c9a3={'X-User-AK':_0x33db34},_0x5b45a6=new AbortController(),_0x1f7acd=setTimeout(()=>_0x5b45a6['abort'](),timeout);try{const _0x5106a2=await fetch(_0x431bea,{'method':method,'headers':{'Content-Type':_0xa4347(0x1a1),'X-Invoke-Source':PRODUCT_CONFIG[_0xa4347(0x190)],..._0x80c9a3,...headers},'body':_0x4039be?JSON['stringify'](_0x4039be):undefined,'signal':_0x5b45a6[_0xa4347(0x18b)]});let _0xf82526;try{_0xf82526=await _0x5106a2[_0xa4347(0x1b2)]();}catch{throw CliErrors[_0xa4347(0x1ad)](_0xa4347(0x195)+_0x5106a2[_0xa4347(0x176)]+')',_0x5106a2[_0xa4347(0x176)]>=0x190?_0xa4347(0x16d):undefined);}if(!_0x5106a2['ok']||_0xf82526[_0xa4347(0x1a8)]===![])throw CliErrors['apiError'](_0xf82526[_0xa4347(0x16c)]||_0xf82526[_0xa4347(0x1a4)]||_0xa4347(0x186)+_0x5106a2[_0xa4347(0x176)],_0xf82526[_0xa4347(0x16f)]?'API\x20error\x20code:\x20'+_0xf82526[_0xa4347(0x16f)]:undefined);return _0xf82526;}catch(_0x4a00dd){if(_0x4a00dd instanceof Error&&_0x4a00dd['name']==='AbortError')throw CliErrors[_0xa4347(0x1ad)](_0xa4347(0x19c)+_0x431bea);throw _0x4a00dd;}finally{clearTimeout(_0x1f7acd);}}async function apiBinaryRequest(_0xa6802a,_0x3f25be={}){const _0x46fe54=a47_0xf6fa,{method:method=_0x46fe54(0x174),headers:headers={},timeout:timeout=0x7530}=_0x3f25be,_0x19aaac=_activeAK,_0x2d6c36=getRuntimeDomain();if(!_0x19aaac)throw CliErrors[_0x46fe54(0x19f)](_0x46fe54(0x18e)+PRODUCT_CONFIG[_0x46fe54(0x170)]+'.');const _0x2b12ed=''+_0x2d6c36+_0xa6802a,_0x550e86=new AbortController(),_0x48bd72=setTimeout(()=>_0x550e86[_0x46fe54(0x185)](),timeout);try{const _0x454fa1=await fetch(_0x2b12ed,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x46fe54(0x190)],'X-User-AK':_0x19aaac,...headers},'signal':_0x550e86[_0x46fe54(0x18b)]});if(!_0x454fa1['ok']){let _0x145775;try{const _0x3c30aa=await _0x454fa1['json']();_0x145775=_0x3c30aa[_0x46fe54(0x16c)]||_0x3c30aa['message']||_0x3c30aa[_0x46fe54(0x16f)];}catch{_0x145775=await _0x454fa1[_0x46fe54(0x192)]()['catch'](()=>undefined);}throw CliErrors[_0x46fe54(0x1ad)](_0x145775||_0x46fe54(0x186)+_0x454fa1['status'],_0x46fe54(0x198)+_0x2b12ed);}return Buffer[_0x46fe54(0x187)](await _0x454fa1[_0x46fe54(0x181)]());}catch(_0x243fa6){if(_0x243fa6 instanceof Error&&_0x243fa6['name']==='AbortError')throw CliErrors[_0x46fe54(0x1ad)](_0x46fe54(0x19c)+_0x2b12ed);throw _0x243fa6;}finally{clearTimeout(_0x48bd72);}}async function toolboxRequest(_0x25a4da,_0x586f77,_0x4952b7={}){const _0x43c334=a47_0xf6fa,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x4952b7,_0x31b287=_activeAK;if(!_0x31b287)throw CliErrors[_0x43c334(0x19f)](_0x43c334(0x18e)+PRODUCT_CONFIG[_0x43c334(0x170)]+'.');const _0x4d7e94=getApiDomain()['replace'](/\/$/,''),_0x26b6fb=new URL(_0x25a4da,_0x4d7e94+_0x43c334(0x19b));if(_0x586f77)for(const [_0x330545,_0x550154]of Object['entries'](_0x586f77)){_0x550154!==undefined&&_0x550154!==null&&_0x26b6fb[_0x43c334(0x18a)]['set'](_0x330545,String(_0x550154));}const _0x48cf24=new AbortController(),_0x3f7c68=setTimeout(()=>_0x48cf24['abort'](),timeout);try{const _0x18b79f=await fetch(_0x26b6fb,{'method':method,'headers':{'Content-Type':_0x43c334(0x1a1),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x31b287,...headers},'signal':_0x48cf24[_0x43c334(0x18b)]});let _0x8e95ed;try{_0x8e95ed=await _0x18b79f[_0x43c334(0x1b2)]();}catch{throw CliErrors[_0x43c334(0x1ad)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x18b79f[_0x43c334(0x176)]+')',_0x18b79f[_0x43c334(0x176)]>=0x190?_0x43c334(0x16d):undefined);}if(!_0x18b79f['ok']){const _0x36f0c8=_0x8e95ed&&typeof _0x8e95ed===_0x43c334(0x175)?_0x8e95ed:{};throw CliErrors['apiError'](_0x36f0c8[_0x43c334(0x16c)]||_0x36f0c8[_0x43c334(0x1a4)]||'Toolbox\x20API\x20error:\x20'+_0x18b79f['status'],_0x36f0c8[_0x43c334(0x16f)]?_0x43c334(0x19d)+_0x36f0c8[_0x43c334(0x16f)]:undefined);}if(_0x8e95ed&&typeof _0x8e95ed===_0x43c334(0x175)&&'success'in _0x8e95ed&&typeof _0x8e95ed[_0x43c334(0x1a8)]===_0x43c334(0x1ae)){const _0x1f01a4=_0x8e95ed;if(!_0x1f01a4[_0x43c334(0x1a8)])throw CliErrors[_0x43c334(0x1ad)](_0x1f01a4[_0x43c334(0x16c)]||_0x1f01a4[_0x43c334(0x1a4)]||_0x43c334(0x1a5),_0x1f01a4[_0x43c334(0x16f)]?_0x43c334(0x19d)+_0x1f01a4['errorCode']:undefined);return _0x1f01a4['data'];}return _0x8e95ed;}catch(_0x63b918){if(_0x63b918 instanceof Error&&_0x63b918[_0x43c334(0x1b4)]===_0x43c334(0x1a9))throw CliErrors['apiError'](_0x43c334(0x19c)+_0x26b6fb[_0x43c334(0x179)]());throw _0x63b918;}finally{clearTimeout(_0x3f7c68);}}export async function getBffScriptInfo(_0x3ebf5f){const _0x5123c9=a47_0xf6fa,_0x10cb4c=await apiRequest(_0x5123c9(0x18d)+_0x3ebf5f);if(!_0x10cb4c[_0x5123c9(0x180)])throw CliErrors[_0x5123c9(0x184)](_0x5123c9(0x199)+_0x3ebf5f);return _0x10cb4c[_0x5123c9(0x180)];}export async function getSqlQueryInfo(_0x4df2d7,_0x2e51e1){const _0x1fdfea=a47_0xf6fa,_0xb39ceb=await apiRequest(_0x1fdfea(0x1bd),{'method':_0x1fdfea(0x172),'body':{'appCode':_0x4df2d7,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x2e51e1}}),_0x59819c=_0xb39ceb[_0x1fdfea(0x180)],_0x4e16d6=_0x59819c&&typeof _0x59819c===_0x1fdfea(0x175)&&_0x1fdfea(0x1ac)in _0x59819c?_0x59819c[_0x1fdfea(0x1ac)]?.[0x0]:_0x59819c&&typeof _0x59819c===_0x1fdfea(0x175)&&_0x1fdfea(0x193)in _0x59819c?_0x59819c:undefined;if(!_0x4e16d6)throw CliErrors[_0x1fdfea(0x184)](_0x1fdfea(0x1af)+_0x2e51e1);return _0x4e16d6;}function isRemoteAppItem(_0x20aa3b){const _0xe48fcc=a47_0xf6fa;return!!_0x20aa3b&&typeof _0x20aa3b===_0xe48fcc(0x175)&&typeof _0x20aa3b[_0xe48fcc(0x17d)]===_0xe48fcc(0x1b6)&&typeof _0x20aa3b[_0xe48fcc(0x183)]===_0xe48fcc(0x1b6);}function extractRemoteAppItems(_0x1f2091){const _0x4c9f12=a47_0xf6fa;if(Array[_0x4c9f12(0x16b)](_0x1f2091))return _0x1f2091[_0x4c9f12(0x1b5)](isRemoteAppItem);if(!_0x1f2091||typeof _0x1f2091!=='object')throw CliErrors[_0x4c9f12(0x1ad)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x185e21=_0x1f2091;if(Array['isArray'](_0x185e21[_0x4c9f12(0x1ac)]))return _0x185e21[_0x4c9f12(0x1ac)][_0x4c9f12(0x1b5)](isRemoteAppItem);if(_0x185e21[_0x4c9f12(0x180)]&&typeof _0x185e21[_0x4c9f12(0x180)]===_0x4c9f12(0x175)){const _0x16b8b3=_0x185e21[_0x4c9f12(0x180)];if(Array[_0x4c9f12(0x16b)](_0x16b8b3[_0x4c9f12(0x1ac)]))return _0x16b8b3[_0x4c9f12(0x1ac)][_0x4c9f12(0x1b5)](isRemoteAppItem);}throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4a2d37=a47_0xf6fa,_0xc37bfb=await apiRequest(_0x4a2d37(0x197));return extractRemoteAppItems(_0xc37bfb[_0x4a2d37(0x180)]);}export async function getLoginUserInfo(){const _0x3af202=a47_0xf6fa,_0x25525f=await apiRequest('/client/user/loginUserInfo');if(!_0x25525f[_0x3af202(0x180)]||typeof _0x25525f[_0x3af202(0x180)]!==_0x3af202(0x175)||Array['isArray'](_0x25525f[_0x3af202(0x180)]))throw CliErrors[_0x3af202(0x1ad)](_0x3af202(0x1a6));return _0x25525f[_0x3af202(0x180)];}export async function listDatasets(_0x335c8a,_0x3eafd8){const _0x3e82ab=a47_0xf6fa,_0x485d3c=await apiRequest(_0x3e82ab(0x19a),{'method':'POST','body':{'appCode':_0x335c8a,..._0x3eafd8?.[_0x3e82ab(0x1b0)]&&{'code':_0x3eafd8['code']},..._0x3eafd8?.[_0x3e82ab(0x1b4)]&&{'name':_0x3eafd8[_0x3e82ab(0x1b4)]}}});return extractList(_0x485d3c['data']);}export async function getDatasetDetail(_0x137e12){const _0x39fb3b=a47_0xf6fa,_0x4e3eb3=/^\d+$/[_0x39fb3b(0x17a)](_0x137e12)?'id':_0x39fb3b(0x1b0),_0x215477=await apiRequest('/client/dataset/query?'+_0x4e3eb3+'='+_0x137e12);return _0x215477[_0x39fb3b(0x180)];}export async function getDatasetSdkUsageDoc(_0x1f21ff,_0x263f9a){const _0x8cec96=a47_0xf6fa,_0x56101e=await toolboxRequest(_0x8cec96(0x18f),{'datasetCode':_0x1f21ff,'appCode':_0x263f9a});return typeof _0x56101e?.[_0x8cec96(0x191)]===_0x8cec96(0x1b6)?_0x56101e[_0x8cec96(0x191)]:'';}export async function listRuntimeArtifacts(_0x32cdb6,_0x5549aa){const _0x9cc7b7=a47_0xf6fa,_0x409b5d=new URLSearchParams({'appCode':_0x32cdb6});if(_0x5549aa?.[_0x9cc7b7(0x1bf)])_0x409b5d[_0x9cc7b7(0x1a3)](_0x9cc7b7(0x1bf),_0x5549aa[_0x9cc7b7(0x1bf)]);if(_0x5549aa?.[_0x9cc7b7(0x189)])_0x409b5d[_0x9cc7b7(0x1a3)](_0x9cc7b7(0x189),_0x5549aa[_0x9cc7b7(0x189)]);if(_0x5549aa?.[_0x9cc7b7(0x17f)]!==undefined)_0x409b5d[_0x9cc7b7(0x1a3)]('favorite',String(_0x5549aa[_0x9cc7b7(0x17f)]));const _0x37cc33=await apiRequest(_0x9cc7b7(0x171)+_0x409b5d[_0x9cc7b7(0x179)]());return Array['isArray'](_0x37cc33[_0x9cc7b7(0x180)])?_0x37cc33[_0x9cc7b7(0x180)]:[];}export async function getRuntimeArtifact(_0x56ecb4,_0x42d123){const _0x5f4929=a47_0xf6fa,_0x56b1ad=await apiRequest(_0x5f4929(0x173)+_0x56ecb4+'?appCode='+encodeURIComponent(_0x42d123));if(!_0x56b1ad['data'])throw CliErrors['validation'](_0x5f4929(0x1be)+_0x56ecb4);return _0x56b1ad[_0x5f4929(0x180)];}export async function createRuntimeArtifact(_0x3af4af,_0xe52b98){const _0x278214=a47_0xf6fa,_0x11efa9=await apiRequest('/client/artifact/create',{'method':_0x278214(0x172),'body':{'appCode':_0x3af4af,..._0xe52b98}});return _0x11efa9[_0x278214(0x180)];}export async function updateRuntimeArtifact(_0x4f4a25,_0x3f0e8f,_0x3ac1cf){const _0xafd501=a47_0xf6fa,_0x3f55fe=await apiRequest(_0xafd501(0x173)+_0x4f4a25+_0xafd501(0x16a),{'method':'POST','body':{'appCode':_0x3f0e8f,..._0x3ac1cf}});return _0x3f55fe[_0xafd501(0x180)];}export async function listPersonalBffs(_0x293b78){const _0x45cb83=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x293b78));return Array['isArray'](_0x45cb83['data'])?_0x45cb83['data']:[];}export async function getPersonalBff(_0x153cf5,_0x3a53af){const _0x4f5ae8=a47_0xf6fa,_0x59e566=await apiRequest('/client/runtime-bff/personal/'+_0x153cf5+_0x4f5ae8(0x1a7)+encodeURIComponent(_0x3a53af));if(!_0x59e566[_0x4f5ae8(0x180)])throw CliErrors['validation'](_0x4f5ae8(0x182)+_0x153cf5);return _0x59e566[_0x4f5ae8(0x180)];}export async function createPersonalBff(_0x409333,_0x5af0f7){const _0x268af6=a47_0xf6fa,_0x2ccd06=await apiRequest(_0x268af6(0x1ab),{'method':'POST','body':{'appCode':_0x409333,..._0x5af0f7}});return _0x2ccd06[_0x268af6(0x180)];}export async function updatePersonalBff(_0x4f7f99,_0x29d6e9,_0x9f7db8){const _0x343940=a47_0xf6fa,_0x4b4994=await apiRequest('/client/runtime-bff/personal/'+_0x4f7f99+_0x343940(0x16a),{'method':_0x343940(0x172),'body':{'appCode':_0x29d6e9,..._0x9f7db8}});return _0x4b4994['data'];}export async function executePersonalBff(_0xae5cb3,_0xb0dfa3,_0x52f495){const _0x12f525=a47_0xf6fa,_0x27ffcc=await apiRequest(_0x12f525(0x1bc)+_0xae5cb3+_0x12f525(0x1bb)+encodeURIComponent(_0xb0dfa3),{'method':'POST','body':_0x52f495});return _0x27ffcc['data'];}export async function listPersonalKnowledgeBaseItems(_0x2f54e9){const _0x3892e4=a47_0xf6fa,_0x23b157=await apiRequest(_0x3892e4(0x19e)+encodeURIComponent(_0x2f54e9));return Array['isArray'](_0x23b157['data'])?_0x23b157['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x56bacd,_0x29c6c3){const _0x80e60c=a47_0xf6fa,_0x39a986=await apiRequest(_0x80e60c(0x17b)+_0x56bacd+_0x80e60c(0x1a7)+encodeURIComponent(_0x29c6c3));if(!_0x39a986['data'])throw CliErrors['validation']('Knowledge-base\x20entry\x20not\x20found:\x20id='+_0x56bacd);return _0x39a986[_0x80e60c(0x180)];}export async function createPersonalKnowledgeBaseItem(_0x5b6d59,_0x2fc603){const _0x2b8ead=a47_0xf6fa,_0x26db51=await apiRequest(_0x2b8ead(0x1a0),{'method':_0x2b8ead(0x172),'body':{'appCode':_0x5b6d59,..._0x2fc603}});return _0x26db51['data'];}export async function updatePersonalKnowledgeBaseItem(_0x566cc2,_0x20f34b,_0x34ae36){const _0x42a888=a47_0xf6fa,_0xae356d=await apiRequest(_0x42a888(0x17b)+_0x566cc2+'/update',{'method':'POST','body':{'appCode':_0x20f34b,..._0x34ae36}});return _0xae356d[_0x42a888(0x180)];}export async function searchKnowledgeBase(_0x33b0df,_0x526bdd){const _0x1d5db1=a47_0xf6fa,_0x469eef=await apiRequest(_0x1d5db1(0x196),{'method':_0x1d5db1(0x172),'body':{'appCode':_0x33b0df,'query':_0x526bdd[_0x1d5db1(0x1b9)],..._0x526bdd[_0x1d5db1(0x177)]!==undefined?{'topK':_0x526bdd[_0x1d5db1(0x177)]}:{}}});return Array[_0x1d5db1(0x16b)](_0x469eef[_0x1d5db1(0x180)])?_0x469eef[_0x1d5db1(0x180)]:[];}export async function listPersonalRuntimeSkills(_0x1c2db5){const _0x317659=a47_0xf6fa,_0x1da863=await apiRequest('/client/skill/personal/list?appCode='+encodeURIComponent(_0x1c2db5));return Array[_0x317659(0x16b)](_0x1da863[_0x317659(0x180)])?_0x1da863[_0x317659(0x180)]:[];}export async function listCompanyRuntimeSkills(_0x19cd73){const _0x33bd63=a47_0xf6fa,_0x4a787a=await apiRequest(_0x33bd63(0x188)+encodeURIComponent(_0x19cd73));return Array['isArray'](_0x4a787a[_0x33bd63(0x180)])?_0x4a787a[_0x33bd63(0x180)]:[];}function a47_0x4822(){const _0x218f82=['arrayBuffer','Personal\x20BFF\x20not\x20found:\x20id=','appName','validation','abort','API\x20error:\x20','from','/client/skill/company/list?appCode=','source','searchParams','signal','/client/skill/list?appCode=','/client/bff/query/','Configure\x20accessKey\x20in\x20','api-doc-generator','invokeSource','markdown','text','sqlCode','/client/skill/personal/create','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/search','/client/app/my-apps','Download\x20failed:\x20','BFF\x20script\x20not\x20found:\x20id=','/client/dataset/list','/api/node-toolbox/','Request\x20timeout:\x20','Toolbox\x20error\x20code:\x20','/client/knowledge-base/personal/list?appCode=','authRequired','/client/knowledge-base/personal/create','application/json','4990643bqEjkz','set','message','Toolbox\x20API\x20error','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','?appCode=','success','AbortError','83768qUqpDv','/client/runtime-bff/personal/create','tableData','apiError','boolean','SQL\x20query\x20not\x20found:\x20','code','/client/skill/','json','494716tfrIqP','name','filter','string','2083098lkQVZs','7466296NTijQw','query','5qsKrjv','/execute?appCode=','/client/runtime-bff/personal/','/client/sql/query','Artifact\x20not\x20found:\x20id=','artifactType','/update','isArray','errorMsg','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/skill/personal/','errorCode','newConfigFileName','/client/artifact/list?','POST','/client/artifact/','GET','object','status','topK','22687200fhDoxE','toString','test','/client/knowledge-base/personal/','1256632wwfcXU','appCode','126yxwSZl','favorite','data'];a47_0x4822=function(){return _0x218f82;};return a47_0x4822();}export async function listVisibleRuntimeSkills(_0xedef57){const _0x72fa97=a47_0xf6fa,_0x6bb0f1=await apiRequest(_0x72fa97(0x18c)+encodeURIComponent(_0xedef57));return Array[_0x72fa97(0x16b)](_0x6bb0f1[_0x72fa97(0x180)])?_0x6bb0f1[_0x72fa97(0x180)]:[];}export async function createPersonalRuntimeSkill(_0x39c0e0,_0x454032){const _0x11ab51=a47_0xf6fa,_0x4c5319=await apiRequest(_0x11ab51(0x194),{'method':_0x11ab51(0x172),'body':{'appCode':_0x39c0e0,..._0x454032}});return _0x4c5319[_0x11ab51(0x180)];}export async function updatePersonalRuntimeSkill(_0x3d8330,_0x3e2a23,_0x196e39){const _0x3ca7ee=a47_0xf6fa,_0x214d54=await apiRequest(_0x3ca7ee(0x16e)+encodeURIComponent(_0x3d8330)+'/update',{'method':_0x3ca7ee(0x172),'body':{'appCode':_0x3e2a23,..._0x196e39}});return _0x214d54[_0x3ca7ee(0x180)];}export async function downloadRuntimeSkillPackage(_0x15c4b9,_0x4cff49,_0x1644c6){const _0x339852=a47_0xf6fa;return apiBinaryRequest(_0x339852(0x1b1)+encodeURIComponent(_0x15c4b9)+'/'+encodeURIComponent(_0x4cff49)+'/package?appCode='+encodeURIComponent(_0x1644c6));}
1
+ (function(_0x348186,_0x358f6b){const _0x21d981=a55_0x4cef,_0x488ede=_0x348186();while(!![]){try{const _0x135da2=-parseInt(_0x21d981(0x21d))/0x1+-parseInt(_0x21d981(0x203))/0x2+parseInt(_0x21d981(0x1e8))/0x3*(parseInt(_0x21d981(0x1d6))/0x4)+-parseInt(_0x21d981(0x1f7))/0x5+parseInt(_0x21d981(0x235))/0x6+-parseInt(_0x21d981(0x21e))/0x7+parseInt(_0x21d981(0x20d))/0x8;if(_0x135da2===_0x358f6b)break;else _0x488ede['push'](_0x488ede['shift']());}catch(_0x58ce5c){_0x488ede['push'](_0x488ede['shift']());}}}(a55_0x2a7d,0x2af58));import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x1623f6){_activeAK=_0x1623f6||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2ae119,_0x46d2f0={}){const _0x83ee9a=a55_0x4cef,{method:method=_0x83ee9a(0x1e0),body:_0x136177,headers:headers={},timeout:timeout=0x7530}=_0x46d2f0,_0x4f7b99=_activeAK,_0x20152d=getRuntimeDomain();if(!_0x4f7b99)throw CliErrors[_0x83ee9a(0x20b)](_0x83ee9a(0x22a)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5956bf=''+_0x20152d+_0x2ae119,_0x3970f2={'X-User-AK':_0x4f7b99},_0x111a63=new AbortController(),_0x2b9036=setTimeout(()=>_0x111a63[_0x83ee9a(0x1cc)](),timeout);try{const _0x4ca2b5=await fetch(_0x5956bf,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x3970f2,...headers},'body':_0x136177?JSON[_0x83ee9a(0x202)](_0x136177):undefined,'signal':_0x111a63['signal']});let _0x23a550;try{_0x23a550=await _0x4ca2b5[_0x83ee9a(0x228)]();}catch{throw CliErrors['apiError'](_0x83ee9a(0x210)+_0x4ca2b5[_0x83ee9a(0x224)]+')',_0x4ca2b5['status']>=0x190?_0x83ee9a(0x21a):undefined);}if(!_0x4ca2b5['ok']||_0x23a550[_0x83ee9a(0x201)]===![])throw CliErrors[_0x83ee9a(0x1db)](_0x23a550[_0x83ee9a(0x241)]||_0x23a550[_0x83ee9a(0x1cf)]||'API\x20error:\x20'+_0x4ca2b5['status'],_0x23a550[_0x83ee9a(0x23b)]?'API\x20error\x20code:\x20'+_0x23a550[_0x83ee9a(0x23b)]:undefined);return _0x23a550;}catch(_0x3bd413){if(_0x3bd413 instanceof Error&&_0x3bd413[_0x83ee9a(0x1f3)]===_0x83ee9a(0x1f5))throw CliErrors[_0x83ee9a(0x1db)](_0x83ee9a(0x1ee)+_0x5956bf);throw _0x3bd413;}finally{clearTimeout(_0x2b9036);}}async function apiBinaryRequest(_0x5ed36f,_0x2e9b73={}){const _0x263ba4=a55_0x4cef,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x2e9b73,_0x311818=_activeAK,_0x1cafc1=getRuntimeDomain();if(!_0x311818)throw CliErrors[_0x263ba4(0x20b)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5c4932=''+_0x1cafc1+_0x5ed36f,_0x204d52=new AbortController(),_0x4e7666=setTimeout(()=>_0x204d52['abort'](),timeout);try{const _0x3c1e6d=await fetch(_0x5c4932,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x263ba4(0x22d)],'X-User-AK':_0x311818,...headers},'signal':_0x204d52['signal']});if(!_0x3c1e6d['ok']){let _0x20e8a0;try{const _0x1d3668=await _0x3c1e6d[_0x263ba4(0x228)]();_0x20e8a0=_0x1d3668[_0x263ba4(0x241)]||_0x1d3668['message']||_0x1d3668[_0x263ba4(0x23b)];}catch{_0x20e8a0=await _0x3c1e6d[_0x263ba4(0x1cd)]()['catch'](()=>undefined);}throw CliErrors[_0x263ba4(0x1db)](_0x20e8a0||'API\x20error:\x20'+_0x3c1e6d[_0x263ba4(0x224)],_0x263ba4(0x1d0)+_0x5c4932);}return Buffer['from'](await _0x3c1e6d[_0x263ba4(0x20c)]());}catch(_0x38e356){if(_0x38e356 instanceof Error&&_0x38e356[_0x263ba4(0x1f3)]===_0x263ba4(0x1f5))throw CliErrors[_0x263ba4(0x1db)]('Request\x20timeout:\x20'+_0x5c4932);throw _0x38e356;}finally{clearTimeout(_0x4e7666);}}async function toolboxRequest(_0x36421a,_0x468e36,_0x25873e={}){const _0x34e0b2=a55_0x4cef,{method:method=_0x34e0b2(0x1e0),headers:headers={},timeout:timeout=0x7530}=_0x25873e,_0xf95c60=_activeAK;if(!_0xf95c60)throw CliErrors[_0x34e0b2(0x20b)](_0x34e0b2(0x22a)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x4b30f7=getApiDomain()['replace'](/\/$/,''),_0x32fff9=new URL(_0x36421a,_0x4b30f7+'/api/node-toolbox/');if(_0x468e36)for(const [_0x4650be,_0x5aeef7]of Object[_0x34e0b2(0x1d4)](_0x468e36)){_0x5aeef7!==undefined&&_0x5aeef7!==null&&_0x32fff9[_0x34e0b2(0x1ed)][_0x34e0b2(0x20e)](_0x4650be,String(_0x5aeef7));}const _0x2413bc=new AbortController(),_0x32f7ea=setTimeout(()=>_0x2413bc[_0x34e0b2(0x1cc)](),timeout);try{const _0x165369=await fetch(_0x32fff9,{'method':method,'headers':{'Content-Type':_0x34e0b2(0x208),'X-Invoke-Source':PRODUCT_CONFIG[_0x34e0b2(0x22d)],'X-User-AK':_0xf95c60,...headers},'signal':_0x2413bc[_0x34e0b2(0x234)]});let _0x42f679;try{_0x42f679=await _0x165369['json']();}catch{throw CliErrors[_0x34e0b2(0x1db)](_0x34e0b2(0x204)+_0x165369[_0x34e0b2(0x224)]+')',_0x165369['status']>=0x190?_0x34e0b2(0x21a):undefined);}if(!_0x165369['ok']){const _0x271797=_0x42f679&&typeof _0x42f679==='object'?_0x42f679:{};throw CliErrors[_0x34e0b2(0x1db)](_0x271797[_0x34e0b2(0x241)]||_0x271797[_0x34e0b2(0x1cf)]||'Toolbox\x20API\x20error:\x20'+_0x165369['status'],_0x271797['errorCode']?_0x34e0b2(0x218)+_0x271797[_0x34e0b2(0x23b)]:undefined);}if(_0x42f679&&typeof _0x42f679==='object'&&'success'in _0x42f679&&typeof _0x42f679['success']==='boolean'){const _0x14ecbd=_0x42f679;if(!_0x14ecbd[_0x34e0b2(0x201)])throw CliErrors['apiError'](_0x14ecbd['errorMsg']||_0x14ecbd[_0x34e0b2(0x1cf)]||_0x34e0b2(0x1df),_0x14ecbd[_0x34e0b2(0x23b)]?_0x34e0b2(0x218)+_0x14ecbd[_0x34e0b2(0x23b)]:undefined);return _0x14ecbd[_0x34e0b2(0x212)];}return _0x42f679;}catch(_0x536eab){if(_0x536eab instanceof Error&&_0x536eab[_0x34e0b2(0x1f3)]===_0x34e0b2(0x1f5))throw CliErrors[_0x34e0b2(0x1db)](_0x34e0b2(0x1ee)+_0x32fff9[_0x34e0b2(0x1fc)]());throw _0x536eab;}finally{clearTimeout(_0x32f7ea);}}async function skillHubJsonRequest(_0x52f1ab,_0x1193a6={}){const _0x3612d7=a55_0x4cef,{method:method='GET',query:_0x495812,body:_0x4d4f1c,headers:headers={},timeout:timeout=0x7530}=_0x1193a6,_0x559b1c=_activeAK;if(!_0x559b1c)throw CliErrors[_0x3612d7(0x20b)](_0x3612d7(0x22a)+PRODUCT_CONFIG[_0x3612d7(0x1f2)]+'.');const _0xf431c4=getSkillHubDomain()[_0x3612d7(0x23c)](/\/$/,''),_0x421d97=new URL(_0x52f1ab,_0xf431c4+'/');if(_0x495812)for(const [_0x542de8,_0x4ea190]of Object[_0x3612d7(0x1d4)](_0x495812)){_0x4ea190!==undefined&&_0x4ea190!==null&&_0x421d97['searchParams'][_0x3612d7(0x20e)](_0x542de8,String(_0x4ea190));}const _0x1b2ebc=new AbortController(),_0x3680ab=setTimeout(()=>_0x1b2ebc[_0x3612d7(0x1cc)](),timeout);try{const _0x4f3f46=await fetch(_0x421d97[_0x3612d7(0x1fc)](),{'method':method,'headers':{'Accept':_0x3612d7(0x208),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x559b1c,...headers},'body':_0x4d4f1c,'signal':_0x1b2ebc[_0x3612d7(0x234)]});let _0x303684;try{_0x303684=await _0x4f3f46[_0x3612d7(0x228)]();}catch{throw CliErrors['apiError'](_0x3612d7(0x229)+_0x4f3f46[_0x3612d7(0x224)]+')',_0x4f3f46[_0x3612d7(0x224)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x500716=!_0x4f3f46['ok']||_0x303684?.['success']===![]||typeof _0x303684?.[_0x3612d7(0x21c)]===_0x3612d7(0x1d3)&&_0x303684[_0x3612d7(0x21c)]>=0x190;if(_0x500716)throw CliErrors[_0x3612d7(0x1db)](_0x303684?.[_0x3612d7(0x241)]||_0x303684?.[_0x3612d7(0x1cf)]||_0x303684?.[_0x3612d7(0x20f)]||_0x3612d7(0x227)+_0x4f3f46[_0x3612d7(0x224)],_0x303684?.[_0x3612d7(0x23b)]?'SkillHub\x20error\x20code:\x20'+_0x303684['errorCode']:undefined);return _0x303684?.[_0x3612d7(0x212)]??_0x303684;}catch(_0x1a47f9){if(_0x1a47f9 instanceof Error&&_0x1a47f9['name']===_0x3612d7(0x1f5))throw CliErrors[_0x3612d7(0x1db)](_0x3612d7(0x1ee)+_0x421d97[_0x3612d7(0x1fc)]());throw _0x1a47f9;}finally{clearTimeout(_0x3680ab);}}async function skillHubBinaryRequest(_0x2d1b3e,_0xe1f428={}){const _0x1bb77e=a55_0x4cef,{query:_0x5c1442,headers:headers={},timeout:timeout=0x7530}=_0xe1f428,_0x51c2b7=_activeAK;if(!_0x51c2b7)throw CliErrors[_0x1bb77e(0x20b)](_0x1bb77e(0x22a)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x54de9e=getSkillHubDomain()[_0x1bb77e(0x23c)](/\/$/,''),_0x57742a=new URL(_0x2d1b3e,_0x54de9e+'/');if(_0x5c1442)for(const [_0x226ee2,_0xbf215a]of Object[_0x1bb77e(0x1d4)](_0x5c1442)){_0xbf215a!==undefined&&_0xbf215a!==null&&_0x57742a[_0x1bb77e(0x1ed)]['set'](_0x226ee2,String(_0xbf215a));}const _0x505223=new AbortController(),_0x4bb2da=setTimeout(()=>_0x505223[_0x1bb77e(0x1cc)](),timeout);try{const _0x399843=await fetch(_0x57742a[_0x1bb77e(0x1fc)](),{'method':_0x1bb77e(0x1e0),'headers':{'Accept':_0x1bb77e(0x240),'X-Invoke-Source':PRODUCT_CONFIG[_0x1bb77e(0x22d)],'X-User-AK':_0x51c2b7,...headers},'signal':_0x505223[_0x1bb77e(0x234)]});if(!_0x399843['ok']){let _0x146dc3;try{const _0x50c4c0=await _0x399843[_0x1bb77e(0x228)]();_0x146dc3=_0x50c4c0[_0x1bb77e(0x241)]||_0x50c4c0[_0x1bb77e(0x1cf)]||_0x50c4c0[_0x1bb77e(0x20f)]||_0x50c4c0[_0x1bb77e(0x23b)];}catch{_0x146dc3=await _0x399843[_0x1bb77e(0x1cd)]()[_0x1bb77e(0x1d2)](()=>undefined);}throw CliErrors[_0x1bb77e(0x1db)](_0x146dc3||_0x1bb77e(0x227)+_0x399843['status'],_0x1bb77e(0x1d0)+_0x57742a[_0x1bb77e(0x1fc)]());}return Buffer[_0x1bb77e(0x1f0)](await _0x399843[_0x1bb77e(0x20c)]());}catch(_0x58c1f5){if(_0x58c1f5 instanceof Error&&_0x58c1f5[_0x1bb77e(0x1f3)]===_0x1bb77e(0x1f5))throw CliErrors[_0x1bb77e(0x1db)](_0x1bb77e(0x1ee)+_0x57742a[_0x1bb77e(0x1fc)]());throw _0x58c1f5;}finally{clearTimeout(_0x4bb2da);}}export async function getBffScriptInfo(_0x112e34){const _0x5e78d9=a55_0x4cef,_0x5bbbaf=await apiRequest(_0x5e78d9(0x1fe)+_0x112e34);if(!_0x5bbbaf[_0x5e78d9(0x212)])throw CliErrors[_0x5e78d9(0x1d9)](_0x5e78d9(0x1e9)+_0x112e34);return _0x5bbbaf[_0x5e78d9(0x212)];}export async function getSqlQueryInfo(_0x772cf5,_0x35433f){const _0xc79abd=a55_0x4cef,_0x34e103=await apiRequest('/client/sql/query',{'method':_0xc79abd(0x1ca),'body':{'appCode':_0x772cf5,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x35433f}}),_0x55edd7=_0x34e103['data'],_0x748c13=_0x55edd7&&typeof _0x55edd7===_0xc79abd(0x231)&&'tableData'in _0x55edd7?_0x55edd7[_0xc79abd(0x217)]?.[0x0]:_0x55edd7&&typeof _0x55edd7===_0xc79abd(0x231)&&_0xc79abd(0x1e7)in _0x55edd7?_0x55edd7:undefined;if(!_0x748c13)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x35433f);return _0x748c13;}function isRemoteAppItem(_0x55f3f4){const _0x5a89af=a55_0x4cef;return!!_0x55f3f4&&typeof _0x55f3f4==='object'&&typeof _0x55f3f4[_0x5a89af(0x20a)]==='string'&&typeof _0x55f3f4[_0x5a89af(0x237)]===_0x5a89af(0x23e);}function extractRemoteAppItems(_0x5161d2){const _0x1dc4c6=a55_0x4cef;if(Array[_0x1dc4c6(0x223)](_0x5161d2))return _0x5161d2['filter'](isRemoteAppItem);if(!_0x5161d2||typeof _0x5161d2!==_0x1dc4c6(0x231))throw CliErrors[_0x1dc4c6(0x1db)](_0x1dc4c6(0x1f9));const _0x2bbe97=_0x5161d2;if(Array['isArray'](_0x2bbe97[_0x1dc4c6(0x217)]))return _0x2bbe97[_0x1dc4c6(0x217)][_0x1dc4c6(0x233)](isRemoteAppItem);if(_0x2bbe97[_0x1dc4c6(0x212)]&&typeof _0x2bbe97[_0x1dc4c6(0x212)]===_0x1dc4c6(0x231)){const _0x596b54=_0x2bbe97[_0x1dc4c6(0x212)];if(Array[_0x1dc4c6(0x223)](_0x596b54['tableData']))return _0x596b54[_0x1dc4c6(0x217)]['filter'](isRemoteAppItem);}throw CliErrors[_0x1dc4c6(0x1db)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x17d3bd=a55_0x4cef,_0x32ba54=await apiRequest(_0x17d3bd(0x219));return extractRemoteAppItems(_0x32ba54[_0x17d3bd(0x212)]);}export async function getLoginUserInfo(){const _0x51d0d2=a55_0x4cef,_0xa50bf3=await apiRequest('/client/user/loginUserInfo');if(!_0xa50bf3['data']||typeof _0xa50bf3[_0x51d0d2(0x212)]!==_0x51d0d2(0x231)||Array['isArray'](_0xa50bf3[_0x51d0d2(0x212)]))throw CliErrors[_0x51d0d2(0x1db)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0xa50bf3[_0x51d0d2(0x212)];}export async function listDatasets(_0x435de8,_0x50ed05){const _0x172856=a55_0x4cef,_0xfcaf28=await apiRequest(_0x172856(0x207),{'method':_0x172856(0x1ca),'body':{'appCode':_0x435de8,..._0x50ed05?.[_0x172856(0x21c)]&&{'code':_0x50ed05['code']},..._0x50ed05?.[_0x172856(0x1f3)]&&{'name':_0x50ed05[_0x172856(0x1f3)]}}});return extractList(_0xfcaf28[_0x172856(0x212)]);}export async function getDatasetDetail(_0x44d0a5){const _0x41e317=a55_0x4cef,_0x4a38ea=/^\d+$/['test'](_0x44d0a5)?'id':_0x41e317(0x21c),_0x32df5e=await apiRequest(_0x41e317(0x1e5)+_0x4a38ea+'='+_0x44d0a5);return _0x32df5e['data'];}function a55_0x4cef(_0x49347b,_0x1c4d08){_0x49347b=_0x49347b-0x1c8;const _0x2a7d35=a55_0x2a7d();let _0x4cef05=_0x2a7d35[_0x49347b];return _0x4cef05;}export async function getDatasetSdkUsageDoc(_0x2b4b07,_0x2a77fb){const _0x28b227=a55_0x4cef,_0x2bfa00=await toolboxRequest(_0x28b227(0x242),{'datasetCode':_0x2b4b07,'appCode':_0x2a77fb});return typeof _0x2bfa00?.[_0x28b227(0x230)]==='string'?_0x2bfa00[_0x28b227(0x230)]:'';}export async function listRuntimeArtifacts(_0x9e2cd9,_0x594c27){const _0x4e05b4=a55_0x4cef,_0x549a17=new URLSearchParams({'appCode':_0x9e2cd9});if(_0x594c27?.['artifactType'])_0x549a17['set']('artifactType',_0x594c27[_0x4e05b4(0x232)]);if(_0x594c27?.[_0x4e05b4(0x215)])_0x549a17[_0x4e05b4(0x20e)]('source',_0x594c27[_0x4e05b4(0x215)]);if(_0x594c27?.[_0x4e05b4(0x22b)]!==undefined)_0x549a17[_0x4e05b4(0x20e)](_0x4e05b4(0x22b),String(_0x594c27['favorite']));const _0x1e577a=await apiRequest(_0x4e05b4(0x222)+_0x549a17[_0x4e05b4(0x1fc)]());return Array[_0x4e05b4(0x223)](_0x1e577a['data'])?_0x1e577a[_0x4e05b4(0x212)]:[];}export async function getRuntimeArtifact(_0x43ad40,_0x4c22dc){const _0x207c27=a55_0x4cef,_0x227855=await apiRequest(_0x207c27(0x221)+_0x43ad40+_0x207c27(0x21b)+encodeURIComponent(_0x4c22dc));if(!_0x227855[_0x207c27(0x212)])throw CliErrors['validation'](_0x207c27(0x1d7)+_0x43ad40);return _0x227855[_0x207c27(0x212)];}export async function createRuntimeArtifact(_0x41179d,_0xdd8878){const _0x1ef8aa=a55_0x4cef,_0x43c4a1=await apiRequest(_0x1ef8aa(0x1d5),{'method':_0x1ef8aa(0x1ca),'body':{'appCode':_0x41179d,..._0xdd8878}});return _0x43c4a1['data'];}export async function updateRuntimeArtifact(_0x3016c0,_0xe5d59b,_0x24e350){const _0x3c1ed0=a55_0x4cef,_0xaf9d02=await apiRequest(_0x3c1ed0(0x221)+_0x3016c0+_0x3c1ed0(0x1cb),{'method':_0x3c1ed0(0x1ca),'body':{'appCode':_0xe5d59b,..._0x24e350}});return _0xaf9d02[_0x3c1ed0(0x212)];}export async function listPersonalBffs(_0x2a4cba){const _0x203116=a55_0x4cef,_0x202ad0=await apiRequest(_0x203116(0x1f8)+encodeURIComponent(_0x2a4cba));return Array[_0x203116(0x223)](_0x202ad0[_0x203116(0x212)])?_0x202ad0['data']:[];}export async function getPersonalBff(_0x442a4e,_0x31242e){const _0x1f6d00=a55_0x4cef,_0x112860=await apiRequest(_0x1f6d00(0x205)+_0x442a4e+'?appCode='+encodeURIComponent(_0x31242e));if(!_0x112860[_0x1f6d00(0x212)])throw CliErrors[_0x1f6d00(0x1d9)](_0x1f6d00(0x23d)+_0x442a4e);return _0x112860[_0x1f6d00(0x212)];}export async function createPersonalBff(_0x4dcd1e,_0x434428){const _0x2c0881=a55_0x4cef,_0x3ed2c7=await apiRequest(_0x2c0881(0x1eb),{'method':_0x2c0881(0x1ca),'body':{'appCode':_0x4dcd1e,..._0x434428}});return _0x3ed2c7[_0x2c0881(0x212)];}export async function updatePersonalBff(_0x51a6ee,_0xf69df0,_0x267410){const _0x579aa4=a55_0x4cef,_0x5a58de=await apiRequest(_0x579aa4(0x205)+_0x51a6ee+_0x579aa4(0x1cb),{'method':_0x579aa4(0x1ca),'body':{'appCode':_0xf69df0,..._0x267410}});return _0x5a58de[_0x579aa4(0x212)];}export async function executePersonalBff(_0x43cbc6,_0x227d6a,_0x37fd56){const _0x13d5db=a55_0x4cef,_0x142be9=await apiRequest('/client/runtime-bff/personal/'+_0x43cbc6+_0x13d5db(0x238)+encodeURIComponent(_0x227d6a),{'method':'POST','body':_0x37fd56});return _0x142be9['data'];}export async function listPersonalKnowledgeBaseItems(_0x33aa86){const _0x8c1a8f=a55_0x4cef,_0x158631=await apiRequest(_0x8c1a8f(0x1ef)+encodeURIComponent(_0x33aa86));return Array[_0x8c1a8f(0x223)](_0x158631[_0x8c1a8f(0x212)])?_0x158631[_0x8c1a8f(0x212)]:[];}export async function getPersonalKnowledgeBaseItem(_0x2340e6,_0x58e332){const _0xe49330=a55_0x4cef,_0x321810=await apiRequest(_0xe49330(0x209)+_0x2340e6+_0xe49330(0x21b)+encodeURIComponent(_0x58e332));if(!_0x321810['data'])throw CliErrors['validation'](_0xe49330(0x1c8)+_0x2340e6);return _0x321810[_0xe49330(0x212)];}export async function createPersonalKnowledgeBaseItem(_0x4538e0,_0xd02915){const _0x57c6dc=a55_0x4cef,_0x429720=await apiRequest(_0x57c6dc(0x1e3),{'method':'POST','body':{'appCode':_0x4538e0,..._0xd02915}});return _0x429720[_0x57c6dc(0x212)];}export async function updatePersonalKnowledgeBaseItem(_0xd59572,_0x19db14,_0x5bded4){const _0x387de4=a55_0x4cef,_0x589432=await apiRequest('/client/knowledge-base/personal/'+_0xd59572+_0x387de4(0x1cb),{'method':'POST','body':{'appCode':_0x19db14,..._0x5bded4}});return _0x589432[_0x387de4(0x212)];}export async function searchKnowledgeBase(_0x5467af,_0x11a5aa){const _0x125557=a55_0x4cef,_0x4578ce=await apiRequest('/client/knowledge-base/search',{'method':_0x125557(0x1ca),'body':{'appCode':_0x5467af,'query':_0x11a5aa[_0x125557(0x23f)],..._0x11a5aa['topK']!==undefined?{'topK':_0x11a5aa[_0x125557(0x1dd)]}:{}}});return Array['isArray'](_0x4578ce[_0x125557(0x212)])?_0x4578ce['data']:[];}export async function listRuntimeSkills(_0x9267a0){const _0x10e4d8=a55_0x4cef,_0x53628d=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x9267a0['appCode'])+_0x10e4d8(0x216),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x9267a0['appCode'],_0x53628d,_0x9267a0[_0x10e4d8(0x1ec)]??_0x10e4d8(0x1dc),_0x9267a0['code']);}export async function listPersonalRuntimeSkills(_0x13d5f4){const _0x5b25a6=a55_0x4cef;return(await listRuntimeSkills({'appCode':_0x13d5f4,'scope':_0x5b25a6(0x239)}))[_0x5b25a6(0x239)];}export async function listCompanyRuntimeSkills(_0x6246ef){const _0x574660=a55_0x4cef;return(await listRuntimeSkills({'appCode':_0x6246ef,'scope':'company'}))[_0x574660(0x226)];}export async function listVisibleRuntimeSkills(_0x395fbf){const _0xe93792=a55_0x4cef;return(await listRuntimeSkills({'appCode':_0x395fbf,'scope':_0xe93792(0x1dc)}))[_0xe93792(0x1ff)];}export async function createPersonalRuntimeSkill(_0x3d0d56,_0x344096){return publishRuntimeSkill(_0x3d0d56,_0x344096);}export async function updatePersonalRuntimeSkill(_0x1d95b4,_0x500cb1,_0x7ece){const _0x1b5d53=a55_0x4cef;return publishRuntimeSkill(_0x500cb1,{..._0x7ece,'skillCode':_0x7ece[_0x1b5d53(0x225)]??_0x1d95b4});}export async function downloadRuntimeSkillPackage(_0x26ba1c,_0x4748d6,_0x6c5bc2,_0x34a5e7){const _0x3fc4f6=a55_0x4cef;void _0x26ba1c;const _0x178e0c=_0x34a5e7?_0x3fc4f6(0x214)+encodeURIComponent(_0x6c5bc2)+'/'+encodeURIComponent(_0x4748d6)+'/versions/'+encodeURIComponent(_0x34a5e7)+_0x3fc4f6(0x22e):_0x3fc4f6(0x214)+encodeURIComponent(_0x6c5bc2)+'/'+encodeURIComponent(_0x4748d6)+'/download';return skillHubBinaryRequest(_0x178e0c);}async function publishRuntimeSkill(_0x235864,_0x3f9386){const _0x80806f=a55_0x4cef,_0x54a956=new FormData();_0x54a956['set'](_0x80806f(0x1de),runtimeSkillPackageFile(_0x3f9386)),_0x54a956[_0x80806f(0x20e)](_0x80806f(0x211),_0x80806f(0x21f));const _0x10aa5f=await skillHubJsonRequest(_0x80806f(0x214)+encodeURIComponent(_0x235864)+_0x80806f(0x1da),{'method':_0x80806f(0x1ca),'body':_0x54a956});return{'appCode':_0x10aa5f['namespace']??_0x235864,'skillCode':_0x10aa5f[_0x80806f(0x206)]??_0x3f9386[_0x80806f(0x225)]??'','skillName':_0x3f9386['skillName']??_0x10aa5f[_0x80806f(0x206)]??_0x3f9386[_0x80806f(0x225)],'description':_0x3f9386[_0x80806f(0x1e2)],'scope':skillHubVisibilityToScope(_0x10aa5f[_0x80806f(0x211)])??_0x80806f(0x239),'version':_0x10aa5f[_0x80806f(0x1f6)]??_0x3f9386[_0x80806f(0x1f6)],'tags':_0x3f9386[_0x80806f(0x200)],'content':_0x3f9386[_0x80806f(0x1ea)],'files':_0x3f9386[_0x80806f(0x1e6)]};}function runtimeSkillPackageFile(_0x2b5f91){const _0x352f27=a55_0x4cef;if(!_0x2b5f91[_0x352f27(0x1ce)])throw CliErrors[_0x352f27(0x1d9)](_0x352f27(0x1e4));const _0x24e37f=Buffer[_0x352f27(0x1f0)](_0x2b5f91[_0x352f27(0x1ce)],_0x352f27(0x22f)),_0x57d39b=new Blob([_0x24e37f],{'type':_0x352f27(0x236)}),_0x142678=(_0x2b5f91['skillCode']||_0x352f27(0x213))+_0x352f27(0x1fd);if(typeof File!=='undefined')return new File([_0x57d39b],_0x142678,{'type':'application/zip'});return _0x57d39b;}function normalizeSkillHubRuntimeListResponse(_0x365cd1,_0x5b92af,_0x335bce,_0x14ed53){const _0x18ecb8=a55_0x4cef,_0x316fd5=Array[_0x18ecb8(0x223)](_0x5b92af)?_0x5b92af:Array[_0x18ecb8(0x223)](_0x5b92af?.[_0x18ecb8(0x23a)])?_0x5b92af['items']:[],_0x49d3e6=_0x14ed53?.[_0x18ecb8(0x1d1)](),_0x25157c=_0x316fd5['filter'](_0x17dd08=>!_0x49d3e6||_0x17dd08['slug']===_0x49d3e6)[_0x18ecb8(0x1fa)](skillHubRuntimeItemToRuntimeSkill)[_0x18ecb8(0x233)](_0x517d75=>Boolean(_0x517d75)),_0x3228aa=_0x25157c[_0x18ecb8(0x233)](_0x389e1d=>_0x389e1d[_0x18ecb8(0x1ec)]==='personal'),_0x14edec=_0x25157c[_0x18ecb8(0x233)](_0x26ae20=>_0x26ae20[_0x18ecb8(0x1ec)]===_0x18ecb8(0x226)),_0x359b12=_0x25157c['filter'](_0x181ca8=>_0x181ca8['scope']===_0x18ecb8(0x1c9));return{'appCode':_0x365cd1,'personal':_0x335bce===_0x18ecb8(0x226)||_0x335bce===_0x18ecb8(0x1c9)?[]:_0x3228aa,'company':_0x335bce===_0x18ecb8(0x239)||_0x335bce===_0x18ecb8(0x1c9)?[]:_0x14edec,'public':_0x335bce===_0x18ecb8(0x239)||_0x335bce===_0x18ecb8(0x226)?[]:_0x359b12,'effective':buildEffectiveRuntimeSkills(_0x3228aa,_0x14edec,_0x359b12,_0x335bce)};}function a55_0x2a7d(){const _0x5c7105=['status','skillCode','company','SkillHub\x20API\x20error:\x20','json','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Configure\x20accessKey\x20in\x20','favorite','ownerPreviewVersion','invokeSource','/download','base64','markdown','object','artifactType','filter','signal','532332bjAQFR','application/zip','appName','/execute?appCode=','personal','items','errorCode','replace','Personal\x20BFF\x20not\x20found:\x20id=','string','query','application/octet-stream','errorMsg','api-doc-generator','Knowledge-base\x20entry\x20not\x20found:\x20id=','public','POST','/update','abort','text','packageBase64','message','Download\x20failed:\x20','trim','catch','number','entries','/client/artifact/create','668164bUOIDv','Artifact\x20not\x20found:\x20id=','values','validation','/publish','apiError','user','topK','file','Toolbox\x20API\x20error','GET','namespace','description','/client/knowledge-base/personal/create','Missing\x20Skill\x20package\x20payload.','/client/dataset/query?','files','sqlCode','6ioXNRe','BFF\x20script\x20not\x20found:\x20id=','content','/client/runtime-bff/personal/create','scope','searchParams','Request\x20timeout:\x20','/client/knowledge-base/personal/list?appCode=','from','PUBLIC','newConfigFileName','name','builtin','AbortError','version','1436595cEeHkU','/client/runtime-bff/personal/list?appCode=','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','map','headlineVersion','toString','.zip','/client/bff/query/','effective','tags','success','stringify','224338QCeEUZ','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/runtime-bff/personal/','slug','/client/dataset/list','application/json','/client/knowledge-base/personal/','appCode','authRequired','arrayBuffer','4510176ADQfjM','set','msg','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','visibility','data','skill','/api/cli/v1/skills/','source','/skills','tableData','Toolbox\x20error\x20code:\x20','/client/app/my-apps','Check\x20your\x20credentials\x20and\x20try\x20again.','?appCode=','code','244417LmetVU','1166977GDMRtV','PRIVATE','summary','/client/artifact/','/client/artifact/list?','isArray'];a55_0x2a7d=function(){return _0x5c7105;};return a55_0x2a7d();}function skillHubRuntimeItemToRuntimeSkill(_0x54fa05){const _0x30ad12=a55_0x4cef,_0x39b90a=_0x54fa05[_0x30ad12(0x206)]?.[_0x30ad12(0x1d1)](),_0xc9d07a=skillHubVisibilityToScope(_0x54fa05['visibility']);if(!_0x39b90a||!_0xc9d07a)return undefined;return{'id':_0x54fa05['id'],'appCode':_0x54fa05[_0x30ad12(0x1e1)],'skillCode':_0x39b90a,'skillName':_0x54fa05['displayName']??_0x39b90a,'description':_0x54fa05[_0x30ad12(0x220)],'scope':_0xc9d07a,'version':skillHubRuntimeItemVersion(_0x54fa05),'status':_0x54fa05[_0x30ad12(0x224)]};}function skillHubVisibilityToScope(_0x58a1a4){const _0x56dbe0=a55_0x4cef;if(_0x58a1a4===_0x56dbe0(0x21f))return _0x56dbe0(0x239);if(_0x58a1a4==='NAMESPACE_ONLY')return _0x56dbe0(0x226);if(_0x58a1a4===_0x56dbe0(0x1f1))return'public';return undefined;}function skillHubRuntimeItemVersion(_0x317231){const _0x4da835=a55_0x4cef;return _0x317231['publishedVersion']?.[_0x4da835(0x1f6)]??_0x317231[_0x4da835(0x1fb)]?.[_0x4da835(0x1f6)]??_0x317231[_0x4da835(0x22c)]?.[_0x4da835(0x1f6)];}function buildEffectiveRuntimeSkills(_0x4d2052,_0x49d597,_0x104f00,_0x27312f){const _0x396ccf=a55_0x4cef;if(_0x27312f===_0x396ccf(0x239))return _0x4d2052;if(_0x27312f===_0x396ccf(0x226))return _0x49d597;if(_0x27312f==='public')return _0x104f00;const _0x5ea8d1=new Map();for(const _0x35d358 of _0x104f00){_0x5ea8d1['set'](_0x35d358[_0x396ccf(0x225)],_0x35d358);}for(const _0x1307f5 of _0x49d597){_0x5ea8d1[_0x396ccf(0x20e)](_0x1307f5[_0x396ccf(0x225)],_0x1307f5);}for(const _0x788f0d of _0x4d2052){_0x5ea8d1[_0x396ccf(0x20e)](_0x788f0d['skillCode'],_0x788f0d);}return Array[_0x396ccf(0x1f0)](_0x5ea8d1[_0x396ccf(0x1d8)]());}function normalizeRuntimeSkillListResponse(_0x2fb7e1,_0x5a386d){const _0xf6896=a55_0x4cef;if(Array[_0xf6896(0x223)](_0x5a386d)){const _0x215f5f=_0x5a386d[_0xf6896(0x233)](_0x17b1e9=>_0x17b1e9[_0xf6896(0x1ec)]===_0xf6896(0x239)),_0x1dd751=_0x5a386d['filter'](_0x1c3e04=>_0x1c3e04[_0xf6896(0x1ec)]===_0xf6896(0x226)),_0x5ea413=_0x5a386d['filter'](_0xc36566=>_0xc36566[_0xf6896(0x1ec)]===_0xf6896(0x1c9));return{'appCode':_0x2fb7e1,'personal':_0x215f5f,'company':_0x1dd751,'public':_0x5ea413,'effective':_0x5a386d[_0xf6896(0x233)](_0x32dfb0=>_0x32dfb0['scope']!==_0xf6896(0x1f4))};}return{'appCode':_0x5a386d?.[_0xf6896(0x20a)]??_0x2fb7e1,'personal':Array[_0xf6896(0x223)](_0x5a386d?.['personal'])?_0x5a386d[_0xf6896(0x239)]:[],'company':Array[_0xf6896(0x223)](_0x5a386d?.[_0xf6896(0x226)])?_0x5a386d[_0xf6896(0x226)]:[],'public':Array['isArray'](_0x5a386d?.['public'])?_0x5a386d[_0xf6896(0x1c9)]:[],'effective':Array[_0xf6896(0x223)](_0x5a386d?.['effective'])?_0x5a386d[_0xf6896(0x1ff)]:[]};}
@@ -1 +1 @@
1
- (function(_0x111b62,_0x3889a6){const _0x17d610=a48_0x90fe,_0x1b0051=_0x111b62();while(!![]){try{const _0x318884=parseInt(_0x17d610(0x1db))/0x1*(parseInt(_0x17d610(0x1dc))/0x2)+-parseInt(_0x17d610(0x1d8))/0x3*(-parseInt(_0x17d610(0x1e1))/0x4)+-parseInt(_0x17d610(0x1de))/0x5*(-parseInt(_0x17d610(0x1d7))/0x6)+parseInt(_0x17d610(0x1df))/0x7+-parseInt(_0x17d610(0x1e0))/0x8*(-parseInt(_0x17d610(0x1e3))/0x9)+parseInt(_0x17d610(0x1e6))/0xa*(parseInt(_0x17d610(0x1da))/0xb)+-parseInt(_0x17d610(0x1e4))/0xc;if(_0x318884===_0x3889a6)break;else _0x1b0051['push'](_0x1b0051['shift']());}catch(_0x347e65){_0x1b0051['push'](_0x1b0051['shift']());}}}(a48_0x55e6,0x1f446));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x46cf51){const _0x487184=a48_0x90fe;if(cache[_0x487184(0x1e2)](_0x46cf51))return cache[_0x487184(0x1d6)](_0x46cf51);const _0x2b5e95=await listDatasets(_0x46cf51),_0x17ab9e=new Map();for(const _0x11a3e4 of _0x2b5e95){const _0x4b32b7=_0x11a3e4['dbtableConfig'];_0x4b32b7?.[_0x487184(0x1d9)]!=null&&_0x17ab9e[_0x487184(0x1dd)](_0x4b32b7[_0x487184(0x1d9)],_0x4b32b7[_0x487184(0x1d3)]??_0x487184(0x1e5)+_0x4b32b7[_0x487184(0x1d9)]);}const _0x1edebc=[..._0x17ab9e[_0x487184(0x1d5)]()]['map'](([_0x3c6a6a,_0x294f0f])=>({'dbId':_0x3c6a6a,'dbName':_0x294f0f}));return cache['set'](_0x46cf51,_0x1edebc),_0x1edebc;}function a48_0x90fe(_0x23725f,_0x22a375){_0x23725f=_0x23725f-0x1d3;const _0x55e63f=a48_0x55e6();let _0x90fe94=_0x55e63f[_0x23725f];return _0x90fe94;}export async function getDbName(_0x5c7d4,_0x44f133){const _0x6fac4c=a48_0x90fe;try{const _0xafe69=await listDatabases(_0x5c7d4);return _0xafe69[_0x6fac4c(0x1d4)](_0x49ebe3=>_0x49ebe3['dbId']===_0x44f133)?.['dbName'];}catch{return undefined;}}function a48_0x55e6(){const _0x55118b=['57692ylsFjW','has','9LDubBE','9456744JnjYhN','db-','153770XErLsg','dbName','find','entries','get','593004gcOoCb','36DJGBKr','dbId','33LtIHJp','218143jhRZhC','2ivTfqm','set','5lBkmVY','1337147MgMRWo','1511416fbkfIN'];a48_0x55e6=function(){return _0x55118b;};return a48_0x55e6();}
1
+ function a56_0x12c7(){const _0x569476=['set','has','1AEvtLh','dbtableConfig','850210dWfSpG','db-','find','173187qEbTQA','dbId','dbName','3237645DWKFfZ','4JztrAK','1788bhCSQy','1354928VNVhio','11cxHKDN','1329945TWVPcS','6671FNrSzG','9495590ZVKfBM','entries'];a56_0x12c7=function(){return _0x569476;};return a56_0x12c7();}(function(_0x4d24e7,_0x989741){const _0x101ac4=a56_0x1b59,_0x1fea1e=_0x4d24e7();while(!![]){try{const _0x5f35b6=-parseInt(_0x101ac4(0x136))/0x1*(-parseInt(_0x101ac4(0x138))/0x2)+-parseInt(_0x101ac4(0x130))/0x3+-parseInt(_0x101ac4(0x12c))/0x4*(parseInt(_0x101ac4(0x12b))/0x5)+-parseInt(_0x101ac4(0x12d))/0x6*(-parseInt(_0x101ac4(0x131))/0x7)+-parseInt(_0x101ac4(0x12e))/0x8+-parseInt(_0x101ac4(0x13b))/0x9+-parseInt(_0x101ac4(0x132))/0xa*(-parseInt(_0x101ac4(0x12f))/0xb);if(_0x5f35b6===_0x989741)break;else _0x1fea1e['push'](_0x1fea1e['shift']());}catch(_0x20d9f7){_0x1fea1e['push'](_0x1fea1e['shift']());}}}(a56_0x12c7,0x5c945));function a56_0x1b59(_0x33eab1,_0x38bc9a){_0x33eab1=_0x33eab1-0x12a;const _0x12c758=a56_0x12c7();let _0x1b5913=_0x12c758[_0x33eab1];return _0x1b5913;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x14cddb){const _0x4064f1=a56_0x1b59;if(cache[_0x4064f1(0x135)](_0x14cddb))return cache['get'](_0x14cddb);const _0x450af7=await listDatasets(_0x14cddb),_0x7ee42c=new Map();for(const _0x5ee39d of _0x450af7){const _0x5e2bcb=_0x5ee39d[_0x4064f1(0x137)];_0x5e2bcb?.['dbId']!=null&&_0x7ee42c[_0x4064f1(0x134)](_0x5e2bcb[_0x4064f1(0x13c)],_0x5e2bcb[_0x4064f1(0x12a)]??_0x4064f1(0x139)+_0x5e2bcb[_0x4064f1(0x13c)]);}const _0x427a23=[..._0x7ee42c[_0x4064f1(0x133)]()]['map'](([_0x290d43,_0x5c5c0b])=>({'dbId':_0x290d43,'dbName':_0x5c5c0b}));return cache['set'](_0x14cddb,_0x427a23),_0x427a23;}export async function getDbName(_0x30c3aa,_0x57b97a){const _0x5072a2=a56_0x1b59;try{const _0x3af122=await listDatabases(_0x30c3aa);return _0x3af122[_0x5072a2(0x13a)](_0x1777e5=>_0x1777e5[_0x5072a2(0x13c)]===_0x57b97a)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x552d79,_0x358c65){const _0x1e0387=a49_0x4674,_0xf7f49f=_0x552d79();while(!![]){try{const _0x190bd3=parseInt(_0x1e0387(0xce))/0x1+-parseInt(_0x1e0387(0xcf))/0x2+parseInt(_0x1e0387(0xbe))/0x3*(parseInt(_0x1e0387(0xc7))/0x4)+-parseInt(_0x1e0387(0xcc))/0x5*(-parseInt(_0x1e0387(0xd1))/0x6)+-parseInt(_0x1e0387(0xcb))/0x7+-parseInt(_0x1e0387(0xc9))/0x8*(-parseInt(_0x1e0387(0xbf))/0x9)+parseInt(_0x1e0387(0xd4))/0xa*(-parseInt(_0x1e0387(0xbd))/0xb);if(_0x190bd3===_0x358c65)break;else _0xf7f49f['push'](_0xf7f49f['shift']());}catch(_0x27b9af){_0xf7f49f['push'](_0xf7f49f['shift']());}}}(a49_0x46fd,0x3802f));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a49_0x4674(_0x4bc7df,_0x2e9fd0){_0x4bc7df=_0x4bc7df-0xb9;const _0x46fd1e=a49_0x46fd();let _0x46741d=_0x46fd1e[_0x4bc7df];return _0x46741d;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a49_0x46fd(){const _0x23ceae=['762587PjveaL','5FAeXox','authMode','402671tARZmI','112320WqsnIu','invokeSource','824052TfdnfV','accessKey','sql','30UDGsmY','execute','getOne','env','delete','\x22.\x20','1214741mOELBp','12666ycqtlR','162zsQoGG','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','update','dataset_','isArray','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','bff','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','140tGtMXv','batchCreate','16904XbTYTa','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.'];a49_0x46fd=function(){return _0x23ceae;};return a49_0x46fd();}let _client;export function initSdkClient(_0x501da9){const _0x499aa9=a49_0x4674;_client=createClient({'appCode':_0x501da9['appCode'],'env':_0x501da9[_0x499aa9(0xba)],'authMode':_0x501da9[_0x499aa9(0xcd)],..._0x501da9[_0x499aa9(0xd2)]?{'accessKey':_0x501da9[_0x499aa9(0xd2)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x499aa9(0xd0)]}}});}function ensureClient(){const _0x56392b=a49_0x4674;if(!_client)throw new Error(_0x56392b(0xc6));return _client;}export async function executeData(_0x51bfc2,_0x433884,_0x16cc91){const _0x24811d=a49_0x4674,_0x2f95ce=ensureClient(),_0x4ef8c7=_0x24811d(0xc2)+_0x51bfc2,_0x3ad0a2=_0x2f95ce['models'][_0x4ef8c7];if(!_0x3ad0a2||typeof _0x3ad0a2[_0x433884]!=='function')throw new Error(_0x24811d(0xc0)+_0x433884+_0x24811d(0xbc)+_0x24811d(0xca));if(_0x433884===_0x24811d(0xc8))return _0x3ad0a2[_0x24811d(0xc8)](parseBatchCreateItemsFromParams(_0x16cc91));const _0x5ad462=_0x16cc91!==undefined&&_0x16cc91!==null&&!Array[_0x24811d(0xc3)](_0x16cc91)?_0x16cc91:{};switch(_0x433884){case'getOne':{const _0x279534=_0x5ad462['id'];if(_0x279534===undefined||_0x279534===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3ad0a2[_0x24811d(0xb9)](_0x279534);}case _0x24811d(0xc1):{const {id:_0x505b50,..._0x390544}=_0x5ad462;if(_0x505b50===undefined||_0x505b50===null)throw new Error(_0x24811d(0xc4));return _0x3ad0a2['update'](_0x505b50,_0x390544);}case _0x24811d(0xbb):{const _0x49a9a0=_0x5ad462['id'];if(_0x49a9a0===undefined||_0x49a9a0===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x3ad0a2[_0x24811d(0xbb)](_0x49a9a0);}default:return _0x3ad0a2[_0x433884](_0x5ad462);}}export async function executeSdkSql(_0x153825,_0x3dd2f7){const _0x34608c=a49_0x4674,_0x163f38=ensureClient();return _0x163f38[_0x34608c(0xd3)][_0x34608c(0xd5)]({'sqlCode':_0x153825,'params':_0x3dd2f7});}export async function executeSdkBff(_0x487218,_0x2d8f53){const _0x377151=a49_0x4674,_0x2b8dbf=ensureClient();return _0x2b8dbf[_0x377151(0xc5)][_0x377151(0xd5)]({'scriptName':_0x487218,'params':_0x2d8f53});}
1
+ (function(_0x58c1b5,_0x35cd12){const _0x5f2e60=a57_0x2985,_0x284b19=_0x58c1b5();while(!![]){try{const _0x47a99d=-parseInt(_0x5f2e60(0x200))/0x1*(parseInt(_0x5f2e60(0x203))/0x2)+parseInt(_0x5f2e60(0x206))/0x3*(-parseInt(_0x5f2e60(0x1fc))/0x4)+parseInt(_0x5f2e60(0x1e7))/0x5*(parseInt(_0x5f2e60(0x1f9))/0x6)+parseInt(_0x5f2e60(0x1e8))/0x7+parseInt(_0x5f2e60(0x201))/0x8+-parseInt(_0x5f2e60(0x205))/0x9+parseInt(_0x5f2e60(0x1f2))/0xa;if(_0x47a99d===_0x35cd12)break;else _0x284b19['push'](_0x284b19['shift']());}catch(_0x19c878){_0x284b19['push'](_0x284b19['shift']());}}}(a57_0x1149,0x8cdae));function a57_0x2985(_0x13287d,_0x1b7adb){_0x13287d=_0x13287d-0x1e5;const _0x114928=a57_0x1149();let _0x298558=_0x114928[_0x13287d];return _0x298558;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x55b5c7){const _0x3bbd3f=a57_0x2985;_client=createClient({'appCode':_0x55b5c7['appCode'],'env':_0x55b5c7['env'],'authMode':_0x55b5c7[_0x3bbd3f(0x202)],..._0x55b5c7[_0x3bbd3f(0x1f8)]?{'accessKey':_0x55b5c7[_0x3bbd3f(0x1f8)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3bbd3f(0x1f6)]}}});}function a57_0x1149(){const _0x55c7c3=['delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','\x22.\x20','trim','aggregate','getOne','validation','5745660kBDZFy',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','dataset_','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','invokeSource','models','accessKey','60TEPMkM','field','sql','152WWeLBt','data\x20aggregate\x20--params.aggregate[','function','execute','1103UeNDXc','6834096WOIrEo','authMode','412Jweujs','batchCreate','330993VLNqUp','84828vcrKph',']\x20must\x20be\x20an\x20object.','isArray','update','bff','184045bdageT','829549tIQwNW','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','map','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27'];a57_0x1149=function(){return _0x55c7c3;};return a57_0x1149();}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x2f8e77){const _0x4f7815=a57_0x2985,_0x317163=_0x2f8e77[_0x4f7815(0x1ef)];if(_0x317163===undefined)return _0x2f8e77;if(!Array[_0x4f7815(0x208)](_0x317163))throw CliErrors[_0x4f7815(0x1f1)](_0x4f7815(0x1e9));return{..._0x2f8e77,'aggregate':_0x317163[_0x4f7815(0x1ea)]((_0x3cc1e7,_0x30bbda)=>{const _0x25ac05=_0x4f7815;if(!_0x3cc1e7||typeof _0x3cc1e7!=='object'||Array['isArray'](_0x3cc1e7))throw CliErrors[_0x25ac05(0x1f1)](_0x25ac05(0x1fd)+_0x30bbda+_0x25ac05(0x207));const _0x2467b5=_0x3cc1e7['column']??_0x3cc1e7[_0x25ac05(0x1fa)];if(typeof _0x2467b5!=='string'||_0x2467b5[_0x25ac05(0x1ee)]()==='')throw CliErrors[_0x25ac05(0x1f1)](_0x25ac05(0x1fd)+_0x30bbda+_0x25ac05(0x1f3));const _0x47e70d={..._0x3cc1e7,'column':_0x2467b5};return delete _0x47e70d[_0x25ac05(0x1fa)],_0x47e70d;})};}export async function executeData(_0x490b23,_0x139b38,_0x37eb31){const _0x339104=a57_0x2985,_0x547af7=ensureClient(),_0x1db719=_0x339104(0x1f4)+_0x490b23,_0x283da8=_0x547af7[_0x339104(0x1f7)][_0x1db719];if(!_0x283da8||typeof _0x283da8[_0x139b38]!==_0x339104(0x1fe))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x139b38+_0x339104(0x1ed)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x139b38===_0x339104(0x204))return _0x283da8[_0x339104(0x204)](parseBatchCreateItemsFromParams(_0x37eb31));const _0x55b045=_0x37eb31!==undefined&&_0x37eb31!==null&&!Array[_0x339104(0x208)](_0x37eb31)?_0x37eb31:{};switch(_0x139b38){case _0x339104(0x1f0):{const _0x4b1a9d=_0x55b045['id'];if(_0x4b1a9d===undefined||_0x4b1a9d===null)throw new Error(_0x339104(0x1eb));return _0x283da8[_0x339104(0x1f0)](_0x4b1a9d);}case _0x339104(0x1e5):{const {id:_0x1866db,..._0x9c6cf9}=_0x55b045;if(_0x1866db===undefined||_0x1866db===null)throw new Error(_0x339104(0x1f5));return _0x283da8[_0x339104(0x1e5)](_0x1866db,_0x9c6cf9);}case'delete':{const _0x3d0aa7=_0x55b045['id'];if(_0x3d0aa7===undefined||_0x3d0aa7===null)throw new Error(_0x339104(0x1ec));return _0x283da8['delete'](_0x3d0aa7);}case _0x339104(0x1ef):return _0x283da8[_0x339104(0x1ef)](normalizeAggregateParams(_0x55b045));default:return _0x283da8[_0x139b38](_0x55b045);}}export async function executeSdkSql(_0xa384cb,_0x196360){const _0x502ab5=a57_0x2985,_0x4ede72=ensureClient();return _0x4ede72[_0x502ab5(0x1fb)][_0x502ab5(0x1ff)]({'sqlCode':_0xa384cb,'params':_0x196360});}export async function executeSdkBff(_0x52ca5b,_0x402a99){const _0x43cf93=a57_0x2985,_0x4406d0=ensureClient();return _0x4406d0[_0x43cf93(0x1e6)][_0x43cf93(0x1ff)]({'scriptName':_0x52ca5b,'params':_0x402a99});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a50_0x3d8a76=a50_0x5d77;function a50_0x5d77(_0x5ee6a8,_0xb1d671){_0x5ee6a8=_0x5ee6a8-0x162;const _0x3dab3b=a50_0x3dab();let _0x5d77fd=_0x3dab3b[_0x5ee6a8];return _0x5d77fd;}(function(_0xe39d9a,_0x502fd3){const _0x27b08e=a50_0x5d77,_0x4cf87f=_0xe39d9a();while(!![]){try{const _0x2e09c6=-parseInt(_0x27b08e(0x164))/0x1+-parseInt(_0x27b08e(0x16c))/0x2*(parseInt(_0x27b08e(0x16b))/0x3)+-parseInt(_0x27b08e(0x16e))/0x4*(-parseInt(_0x27b08e(0x172))/0x5)+-parseInt(_0x27b08e(0x162))/0x6*(-parseInt(_0x27b08e(0x16d))/0x7)+-parseInt(_0x27b08e(0x175))/0x8*(-parseInt(_0x27b08e(0x169))/0x9)+parseInt(_0x27b08e(0x16f))/0xa*(-parseInt(_0x27b08e(0x171))/0xb)+parseInt(_0x27b08e(0x163))/0xc*(parseInt(_0x27b08e(0x168))/0xd);if(_0x2e09c6===_0x502fd3)break;else _0x4cf87f['push'](_0x4cf87f['shift']());}catch(_0x5b1ff7){_0x4cf87f['push'](_0x4cf87f['shift']());}}}(a50_0x3dab,0xc51bb));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a50_0x3dab(){const _0x2255e0=['105HkPDjP','164dSvUgT','10OfWfGj','\x20auth\x20login`.','10552509dRuVTs','195105tJeHuT','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20or\x20run\x20`','3136DKWZJw','281124SiiFdF','876NxVmIS','1499147QLuZBR','Configure\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20file.','11089VhCROI','21951fpjKrS','newConfigFileName','3pqLcQH','110414pvCAbL'];a50_0x3dab=function(){return _0x2255e0;};return a50_0x3dab();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a50_0x3d8a76(0x165)+PRODUCT_CONFIG[a50_0x3d8a76(0x16a)]+a50_0x3d8a76(0x174)+CLI_BIN_NAME+a50_0x3d8a76(0x170),'configMissingHint':a50_0x3d8a76(0x166)+PRODUCT_CONFIG[a50_0x3d8a76(0x16a)]+'.','notInProjectHint':a50_0x3d8a76(0x173)+PRODUCT_CONFIG[a50_0x3d8a76(0x16a)]+a50_0x3d8a76(0x167)});
1
+ const a58_0x32a1ca=a58_0x4b18;(function(_0x46b11a,_0x2354f7){const _0x57fad5=a58_0x4b18,_0x333a98=_0x46b11a();while(!![]){try{const _0x4b3e56=-parseInt(_0x57fad5(0x137))/0x1*(-parseInt(_0x57fad5(0x13c))/0x2)+-parseInt(_0x57fad5(0x141))/0x3+parseInt(_0x57fad5(0x139))/0x4*(parseInt(_0x57fad5(0x133))/0x5)+-parseInt(_0x57fad5(0x13b))/0x6+parseInt(_0x57fad5(0x13d))/0x7*(-parseInt(_0x57fad5(0x134))/0x8)+-parseInt(_0x57fad5(0x13f))/0x9+parseInt(_0x57fad5(0x13e))/0xa;if(_0x4b3e56===_0x2354f7)break;else _0x333a98['push'](_0x333a98['shift']());}catch(_0x307d85){_0x333a98['push'](_0x333a98['shift']());}}}(a58_0x2aca,0x8244c));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a58_0x4b18(_0x225a3e,_0x45d5c0){_0x225a3e=_0x225a3e-0x133;const _0x2acad3=a58_0x2aca();let _0x4b1819=_0x2acad3[_0x225a3e];return _0x4b1819;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a58_0x32a1ca(0x140)+PRODUCT_CONFIG[a58_0x32a1ca(0x136)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a58_0x32a1ca(0x13a),'configMissingHint':a58_0x32a1ca(0x138)+PRODUCT_CONFIG[a58_0x32a1ca(0x136)]+'.','notInProjectHint':a58_0x32a1ca(0x135)+PRODUCT_CONFIG[a58_0x32a1ca(0x136)]+'\x20file.'});function a58_0x2aca(){const _0x379d91=['6188371cvqpjZ','30442750cBeGna','8657766rbRraD','Configure\x20accessKey\x20in\x20','2506596ZcJJTH','5vADQkW','8Efmkdl','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','newConfigFileName','1xIjbHh','Set\x20appcode\x20via\x20--appcode\x20or\x20','1899628uPGyYZ','\x20auth\x20login`.','1863714hBytUT','13152eIKRMX'];a58_0x2aca=function(){return _0x379d91;};return a58_0x2aca();}
@@ -1 +1 @@
1
- function a51_0x72a7(){var _0xc8ca3a=['7579560anYpmG','10473392ClmCBG','2161764JNacNE','31316391dKrmuq','28590LwSYjf','3uMVwOQ','959KSdTnB','179664YjWqSA','3219308KDrZpM'];a51_0x72a7=function(){return _0xc8ca3a;};return a51_0x72a7();}(function(_0x322dbb,_0x37b37f){var _0x3b3b4b=a51_0x46bd,_0xcc073=_0x322dbb();while(!![]){try{var _0x33a36d=parseInt(_0x3b3b4b(0xba))/0x1+parseInt(_0x3b3b4b(0xb5))/0x2+parseInt(_0x3b3b4b(0xb8))/0x3*(parseInt(_0x3b3b4b(0xb2))/0x4)+parseInt(_0x3b3b4b(0xb3))/0x5+-parseInt(_0x3b3b4b(0xb7))/0x6*(parseInt(_0x3b3b4b(0xb9))/0x7)+parseInt(_0x3b3b4b(0xb4))/0x8+-parseInt(_0x3b3b4b(0xb6))/0x9;if(_0x33a36d===_0x37b37f)break;else _0xcc073['push'](_0xcc073['shift']());}catch(_0x328929){_0xcc073['push'](_0xcc073['shift']());}}}(a51_0x72a7,0xb9127));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a51_0x5b50a9}from'@lovrabet/cli-framework';function a51_0x46bd(_0x37d929,_0x177300){_0x37d929=_0x37d929-0xb2;var _0x72a7ab=a51_0x72a7();var _0x46bd6c=_0x72a7ab[_0x37d929];return _0x46bd6c;}export function buildAllFlags(_0xcc6819){return a51_0x5b50a9(_0xcc6819,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a59_0x1e87(){var _0x5d7dae=['9yWtmWK','37770579HulatQ','830088JOjdiv','22840VDoaDd','6150315nlnvFE','3563PvmtSc','4VcZmwb','1550298TLoVMT','3axgDiB','273640oZMEjh','12891580rMnenZ'];a59_0x1e87=function(){return _0x5d7dae;};return a59_0x1e87();}(function(_0x39c9ed,_0x12b71d){var _0x12aa0d=a59_0x16bd,_0x1eb4fe=_0x39c9ed();while(!![]){try{var _0x1d1ee8=-parseInt(_0x12aa0d(0x9a))/0x1+-parseInt(_0x12aa0d(0x98))/0x2*(parseInt(_0x12aa0d(0x99))/0x3)+-parseInt(_0x12aa0d(0x97))/0x4*(-parseInt(_0x12aa0d(0x95))/0x5)+-parseInt(_0x12aa0d(0x93))/0x6+-parseInt(_0x12aa0d(0x96))/0x7*(parseInt(_0x12aa0d(0x94))/0x8)+-parseInt(_0x12aa0d(0x91))/0x9*(parseInt(_0x12aa0d(0x9b))/0xa)+parseInt(_0x12aa0d(0x92))/0xb;if(_0x1d1ee8===_0x12b71d)break;else _0x1eb4fe['push'](_0x1eb4fe['shift']());}catch(_0xeab89a){_0x1eb4fe['push'](_0x1eb4fe['shift']());}}}(a59_0x1e87,0xb3436));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a59_0x156089}from'@lovrabet/cli-framework';function a59_0x16bd(_0x57666c,_0x28351c){_0x57666c=_0x57666c-0x91;var _0x1e87aa=a59_0x1e87();var _0x16bd55=_0x1e87aa[_0x57666c];return _0x16bd55;}export function buildAllFlags(_0x33cfec){return a59_0x156089(_0x33cfec,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- (function(_0x56cbc6,_0x2cd076){const _0x4c72d9=a52_0x4ea3,_0x406007=_0x56cbc6();while(!![]){try{const _0x3920af=-parseInt(_0x4c72d9(0xf0))/0x1*(-parseInt(_0x4c72d9(0xf6))/0x2)+parseInt(_0x4c72d9(0xed))/0x3*(-parseInt(_0x4c72d9(0xea))/0x4)+-parseInt(_0x4c72d9(0xec))/0x5+parseInt(_0x4c72d9(0xf2))/0x6+-parseInt(_0x4c72d9(0xf5))/0x7+parseInt(_0x4c72d9(0xf1))/0x8*(parseInt(_0x4c72d9(0xee))/0x9)+parseInt(_0x4c72d9(0xf3))/0xa*(-parseInt(_0x4c72d9(0xef))/0xb);if(_0x3920af===_0x2cd076)break;else _0x406007['push'](_0x406007['shift']());}catch(_0x47edab){_0x406007['push'](_0x406007['shift']());}}}(a52_0x52a4,0x4a780));function a52_0x52a4(){const _0x11a5eb=['1616616lLlTxH','230KPyfPT','body','1013250ivbdKg','606278LFaXTj','580BCQxnC','description','2705370ToVIdb','1830vrdbjk','9YxsFBO','122507bvnRVs','2YQEBAK','3677880MxStEF'];a52_0x52a4=function(){return _0x11a5eb;};return a52_0x52a4();}function a52_0x4ea3(_0x546e26,_0x5d79a2){_0x546e26=_0x546e26-0xea;const _0x52a4f6=a52_0x52a4();let _0x4ea317=_0x52a4f6[_0x546e26];return _0x4ea317;}export function dryRun(_0x21c295,_0x3b1b1b){const _0x48f178={'method':_0x21c295,'url':_0x3b1b1b},_0x4aa855={'body'(_0x210497){const _0x1ae6d6=a52_0x4ea3;return _0x48f178[_0x1ae6d6(0xf4)]=_0x210497,_0x4aa855;},'description'(_0x1afb93){const _0x3819ce=a52_0x4ea3;return _0x48f178[_0x3819ce(0xeb)]=_0x1afb93,_0x4aa855;},'build'(){return{..._0x48f178};}};return _0x4aa855;}
1
+ (function(_0x187119,_0x22778f){const _0x34aba8=a60_0x1e02,_0x563aec=_0x187119();while(!![]){try{const _0x4f416d=-parseInt(_0x34aba8(0xe2))/0x1+-parseInt(_0x34aba8(0xd8))/0x2+-parseInt(_0x34aba8(0xde))/0x3+parseInt(_0x34aba8(0xd9))/0x4*(-parseInt(_0x34aba8(0xdc))/0x5)+parseInt(_0x34aba8(0xdd))/0x6*(-parseInt(_0x34aba8(0xe0))/0x7)+parseInt(_0x34aba8(0xda))/0x8*(-parseInt(_0x34aba8(0xdb))/0x9)+parseInt(_0x34aba8(0xe1))/0xa;if(_0x4f416d===_0x22778f)break;else _0x563aec['push'](_0x563aec['shift']());}catch(_0x351a59){_0x563aec['push'](_0x563aec['shift']());}}}(a60_0x7b43,0x8bdf1));function a60_0x7b43(){const _0x1b7d79=['367044ZiBFPN','body','499331kfqYNd','33178560AOLisu','952650JlKaSq','description','1790556bkjMMS','20588JfnmQQ','8lYcZrK','1505241uoovGm','105fKSUKQ','42bVQIeE'];a60_0x7b43=function(){return _0x1b7d79;};return a60_0x7b43();}function a60_0x1e02(_0x109d6d,_0x30b3ca){_0x109d6d=_0x109d6d-0xd7;const _0x7b434c=a60_0x7b43();let _0x1e0226=_0x7b434c[_0x109d6d];return _0x1e0226;}export function dryRun(_0x96524c,_0x371b96){const _0x4cfcfd={'method':_0x96524c,'url':_0x371b96},_0x1e67aa={'body'(_0x24a5a1){const _0x4e0784=a60_0x1e02;return _0x4cfcfd[_0x4e0784(0xdf)]=_0x24a5a1,_0x1e67aa;},'description'(_0x47ba4d){const _0x400102=a60_0x1e02;return _0x4cfcfd[_0x400102(0xd7)]=_0x47ba4d,_0x1e67aa;},'build'(){return{..._0x4cfcfd};}};return _0x1e67aa;}
@@ -1 +1 @@
1
- const a53_0x5687ad=a53_0x5ba3;(function(_0x1bb27a,_0x495820){const _0x41f65c=a53_0x5ba3,_0x325308=_0x1bb27a();while(!![]){try{const _0x28a133=parseInt(_0x41f65c(0xd9))/0x1+parseInt(_0x41f65c(0xd0))/0x2+parseInt(_0x41f65c(0xd8))/0x3*(-parseInt(_0x41f65c(0xda))/0x4)+-parseInt(_0x41f65c(0xd6))/0x5*(-parseInt(_0x41f65c(0xdb))/0x6)+-parseInt(_0x41f65c(0xd5))/0x7*(-parseInt(_0x41f65c(0xd1))/0x8)+-parseInt(_0x41f65c(0xd4))/0x9*(-parseInt(_0x41f65c(0xd2))/0xa)+-parseInt(_0x41f65c(0xd3))/0xb;if(_0x28a133===_0x495820)break;else _0x325308['push'](_0x325308['shift']());}catch(_0x373172){_0x325308['push'](_0x325308['shift']());}}}(a53_0x5ce3,0x96b32));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a53_0x5ba3(_0x8c0396,_0x183133){_0x8c0396=_0x8c0396-0xd0;const _0x5ce34f=a53_0x5ce3();let _0x5ba3e7=_0x5ce34f[_0x8c0396];return _0x5ba3e7;}function a53_0x5ce3(){const _0x2ce4e2=['560wUEdev','5KiNBHB','validateFlags','633345UOYSEJ','420947oCATfZ','4wOcOup','2248338nadRmQ','1528252JBTbSu','31072mlKLrn','80PPfaVB','18291933MTtUqA','698364YKaeMT'];a53_0x5ce3=function(){return _0x2ce4e2;};return a53_0x5ce3();}export const validateFlags=helpers[a53_0x5687ad(0xd7)];
1
+ const a61_0x1dc483=a61_0x2798;(function(_0x30a4f1,_0x28401c){const _0x157614=a61_0x2798,_0x295260=_0x30a4f1();while(!![]){try{const _0x28df3f=parseInt(_0x157614(0x16d))/0x1*(parseInt(_0x157614(0x16c))/0x2)+parseInt(_0x157614(0x16e))/0x3+-parseInt(_0x157614(0x171))/0x4*(parseInt(_0x157614(0x172))/0x5)+parseInt(_0x157614(0x170))/0x6*(-parseInt(_0x157614(0x169))/0x7)+-parseInt(_0x157614(0x16b))/0x8+parseInt(_0x157614(0x166))/0x9*(parseInt(_0x157614(0x167))/0xa)+-parseInt(_0x157614(0x16a))/0xb*(-parseInt(_0x157614(0x16f))/0xc);if(_0x28df3f===_0x28401c)break;else _0x295260['push'](_0x295260['shift']());}catch(_0x2315d7){_0x295260['push'](_0x295260['shift']());}}}(a61_0x51ca,0xceedd));import{createFlagHelpers}from'@lovrabet/cli-framework';function a61_0x2798(_0x3cd592,_0x484add){_0x3cd592=_0x3cd592-0x166;const _0x51ca94=a61_0x51ca();let _0x2798b3=_0x51ca94[_0x3cd592];return _0x2798b3;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a61_0x51ca(){const _0x50247e=['1887156HGWyBp','13707084SdPFqd','4493364UHJbAp','46628JJUvaS','50SKmomc','7515171TvSCQE','10HudWDq','parseFlags','14SYvjij','11GYBaoU','11856200DMiiix','1337636WGobSC','2VBRYrc'];a61_0x51ca=function(){return _0x50247e;};return a61_0x51ca();}export const parseFlags=helpers[a61_0x1dc483(0x168)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a54_0x33b453=a54_0xc710;(function(_0x4b7ff8,_0x42ddec){const _0x1167b5=a54_0xc710,_0x557f42=_0x4b7ff8();while(!![]){try{const _0x5c90c1=-parseInt(_0x1167b5(0x8a))/0x1+parseInt(_0x1167b5(0x92))/0x2+-parseInt(_0x1167b5(0x8b))/0x3*(-parseInt(_0x1167b5(0x89))/0x4)+-parseInt(_0x1167b5(0x91))/0x5+-parseInt(_0x1167b5(0x93))/0x6+-parseInt(_0x1167b5(0x94))/0x7+parseInt(_0x1167b5(0x8c))/0x8;if(_0x5c90c1===_0x42ddec)break;else _0x557f42['push'](_0x557f42['shift']());}catch(_0x4b53c0){_0x557f42['push'](_0x557f42['shift']());}}}(a54_0x39c4,0xb810e));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3dd936=>serviceGroups[a54_0x33b453(0x8f)](_0x3dd936),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[a54_0x33b453(0x8e)]+'\x20or\x20--appcode).'});function a54_0xc710(_0x4394dd,_0x545cc5){_0x4394dd=_0x4394dd-0x89;const _0x39c4f3=a54_0x39c4();let _0xc71069=_0x39c4f3[_0x4394dd];return _0xc71069;}export function generateCommandHelp(_0x48a743){const _0x50845a=a54_0x33b453;return generators[_0x50845a(0x8d)](_0x48a743);}export const generateServiceHelp=generators[a54_0x33b453(0x90)];export const generateFullHelp=generators['generateFullHelp'];function a54_0x39c4(){const _0x246b82=['3716517RlvprF','2182196INVzwP','965594LjCcWH','3yExRRR','21678264byAuAh','generateCommandHelp','newConfigFileName','get','generateServiceHelp','501230KgYUTL','1182914NzsEWk','8976504iUtliQ'];a54_0x39c4=function(){return _0x246b82;};return a54_0x39c4();}
1
+ (function(_0x3bc352,_0x1c17ba){const _0x267e2e=a62_0x3a64,_0x3af6a0=_0x3bc352();while(!![]){try{const _0x48a612=-parseInt(_0x267e2e(0x177))/0x1*(-parseInt(_0x267e2e(0x178))/0x2)+parseInt(_0x267e2e(0x176))/0x3+parseInt(_0x267e2e(0x179))/0x4*(-parseInt(_0x267e2e(0x17b))/0x5)+-parseInt(_0x267e2e(0x17c))/0x6+parseInt(_0x267e2e(0x171))/0x7+-parseInt(_0x267e2e(0x170))/0x8+parseInt(_0x267e2e(0x16f))/0x9;if(_0x48a612===_0x1c17ba)break;else _0x3af6a0['push'](_0x3af6a0['shift']());}catch(_0x23aa41){_0x3af6a0['push'](_0x3af6a0['shift']());}}}(a62_0x4826,0x3a4e6));function a62_0x4826(){const _0x1df85c=['2407762kSrzWf','map','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','has','425163uezate','124nTkToC','3206IibTvc','410396pYeKjr','generateFullHelp','15VtilgL','1653054rXDTwk','newConfigFileName','service','3254148fVxQUh','1791224BFhedD'];a62_0x4826=function(){return _0x1df85c;};return a62_0x4826();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x368b59=a62_0x3a64;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':[...serviceRegistry,...safeListDynamicServiceEntries()],'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x368b59(0x173)+PRODUCT_CONFIG[_0x368b59(0x17d)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x526b41){return createGenerators()['generateCommandHelp'](_0x526b41);}export function generateServiceHelp(_0x5bbb9a){const _0x35fcfa=a62_0x3a64;return createGenerators()[_0x35fcfa(0x174)](_0x5bbb9a);}export function generateFullHelp(){const _0x534d41=a62_0x3a64;return createGenerators()[_0x534d41(0x17a)]();}function getAnyServiceEntry(_0x1fb538){const _0x2bcd27=getServiceEntry(_0x1fb538);if(_0x2bcd27)return _0x2bcd27;try{return getDynamicServiceEntry(_0x1fb538);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1c3cfb){const _0x4ea909=serviceGroups['get'](_0x1c3cfb);if(_0x4ea909)return _0x4ea909;try{return getDynamicServiceDefinitions(_0x1c3cfb);}catch{return undefined;}}function a62_0x3a64(_0x402c15,_0x4ab45c){_0x402c15=_0x402c15-0x16f;const _0x4826ba=a62_0x4826();let _0x3a64bc=_0x4826ba[_0x402c15];return _0x3a64bc;}function safeListDynamicServiceEntries(){const _0x3f67e4=a62_0x3a64,_0x2429aa=new Set(serviceRegistry[_0x3f67e4(0x172)](_0x195e4b=>_0x195e4b[_0x3f67e4(0x17e)]));try{return listDynamicServiceEntries()['filter'](_0x32c4ac=>!_0x2429aa[_0x3f67e4(0x175)](_0x32c4ac['service']));}catch{return[];}}