@lovrabet/lovrabet-cli 2.1.7-beta.4 → 2.1.7

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 (112) 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 -1
  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/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/init.js +1 -1
  31. package/lib/commands/kb/index.js +1 -1
  32. package/lib/commands/logs/index.js +1 -1
  33. package/lib/commands/personal-bff/index.js +1 -1
  34. package/lib/commands/registry.js +1 -1
  35. package/lib/commands/schema.js +1 -1
  36. package/lib/commands/service/dynamic.js +1 -1
  37. package/lib/commands/service/index.js +1 -1
  38. package/lib/commands/service/registry.js +1 -1
  39. package/lib/commands/skill/commands/create.js +1 -1
  40. package/lib/commands/skill/commands/install.js +1 -1
  41. package/lib/commands/skill/commands/list.js +1 -1
  42. package/lib/commands/skill/commands/push.js +1 -1
  43. package/lib/commands/skill/commands/validate.js +1 -1
  44. package/lib/commands/skill/flags.js +1 -1
  45. package/lib/commands/skill/index.js +1 -1
  46. package/lib/commands/skill/manifest-helpers.js +1 -1
  47. package/lib/commands/skill/push-retarget.js +1 -1
  48. package/lib/commands/skill/scopes.js +1 -1
  49. package/lib/commands/skill/summary.js +1 -1
  50. package/lib/commands/skill/templates.js +1 -1
  51. package/lib/commands/skill/validate.js +1 -1
  52. package/lib/commands/sql/detail.js +1 -1
  53. package/lib/commands/sql/exec.js +1 -1
  54. package/lib/commands/sql/index.js +1 -1
  55. package/lib/commands/update.js +1 -1
  56. package/lib/commands/workspace/index.js +1 -1
  57. package/lib/config/schema.js +1 -1
  58. package/lib/constant/app.js +1 -1
  59. package/lib/constant/auth-mode.js +1 -1
  60. package/lib/constant/cli.js +1 -1
  61. package/lib/constant/defaults.js +1 -1
  62. package/lib/constant/distribution.js +1 -1
  63. package/lib/constant/domain.js +1 -1
  64. package/lib/constant/env.js +1 -1
  65. package/lib/constant/output.js +1 -1
  66. package/lib/constant/product.js +1 -1
  67. package/lib/constant/risk.js +1 -1
  68. package/lib/constant/url.js +1 -1
  69. package/lib/context.js +1 -1
  70. package/lib/core/api-client.js +1 -1
  71. package/lib/core/db-resolver.js +1 -1
  72. package/lib/core/sdk-client.js +1 -1
  73. package/lib/errors.js +1 -1
  74. package/lib/framework/build-all-flags.js +1 -1
  75. package/lib/framework/dryrun.js +1 -1
  76. package/lib/framework/flags.js +1 -1
  77. package/lib/framework/help.js +1 -1
  78. package/lib/framework/index.js +1 -1
  79. package/lib/framework/output.js +1 -1
  80. package/lib/framework/preparse.js +1 -1
  81. package/lib/framework/response.js +1 -1
  82. package/lib/framework/runner-confirmation.js +1 -1
  83. package/lib/framework/runner-error.js +1 -1
  84. package/lib/framework/runner.js +1 -1
  85. package/lib/framework/schema-export.js +1 -1
  86. package/lib/framework/service-order.js +1 -0
  87. package/lib/framework/types.js +1 -1
  88. package/lib/generated/build-info.js +1 -1
  89. package/lib/help.js +1 -1
  90. package/lib/skills/npx-skills-add.js +1 -1
  91. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  92. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  93. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  94. package/lib/skills/runtime-skill-sync/links.js +1 -1
  95. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  96. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  97. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  98. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  99. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  100. package/lib/skills/runtime-skill-sync/push.js +1 -1
  101. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  103. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  104. package/lib/skills/runtime-skill-sync.js +1 -1
  105. package/lib/utils/apply-jq-filter.js +1 -1
  106. package/lib/utils/logger.js +1 -1
  107. package/lib/utils/params.js +1 -1
  108. package/lib/utils/platform.js +1 -1
  109. package/lib/utils/update-notice.js +1 -1
  110. package/lib/utils/version.js +1 -1
  111. package/lib/utils/write-cli-side-channel.js +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- const a56_0x31326f=a56_0x53d7;(function(_0x9e5e42,_0x475956){const _0x359cd4=a56_0x53d7,_0x73e8e6=_0x9e5e42();while(!![]){try{const _0x3c3723=-parseInt(_0x359cd4(0x1e0))/0x1*(-parseInt(_0x359cd4(0x1e4))/0x2)+-parseInt(_0x359cd4(0x1df))/0x3+-parseInt(_0x359cd4(0x1d4))/0x4+-parseInt(_0x359cd4(0x1d8))/0x5+-parseInt(_0x359cd4(0x1f2))/0x6*(parseInt(_0x359cd4(0x1ea))/0x7)+-parseInt(_0x359cd4(0x1ed))/0x8+parseInt(_0x359cd4(0x1dc))/0x9*(parseInt(_0x359cd4(0x1d5))/0xa);if(_0x3c3723===_0x475956)break;else _0x73e8e6['push'](_0x73e8e6['shift']());}catch(_0x148200){_0x73e8e6['push'](_0x73e8e6['shift']());}}}(a56_0x290a,0x50b55));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a56_0x53d7(_0x31785f,_0x2d13d4){_0x31785f=_0x31785f-0x1d4;const _0x290a04=a56_0x290a();let _0x53d71b=_0x290a04[_0x31785f];return _0x53d71b;}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a56_0x31326f(0x1e2),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1d6)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1da)],'importable':!![]},'pageSize':{'description':a56_0x31326f(0x1e5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a56_0x31326f(0x1ef),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x31326f(0x1d9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x31326f(0x1e3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a56_0x31326f(0x1d7),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x31326f(0x1e8)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x407499])=>_0x407499[a56_0x31326f(0x1db)])[a56_0x31326f(0x1dd)](([_0x48bc2e])=>_0x48bc2e));export const CONFIG_ENUM_VALUES=Object[a56_0x31326f(0x1e9)](Object[a56_0x31326f(0x1de)](CONFIG_FIELD_SCHEMAS)[a56_0x31326f(0x1e6)](([,_0x41d1f1])=>_0x41d1f1[a56_0x31326f(0x1f1)])[a56_0x31326f(0x1dd)](([_0x3f6cdf,_0x2df5cf])=>[_0x3f6cdf,[..._0x2df5cf[a56_0x31326f(0x1f1)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a56_0x31326f(0x1de)](CONFIG_FIELD_SCHEMAS)[a56_0x31326f(0x1e6)](([,_0x3944dd])=>_0x3944dd[a56_0x31326f(0x1e7)])['map'](([_0x344e3b])=>_0x344e3b);export function getConfigFieldSchema(_0x1280f2){return CONFIG_FIELD_SCHEMAS[_0x1280f2];}export function getConfigEnumValues(_0x177f58){const _0x4abd5f=a56_0x31326f;return getConfigFieldSchema(_0x177f58)?.[_0x4abd5f(0x1f1)];}export function getConfigDefaultValue(_0x53e0be){const _0xaf3f3e=a56_0x31326f;return getConfigFieldSchema(_0x53e0be)?.[_0xaf3f3e(0x1e1)];}function a56_0x290a(){const _0x868bba=['defaultValue','Target\x20environment','Access\x20key\x20(client-ak\x20auth)','2UzSJHY','Default\x20page\x20size','filter','importable','locale','fromEntries','35qKlNuS','legacyCompatOnly','join','4728664OYAzmc','Config\x20key.\x20Top-level:\x20','Override\x20user\x20domain','has','enumValues','451650CKVpAq','1629760NcEQOQ','190HnxQGz','env','Locale','3053485NBwdUf','Override\x20SkillHub\x20domain','format','cliSettableTopLevel','1006659jWnkMa','map','entries','1402968kfQfKb','658663OMNybM'];a56_0x290a=function(){return _0x868bba;};return a56_0x290a();}export function isTopLevelConfigKey(_0x509b5a){const _0x39750c=a56_0x31326f;return TOP_LEVEL_CONFIG_KEYS[_0x39750c(0x1f0)](_0x509b5a);}export function isLegacyCompatConfigKey(_0x73e844){const _0x14ac82=a56_0x31326f;return getConfigFieldSchema(_0x73e844)?.[_0x14ac82(0x1eb)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4c2a94){const _0x286a82=a56_0x31326f;return[..._0x4c2a94][_0x286a82(0x1ec)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3bcaef=a56_0x31326f;return _0x3bcaef(0x1ee)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0xf300ac){return{'env':_0xf300ac,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ function a56_0x53f0(){const _0x50498d=['entries','10duNkwG','importable','200uMhUQO','Config\x20key.\x20Top-level:\x20','162636KNBscB','enumValues','4848420OsOcQL','fromEntries','map','Default\x20page\x20size','Override\x20SkillHub\x20domain','locale','12SfLwlg','8620XHkcML','has','format','Risk\x20level','legacyCompatOnly','60mJOPxZ','join','60669zMTGNg','cliSettableTopLevel','Target\x20environment','980370nSHHeE','Override\x20runtime\x20domain','885132qiOubz','Access\x20key\x20(client-ak\x20auth)','88iWoVUd','filter','170797GGFFMY'];a56_0x53f0=function(){return _0x50498d;};return a56_0x53f0();}const a56_0x4ac230=a56_0x1c60;(function(_0x240b89,_0x1a214e){const _0x2969ac=a56_0x1c60,_0x20eed6=_0x240b89();while(!![]){try{const _0x9cc6dd=parseInt(_0x2969ac(0x1e4))/0x1*(parseInt(_0x2969ac(0x1df))/0x2)+-parseInt(_0x2969ac(0x1de))/0x3*(-parseInt(_0x2969ac(0x1f5))/0x4)+-parseInt(_0x2969ac(0x1f1))/0x5*(parseInt(_0x2969ac(0x1e9))/0x6)+parseInt(_0x2969ac(0x1e6))/0x7*(parseInt(_0x2969ac(0x1ed))/0x8)+parseInt(_0x2969ac(0x1eb))/0x9+parseInt(_0x2969ac(0x1f3))/0xa*(parseInt(_0x2969ac(0x1ef))/0xb)+-parseInt(_0x2969ac(0x1f7))/0xc;if(_0x9cc6dd===_0x1a214e)break;else _0x20eed6['push'](_0x20eed6['shift']());}catch(_0x1b93e5){_0x20eed6['push'](_0x20eed6['shift']());}}}(a56_0x53f0,0x2f84c));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':a56_0x4ac230(0x1e8),'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[a56_0x4ac230(0x1e1)],'importable':!![]},'pageSize':{'description':a56_0x4ac230(0x1fa),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a56_0x4ac230(0x1ea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a56_0x4ac230(0x1fb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a56_0x4ac230(0x1ec),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a56_0x4ac230(0x1e2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a56_0x4ac230(0x1fc)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x4c8664])=>_0x4c8664[a56_0x4ac230(0x1e7)])[a56_0x4ac230(0x1f9)](([_0x22a619])=>_0x22a619));export const CONFIG_ENUM_VALUES=Object[a56_0x4ac230(0x1f8)](Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x86c2a6])=>_0x86c2a6[a56_0x4ac230(0x1f6)])[a56_0x4ac230(0x1f9)](([_0x51a90b,_0x22ff17])=>[_0x51a90b,[..._0x22ff17[a56_0x4ac230(0x1f6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a56_0x4ac230(0x1f0)](CONFIG_FIELD_SCHEMAS)[a56_0x4ac230(0x1ee)](([,_0x1a2170])=>_0x1a2170[a56_0x4ac230(0x1f2)])[a56_0x4ac230(0x1f9)](([_0x309915])=>_0x309915);export function getConfigFieldSchema(_0x44edc3){return CONFIG_FIELD_SCHEMAS[_0x44edc3];}export function getConfigEnumValues(_0x1eaac9){const _0x243a24=a56_0x4ac230;return getConfigFieldSchema(_0x1eaac9)?.[_0x243a24(0x1f6)];}export function getConfigDefaultValue(_0x116767){return getConfigFieldSchema(_0x116767)?.['defaultValue'];}export function isTopLevelConfigKey(_0x269ae0){const _0x47f50e=a56_0x4ac230;return TOP_LEVEL_CONFIG_KEYS[_0x47f50e(0x1e0)](_0x269ae0);}function a56_0x1c60(_0xc5f6ab,_0x5b9147){_0xc5f6ab=_0xc5f6ab-0x1de;const _0x53f02e=a56_0x53f0();let _0x1c600e=_0x53f02e[_0xc5f6ab];return _0x1c600e;}export function isLegacyCompatConfigKey(_0x458776){const _0x358d6e=a56_0x4ac230;return getConfigFieldSchema(_0x458776)?.[_0x358d6e(0x1e3)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x19af59){const _0x42a7fb=a56_0x4ac230;return[..._0x19af59][_0x42a7fb(0x1e5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x335060=a56_0x4ac230;return _0x335060(0x1f4)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x1f07d8){return{'env':_0x1f07d8,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a57_0x3019(_0x132957,_0x22b075){_0x132957=_0x132957-0x1de;const _0x5c84c2=a57_0x5c84();let _0x301914=_0x5c84c2[_0x132957];return _0x301914;}const a57_0x2dc5bb=a57_0x3019;(function(_0x19228c,_0x5ce063){const _0x335564=a57_0x3019,_0x7f845b=_0x19228c();while(!![]){try{const _0x368070=-parseInt(_0x335564(0x1df))/0x1+parseInt(_0x335564(0x1e1))/0x2+-parseInt(_0x335564(0x1e6))/0x3+parseInt(_0x335564(0x1e5))/0x4+-parseInt(_0x335564(0x1e8))/0x5+parseInt(_0x335564(0x1de))/0x6+-parseInt(_0x335564(0x1e2))/0x7*(-parseInt(_0x335564(0x1e3))/0x8);if(_0x368070===_0x5ce063)break;else _0x7f845b['push'](_0x7f845b['shift']());}catch(_0x28e3f9){_0x7f845b['push'](_0x7f845b['shift']());}}}(a57_0x5c84,0xf24fa));export const APP_PUBLISH_STATUS={'Published':a57_0x2dc5bb(0x1e4),'Unpublished':a57_0x2dc5bb(0x1e0)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x2dc5bb(0x1e7)];function a57_0x5c84(){const _0x19ce85=['1972962rkqMTH','1845599pzCPnP','UNPUBLISH','1462198kCMPss','161bLzShj','997720yTyBuV','PUBLISHED','3644296SdlLxt','356196kiBNTR','Published','9413040hMymen'];a57_0x5c84=function(){return _0x19ce85;};return a57_0x5c84();}
1
+ const a57_0x50790e=a57_0x3b35;function a57_0x3b35(_0x20ced6,_0x511797){_0x20ced6=_0x20ced6-0x1a8;const _0x2782b8=a57_0x2782();let _0x3b3573=_0x2782b8[_0x20ced6];return _0x3b3573;}(function(_0x5993e9,_0x40bc3f){const _0x53dfb2=a57_0x3b35,_0x2d933a=_0x5993e9();while(!![]){try{const _0x1b89ff=parseInt(_0x53dfb2(0x1b0))/0x1*(parseInt(_0x53dfb2(0x1b4))/0x2)+-parseInt(_0x53dfb2(0x1ad))/0x3*(parseInt(_0x53dfb2(0x1aa))/0x4)+-parseInt(_0x53dfb2(0x1af))/0x5*(-parseInt(_0x53dfb2(0x1a9))/0x6)+parseInt(_0x53dfb2(0x1b3))/0x7*(parseInt(_0x53dfb2(0x1ae))/0x8)+-parseInt(_0x53dfb2(0x1b6))/0x9*(-parseInt(_0x53dfb2(0x1a8))/0xa)+-parseInt(_0x53dfb2(0x1b1))/0xb*(-parseInt(_0x53dfb2(0x1ab))/0xc)+-parseInt(_0x53dfb2(0x1b2))/0xd;if(_0x1b89ff===_0x40bc3f)break;else _0x2d933a['push'](_0x2d933a['shift']());}catch(_0x4e9937){_0x2d933a['push'](_0x2d933a['shift']());}}}(a57_0x2782,0xc7cc2));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a57_0x50790e(0x1b5)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a57_0x50790e(0x1ac)];function a57_0x2782(){const _0x4349a2=['11273913MzoKvY','10OKiSMC','384528pcTMDI','234964DVhSRQ','33612RlATcG','Published','6YnZCmH','4562776dhaWUK','45ruORdN','634UCDxiF','3663OFQsWG','42387358FUheEB','14tqSHzP','926yXJAwb','UNPUBLISH'];a57_0x2782=function(){return _0x4349a2;};return a57_0x2782();}
@@ -1 +1 @@
1
- function a58_0x4852(){const _0x4b84f6=['4965585XRGrlW','1603StvNlP','44LyPPwR','2CEuEkK','27066MtqCCT','30UuJTTi','949907KudCUZ','3511899MvakTm','client-ak','ClientAk','26812698EPOewD','680135ruKyAH','3447664voxdpC'];a58_0x4852=function(){return _0x4b84f6;};return a58_0x4852();}const a58_0x1174f8=a58_0x428f;function a58_0x428f(_0x2f8114,_0x1d04b2){_0x2f8114=_0x2f8114-0x149;const _0x4852ca=a58_0x4852();let _0x428fa2=_0x4852ca[_0x2f8114];return _0x428fa2;}(function(_0x54a56b,_0x8a1455){const _0x4a1a0b=a58_0x428f,_0x4a17fe=_0x54a56b();while(!![]){try{const _0x5ea8f1=-parseInt(_0x4a1a0b(0x14c))/0x1*(parseInt(_0x4a1a0b(0x149))/0x2)+-parseInt(_0x4a1a0b(0x153))/0x3+-parseInt(_0x4a1a0b(0x155))/0x4*(parseInt(_0x4a1a0b(0x151))/0x5)+-parseInt(_0x4a1a0b(0x14a))/0x6*(-parseInt(_0x4a1a0b(0x154))/0x7)+parseInt(_0x4a1a0b(0x152))/0x8+-parseInt(_0x4a1a0b(0x14d))/0x9*(-parseInt(_0x4a1a0b(0x14b))/0xa)+parseInt(_0x4a1a0b(0x150))/0xb;if(_0x5ea8f1===_0x8a1455)break;else _0x4a17fe['push'](_0x4a17fe['shift']());}catch(_0x42302c){_0x4a17fe['push'](_0x4a17fe['shift']());}}}(a58_0x4852,0xecfe9));export const AUTH_MODE={'ClientAk':a58_0x1174f8(0x14e)};export function isAuthMode(_0x5a48b8){const _0x59948c=a58_0x1174f8;return _0x5a48b8===AUTH_MODE[_0x59948c(0x14f)];}
1
+ (function(_0x288907,_0x5373ae){const _0x143ae8=a58_0xe817,_0x53ef8b=_0x288907();while(!![]){try{const _0xe9cfd1=-parseInt(_0x143ae8(0x16d))/0x1*(-parseInt(_0x143ae8(0x166))/0x2)+-parseInt(_0x143ae8(0x164))/0x3+-parseInt(_0x143ae8(0x16c))/0x4*(parseInt(_0x143ae8(0x16a))/0x5)+-parseInt(_0x143ae8(0x165))/0x6+-parseInt(_0x143ae8(0x167))/0x7*(-parseInt(_0x143ae8(0x169))/0x8)+-parseInt(_0x143ae8(0x16e))/0x9*(-parseInt(_0x143ae8(0x16b))/0xa)+parseInt(_0x143ae8(0x16f))/0xb;if(_0xe9cfd1===_0x5373ae)break;else _0x53ef8b['push'](_0x53ef8b['shift']());}catch(_0x42b550){_0x53ef8b['push'](_0x53ef8b['shift']());}}}(a58_0x2e99,0xbaf86));function a58_0x2e99(){const _0xd48c9=['21181919NnYZXW','4444746ovtpGB','3412374TBEaWg','248KPNVPq','433678PDiViU','ClientAk','16GvTXsV','1312880jvDBRA','388600NBNWou','12OHNCNb','1253hZTLww','324LyuNmC'];a58_0x2e99=function(){return _0xd48c9;};return a58_0x2e99();}export const AUTH_MODE={'ClientAk':'client-ak'};function a58_0xe817(_0x22ad4d,_0x1dca06){_0x22ad4d=_0x22ad4d-0x164;const _0x2e9924=a58_0x2e99();let _0xe8177a=_0x2e9924[_0x22ad4d];return _0xe8177a;}export function isAuthMode(_0x334bcc){const _0x197fe9=a58_0xe817;return _0x334bcc===AUTH_MODE[_0x197fe9(0x168)];}
@@ -1 +1 @@
1
- const a59_0xbce616=a59_0x1815;(function(_0xa1a021,_0xc417cd){const _0x171bca=a59_0x1815,_0x28b7d9=_0xa1a021();while(!![]){try{const _0xd96f97=parseInt(_0x171bca(0x12d))/0x1*(-parseInt(_0x171bca(0x13f))/0x2)+parseInt(_0x171bca(0x138))/0x3*(-parseInt(_0x171bca(0x141))/0x4)+-parseInt(_0x171bca(0x12c))/0x5+-parseInt(_0x171bca(0x12b))/0x6+parseInt(_0x171bca(0x125))/0x7*(-parseInt(_0x171bca(0x131))/0x8)+-parseInt(_0x171bca(0x13a))/0x9+parseInt(_0x171bca(0x142))/0xa;if(_0xd96f97===_0xc417cd)break;else _0x28b7d9['push'](_0x28b7d9['shift']());}catch(_0x483116){_0x28b7d9['push'](_0x28b7d9['shift']());}}}(a59_0x1103,0x5f96b));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0xbce616(0x130)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a59_0xbce616(0x129)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a59_0x1103(){const _0x1bd69b=['213608teTXXJ','map','name','verbose','app','nonInteractive','json\x20|\x20pretty\x20|\x20compress','2084949HKNeDk','string','4128777iwrAMR','params','Override\x20appcode','boolean','<expr>','2OleIBK','env','4pNZJlQ','32120970Wexutf','yes','help','Show\x20help','global','fromEntries','format','Select\x20app\x20profile\x20by\x20name','<code>','dry-run','appcode','Output\x20format','non-interactive','SQL\x20query\x20code','type','Alias\x20for\x20--non-interactive','126xRhfVJ','JSON\x20params\x20for\x20execute\x20commands','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','sqlcode','cliDisplayName','Name\x20filter','2625384tsZGqY','943110yAYUVv','560026xincQZ','<name>','production\x20|\x20development\x20|\x20daily','cliBinName'];a59_0x1103=function(){return _0x1bd69b;};return a59_0x1103();}export const GLOBAL_FLAGS=[{'name':a59_0xbce616(0x14c),'meowKey':a59_0xbce616(0x14c),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x13c),'hint':a59_0xbce616(0x14a)},{'name':a59_0xbce616(0x135),'meowKey':a59_0xbce616(0x135),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x149),'hint':a59_0xbce616(0x12e)},{'name':'env','meowKey':a59_0xbce616(0x140),'type':a59_0xbce616(0x139),'description':'Environment','hint':a59_0xbce616(0x12f)},{'name':a59_0xbce616(0x148),'meowKey':a59_0xbce616(0x148),'type':'string','description':a59_0xbce616(0x14d),'hint':a59_0xbce616(0x137)},{'name':'jq','meowKey':'jq','type':a59_0xbce616(0x139),'description':a59_0xbce616(0x127),'hint':a59_0xbce616(0x13e)},{'name':a59_0xbce616(0x14b),'meowKey':'dryRun','type':a59_0xbce616(0x13d),'description':'Preview\x20operation\x20without\x20executing'},{'name':a59_0xbce616(0x143),'meowKey':a59_0xbce616(0x143),'type':a59_0xbce616(0x13d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a59_0xbce616(0x136),'type':a59_0xbce616(0x13d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a59_0xbce616(0x146),'meowKey':a59_0xbce616(0x146),'type':a59_0xbce616(0x13d),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a59_0xbce616(0x13d),'description':a59_0xbce616(0x151),'hidden':!![]},{'name':'help','meowKey':a59_0xbce616(0x144),'type':a59_0xbce616(0x13d),'description':a59_0xbce616(0x145)},{'name':'id','meowKey':'id','type':a59_0xbce616(0x139),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a59_0xbce616(0x133),'type':'string','description':a59_0xbce616(0x12a),'hidden':!![]},{'name':'sqlcode','meowKey':a59_0xbce616(0x128),'type':a59_0xbce616(0x139),'description':a59_0xbce616(0x14f),'hidden':!![]},{'name':a59_0xbce616(0x13b),'meowKey':'params','type':a59_0xbce616(0x139),'description':a59_0xbce616(0x126),'hidden':!![]},{'name':a59_0xbce616(0x134),'meowKey':a59_0xbce616(0x134),'type':a59_0xbce616(0x13d),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':'clear','type':'boolean','description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a59_0xbce616(0x14c),'app',a59_0xbce616(0x140),a59_0xbce616(0x148),'jq',a59_0xbce616(0x14b),a59_0xbce616(0x143),a59_0xbce616(0x14e),'ci']);function a59_0x1815(_0x52c681,_0x3ae7d3){_0x52c681=_0x52c681-0x125;const _0x1103b3=a59_0x1103();let _0x18158f=_0x1103b3[_0x52c681];return _0x18158f;}export function buildMeowFlags(){const _0x344689=a59_0xbce616;return Object[_0x344689(0x147)](GLOBAL_FLAGS[_0x344689(0x132)](_0x2c0d4f=>[_0x2c0d4f['meowKey'],{'type':_0x2c0d4f[_0x344689(0x150)]}]));}
1
+ const a59_0x56d8d5=a59_0x5d67;(function(_0x4c9658,_0x35014a){const _0x329485=a59_0x5d67,_0x3d6d42=_0x4c9658();while(!![]){try{const _0x169af9=parseInt(_0x329485(0x194))/0x1*(parseInt(_0x329485(0x185))/0x2)+parseInt(_0x329485(0x192))/0x3*(-parseInt(_0x329485(0x19b))/0x4)+parseInt(_0x329485(0x1a7))/0x5*(parseInt(_0x329485(0x17b))/0x6)+-parseInt(_0x329485(0x1a4))/0x7*(-parseInt(_0x329485(0x1a3))/0x8)+-parseInt(_0x329485(0x17d))/0x9*(-parseInt(_0x329485(0x17e))/0xa)+parseInt(_0x329485(0x1a8))/0xb*(-parseInt(_0x329485(0x1a2))/0xc)+parseInt(_0x329485(0x186))/0xd*(parseInt(_0x329485(0x180))/0xe);if(_0x169af9===_0x35014a)break;else _0x3d6d42['push'](_0x3d6d42['shift']());}catch(_0x5ac4cf){_0x3d6d42['push'](_0x3d6d42['shift']());}}}(a59_0x578b,0xe8da8));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x1a9)];function a59_0x5d67(_0x41debe,_0x4c6bc6){_0x41debe=_0x41debe-0x17b;const _0x578b82=a59_0x578b();let _0x5d67f8=_0x578b82[_0x41debe];return _0x5d67f8;}function a59_0x578b(){const _0x3aea8f=['75pVDKHw','88zVmcmQ','cliBinName','JSON\x20params\x20for\x20execute\x20commands','env','Preview\x20operation\x20without\x20executing','type','clear','meowKey','74166OwiVeT','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','117324aEdPYQ','220kptvpO','sqlcode','6657406Rrdimk','Name\x20filter','<expr>','dry-run','map','2pqRIvI','26XtQzZu','params','Force\x20non-interactive\x20mode\x20(CI)','dryRun','Select\x20app\x20profile\x20by\x20name','Environment','appcode','format','global','Verbose\x20output','Alias\x20for\x20--non-interactive','cliDisplayName','915495vHQWnS','help','548161EgHujK','fromEntries','Skip\x20confirmation\x20for\x20high-risk\x20writes','verbose','app','non-interactive','yes','16aRCGRu','production\x20|\x20development\x20|\x20daily','string','Override\x20appcode','Show\x20help','name','<name>','985836LqSpBq','14928SFqZKK','3227mYYGqG','Clear\x20output','boolean'];a59_0x578b=function(){return _0x3aea8f;};return a59_0x578b();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a59_0x56d8d5(0x191)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a59_0x56d8d5(0x18c),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x19e),'hint':'<code>'},{'name':a59_0x56d8d5(0x198),'meowKey':'app','type':'string','description':a59_0x56d8d5(0x18a),'hint':a59_0x56d8d5(0x1a1)},{'name':a59_0x56d8d5(0x1ab),'meowKey':a59_0x56d8d5(0x1ab),'type':'string','description':a59_0x56d8d5(0x18b),'hint':a59_0x56d8d5(0x19c)},{'name':'format','meowKey':a59_0x56d8d5(0x18d),'type':a59_0x56d8d5(0x19d),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x17c),'hint':a59_0x56d8d5(0x182)},{'name':a59_0x56d8d5(0x183),'meowKey':a59_0x56d8d5(0x189),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1ac)},{'name':a59_0x56d8d5(0x19a),'meowKey':a59_0x56d8d5(0x19a),'type':'boolean','description':a59_0x56d8d5(0x196)},{'name':a59_0x56d8d5(0x199),'meowKey':'nonInteractive','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x188)},{'name':a59_0x56d8d5(0x18e),'meowKey':a59_0x56d8d5(0x18e),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x190),'hidden':!![]},{'name':'help','meowKey':a59_0x56d8d5(0x193),'type':'boolean','description':a59_0x56d8d5(0x19f)},{'name':'id','meowKey':'id','type':a59_0x56d8d5(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a59_0x56d8d5(0x1a0),'meowKey':a59_0x56d8d5(0x1a0),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x181),'hidden':!![]},{'name':a59_0x56d8d5(0x17f),'meowKey':'sqlcode','type':'string','description':'SQL\x20query\x20code','hidden':!![]},{'name':a59_0x56d8d5(0x187),'meowKey':a59_0x56d8d5(0x187),'type':a59_0x56d8d5(0x19d),'description':a59_0x56d8d5(0x1aa),'hidden':!![]},{'name':a59_0x56d8d5(0x197),'meowKey':'verbose','type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x18f),'hidden':!![]},{'name':a59_0x56d8d5(0x1ae),'meowKey':a59_0x56d8d5(0x1ae),'type':a59_0x56d8d5(0x1a6),'description':a59_0x56d8d5(0x1a5),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a59_0x56d8d5(0x18c),a59_0x56d8d5(0x198),a59_0x56d8d5(0x1ab),'format','jq',a59_0x56d8d5(0x183),'yes',a59_0x56d8d5(0x199),'ci']);export function buildMeowFlags(){const _0x1ff9b5=a59_0x56d8d5;return Object[_0x1ff9b5(0x195)](GLOBAL_FLAGS[_0x1ff9b5(0x184)](_0x384ece=>[_0x384ece[_0x1ff9b5(0x1af)],{'type':_0x384ece[_0x1ff9b5(0x1ad)]}]));}
@@ -1 +1 @@
1
- const a60_0x3c5836=a60_0x1ad6;(function(_0x35b789,_0x3ec876){const _0x17cdc0=a60_0x1ad6,_0x12f3db=_0x35b789();while(!![]){try{const _0x1ca368=parseInt(_0x17cdc0(0x170))/0x1+parseInt(_0x17cdc0(0x167))/0x2*(parseInt(_0x17cdc0(0x162))/0x3)+-parseInt(_0x17cdc0(0x16e))/0x4+-parseInt(_0x17cdc0(0x16a))/0x5*(parseInt(_0x17cdc0(0x16c))/0x6)+parseInt(_0x17cdc0(0x163))/0x7*(parseInt(_0x17cdc0(0x161))/0x8)+-parseInt(_0x17cdc0(0x169))/0x9+-parseInt(_0x17cdc0(0x164))/0xa*(-parseInt(_0x17cdc0(0x16b))/0xb);if(_0x1ca368===_0x3ec876)break;else _0x12f3db['push'](_0x12f3db['shift']());}catch(_0x19654d){_0x12f3db['push'](_0x12f3db['shift']());}}}(a60_0x1185,0x3c456));function a60_0x1185(){const _0x1718e4=['production','3796524hGZQvL','95qYRJZp','5625554JFIsFj','66510fmBsgk','compress','1422336abfOAr','write','156951ZSKrby','21176kqsqCM','426249dWAyBn','371cVutgt','10aXLzsa','en-US','main','6ojeram'];a60_0x1185=function(){return _0x1718e4;};return a60_0x1185();}export const DEFAULT_APP_PROFILE_NAME=a60_0x3c5836(0x166);function a60_0x1ad6(_0x355eb3,_0x3aaae4){_0x355eb3=_0x355eb3-0x161;const _0x1185b9=a60_0x1185();let _0x1ad640=_0x1185b9[_0x355eb3];return _0x1ad640;}export const DEFAULT_CONFIG_VALUES={'env':a60_0x3c5836(0x168),'format':a60_0x3c5836(0x16d),'locale':a60_0x3c5836(0x165),'riskLevel':a60_0x3c5836(0x16f)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0x3c5836(0x16d);
1
+ const a60_0xe947bf=a60_0x10c4;(function(_0x1009f5,_0x3b7b68){const _0x77ad44=a60_0x10c4,_0x3e5f0d=_0x1009f5();while(!![]){try{const _0x5584fc=parseInt(_0x77ad44(0x1be))/0x1+parseInt(_0x77ad44(0x1bb))/0x2*(parseInt(_0x77ad44(0x1ba))/0x3)+parseInt(_0x77ad44(0x1bc))/0x4+parseInt(_0x77ad44(0x1c0))/0x5+parseInt(_0x77ad44(0x1bd))/0x6+-parseInt(_0x77ad44(0x1b7))/0x7+-parseInt(_0x77ad44(0x1c3))/0x8*(parseInt(_0x77ad44(0x1b8))/0x9);if(_0x5584fc===_0x3b7b68)break;else _0x3e5f0d['push'](_0x3e5f0d['shift']());}catch(_0x556a87){_0x3e5f0d['push'](_0x3e5f0d['shift']());}}}(a60_0x1636,0x90d69));export const DEFAULT_APP_PROFILE_NAME=a60_0xe947bf(0x1b9);function a60_0x10c4(_0x4fb7a6,_0x1696a4){_0x4fb7a6=_0x4fb7a6-0x1b7;const _0x163629=a60_0x1636();let _0x10c48e=_0x163629[_0x4fb7a6];return _0x10c48e;}export const DEFAULT_CONFIG_VALUES={'env':a60_0xe947bf(0x1c1),'format':a60_0xe947bf(0x1c2),'locale':a60_0xe947bf(0x1bf),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a60_0xe947bf(0x1c2);function a60_0x1636(){const _0x1bb999=['509154KgmQDo','3896020rWcnVi','6791580fKLUAi','1009911QUnlZA','en-US','1825425iXjtrA','production','compress','384UpitdM','8086701pdyySJ','372564OEzbkn','main','3dRaPgH'];a60_0x1636=function(){return _0x1bb999;};return a60_0x1636();}
@@ -1 +1 @@
1
- (function(_0x1d3d3d,_0xd82cfe){const _0x2d0aca=a61_0x2261,_0x125038=_0x1d3d3d();while(!![]){try{const _0x58526c=-parseInt(_0x2d0aca(0x1b2))/0x1+parseInt(_0x2d0aca(0x1ab))/0x2*(-parseInt(_0x2d0aca(0x1ae))/0x3)+parseInt(_0x2d0aca(0x1ad))/0x4*(parseInt(_0x2d0aca(0x1b0))/0x5)+-parseInt(_0x2d0aca(0x1aa))/0x6+-parseInt(_0x2d0aca(0x1af))/0x7*(parseInt(_0x2d0aca(0x1ac))/0x8)+-parseInt(_0x2d0aca(0x1b1))/0x9+parseInt(_0x2d0aca(0x1a9))/0xa;if(_0x58526c===_0xd82cfe)break;else _0x125038['push'](_0x125038['shift']());}catch(_0x56d8c6){_0x125038['push'](_0x125038['shift']());}}}(a61_0xbf62,0x69364));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];function a61_0x2261(_0x21048d,_0x90cb6a){_0x21048d=_0x21048d-0x1a9;const _0xbf62b8=a61_0xbf62();let _0x22615b=_0xbf62b8[_0x21048d];return _0x22615b;}function a61_0xbf62(){const _0x9673da=['4781490uamADC','784370EVHdHJ','2095288zhWZTy','8sVoYOH','3yrHOvr','7oSTjsc','961280tSPDdD','7162353VbzxBW','545524odkTuo','28387880CTRTfC'];a61_0xbf62=function(){return _0x9673da;};return a61_0xbf62();}
1
+ const a61_0x26ba1d=a61_0x18d1;function a61_0x18d1(_0x25223a,_0x127f00){_0x25223a=_0x25223a-0x16e;const _0x3508be=a61_0x3508();let _0x18d175=_0x3508be[_0x25223a];return _0x18d175;}(function(_0x5576a4,_0x11232a){const _0x5f4cf5=a61_0x18d1,_0xd3f23f=_0x5576a4();while(!![]){try{const _0x277771=parseInt(_0x5f4cf5(0x171))/0x1+-parseInt(_0x5f4cf5(0x179))/0x2+parseInt(_0x5f4cf5(0x170))/0x3+-parseInt(_0x5f4cf5(0x178))/0x4*(-parseInt(_0x5f4cf5(0x16f))/0x5)+-parseInt(_0x5f4cf5(0x172))/0x6+parseInt(_0x5f4cf5(0x176))/0x7+-parseInt(_0x5f4cf5(0x175))/0x8*(parseInt(_0x5f4cf5(0x16e))/0x9);if(_0x277771===_0x11232a)break;else _0xd3f23f['push'](_0xd3f23f['shift']());}catch(_0x4ff568){_0xd3f23f['push'](_0xd3f23f['shift']());}}}(a61_0x3508,0xd1caf));import{PRODUCT_CONFIG}from'../constant/product.js';function a61_0x3508(){const _0x20a276=['2876160IRHdqY','1070937HBGBJQ','6484692HDicNs','skillSource','npmPackageName','40aNaqKE','7395248SsjhPw','npmRegistryBaseUrl','8472dPiLBB','2877078zrjOOd','14841iRfTQo','710cDPGGk'];a61_0x3508=function(){return _0x20a276;};return a61_0x3508();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a61_0x26ba1d(0x174)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a61_0x26ba1d(0x173)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a61_0x26ba1d(0x177)];
@@ -1 +1 @@
1
- function a62_0x5900(_0x453685,_0x295a5b){_0x453685=_0x453685-0x7e;const _0x2586c1=a62_0x2586();let _0x590048=_0x2586c1[_0x453685];return _0x590048;}const a62_0x131868=a62_0x5900;(function(_0x33bd60,_0x5995ef){const _0x50434e=a62_0x5900,_0x3eba7f=_0x33bd60();while(!![]){try{const _0x3a8ad3=parseInt(_0x50434e(0x89))/0x1+parseInt(_0x50434e(0x85))/0x2+-parseInt(_0x50434e(0x8a))/0x3*(-parseInt(_0x50434e(0x8d))/0x4)+-parseInt(_0x50434e(0x80))/0x5*(-parseInt(_0x50434e(0x7f))/0x6)+parseInt(_0x50434e(0x8c))/0x7*(parseInt(_0x50434e(0x81))/0x8)+-parseInt(_0x50434e(0x91))/0x9*(parseInt(_0x50434e(0x88))/0xa)+parseInt(_0x50434e(0x87))/0xb*(-parseInt(_0x50434e(0x82))/0xc);if(_0x3a8ad3===_0x5995ef)break;else _0x3eba7f['push'](_0x3eba7f['shift']());}catch(_0x4ebea6){_0x3eba7f['push'](_0x3eba7f['shift']());}}}(a62_0x2586,0x8d406));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;function a62_0x2586(){const _0x503147=['runtime','9635607yaLtaK','userDomain','6QYMHea','3723280toAQCx','184eHuYUa','24WWZcuM','nonProduction','production','1503084egZmGR','apiDomain','11689634rBKCtB','10OJDLSq','901637hBvEJA','1689891mtwMba','skillhub','76132nwCgGm','8UPuLes','domains','api'];a62_0x2586=function(){return _0x503147;};return a62_0x2586();}export function initDomains(_0x26b657){const _0x36a8c7=a62_0x5900;customApiDomain=_0x26b657?.[_0x36a8c7(0x86)],customUserDomain=_0x26b657?.[_0x36a8c7(0x7e)],customRuntimeDomain=_0x26b657?.['runtimeDomain'],customSkillHubDomain=_0x26b657?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)]['user']:PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x83)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)][a62_0x131868(0x8f)]:PRODUCT_CONFIG[a62_0x131868(0x8e)]['nonProduction'][a62_0x131868(0x8f)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a62_0x131868(0x84)][a62_0x131868(0x90)]:PRODUCT_CONFIG['domains'][a62_0x131868(0x83)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x131868(0x8e)][a62_0x131868(0x84)][a62_0x131868(0x8b)]:PRODUCT_CONFIG['domains'][a62_0x131868(0x83)]['skillhub']);
1
+ function a62_0x50f9(_0x242400,_0x1bf136){_0x242400=_0x242400-0x103;const _0x12567d=a62_0x1256();let _0x50f96d=_0x12567d[_0x242400];return _0x50f96d;}const a62_0x4ae361=a62_0x50f9;(function(_0x390d4d,_0x4d02c9){const _0x2ffba4=a62_0x50f9,_0x4f5725=_0x390d4d();while(!![]){try{const _0x74ebe2=-parseInt(_0x2ffba4(0x10e))/0x1*(-parseInt(_0x2ffba4(0x106))/0x2)+-parseInt(_0x2ffba4(0x111))/0x3+-parseInt(_0x2ffba4(0x10a))/0x4*(-parseInt(_0x2ffba4(0x10b))/0x5)+parseInt(_0x2ffba4(0x10f))/0x6+parseInt(_0x2ffba4(0x104))/0x7+-parseInt(_0x2ffba4(0x117))/0x8+parseInt(_0x2ffba4(0x113))/0x9*(-parseInt(_0x2ffba4(0x10c))/0xa);if(_0x74ebe2===_0x4d02c9)break;else _0x4f5725['push'](_0x4f5725['shift']());}catch(_0x46dae1){_0x4f5725['push'](_0x4f5725['shift']());}}}(a62_0x1256,0x65cee));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x254df6){const _0x2ec567=a62_0x50f9;customApiDomain=_0x254df6?.[_0x2ec567(0x109)],customUserDomain=_0x254df6?.[_0x2ec567(0x105)],customRuntimeDomain=_0x254df6?.[_0x2ec567(0x10d)],customSkillHubDomain=_0x254df6?.[_0x2ec567(0x108)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)]['production'][a62_0x4ae361(0x116)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x116)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x112)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)]['api']);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains']['production'][a62_0x4ae361(0x115)]:PRODUCT_CONFIG['domains'][a62_0x4ae361(0x107)][a62_0x4ae361(0x115)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a62_0x4ae361(0x114)][a62_0x4ae361(0x110)][a62_0x4ae361(0x103)]:PRODUCT_CONFIG[a62_0x4ae361(0x114)]['nonProduction'][a62_0x4ae361(0x103)]);function a62_0x1256(){const _0x48a8d8=['domains','runtime','user','2692152hDtRtQ','skillhub','3773161xqWFGT','userDomain','18NlDcDp','nonProduction','skillHubDomain','apiDomain','188SfsGDx','73835mnkkfy','42810rWkUNz','runtimeDomain','57543kpzZGU','644574CPQhoh','production','1786272fMSGdi','api','1071pFmxvy'];a62_0x1256=function(){return _0x48a8d8;};return a62_0x1256();}
@@ -1 +1 @@
1
- const a63_0x470ef4=a63_0x287a;(function(_0xbcda3c,_0x261fa2){const _0x5aa24a=a63_0x287a,_0x24d994=_0xbcda3c();while(!![]){try{const _0x11ac05=-parseInt(_0x5aa24a(0x16d))/0x1+parseInt(_0x5aa24a(0x178))/0x2*(-parseInt(_0x5aa24a(0x174))/0x3)+parseInt(_0x5aa24a(0x16f))/0x4*(-parseInt(_0x5aa24a(0x173))/0x5)+-parseInt(_0x5aa24a(0x177))/0x6*(parseInt(_0x5aa24a(0x179))/0x7)+parseInt(_0x5aa24a(0x176))/0x8*(parseInt(_0x5aa24a(0x17d))/0x9)+-parseInt(_0x5aa24a(0x17b))/0xa+parseInt(_0x5aa24a(0x16e))/0xb*(parseInt(_0x5aa24a(0x16c))/0xc);if(_0x11ac05===_0x261fa2)break;else _0x24d994['push'](_0x24d994['shift']());}catch(_0x2e2462){_0x24d994['push'](_0x24d994['shift']());}}}(a63_0x4c44,0xe8c4e));import{productEnv}from'../constant/product.js';function a63_0x4c44(){const _0x105772=['18938450PEEKzY','dev','13020291ElyhGL','24aJXBqn','1096178BTuHlW','25577057QdtHLG','4494676FrFeYp','daily','development','ENV','5rpuZjj','1411761jzQxyy','production','8cQoxbS','839058VSnnvU','2AqOWgK','28xwQOmF','online'];a63_0x4c44=function(){return _0x105772;};return a63_0x4c44();}export const RUNTIME_ENV_VALUES=[a63_0x470ef4(0x175),'development',a63_0x470ef4(0x170)];export function normalizeEnv(_0x2cd085){const _0x442275=a63_0x470ef4;return _0x2cd085===_0x442275(0x17a)?_0x442275(0x175):_0x2cd085;}export function isProduction(_0x33bdc0){const _0x570bbd=a63_0x470ef4;return normalizeEnv(_0x33bdc0)===_0x570bbd(0x175);}export function isDaily(_0x407c55){const _0x4e1bbc=a63_0x470ef4;return normalizeEnv(_0x407c55)===_0x4e1bbc(0x170);}export function isDev(_0x1f1083){const _0x113e47=a63_0x470ef4,_0xa31808=normalizeEnv(_0x1f1083);return _0xa31808===_0x113e47(0x171)||_0xa31808===_0x113e47(0x17c);}function a63_0x287a(_0x3e66e8,_0x2c28f2){_0x3e66e8=_0x3e66e8-0x16c;const _0x4c44e5=a63_0x4c44();let _0x287a22=_0x4c44e5[_0x3e66e8];return _0x287a22;}let env=normalizeEnv(productEnv(a63_0x470ef4(0x172))||a63_0x470ef4(0x175));export function getEnv(){return env;}export function initEnv(_0x5adaf9){env=normalizeEnv(_0x5adaf9);}
1
+ const a63_0x52f710=a63_0x52c8;(function(_0x7756b6,_0x236c79){const _0x17a963=a63_0x52c8,_0x4d9fa3=_0x7756b6();while(!![]){try{const _0x3eb03f=-parseInt(_0x17a963(0xe5))/0x1*(-parseInt(_0x17a963(0xf0))/0x2)+-parseInt(_0x17a963(0xe9))/0x3*(-parseInt(_0x17a963(0xef))/0x4)+-parseInt(_0x17a963(0xed))/0x5*(-parseInt(_0x17a963(0xe7))/0x6)+-parseInt(_0x17a963(0xee))/0x7+-parseInt(_0x17a963(0xec))/0x8*(-parseInt(_0x17a963(0xe8))/0x9)+parseInt(_0x17a963(0xf2))/0xa+-parseInt(_0x17a963(0xea))/0xb*(parseInt(_0x17a963(0xe6))/0xc);if(_0x3eb03f===_0x236c79)break;else _0x4d9fa3['push'](_0x4d9fa3['shift']());}catch(_0x25ff3a){_0x4d9fa3['push'](_0x4d9fa3['shift']());}}}(a63_0x2675,0x39b40));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production',a63_0x52f710(0xf1),'daily'];export function normalizeEnv(_0x387916){const _0x3ece8d=a63_0x52f710;return _0x387916===_0x3ece8d(0xeb)?_0x3ece8d(0xe4):_0x387916;}function a63_0x2675(){const _0x1030ab=['12148741nTcWTQ','online','2446424dAmlLm','5zWBWGF','385819mqgXnw','4cSsYLj','821726LAbhkR','development','33180hgZspw','production','1NXFWTE','12lJbnJq','2359758cCCamu','9NvwOqr','847869ZQIgDY'];a63_0x2675=function(){return _0x1030ab;};return a63_0x2675();}export function isProduction(_0x1f991c){const _0x33d6cf=a63_0x52f710;return normalizeEnv(_0x1f991c)===_0x33d6cf(0xe4);}export function isDaily(_0x1ce93d){return normalizeEnv(_0x1ce93d)==='daily';}function a63_0x52c8(_0x2cb077,_0x37f69b){_0x2cb077=_0x2cb077-0xe4;const _0x267514=a63_0x2675();let _0x52c85a=_0x267514[_0x2cb077];return _0x52c85a;}export function isDev(_0x583e7c){const _0x5a106d=a63_0x52f710,_0x7a4c61=normalizeEnv(_0x583e7c);return _0x7a4c61===_0x5a106d(0xf1)||_0x7a4c61==='dev';}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0x424146){env=normalizeEnv(_0x424146);}
@@ -1 +1 @@
1
- const a64_0x4467fa=a64_0x5565;(function(_0x1c1511,_0x601fc0){const _0x1fef0d=a64_0x5565,_0xce2d69=_0x1c1511();while(!![]){try{const _0x1a9a8e=parseInt(_0x1fef0d(0x170))/0x1+-parseInt(_0x1fef0d(0x16b))/0x2*(-parseInt(_0x1fef0d(0x167))/0x3)+parseInt(_0x1fef0d(0x168))/0x4+-parseInt(_0x1fef0d(0x16d))/0x5*(parseInt(_0x1fef0d(0x16e))/0x6)+parseInt(_0x1fef0d(0x165))/0x7+-parseInt(_0x1fef0d(0x16c))/0x8*(-parseInt(_0x1fef0d(0x164))/0x9)+-parseInt(_0x1fef0d(0x171))/0xa*(parseInt(_0x1fef0d(0x166))/0xb);if(_0x1a9a8e===_0x601fc0)break;else _0xce2d69['push'](_0xce2d69['shift']());}catch(_0x392ac0){_0xce2d69['push'](_0xce2d69['shift']());}}}(a64_0xdd71,0x267a9));export const OUTPUT_FORMAT_VALUES=[a64_0x4467fa(0x16a),a64_0x4467fa(0x16f),a64_0x4467fa(0x169)];function a64_0x5565(_0x20110e,_0x4e9ae0){_0x20110e=_0x20110e-0x164;const _0xdd71f5=a64_0xdd71();let _0x556554=_0xdd71f5[_0x20110e];return _0x556554;}function a64_0xdd71(){const _0x988a0c=['451bwauyF','700647IcwvoT','166776ZVtwBX','compress','json','2OtDdNv','465208SToCIV','5fAHFil','1599018hljPoT','pretty','177546sxPMbr','49540mgnUYB','18oXzVZQ','406945AxIIIv'];a64_0xdd71=function(){return _0x988a0c;};return a64_0xdd71();}
1
+ const a64_0x159f05=a64_0x5649;function a64_0x109e(){const _0x1ba329=['compress','5599dhMJqi','72iRxlAv','2847593oozQIt','970xRFgRO','184939hPYDNE','pretty','42831vgtUAB','30mZYAoK','725616OJFEWF','80973VJrvim','json','366522sttRug','8cEzESz'];a64_0x109e=function(){return _0x1ba329;};return a64_0x109e();}function a64_0x5649(_0x378f91,_0x3509a4){_0x378f91=_0x378f91-0x1b6;const _0x109ec3=a64_0x109e();let _0x5649cc=_0x109ec3[_0x378f91];return _0x5649cc;}(function(_0x43cd26,_0x3cb5b3){const _0x3624db=a64_0x5649,_0x3e3a01=_0x43cd26();while(!![]){try{const _0x324ccd=parseInt(_0x3624db(0x1b7))/0x1+parseInt(_0x3624db(0x1bf))/0x2*(-parseInt(_0x3624db(0x1bc))/0x3)+parseInt(_0x3624db(0x1bb))/0x4+parseInt(_0x3624db(0x1ba))/0x5*(parseInt(_0x3624db(0x1be))/0x6)+-parseInt(_0x3624db(0x1c3))/0x7+-parseInt(_0x3624db(0x1c2))/0x8*(-parseInt(_0x3624db(0x1b9))/0x9)+parseInt(_0x3624db(0x1b6))/0xa*(-parseInt(_0x3624db(0x1c1))/0xb);if(_0x324ccd===_0x3cb5b3)break;else _0x3e3a01['push'](_0x3e3a01['shift']());}catch(_0x1d30de){_0x3e3a01['push'](_0x3e3a01['shift']());}}}(a64_0x109e,0x33a68));export const OUTPUT_FORMAT_VALUES=[a64_0x159f05(0x1bd),a64_0x159f05(0x1b8),a64_0x159f05(0x1c0)];
@@ -1 +1 @@
1
- const a65_0x41c581=a65_0x350c;(function(_0x13af33,_0x4c4603){const _0x107d6c=a65_0x350c,_0x21b1d5=_0x13af33();while(!![]){try{const _0x1d32fa=parseInt(_0x107d6c(0x10a))/0x1*(-parseInt(_0x107d6c(0xf8))/0x2)+-parseInt(_0x107d6c(0xf6))/0x3+parseInt(_0x107d6c(0xfb))/0x4+-parseInt(_0x107d6c(0xf5))/0x5*(parseInt(_0x107d6c(0xff))/0x6)+parseInt(_0x107d6c(0xf4))/0x7+-parseInt(_0x107d6c(0x109))/0x8*(-parseInt(_0x107d6c(0xed))/0x9)+parseInt(_0x107d6c(0x108))/0xa*(-parseInt(_0x107d6c(0xf3))/0xb);if(_0x1d32fa===_0x4c4603)break;else _0x21b1d5['push'](_0x21b1d5['shift']());}catch(_0x29a68f){_0x21b1d5['push'](_0x21b1d5['shift']());}}}(a65_0x2d69,0xb82fd));function a65_0x350c(_0x14dc57,_0x48628d){_0x14dc57=_0x14dc57-0xeb;const _0x2d6958=a65_0x2d69();let _0x350c47=_0x2d6958[_0x14dc57];return _0x350c47;}export const PRODUCT_CONFIG={'cliBinName':a65_0x41c581(0xfa),'cliDisplayName':a65_0x41c581(0xf1),'npmPackageName':a65_0x41c581(0x106),'skillSource':a65_0x41c581(0x100),'npmRegistryBaseUrl':a65_0x41c581(0x101),'envPrefix':a65_0x41c581(0xfc),'legacyEnvPrefixes':[a65_0x41c581(0xec)],'configFileNames':[a65_0x41c581(0x103),a65_0x41c581(0xf9)],'newConfigFileName':a65_0x41c581(0x103),'homeDirName':'.lovrabet','logFileName':a65_0x41c581(0xef),'invokeSource':a65_0x41c581(0xf0),'userCenterDisplayName':a65_0x41c581(0xf7),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x41c581(0xee),'runtime':'https://runtime.lovrabet.com','skillhub':a65_0x41c581(0x102)},'nonProduction':{'user':a65_0x41c581(0xf2),'api':a65_0x41c581(0xfe),'runtime':a65_0x41c581(0x107),'skillhub':a65_0x41c581(0xfd)}},'accessKeyCreatePath':a65_0x41c581(0xeb)};export function productEnvName(_0x3e013c){const _0x184683=a65_0x41c581;return PRODUCT_CONFIG[_0x184683(0x104)]+'_'+_0x3e013c;}function a65_0x2d69(){const _0x5c8aa3=['@lovrabet/lovrabet-cli','https://daily-runtime.lovrabet.com','2365210fewWWH','88NbdcpS','1AnPeCj','/user/ak','RABETBASE','1233342xKJAHm','https://api.lovrabet.com','.lovrabet-runtime.log','cli:lovrabet-runtime','Lovrabet\x20Runtime\x20CLI','https://user-daily.lovrabet.com','11usyrFf','4794209yqCQCU','138495lcYWJM','4134738vUDnBp','Lovrabet\x20User\x20Center','366322QBIMXk','.lovrabetrc','lovrabet','2880556QDSSqt','LOVRABET','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','78BMeyGk','lovrabet/lovrabet-cli','https://registry.npmjs.org','https://skills.lovrabet.com','.lovrabet.json','envPrefix','map'];a65_0x2d69=function(){return _0x5c8aa3;};return a65_0x2d69();}export function productEnvNames(_0x56507e){const _0x28ab22=a65_0x41c581;return[productEnvName(_0x56507e),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x28ab22(0x105)](_0x51d542=>_0x51d542+'_'+_0x56507e)];}export function productEnv(_0x5f0f12){for(const _0x2e2001 of productEnvNames(_0x5f0f12)){const _0x395c8a=process.env[_0x2e2001];if(_0x395c8a!==undefined)return _0x395c8a;}return undefined;}
1
+ const a65_0x356b22=a65_0x2e8e;(function(_0x2121ae,_0x5caa4b){const _0x59b16a=a65_0x2e8e,_0x3e1f74=_0x2121ae();while(!![]){try{const _0x4590d3=parseInt(_0x59b16a(0x1f1))/0x1+-parseInt(_0x59b16a(0x1fc))/0x2*(-parseInt(_0x59b16a(0x1eb))/0x3)+parseInt(_0x59b16a(0x208))/0x4*(-parseInt(_0x59b16a(0x1f7))/0x5)+-parseInt(_0x59b16a(0x201))/0x6*(parseInt(_0x59b16a(0x1f6))/0x7)+parseInt(_0x59b16a(0x207))/0x8+-parseInt(_0x59b16a(0x202))/0x9*(-parseInt(_0x59b16a(0x205))/0xa)+parseInt(_0x59b16a(0x1f0))/0xb;if(_0x4590d3===_0x5caa4b)break;else _0x3e1f74['push'](_0x3e1f74['shift']());}catch(_0x2d5279){_0x3e1f74['push'](_0x3e1f74['shift']());}}}(a65_0x5b41,0xb6dab));export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a65_0x356b22(0x1f5),'npmPackageName':a65_0x356b22(0x204),'skillSource':a65_0x356b22(0x1ec),'npmRegistryBaseUrl':a65_0x356b22(0x1e9),'envPrefix':a65_0x356b22(0x1f3),'legacyEnvPrefixes':[a65_0x356b22(0x1fa)],'configFileNames':[a65_0x356b22(0x1f9),a65_0x356b22(0x1ff)],'newConfigFileName':'.lovrabet.json','homeDirName':a65_0x356b22(0x1fe),'logFileName':a65_0x356b22(0x1ea),'invokeSource':a65_0x356b22(0x1f2),'userCenterDisplayName':a65_0x356b22(0x200),'skipNpxSkillsEnvSuffix':a65_0x356b22(0x1f4),'domains':{'production':{'user':'https://user.lovrabet.com','api':a65_0x356b22(0x1fd),'runtime':a65_0x356b22(0x206),'skillhub':a65_0x356b22(0x1f8)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a65_0x356b22(0x1fb),'skillhub':a65_0x356b22(0x203)}},'accessKeyCreatePath':a65_0x356b22(0x1ef)};export function productEnvName(_0x2f7f7b){const _0x4d95d3=a65_0x356b22;return PRODUCT_CONFIG[_0x4d95d3(0x1ee)]+'_'+_0x2f7f7b;}function a65_0x2e8e(_0x1d80e8,_0x3c3251){_0x1d80e8=_0x1d80e8-0x1e9;const _0x5b4157=a65_0x5b41();let _0x2e8e47=_0x5b4157[_0x1d80e8];return _0x2e8e47;}export function productEnvNames(_0x2b14ad){const _0x3c67ef=a65_0x356b22;return[productEnvName(_0x2b14ad),...PRODUCT_CONFIG['legacyEnvPrefixes'][_0x3c67ef(0x1ed)](_0x30279d=>_0x30279d+'_'+_0x2b14ad)];}export function productEnv(_0x55fdcf){for(const _0x19ab62 of productEnvNames(_0x55fdcf)){const _0x1af130=process.env[_0x19ab62];if(_0x1af130!==undefined)return _0x1af130;}return undefined;}function a65_0x5b41(){const _0x556a9d=['414465VRFNAx','lovrabet/lovrabet-cli','map','envPrefix','/user/ak','3304301IPZuke','971157VWLMjW','cli:lovrabet-runtime','LOVRABET','SKIP_NPX_SKILLS','Lovrabet\x20Runtime\x20CLI','105baLRUz','20semSpf','https://skills.lovrabet.com','.lovrabet.json','RABETBASE','https://daily-runtime.lovrabet.com','2PQptFd','https://api.lovrabet.com','.lovrabet','.lovrabetrc','Lovrabet\x20User\x20Center','212808ZxLwuc','225kwdRde','https://skills-daily.lovrabet.com','@lovrabet/lovrabet-cli','180650XVUUQW','https://runtime.lovrabet.com','5389048hojTNK','1253968FYXymg','https://registry.npmjs.org','.lovrabet-runtime.log'];a65_0x5b41=function(){return _0x556a9d;};return a65_0x5b41();}
@@ -1 +1 @@
1
- const a66_0x45c620=a66_0x5e4c;function a66_0x5e4c(_0x558b64,_0x1d1242){_0x558b64=_0x558b64-0xc7;const _0x5bec18=a66_0x5bec();let _0x5e4c06=_0x5bec18[_0x558b64];return _0x5e4c06;}(function(_0x1a99f2,_0x3eafe2){const _0x76c573=a66_0x5e4c,_0x5d88c9=_0x1a99f2();while(!![]){try{const _0x35fa91=-parseInt(_0x76c573(0xce))/0x1*(parseInt(_0x76c573(0xd4))/0x2)+-parseInt(_0x76c573(0xd0))/0x3*(parseInt(_0x76c573(0xc8))/0x4)+-parseInt(_0x76c573(0xcc))/0x5*(-parseInt(_0x76c573(0xca))/0x6)+-parseInt(_0x76c573(0xd2))/0x7+parseInt(_0x76c573(0xc9))/0x8*(parseInt(_0x76c573(0xc7))/0x9)+parseInt(_0x76c573(0xd3))/0xa+-parseInt(_0x76c573(0xd1))/0xb*(parseInt(_0x76c573(0xcb))/0xc);if(_0x35fa91===_0x3eafe2)break;else _0x5d88c9['push'](_0x5d88c9['shift']());}catch(_0xcd93e5){_0x5d88c9['push'](_0x5d88c9['shift']());}}}(a66_0x5bec,0xe0b8e));function a66_0x5bec(){const _0x2691a4=['9031192xXkrWc','42WFZkUA','3724428wGNsbA','568975icezDG','write','2OCfPhM','read','249WGQNzk','22vBhQQA','4197501tbMBvP','12309280hVEbIq','866066TCpJrc','9pczjeh','7204nQAPQD'];a66_0x5bec=function(){return _0x2691a4;};return a66_0x5bec();}export const RISK_LEVEL_VALUES=[a66_0x45c620(0xcf),a66_0x45c620(0xcd),'high-risk-write'];
1
+ function a66_0x33fe(_0x5a8ccf,_0x44ac5a){_0x5a8ccf=_0x5a8ccf-0x1a8;const _0x323278=a66_0x3232();let _0x33fe94=_0x323278[_0x5a8ccf];return _0x33fe94;}const a66_0x146ee5=a66_0x33fe;(function(_0x5596ff,_0x193f9f){const _0xaf2390=a66_0x33fe,_0x162ca1=_0x5596ff();while(!![]){try{const _0x2ce415=parseInt(_0xaf2390(0x1ab))/0x1*(-parseInt(_0xaf2390(0x1ae))/0x2)+parseInt(_0xaf2390(0x1a8))/0x3+-parseInt(_0xaf2390(0x1a9))/0x4+-parseInt(_0xaf2390(0x1b1))/0x5+-parseInt(_0xaf2390(0x1b2))/0x6+parseInt(_0xaf2390(0x1af))/0x7+-parseInt(_0xaf2390(0x1ad))/0x8*(-parseInt(_0xaf2390(0x1b0))/0x9);if(_0x2ce415===_0x193f9f)break;else _0x162ca1['push'](_0x162ca1['shift']());}catch(_0x54f9c5){_0x162ca1['push'](_0x162ca1['shift']());}}}(a66_0x3232,0x7a442));export const RISK_LEVEL_VALUES=[a66_0x146ee5(0x1aa),a66_0x146ee5(0x1ac),'high-risk-write'];function a66_0x3232(){const _0x1c0fc7=['read','501167TbmLgN','write','24hBbwdH','2GKPOAH','6533303iOojDl','1266228dPuTKq','2250665AneORa','1883310dKOOqr','2529966hnwLCo','1730960EVDzKo'];a66_0x3232=function(){return _0x1c0fc7;};return a66_0x3232();}
@@ -1 +1 @@
1
- function a67_0x5893(_0x46f402,_0x408b64){_0x46f402=_0x46f402-0xef;const _0x75f5d7=a67_0x75f5();let _0x589372=_0x75f5d7[_0x46f402];return _0x589372;}function a67_0x75f5(){const _0x504b96=['2093046GQtayk','14191128OwCuKy','12DfdYel','21eSLagD','domains','user','3114680hzESqG','6tdDMSe','89699bmKTYn','1421169tjRZBI','8489035fzNijI','79800570HTIwai','accessKeyCreatePath','production'];a67_0x75f5=function(){return _0x504b96;};return a67_0x75f5();}const a67_0x22c70b=a67_0x5893;(function(_0x5a3c2f,_0x40d5b6){const _0x50a0a2=a67_0x5893,_0x1b869d=_0x5a3c2f();while(!![]){try{const _0x4397fa=-parseInt(_0x50a0a2(0xf5))/0x1+-parseInt(_0x50a0a2(0xfb))/0x2+-parseInt(_0x50a0a2(0xf6))/0x3*(parseInt(_0x50a0a2(0xef))/0x4)+parseInt(_0x50a0a2(0xf7))/0x5*(-parseInt(_0x50a0a2(0xf4))/0x6)+parseInt(_0x50a0a2(0xf0))/0x7*(-parseInt(_0x50a0a2(0xf3))/0x8)+-parseInt(_0x50a0a2(0xfc))/0x9+parseInt(_0x50a0a2(0xf8))/0xa;if(_0x4397fa===_0x40d5b6)break;else _0x1b869d['push'](_0x1b869d['shift']());}catch(_0x1862cd){_0x1b869d['push'](_0x1b869d['shift']());}}}(a67_0x75f5,0xef45e));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x22c70b(0xf1)][a67_0x22c70b(0xfa)][a67_0x22c70b(0xf2)]+PRODUCT_CONFIG[a67_0x22c70b(0xf9)];
1
+ const a67_0x5cea89=a67_0x34a0;function a67_0x34a0(_0x8e2a52,_0x4c884d){_0x8e2a52=_0x8e2a52-0x1db;const _0x4a8d0e=a67_0x4a8d();let _0x34a053=_0x4a8d0e[_0x8e2a52];return _0x34a053;}(function(_0x50d254,_0x5e973d){const _0x5a8743=a67_0x34a0,_0x576caa=_0x50d254();while(!![]){try{const _0xca8eb1=-parseInt(_0x5a8743(0x1de))/0x1+parseInt(_0x5a8743(0x1db))/0x2*(-parseInt(_0x5a8743(0x1e6))/0x3)+-parseInt(_0x5a8743(0x1e3))/0x4*(-parseInt(_0x5a8743(0x1e7))/0x5)+parseInt(_0x5a8743(0x1e2))/0x6*(parseInt(_0x5a8743(0x1e5))/0x7)+parseInt(_0x5a8743(0x1e8))/0x8*(-parseInt(_0x5a8743(0x1e1))/0x9)+-parseInt(_0x5a8743(0x1dd))/0xa+parseInt(_0x5a8743(0x1dc))/0xb*(parseInt(_0x5a8743(0x1e0))/0xc);if(_0xca8eb1===_0x5e973d)break;else _0x576caa['push'](_0x576caa['shift']());}catch(_0x409bd5){_0x576caa['push'](_0x576caa['shift']());}}}(a67_0x4a8d,0xf2bfe));import{PRODUCT_CONFIG}from'../constant/product.js';function a67_0x4a8d(){const _0x543145=['136960qrEXcQ','12ZJoEvL','121RSsMlP','17107680gxwnkD','1572140CUTLLL','user','5222724rPBjWw','774GbYKmI','1614EBFycE','3551188dxjppk','domains','30674fDpHOo','552261WnhfTa','5LaIiXV'];a67_0x4a8d=function(){return _0x543145;};return a67_0x4a8d();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a67_0x5cea89(0x1e4)]['production'][a67_0x5cea89(0x1df)]+PRODUCT_CONFIG['accessKeyCreatePath'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a68_0x4994ff=a68_0xd677;(function(_0x765204,_0x944dee){const _0x4f2273=a68_0xd677,_0x3824ed=_0x765204();while(!![]){try{const _0x2c45f1=-parseInt(_0x4f2273(0x1df))/0x1*(parseInt(_0x4f2273(0x197))/0x2)+parseInt(_0x4f2273(0x1ad))/0x3*(parseInt(_0x4f2273(0x196))/0x4)+-parseInt(_0x4f2273(0x1d3))/0x5*(parseInt(_0x4f2273(0x1c5))/0x6)+parseInt(_0x4f2273(0x1c1))/0x7*(parseInt(_0x4f2273(0x1e1))/0x8)+parseInt(_0x4f2273(0x1a6))/0x9+-parseInt(_0x4f2273(0x19c))/0xa+parseInt(_0x4f2273(0x1c3))/0xb*(parseInt(_0x4f2273(0x1a1))/0xc);if(_0x2c45f1===_0x944dee)break;else _0x3824ed['push'](_0x3824ed['shift']());}catch(_0x2022dd){_0x3824ed['push'](_0x3824ed['shift']());}}}(a68_0x7a35,0xa36b8));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a68_0x7a35(){const _0x5ca82d=['app','daily','object','skillHubDomain','accessKey','./constant/domain.js','463902KsuCRY','authRequired','string','EPERM','raw','riskLevel','explicit','configFileNames','defaultApp','online','find','message','trim','.tmp','true','join','local-alias','production','error','./constant/env.js','903742GhHPwK','userDomain','11BMjbun','missing','6mVipAs','host','values','top-level','format','locale','APPCODE','slice','argv','stringify','PAGE_SIZE','development','EXDEV','env','1694505vyXSCU','nonInteractive','inherit','empty','runtimeDomain','newConfigFileName','projectConfig','EACCES','maxRisk','code','parse','isTTY','6jfuTLV','pageSize','32DAFmCX','stdin','setRawMode','ACCESS_KEY','global','apps','appcode','8rbfiOQ','105804ezAkzl','project','utf8','APP','write','10678440uzleIT','globalConfig','apiDomain','setRawCommand','stdout','9089196UsiIQc','VERBOSE','cwd','read','cache','7293600KwrjEX'];a68_0x7a35=function(){return _0x5ca82d;};return a68_0x7a35();}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[a68_0x4994ff(0x1b4)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x4994ff(0x1d8)];function a68_0xd677(_0x50fbea,_0x5c73fa){_0x50fbea=_0x50fbea-0x193;const _0x7a359d=a68_0x7a35();let _0xd677d9=_0x7a359d[_0x50fbea];return _0xd677d9;}function resolveConfigPath(_0x34e3d6){for(const _0x59a31e of CONFIG_NAMES){const _0xd0d698=resolve(_0x34e3d6,_0x59a31e);if(existsSync(_0xd0d698))return _0xd0d698;}return undefined;}export function resolveWriteConfigPath(_0x5449b0){const _0x14d6f9=a68_0x4994ff,_0x588238=_0x5449b0===_0x14d6f9(0x198)?process[_0x14d6f9(0x1a3)]():homedir(),_0x44ee5d=resolveConfigPath(_0x588238);return _0x44ee5d??resolve(_0x588238,NEW_CONFIG_NAME);}export function readConfigFile(_0xc6b05a){const _0x4ca0df=a68_0x4994ff;try{if(existsSync(_0xc6b05a)){const _0x3ec5c4=readFileSync(_0xc6b05a,{'encoding':_0x4ca0df(0x199)});if(_0x3ec5c4){const _0x37e8a8=JSON[_0x4ca0df(0x1dd)](_0x3ec5c4);return migrateOnlineEnv(_0xc6b05a,_0x37e8a8),_0x37e8a8;}}}catch{}return{};}function migrateOnlineEnv(_0x418d5b,_0x503475){const _0x18d5b0=a68_0x4994ff;let _0x566c22=![];_0x503475[_0x18d5b0(0x1d2)]===_0x18d5b0(0x1b6)&&(_0x503475[_0x18d5b0(0x1d2)]=_0x18d5b0(0x1be),_0x566c22=!![]);if(_0x503475[_0x18d5b0(0x194)]&&typeof _0x503475[_0x18d5b0(0x194)]===_0x18d5b0(0x1a9))for(const _0xd8bd11 of Object[_0x18d5b0(0x1c7)](_0x503475[_0x18d5b0(0x194)])){_0xd8bd11&&_0xd8bd11[_0x18d5b0(0x1d2)]===_0x18d5b0(0x1b6)&&(_0xd8bd11[_0x18d5b0(0x1d2)]=_0x18d5b0(0x1be),_0x566c22=!![]);}if(_0x566c22)try{writeConfigFile(_0x418d5b,_0x503475);}catch{}}export function writeConfigFile(_0x314987,_0x69e2a3){const _0x2b6d94=a68_0x4994ff,_0x382f1a=dirname(_0x314987);!existsSync(_0x382f1a)&&mkdirSync(_0x382f1a,{'recursive':!![]});const _0xd35eb9=_0x314987+_0x2b6d94(0x1ba);try{writeFileSync(_0xd35eb9,JSON[_0x2b6d94(0x1ce)](_0x69e2a3,null,0x2)+'\x0a',{'encoding':_0x2b6d94(0x199),'mode':0x180});try{renameSync(_0xd35eb9,_0x314987);}catch(_0x3ad236){if(_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1b0)||_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1d1)||_0x3ad236[_0x2b6d94(0x1dc)]===_0x2b6d94(0x1da)){writeFileSync(_0x314987,JSON[_0x2b6d94(0x1ce)](_0x69e2a3,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0xd35eb9);}catch{}}else throw _0x3ad236;}}catch(_0x22f304){try{unlinkSync(_0xd35eb9);}catch{}throw _0x22f304;}}export function isNonInteractiveMode(_0x5eb666){const _0x45b2e1=a68_0x4994ff;return!!(_0x5eb666[_0x45b2e1(0x1d4)]||_0x5eb666['ci']||productEnvNames('CI')['some'](_0x22b2d2=>process.env[_0x22b2d2]===_0x45b2e1(0x1bb))||process.env.CI==='true'||!process[_0x45b2e1(0x1a0)][_0x45b2e1(0x1de)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x417d51=a68_0x4994ff;if(!process[_0x417d51(0x1e2)][_0x417d51(0x1de)])return![];try{const _0x13459d=process[_0x417d51(0x1e2)]['isRaw'];return process[_0x417d51(0x1e2)][_0x417d51(0x1e3)](!![]),process[_0x417d51(0x1e2)]['setRawMode'](_0x13459d??![]),!![];}catch{return![];}}export async function createContext(_0x29290b){const _0x3aa74b=a68_0x4994ff,_0x2c1896=readRawConfig(),_0x206315=buildConfig(_0x2c1896,_0x29290b);await initGlobalEnvironment(_0x206315);const {getUserDomain:_0x464e37,getApiDomain:_0x5ba37d}=await import('./constant/domain.js'),_0x1280f6={'apiDomain':_0x5ba37d(),'userDomain':_0x464e37()},_0x2f9016=await buildAuth(_0x206315);logger['setLogPath'](process[_0x3aa74b(0x1a3)]());const _0x3b83d4=(CLI_BIN_NAME+'\x20'+process[_0x3aa74b(0x1cd)][_0x3aa74b(0x1cc)](0x2)[_0x3aa74b(0x1bc)]('\x20'))[_0x3aa74b(0x1b9)]();logger[_0x3aa74b(0x19f)](_0x3b83d4);const _0x554b05=isNonInteractiveMode(_0x29290b);return{'config':_0x206315,'auth':_0x2f9016,'logger':logger,'env':_0x1280f6,'nonInteractive':_0x554b05};}export function buildConfigFromFlags(_0x989105){return buildConfig(readRawConfig(),_0x989105);}export function getLocalAppAliases(_0x479bc9){const _0x5e20f4=a68_0x4994ff;return _0x479bc9[_0x5e20f4(0x194)]&&typeof _0x479bc9['apps']==='object'?_0x479bc9[_0x5e20f4(0x194)]:{};}export function resolveLocalAppAliasCode(_0x3a3dc9,_0x25b897){const _0x4a11b4=a68_0x4994ff;if(!_0x25b897)return undefined;const _0x5f340e=getLocalAppAliases(_0x3a3dc9)[_0x25b897],_0x22cc6c=_0x5f340e?.['appcode'];return typeof _0x22cc6c==='string'&&_0x22cc6c[_0x4a11b4(0x1b9)]()?_0x22cc6c[_0x4a11b4(0x1b9)]():undefined;}export function readAppCodeFromConfig(){const _0x1d4ef4=a68_0x4994ff,_0x3f9f42=readRawConfig(),_0xd37e9d=_0x3f9f42[_0x1d4ef4(0x195)]??_0x3f9f42[_0x1d4ef4(0x1a7)];if(typeof _0xd37e9d===_0x1d4ef4(0x1af)&&_0xd37e9d['trim']())return _0xd37e9d[_0x1d4ef4(0x1b9)]();const _0x5ad931=resolveLocalAppAliasCode(_0x3f9f42,typeof _0x3f9f42[_0x1d4ef4(0x1b5)]===_0x1d4ef4(0x1af)?_0x3f9f42['defaultApp']:undefined);if(_0x5ad931)return _0x5ad931;const _0x1f93e4=normalizeEnv(String(_0x3f9f42['env']||_0x1d4ef4(0x1be))),_0x15fde8=isDaily(_0x1f93e4)?_0x1d4ef4(0x1a8):isDev(_0x1f93e4)?'development':'production',_0x27808b=resolveCachedAppCode(typeof _0x3f9f42['defaultApp']===_0x1d4ef4(0x1af)?_0x3f9f42['defaultApp']:undefined,_0x15fde8,typeof _0x3f9f42[_0x1d4ef4(0x1ab)]===_0x1d4ef4(0x1af)?_0x3f9f42[_0x1d4ef4(0x1ab)]:undefined);if(_0x27808b)return _0x27808b;const _0x2a77ee=Object['values'](getLocalAppAliases(_0x3f9f42))[_0x1d4ef4(0x1b7)](_0x2152fe=>_0x2152fe?.['appcode']);return typeof _0x2a77ee?.[_0x1d4ef4(0x195)]==='string'&&_0x2a77ee['appcode']['trim']()?_0x2a77ee['appcode']['trim']():undefined;}export function readScopedConfig(_0x2a10ab){const _0x577016=a68_0x4994ff,_0x492b86=_0x2a10ab[_0x577016(0x193)]?_0x577016(0x193):_0x577016(0x198);return readConfigFile(resolveWriteConfigPath(_0x492b86));}export function writeScopedConfig(_0x206d7a,_0x4adc79){const _0x2a6fcf=a68_0x4994ff,_0x12c468=_0x4adc79[_0x2a6fcf(0x193)]?'global':_0x2a6fcf(0x198);writeConfigFile(resolveWriteConfigPath(_0x12c468),_0x206d7a);}export async function initGlobalEnvironment(_0x3d393f){const _0x469b1e=a68_0x4994ff,{initEnv:_0x285ec0}=await import(_0x469b1e(0x1c0));_0x285ec0(_0x3d393f[_0x469b1e(0x1d2)]);const {initDomains:_0x510453}=await import(_0x469b1e(0x1ac));_0x510453({'apiDomain':_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x19e)]||_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x1c6)]||undefined,'userDomain':_0x3d393f[_0x469b1e(0x1b1)][_0x469b1e(0x1c2)]||undefined,'runtimeDomain':_0x3d393f['raw'][_0x469b1e(0x1d7)]||undefined,'skillHubDomain':_0x3d393f['raw'][_0x469b1e(0x1aa)]||undefined});}export function getProjectConfigPath(){const _0x1ae431=a68_0x4994ff;return resolveConfigPath(process[_0x1ae431(0x1a3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x2f1657){const _0x57b6cd=a68_0x4994ff;if(!existsSync(_0x2f1657))return{'status':_0x57b6cd(0x1c4)};try{const _0x41949d=readFileSync(_0x2f1657,{'encoding':_0x57b6cd(0x199)});if(!_0x41949d?.[_0x57b6cd(0x1b9)]())return{'status':_0x57b6cd(0x1d6)};const _0x354a5b=JSON['parse'](_0x41949d);return{'status':'ok','data':_0x354a5b};}catch(_0x1fbff0){return{'status':_0x57b6cd(0x1bf),'message':_0x1fbff0 instanceof Error?_0x1fbff0[_0x57b6cd(0x1b8)]:String(_0x1fbff0)};}}export function loadRawConfigLayers(_0x3f7d6a){const _0x3849be=a68_0x4994ff;let _0x566559={},_0x17f135={},_0x475113,_0xaa0eb5;try{_0x475113=resolveConfigPath(homedir());if(_0x475113){const _0x456306=readFileSync(_0x475113,{'encoding':_0x3849be(0x199)});if(_0x456306)_0x566559=JSON['parse'](_0x456306);}}catch{}try{const _0x3f2163=_0x3f7d6a||process[_0x3849be(0x1a3)]();_0xaa0eb5=resolveConfigPath(_0x3f2163);if(_0xaa0eb5){const _0x411ead=readFileSync(_0xaa0eb5,{'encoding':'utf8'});if(_0x411ead)_0x17f135=JSON[_0x3849be(0x1dd)](_0x411ead);}}catch{}return{'globalPath':_0x475113,'projectPath':_0xaa0eb5,'globalConfig':_0x566559,'projectConfig':_0x17f135};}function mergeRawConfigLayers(_0x3bede1){const _0x34d6cd=a68_0x4994ff,{globalConfig:_0x21052,projectConfig:_0x5eeade}=_0x3bede1;if(_0x5eeade[_0x34d6cd(0x1d5)]===![]){const _0x7dfe9={..._0x5eeade};return delete _0x7dfe9[_0x34d6cd(0x1d5)],_0x7dfe9;}const _0x18c58a={..._0x21052,..._0x5eeade};if(_0x34d6cd(0x1b5)in _0x5eeade)_0x18c58a['defaultApp']=_0x5eeade[_0x34d6cd(0x1b5)];else _0x21052[_0x34d6cd(0x1b5)]&&(_0x18c58a[_0x34d6cd(0x1b5)]=_0x21052[_0x34d6cd(0x1b5)]);return _0x18c58a;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1854f7){return mergeRawConfigLayers(loadRawConfigLayers(_0x1854f7));}export function readRawConfigWithLayers(_0x1fa455){const _0x332099=loadRawConfigLayers(_0x1fa455);return{'config':mergeRawConfigLayers(_0x332099),'layers':_0x332099};}export function resolveDefaultAppSource(_0x2286be){const _0x170ec3=a68_0x4994ff;if(_0x170ec3(0x1b5)in _0x2286be['projectConfig'])return'project';if(_0x2286be[_0x170ec3(0x1d9)][_0x170ec3(0x1d5)]===![])return null;if(_0x2286be[_0x170ec3(0x19d)][_0x170ec3(0x1b5)])return'global';return null;}function buildConfig(_0x5bc8cf,_0x4f9256){const _0x2f1c88=a68_0x4994ff,_0x17c4ee=_0x5bc8cf[_0x2f1c88(0x1b5)]||undefined,_0x32b34a=_0x4f9256['app']||env(_0x2f1c88(0x19a))||undefined,_0x3f36f8=_0x32b34a||_0x17c4ee||undefined,_0x453342=env(_0x2f1c88(0x1e4))||_0x5bc8cf[_0x2f1c88(0x1ab)]||undefined,_0x1acc32=_0x4f9256['env']||env('ENV')||_0x5bc8cf[_0x2f1c88(0x1d2)]||DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1d2)],_0x105e0c=normalizeEnv(String(_0x1acc32)),_0x43d9a9=isDaily(_0x105e0c)?_0x2f1c88(0x1a8):isDev(_0x105e0c)?_0x2f1c88(0x1d0):_0x2f1c88(0x1be),_0xb37197=typeof _0x4f9256[_0x2f1c88(0x195)]===_0x2f1c88(0x1af)?_0x4f9256[_0x2f1c88(0x195)]:undefined,_0x335f2c=env(_0x2f1c88(0x1cb)),_0x32affa=_0x32b34a?undefined:_0x5bc8cf[_0x2f1c88(0x195)]||_0x5bc8cf['app']||undefined,_0x15c52a=_0x32b34a||(_0x32affa?undefined:_0x17c4ee),_0x46a643=resolveLocalAppAliasCode(_0x5bc8cf,_0x15c52a),_0x16fd8d=resolveCachedAppCode(_0x15c52a,_0x43d9a9,_0x453342),_0x11591d=_0xb37197||_0x335f2c||_0x32affa||_0x46a643||_0x16fd8d||undefined,_0x1f9745=_0xb37197?_0x2f1c88(0x1b3):_0x335f2c?_0x2f1c88(0x1d2):_0x32affa?_0x2f1c88(0x1c8):_0x46a643?_0x2f1c88(0x1bd):_0x16fd8d?_0x2f1c88(0x1a5):undefined,_0x249eb5=_0x5bc8cf[_0x2f1c88(0x1ca)]||DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1ca)],_0x210ae0=undefined,_0x3e0907=_0x4f9256[_0x2f1c88(0x1c9)]||env('FORMAT')||_0x5bc8cf[_0x2f1c88(0x1c9)],_0x8d75bb=normalizeLegacyOutputFormat(_0x3e0907),_0x11e997=env(_0x2f1c88(0x1cf))||_0x5bc8cf[_0x2f1c88(0x1e0)],_0x394194=_0x11e997?Number(_0x11e997)||undefined:undefined,_0x276a6f=_0x5bc8cf[_0x2f1c88(0x1b2)]||_0x5bc8cf[_0x2f1c88(0x1db)],_0x427cd1=_0x276a6f===_0x2f1c88(0x1a4)||_0x276a6f===_0x2f1c88(0x19b)||_0x276a6f==='high-risk-write'?_0x276a6f:DEFAULT_CONFIG_VALUES[_0x2f1c88(0x1b2)],_0xb1e45=env(_0x2f1c88(0x1a2)),_0x2f4590=_0xb1e45==='1'||_0xb1e45===_0x2f1c88(0x1bb);return{'appCode':typeof _0x11591d===_0x2f1c88(0x1af)&&_0x11591d[_0x2f1c88(0x1b9)]()?_0x11591d[_0x2f1c88(0x1b9)]():undefined,'appCodeSource':_0x1f9745,'env':_0x43d9a9,'locale':_0x249eb5,'cookie':_0x210ae0,'accessKey':_0x453342,'format':_0x8d75bb,'pageSize':_0x394194,'riskLevel':_0x427cd1,'verbose':_0x2f4590,'defaultApp':_0x17c4ee,'currentApp':typeof _0x3f36f8===_0x2f1c88(0x1af)?_0x3f36f8:undefined,'raw':_0x5bc8cf};}function env(_0x7bbba4){return productEnv(_0x7bbba4);}async function buildAuth(_0x2c3c67){const _0x2b8e30='',_0x3215e3=!!_0x2c3c67['accessKey'];return{'cookie':_0x2b8e30,'isLoggedIn':_0x3215e3,async 'getOrLogin'(){const _0x546ec2=a68_0xd677;if(_0x3215e3)return _0x2b8e30;throw CliErrors[_0x546ec2(0x1ae)]();}};}
1
+ const a68_0x4a00b3=a68_0xb49c;(function(_0x2e9aa0,_0x45ffc2){const _0x495eb1=a68_0xb49c,_0x4852b9=_0x2e9aa0();while(!![]){try{const _0x2e6135=parseInt(_0x495eb1(0x15e))/0x1*(-parseInt(_0x495eb1(0x123))/0x2)+parseInt(_0x495eb1(0x155))/0x3+-parseInt(_0x495eb1(0x147))/0x4+-parseInt(_0x495eb1(0x14c))/0x5+parseInt(_0x495eb1(0x159))/0x6*(-parseInt(_0x495eb1(0x133))/0x7)+parseInt(_0x495eb1(0x145))/0x8+parseInt(_0x495eb1(0x14b))/0x9*(parseInt(_0x495eb1(0x161))/0xa);if(_0x2e6135===_0x45ffc2)break;else _0x4852b9['push'](_0x4852b9['shift']());}catch(_0x4bc3b6){_0x4852b9['push'](_0x4852b9['shift']());}}}(a68_0x3225,0x8d984));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';function a68_0xb49c(_0x4a086a,_0x421717){_0x4a086a=_0x4a086a-0x117;const _0x3225e9=a68_0x3225();let _0xb49c83=_0x3225e9[_0x4a086a];return _0xb49c83;}const CONFIG_NAMES=PRODUCT_CONFIG[a68_0x4a00b3(0x12f)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a68_0x4a00b3(0x134)];function resolveConfigPath(_0x3ae364){for(const _0x4ec64a of CONFIG_NAMES){const _0xbf3c79=resolve(_0x3ae364,_0x4ec64a);if(existsSync(_0xbf3c79))return _0xbf3c79;}return undefined;}export function resolveWriteConfigPath(_0x28604a){const _0x39732f=a68_0x4a00b3,_0x901b4d=_0x28604a===_0x39732f(0x11b)?process[_0x39732f(0x142)]():homedir(),_0xef0285=resolveConfigPath(_0x901b4d);return _0xef0285??resolve(_0x901b4d,NEW_CONFIG_NAME);}export function readConfigFile(_0x1fca5f){const _0x315ea1=a68_0x4a00b3;try{if(existsSync(_0x1fca5f)){const _0x2f47bd=readFileSync(_0x1fca5f,{'encoding':_0x315ea1(0x13a)});if(_0x2f47bd){const _0x7b3a5c=JSON[_0x315ea1(0x148)](_0x2f47bd);return migrateOnlineEnv(_0x1fca5f,_0x7b3a5c),_0x7b3a5c;}}}catch{}return{};}function migrateOnlineEnv(_0x2c31f7,_0x3fd7dd){const _0x8334de=a68_0x4a00b3;let _0x3e49f2=![];_0x3fd7dd[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x3fd7dd[_0x8334de(0x118)]='production',_0x3e49f2=!![]);if(_0x3fd7dd[_0x8334de(0x12d)]&&typeof _0x3fd7dd[_0x8334de(0x12d)]===_0x8334de(0x13d))for(const _0x5d9ff9 of Object[_0x8334de(0x151)](_0x3fd7dd[_0x8334de(0x12d)])){_0x5d9ff9&&_0x5d9ff9[_0x8334de(0x118)]===_0x8334de(0x117)&&(_0x5d9ff9['env']=_0x8334de(0x11d),_0x3e49f2=!![]);}if(_0x3e49f2)try{writeConfigFile(_0x2c31f7,_0x3fd7dd);}catch{}}export function writeConfigFile(_0xf3fa3d,_0x14c3a2){const _0x5dac34=a68_0x4a00b3,_0xb401a7=dirname(_0xf3fa3d);!existsSync(_0xb401a7)&&mkdirSync(_0xb401a7,{'recursive':!![]});const _0x48f5a=_0xf3fa3d+_0x5dac34(0x141);try{writeFileSync(_0x48f5a,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a),'mode':0x180});try{renameSync(_0x48f5a,_0xf3fa3d);}catch(_0x4a2f83){if(_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x152)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x13b)||_0x4a2f83[_0x5dac34(0x13c)]===_0x5dac34(0x156)){writeFileSync(_0xf3fa3d,JSON[_0x5dac34(0x13f)](_0x14c3a2,null,0x2)+'\x0a',{'encoding':_0x5dac34(0x13a)});try{unlinkSync(_0x48f5a);}catch{}}else throw _0x4a2f83;}}catch(_0x15e05){try{unlinkSync(_0x48f5a);}catch{}throw _0x15e05;}}export function isNonInteractiveMode(_0x2c983d){const _0x257b4e=a68_0x4a00b3;return!!(_0x2c983d[_0x257b4e(0x130)]||_0x2c983d['ci']||productEnvNames('CI')[_0x257b4e(0x11e)](_0x210575=>process.env[_0x210575]==='true')||process.env.CI===_0x257b4e(0x15c)||!process[_0x257b4e(0x164)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1a205f=a68_0x4a00b3;if(!process[_0x1a205f(0x165)][_0x1a205f(0x11a)])return![];try{const _0xa2ad33=process[_0x1a205f(0x165)]['isRaw'];return process['stdin']['setRawMode'](!![]),process[_0x1a205f(0x165)][_0x1a205f(0x129)](_0xa2ad33??![]),!![];}catch{return![];}}export async function createContext(_0x4ca769){const _0x471580=a68_0x4a00b3,_0xcebd33=readRawConfig(),_0x51164d=buildConfig(_0xcebd33,_0x4ca769);await initGlobalEnvironment(_0x51164d);const {getUserDomain:_0x47c0c5,getApiDomain:_0xef8734}=await import(_0x471580(0x140)),_0xf0408={'apiDomain':_0xef8734(),'userDomain':_0x47c0c5()},_0x866b40=await buildAuth(_0x51164d);logger[_0x471580(0x125)](process[_0x471580(0x142)]());const _0x31ef28=(CLI_BIN_NAME+'\x20'+process[_0x471580(0x12e)][_0x471580(0x154)](0x2)[_0x471580(0x15f)]('\x20'))[_0x471580(0x162)]();logger['setRawCommand'](_0x31ef28);const _0xce420=isNonInteractiveMode(_0x4ca769);return{'config':_0x51164d,'auth':_0x866b40,'logger':logger,'env':_0xf0408,'nonInteractive':_0xce420};}export function buildConfigFromFlags(_0x552493){return buildConfig(readRawConfig(),_0x552493);}export function getLocalAppAliases(_0x195532){const _0x545e12=a68_0x4a00b3;return _0x195532[_0x545e12(0x12d)]&&typeof _0x195532[_0x545e12(0x12d)]===_0x545e12(0x13d)?_0x195532[_0x545e12(0x12d)]:{};}export function resolveLocalAppAliasCode(_0x45847a,_0x1b9a9e){const _0xe3f0ba=a68_0x4a00b3;if(!_0x1b9a9e)return undefined;const _0x97db1d=getLocalAppAliases(_0x45847a)[_0x1b9a9e],_0x3247a7=_0x97db1d?.[_0xe3f0ba(0x14e)];return typeof _0x3247a7===_0xe3f0ba(0x153)&&_0x3247a7[_0xe3f0ba(0x162)]()?_0x3247a7['trim']():undefined;}export function readAppCodeFromConfig(){const _0x5274bf=a68_0x4a00b3,_0x257bc7=readRawConfig(),_0x1ffe09=_0x257bc7[_0x5274bf(0x14e)]??_0x257bc7[_0x5274bf(0x160)];if(typeof _0x1ffe09===_0x5274bf(0x153)&&_0x1ffe09['trim']())return _0x1ffe09['trim']();const _0x40a1a4=resolveLocalAppAliasCode(_0x257bc7,typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7[_0x5274bf(0x163)]:undefined);if(_0x40a1a4)return _0x40a1a4;const _0x71e257=normalizeEnv(String(_0x257bc7[_0x5274bf(0x118)]||_0x5274bf(0x11d))),_0x1907ca=isDaily(_0x71e257)?_0x5274bf(0x12c):isDev(_0x71e257)?'development':'production',_0x53739f=resolveCachedAppCode(typeof _0x257bc7[_0x5274bf(0x163)]===_0x5274bf(0x153)?_0x257bc7['defaultApp']:undefined,_0x1907ca,typeof _0x257bc7[_0x5274bf(0x157)]===_0x5274bf(0x153)?_0x257bc7['accessKey']:undefined);if(_0x53739f)return _0x53739f;const _0x1bd731=Object[_0x5274bf(0x151)](getLocalAppAliases(_0x257bc7))[_0x5274bf(0x124)](_0x16ad04=>_0x16ad04?.[_0x5274bf(0x14e)]);return typeof _0x1bd731?.['appcode']==='string'&&_0x1bd731['appcode'][_0x5274bf(0x162)]()?_0x1bd731['appcode'][_0x5274bf(0x162)]():undefined;}export function readScopedConfig(_0x39e555){const _0x133895=a68_0x4a00b3,_0x37a4f9=_0x39e555[_0x133895(0x150)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0x37a4f9));}export function writeScopedConfig(_0x1566b7,_0x28f309){const _0xbf15b4=a68_0x4a00b3,_0x58766a=_0x28f309['global']?_0xbf15b4(0x150):_0xbf15b4(0x11b);writeConfigFile(resolveWriteConfigPath(_0x58766a),_0x1566b7);}export async function initGlobalEnvironment(_0x4c32d8){const _0x1058f6=a68_0x4a00b3,{initEnv:_0x3f919c}=await import(_0x1058f6(0x139));_0x3f919c(_0x4c32d8['env']);const {initDomains:_0x176a83}=await import(_0x1058f6(0x140));_0x176a83({'apiDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x146)]||_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x14f)]||undefined,'userDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x128)]||undefined,'runtimeDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x122)]||undefined,'skillHubDomain':_0x4c32d8[_0x1058f6(0x149)][_0x1058f6(0x135)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x1944e7){const _0x3d6bff=a68_0x4a00b3;if(!existsSync(_0x1944e7))return{'status':'missing'};try{const _0x3c9912=readFileSync(_0x1944e7,{'encoding':_0x3d6bff(0x13a)});if(!_0x3c9912?.[_0x3d6bff(0x162)]())return{'status':_0x3d6bff(0x11c)};const _0x15146d=JSON[_0x3d6bff(0x148)](_0x3c9912);return{'status':'ok','data':_0x15146d};}catch(_0x5e198d){return{'status':'error','message':_0x5e198d instanceof Error?_0x5e198d[_0x3d6bff(0x158)]:String(_0x5e198d)};}}export function loadRawConfigLayers(_0x3297b2){const _0x1bf169=a68_0x4a00b3;let _0x38c4ef={},_0x341149={},_0xa69671,_0x3715d1;try{_0xa69671=resolveConfigPath(homedir());if(_0xa69671){const _0xdf27cd=readFileSync(_0xa69671,{'encoding':_0x1bf169(0x13a)});if(_0xdf27cd)_0x38c4ef=JSON['parse'](_0xdf27cd);}}catch{}try{const _0x8e5978=_0x3297b2||process[_0x1bf169(0x142)]();_0x3715d1=resolveConfigPath(_0x8e5978);if(_0x3715d1){const _0x47fafa=readFileSync(_0x3715d1,{'encoding':'utf8'});if(_0x47fafa)_0x341149=JSON[_0x1bf169(0x148)](_0x47fafa);}}catch{}return{'globalPath':_0xa69671,'projectPath':_0x3715d1,'globalConfig':_0x38c4ef,'projectConfig':_0x341149};}function mergeRawConfigLayers(_0x1ad7ac){const _0xa1b8f1=a68_0x4a00b3,{globalConfig:_0xd9d3ee,projectConfig:_0x3e7dc7}=_0x1ad7ac;if(_0x3e7dc7[_0xa1b8f1(0x138)]===![]){const _0x21899e={..._0x3e7dc7};return delete _0x21899e['inherit'],_0x21899e;}const _0x5af52e={..._0xd9d3ee,..._0x3e7dc7};if(_0xa1b8f1(0x163)in _0x3e7dc7)_0x5af52e[_0xa1b8f1(0x163)]=_0x3e7dc7[_0xa1b8f1(0x163)];else _0xd9d3ee[_0xa1b8f1(0x163)]&&(_0x5af52e[_0xa1b8f1(0x163)]=_0xd9d3ee[_0xa1b8f1(0x163)]);return _0x5af52e;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x46de16){return mergeRawConfigLayers(loadRawConfigLayers(_0x46de16));}export function readRawConfigWithLayers(_0x45dd54){const _0x3f8a9a=loadRawConfigLayers(_0x45dd54);return{'config':mergeRawConfigLayers(_0x3f8a9a),'layers':_0x3f8a9a};}export function resolveDefaultAppSource(_0x45757f){const _0x2491f5=a68_0x4a00b3;if(_0x2491f5(0x163)in _0x45757f[_0x2491f5(0x14a)])return'project';if(_0x45757f['projectConfig'][_0x2491f5(0x138)]===![])return null;if(_0x45757f[_0x2491f5(0x15b)][_0x2491f5(0x163)])return _0x2491f5(0x150);return null;}function buildConfig(_0x39ca1d,_0x5e1b27){const _0x26413d=a68_0x4a00b3,_0x3312d2=_0x39ca1d[_0x26413d(0x163)]||undefined,_0x2e6589=_0x5e1b27[_0x26413d(0x160)]||env(_0x26413d(0x136))||undefined,_0x51c3b0=_0x2e6589||_0x3312d2||undefined,_0x43ba64=env(_0x26413d(0x14d))||_0x39ca1d[_0x26413d(0x157)]||undefined,_0x274705=_0x5e1b27['env']||env(_0x26413d(0x13e))||_0x39ca1d['env']||DEFAULT_CONFIG_VALUES[_0x26413d(0x118)],_0x4cf034=normalizeEnv(String(_0x274705)),_0x4cf965=isDaily(_0x4cf034)?_0x26413d(0x12c):isDev(_0x4cf034)?_0x26413d(0x131):_0x26413d(0x11d),_0x1356b5=typeof _0x5e1b27[_0x26413d(0x14e)]==='string'?_0x5e1b27[_0x26413d(0x14e)]:undefined,_0x3427ff=env(_0x26413d(0x12b)),_0x477f10=_0x2e6589?undefined:_0x39ca1d[_0x26413d(0x14e)]||_0x39ca1d['app']||undefined,_0x6a7eca=_0x2e6589||(_0x477f10?undefined:_0x3312d2),_0x5143b1=resolveLocalAppAliasCode(_0x39ca1d,_0x6a7eca),_0x57c59f=resolveCachedAppCode(_0x6a7eca,_0x4cf965,_0x43ba64),_0x4d64d3=_0x1356b5||_0x3427ff||_0x477f10||_0x5143b1||_0x57c59f||undefined,_0x1ed5cd=_0x1356b5?_0x26413d(0x132):_0x3427ff?'env':_0x477f10?_0x26413d(0x137):_0x5143b1?_0x26413d(0x144):_0x57c59f?_0x26413d(0x11f):undefined,_0x3e09a6=_0x39ca1d[_0x26413d(0x119)]||DEFAULT_CONFIG_VALUES[_0x26413d(0x119)],_0x10c8c8=undefined,_0x2b9fab=_0x5e1b27[_0x26413d(0x15a)]||env(_0x26413d(0x126))||_0x39ca1d[_0x26413d(0x15a)],_0x5c7cdf=normalizeLegacyOutputFormat(_0x2b9fab),_0x1c3126=env(_0x26413d(0x120))||_0x39ca1d['pageSize'],_0x4e35e6=_0x1c3126?Number(_0x1c3126)||undefined:undefined,_0x153935=_0x39ca1d[_0x26413d(0x143)]||_0x39ca1d[_0x26413d(0x15d)],_0x498b6c=_0x153935==='read'||_0x153935==='write'||_0x153935===_0x26413d(0x121)?_0x153935:DEFAULT_CONFIG_VALUES[_0x26413d(0x143)],_0x5644c8=env(_0x26413d(0x12a)),_0x4c1ced=_0x5644c8==='1'||_0x5644c8===_0x26413d(0x15c);return{'appCode':typeof _0x4d64d3===_0x26413d(0x153)&&_0x4d64d3[_0x26413d(0x162)]()?_0x4d64d3['trim']():undefined,'appCodeSource':_0x1ed5cd,'env':_0x4cf965,'locale':_0x3e09a6,'cookie':_0x10c8c8,'accessKey':_0x43ba64,'format':_0x5c7cdf,'pageSize':_0x4e35e6,'riskLevel':_0x498b6c,'verbose':_0x4c1ced,'defaultApp':_0x3312d2,'currentApp':typeof _0x51c3b0===_0x26413d(0x153)?_0x51c3b0:undefined,'raw':_0x39ca1d};}function a68_0x3225(){const _0x3decac=['apiDomain','653180EOzsQs','parse','raw','projectConfig','90ncFdlv','4100475sPdNEY','ACCESS_KEY','appcode','host','global','values','EPERM','string','slice','1788819BcICnE','EACCES','accessKey','message','6062226ZdLxmX','format','globalConfig','true','maxRisk','1125807vYGHIF','join','app','2121960waAUOv','trim','defaultApp','stdout','stdin','online','env','locale','isTTY','project','empty','production','some','cache','PAGE_SIZE','high-risk-write','runtimeDomain','2pOKCLX','find','setLogPath','FORMAT','authRequired','userDomain','setRawMode','VERBOSE','APPCODE','daily','apps','argv','configFileNames','nonInteractive','development','explicit','7JedhhA','newConfigFileName','skillHubDomain','APP','top-level','inherit','./constant/env.js','utf8','EXDEV','code','object','ENV','stringify','./constant/domain.js','.tmp','cwd','riskLevel','local-alias','7850456aHOnBX'];a68_0x3225=function(){return _0x3decac;};return a68_0x3225();}function env(_0x312658){return productEnv(_0x312658);}async function buildAuth(_0x2edc2c){const _0x20b917=a68_0x4a00b3,_0xb98e53='',_0x3a553e=!!_0x2edc2c[_0x20b917(0x157)];return{'cookie':_0xb98e53,'isLoggedIn':_0x3a553e,async 'getOrLogin'(){const _0x38be0e=_0x20b917;if(_0x3a553e)return _0xb98e53;throw CliErrors[_0x38be0e(0x127)]();}};}
@@ -1 +1 @@
1
- (function(_0x55c826,_0x30396e){const _0x4ee068=a69_0x52b7,_0x1362f5=_0x55c826();while(!![]){try{const _0x2a5cb6=-parseInt(_0x4ee068(0x15a))/0x1*(parseInt(_0x4ee068(0x174))/0x2)+parseInt(_0x4ee068(0x17b))/0x3+-parseInt(_0x4ee068(0x175))/0x4*(parseInt(_0x4ee068(0x195))/0x5)+parseInt(_0x4ee068(0x144))/0x6+-parseInt(_0x4ee068(0x198))/0x7+-parseInt(_0x4ee068(0x14f))/0x8+parseInt(_0x4ee068(0x167))/0x9;if(_0x2a5cb6===_0x30396e)break;else _0x1362f5['push'](_0x1362f5['shift']());}catch(_0x255c30){_0x1362f5['push'](_0x1362f5['shift']());}}}(a69_0x3013,0x3c128));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(_0x50a0f9){_activeAK=_0x50a0f9||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x397252,_0x2c5bf9={}){const _0x4e2959=a69_0x52b7,{method:method='GET',body:_0x124f15,headers:headers={},timeout:timeout=0x7530}=_0x2c5bf9,_0x5f31ee=_activeAK,_0xc48ef0=getRuntimeDomain();if(!_0x5f31ee)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x3bcfd8=''+_0xc48ef0+_0x397252,_0x3cd73a={'X-User-AK':_0x5f31ee},_0x1fbab7=new AbortController(),_0x2e6303=setTimeout(()=>_0x1fbab7[_0x4e2959(0x12c)](),timeout);try{const _0x142b29=await fetch(_0x3bcfd8,{'method':method,'headers':{'Content-Type':_0x4e2959(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0x4e2959(0x164)],..._0x3cd73a,...headers},'body':_0x124f15?JSON[_0x4e2959(0x15f)](_0x124f15):undefined,'signal':_0x1fbab7[_0x4e2959(0x125)]});let _0x2db105;try{_0x2db105=await _0x142b29[_0x4e2959(0x17c)]();}catch{throw CliErrors[_0x4e2959(0x135)](_0x4e2959(0x177)+_0x142b29[_0x4e2959(0x163)]+')',_0x142b29['status']>=0x190?_0x4e2959(0x124):undefined);}if(!_0x142b29['ok']||_0x2db105[_0x4e2959(0x191)]===![])throw CliErrors[_0x4e2959(0x135)](_0x2db105[_0x4e2959(0x127)]||_0x2db105['message']||_0x4e2959(0x190)+_0x142b29[_0x4e2959(0x163)],_0x2db105[_0x4e2959(0x121)]?'API\x20error\x20code:\x20'+_0x2db105[_0x4e2959(0x121)]:undefined);return _0x2db105;}catch(_0x298625){if(_0x298625 instanceof Error&&_0x298625[_0x4e2959(0x13b)]===_0x4e2959(0x13d))throw CliErrors[_0x4e2959(0x135)](_0x4e2959(0x131)+_0x3bcfd8);throw _0x298625;}finally{clearTimeout(_0x2e6303);}}async function apiBinaryRequest(_0x253763,_0x2ce2e2={}){const _0x3eb223=a69_0x52b7,{method:method=_0x3eb223(0x178),headers:headers={},timeout:timeout=0x7530}=_0x2ce2e2,_0x1e45d8=_activeAK,_0x411ad8=getRuntimeDomain();if(!_0x1e45d8)throw CliErrors[_0x3eb223(0x16b)](_0x3eb223(0x16f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x192236=''+_0x411ad8+_0x253763,_0x4264ca=new AbortController(),_0x4bcb2b=setTimeout(()=>_0x4264ca[_0x3eb223(0x12c)](),timeout);try{const _0xd94bd1=await fetch(_0x192236,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3eb223(0x164)],'X-User-AK':_0x1e45d8,...headers},'signal':_0x4264ca[_0x3eb223(0x125)]});if(!_0xd94bd1['ok']){let _0x30882e;try{const _0x23cb5c=await _0xd94bd1[_0x3eb223(0x17c)]();_0x30882e=_0x23cb5c[_0x3eb223(0x127)]||_0x23cb5c[_0x3eb223(0x16d)]||_0x23cb5c['errorCode'];}catch{_0x30882e=await _0xd94bd1['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x30882e||'API\x20error:\x20'+_0xd94bd1['status'],'Download\x20failed:\x20'+_0x192236);}return Buffer[_0x3eb223(0x186)](await _0xd94bd1[_0x3eb223(0x117)]());}catch(_0x317c6b){if(_0x317c6b instanceof Error&&_0x317c6b['name']===_0x3eb223(0x13d))throw CliErrors[_0x3eb223(0x135)]('Request\x20timeout:\x20'+_0x192236);throw _0x317c6b;}finally{clearTimeout(_0x4bcb2b);}}async function toolboxRequest(_0x135bc4,_0x2b4a27,_0x5a7b9d={}){const _0x476fda=a69_0x52b7,{method:method=_0x476fda(0x178),headers:headers={},timeout:timeout=0x7530}=_0x5a7b9d,_0x2bb0f6=_activeAK;if(!_0x2bb0f6)throw CliErrors['authRequired'](_0x476fda(0x16f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x53094b=getApiDomain()[_0x476fda(0x16a)](/\/$/,''),_0x5017a0=new URL(_0x135bc4,_0x53094b+_0x476fda(0x166));if(_0x2b4a27)for(const [_0x6d09be,_0x204df5]of Object[_0x476fda(0x176)](_0x2b4a27)){_0x204df5!==undefined&&_0x204df5!==null&&_0x5017a0[_0x476fda(0x18a)][_0x476fda(0x153)](_0x6d09be,String(_0x204df5));}const _0x4f331f=new AbortController(),_0x542d79=setTimeout(()=>_0x4f331f[_0x476fda(0x12c)](),timeout);try{const _0x143b2c=await fetch(_0x5017a0,{'method':method,'headers':{'Content-Type':_0x476fda(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0x476fda(0x164)],'X-User-AK':_0x2bb0f6,...headers},'signal':_0x4f331f[_0x476fda(0x125)]});let _0x6152bf;try{_0x6152bf=await _0x143b2c['json']();}catch{throw CliErrors['apiError']('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x143b2c[_0x476fda(0x163)]+')',_0x143b2c[_0x476fda(0x163)]>=0x190?_0x476fda(0x124):undefined);}if(!_0x143b2c['ok']){const _0x35b983=_0x6152bf&&typeof _0x6152bf===_0x476fda(0x171)?_0x6152bf:{};throw CliErrors[_0x476fda(0x135)](_0x35b983[_0x476fda(0x127)]||_0x35b983[_0x476fda(0x16d)]||_0x476fda(0x12e)+_0x143b2c['status'],_0x35b983[_0x476fda(0x121)]?_0x476fda(0x120)+_0x35b983[_0x476fda(0x121)]:undefined);}if(_0x6152bf&&typeof _0x6152bf===_0x476fda(0x171)&&_0x476fda(0x191)in _0x6152bf&&typeof _0x6152bf[_0x476fda(0x191)]===_0x476fda(0x17f)){const _0x28144f=_0x6152bf;if(!_0x28144f[_0x476fda(0x191)])throw CliErrors[_0x476fda(0x135)](_0x28144f['errorMsg']||_0x28144f[_0x476fda(0x16d)]||'Toolbox\x20API\x20error',_0x28144f['errorCode']?_0x476fda(0x120)+_0x28144f[_0x476fda(0x121)]:undefined);return _0x28144f[_0x476fda(0x143)];}return _0x6152bf;}catch(_0x467c72){if(_0x467c72 instanceof Error&&_0x467c72[_0x476fda(0x13b)]===_0x476fda(0x13d))throw CliErrors['apiError'](_0x476fda(0x131)+_0x5017a0['toString']());throw _0x467c72;}finally{clearTimeout(_0x542d79);}}async function skillHubJsonRequest(_0x2c2543,_0x411d04={}){const _0xcd2a87=a69_0x52b7,{method:method=_0xcd2a87(0x178),query:_0x26c766,body:_0x13d794,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x411d04,_0x4a4822=_activeAK;if(!_0x4a4822)throw CliErrors[_0xcd2a87(0x16b)](_0xcd2a87(0x16f)+PRODUCT_CONFIG[_0xcd2a87(0x184)]+'.');const _0x26c2fd=getSkillHubDomain()[_0xcd2a87(0x16a)](/\/$/,''),_0x2432c2=new URL(_0x2c2543,_0x26c2fd+'/');if(_0x26c766)for(const [_0x3fd890,_0x299d6d]of Object['entries'](_0x26c766)){_0x299d6d!==undefined&&_0x299d6d!==null&&_0x2432c2['searchParams']['set'](_0x3fd890,String(_0x299d6d));}const _0x478357=new AbortController(),_0xefa45f=setTimeout(()=>_0x478357[_0xcd2a87(0x12c)](),timeout);try{const _0x394041=await fetch(_0x2432c2[_0xcd2a87(0x151)](),{'method':method,'headers':{'Accept':_0xcd2a87(0x145),'X-Invoke-Source':PRODUCT_CONFIG[_0xcd2a87(0x164)],'X-User-AK':_0x4a4822,...headers},'body':_0x13d794,'signal':_0x478357[_0xcd2a87(0x125)]});let _0x5775eb;try{_0x5775eb=await _0x394041['json']();}catch{if(allowNotFound&&_0x394041['status']===0x194)return undefined;throw CliErrors[_0xcd2a87(0x135)](_0xcd2a87(0x17e)+_0x394041[_0xcd2a87(0x163)]+')',_0x394041[_0xcd2a87(0x163)]>=0x190?_0xcd2a87(0x124):undefined);}if(allowNotFound&&(_0x394041[_0xcd2a87(0x163)]===0x194||_0x5775eb?.[_0xcd2a87(0x173)]===0x194))return undefined;const _0x4ed99f=!_0x394041['ok']||_0x5775eb?.['success']===![]||typeof _0x5775eb?.[_0xcd2a87(0x173)]==='number'&&_0x5775eb[_0xcd2a87(0x173)]>=0x190;if(_0x4ed99f)throw CliErrors[_0xcd2a87(0x135)](_0x5775eb?.['errorMsg']||_0x5775eb?.[_0xcd2a87(0x16d)]||_0x5775eb?.[_0xcd2a87(0x183)]||_0xcd2a87(0x181)+_0x394041[_0xcd2a87(0x163)],_0x5775eb?.[_0xcd2a87(0x121)]?_0xcd2a87(0x122)+_0x5775eb[_0xcd2a87(0x121)]:undefined);return _0x5775eb?.[_0xcd2a87(0x143)]??_0x5775eb;}catch(_0xfdbc94){if(_0xfdbc94 instanceof Error&&_0xfdbc94[_0xcd2a87(0x13b)]===_0xcd2a87(0x13d))throw CliErrors[_0xcd2a87(0x135)](_0xcd2a87(0x131)+_0x2432c2[_0xcd2a87(0x151)]());throw _0xfdbc94;}finally{clearTimeout(_0xefa45f);}}async function skillHubBinaryRequest(_0x59182a,_0x1e6baa={}){const _0x1e1176=a69_0x52b7,{query:_0x29c1ac,headers:headers={},timeout:timeout=0x7530}=_0x1e6baa,_0x47d750=_activeAK;if(!_0x47d750)throw CliErrors['authRequired'](_0x1e1176(0x16f)+PRODUCT_CONFIG[_0x1e1176(0x184)]+'.');const _0x124b63=getSkillHubDomain()[_0x1e1176(0x16a)](/\/$/,''),_0x12a1bf=new URL(_0x59182a,_0x124b63+'/');if(_0x29c1ac)for(const [_0xc7d45f,_0x552ca8]of Object[_0x1e1176(0x176)](_0x29c1ac)){_0x552ca8!==undefined&&_0x552ca8!==null&&_0x12a1bf[_0x1e1176(0x18a)][_0x1e1176(0x153)](_0xc7d45f,String(_0x552ca8));}const _0x16d982=new AbortController(),_0xf9d2f=setTimeout(()=>_0x16d982['abort'](),timeout);try{const _0x23051b=await fetch(_0x12a1bf[_0x1e1176(0x151)](),{'method':_0x1e1176(0x178),'headers':{'Accept':_0x1e1176(0x146),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x47d750,...headers},'signal':_0x16d982['signal']});if(!_0x23051b['ok']){let _0x1d4fad;try{const _0x127808=await _0x23051b[_0x1e1176(0x17c)]();_0x1d4fad=_0x127808[_0x1e1176(0x127)]||_0x127808['message']||_0x127808[_0x1e1176(0x183)]||_0x127808[_0x1e1176(0x121)];}catch{_0x1d4fad=await _0x23051b['text']()[_0x1e1176(0x179)](()=>undefined);}throw CliErrors[_0x1e1176(0x135)](_0x1d4fad||'SkillHub\x20API\x20error:\x20'+_0x23051b[_0x1e1176(0x163)],_0x1e1176(0x152)+_0x12a1bf[_0x1e1176(0x151)]());}return Buffer[_0x1e1176(0x186)](await _0x23051b[_0x1e1176(0x117)]());}catch(_0x555668){if(_0x555668 instanceof Error&&_0x555668[_0x1e1176(0x13b)]===_0x1e1176(0x13d))throw CliErrors['apiError'](_0x1e1176(0x131)+_0x12a1bf[_0x1e1176(0x151)]());throw _0x555668;}finally{clearTimeout(_0xf9d2f);}}export async function getBffScriptInfo(_0x579638){const _0x4d4ca0=a69_0x52b7,_0x3fcf03=await apiRequest(_0x4d4ca0(0x188)+_0x579638);if(!_0x3fcf03[_0x4d4ca0(0x143)])throw CliErrors[_0x4d4ca0(0x170)]('BFF\x20script\x20not\x20found:\x20id='+_0x579638);return _0x3fcf03['data'];}export async function getSqlQueryInfo(_0x549fce,_0x21d4d9){const _0x48ecfd=a69_0x52b7,_0x1eaf5f=await apiRequest(_0x48ecfd(0x13c),{'method':_0x48ecfd(0x12b),'body':{'appCode':_0x549fce,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x21d4d9}}),_0x291905=_0x1eaf5f[_0x48ecfd(0x143)],_0x3a49ba=_0x291905&&typeof _0x291905===_0x48ecfd(0x171)&&_0x48ecfd(0x160)in _0x291905?_0x291905['tableData']?.[0x0]:_0x291905&&typeof _0x291905===_0x48ecfd(0x171)&&_0x48ecfd(0x11f)in _0x291905?_0x291905:undefined;if(!_0x3a49ba)throw CliErrors['validation'](_0x48ecfd(0x194)+_0x21d4d9);return _0x3a49ba;}function isRemoteAppItem(_0x1b8f7e){const _0x4b5b37=a69_0x52b7;return!!_0x1b8f7e&&typeof _0x1b8f7e==='object'&&typeof _0x1b8f7e['appCode']===_0x4b5b37(0x18b)&&typeof _0x1b8f7e[_0x4b5b37(0x189)]===_0x4b5b37(0x18b);}function extractRemoteAppItems(_0x5c0745){const _0x14cd70=a69_0x52b7;if(Array[_0x14cd70(0x17d)](_0x5c0745))return _0x5c0745[_0x14cd70(0x15b)](isRemoteAppItem);if(!_0x5c0745||typeof _0x5c0745!==_0x14cd70(0x171))throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x169352=_0x5c0745;if(Array[_0x14cd70(0x17d)](_0x169352['tableData']))return _0x169352[_0x14cd70(0x160)][_0x14cd70(0x15b)](isRemoteAppItem);if(_0x169352[_0x14cd70(0x143)]&&typeof _0x169352['data']===_0x14cd70(0x171)){const _0x3a2c25=_0x169352[_0x14cd70(0x143)];if(Array[_0x14cd70(0x17d)](_0x3a2c25['tableData']))return _0x3a2c25['tableData'][_0x14cd70(0x15b)](isRemoteAppItem);}throw CliErrors['apiError'](_0x14cd70(0x157));}function a69_0x3013(){const _0x1ce84f=['toString','Download\x20failed:\x20','set','all','ownerPreviewVersion','/client/dataset/list','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','tags','summary','62642EdlXxo','filter','artifactType','.zip','namespace','stringify','tableData','/client/artifact/create','topK','status','invokeSource','items','/api/node-toolbox/','1248309oTMrax','toLowerCase','/client/runtime-bff/personal/create','replace','authRequired','/execute?appCode=','message','/download','Configure\x20accessKey\x20in\x20','validation','object','Personal\x20BFF\x20not\x20found:\x20id=','code','4aECPVg','926284rAdOwp','entries','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','GET','catch','valid','813636LoBwJo','json','isArray','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','boolean','/versions/','SkillHub\x20API\x20error:\x20','confirmWarnings','msg','newConfigFileName','base64','from','/client/knowledge-base/personal/','/client/bff/query/','appName','searchParams','string','skillCode','/publish/validate','/client/dataset/get-driven-data?code=','values','API\x20error:\x20','success','description','slug','SQL\x20query\x20not\x20found:\x20','5LmkonT','/client/user/loginUserInfo','Artifact\x20not\x20found:\x20id=','1330595REgWhw','arrayBuffer','version','/client/knowledge-base/personal/list?appCode=','App\x20config\x20not\x20found:\x20key=','content','/skills','/client/artifact/','/api/v1/skills/','sqlCode','Toolbox\x20error\x20code:\x20','errorCode','SkillHub\x20error\x20code:\x20','/api/cli/v1/skills/','Check\x20your\x20credentials\x20and\x20try\x20again.','signal','/publish','errorMsg','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','personal','PRIVATE','POST','abort','resolvedVersion','Toolbox\x20API\x20error:\x20','trim','Missing\x20Skill\x20package\x20payload.','Request\x20timeout:\x20','favorite','Knowledge-base\x20entry\x20not\x20found:\x20id=','headlineVersion','apiError','?appCode=','NAMESPACE_ONLY','displayName','visibility','application/zip','name','/client/sql/query','AbortError','skillName','/client/knowledge-base/personal/create','resolvedSlug','appCode','packageBase64','data','2336364JWPFFx','application/json','application/octet-stream','/update','/client/artifact/list?','/client/runtime-bff/personal/','errors','scope','source','api-doc-generator','company','50488PhytLq','warnings'];a69_0x3013=function(){return _0x1ce84f;};return a69_0x3013();}export async function getMyApps(){const _0x376412=a69_0x52b7,_0x56a04e=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x56a04e[_0x376412(0x143)]);}export async function getLoginUserInfo(){const _0x237049=a69_0x52b7,_0xd9da8b=await apiRequest(_0x237049(0x196));if(!_0xd9da8b[_0x237049(0x143)]||typeof _0xd9da8b[_0x237049(0x143)]!=='object'||Array[_0x237049(0x17d)](_0xd9da8b['data']))throw CliErrors[_0x237049(0x135)](_0x237049(0x128));return _0xd9da8b['data'];}export async function listDatasets(_0x31533a,_0x131ca8){const _0x210eb1=a69_0x52b7,_0x358657=await apiRequest(_0x210eb1(0x156),{'method':'POST','body':{'appCode':_0x31533a,..._0x131ca8?.[_0x210eb1(0x173)]&&{'code':_0x131ca8[_0x210eb1(0x173)]},..._0x131ca8?.[_0x210eb1(0x13b)]&&{'name':_0x131ca8[_0x210eb1(0x13b)]}}});return extractList(_0x358657[_0x210eb1(0x143)]);}export async function getDatasetDetail(_0x31302c){const _0x31e037=a69_0x52b7,_0x8490c7=await apiRequest(_0x31e037(0x18e)+encodeURIComponent(_0x31302c));return _0x8490c7[_0x31e037(0x143)];}export async function getDatasetSdkUsageDoc(_0x3efbae,_0x16ef7c){const _0x6f3f3d=a69_0x52b7,_0x5babdc=await toolboxRequest(_0x6f3f3d(0x14d),{'datasetCode':_0x3efbae,'appCode':_0x16ef7c});return typeof _0x5babdc?.['markdown']===_0x6f3f3d(0x18b)?_0x5babdc['markdown']:'';}export async function getRuntimeAppConfigByKey(_0x2b1a1c,_0x373ee7){const _0x543879=a69_0x52b7,_0x3e8b83=new URLSearchParams({'appCode':_0x2b1a1c,'key':_0x373ee7}),_0x258a35=await apiRequest('/client/app-config/getByKey?'+_0x3e8b83[_0x543879(0x151)]());if(!_0x258a35[_0x543879(0x143)])throw CliErrors[_0x543879(0x170)](_0x543879(0x11a)+_0x373ee7);return _0x258a35[_0x543879(0x143)];}export async function listRuntimeArtifacts(_0x4daa5a,_0x3383fe){const _0x35a78c=a69_0x52b7,_0x319d8a=new URLSearchParams({'appCode':_0x4daa5a});if(_0x3383fe?.[_0x35a78c(0x15c)])_0x319d8a['set']('artifactType',_0x3383fe[_0x35a78c(0x15c)]);if(_0x3383fe?.['source'])_0x319d8a[_0x35a78c(0x153)](_0x35a78c(0x14c),_0x3383fe[_0x35a78c(0x14c)]);if(_0x3383fe?.[_0x35a78c(0x132)]!==undefined)_0x319d8a[_0x35a78c(0x153)]('favorite',String(_0x3383fe[_0x35a78c(0x132)]));const _0x550522=await apiRequest(_0x35a78c(0x148)+_0x319d8a[_0x35a78c(0x151)]());return Array[_0x35a78c(0x17d)](_0x550522['data'])?_0x550522[_0x35a78c(0x143)]:[];}export async function getRuntimeArtifact(_0x101543,_0x3669fb){const _0x1f93a6=a69_0x52b7,_0x5008e5=await apiRequest(_0x1f93a6(0x11d)+_0x101543+_0x1f93a6(0x136)+encodeURIComponent(_0x3669fb));if(!_0x5008e5['data'])throw CliErrors['validation'](_0x1f93a6(0x197)+_0x101543);return _0x5008e5[_0x1f93a6(0x143)];}export async function createRuntimeArtifact(_0x35c567,_0xdb1af5){const _0x5abb4c=a69_0x52b7,_0x4e45c3=await apiRequest(_0x5abb4c(0x161),{'method':'POST','body':{'appCode':_0x35c567,..._0xdb1af5}});return _0x4e45c3[_0x5abb4c(0x143)];}export async function updateRuntimeArtifact(_0xcc9ed7,_0x18e008,_0x344e0a){const _0x1a1553=a69_0x52b7,_0x75948d=await apiRequest('/client/artifact/'+_0xcc9ed7+'/update',{'method':_0x1a1553(0x12b),'body':{'appCode':_0x18e008,..._0x344e0a}});return _0x75948d[_0x1a1553(0x143)];}export async function listPersonalBffs(_0x3851a3){const _0x2e35d2=a69_0x52b7,_0x472728=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x3851a3));return Array[_0x2e35d2(0x17d)](_0x472728[_0x2e35d2(0x143)])?_0x472728[_0x2e35d2(0x143)]:[];}export async function getPersonalBff(_0xd30289,_0x3af178){const _0x19565e=a69_0x52b7,_0x1d85e0=await apiRequest(_0x19565e(0x149)+_0xd30289+_0x19565e(0x136)+encodeURIComponent(_0x3af178));if(!_0x1d85e0['data'])throw CliErrors[_0x19565e(0x170)](_0x19565e(0x172)+_0xd30289);return _0x1d85e0['data'];}export async function createPersonalBff(_0x3bcbae,_0x1633b1){const _0x1eadb0=a69_0x52b7,_0xfdf9e1=await apiRequest(_0x1eadb0(0x169),{'method':'POST','body':{'appCode':_0x3bcbae,..._0x1633b1}});return _0xfdf9e1[_0x1eadb0(0x143)];}export async function updatePersonalBff(_0x2b8d3f,_0x189dd7,_0x2d3f03){const _0x162406=a69_0x52b7,_0x14af64=await apiRequest(_0x162406(0x149)+_0x2b8d3f+'/update',{'method':_0x162406(0x12b),'body':{'appCode':_0x189dd7,..._0x2d3f03}});return _0x14af64['data'];}export async function executePersonalBff(_0x1ece85,_0x29b547,_0x4875a2){const _0x29961d=a69_0x52b7,_0x5f23fa=await apiRequest(_0x29961d(0x149)+_0x1ece85+_0x29961d(0x16c)+encodeURIComponent(_0x29b547),{'method':_0x29961d(0x12b),'body':_0x4875a2});return _0x5f23fa[_0x29961d(0x143)];}export async function listPersonalKnowledgeBaseItems(_0x33aa96){const _0x49f9a3=a69_0x52b7,_0x248fb7=await apiRequest(_0x49f9a3(0x119)+encodeURIComponent(_0x33aa96));return Array[_0x49f9a3(0x17d)](_0x248fb7['data'])?_0x248fb7['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x3b890a,_0x426e1c){const _0x5e378f=a69_0x52b7,_0x2f4027=await apiRequest(_0x5e378f(0x187)+_0x3b890a+'?appCode='+encodeURIComponent(_0x426e1c));if(!_0x2f4027[_0x5e378f(0x143)])throw CliErrors['validation'](_0x5e378f(0x133)+_0x3b890a);return _0x2f4027['data'];}export async function createPersonalKnowledgeBaseItem(_0x1bf0e4,_0x10378a){const _0x3d9b61=a69_0x52b7,_0x3a247e=await apiRequest(_0x3d9b61(0x13f),{'method':_0x3d9b61(0x12b),'body':{'appCode':_0x1bf0e4,..._0x10378a}});return _0x3a247e[_0x3d9b61(0x143)];}export async function updatePersonalKnowledgeBaseItem(_0x24165,_0x371fda,_0x43d3a1){const _0x525acf=a69_0x52b7,_0x45b69a=await apiRequest('/client/knowledge-base/personal/'+_0x24165+_0x525acf(0x147),{'method':_0x525acf(0x12b),'body':{'appCode':_0x371fda,..._0x43d3a1}});return _0x45b69a[_0x525acf(0x143)];}export async function searchKnowledgeBase(_0x3ec2cd,_0x483d6a){const _0x2b4d22=a69_0x52b7,_0x51bed8=await apiRequest('/client/knowledge-base/search',{'method':_0x2b4d22(0x12b),'body':{'appCode':_0x3ec2cd,'query':_0x483d6a['query'],..._0x483d6a[_0x2b4d22(0x162)]!==undefined?{'topK':_0x483d6a[_0x2b4d22(0x162)]}:{}}});return Array[_0x2b4d22(0x17d)](_0x51bed8[_0x2b4d22(0x143)])?_0x51bed8[_0x2b4d22(0x143)]:[];}export async function getRuntimeSkillByCode(_0x14a02c,_0x2e1013){const _0x47ce9f=a69_0x52b7,_0x46596a=await skillHubJsonRequest(_0x47ce9f(0x11e)+encodeURIComponent(_0x14a02c)+'/'+encodeURIComponent(_0x2e1013),{'allowNotFound':!![]});return _0x46596a?skillHubRuntimeDetailToRuntimeSkill(_0x46596a):undefined;}export async function listRuntimeSkills(_0x6c5a1b){const _0x4c9c58=a69_0x52b7,_0x127413=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x6c5a1b['appCode'])+_0x4c9c58(0x11c),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x6c5a1b[_0x4c9c58(0x141)],_0x127413,_0x6c5a1b['scope']??_0x4c9c58(0x154),_0x6c5a1b[_0x4c9c58(0x173)]);}export async function listPersonalRuntimeSkills(_0x58d396){const _0x1939f2=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x58d396,'scope':_0x1939f2(0x129)}))['personal'];}export async function listCompanyRuntimeSkills(_0x226ac7){const _0x505dcf=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x226ac7,'scope':_0x505dcf(0x14e)}))['company'];}export async function listVisibleRuntimeSkills(_0x5b217a){const _0x25e414=a69_0x52b7;return(await listRuntimeSkills({'appCode':_0x5b217a,'scope':_0x25e414(0x154)}))['effective'];}export async function createPersonalRuntimeSkill(_0xef5b79,_0xedf81b){const _0x43b7a4=a69_0x52b7;return publishRuntimeSkill(_0xef5b79,_0xedf81b,{'visibility':_0x43b7a4(0x12a)});}export async function updatePersonalRuntimeSkill(_0x563713,_0x6f6a3f,_0x4e0c6f){const _0x4655af=a69_0x52b7;return publishRuntimeSkill(_0x6f6a3f,{..._0x4e0c6f,'skillCode':_0x4e0c6f[_0x4655af(0x18c)]??_0x563713},{'visibility':_0x4655af(0x12a)});}export async function publishCompanyRuntimeSkill(_0x389b50,_0x3b9068,_0x5af6e4={}){const _0x26bc1d=a69_0x52b7;return publishRuntimeSkill(_0x389b50,_0x3b9068,{'visibility':_0x26bc1d(0x137),'confirmWarnings':_0x5af6e4[_0x26bc1d(0x182)]});}function a69_0x52b7(_0x5ac027,_0x1e4314){_0x5ac027=_0x5ac027-0x117;const _0x3013c1=a69_0x3013();let _0x52b709=_0x3013c1[_0x5ac027];return _0x52b709;}export async function validateRuntimeSkillPublish(_0x2cb050,_0xd408f,_0x266c11){const _0x2daf36=a69_0x52b7,_0x139d74=buildRuntimeSkillPublishForm(_0xd408f,_0x266c11[_0x2daf36(0x139)]),_0x4407f1=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2cb050)+_0x2daf36(0x18d),{'method':_0x2daf36(0x12b),'body':_0x139d74});return{'valid':_0x4407f1[_0x2daf36(0x17a)]===!![],'errors':Array[_0x2daf36(0x17d)](_0x4407f1[_0x2daf36(0x14a)])?_0x4407f1['errors']:[],'warnings':Array[_0x2daf36(0x17d)](_0x4407f1['warnings'])?_0x4407f1[_0x2daf36(0x150)]:[],'resolvedSlug':_0x4407f1[_0x2daf36(0x140)],'resolvedVersion':_0x4407f1[_0x2daf36(0x12d)]};}export async function downloadRuntimeSkillPackage(_0x3c27af,_0x48d60b,_0x3e5b23,_0x4ccfb6){const _0xa20ead=a69_0x52b7;void _0x3c27af;const _0x54cc29=_0x4ccfb6?_0xa20ead(0x123)+encodeURIComponent(_0x3e5b23)+'/'+encodeURIComponent(_0x48d60b)+_0xa20ead(0x180)+encodeURIComponent(_0x4ccfb6)+_0xa20ead(0x16e):_0xa20ead(0x123)+encodeURIComponent(_0x3e5b23)+'/'+encodeURIComponent(_0x48d60b)+_0xa20ead(0x16e);return skillHubBinaryRequest(_0x54cc29);}async function publishRuntimeSkill(_0x3b2c52,_0x20b635,_0x1e0eee){const _0x2e7a3e=a69_0x52b7,_0x167947=buildRuntimeSkillPublishForm(_0x20b635,_0x1e0eee[_0x2e7a3e(0x139)]),_0xf3d88c=await skillHubJsonRequest(_0x2e7a3e(0x123)+encodeURIComponent(_0x3b2c52)+_0x2e7a3e(0x126),{'method':_0x2e7a3e(0x12b),'query':{'confirmWarnings':_0x1e0eee['confirmWarnings']===!![]?!![]:undefined},'body':_0x167947});return{'appCode':_0xf3d88c[_0x2e7a3e(0x15e)]??_0x3b2c52,'skillCode':_0xf3d88c[_0x2e7a3e(0x193)]??_0x20b635[_0x2e7a3e(0x18c)]??'','skillName':_0x20b635[_0x2e7a3e(0x13e)]??_0xf3d88c[_0x2e7a3e(0x193)]??_0x20b635[_0x2e7a3e(0x18c)],'description':_0x20b635[_0x2e7a3e(0x192)],'scope':skillHubVisibilityToScope(_0xf3d88c[_0x2e7a3e(0x139)]??_0x1e0eee[_0x2e7a3e(0x139)])??_0x2e7a3e(0x129),'version':_0xf3d88c[_0x2e7a3e(0x118)]??_0x20b635[_0x2e7a3e(0x118)],'tags':_0x20b635[_0x2e7a3e(0x158)],'content':_0x20b635[_0x2e7a3e(0x11b)]};}function buildRuntimeSkillPublishForm(_0xece5e9,_0xf734f5){const _0x1847cc=a69_0x52b7,_0x4e7b5f=new FormData();return _0x4e7b5f[_0x1847cc(0x153)]('file',runtimeSkillPackageFile(_0xece5e9)),_0x4e7b5f['set'](_0x1847cc(0x139),_0xf734f5),_0x4e7b5f;}function runtimeSkillPackageFile(_0x3d12c8){const _0x29d588=a69_0x52b7;if(!_0x3d12c8[_0x29d588(0x142)])throw CliErrors[_0x29d588(0x170)](_0x29d588(0x130));const _0x48dfa7=Buffer[_0x29d588(0x186)](_0x3d12c8['packageBase64'],_0x29d588(0x185)),_0x2b6c82=new Blob([_0x48dfa7],{'type':_0x29d588(0x13a)}),_0x46d268=(_0x3d12c8[_0x29d588(0x18c)]||'skill')+_0x29d588(0x15d);if(typeof File!=='undefined')return new File([_0x2b6c82],_0x46d268,{'type':_0x29d588(0x13a)});return _0x2b6c82;}function normalizeSkillHubRuntimeListResponse(_0x502220,_0x571b29,_0x223438,_0x13ee33){const _0x18873b=a69_0x52b7,_0x8b5dfc=Array['isArray'](_0x571b29)?_0x571b29:Array['isArray'](_0x571b29?.[_0x18873b(0x165)])?_0x571b29[_0x18873b(0x165)]:[],_0x11b149=_0x13ee33?.[_0x18873b(0x12f)](),_0x31f63f=_0x8b5dfc[_0x18873b(0x15b)](_0x167884=>!_0x11b149||_0x167884[_0x18873b(0x193)]===_0x11b149)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x18873b(0x15b)](_0x22b0d0=>Boolean(_0x22b0d0)),_0x372120=_0x31f63f[_0x18873b(0x15b)](_0x522074=>_0x522074['scope']===_0x18873b(0x129)),_0x58bf6c=_0x31f63f[_0x18873b(0x15b)](_0x5da5cf=>_0x5da5cf['scope']==='company');return{'appCode':_0x502220,'personal':_0x223438===_0x18873b(0x14e)?[]:_0x372120,'company':_0x223438===_0x18873b(0x129)?[]:_0x58bf6c,'effective':buildEffectiveRuntimeSkills(_0x372120,_0x58bf6c,_0x223438)};}function skillHubRuntimeItemToRuntimeSkill(_0x52002f){const _0x1afaac=a69_0x52b7,_0x3ffab5=_0x52002f['slug']?.[_0x1afaac(0x12f)](),_0x328805=skillHubVisibilityToScope(_0x52002f['visibility']);if(!_0x3ffab5||!_0x328805)return undefined;return{'id':_0x52002f['id'],'appCode':_0x52002f[_0x1afaac(0x15e)],'skillCode':_0x3ffab5,'skillName':_0x52002f['displayName']??_0x3ffab5,'description':_0x52002f['summary'],'scope':_0x328805,'version':skillHubRuntimeItemVersion(_0x52002f),'status':_0x52002f[_0x1afaac(0x163)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x41cf05){const _0x3c30af=a69_0x52b7,_0x9308d2=_0x41cf05['slug']?.[_0x3c30af(0x12f)]();if(!_0x9308d2)return undefined;return{'id':_0x41cf05['id'],'appCode':_0x41cf05[_0x3c30af(0x15e)],'skillCode':_0x9308d2,'skillName':_0x41cf05[_0x3c30af(0x138)]??_0x9308d2,'description':_0x41cf05[_0x3c30af(0x159)],'scope':skillHubVisibilityToScope(_0x41cf05[_0x3c30af(0x139)])??_0x41cf05[_0x3c30af(0x139)]?.[_0x3c30af(0x168)](),'version':skillHubRuntimeItemVersion(_0x41cf05),'status':_0x41cf05[_0x3c30af(0x163)]};}function skillHubVisibilityToScope(_0x12b27b){const _0x34f7b3=a69_0x52b7;if(_0x12b27b===_0x34f7b3(0x12a))return _0x34f7b3(0x129);if(_0x12b27b==='NAMESPACE_ONLY')return _0x34f7b3(0x14e);return undefined;}function skillHubRuntimeItemVersion(_0x60a6eb){const _0xcea598=a69_0x52b7;return _0x60a6eb['publishedVersion']?.[_0xcea598(0x118)]??_0x60a6eb[_0xcea598(0x134)]?.[_0xcea598(0x118)]??_0x60a6eb[_0xcea598(0x155)]?.[_0xcea598(0x118)];}function buildEffectiveRuntimeSkills(_0x3e7032,_0x478f3a,_0x42be8a){const _0x3050ba=a69_0x52b7;if(_0x42be8a===_0x3050ba(0x129))return _0x3e7032;if(_0x42be8a===_0x3050ba(0x14e))return _0x478f3a;const _0x102cf7=new Map();for(const _0x41929f of _0x478f3a){_0x102cf7[_0x3050ba(0x153)](_0x41929f[_0x3050ba(0x18c)],_0x41929f);}for(const _0x115f26 of _0x3e7032){_0x102cf7['set'](_0x115f26['skillCode'],_0x115f26);}return Array[_0x3050ba(0x186)](_0x102cf7[_0x3050ba(0x18f)]());}function normalizeRuntimeSkillListResponse(_0x5e3885,_0x33a9a0){const _0x4a8607=a69_0x52b7;if(Array[_0x4a8607(0x17d)](_0x33a9a0)){const _0x18b3bf=_0x33a9a0[_0x4a8607(0x15b)](_0x365612=>_0x365612[_0x4a8607(0x14b)]===_0x4a8607(0x129)),_0x5a57aa=_0x33a9a0[_0x4a8607(0x15b)](_0x33ef7d=>_0x33ef7d[_0x4a8607(0x14b)]==='company');return{'appCode':_0x5e3885,'personal':_0x18b3bf,'company':_0x5a57aa,'effective':[..._0x5a57aa,..._0x18b3bf]};}return{'appCode':_0x33a9a0?.[_0x4a8607(0x141)]??_0x5e3885,'personal':Array[_0x4a8607(0x17d)](_0x33a9a0?.[_0x4a8607(0x129)])?_0x33a9a0['personal']:[],'company':Array[_0x4a8607(0x17d)](_0x33a9a0?.[_0x4a8607(0x14e)])?_0x33a9a0[_0x4a8607(0x14e)]:[],'effective':Array['isArray'](_0x33a9a0?.['effective'])?_0x33a9a0['effective']:[]};}
1
+ (function(_0x452d8c,_0x506995){const _0x5accf5=a69_0x1967,_0x4e9c0e=_0x452d8c();while(!![]){try{const _0x5bed0d=-parseInt(_0x5accf5(0x250))/0x1*(parseInt(_0x5accf5(0x1fd))/0x2)+-parseInt(_0x5accf5(0x223))/0x3*(-parseInt(_0x5accf5(0x238))/0x4)+-parseInt(_0x5accf5(0x233))/0x5*(-parseInt(_0x5accf5(0x205))/0x6)+parseInt(_0x5accf5(0x270))/0x7+parseInt(_0x5accf5(0x26a))/0x8*(parseInt(_0x5accf5(0x225))/0x9)+parseInt(_0x5accf5(0x1f6))/0xa+parseInt(_0x5accf5(0x269))/0xb*(-parseInt(_0x5accf5(0x1ed))/0xc);if(_0x5bed0d===_0x506995)break;else _0x4e9c0e['push'](_0x4e9c0e['shift']());}catch(_0x22ef2e){_0x4e9c0e['push'](_0x4e9c0e['shift']());}}}(a69_0x28eb,0xbf06a));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(_0x43a3c7){_activeAK=_0x43a3c7||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2f6a4a,_0xb1cce0={}){const _0x5b44c7=a69_0x1967,{method:method=_0x5b44c7(0x213),body:_0x5d70c3,headers:headers={},timeout:timeout=0x7530}=_0xb1cce0,_0x29479d=_activeAK,_0x1cbb18=getRuntimeDomain();if(!_0x29479d)throw CliErrors['authRequired'](_0x5b44c7(0x1fc)+PRODUCT_CONFIG[_0x5b44c7(0x251)]+'.');const _0x120480=''+_0x1cbb18+_0x2f6a4a,_0x5107f8={'X-User-AK':_0x29479d},_0x4c1f60=new AbortController(),_0x227f08=setTimeout(()=>_0x4c1f60[_0x5b44c7(0x230)](),timeout);try{const _0x42db02=await fetch(_0x120480,{'method':method,'headers':{'Content-Type':_0x5b44c7(0x20c),'X-Invoke-Source':PRODUCT_CONFIG[_0x5b44c7(0x207)],..._0x5107f8,...headers},'body':_0x5d70c3?JSON[_0x5b44c7(0x235)](_0x5d70c3):undefined,'signal':_0x4c1f60[_0x5b44c7(0x215)]});let _0x17762e;try{_0x17762e=await _0x42db02[_0x5b44c7(0x244)]();}catch{throw CliErrors[_0x5b44c7(0x273)](_0x5b44c7(0x220)+_0x42db02[_0x5b44c7(0x22d)]+')',_0x42db02[_0x5b44c7(0x22d)]>=0x190?_0x5b44c7(0x21b):undefined);}if(!_0x42db02['ok']||_0x17762e[_0x5b44c7(0x206)]===![])throw CliErrors[_0x5b44c7(0x273)](_0x17762e[_0x5b44c7(0x1fa)]||_0x17762e['message']||_0x5b44c7(0x1f8)+_0x42db02[_0x5b44c7(0x22d)],_0x17762e[_0x5b44c7(0x259)]?'API\x20error\x20code:\x20'+_0x17762e['errorCode']:undefined);return _0x17762e;}catch(_0x49d956){if(_0x49d956 instanceof Error&&_0x49d956['name']==='AbortError')throw CliErrors[_0x5b44c7(0x273)](_0x5b44c7(0x252)+_0x120480);throw _0x49d956;}finally{clearTimeout(_0x227f08);}}async function apiBinaryRequest(_0x1ae52f,_0x3277ff={}){const _0xd64149=a69_0x1967,{method:method=_0xd64149(0x213),headers:headers={},timeout:timeout=0x7530}=_0x3277ff,_0x297227=_activeAK,_0x38234c=getRuntimeDomain();if(!_0x297227)throw CliErrors[_0xd64149(0x1f3)](_0xd64149(0x1fc)+PRODUCT_CONFIG[_0xd64149(0x251)]+'.');const _0x388dcd=''+_0x38234c+_0x1ae52f,_0x5af62d=new AbortController(),_0x22dd29=setTimeout(()=>_0x5af62d['abort'](),timeout);try{const _0x30164a=await fetch(_0x388dcd,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xd64149(0x207)],'X-User-AK':_0x297227,...headers},'signal':_0x5af62d[_0xd64149(0x215)]});if(!_0x30164a['ok']){let _0x5ed97c;try{const _0x164490=await _0x30164a[_0xd64149(0x244)]();_0x5ed97c=_0x164490[_0xd64149(0x1fa)]||_0x164490[_0xd64149(0x1ef)]||_0x164490['errorCode'];}catch{_0x5ed97c=await _0x30164a[_0xd64149(0x234)]()[_0xd64149(0x231)](()=>undefined);}throw CliErrors[_0xd64149(0x273)](_0x5ed97c||_0xd64149(0x1f8)+_0x30164a[_0xd64149(0x22d)],_0xd64149(0x211)+_0x388dcd);}return Buffer[_0xd64149(0x255)](await _0x30164a['arrayBuffer']());}catch(_0x249ca5){if(_0x249ca5 instanceof Error&&_0x249ca5[_0xd64149(0x265)]===_0xd64149(0x258))throw CliErrors[_0xd64149(0x273)](_0xd64149(0x252)+_0x388dcd);throw _0x249ca5;}finally{clearTimeout(_0x22dd29);}}async function toolboxRequest(_0x362ace,_0x3406ee,_0xe20fa2={}){const _0x94f418=a69_0x1967,{method:method=_0x94f418(0x213),headers:headers={},timeout:timeout=0x7530}=_0xe20fa2,_0x3762f7=_activeAK;if(!_0x3762f7)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x94f418(0x251)]+'.');const _0x5e4039=getApiDomain()[_0x94f418(0x274)](/\/$/,''),_0x5c94fc=new URL(_0x362ace,_0x5e4039+_0x94f418(0x254));if(_0x3406ee)for(const [_0x1c8d9e,_0x28e84c]of Object['entries'](_0x3406ee)){_0x28e84c!==undefined&&_0x28e84c!==null&&_0x5c94fc['searchParams'][_0x94f418(0x208)](_0x1c8d9e,String(_0x28e84c));}const _0x48da55=new AbortController(),_0x2f3507=setTimeout(()=>_0x48da55[_0x94f418(0x230)](),timeout);try{const _0x5d431b=await fetch(_0x5c94fc,{'method':method,'headers':{'Content-Type':_0x94f418(0x20c),'X-Invoke-Source':PRODUCT_CONFIG[_0x94f418(0x207)],'X-User-AK':_0x3762f7,...headers},'signal':_0x48da55[_0x94f418(0x215)]});let _0x24c0a8;try{_0x24c0a8=await _0x5d431b[_0x94f418(0x244)]();}catch{throw CliErrors[_0x94f418(0x273)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5d431b[_0x94f418(0x22d)]+')',_0x5d431b['status']>=0x190?_0x94f418(0x21b):undefined);}if(!_0x5d431b['ok']){const _0x33b69f=_0x24c0a8&&typeof _0x24c0a8===_0x94f418(0x271)?_0x24c0a8:{};throw CliErrors[_0x94f418(0x273)](_0x33b69f[_0x94f418(0x1fa)]||_0x33b69f[_0x94f418(0x1ef)]||_0x94f418(0x237)+_0x5d431b[_0x94f418(0x22d)],_0x33b69f[_0x94f418(0x259)]?_0x94f418(0x263)+_0x33b69f['errorCode']:undefined);}if(_0x24c0a8&&typeof _0x24c0a8===_0x94f418(0x271)&&_0x94f418(0x206)in _0x24c0a8&&typeof _0x24c0a8[_0x94f418(0x206)]==='boolean'){const _0xe3433f=_0x24c0a8;if(!_0xe3433f[_0x94f418(0x206)])throw CliErrors['apiError'](_0xe3433f['errorMsg']||_0xe3433f[_0x94f418(0x1ef)]||_0x94f418(0x239),_0xe3433f['errorCode']?_0x94f418(0x263)+_0xe3433f['errorCode']:undefined);return _0xe3433f[_0x94f418(0x240)];}return _0x24c0a8;}catch(_0x59a4f5){if(_0x59a4f5 instanceof Error&&_0x59a4f5[_0x94f418(0x265)]===_0x94f418(0x258))throw CliErrors[_0x94f418(0x273)](_0x94f418(0x252)+_0x5c94fc[_0x94f418(0x253)]());throw _0x59a4f5;}finally{clearTimeout(_0x2f3507);}}async function skillHubJsonRequest(_0x245d98,_0x30dd18={}){const _0x5712ea=a69_0x1967,{method:method=_0x5712ea(0x213),query:_0xa8b8a5,body:_0x38ef0a,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x30dd18,_0x1665c5=_activeAK;if(!_0x1665c5)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x8547ea=getSkillHubDomain()[_0x5712ea(0x274)](/\/$/,''),_0x39f4b7=new URL(_0x245d98,_0x8547ea+'/');if(_0xa8b8a5)for(const [_0x3100e5,_0x568fcd]of Object[_0x5712ea(0x1ee)](_0xa8b8a5)){_0x568fcd!==undefined&&_0x568fcd!==null&&_0x39f4b7[_0x5712ea(0x24a)]['set'](_0x3100e5,String(_0x568fcd));}const _0x565f4d=new AbortController(),_0x475326=setTimeout(()=>_0x565f4d[_0x5712ea(0x230)](),timeout);try{const _0x1ca66c=await fetch(_0x39f4b7[_0x5712ea(0x253)](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x5712ea(0x207)],'X-User-AK':_0x1665c5,...headers},'body':_0x38ef0a,'signal':_0x565f4d['signal']});let _0x31c7ce;try{_0x31c7ce=await _0x1ca66c[_0x5712ea(0x244)]();}catch{if(allowNotFound&&_0x1ca66c[_0x5712ea(0x22d)]===0x194)return undefined;throw CliErrors['apiError'](_0x5712ea(0x229)+_0x1ca66c['status']+')',_0x1ca66c[_0x5712ea(0x22d)]>=0x190?_0x5712ea(0x21b):undefined);}if(allowNotFound&&(_0x1ca66c[_0x5712ea(0x22d)]===0x194||_0x31c7ce?.[_0x5712ea(0x262)]===0x194))return undefined;const _0x27d9e3=!_0x1ca66c['ok']||_0x31c7ce?.[_0x5712ea(0x206)]===![]||typeof _0x31c7ce?.[_0x5712ea(0x262)]==='number'&&_0x31c7ce['code']>=0x190;if(_0x27d9e3)throw CliErrors['apiError'](_0x31c7ce?.[_0x5712ea(0x1fa)]||_0x31c7ce?.[_0x5712ea(0x1ef)]||_0x31c7ce?.[_0x5712ea(0x227)]||_0x5712ea(0x247)+_0x1ca66c[_0x5712ea(0x22d)],_0x31c7ce?.[_0x5712ea(0x259)]?_0x5712ea(0x23d)+_0x31c7ce['errorCode']:undefined);return _0x31c7ce?.[_0x5712ea(0x240)]??_0x31c7ce;}catch(_0x155718){if(_0x155718 instanceof Error&&_0x155718[_0x5712ea(0x265)]===_0x5712ea(0x258))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x39f4b7[_0x5712ea(0x253)]());throw _0x155718;}finally{clearTimeout(_0x475326);}}function a69_0x1967(_0x2ea9b9,_0x3fc3ae){_0x2ea9b9=_0x2ea9b9-0x1ed;const _0x28eb85=a69_0x28eb();let _0x1967c0=_0x28eb85[_0x2ea9b9];return _0x1967c0;}async function skillHubBinaryRequest(_0x8419f5,_0x3c001b={}){const _0x4d04c6=a69_0x1967,{query:_0x281614,headers:headers={},timeout:timeout=0x7530}=_0x3c001b,_0x4a0d6f=_activeAK;if(!_0x4a0d6f)throw CliErrors[_0x4d04c6(0x1f3)](_0x4d04c6(0x1fc)+PRODUCT_CONFIG[_0x4d04c6(0x251)]+'.');const _0x1cb6e9=getSkillHubDomain()['replace'](/\/$/,''),_0x4096e6=new URL(_0x8419f5,_0x1cb6e9+'/');if(_0x281614)for(const [_0x3668a5,_0x2757f0]of Object[_0x4d04c6(0x1ee)](_0x281614)){_0x2757f0!==undefined&&_0x2757f0!==null&&_0x4096e6[_0x4d04c6(0x24a)][_0x4d04c6(0x208)](_0x3668a5,String(_0x2757f0));}const _0x59bcb2=new AbortController(),_0x29ac8b=setTimeout(()=>_0x59bcb2[_0x4d04c6(0x230)](),timeout);try{const _0x50a191=await fetch(_0x4096e6[_0x4d04c6(0x253)](),{'method':'GET','headers':{'Accept':_0x4d04c6(0x21e),'X-Invoke-Source':PRODUCT_CONFIG[_0x4d04c6(0x207)],'X-User-AK':_0x4a0d6f,...headers},'signal':_0x59bcb2[_0x4d04c6(0x215)]});if(!_0x50a191['ok']){let _0x49f0af;try{const _0x4a23c8=await _0x50a191[_0x4d04c6(0x244)]();_0x49f0af=_0x4a23c8['errorMsg']||_0x4a23c8[_0x4d04c6(0x1ef)]||_0x4a23c8[_0x4d04c6(0x227)]||_0x4a23c8['errorCode'];}catch{_0x49f0af=await _0x50a191['text']()[_0x4d04c6(0x231)](()=>undefined);}throw CliErrors['apiError'](_0x49f0af||'SkillHub\x20API\x20error:\x20'+_0x50a191[_0x4d04c6(0x22d)],_0x4d04c6(0x211)+_0x4096e6[_0x4d04c6(0x253)]());}return Buffer[_0x4d04c6(0x255)](await _0x50a191[_0x4d04c6(0x249)]());}catch(_0x15a336){if(_0x15a336 instanceof Error&&_0x15a336[_0x4d04c6(0x265)]==='AbortError')throw CliErrors[_0x4d04c6(0x273)](_0x4d04c6(0x252)+_0x4096e6[_0x4d04c6(0x253)]());throw _0x15a336;}finally{clearTimeout(_0x29ac8b);}}export async function getBffScriptInfo(_0x39f38b){const _0xf24b02=a69_0x1967,_0x45ed1a=await apiRequest(_0xf24b02(0x25c)+_0x39f38b);if(!_0x45ed1a[_0xf24b02(0x240)])throw CliErrors['validation'](_0xf24b02(0x228)+_0x39f38b);return _0x45ed1a['data'];}export async function getSqlQueryInfo(_0x95123b,_0x5c66f0){const _0x461d01=a69_0x1967,_0x563e4f=await apiRequest('/client/sql/query',{'method':_0x461d01(0x20e),'body':{'appCode':_0x95123b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5c66f0}}),_0x466106=_0x563e4f['data'],_0x5b4439=_0x466106&&typeof _0x466106==='object'&&_0x461d01(0x21d)in _0x466106?_0x466106[_0x461d01(0x21d)]?.[0x0]:_0x466106&&typeof _0x466106==='object'&&_0x461d01(0x272)in _0x466106?_0x466106:undefined;if(!_0x5b4439)throw CliErrors['validation'](_0x461d01(0x21f)+_0x5c66f0);return _0x5b4439;}function isRemoteAppItem(_0x1c9a72){const _0x3f96b0=a69_0x1967;return!!_0x1c9a72&&typeof _0x1c9a72===_0x3f96b0(0x271)&&typeof _0x1c9a72[_0x3f96b0(0x209)]===_0x3f96b0(0x25f)&&typeof _0x1c9a72['appName']===_0x3f96b0(0x25f);}function extractRemoteAppItems(_0x4c2a98){const _0x187d4a=a69_0x1967;if(Array[_0x187d4a(0x219)](_0x4c2a98))return _0x4c2a98[_0x187d4a(0x241)](isRemoteAppItem);if(!_0x4c2a98||typeof _0x4c2a98!==_0x187d4a(0x271))throw CliErrors[_0x187d4a(0x273)](_0x187d4a(0x26b));const _0x35027b=_0x4c2a98;if(Array[_0x187d4a(0x219)](_0x35027b[_0x187d4a(0x21d)]))return _0x35027b[_0x187d4a(0x21d)][_0x187d4a(0x241)](isRemoteAppItem);if(_0x35027b[_0x187d4a(0x240)]&&typeof _0x35027b[_0x187d4a(0x240)]===_0x187d4a(0x271)){const _0x38dff7=_0x35027b[_0x187d4a(0x240)];if(Array[_0x187d4a(0x219)](_0x38dff7[_0x187d4a(0x21d)]))return _0x38dff7[_0x187d4a(0x21d)][_0x187d4a(0x241)](isRemoteAppItem);}throw CliErrors[_0x187d4a(0x273)](_0x187d4a(0x25a));}export async function getMyApps(){const _0x2eb065=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2eb065['data']);}export async function getLoginUserInfo(){const _0x53f3b3=a69_0x1967,_0x63a843=await apiRequest(_0x53f3b3(0x21a));if(!_0x63a843[_0x53f3b3(0x240)]||typeof _0x63a843[_0x53f3b3(0x240)]!==_0x53f3b3(0x271)||Array[_0x53f3b3(0x219)](_0x63a843[_0x53f3b3(0x240)]))throw CliErrors['apiError'](_0x53f3b3(0x1f4));return _0x63a843[_0x53f3b3(0x240)];}export async function listDatasets(_0x42fda9,_0x3092f7){const _0x13ad15=a69_0x1967,_0x427cae=await apiRequest(_0x13ad15(0x214),{'method':_0x13ad15(0x20e),'body':{'appCode':_0x42fda9,..._0x3092f7?.[_0x13ad15(0x262)]&&{'code':_0x3092f7['code']},..._0x3092f7?.[_0x13ad15(0x265)]&&{'name':_0x3092f7[_0x13ad15(0x265)]}}});return extractList(_0x427cae[_0x13ad15(0x240)]);}export async function getDatasetDetail(_0x3db52e){const _0x5a5521=a69_0x1967,_0x150ced=await apiRequest(_0x5a5521(0x24d)+encodeURIComponent(_0x3db52e));return _0x150ced[_0x5a5521(0x240)];}export async function getDatasetSdkUsageDoc(_0x36c187,_0x20d94a){const _0x4fe8c4=a69_0x1967,_0x3c0365=await toolboxRequest(_0x4fe8c4(0x1f0),{'datasetCode':_0x36c187,'appCode':_0x20d94a});return typeof _0x3c0365?.[_0x4fe8c4(0x20f)]===_0x4fe8c4(0x25f)?_0x3c0365[_0x4fe8c4(0x20f)]:'';}export async function getRuntimeAppConfigByKey(_0x503018,_0x312493){const _0x529972=a69_0x1967,_0x15c5d6=new URLSearchParams({'appCode':_0x503018,'key':_0x312493}),_0x58cc0e=await apiRequest(_0x529972(0x23f)+_0x15c5d6['toString']());if(!_0x58cc0e[_0x529972(0x240)])throw CliErrors['validation'](_0x529972(0x222)+_0x312493);return _0x58cc0e[_0x529972(0x240)];}export async function listRuntimeArtifacts(_0x36276a,_0x42967e){const _0x166112=a69_0x1967,_0x5b3482=new URLSearchParams({'appCode':_0x36276a});if(_0x42967e?.[_0x166112(0x201)])_0x5b3482[_0x166112(0x208)]('artifactType',_0x42967e['artifactType']);if(_0x42967e?.['source'])_0x5b3482[_0x166112(0x208)](_0x166112(0x267),_0x42967e[_0x166112(0x267)]);if(_0x42967e?.[_0x166112(0x22a)]!==undefined)_0x5b3482[_0x166112(0x208)]('favorite',String(_0x42967e[_0x166112(0x22a)]));const _0x52fe56=await apiRequest(_0x166112(0x257)+_0x5b3482[_0x166112(0x253)]());return Array[_0x166112(0x219)](_0x52fe56[_0x166112(0x240)])?_0x52fe56[_0x166112(0x240)]:[];}export async function getRuntimeArtifact(_0x5a01f8,_0x214d0d){const _0x5cc359=a69_0x1967,_0xa88960=await apiRequest(_0x5cc359(0x268)+_0x5a01f8+_0x5cc359(0x26c)+encodeURIComponent(_0x214d0d));if(!_0xa88960[_0x5cc359(0x240)])throw CliErrors[_0x5cc359(0x221)]('Artifact\x20not\x20found:\x20id='+_0x5a01f8);return _0xa88960[_0x5cc359(0x240)];}export async function createRuntimeArtifact(_0x2ec980,_0x4e4de3){const _0x42eb52=a69_0x1967,_0x4593ed=await apiRequest('/client/artifact/create',{'method':_0x42eb52(0x20e),'body':{'appCode':_0x2ec980,..._0x4e4de3}});return _0x4593ed[_0x42eb52(0x240)];}export async function updateRuntimeArtifact(_0x34688b,_0x5ab4d3,_0x2c417c){const _0xf24006=a69_0x1967,_0x1c4189=await apiRequest(_0xf24006(0x268)+_0x34688b+_0xf24006(0x226),{'method':_0xf24006(0x20e),'body':{'appCode':_0x5ab4d3,..._0x2c417c}});return _0x1c4189[_0xf24006(0x240)];}function a69_0x28eb(){const _0x48d81c=['scope','SkillHub\x20API\x20error:\x20','confirmWarnings','arrayBuffer','searchParams','warnings','/versions/','/client/dataset/get-driven-data?code=','tags','/client/runtime-bff/personal/','11TrHpRl','newConfigFileName','Request\x20timeout:\x20','toString','/api/node-toolbox/','from','skillCode','/client/artifact/list?','AbortError','errorCode','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/knowledge-base/personal/','/client/bff/query/','topK','Knowledge-base\x20entry\x20not\x20found:\x20id=','string','base64','file','code','Toolbox\x20error\x20code:\x20','summary','name','effective','source','/client/artifact/','1992001LHBRxR','1449096eGoiLd','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','?appCode=','skillName','/client/knowledge-base/personal/list?appCode=','all','8229039SIhnqA','object','sqlCode','apiError','replace','240XLIVof','entries','message','api-doc-generator','/client/knowledge-base/search','PRIVATE','authRequired','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','valid','13861330POfvJn','description','API\x20error:\x20','/execute?appCode=','errorMsg','/skills','Configure\x20accessKey\x20in\x20','5606ZMGwez','ownerPreviewVersion','errors','displayName','artifactType','company','items','trim','221640cEoHzy','success','invokeSource','set','appCode','application/zip','content','application/json','personal','POST','markdown','values','Download\x20failed:\x20','/client/runtime-bff/personal/create','GET','/client/dataset/list','signal','slug','Personal\x20BFF\x20not\x20found:\x20id=','packageBase64','isArray','/client/user/loginUserInfo','Check\x20your\x20credentials\x20and\x20try\x20again.','visibility','tableData','application/octet-stream','SQL\x20query\x20not\x20found:\x20','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','validation','App\x20config\x20not\x20found:\x20key=','798201BrtPgN','query','9LwqmMt','/update','msg','BFF\x20script\x20not\x20found:\x20id=','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','favorite','version','publishedVersion','status','resolvedSlug','NAMESPACE_ONLY','abort','catch','/api/v1/skills/','85qiCcUn','text','stringify','skill','Toolbox\x20API\x20error:\x20','16zVHAas','Toolbox\x20API\x20error','/client/runtime-bff/personal/list?appCode=','resolvedVersion','/client/knowledge-base/personal/create','SkillHub\x20error\x20code:\x20','/download','/client/app-config/getByKey?','data','filter','namespace','/api/cli/v1/skills/','json','.zip'];a69_0x28eb=function(){return _0x48d81c;};return a69_0x28eb();}export async function listPersonalBffs(_0xc6a62a){const _0x1e8012=a69_0x1967,_0x3a2fb5=await apiRequest(_0x1e8012(0x23a)+encodeURIComponent(_0xc6a62a));return Array['isArray'](_0x3a2fb5[_0x1e8012(0x240)])?_0x3a2fb5[_0x1e8012(0x240)]:[];}export async function getPersonalBff(_0x1fd934,_0x4736e8){const _0x4378ad=a69_0x1967,_0xd5719f=await apiRequest(_0x4378ad(0x24f)+_0x1fd934+_0x4378ad(0x26c)+encodeURIComponent(_0x4736e8));if(!_0xd5719f[_0x4378ad(0x240)])throw CliErrors[_0x4378ad(0x221)](_0x4378ad(0x217)+_0x1fd934);return _0xd5719f['data'];}export async function createPersonalBff(_0x15b100,_0x27c425){const _0x1f6a75=a69_0x1967,_0x55443f=await apiRequest(_0x1f6a75(0x212),{'method':_0x1f6a75(0x20e),'body':{'appCode':_0x15b100,..._0x27c425}});return _0x55443f[_0x1f6a75(0x240)];}export async function updatePersonalBff(_0x14e12c,_0x30a61c,_0x579cb7){const _0x5801a1=a69_0x1967,_0x2bb8c5=await apiRequest(_0x5801a1(0x24f)+_0x14e12c+_0x5801a1(0x226),{'method':_0x5801a1(0x20e),'body':{'appCode':_0x30a61c,..._0x579cb7}});return _0x2bb8c5[_0x5801a1(0x240)];}export async function executePersonalBff(_0x20b51c,_0x107c6b,_0x3b2604){const _0x55e8f0=a69_0x1967,_0x97c62c=await apiRequest(_0x55e8f0(0x24f)+_0x20b51c+_0x55e8f0(0x1f9)+encodeURIComponent(_0x107c6b),{'method':_0x55e8f0(0x20e),'body':_0x3b2604});return _0x97c62c['data'];}export async function listPersonalKnowledgeBaseItems(_0x4de5f5){const _0x38cb8a=a69_0x1967,_0x2dd5f3=await apiRequest(_0x38cb8a(0x26e)+encodeURIComponent(_0x4de5f5));return Array['isArray'](_0x2dd5f3[_0x38cb8a(0x240)])?_0x2dd5f3['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x3c1ae5,_0xd2c7ab){const _0x24b94f=a69_0x1967,_0x53d042=await apiRequest(_0x24b94f(0x25b)+_0x3c1ae5+'?appCode='+encodeURIComponent(_0xd2c7ab));if(!_0x53d042[_0x24b94f(0x240)])throw CliErrors[_0x24b94f(0x221)](_0x24b94f(0x25e)+_0x3c1ae5);return _0x53d042['data'];}export async function createPersonalKnowledgeBaseItem(_0x421d5c,_0x270d23){const _0x270e2e=a69_0x1967,_0x174854=await apiRequest(_0x270e2e(0x23c),{'method':'POST','body':{'appCode':_0x421d5c,..._0x270d23}});return _0x174854[_0x270e2e(0x240)];}export async function updatePersonalKnowledgeBaseItem(_0x885611,_0x3578d8,_0x47449f){const _0xed498=a69_0x1967,_0x13e374=await apiRequest(_0xed498(0x25b)+_0x885611+'/update',{'method':_0xed498(0x20e),'body':{'appCode':_0x3578d8,..._0x47449f}});return _0x13e374[_0xed498(0x240)];}export async function searchKnowledgeBase(_0x123a28,_0x54d2cc){const _0xd82729=a69_0x1967,_0x3bb76a=await apiRequest(_0xd82729(0x1f1),{'method':_0xd82729(0x20e),'body':{'appCode':_0x123a28,'query':_0x54d2cc[_0xd82729(0x224)],..._0x54d2cc[_0xd82729(0x25d)]!==undefined?{'topK':_0x54d2cc[_0xd82729(0x25d)]}:{}}});return Array[_0xd82729(0x219)](_0x3bb76a[_0xd82729(0x240)])?_0x3bb76a['data']:[];}export async function getRuntimeSkillByCode(_0x52386a,_0x2a1e28){const _0x2ad6a0=a69_0x1967,_0x4a8f40=await skillHubJsonRequest(_0x2ad6a0(0x232)+encodeURIComponent(_0x52386a)+'/'+encodeURIComponent(_0x2a1e28),{'allowNotFound':!![]});return _0x4a8f40?skillHubRuntimeDetailToRuntimeSkill(_0x4a8f40):undefined;}export async function listRuntimeSkills(_0x2d8dd1){const _0x53bfe6=a69_0x1967,_0x355301=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x2d8dd1['appCode'])+_0x53bfe6(0x1fb),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2d8dd1['appCode'],_0x355301,_0x2d8dd1[_0x53bfe6(0x246)]??_0x53bfe6(0x26f),_0x2d8dd1[_0x53bfe6(0x262)]);}export async function listPersonalRuntimeSkills(_0x9e4919){const _0x2ffef3=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x9e4919,'scope':_0x2ffef3(0x20d)}))[_0x2ffef3(0x20d)];}export async function listCompanyRuntimeSkills(_0x2b86ca){const _0x38ffa3=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x2b86ca,'scope':_0x38ffa3(0x202)}))[_0x38ffa3(0x202)];}export async function listVisibleRuntimeSkills(_0x3612ae){const _0x572885=a69_0x1967;return(await listRuntimeSkills({'appCode':_0x3612ae,'scope':_0x572885(0x26f)}))[_0x572885(0x266)];}export async function createPersonalRuntimeSkill(_0x151032,_0x51c5cb){const _0x41c7a8=a69_0x1967;return publishRuntimeSkill(_0x151032,_0x51c5cb,{'visibility':_0x41c7a8(0x1f2)});}export async function updatePersonalRuntimeSkill(_0x48563a,_0x7ef8c2,_0x1f2a6c){return publishRuntimeSkill(_0x7ef8c2,{..._0x1f2a6c,'skillCode':_0x1f2a6c['skillCode']??_0x48563a},{'visibility':'PRIVATE'});}export async function publishCompanyRuntimeSkill(_0x1242fa,_0x374075,_0x217a75={}){const _0x5d53a5=a69_0x1967;return publishRuntimeSkill(_0x1242fa,_0x374075,{'visibility':'NAMESPACE_ONLY','confirmWarnings':_0x217a75[_0x5d53a5(0x248)]});}export async function validateRuntimeSkillPublish(_0x114a0f,_0x2662d3,_0x3b142c){const _0x1bc913=a69_0x1967,_0x3e75d7=buildRuntimeSkillPublishForm(_0x2662d3,_0x3b142c[_0x1bc913(0x21c)]),_0x4aaeb1=await skillHubJsonRequest(_0x1bc913(0x243)+encodeURIComponent(_0x114a0f)+'/publish/validate',{'method':_0x1bc913(0x20e),'body':_0x3e75d7});return{'valid':_0x4aaeb1[_0x1bc913(0x1f5)]===!![],'errors':Array[_0x1bc913(0x219)](_0x4aaeb1[_0x1bc913(0x1ff)])?_0x4aaeb1[_0x1bc913(0x1ff)]:[],'warnings':Array[_0x1bc913(0x219)](_0x4aaeb1[_0x1bc913(0x24b)])?_0x4aaeb1['warnings']:[],'resolvedSlug':_0x4aaeb1[_0x1bc913(0x22e)],'resolvedVersion':_0x4aaeb1[_0x1bc913(0x23b)]};}export async function downloadRuntimeSkillPackage(_0x377617,_0xcbb84a,_0x39fd10,_0x320c51){const _0x495b6d=a69_0x1967;void _0x377617;const _0x3f666c=_0x320c51?_0x495b6d(0x243)+encodeURIComponent(_0x39fd10)+'/'+encodeURIComponent(_0xcbb84a)+_0x495b6d(0x24c)+encodeURIComponent(_0x320c51)+_0x495b6d(0x23e):_0x495b6d(0x243)+encodeURIComponent(_0x39fd10)+'/'+encodeURIComponent(_0xcbb84a)+_0x495b6d(0x23e);return skillHubBinaryRequest(_0x3f666c);}async function publishRuntimeSkill(_0x1e7965,_0x1338db,_0x349067){const _0x3da325=a69_0x1967,_0x52d7af=buildRuntimeSkillPublishForm(_0x1338db,_0x349067[_0x3da325(0x21c)]),_0x282a09=await skillHubJsonRequest(_0x3da325(0x243)+encodeURIComponent(_0x1e7965)+'/publish',{'method':_0x3da325(0x20e),'query':{'confirmWarnings':_0x349067[_0x3da325(0x248)]===!![]?!![]:undefined},'body':_0x52d7af});return{'appCode':_0x282a09[_0x3da325(0x242)]??_0x1e7965,'skillCode':_0x282a09[_0x3da325(0x216)]??_0x1338db['skillCode']??'','skillName':_0x1338db[_0x3da325(0x26d)]??_0x282a09['slug']??_0x1338db[_0x3da325(0x256)],'description':_0x1338db[_0x3da325(0x1f7)],'scope':skillHubVisibilityToScope(_0x282a09[_0x3da325(0x21c)]??_0x349067[_0x3da325(0x21c)])??'personal','version':_0x282a09[_0x3da325(0x22b)]??_0x1338db[_0x3da325(0x22b)],'tags':_0x1338db[_0x3da325(0x24e)],'content':_0x1338db[_0x3da325(0x20b)]};}function buildRuntimeSkillPublishForm(_0x2bfe18,_0x736b8){const _0x1284b9=a69_0x1967,_0x59231d=new FormData();return _0x59231d[_0x1284b9(0x208)](_0x1284b9(0x261),runtimeSkillPackageFile(_0x2bfe18)),_0x59231d[_0x1284b9(0x208)](_0x1284b9(0x21c),_0x736b8),_0x59231d;}function runtimeSkillPackageFile(_0x2e0eb0){const _0x5b8ca5=a69_0x1967;if(!_0x2e0eb0['packageBase64'])throw CliErrors['validation']('Missing\x20Skill\x20package\x20payload.');const _0x53e86a=Buffer[_0x5b8ca5(0x255)](_0x2e0eb0[_0x5b8ca5(0x218)],_0x5b8ca5(0x260)),_0x488b6c=new Blob([_0x53e86a],{'type':_0x5b8ca5(0x20a)}),_0x2864e4=(_0x2e0eb0['skillCode']||_0x5b8ca5(0x236))+_0x5b8ca5(0x245);if(typeof File!=='undefined')return new File([_0x488b6c],_0x2864e4,{'type':_0x5b8ca5(0x20a)});return _0x488b6c;}function normalizeSkillHubRuntimeListResponse(_0x560d33,_0x2f1701,_0xb94ee5,_0xb26808){const _0x5ef528=a69_0x1967,_0x3b6c2b=Array['isArray'](_0x2f1701)?_0x2f1701:Array[_0x5ef528(0x219)](_0x2f1701?.[_0x5ef528(0x203)])?_0x2f1701[_0x5ef528(0x203)]:[],_0x419665=_0xb26808?.[_0x5ef528(0x204)](),_0x2f4dbb=_0x3b6c2b['filter'](_0x5abdcf=>!_0x419665||_0x5abdcf['slug']===_0x419665)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x5ef528(0x241)](_0x35fe32=>Boolean(_0x35fe32)),_0x1654ac=_0x2f4dbb[_0x5ef528(0x241)](_0x5eddcb=>_0x5eddcb['scope']==='personal'),_0x4de973=_0x2f4dbb[_0x5ef528(0x241)](_0x429ca7=>_0x429ca7[_0x5ef528(0x246)]===_0x5ef528(0x202));return{'appCode':_0x560d33,'personal':_0xb94ee5===_0x5ef528(0x202)?[]:_0x1654ac,'company':_0xb94ee5===_0x5ef528(0x20d)?[]:_0x4de973,'effective':buildEffectiveRuntimeSkills(_0x1654ac,_0x4de973,_0xb94ee5)};}function skillHubRuntimeItemToRuntimeSkill(_0x334573){const _0x43ed38=a69_0x1967,_0x1fe15f=_0x334573[_0x43ed38(0x216)]?.[_0x43ed38(0x204)](),_0x4fb1da=skillHubVisibilityToScope(_0x334573[_0x43ed38(0x21c)]);if(!_0x1fe15f||!_0x4fb1da)return undefined;return{'id':_0x334573['id'],'appCode':_0x334573[_0x43ed38(0x242)],'skillCode':_0x1fe15f,'skillName':_0x334573['displayName']??_0x1fe15f,'description':_0x334573[_0x43ed38(0x264)],'scope':_0x4fb1da,'version':skillHubRuntimeItemVersion(_0x334573),'status':_0x334573[_0x43ed38(0x22d)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x3d9423){const _0x4954bb=a69_0x1967,_0x596c95=_0x3d9423[_0x4954bb(0x216)]?.[_0x4954bb(0x204)]();if(!_0x596c95)return undefined;return{'id':_0x3d9423['id'],'appCode':_0x3d9423[_0x4954bb(0x242)],'skillCode':_0x596c95,'skillName':_0x3d9423[_0x4954bb(0x200)]??_0x596c95,'description':_0x3d9423[_0x4954bb(0x264)],'scope':skillHubVisibilityToScope(_0x3d9423[_0x4954bb(0x21c)])??_0x3d9423[_0x4954bb(0x21c)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x3d9423),'status':_0x3d9423[_0x4954bb(0x22d)]};}function skillHubVisibilityToScope(_0xf2d3fe){const _0x2a9d12=a69_0x1967;if(_0xf2d3fe===_0x2a9d12(0x1f2))return'personal';if(_0xf2d3fe===_0x2a9d12(0x22f))return _0x2a9d12(0x202);return undefined;}function skillHubRuntimeItemVersion(_0x10f466){const _0x43c243=a69_0x1967;return _0x10f466[_0x43c243(0x22c)]?.[_0x43c243(0x22b)]??_0x10f466['headlineVersion']?.[_0x43c243(0x22b)]??_0x10f466[_0x43c243(0x1fe)]?.[_0x43c243(0x22b)];}function buildEffectiveRuntimeSkills(_0x29c28d,_0x5059eb,_0x4f46b8){const _0x3dca61=a69_0x1967;if(_0x4f46b8==='personal')return _0x29c28d;if(_0x4f46b8===_0x3dca61(0x202))return _0x5059eb;const _0x46d9ee=new Map();for(const _0x24051a of _0x5059eb){_0x46d9ee[_0x3dca61(0x208)](_0x24051a['skillCode'],_0x24051a);}for(const _0x4a685e of _0x29c28d){_0x46d9ee[_0x3dca61(0x208)](_0x4a685e['skillCode'],_0x4a685e);}return Array['from'](_0x46d9ee[_0x3dca61(0x210)]());}function normalizeRuntimeSkillListResponse(_0xcf12b7,_0xe93932){const _0x16fae1=a69_0x1967;if(Array[_0x16fae1(0x219)](_0xe93932)){const _0x5c3c53=_0xe93932[_0x16fae1(0x241)](_0x6b39b4=>_0x6b39b4[_0x16fae1(0x246)]===_0x16fae1(0x20d)),_0x4d9163=_0xe93932[_0x16fae1(0x241)](_0x5cbfb2=>_0x5cbfb2[_0x16fae1(0x246)]===_0x16fae1(0x202));return{'appCode':_0xcf12b7,'personal':_0x5c3c53,'company':_0x4d9163,'effective':[..._0x4d9163,..._0x5c3c53]};}return{'appCode':_0xe93932?.[_0x16fae1(0x209)]??_0xcf12b7,'personal':Array[_0x16fae1(0x219)](_0xe93932?.[_0x16fae1(0x20d)])?_0xe93932[_0x16fae1(0x20d)]:[],'company':Array[_0x16fae1(0x219)](_0xe93932?.[_0x16fae1(0x202)])?_0xe93932[_0x16fae1(0x202)]:[],'effective':Array[_0x16fae1(0x219)](_0xe93932?.['effective'])?_0xe93932[_0x16fae1(0x266)]:[]};}
@@ -1 +1 @@
1
- (function(_0x2f0615,_0x3c2bfa){const _0x1f0ea7=a70_0x2250,_0x49f4ea=_0x2f0615();while(!![]){try{const _0x2ed57a=parseInt(_0x1f0ea7(0x7f))/0x1*(-parseInt(_0x1f0ea7(0x79))/0x2)+parseInt(_0x1f0ea7(0x72))/0x3*(parseInt(_0x1f0ea7(0x73))/0x4)+-parseInt(_0x1f0ea7(0x75))/0x5*(parseInt(_0x1f0ea7(0x7a))/0x6)+-parseInt(_0x1f0ea7(0x80))/0x7+parseInt(_0x1f0ea7(0x7b))/0x8+parseInt(_0x1f0ea7(0x7d))/0x9*(parseInt(_0x1f0ea7(0x7e))/0xa)+parseInt(_0x1f0ea7(0x82))/0xb;if(_0x2ed57a===_0x3c2bfa)break;else _0x49f4ea['push'](_0x49f4ea['shift']());}catch(_0x97d7ff){_0x49f4ea['push'](_0x49f4ea['shift']());}}}(a70_0x4fdc,0x731c3));function a70_0x4fdc(){const _0x24fc55=['1130847aIhNQJ','8hFeCIq','dbName','603755FQyokg','set','map','find','2402ZoUhyY','18KMlGwf','5671088eaSkiQ','dbId','231327oWZBwK','70mRMKcQ','469BsMZVO','2178428MLeMyt','entries','720632FHCEKe','get','db-'];a70_0x4fdc=function(){return _0x24fc55;};return a70_0x4fdc();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x440ee7){const _0x127317=a70_0x2250;if(cache['has'](_0x440ee7))return cache[_0x127317(0x70)](_0x440ee7);const _0x5b8eaf=await listDatasets(_0x440ee7),_0xda0595=new Map();for(const _0x2ba642 of _0x5b8eaf){const _0x3acd60=_0x2ba642['dbtableConfig'];_0x3acd60?.[_0x127317(0x7c)]!=null&&_0xda0595[_0x127317(0x76)](_0x3acd60[_0x127317(0x7c)],_0x3acd60['dbName']??_0x127317(0x71)+_0x3acd60['dbId']);}const _0xd2d84a=[..._0xda0595[_0x127317(0x81)]()][_0x127317(0x77)](([_0x102e47,_0x2148f5])=>({'dbId':_0x102e47,'dbName':_0x2148f5}));return cache[_0x127317(0x76)](_0x440ee7,_0xd2d84a),_0xd2d84a;}function a70_0x2250(_0x245baa,_0x2fda6d){_0x245baa=_0x245baa-0x70;const _0x4fdc8c=a70_0x4fdc();let _0x22509f=_0x4fdc8c[_0x245baa];return _0x22509f;}export async function getDbName(_0x169ed5,_0x58f024){const _0x4f1a07=a70_0x2250;try{const _0xcdc522=await listDatabases(_0x169ed5);return _0xcdc522[_0x4f1a07(0x78)](_0x59bf0a=>_0x59bf0a['dbId']===_0x58f024)?.[_0x4f1a07(0x74)];}catch{return undefined;}}
1
+ (function(_0x49d463,_0x287fbe){const _0x30c6c1=a70_0x3c0f,_0x15edcc=_0x49d463();while(!![]){try{const _0x230b1d=parseInt(_0x30c6c1(0xb0))/0x1+-parseInt(_0x30c6c1(0xae))/0x2*(-parseInt(_0x30c6c1(0xb1))/0x3)+parseInt(_0x30c6c1(0xaf))/0x4+-parseInt(_0x30c6c1(0xb8))/0x5*(parseInt(_0x30c6c1(0xb6))/0x6)+-parseInt(_0x30c6c1(0xba))/0x7*(-parseInt(_0x30c6c1(0xbd))/0x8)+parseInt(_0x30c6c1(0xb9))/0x9+-parseInt(_0x30c6c1(0xbc))/0xa*(parseInt(_0x30c6c1(0xb5))/0xb);if(_0x230b1d===_0x287fbe)break;else _0x15edcc['push'](_0x15edcc['shift']());}catch(_0x474caa){_0x15edcc['push'](_0x15edcc['shift']());}}}(a70_0x4c1a,0x6ba52));import{listDatasets}from'../core/api-client.js';function a70_0x3c0f(_0x4a5802,_0x551a9b){_0x4a5802=_0x4a5802-0xac;const _0x4c1a41=a70_0x4c1a();let _0x3c0f70=_0x4c1a41[_0x4a5802];return _0x3c0f70;}function a70_0x4c1a(){const _0x45ab80=['dbtableConfig','2ukjLdP','773304BNNKss','607906rPPpgM','825243nFwnQs','set','dbName','db-','2800006pGlOwv','4011432GYSDqy','dbId','5mtynSf','5720742qZkluK','1128211kIAteZ','get','30dpbqkf','8hqKveO','map'];a70_0x4c1a=function(){return _0x45ab80;};return a70_0x4c1a();}const cache=new Map();export async function listDatabases(_0x288491){const _0x15815b=a70_0x3c0f;if(cache['has'](_0x288491))return cache[_0x15815b(0xbb)](_0x288491);const _0x1804b3=await listDatasets(_0x288491),_0x49bd2e=new Map();for(const _0x443c6b of _0x1804b3){const _0x57d419=_0x443c6b[_0x15815b(0xad)];_0x57d419?.['dbId']!=null&&_0x49bd2e[_0x15815b(0xb2)](_0x57d419[_0x15815b(0xb7)],_0x57d419[_0x15815b(0xb3)]??_0x15815b(0xb4)+_0x57d419[_0x15815b(0xb7)]);}const _0x764331=[..._0x49bd2e['entries']()][_0x15815b(0xac)](([_0x2e75dd,_0xb4245a])=>({'dbId':_0x2e75dd,'dbName':_0xb4245a}));return cache[_0x15815b(0xb2)](_0x288491,_0x764331),_0x764331;}export async function getDbName(_0x392e23,_0x59a6e3){try{const _0x5880bb=await listDatabases(_0x392e23);return _0x5880bb['find'](_0x38be4e=>_0x38be4e['dbId']===_0x59a6e3)?.['dbName'];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0xf0c20c,_0x192e7a){const _0x524244=a71_0x3d7a,_0x3f5656=_0xf0c20c();while(!![]){try{const _0x2df6ac=-parseInt(_0x524244(0x150))/0x1*(-parseInt(_0x524244(0x14d))/0x2)+-parseInt(_0x524244(0x146))/0x3*(parseInt(_0x524244(0x158))/0x4)+parseInt(_0x524244(0x15b))/0x5+parseInt(_0x524244(0x15f))/0x6+-parseInt(_0x524244(0x152))/0x7*(-parseInt(_0x524244(0x163))/0x8)+parseInt(_0x524244(0x157))/0x9*(parseInt(_0x524244(0x14c))/0xa)+parseInt(_0x524244(0x142))/0xb*(-parseInt(_0x524244(0x165))/0xc);if(_0x2df6ac===_0x192e7a)break;else _0x3f5656['push'](_0x3f5656['shift']());}catch(_0x1b4b90){_0x3f5656['push'](_0x3f5656['shift']());}}}(a71_0x975b,0x8aec5));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a71_0x975b(){const _0x4d69d3=['map','isArray','5023925uXLRyN','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','getOne',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','3452814DVizQl','execute','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','sql','441648fXyaaf','column','6222252gbfPQZ','env','accessKey','delete','44bOscay','dataset_','appCode','authMode','3395559gnoCxC','trim','aggregate','models','field','function','208450CsHyaJ','78tJRXXa','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','14919YjuqsO','bff','112JomMqi','invokeSource','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','validation','batchCreate','315amvWOp','4TWIIRH'];a71_0x975b=function(){return _0x4d69d3;};return a71_0x975b();}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x2a3a17){const _0x508225=a71_0x3d7a;_client=createClient({'appCode':_0x2a3a17[_0x508225(0x144)],'env':_0x2a3a17[_0x508225(0x166)],'authMode':_0x2a3a17[_0x508225(0x145)],..._0x2a3a17[_0x508225(0x167)]?{'accessKey':_0x2a3a17[_0x508225(0x167)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x508225(0x153)]}}});}function ensureClient(){const _0x260701=a71_0x3d7a;if(!_client)throw new Error(_0x260701(0x14e));return _client;}function normalizeAggregateParams(_0x3eabe7){const _0x1bf6f6=a71_0x3d7a,_0x5e0c20=_0x3eabe7['aggregate'];if(_0x5e0c20===undefined)return _0x3eabe7;if(!Array[_0x1bf6f6(0x15a)](_0x5e0c20))throw CliErrors[_0x1bf6f6(0x155)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x3eabe7,'aggregate':_0x5e0c20[_0x1bf6f6(0x159)]((_0x2d1184,_0x55783c)=>{const _0x9aad23=_0x1bf6f6;if(!_0x2d1184||typeof _0x2d1184!=='object'||Array[_0x9aad23(0x15a)](_0x2d1184))throw CliErrors[_0x9aad23(0x155)]('data\x20aggregate\x20--params.aggregate['+_0x55783c+']\x20must\x20be\x20an\x20object.');const _0x341229=_0x2d1184[_0x9aad23(0x164)]??_0x2d1184[_0x9aad23(0x14a)];if(typeof _0x341229!=='string'||_0x341229[_0x9aad23(0x147)]()==='')throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x55783c+_0x9aad23(0x15e));const _0x23dedf={..._0x2d1184,'column':_0x341229};return delete _0x23dedf['field'],_0x23dedf;})};}export async function executeData(_0x2b6396,_0x1f226d,_0x1d08d8){const _0x596c56=a71_0x3d7a,_0x161165=ensureClient(),_0x44bced=_0x596c56(0x143)+_0x2b6396,_0x2bcead=_0x161165[_0x596c56(0x149)][_0x44bced];if(!_0x2bcead||typeof _0x2bcead[_0x1f226d]!==_0x596c56(0x14b))throw new Error(_0x596c56(0x161)+_0x1f226d+_0x596c56(0x14f)+_0x596c56(0x15c));if(_0x1f226d===_0x596c56(0x156))return _0x2bcead[_0x596c56(0x156)](parseBatchCreateItemsFromParams(_0x1d08d8));const _0x26ca73=_0x1d08d8!==undefined&&_0x1d08d8!==null&&!Array[_0x596c56(0x15a)](_0x1d08d8)?_0x1d08d8:{};switch(_0x1f226d){case _0x596c56(0x15d):{const _0x3afe62=_0x26ca73['id'];if(_0x3afe62===undefined||_0x3afe62===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x2bcead['getOne'](_0x3afe62);}case'update':{const {id:_0x2627d5,..._0x143f1f}=_0x26ca73;if(_0x2627d5===undefined||_0x2627d5===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27');return _0x2bcead['update'](_0x2627d5,_0x143f1f);}case _0x596c56(0x141):{const _0x5f16a2=_0x26ca73['id'];if(_0x5f16a2===undefined||_0x5f16a2===null)throw new Error(_0x596c56(0x154));return _0x2bcead[_0x596c56(0x141)](_0x5f16a2);}case'aggregate':return _0x2bcead[_0x596c56(0x148)](normalizeAggregateParams(_0x26ca73));default:return _0x2bcead[_0x1f226d](_0x26ca73);}}function a71_0x3d7a(_0x665b0e,_0x148585){_0x665b0e=_0x665b0e-0x141;const _0x975b8e=a71_0x975b();let _0x3d7ac7=_0x975b8e[_0x665b0e];return _0x3d7ac7;}export async function executeSdkSql(_0x56b753,_0x43dd02){const _0x967573=a71_0x3d7a,_0x36bfed=ensureClient();return _0x36bfed[_0x967573(0x162)][_0x967573(0x160)]({'sqlCode':_0x56b753,'params':_0x43dd02});}export async function executeSdkBff(_0x397c72,_0xee945d){const _0x49b226=a71_0x3d7a,_0x50e7a0=ensureClient();return _0x50e7a0[_0x49b226(0x151)]['execute']({'scriptName':_0x397c72,'params':_0xee945d});}
1
+ (function(_0x284954,_0x1c2ea2){const _0x8e06c2=a71_0x5526,_0x265264=_0x284954();while(!![]){try{const _0x2578d2=-parseInt(_0x8e06c2(0x157))/0x1+parseInt(_0x8e06c2(0x171))/0x2*(-parseInt(_0x8e06c2(0x153))/0x3)+-parseInt(_0x8e06c2(0x16a))/0x4*(-parseInt(_0x8e06c2(0x17c))/0x5)+-parseInt(_0x8e06c2(0x178))/0x6*(parseInt(_0x8e06c2(0x16c))/0x7)+-parseInt(_0x8e06c2(0x179))/0x8*(-parseInt(_0x8e06c2(0x166))/0x9)+-parseInt(_0x8e06c2(0x151))/0xa+parseInt(_0x8e06c2(0x168))/0xb*(parseInt(_0x8e06c2(0x156))/0xc);if(_0x2578d2===_0x1c2ea2)break;else _0x265264['push'](_0x265264['shift']());}catch(_0x418b2e){_0x265264['push'](_0x265264['shift']());}}}(a71_0x4c97,0x24aa4));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(_0x2193b2){const _0x55270a=a71_0x5526;_client=createClient({'appCode':_0x2193b2[_0x55270a(0x159)],'env':_0x2193b2[_0x55270a(0x177)],'authMode':_0x2193b2[_0x55270a(0x155)],..._0x2193b2['accessKey']?{'accessKey':_0x2193b2[_0x55270a(0x15c)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0xabae1f=a71_0x5526;if(!_client)throw new Error(_0xabae1f(0x164));return _client;}function a71_0x4c97(){const _0xac7d21=['field','1844591gyGMFa','validation','\x22.\x20','models','update','40RcalLZ','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','getOne','execute','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','env','6dIehPL','8ScljEy','string','dataset_','1360WpudTL','694060CazucC','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','11967nfdYMC','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','authMode','81948nZErGd','93949hPqSjj','delete','appCode','data\x20aggregate\x20--params.aggregate[','sql','accessKey',']\x20must\x20be\x20an\x20object.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','map','function','trim','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','object','2511Pbyhxs','aggregate','803HDoKeQ','column','2324COrRWv'];a71_0x4c97=function(){return _0xac7d21;};return a71_0x4c97();}function a71_0x5526(_0x4d91a3,_0x410eb2){_0x4d91a3=_0x4d91a3-0x151;const _0x4c97b2=a71_0x4c97();let _0x55262b=_0x4c97b2[_0x4d91a3];return _0x55262b;}function normalizeAggregateParams(_0x482e7c){const _0x17a496=a71_0x5526,_0x37655f=_0x482e7c[_0x17a496(0x167)];if(_0x37655f===undefined)return _0x482e7c;if(!Array[_0x17a496(0x173)](_0x37655f))throw CliErrors[_0x17a496(0x16d)](_0x17a496(0x162));return{..._0x482e7c,'aggregate':_0x37655f[_0x17a496(0x15f)]((_0x3a2097,_0x3d78c6)=>{const _0x2ef858=_0x17a496;if(!_0x3a2097||typeof _0x3a2097!==_0x2ef858(0x165)||Array[_0x2ef858(0x173)](_0x3a2097))throw CliErrors[_0x2ef858(0x16d)]('data\x20aggregate\x20--params.aggregate['+_0x3d78c6+_0x2ef858(0x15d));const _0x315b48=_0x3a2097[_0x2ef858(0x169)]??_0x3a2097[_0x2ef858(0x16b)];if(typeof _0x315b48!==_0x2ef858(0x17a)||_0x315b48[_0x2ef858(0x161)]()==='')throw CliErrors[_0x2ef858(0x16d)](_0x2ef858(0x15a)+_0x3d78c6+_0x2ef858(0x15e));const _0x6e4339={..._0x3a2097,'column':_0x315b48};return delete _0x6e4339['field'],_0x6e4339;})};}export async function executeData(_0x240957,_0x53606e,_0x5c31d6){const _0x45854a=a71_0x5526,_0x3729ef=ensureClient(),_0xf9c3d4=_0x45854a(0x17b)+_0x240957,_0x26c642=_0x3729ef[_0x45854a(0x16f)][_0xf9c3d4];if(!_0x26c642||typeof _0x26c642[_0x53606e]!==_0x45854a(0x160))throw new Error(_0x45854a(0x176)+_0x53606e+_0x45854a(0x16e)+_0x45854a(0x152));if(_0x53606e===_0x45854a(0x163))return _0x26c642[_0x45854a(0x163)](parseBatchCreateItemsFromParams(_0x5c31d6));const _0x2e6d14=_0x5c31d6!==undefined&&_0x5c31d6!==null&&!Array['isArray'](_0x5c31d6)?_0x5c31d6:{};switch(_0x53606e){case _0x45854a(0x174):{const _0x215879=_0x2e6d14['id'];if(_0x215879===undefined||_0x215879===null)throw new Error(_0x45854a(0x172));return _0x26c642[_0x45854a(0x174)](_0x215879);}case'update':{const {id:_0x8214c5,..._0x1cfb95}=_0x2e6d14;if(_0x8214c5===undefined||_0x8214c5===null)throw new Error(_0x45854a(0x154));return _0x26c642[_0x45854a(0x170)](_0x8214c5,_0x1cfb95);}case _0x45854a(0x158):{const _0x3756b0=_0x2e6d14['id'];if(_0x3756b0===undefined||_0x3756b0===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x26c642[_0x45854a(0x158)](_0x3756b0);}case'aggregate':return _0x26c642[_0x45854a(0x167)](normalizeAggregateParams(_0x2e6d14));default:return _0x26c642[_0x53606e](_0x2e6d14);}}export async function executeSdkSql(_0xd33bd5,_0x56acda){const _0x4423e1=a71_0x5526,_0x3b6bee=ensureClient();return _0x3b6bee[_0x4423e1(0x15b)][_0x4423e1(0x175)]({'sqlCode':_0xd33bd5,'params':_0x56acda});}export async function executeSdkBff(_0xf3dd0,_0x19f4a8){const _0x43b601=a71_0x5526,_0x2b4d08=ensureClient();return _0x2b4d08['bff'][_0x43b601(0x175)]({'scriptName':_0xf3dd0,'params':_0x19f4a8});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a72_0x34ee55=a72_0x5827;(function(_0x2056ac,_0x40e5f3){const _0x4c0a01=a72_0x5827,_0x2ff543=_0x2056ac();while(!![]){try{const _0x9bb6bf=parseInt(_0x4c0a01(0xb0))/0x1*(parseInt(_0x4c0a01(0xad))/0x2)+parseInt(_0x4c0a01(0xb2))/0x3+parseInt(_0x4c0a01(0xac))/0x4*(parseInt(_0x4c0a01(0xba))/0x5)+-parseInt(_0x4c0a01(0xb3))/0x6*(parseInt(_0x4c0a01(0xb4))/0x7)+parseInt(_0x4c0a01(0xb7))/0x8+parseInt(_0x4c0a01(0xb9))/0x9+-parseInt(_0x4c0a01(0xb5))/0xa;if(_0x9bb6bf===_0x40e5f3)break;else _0x2ff543['push'](_0x2ff543['shift']());}catch(_0x38702a){_0x2ff543['push'](_0x2ff543['shift']());}}}(a72_0x31ca,0xd2f2e));function a72_0x5827(_0x415982,_0x2260ed){_0x415982=_0x415982-0xac;const _0x31cae5=a72_0x31ca();let _0x5827ad=_0x31cae5[_0x415982];return _0x5827ad;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a72_0x31ca(){const _0x1e8ded=['2XGcgsh','\x20or\x20run\x20`','Configure\x20accessKey\x20in\x20','1718050vAcEpe','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','4161585jGEKhb','6ZslHFm','789187ijmwmz','58886640XFeCeB','newConfigFileName','9843160VuVylj','\x20auth\x20login`.','7391133BPzkjZ','610205dIOqHK','56hbZXGs'];a72_0x31ca=function(){return _0x1e8ded;};return a72_0x31ca();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a72_0x34ee55(0xaf)+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+a72_0x34ee55(0xae)+CLI_BIN_NAME+a72_0x34ee55(0xb8),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+'.','notInProjectHint':a72_0x34ee55(0xb1)+PRODUCT_CONFIG[a72_0x34ee55(0xb6)]+'\x20file.'});
1
+ const a72_0x99975a=a72_0x3228;(function(_0x591c9e,_0x38df6a){const _0x809538=a72_0x3228,_0x445be3=_0x591c9e();while(!![]){try{const _0x2d8944=-parseInt(_0x809538(0x76))/0x1+-parseInt(_0x809538(0x73))/0x2+-parseInt(_0x809538(0x79))/0x3*(parseInt(_0x809538(0x6f))/0x4)+-parseInt(_0x809538(0x78))/0x5*(parseInt(_0x809538(0x77))/0x6)+parseInt(_0x809538(0x75))/0x7+-parseInt(_0x809538(0x7a))/0x8+parseInt(_0x809538(0x71))/0x9;if(_0x2d8944===_0x38df6a)break;else _0x445be3['push'](_0x445be3['shift']());}catch(_0x214b5b){_0x445be3['push'](_0x445be3['shift']());}}}(a72_0x40bd,0xc425b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a72_0x3228(_0x19922b,_0x8892e7){_0x19922b=_0x19922b-0x6e;const _0x40bd02=a72_0x40bd();let _0x32284a=_0x40bd02[_0x19922b];return _0x32284a;}import{PRODUCT_CONFIG}from'./constant/product.js';function a72_0x40bd(){const _0x4c55e1=['Configure\x20accessKey\x20in\x20','59236NxQQHO','\x20or\x20run\x20`','48232746MsDGKi','newConfigFileName','2738286lgAMyV','\x20auth\x20login`.','3775261WQDCet','1444965fCWQCI','389106kTJXZU','40xScVTr','309Wrskha','1894840Nntamc','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'];a72_0x40bd=function(){return _0x4c55e1;};return a72_0x40bd();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a72_0x99975a(0x6e)+PRODUCT_CONFIG[a72_0x99975a(0x72)]+a72_0x99975a(0x70)+CLI_BIN_NAME+a72_0x99975a(0x74),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a72_0x99975a(0x72)]+'.','notInProjectHint':a72_0x99975a(0x7b)+PRODUCT_CONFIG[a72_0x99975a(0x72)]+'\x20file.'});
@@ -1 +1 @@
1
- (function(_0x4d6aa7,_0x3d4b3a){var _0x48db0e=a73_0x45ee,_0x1ba670=_0x4d6aa7();while(!![]){try{var _0x5496c7=-parseInt(_0x48db0e(0x14d))/0x1*(parseInt(_0x48db0e(0x14b))/0x2)+parseInt(_0x48db0e(0x150))/0x3*(-parseInt(_0x48db0e(0x14a))/0x4)+-parseInt(_0x48db0e(0x14f))/0x5*(-parseInt(_0x48db0e(0x152))/0x6)+-parseInt(_0x48db0e(0x14e))/0x7+parseInt(_0x48db0e(0x148))/0x8+parseInt(_0x48db0e(0x151))/0x9*(parseInt(_0x48db0e(0x149))/0xa)+parseInt(_0x48db0e(0x14c))/0xb;if(_0x5496c7===_0x3d4b3a)break;else _0x1ba670['push'](_0x1ba670['shift']());}catch(_0x22e787){_0x1ba670['push'](_0x1ba670['shift']());}}}(a73_0x9253,0xe5b41));function a73_0x45ee(_0x526297,_0x924fa0){_0x526297=_0x526297-0x148;var _0x92532d=a73_0x9253();var _0x45ee64=_0x92532d[_0x526297];return _0x45ee64;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a73_0xf9bec0}from'@lovrabet/cli-framework';function a73_0x9253(){var _0x5bdafe=['34454046hsmCUQ','686363HhFFgp','9275511vrNwNF','3970NILGVl','29031FjsIUA','258453TcRScM','1578lzNNeB','8569960uuhYsp','290SPhVEC','664ylKZqW','4hutSze'];a73_0x9253=function(){return _0x5bdafe;};return a73_0x9253();}export function buildAllFlags(_0x338bb6){return a73_0xf9bec0(_0x338bb6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a73_0x1bfe(){var _0x46b0fd=['2611326ZLpdSN','1676CQKHjb','1824690gBuOKe','3970MaNMgI','8719264cMoyBQ','1667zFyqqJ','468okYLgu','9vMliPT','22961190pphReC','5825520YwMIvy'];a73_0x1bfe=function(){return _0x46b0fd;};return a73_0x1bfe();}(function(_0x1a5ae1,_0x460db2){var _0x1997f7=a73_0x5807,_0x1cc174=_0x1a5ae1();while(!![]){try{var _0x4b6e2f=-parseInt(_0x1997f7(0x1a7))/0x1*(-parseInt(_0x1997f7(0x1a3))/0x2)+-parseInt(_0x1997f7(0x1a2))/0x3+parseInt(_0x1997f7(0x1a8))/0x4*(-parseInt(_0x1997f7(0x1a5))/0x5)+-parseInt(_0x1997f7(0x1a1))/0x6+parseInt(_0x1997f7(0x1a4))/0x7+-parseInt(_0x1997f7(0x1a6))/0x8+parseInt(_0x1997f7(0x1a9))/0x9*(parseInt(_0x1997f7(0x1aa))/0xa);if(_0x4b6e2f===_0x460db2)break;else _0x1cc174['push'](_0x1cc174['shift']());}catch(_0x503888){_0x1cc174['push'](_0x1cc174['shift']());}}}(a73_0x1bfe,0xe2f1f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a73_0x5807(_0x196c3e,_0x5374d4){_0x196c3e=_0x196c3e-0x1a1;var _0x1bfef9=a73_0x1bfe();var _0x58079f=_0x1bfef9[_0x196c3e];return _0x58079f;}import{buildAllFlags as a73_0xd43879}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5db935){return a73_0xd43879(_0x5db935,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}