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

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 (111) 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 -0
  10. package/lib/commands/app-config/index.js +1 -0
  11. package/lib/commands/app-config/shared.js +1 -0
  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 -0
  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/types.js +1 -1
  87. package/lib/generated/build-info.js +1 -1
  88. package/lib/help.js +1 -1
  89. package/lib/skills/npx-skills-add.js +1 -1
  90. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  91. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  92. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  93. package/lib/skills/runtime-skill-sync/links.js +1 -1
  94. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  95. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  96. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  97. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  98. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  99. package/lib/skills/runtime-skill-sync/push.js +1 -1
  100. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  101. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  102. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  103. package/lib/skills/runtime-skill-sync.js +1 -1
  104. package/lib/utils/apply-jq-filter.js +1 -1
  105. package/lib/utils/logger.js +1 -1
  106. package/lib/utils/params.js +1 -1
  107. package/lib/utils/platform.js +1 -1
  108. package/lib/utils/update-notice.js +1 -1
  109. package/lib/utils/version.js +1 -1
  110. package/lib/utils/write-cli-side-channel.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- const a52_0x8b1c3f=a52_0x1393;(function(_0x5671af,_0x15c7e2){const _0x562a2e=a52_0x1393,_0x31f851=_0x5671af();while(!![]){try{const _0x4bd3c1=parseInt(_0x562a2e(0x183))/0x1+parseInt(_0x562a2e(0x184))/0x2*(parseInt(_0x562a2e(0x17e))/0x3)+-parseInt(_0x562a2e(0x174))/0x4+parseInt(_0x562a2e(0x177))/0x5+-parseInt(_0x562a2e(0x17b))/0x6*(parseInt(_0x562a2e(0x18a))/0x7)+-parseInt(_0x562a2e(0x17f))/0x8*(-parseInt(_0x562a2e(0x182))/0x9)+-parseInt(_0x562a2e(0x16f))/0xa*(-parseInt(_0x562a2e(0x17c))/0xb);if(_0x4bd3c1===_0x15c7e2)break;else _0x31f851['push'](_0x31f851['shift']());}catch(_0x2ee622){_0x31f851['push'](_0x31f851['shift']());}}}(a52_0x1d6c,0x5b118));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x8b1c3f(0x186)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x8b1c3f(0x187)],'importable':!![]},'pageSize':{'description':a52_0x8b1c3f(0x178),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x8b1c3f(0x18d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x8b1c3f(0x17d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x8b1c3f(0x172),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x8b1c3f(0x189),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x8b1c3f(0x18c)],'importable':!![]},'locale':{'description':a52_0x8b1c3f(0x185),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x8b1c3f(0x179)](CONFIG_FIELD_SCHEMAS)[a52_0x8b1c3f(0x170)](([,_0x54b5bc])=>_0x54b5bc['cliSettableTopLevel'])['map'](([_0x2e8e85])=>_0x2e8e85));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x8b1c3f(0x179)](CONFIG_FIELD_SCHEMAS)[a52_0x8b1c3f(0x170)](([,_0x2e6cf1])=>_0x2e6cf1['enumValues'])[a52_0x8b1c3f(0x175)](([_0x478b64,_0x551a35])=>[_0x478b64,[..._0x551a35['enumValues']||[]]]));function a52_0x1d6c(){const _0x49795e=['entries','Config\x20key.\x20Top-level:\x20','2628294NKwPld','19855NhaPbT','Override\x20runtime\x20domain','1011IFkVJV','24sKGHMY',';\x20local\x20alias:\x20apps.<alias>.appcode','join','1596852iOmurk','390063ByKHCd','1922mYgEfB','Locale','env','format','legacyCompatOnly','Risk\x20level','7YgoTDW','importable','riskLevel','Override\x20API\x20domain','580ofigEC','filter','enumValues','Access\x20key\x20(client-ak\x20auth)','defaultValue','2958424khGAEV','map','has','998885wdijoS','Default\x20page\x20size'];a52_0x1d6c=function(){return _0x49795e;};return a52_0x1d6c();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x8b1c3f(0x179)](CONFIG_FIELD_SCHEMAS)[a52_0x8b1c3f(0x170)](([,_0x364412])=>_0x364412[a52_0x8b1c3f(0x18b)])[a52_0x8b1c3f(0x175)](([_0x454065])=>_0x454065);export function getConfigFieldSchema(_0x2e48e8){return CONFIG_FIELD_SCHEMAS[_0x2e48e8];}export function getConfigEnumValues(_0x31ca96){const _0x55f40b=a52_0x8b1c3f;return getConfigFieldSchema(_0x31ca96)?.[_0x55f40b(0x171)];}export function getConfigDefaultValue(_0x56a123){const _0xcdee9=a52_0x8b1c3f;return getConfigFieldSchema(_0x56a123)?.[_0xcdee9(0x173)];}export function isTopLevelConfigKey(_0x4e5876){const _0x1a1791=a52_0x8b1c3f;return TOP_LEVEL_CONFIG_KEYS[_0x1a1791(0x176)](_0x4e5876);}function a52_0x1393(_0x4f8b99,_0x4c75c0){_0x4f8b99=_0x4f8b99-0x16f;const _0x1d6c35=a52_0x1d6c();let _0x139322=_0x1d6c35[_0x4f8b99];return _0x139322;}export function isLegacyCompatConfigKey(_0x818d9d){const _0x31dd82=a52_0x8b1c3f;return getConfigFieldSchema(_0x818d9d)?.[_0x31dd82(0x188)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x3a92a4){const _0x4edcb1=a52_0x8b1c3f;return[..._0x3a92a4][_0x4edcb1(0x181)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x36d920=a52_0x8b1c3f;return _0x36d920(0x17a)+getTopLevelConfigKeySummary()+_0x36d920(0x180);}export function buildAppProfileListFields(_0x1a9b86){return{'env':_0x1a9b86,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
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 +1 @@
1
- function a53_0x996d(_0xfa3445,_0x4766a3){_0xfa3445=_0xfa3445-0xc4;const _0x3310ac=a53_0x3310();let _0x996d6e=_0x3310ac[_0xfa3445];return _0x996d6e;}const a53_0x1fc6ce=a53_0x996d;(function(_0x543c9a,_0xdf163b){const _0x70c207=a53_0x996d,_0x528f00=_0x543c9a();while(!![]){try{const _0x212c52=-parseInt(_0x70c207(0xcb))/0x1+parseInt(_0x70c207(0xce))/0x2*(-parseInt(_0x70c207(0xc8))/0x3)+parseInt(_0x70c207(0xc9))/0x4+-parseInt(_0x70c207(0xcc))/0x5+-parseInt(_0x70c207(0xc5))/0x6*(-parseInt(_0x70c207(0xc7))/0x7)+parseInt(_0x70c207(0xca))/0x8+parseInt(_0x70c207(0xc6))/0x9;if(_0x212c52===_0xdf163b)break;else _0x528f00['push'](_0x528f00['shift']());}catch(_0x11b444){_0x528f00['push'](_0x528f00['shift']());}}}(a53_0x3310,0x8dd53));function a53_0x3310(){const _0x32b64e=['PUBLISHED','585562NtGfQb','Published','12XtCaex','8545995dRETKL','3904012RLfTLG','3apFXLO','1073116FxKYZe','4010304qQehvj','1100379rtVWOI','4302235fkEKnh'];a53_0x3310=function(){return _0x32b64e;};return a53_0x3310();}export const APP_PUBLISH_STATUS={'Published':a53_0x1fc6ce(0xcd),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x1fc6ce(0xc4)];
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 +1 @@
1
- const a54_0xf252d7=a54_0x254f;(function(_0x17e9c6,_0x38a183){const _0x3062da=a54_0x254f,_0x1616c8=_0x17e9c6();while(!![]){try{const _0x1a620c=-parseInt(_0x3062da(0x15b))/0x1*(-parseInt(_0x3062da(0x156))/0x2)+-parseInt(_0x3062da(0x155))/0x3+parseInt(_0x3062da(0x153))/0x4+-parseInt(_0x3062da(0x151))/0x5*(-parseInt(_0x3062da(0x152))/0x6)+-parseInt(_0x3062da(0x154))/0x7+parseInt(_0x3062da(0x15c))/0x8+-parseInt(_0x3062da(0x158))/0x9*(parseInt(_0x3062da(0x15a))/0xa);if(_0x1a620c===_0x38a183)break;else _0x1616c8['push'](_0x1616c8['shift']());}catch(_0x57f354){_0x1616c8['push'](_0x1616c8['shift']());}}}(a54_0x7ec1,0x8491c));function a54_0x254f(_0x4daf27,_0x22e146){_0x4daf27=_0x4daf27-0x151;const _0x7ec1af=a54_0x7ec1();let _0x254f27=_0x7ec1af[_0x4daf27];return _0x254f27;}function a54_0x7ec1(){const _0x39101e=['7816610XGciTl','81181HFqMfY','5750216gttTtg','90GxqBds','197454eSzWBb','357736NjktTs','957215liQSxw','61032cznrqX','2oItFGC','client-ak','9oiXVVQ','ClientAk'];a54_0x7ec1=function(){return _0x39101e;};return a54_0x7ec1();}export const AUTH_MODE={'ClientAk':a54_0xf252d7(0x157)};export function isAuthMode(_0x55f243){const _0x3b7521=a54_0xf252d7;return _0x55f243===AUTH_MODE[_0x3b7521(0x159)];}
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 +1 @@
1
- const a55_0x2d937f=a55_0x2cec;(function(_0x128751,_0x21d103){const _0x155304=a55_0x2cec,_0x2ce11e=_0x128751();while(!![]){try{const _0x1b4f66=parseInt(_0x155304(0x1d0))/0x1*(parseInt(_0x155304(0x1b2))/0x2)+-parseInt(_0x155304(0x1db))/0x3*(parseInt(_0x155304(0x1c3))/0x4)+parseInt(_0x155304(0x1c5))/0x5+-parseInt(_0x155304(0x1b4))/0x6+parseInt(_0x155304(0x1df))/0x7*(-parseInt(_0x155304(0x1e1))/0x8)+parseInt(_0x155304(0x1c7))/0x9+parseInt(_0x155304(0x1ba))/0xa;if(_0x1b4f66===_0x21d103)break;else _0x2ce11e['push'](_0x2ce11e['shift']());}catch(_0x5c5916){_0x2ce11e['push'](_0x2ce11e['shift']());}}}(a55_0x1341,0x990d3));function a55_0x1341(){const _0x1249f6=['13629960mIzNcH','yes','Use\x20global\x20config\x20scope','non-interactive','<expr>','name','format','<name>','dry-run','16XUlySH','Alias\x20for\x20--non-interactive','1017665ICMbXw','Clear\x20output','10078353LmowKK','Verbose\x20output','SQL\x20query\x20code','params','Record\x20ID','JSON\x20params\x20for\x20execute\x20commands','env','verbose','string','292693cjDOJL','map','dryRun','global','sqlcode','<code>','cliDisplayName','app','meowKey','appcode','boolean','917139ZClnFj','production\x20|\x20development\x20|\x20daily','cliBinName','Skip\x20confirmation\x20for\x20high-risk\x20writes','7FleuBt','Output\x20format','7667024wNWpFv','fromEntries','json\x20|\x20pretty\x20|\x20compress','4XnnaoU','type','2781618YlKZff','help','Force\x20non-interactive\x20mode\x20(CI)','Environment','clear','nonInteractive'];a55_0x1341=function(){return _0x1249f6;};return a55_0x1341();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a55_0x2d937f(0x1dd)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x2d937f(0x1d6)];function a55_0x2cec(_0x83aca5,_0xa3af04){_0x83aca5=_0x83aca5-0x1b0;const _0x134158=a55_0x1341();let _0x2cec91=_0x134158[_0x83aca5];return _0x2cec91;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x2d937f(0x1d9),'meowKey':a55_0x2d937f(0x1d9),'type':a55_0x2d937f(0x1cf),'description':'Override\x20appcode','hint':a55_0x2d937f(0x1d5)},{'name':'app','meowKey':a55_0x2d937f(0x1d7),'type':a55_0x2d937f(0x1cf),'description':'Select\x20app\x20profile\x20by\x20name','hint':a55_0x2d937f(0x1c1)},{'name':a55_0x2d937f(0x1cd),'meowKey':'env','type':a55_0x2d937f(0x1cf),'description':a55_0x2d937f(0x1b7),'hint':a55_0x2d937f(0x1dc)},{'name':a55_0x2d937f(0x1c0),'meowKey':a55_0x2d937f(0x1c0),'type':a55_0x2d937f(0x1cf),'description':a55_0x2d937f(0x1e0),'hint':a55_0x2d937f(0x1b1)},{'name':'jq','meowKey':'jq','type':a55_0x2d937f(0x1cf),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a55_0x2d937f(0x1be)},{'name':'dry-run','meowKey':a55_0x2d937f(0x1d2),'type':a55_0x2d937f(0x1da),'description':'Preview\x20operation\x20without\x20executing'},{'name':a55_0x2d937f(0x1bb),'meowKey':a55_0x2d937f(0x1bb),'type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1de)},{'name':a55_0x2d937f(0x1bd),'meowKey':a55_0x2d937f(0x1b9),'type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1b6)},{'name':a55_0x2d937f(0x1d3),'meowKey':a55_0x2d937f(0x1d3),'type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1bc)},{'name':'ci','meowKey':'ci','type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1c4),'hidden':!![]},{'name':a55_0x2d937f(0x1b5),'meowKey':a55_0x2d937f(0x1b5),'type':a55_0x2d937f(0x1da),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a55_0x2d937f(0x1cf),'description':a55_0x2d937f(0x1cb),'hidden':!![]},{'name':a55_0x2d937f(0x1bf),'meowKey':a55_0x2d937f(0x1bf),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':a55_0x2d937f(0x1d4),'meowKey':a55_0x2d937f(0x1d4),'type':a55_0x2d937f(0x1cf),'description':a55_0x2d937f(0x1c9),'hidden':!![]},{'name':a55_0x2d937f(0x1ca),'meowKey':a55_0x2d937f(0x1ca),'type':'string','description':a55_0x2d937f(0x1cc),'hidden':!![]},{'name':a55_0x2d937f(0x1ce),'meowKey':a55_0x2d937f(0x1ce),'type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1c8),'hidden':!![]},{'name':'clear','meowKey':a55_0x2d937f(0x1b8),'type':a55_0x2d937f(0x1da),'description':a55_0x2d937f(0x1c6),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x2d937f(0x1d9),a55_0x2d937f(0x1d7),a55_0x2d937f(0x1cd),a55_0x2d937f(0x1c0),'jq',a55_0x2d937f(0x1c2),'yes',a55_0x2d937f(0x1bd),'ci']);export function buildMeowFlags(){const _0xaf4962=a55_0x2d937f;return Object[_0xaf4962(0x1b0)](GLOBAL_FLAGS[_0xaf4962(0x1d1)](_0x306f4b=>[_0x306f4b[_0xaf4962(0x1d8)],{'type':_0x306f4b[_0xaf4962(0x1b3)]}]));}
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 +1 @@
1
- const a56_0x41e8c7=a56_0x3e1e;function a56_0x3e1e(_0x5515f0,_0xe24fc7){_0x5515f0=_0x5515f0-0x67;const _0x46917c=a56_0x4691();let _0x3e1e10=_0x46917c[_0x5515f0];return _0x3e1e10;}(function(_0x492dae,_0x20efad){const _0x4047c0=a56_0x3e1e,_0xea853f=_0x492dae();while(!![]){try{const _0x12ef80=-parseInt(_0x4047c0(0x6a))/0x1*(-parseInt(_0x4047c0(0x68))/0x2)+parseInt(_0x4047c0(0x6e))/0x3*(parseInt(_0x4047c0(0x6f))/0x4)+parseInt(_0x4047c0(0x70))/0x5+parseInt(_0x4047c0(0x72))/0x6+parseInt(_0x4047c0(0x67))/0x7+-parseInt(_0x4047c0(0x6c))/0x8+-parseInt(_0x4047c0(0x73))/0x9;if(_0x12ef80===_0x20efad)break;else _0xea853f['push'](_0xea853f['shift']());}catch(_0x4c1b42){_0xea853f['push'](_0xea853f['shift']());}}}(a56_0x4691,0x65b8c));export const DEFAULT_APP_PROFILE_NAME='main';function a56_0x4691(){const _0x358b41=['en-US','52426pbDAFG','write','3395920BqKMpM','compress','9ziVquA','821036FvHvKA','2236940aMpWVH','production','280494nvZbfY','11933847ndGkPu','3363675MAjcOR','22iYtCYG'];a56_0x4691=function(){return _0x358b41;};return a56_0x4691();}export const DEFAULT_CONFIG_VALUES={'env':a56_0x41e8c7(0x71),'format':a56_0x41e8c7(0x6d),'locale':a56_0x41e8c7(0x69),'riskLevel':a56_0x41e8c7(0x6b)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x41e8c7(0x6d);
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 +1 @@
1
- const a57_0x2943d2=a57_0x9898;(function(_0x22c71f,_0x4cee94){const _0x4146a6=a57_0x9898,_0x5c6424=_0x22c71f();while(!![]){try{const _0x3234d4=parseInt(_0x4146a6(0x94))/0x1*(parseInt(_0x4146a6(0x91))/0x2)+parseInt(_0x4146a6(0x9b))/0x3*(parseInt(_0x4146a6(0x9e))/0x4)+parseInt(_0x4146a6(0x96))/0x5*(-parseInt(_0x4146a6(0x95))/0x6)+parseInt(_0x4146a6(0x98))/0x7*(parseInt(_0x4146a6(0x97))/0x8)+parseInt(_0x4146a6(0x9c))/0x9*(-parseInt(_0x4146a6(0x9a))/0xa)+parseInt(_0x4146a6(0x9d))/0xb+-parseInt(_0x4146a6(0x9f))/0xc*(parseInt(_0x4146a6(0xa0))/0xd);if(_0x3234d4===_0x4cee94)break;else _0x5c6424['push'](_0x5c6424['shift']());}catch(_0x204185){_0x5c6424['push'](_0x5c6424['shift']());}}}(a57_0x2aa2,0xa9e3e));import{PRODUCT_CONFIG}from'../constant/product.js';function a57_0x9898(_0x3b20d0,_0x2a9a5d){_0x3b20d0=_0x3b20d0-0x91;const _0x2aa236=a57_0x2aa2();let _0x98983=_0x2aa236[_0x3b20d0];return _0x98983;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x2943d2(0x99)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x2943d2(0x92)];function a57_0x2aa2(){const _0x5a82a4=['90349budZNc','npmPackageName','10hZqePR','343167mOBTSc','12404223uzrVcv','9243850LuUkGl','36jCqkHd','24zsyBLw','1286857vcZFHY','34Gihosv','skillSource','npmRegistryBaseUrl','12457GZcaTh','246cbFajk','19270CVXXFQ','216mFPjWI'];a57_0x2aa2=function(){return _0x5a82a4;};return a57_0x2aa2();}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x2943d2(0x93)];
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 +1 @@
1
- const a58_0x16b9a0=a58_0x49dd;(function(_0x13761e,_0x514647){const _0x7c148a=a58_0x49dd,_0x2823a3=_0x13761e();while(!![]){try{const _0x42ed16=parseInt(_0x7c148a(0x136))/0x1*(parseInt(_0x7c148a(0x13d))/0x2)+parseInt(_0x7c148a(0x137))/0x3*(parseInt(_0x7c148a(0x132))/0x4)+-parseInt(_0x7c148a(0x13c))/0x5+parseInt(_0x7c148a(0x133))/0x6+parseInt(_0x7c148a(0x12f))/0x7*(-parseInt(_0x7c148a(0x135))/0x8)+parseInt(_0x7c148a(0x134))/0x9+parseInt(_0x7c148a(0x12b))/0xa*(parseInt(_0x7c148a(0x12e))/0xb);if(_0x42ed16===_0x514647)break;else _0x2823a3['push'](_0x2823a3['shift']());}catch(_0x91e68f){_0x2823a3['push'](_0x2823a3['shift']());}}}(a58_0xfffd,0x3b508));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0xf25691){const _0x300d35=a58_0x49dd;customApiDomain=_0xf25691?.['apiDomain'],customUserDomain=_0xf25691?.[_0x300d35(0x139)],customRuntimeDomain=_0xf25691?.[_0x300d35(0x130)],customSkillHubDomain=_0xf25691?.[_0x300d35(0x131)];}function a58_0xfffd(){const _0x451954=['6570971Dxsbqv','49UCqFus','runtimeDomain','skillHubDomain','8iGrBYQ','979014ytVKzq','147051AHQywU','471704PGAUsv','46KqCqWx','135879NCNjjh','skillhub','userDomain','nonProduction','runtime','1743290veGfAl','5952KWxcaN','api','10ZLSYEN','production','domains'];a58_0xfffd=function(){return _0x451954;};return a58_0xfffd();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x16b9a0(0x12d)][a58_0x16b9a0(0x12c)]['user']:PRODUCT_CONFIG[a58_0x16b9a0(0x12d)]['nonProduction']['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a58_0x16b9a0(0x12c)][a58_0x16b9a0(0x12a)]:PRODUCT_CONFIG['domains']['nonProduction'][a58_0x16b9a0(0x12a)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x16b9a0(0x12d)][a58_0x16b9a0(0x12c)][a58_0x16b9a0(0x13b)]:PRODUCT_CONFIG[a58_0x16b9a0(0x12d)][a58_0x16b9a0(0x13a)][a58_0x16b9a0(0x13b)]);function a58_0x49dd(_0x426760,_0x37a130){_0x426760=_0x426760-0x12a;const _0xfffdda=a58_0xfffd();let _0x49ddef=_0xfffdda[_0x426760];return _0x49ddef;}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a58_0x16b9a0(0x12c)][a58_0x16b9a0(0x138)]:PRODUCT_CONFIG['domains'][a58_0x16b9a0(0x13a)][a58_0x16b9a0(0x138)]);
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 +1 @@
1
- function a59_0x52f4(){const _0x1f8eea=['2487844EqhjwJ','dev','online','998232EdacAa','1018387UVvtos','development','daily','production','21ocyiii','80601LUDFLQ','2555865RUkMOX','ENV','967077gIlqUo','26OOUXsp','12glUGDS','41091490COkdLy'];a59_0x52f4=function(){return _0x1f8eea;};return a59_0x52f4();}const a59_0x5db096=a59_0x9ffe;(function(_0x2297e3,_0x1bb053){const _0xe8d175=a59_0x9ffe,_0x7f3d1f=_0x2297e3();while(!![]){try{const _0xe487f9=-parseInt(_0xe8d175(0x114))/0x1+-parseInt(_0xe8d175(0x10d))/0x2*(parseInt(_0xe8d175(0x109))/0x3)+-parseInt(_0xe8d175(0x110))/0x4+parseInt(_0xe8d175(0x10a))/0x5*(-parseInt(_0xe8d175(0x10e))/0x6)+parseInt(_0xe8d175(0x108))/0x7*(-parseInt(_0xe8d175(0x113))/0x8)+-parseInt(_0xe8d175(0x10c))/0x9+parseInt(_0xe8d175(0x10f))/0xa;if(_0xe487f9===_0x1bb053)break;else _0x7f3d1f['push'](_0x7f3d1f['shift']());}catch(_0x488a9c){_0x7f3d1f['push'](_0x7f3d1f['shift']());}}}(a59_0x52f4,0x963e2));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x5db096(0x107),a59_0x5db096(0x115),a59_0x5db096(0x116)];export function normalizeEnv(_0x15ac5b){const _0x3514c3=a59_0x5db096;return _0x15ac5b===_0x3514c3(0x112)?_0x3514c3(0x107):_0x15ac5b;}export function isProduction(_0x3d9632){const _0x34dd8d=a59_0x5db096;return normalizeEnv(_0x3d9632)===_0x34dd8d(0x107);}export function isDaily(_0x81d592){const _0xeb4b77=a59_0x5db096;return normalizeEnv(_0x81d592)===_0xeb4b77(0x116);}export function isDev(_0x4575d3){const _0xb65424=a59_0x5db096,_0x18f49d=normalizeEnv(_0x4575d3);return _0x18f49d===_0xb65424(0x115)||_0x18f49d===_0xb65424(0x111);}let env=normalizeEnv(productEnv(a59_0x5db096(0x10b))||'production');export function getEnv(){return env;}function a59_0x9ffe(_0x40844d,_0x26d6cd){_0x40844d=_0x40844d-0x107;const _0x52f42d=a59_0x52f4();let _0x9ffe73=_0x52f42d[_0x40844d];return _0x9ffe73;}export function initEnv(_0x973e1a){env=normalizeEnv(_0x973e1a);}
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 +1 @@
1
- const a60_0x31671b=a60_0x3781;function a60_0x3781(_0x73a8a2,_0xfd7254){_0x73a8a2=_0x73a8a2-0x1f4;const _0x55932e=a60_0x5593();let _0x3781a9=_0x55932e[_0x73a8a2];return _0x3781a9;}(function(_0x524f0d,_0x50a9d5){const _0x34e5ce=a60_0x3781,_0x2fdfe7=_0x524f0d();while(!![]){try{const _0x2a33ee=-parseInt(_0x34e5ce(0x1f4))/0x1*(parseInt(_0x34e5ce(0x1f6))/0x2)+-parseInt(_0x34e5ce(0x1f5))/0x3+parseInt(_0x34e5ce(0x1f7))/0x4+-parseInt(_0x34e5ce(0x1fd))/0x5*(parseInt(_0x34e5ce(0x1fa))/0x6)+parseInt(_0x34e5ce(0x1fc))/0x7*(parseInt(_0x34e5ce(0x1f9))/0x8)+-parseInt(_0x34e5ce(0x1fb))/0x9+parseInt(_0x34e5ce(0x1fe))/0xa;if(_0x2a33ee===_0x50a9d5)break;else _0x2fdfe7['push'](_0x2fdfe7['shift']());}catch(_0x1367ac){_0x2fdfe7['push'](_0x2fdfe7['shift']());}}}(a60_0x5593,0x977d0));export const OUTPUT_FORMAT_VALUES=['json',a60_0x31671b(0x1ff),a60_0x31671b(0x1f8)];function a60_0x5593(){const _0x34e436=['2099531TpJMJk','6052465bIcEnx','24182840LFRNwS','pretty','58642KdLUnu','721614hsmkls','42wvEKvW','482216uGdQKM','compress','24ExnQzF','6ablQxE','1220652OXjVhx'];a60_0x5593=function(){return _0x34e436;};return a60_0x5593();}
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 +1 @@
1
- const a61_0x20cdfd=a61_0x4d8b;(function(_0x570b2a,_0x52ac6d){const _0x1c7b6c=a61_0x4d8b,_0x8f7083=_0x570b2a();while(!![]){try{const _0x158c85=-parseInt(_0x1c7b6c(0x19f))/0x1*(parseInt(_0x1c7b6c(0x196))/0x2)+-parseInt(_0x1c7b6c(0x194))/0x3*(-parseInt(_0x1c7b6c(0x18f))/0x4)+parseInt(_0x1c7b6c(0x193))/0x5*(parseInt(_0x1c7b6c(0x1a2))/0x6)+-parseInt(_0x1c7b6c(0x197))/0x7+-parseInt(_0x1c7b6c(0x1a1))/0x8+-parseInt(_0x1c7b6c(0x191))/0x9+parseInt(_0x1c7b6c(0x199))/0xa;if(_0x158c85===_0x52ac6d)break;else _0x8f7083['push'](_0x8f7083['shift']());}catch(_0x460bb5){_0x8f7083['push'](_0x8f7083['shift']());}}}(a61_0x4972,0x21932));function a61_0x4d8b(_0x416aec,_0x7725a2){_0x416aec=_0x416aec-0x186;const _0x4972a=a61_0x4972();let _0x4d8bfe=_0x4972a[_0x416aec];return _0x4d8bfe;}export const PRODUCT_CONFIG={'cliBinName':'lovrabet','cliDisplayName':a61_0x20cdfd(0x1a3),'npmPackageName':a61_0x20cdfd(0x18d),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a61_0x20cdfd(0x189),'envPrefix':a61_0x20cdfd(0x190),'legacyEnvPrefixes':[a61_0x20cdfd(0x19d)],'configFileNames':['.lovrabet.json','.lovrabetrc'],'newConfigFileName':a61_0x20cdfd(0x18e),'homeDirName':a61_0x20cdfd(0x188),'logFileName':'.lovrabet-runtime.log','invokeSource':a61_0x20cdfd(0x19e),'userCenterDisplayName':a61_0x20cdfd(0x18a),'skipNpxSkillsEnvSuffix':a61_0x20cdfd(0x187),'domains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':a61_0x20cdfd(0x186),'skillhub':a61_0x20cdfd(0x19a)},'nonProduction':{'user':a61_0x20cdfd(0x198),'api':a61_0x20cdfd(0x192),'runtime':a61_0x20cdfd(0x19c),'skillhub':a61_0x20cdfd(0x18b)}},'accessKeyCreatePath':a61_0x20cdfd(0x1a0)};function a61_0x4972(){const _0x38ec4e=['https://skills.lovrabet.com','map','https://daily-runtime.lovrabet.com','RABETBASE','cli:lovrabet-runtime','9543jZbdDR','/user/ak','577256TNOoCr','823866IgOzRC','Lovrabet\x20Runtime\x20CLI','https://runtime.lovrabet.com','SKIP_NPX_SKILLS','.lovrabet','https://registry.npmjs.org','Lovrabet\x20User\x20Center','https://skills-daily.lovrabet.com','legacyEnvPrefixes','@lovrabet/lovrabet-cli','.lovrabet.json','28DObTvR','LOVRABET','2286630UuhAdR','https://daily-api.lovrabet.com','10STyXeU','71661ZzfzxU','envPrefix','2YlpcSt','683613ECMIbY','https://user-daily.lovrabet.com','1291200hzKcDB'];a61_0x4972=function(){return _0x38ec4e;};return a61_0x4972();}export function productEnvName(_0x1abcf0){const _0x400c42=a61_0x20cdfd;return PRODUCT_CONFIG[_0x400c42(0x195)]+'_'+_0x1abcf0;}export function productEnvNames(_0xa3674){const _0x5cf664=a61_0x20cdfd;return[productEnvName(_0xa3674),...PRODUCT_CONFIG[_0x5cf664(0x18c)][_0x5cf664(0x19b)](_0x3235cf=>_0x3235cf+'_'+_0xa3674)];}export function productEnv(_0xbce071){for(const _0x654da of productEnvNames(_0xbce071)){const _0x596614=process.env[_0x654da];if(_0x596614!==undefined)return _0x596614;}return undefined;}
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 +1 @@
1
- const a62_0x51173e=a62_0x12a2;(function(_0x49666e,_0x31026c){const _0x3e608b=a62_0x12a2,_0x33acfe=_0x49666e();while(!![]){try{const _0x11103a=-parseInt(_0x3e608b(0x182))/0x1*(parseInt(_0x3e608b(0x179))/0x2)+-parseInt(_0x3e608b(0x17e))/0x3*(parseInt(_0x3e608b(0x17d))/0x4)+parseInt(_0x3e608b(0x180))/0x5*(parseInt(_0x3e608b(0x184))/0x6)+-parseInt(_0x3e608b(0x176))/0x7+parseInt(_0x3e608b(0x17a))/0x8*(parseInt(_0x3e608b(0x17f))/0x9)+-parseInt(_0x3e608b(0x17c))/0xa*(-parseInt(_0x3e608b(0x185))/0xb)+parseInt(_0x3e608b(0x17b))/0xc*(parseInt(_0x3e608b(0x177))/0xd);if(_0x11103a===_0x31026c)break;else _0x33acfe['push'](_0x33acfe['shift']());}catch(_0x3bde52){_0x33acfe['push'](_0x33acfe['shift']());}}}(a62_0x3610,0x54cbb));function a62_0x12a2(_0x7616d6,_0x452512){_0x7616d6=_0x7616d6-0x176;const _0x3610f3=a62_0x3610();let _0x12a2de=_0x3610f3[_0x7616d6];return _0x12a2de;}export const RISK_LEVEL_VALUES=[a62_0x51173e(0x181),a62_0x51173e(0x183),a62_0x51173e(0x178)];function a62_0x3610(){const _0x185120=['4201995KDYinp','152828KcWIVh','high-risk-write','147826hXrXXP','1816jCnILu','648cblJUh','80KplEQY','4YnHnPK','1548147iUUmqI','25974vxOTei','3985caLdDD','read','5EbbPQN','write','456fgBDTz','663718DtAOgq'];a62_0x3610=function(){return _0x185120;};return a62_0x3610();}
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 +1 @@
1
- const a63_0x402e3e=a63_0x462c;(function(_0xf8f183,_0x4f4c85){const _0x30b08f=a63_0x462c,_0x82ca3=_0xf8f183();while(!![]){try{const _0x3a6cf5=parseInt(_0x30b08f(0xbb))/0x1+-parseInt(_0x30b08f(0xb6))/0x2+parseInt(_0x30b08f(0xb7))/0x3+-parseInt(_0x30b08f(0xb5))/0x4*(-parseInt(_0x30b08f(0xb9))/0x5)+-parseInt(_0x30b08f(0xbd))/0x6+-parseInt(_0x30b08f(0xb4))/0x7*(-parseInt(_0x30b08f(0xba))/0x8)+parseInt(_0x30b08f(0xbe))/0x9;if(_0x3a6cf5===_0x4f4c85)break;else _0x82ca3['push'](_0x82ca3['shift']());}catch(_0x48b942){_0x82ca3['push'](_0x82ca3['shift']());}}}(a63_0x21f4,0x80202));function a63_0x462c(_0x51845d,_0x28b653){_0x51845d=_0x51845d-0xb4;const _0x21f4f2=a63_0x21f4();let _0x462cb0=_0x21f4f2[_0x51845d];return _0x462cb0;}import{PRODUCT_CONFIG}from'../constant/product.js';function a63_0x21f4(){const _0x314ff0=['25750jHVrZN','72vAwouc','350511mxIZKL','production','3840774wbRJvd','441882pNXrie','user','141239qiAtAo','268EBeTzl','327764QxJkIQ','1207683yZkqlz','domains'];a63_0x21f4=function(){return _0x314ff0;};return a63_0x21f4();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x402e3e(0xb8)][a63_0x402e3e(0xbc)][a63_0x402e3e(0xbf)]+PRODUCT_CONFIG['accessKeyCreatePath'];
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)];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a64_0x28118d=a64_0x88ab;(function(_0x64e6cc,_0x4a0e5d){const _0x57e31d=a64_0x88ab,_0x4d91fa=_0x64e6cc();while(!![]){try{const _0x1f0013=-parseInt(_0x57e31d(0x145))/0x1*(-parseInt(_0x57e31d(0x113))/0x2)+parseInt(_0x57e31d(0x143))/0x3+-parseInt(_0x57e31d(0x126))/0x4+-parseInt(_0x57e31d(0x13f))/0x5+parseInt(_0x57e31d(0x123))/0x6*(-parseInt(_0x57e31d(0x10e))/0x7)+parseInt(_0x57e31d(0x14d))/0x8*(parseInt(_0x57e31d(0x155))/0x9)+-parseInt(_0x57e31d(0x13a))/0xa*(parseInt(_0x57e31d(0x153))/0xb);if(_0x1f0013===_0x4a0e5d)break;else _0x4d91fa['push'](_0x4d91fa['shift']());}catch(_0x3c369c){_0x4d91fa['push'](_0x4d91fa['shift']());}}}(a64_0x26d5,0xe9c87));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';function a64_0x26d5(){const _0x71967=['VERBOSE','APP','riskLevel','FORMAT','setLogPath','ACCESS_KEY','./constant/env.js','missing','6796824CaefgY','global','parse','2080028IwmqaB','projectConfig','maxRisk','stdin','EACCES','production','newConfigFileName','format','raw','object','EXDEV','isTTY','empty','./constant/domain.js','locale','authRequired','accessKey','defaultApp','pageSize','runtimeDomain','455890lfpHyI','find','inherit','env','ENV','6003040rAtQrs','cwd','high-risk-write','explicit','3918069nQEwYE','stringify','5072iGHGJu','project','join','EPERM','setRawMode','stdout','cache','apiDomain','8ClFBsU','argv','development','true','apps','.tmp','33CfBFIn','host','7022826CAKfsY','string','appcode','app','online','code','isRaw','7qWERxj','slice','globalConfig','top-level','read','734ejdNoc','values','daily','nonInteractive','trim','error','utf8','APPCODE'];a64_0x26d5=function(){return _0x71967;};return a64_0x26d5();}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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x28118d(0x12c)];function resolveConfigPath(_0x116578){for(const _0x5f562c of CONFIG_NAMES){const _0x322748=resolve(_0x116578,_0x5f562c);if(existsSync(_0x322748))return _0x322748;}return undefined;}export function resolveWriteConfigPath(_0x3880e6){const _0x236ecd=a64_0x28118d,_0x1f7941=_0x3880e6===_0x236ecd(0x146)?process[_0x236ecd(0x140)]():homedir(),_0x4e60b8=resolveConfigPath(_0x1f7941);return _0x4e60b8??resolve(_0x1f7941,NEW_CONFIG_NAME);}export function readConfigFile(_0x2308a5){const _0x336213=a64_0x28118d;try{if(existsSync(_0x2308a5)){const _0xb2b695=readFileSync(_0x2308a5,{'encoding':_0x336213(0x119)});if(_0xb2b695){const _0x32a500=JSON['parse'](_0xb2b695);return migrateOnlineEnv(_0x2308a5,_0x32a500),_0x32a500;}}}catch{}return{};}function migrateOnlineEnv(_0x403952,_0x42e72c){const _0xd71f92=a64_0x28118d;let _0x5312a9=![];_0x42e72c[_0xd71f92(0x13d)]==='online'&&(_0x42e72c[_0xd71f92(0x13d)]=_0xd71f92(0x12b),_0x5312a9=!![]);if(_0x42e72c[_0xd71f92(0x151)]&&typeof _0x42e72c[_0xd71f92(0x151)]===_0xd71f92(0x12f))for(const _0x5a88e0 of Object[_0xd71f92(0x114)](_0x42e72c[_0xd71f92(0x151)])){_0x5a88e0&&_0x5a88e0['env']===_0xd71f92(0x159)&&(_0x5a88e0[_0xd71f92(0x13d)]=_0xd71f92(0x12b),_0x5312a9=!![]);}if(_0x5312a9)try{writeConfigFile(_0x403952,_0x42e72c);}catch{}}export function writeConfigFile(_0x4db8b9,_0x44b29f){const _0x3e4ae4=a64_0x28118d,_0x544713=dirname(_0x4db8b9);!existsSync(_0x544713)&&mkdirSync(_0x544713,{'recursive':!![]});const _0x30de6e=_0x4db8b9+_0x3e4ae4(0x152);try{writeFileSync(_0x30de6e,JSON[_0x3e4ae4(0x144)](_0x44b29f,null,0x2)+'\x0a',{'encoding':_0x3e4ae4(0x119),'mode':0x180});try{renameSync(_0x30de6e,_0x4db8b9);}catch(_0x1ee3cd){if(_0x1ee3cd[_0x3e4ae4(0x15a)]===_0x3e4ae4(0x148)||_0x1ee3cd[_0x3e4ae4(0x15a)]===_0x3e4ae4(0x130)||_0x1ee3cd[_0x3e4ae4(0x15a)]===_0x3e4ae4(0x12a)){writeFileSync(_0x4db8b9,JSON[_0x3e4ae4(0x144)](_0x44b29f,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x30de6e);}catch{}}else throw _0x1ee3cd;}}catch(_0x7cd053){try{unlinkSync(_0x30de6e);}catch{}throw _0x7cd053;}}export function isNonInteractiveMode(_0x38a5e1){const _0x59665e=a64_0x28118d;return!!(_0x38a5e1[_0x59665e(0x116)]||_0x38a5e1['ci']||productEnvNames('CI')['some'](_0x538016=>process.env[_0x538016]===_0x59665e(0x150))||process.env.CI===_0x59665e(0x150)||!process[_0x59665e(0x14a)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1836f1=a64_0x28118d;if(!process[_0x1836f1(0x129)][_0x1836f1(0x131)])return![];try{const _0x38dde0=process[_0x1836f1(0x129)][_0x1836f1(0x10d)];return process[_0x1836f1(0x129)]['setRawMode'](!![]),process[_0x1836f1(0x129)][_0x1836f1(0x149)](_0x38dde0??![]),!![];}catch{return![];}}export async function createContext(_0x2d2dc6){const _0x1ca2fc=a64_0x28118d,_0xaaf29d=readRawConfig(),_0x8e7277=buildConfig(_0xaaf29d,_0x2d2dc6);await initGlobalEnvironment(_0x8e7277);const {getUserDomain:_0x5b764f,getApiDomain:_0x3557f9}=await import(_0x1ca2fc(0x133)),_0x1a079d={'apiDomain':_0x3557f9(),'userDomain':_0x5b764f()},_0x49b5fd=await buildAuth(_0x8e7277);logger[_0x1ca2fc(0x11f)](process[_0x1ca2fc(0x140)]());const _0x17d72a=(CLI_BIN_NAME+'\x20'+process[_0x1ca2fc(0x14e)][_0x1ca2fc(0x10f)](0x2)[_0x1ca2fc(0x147)]('\x20'))[_0x1ca2fc(0x117)]();logger['setRawCommand'](_0x17d72a);const _0x303ffd=isNonInteractiveMode(_0x2d2dc6);return{'config':_0x8e7277,'auth':_0x49b5fd,'logger':logger,'env':_0x1a079d,'nonInteractive':_0x303ffd};}export function buildConfigFromFlags(_0x7a1b28){return buildConfig(readRawConfig(),_0x7a1b28);}export function getLocalAppAliases(_0x8d356f){const _0x39815e=a64_0x28118d;return _0x8d356f[_0x39815e(0x151)]&&typeof _0x8d356f['apps']==='object'?_0x8d356f[_0x39815e(0x151)]:{};}export function resolveLocalAppAliasCode(_0x5be193,_0x1522e7){const _0x4d2ead=a64_0x28118d;if(!_0x1522e7)return undefined;const _0x1004f6=getLocalAppAliases(_0x5be193)[_0x1522e7],_0x37aecd=_0x1004f6?.[_0x4d2ead(0x157)];return typeof _0x37aecd===_0x4d2ead(0x156)&&_0x37aecd[_0x4d2ead(0x117)]()?_0x37aecd[_0x4d2ead(0x117)]():undefined;}export function readAppCodeFromConfig(){const _0x3c54bf=a64_0x28118d,_0xaa27fd=readRawConfig(),_0x2406fe=_0xaa27fd['appcode']??_0xaa27fd[_0x3c54bf(0x158)];if(typeof _0x2406fe===_0x3c54bf(0x156)&&_0x2406fe['trim']())return _0x2406fe[_0x3c54bf(0x117)]();const _0x3357bf=resolveLocalAppAliasCode(_0xaa27fd,typeof _0xaa27fd[_0x3c54bf(0x137)]===_0x3c54bf(0x156)?_0xaa27fd[_0x3c54bf(0x137)]:undefined);if(_0x3357bf)return _0x3357bf;const _0x5592a0=normalizeEnv(String(_0xaa27fd[_0x3c54bf(0x13d)]||'production')),_0x1a7490=isDaily(_0x5592a0)?'daily':isDev(_0x5592a0)?_0x3c54bf(0x14f):'production',_0x5b3e76=resolveCachedAppCode(typeof _0xaa27fd['defaultApp']===_0x3c54bf(0x156)?_0xaa27fd[_0x3c54bf(0x137)]:undefined,_0x1a7490,typeof _0xaa27fd[_0x3c54bf(0x136)]===_0x3c54bf(0x156)?_0xaa27fd[_0x3c54bf(0x136)]:undefined);if(_0x5b3e76)return _0x5b3e76;const _0x447870=Object[_0x3c54bf(0x114)](getLocalAppAliases(_0xaa27fd))[_0x3c54bf(0x13b)](_0x2073c4=>_0x2073c4?.[_0x3c54bf(0x157)]);return typeof _0x447870?.[_0x3c54bf(0x157)]==='string'&&_0x447870[_0x3c54bf(0x157)][_0x3c54bf(0x117)]()?_0x447870[_0x3c54bf(0x157)][_0x3c54bf(0x117)]():undefined;}export function readScopedConfig(_0x8345b3){const _0x3601c2=a64_0x28118d,_0x4fefef=_0x8345b3[_0x3601c2(0x124)]?'global':_0x3601c2(0x146);return readConfigFile(resolveWriteConfigPath(_0x4fefef));}export function writeScopedConfig(_0x2fee09,_0x4a4d95){const _0x34ab82=a64_0x28118d,_0x550ef6=_0x4a4d95['global']?_0x34ab82(0x124):'project';writeConfigFile(resolveWriteConfigPath(_0x550ef6),_0x2fee09);}function a64_0x88ab(_0x53828c,_0x2aeab7){_0x53828c=_0x53828c-0x10d;const _0x26d5d1=a64_0x26d5();let _0x88ab74=_0x26d5d1[_0x53828c];return _0x88ab74;}export async function initGlobalEnvironment(_0x2b9dd8){const _0x3a8234=a64_0x28118d,{initEnv:_0x5c9852}=await import(_0x3a8234(0x121));_0x5c9852(_0x2b9dd8[_0x3a8234(0x13d)]);const {initDomains:_0x2b45ab}=await import('./constant/domain.js');_0x2b45ab({'apiDomain':_0x2b9dd8[_0x3a8234(0x12e)][_0x3a8234(0x14c)]||_0x2b9dd8['raw'][_0x3a8234(0x154)]||undefined,'userDomain':_0x2b9dd8[_0x3a8234(0x12e)]['userDomain']||undefined,'runtimeDomain':_0x2b9dd8[_0x3a8234(0x12e)][_0x3a8234(0x139)]||undefined,'skillHubDomain':_0x2b9dd8[_0x3a8234(0x12e)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x46ac04=a64_0x28118d;return resolveConfigPath(process[_0x46ac04(0x140)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x33db6e){const _0x3bdca6=a64_0x28118d;if(!existsSync(_0x33db6e))return{'status':_0x3bdca6(0x122)};try{const _0x5970c5=readFileSync(_0x33db6e,{'encoding':_0x3bdca6(0x119)});if(!_0x5970c5?.[_0x3bdca6(0x117)]())return{'status':_0x3bdca6(0x132)};const _0x567477=JSON[_0x3bdca6(0x125)](_0x5970c5);return{'status':'ok','data':_0x567477};}catch(_0x23bf18){return{'status':_0x3bdca6(0x118),'message':_0x23bf18 instanceof Error?_0x23bf18['message']:String(_0x23bf18)};}}export function loadRawConfigLayers(_0x3c56e5){const _0x607036=a64_0x28118d;let _0x547dc2={},_0x51da74={},_0x3c9c60,_0x463b5a;try{_0x3c9c60=resolveConfigPath(homedir());if(_0x3c9c60){const _0x3fa66b=readFileSync(_0x3c9c60,{'encoding':'utf8'});if(_0x3fa66b)_0x547dc2=JSON[_0x607036(0x125)](_0x3fa66b);}}catch{}try{const _0x14fc59=_0x3c56e5||process[_0x607036(0x140)]();_0x463b5a=resolveConfigPath(_0x14fc59);if(_0x463b5a){const _0x31e693=readFileSync(_0x463b5a,{'encoding':_0x607036(0x119)});if(_0x31e693)_0x51da74=JSON[_0x607036(0x125)](_0x31e693);}}catch{}return{'globalPath':_0x3c9c60,'projectPath':_0x463b5a,'globalConfig':_0x547dc2,'projectConfig':_0x51da74};}function mergeRawConfigLayers(_0x344d17){const _0x38d011=a64_0x28118d,{globalConfig:_0x7243a,projectConfig:_0x241b4b}=_0x344d17;if(_0x241b4b[_0x38d011(0x13c)]===![]){const _0x38fa98={..._0x241b4b};return delete _0x38fa98[_0x38d011(0x13c)],_0x38fa98;}const _0x3a581b={..._0x7243a,..._0x241b4b};if(_0x38d011(0x137)in _0x241b4b)_0x3a581b[_0x38d011(0x137)]=_0x241b4b[_0x38d011(0x137)];else _0x7243a[_0x38d011(0x137)]&&(_0x3a581b[_0x38d011(0x137)]=_0x7243a[_0x38d011(0x137)]);return _0x3a581b;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3ad7e1){return mergeRawConfigLayers(loadRawConfigLayers(_0x3ad7e1));}export function readRawConfigWithLayers(_0x5a9e9e){const _0x329e02=loadRawConfigLayers(_0x5a9e9e);return{'config':mergeRawConfigLayers(_0x329e02),'layers':_0x329e02};}export function resolveDefaultAppSource(_0x27a480){const _0x153eb9=a64_0x28118d;if(_0x153eb9(0x137)in _0x27a480[_0x153eb9(0x127)])return _0x153eb9(0x146);if(_0x27a480['projectConfig']['inherit']===![])return null;if(_0x27a480[_0x153eb9(0x110)]['defaultApp'])return _0x153eb9(0x124);return null;}function buildConfig(_0x589101,_0x4dc3fe){const _0x4094d9=a64_0x28118d,_0x5c7cbe=_0x589101[_0x4094d9(0x137)]||undefined,_0x157ce2=_0x4dc3fe[_0x4094d9(0x158)]||env(_0x4094d9(0x11c))||undefined,_0xc1d055=_0x157ce2||_0x5c7cbe||undefined,_0x4fc8bf=env(_0x4094d9(0x120))||_0x589101['accessKey']||undefined,_0xdc3d24=_0x4dc3fe['env']||env(_0x4094d9(0x13e))||_0x589101['env']||DEFAULT_CONFIG_VALUES[_0x4094d9(0x13d)],_0xa90414=normalizeEnv(String(_0xdc3d24)),_0x3121bb=isDaily(_0xa90414)?_0x4094d9(0x115):isDev(_0xa90414)?_0x4094d9(0x14f):_0x4094d9(0x12b),_0x38fc4e=resolveLocalAppAliasCode(_0x589101,_0xc1d055),_0x1d98ed=resolveCachedAppCode(_0xc1d055,_0x3121bb,_0x4fc8bf),_0x126f2a=typeof _0x4dc3fe[_0x4094d9(0x157)]===_0x4094d9(0x156)?_0x4dc3fe[_0x4094d9(0x157)]:undefined,_0x2c999e=env(_0x4094d9(0x11a)),_0x216fcc=_0x157ce2?undefined:_0x589101[_0x4094d9(0x157)]||_0x589101['app']||undefined,_0x384c84=_0x126f2a||_0x2c999e||_0x38fc4e||_0x1d98ed||_0x216fcc||undefined,_0x22a1cf=_0x126f2a?_0x4094d9(0x142):_0x2c999e?_0x4094d9(0x13d):_0x38fc4e?'local-alias':_0x1d98ed?_0x4094d9(0x14b):_0x216fcc?_0x4094d9(0x111):undefined,_0x4ba2c8=_0x589101[_0x4094d9(0x134)]||DEFAULT_CONFIG_VALUES[_0x4094d9(0x134)],_0x322d8a=undefined,_0x2f076d=_0x4dc3fe[_0x4094d9(0x12d)]||env(_0x4094d9(0x11e))||_0x589101[_0x4094d9(0x12d)],_0x556a7a=normalizeLegacyOutputFormat(_0x2f076d),_0x52a2b8=env('PAGE_SIZE')||_0x589101[_0x4094d9(0x138)],_0x3ba43e=_0x52a2b8?Number(_0x52a2b8)||undefined:undefined,_0x1addba=_0x589101['riskLevel']||_0x589101[_0x4094d9(0x128)],_0xf9c86e=_0x1addba===_0x4094d9(0x112)||_0x1addba==='write'||_0x1addba===_0x4094d9(0x141)?_0x1addba:DEFAULT_CONFIG_VALUES[_0x4094d9(0x11d)],_0x54035e=env(_0x4094d9(0x11b)),_0x1645bf=_0x54035e==='1'||_0x54035e===_0x4094d9(0x150);return{'appCode':typeof _0x384c84===_0x4094d9(0x156)&&_0x384c84[_0x4094d9(0x117)]()?_0x384c84[_0x4094d9(0x117)]():undefined,'appCodeSource':_0x22a1cf,'env':_0x3121bb,'locale':_0x4ba2c8,'cookie':_0x322d8a,'accessKey':_0x4fc8bf,'format':_0x556a7a,'pageSize':_0x3ba43e,'riskLevel':_0xf9c86e,'verbose':_0x1645bf,'defaultApp':_0x5c7cbe,'currentApp':typeof _0xc1d055===_0x4094d9(0x156)?_0xc1d055:undefined,'raw':_0x589101};}function env(_0x112a48){return productEnv(_0x112a48);}async function buildAuth(_0x326741){const _0xf4098d=a64_0x28118d,_0x144dd6='',_0x153cee=!!_0x326741[_0xf4098d(0x136)];return{'cookie':_0x144dd6,'isLoggedIn':_0x153cee,async 'getOrLogin'(){const _0x4a6b01=_0xf4098d;if(_0x153cee)return _0x144dd6;throw CliErrors[_0x4a6b01(0x135)]();}};}
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 +1 @@
1
- (function(_0x2ea5ab,_0x312261){const _0x417715=a65_0x1a08,_0x346679=_0x2ea5ab();while(!![]){try{const _0x59e7f4=parseInt(_0x417715(0x194))/0x1+parseInt(_0x417715(0x17c))/0x2*(-parseInt(_0x417715(0x160))/0x3)+-parseInt(_0x417715(0x12e))/0x4+-parseInt(_0x417715(0x138))/0x5*(-parseInt(_0x417715(0x147))/0x6)+parseInt(_0x417715(0x126))/0x7+parseInt(_0x417715(0x166))/0x8*(parseInt(_0x417715(0x196))/0x9)+-parseInt(_0x417715(0x149))/0xa;if(_0x59e7f4===_0x312261)break;else _0x346679['push'](_0x346679['shift']());}catch(_0x51d04e){_0x346679['push'](_0x346679['shift']());}}}(a65_0x21cd,0x9c0d0));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(_0x5b33f7){_activeAK=_0x5b33f7||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x58bdac,_0xf80177={}){const _0x34fcc5=a65_0x1a08,{method:method=_0x34fcc5(0x1a1),body:_0x138dde,headers:headers={},timeout:timeout=0x7530}=_0xf80177,_0x38c90d=_activeAK,_0x2f7f8c=getRuntimeDomain();if(!_0x38c90d)throw CliErrors[_0x34fcc5(0x128)](_0x34fcc5(0x177)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x223198=''+_0x2f7f8c+_0x58bdac,_0x224f7d={'X-User-AK':_0x38c90d},_0x483577=new AbortController(),_0x489785=setTimeout(()=>_0x483577[_0x34fcc5(0x14c)](),timeout);try{const _0x132f2b=await fetch(_0x223198,{'method':method,'headers':{'Content-Type':_0x34fcc5(0x15d),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x224f7d,...headers},'body':_0x138dde?JSON[_0x34fcc5(0x178)](_0x138dde):undefined,'signal':_0x483577[_0x34fcc5(0x15b)]});let _0x24b234;try{_0x24b234=await _0x132f2b['json']();}catch{throw CliErrors[_0x34fcc5(0x129)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x132f2b[_0x34fcc5(0x181)]+')',_0x132f2b[_0x34fcc5(0x181)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x132f2b['ok']||_0x24b234[_0x34fcc5(0x162)]===![])throw CliErrors[_0x34fcc5(0x129)](_0x24b234[_0x34fcc5(0x13d)]||_0x24b234[_0x34fcc5(0x13f)]||_0x34fcc5(0x161)+_0x132f2b[_0x34fcc5(0x181)],_0x24b234[_0x34fcc5(0x16b)]?_0x34fcc5(0x13b)+_0x24b234[_0x34fcc5(0x16b)]:undefined);return _0x24b234;}catch(_0x4dfbc8){if(_0x4dfbc8 instanceof Error&&_0x4dfbc8['name']===_0x34fcc5(0x154))throw CliErrors[_0x34fcc5(0x129)](_0x34fcc5(0x1a6)+_0x223198);throw _0x4dfbc8;}finally{clearTimeout(_0x489785);}}async function apiBinaryRequest(_0xce0eb6,_0x5ceddb={}){const _0x2cf352=a65_0x1a08,{method:method=_0x2cf352(0x1a1),headers:headers={},timeout:timeout=0x7530}=_0x5ceddb,_0x32d30c=_activeAK,_0x28ac02=getRuntimeDomain();if(!_0x32d30c)throw CliErrors[_0x2cf352(0x128)](_0x2cf352(0x177)+PRODUCT_CONFIG[_0x2cf352(0x18f)]+'.');const _0x1b3179=''+_0x28ac02+_0xce0eb6,_0x419aee=new AbortController(),_0x1cb49b=setTimeout(()=>_0x419aee[_0x2cf352(0x14c)](),timeout);try{const _0x1dca52=await fetch(_0x1b3179,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2cf352(0x171)],'X-User-AK':_0x32d30c,...headers},'signal':_0x419aee[_0x2cf352(0x15b)]});if(!_0x1dca52['ok']){let _0x4cf71b;try{const _0x53cc5b=await _0x1dca52[_0x2cf352(0x13a)]();_0x4cf71b=_0x53cc5b['errorMsg']||_0x53cc5b[_0x2cf352(0x13f)]||_0x53cc5b['errorCode'];}catch{_0x4cf71b=await _0x1dca52['text']()[_0x2cf352(0x18e)](()=>undefined);}throw CliErrors[_0x2cf352(0x129)](_0x4cf71b||_0x2cf352(0x161)+_0x1dca52['status'],'Download\x20failed:\x20'+_0x1b3179);}return Buffer[_0x2cf352(0x15e)](await _0x1dca52[_0x2cf352(0x14a)]());}catch(_0x3b2406){if(_0x3b2406 instanceof Error&&_0x3b2406[_0x2cf352(0x144)]==='AbortError')throw CliErrors[_0x2cf352(0x129)](_0x2cf352(0x1a6)+_0x1b3179);throw _0x3b2406;}finally{clearTimeout(_0x1cb49b);}}async function toolboxRequest(_0x54e097,_0x213495,_0x2ea440={}){const _0xbe6660=a65_0x1a08,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x2ea440,_0x400f34=_activeAK;if(!_0x400f34)throw CliErrors[_0xbe6660(0x128)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0xbe6660(0x18f)]+'.');const _0x1f11b1=getApiDomain()[_0xbe6660(0x153)](/\/$/,''),_0x3a4a14=new URL(_0x54e097,_0x1f11b1+_0xbe6660(0x172));if(_0x213495)for(const [_0x308f25,_0x33cb17]of Object[_0xbe6660(0x125)](_0x213495)){_0x33cb17!==undefined&&_0x33cb17!==null&&_0x3a4a14[_0xbe6660(0x151)][_0xbe6660(0x16e)](_0x308f25,String(_0x33cb17));}const _0x302606=new AbortController(),_0x4e35a3=setTimeout(()=>_0x302606['abort'](),timeout);try{const _0x4c2d83=await fetch(_0x3a4a14,{'method':method,'headers':{'Content-Type':_0xbe6660(0x15d),'X-Invoke-Source':PRODUCT_CONFIG[_0xbe6660(0x171)],'X-User-AK':_0x400f34,...headers},'signal':_0x302606[_0xbe6660(0x15b)]});let _0x19f99d;try{_0x19f99d=await _0x4c2d83['json']();}catch{throw CliErrors[_0xbe6660(0x129)](_0xbe6660(0x155)+_0x4c2d83[_0xbe6660(0x181)]+')',_0x4c2d83[_0xbe6660(0x181)]>=0x190?_0xbe6660(0x13c):undefined);}if(!_0x4c2d83['ok']){const _0x117c9f=_0x19f99d&&typeof _0x19f99d===_0xbe6660(0x16a)?_0x19f99d:{};throw CliErrors[_0xbe6660(0x129)](_0x117c9f['errorMsg']||_0x117c9f[_0xbe6660(0x13f)]||_0xbe6660(0x198)+_0x4c2d83[_0xbe6660(0x181)],_0x117c9f[_0xbe6660(0x16b)]?_0xbe6660(0x16f)+_0x117c9f['errorCode']:undefined);}if(_0x19f99d&&typeof _0x19f99d==='object'&&_0xbe6660(0x162)in _0x19f99d&&typeof _0x19f99d['success']==='boolean'){const _0x34aba3=_0x19f99d;if(!_0x34aba3['success'])throw CliErrors[_0xbe6660(0x129)](_0x34aba3[_0xbe6660(0x13d)]||_0x34aba3[_0xbe6660(0x13f)]||_0xbe6660(0x1a2),_0x34aba3[_0xbe6660(0x16b)]?'Toolbox\x20error\x20code:\x20'+_0x34aba3[_0xbe6660(0x16b)]:undefined);return _0x34aba3[_0xbe6660(0x131)];}return _0x19f99d;}catch(_0xc66430){if(_0xc66430 instanceof Error&&_0xc66430[_0xbe6660(0x144)]===_0xbe6660(0x154))throw CliErrors[_0xbe6660(0x129)]('Request\x20timeout:\x20'+_0x3a4a14['toString']());throw _0xc66430;}finally{clearTimeout(_0x4e35a3);}}async function skillHubJsonRequest(_0x37f0be,_0x3b5971={}){const _0x6429b3=a65_0x1a08,{method:method='GET',query:_0x318bed,body:_0x50e8db,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x3b5971,_0x4dd359=_activeAK;if(!_0x4dd359)throw CliErrors[_0x6429b3(0x128)](_0x6429b3(0x177)+PRODUCT_CONFIG[_0x6429b3(0x18f)]+'.');const _0x35ed5a=getSkillHubDomain()['replace'](/\/$/,''),_0x5bc37e=new URL(_0x37f0be,_0x35ed5a+'/');if(_0x318bed)for(const [_0x4672e8,_0x4a5f73]of Object[_0x6429b3(0x125)](_0x318bed)){_0x4a5f73!==undefined&&_0x4a5f73!==null&&_0x5bc37e[_0x6429b3(0x151)]['set'](_0x4672e8,String(_0x4a5f73));}const _0x7519ee=new AbortController(),_0x3d8de6=setTimeout(()=>_0x7519ee['abort'](),timeout);try{const _0x484150=await fetch(_0x5bc37e[_0x6429b3(0x199)](),{'method':method,'headers':{'Accept':_0x6429b3(0x15d),'X-Invoke-Source':PRODUCT_CONFIG[_0x6429b3(0x171)],'X-User-AK':_0x4dd359,...headers},'body':_0x50e8db,'signal':_0x7519ee[_0x6429b3(0x15b)]});let _0x3a86ff;try{_0x3a86ff=await _0x484150[_0x6429b3(0x13a)]();}catch{if(allowNotFound&&_0x484150[_0x6429b3(0x181)]===0x194)return undefined;throw CliErrors[_0x6429b3(0x129)](_0x6429b3(0x179)+_0x484150['status']+')',_0x484150[_0x6429b3(0x181)]>=0x190?_0x6429b3(0x13c):undefined);}if(allowNotFound&&(_0x484150[_0x6429b3(0x181)]===0x194||_0x3a86ff?.[_0x6429b3(0x16c)]===0x194))return undefined;const _0x8eff5a=!_0x484150['ok']||_0x3a86ff?.['success']===![]||typeof _0x3a86ff?.[_0x6429b3(0x16c)]===_0x6429b3(0x18c)&&_0x3a86ff['code']>=0x190;if(_0x8eff5a)throw CliErrors[_0x6429b3(0x129)](_0x3a86ff?.[_0x6429b3(0x13d)]||_0x3a86ff?.['message']||_0x3a86ff?.[_0x6429b3(0x193)]||_0x6429b3(0x140)+_0x484150[_0x6429b3(0x181)],_0x3a86ff?.[_0x6429b3(0x16b)]?_0x6429b3(0x19f)+_0x3a86ff['errorCode']:undefined);return _0x3a86ff?.['data']??_0x3a86ff;}catch(_0x16b5df){if(_0x16b5df instanceof Error&&_0x16b5df[_0x6429b3(0x144)]===_0x6429b3(0x154))throw CliErrors[_0x6429b3(0x129)]('Request\x20timeout:\x20'+_0x5bc37e['toString']());throw _0x16b5df;}finally{clearTimeout(_0x3d8de6);}}async function skillHubBinaryRequest(_0x39ba4c,_0x5821eb={}){const _0x3d880c=a65_0x1a08,{query:_0x523dd3,headers:headers={},timeout:timeout=0x7530}=_0x5821eb,_0x26c993=_activeAK;if(!_0x26c993)throw CliErrors[_0x3d880c(0x128)](_0x3d880c(0x177)+PRODUCT_CONFIG[_0x3d880c(0x18f)]+'.');const _0xca5da2=getSkillHubDomain()[_0x3d880c(0x153)](/\/$/,''),_0xbeef60=new URL(_0x39ba4c,_0xca5da2+'/');if(_0x523dd3)for(const [_0x350eec,_0x2e2a08]of Object[_0x3d880c(0x125)](_0x523dd3)){_0x2e2a08!==undefined&&_0x2e2a08!==null&&_0xbeef60['searchParams']['set'](_0x350eec,String(_0x2e2a08));}const _0x4496c8=new AbortController(),_0x2996d9=setTimeout(()=>_0x4496c8[_0x3d880c(0x14c)](),timeout);try{const _0x341f72=await fetch(_0xbeef60[_0x3d880c(0x199)](),{'method':_0x3d880c(0x1a1),'headers':{'Accept':_0x3d880c(0x170),'X-Invoke-Source':PRODUCT_CONFIG[_0x3d880c(0x171)],'X-User-AK':_0x26c993,...headers},'signal':_0x4496c8[_0x3d880c(0x15b)]});if(!_0x341f72['ok']){let _0x245de1;try{const _0x492572=await _0x341f72['json']();_0x245de1=_0x492572[_0x3d880c(0x13d)]||_0x492572[_0x3d880c(0x13f)]||_0x492572['msg']||_0x492572[_0x3d880c(0x16b)];}catch{_0x245de1=await _0x341f72[_0x3d880c(0x17a)]()[_0x3d880c(0x18e)](()=>undefined);}throw CliErrors[_0x3d880c(0x129)](_0x245de1||_0x3d880c(0x140)+_0x341f72[_0x3d880c(0x181)],'Download\x20failed:\x20'+_0xbeef60[_0x3d880c(0x199)]());}return Buffer[_0x3d880c(0x15e)](await _0x341f72['arrayBuffer']());}catch(_0x47619f){if(_0x47619f instanceof Error&&_0x47619f['name']===_0x3d880c(0x154))throw CliErrors[_0x3d880c(0x129)]('Request\x20timeout:\x20'+_0xbeef60[_0x3d880c(0x199)]());throw _0x47619f;}finally{clearTimeout(_0x2996d9);}}export async function getBffScriptInfo(_0x3ab76c){const _0x13b28a=a65_0x1a08,_0x973f1c=await apiRequest(_0x13b28a(0x173)+_0x3ab76c);if(!_0x973f1c[_0x13b28a(0x131)])throw CliErrors['validation'](_0x13b28a(0x12b)+_0x3ab76c);return _0x973f1c[_0x13b28a(0x131)];}function a65_0x21cd(){const _0x50208c=['NAMESPACE_ONLY','signal','/client/runtime-bff/personal/create','application/json','from','tags','890427LksGhh','API\x20error:\x20','success','appName','sqlCode','string','104ArlHTP','confirmWarnings','/skills','/client/runtime-bff/personal/','object','errorCode','code','artifactType','set','Toolbox\x20error\x20code:\x20','application/octet-stream','invokeSource','/api/node-toolbox/','/client/bff/query/','map','/client/dataset/get-driven-data?code=','description','Configure\x20accessKey\x20in\x20','stringify','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','text','filter','4xkalcw','namespace','trim','Knowledge-base\x20entry\x20not\x20found:\x20id=','Artifact\x20not\x20found:\x20id=','status','version','company','all','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','validation','packageBase64','base64','/execute?appCode=','errors','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','number','/client/knowledge-base/personal/list?appCode=','catch','newConfigFileName','undefined','publishedVersion','topK','msg','1119630kkWUnB','/publish','499941PKVLCu','displayName','Toolbox\x20API\x20error:\x20','toString','/client/knowledge-base/personal/','/client/artifact/','/api/runtime/v1/namespaces/','/client/artifact/create','toLowerCase','SkillHub\x20error\x20code:\x20','headlineVersion','GET','Toolbox\x20API\x20error','summary','/update','skillCode','Request\x20timeout:\x20','api-doc-generator','visibility','?appCode=','entries','1799476lBTZQN','/client/app/my-apps','authRequired','apiError','markdown','BFF\x20script\x20not\x20found:\x20id=','resolvedVersion','/client/user/loginUserInfo','2182876CbHPvd','tableData','POST','data','scope','resolvedSlug','isArray','warnings','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','skill','612615xcKEns','content','json','API\x20error\x20code:\x20','Check\x20your\x20credentials\x20and\x20try\x20again.','errorMsg','personal','message','SkillHub\x20API\x20error:\x20','/client/knowledge-base/search','/versions/','values','name','/api/cli/v1/skills/','source','54SJxRkA','effective','14230210ancypd','arrayBuffer','items','abort','.zip','query','valid','slug','searchParams','/download','replace','AbortError','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','PRIVATE','appCode','/client/sql/query','favorite'];a65_0x21cd=function(){return _0x50208c;};return a65_0x21cd();}function a65_0x1a08(_0x3b3a34,_0x56aec1){_0x3b3a34=_0x3b3a34-0x124;const _0x21cd00=a65_0x21cd();let _0x1a081f=_0x21cd00[_0x3b3a34];return _0x1a081f;}export async function getSqlQueryInfo(_0x4cb6b8,_0x5c1f1f){const _0x2e714d=a65_0x1a08,_0x30b95d=await apiRequest(_0x2e714d(0x158),{'method':_0x2e714d(0x130),'body':{'appCode':_0x4cb6b8,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5c1f1f}}),_0x49ae5b=_0x30b95d[_0x2e714d(0x131)],_0x3fb294=_0x49ae5b&&typeof _0x49ae5b===_0x2e714d(0x16a)&&_0x2e714d(0x12f)in _0x49ae5b?_0x49ae5b[_0x2e714d(0x12f)]?.[0x0]:_0x49ae5b&&typeof _0x49ae5b===_0x2e714d(0x16a)&&_0x2e714d(0x164)in _0x49ae5b?_0x49ae5b:undefined;if(!_0x3fb294)throw CliErrors[_0x2e714d(0x186)]('SQL\x20query\x20not\x20found:\x20'+_0x5c1f1f);return _0x3fb294;}function isRemoteAppItem(_0x3c20bf){const _0xdc229f=a65_0x1a08;return!!_0x3c20bf&&typeof _0x3c20bf===_0xdc229f(0x16a)&&typeof _0x3c20bf[_0xdc229f(0x157)]==='string'&&typeof _0x3c20bf[_0xdc229f(0x163)]===_0xdc229f(0x165);}function extractRemoteAppItems(_0x3052af){const _0x188f83=a65_0x1a08;if(Array[_0x188f83(0x134)](_0x3052af))return _0x3052af[_0x188f83(0x17b)](isRemoteAppItem);if(!_0x3052af||typeof _0x3052af!==_0x188f83(0x16a))throw CliErrors[_0x188f83(0x129)](_0x188f83(0x185));const _0x481a9a=_0x3052af;if(Array[_0x188f83(0x134)](_0x481a9a[_0x188f83(0x12f)]))return _0x481a9a['tableData'][_0x188f83(0x17b)](isRemoteAppItem);if(_0x481a9a[_0x188f83(0x131)]&&typeof _0x481a9a['data']===_0x188f83(0x16a)){const _0x950961=_0x481a9a['data'];if(Array[_0x188f83(0x134)](_0x950961[_0x188f83(0x12f)]))return _0x950961[_0x188f83(0x12f)]['filter'](isRemoteAppItem);}throw CliErrors[_0x188f83(0x129)](_0x188f83(0x136));}export async function getMyApps(){const _0x10e5fd=a65_0x1a08,_0xb9912e=await apiRequest(_0x10e5fd(0x127));return extractRemoteAppItems(_0xb9912e['data']);}export async function getLoginUserInfo(){const _0x7fe28a=a65_0x1a08,_0x942429=await apiRequest(_0x7fe28a(0x12d));if(!_0x942429['data']||typeof _0x942429[_0x7fe28a(0x131)]!==_0x7fe28a(0x16a)||Array[_0x7fe28a(0x134)](_0x942429[_0x7fe28a(0x131)]))throw CliErrors[_0x7fe28a(0x129)](_0x7fe28a(0x18b));return _0x942429['data'];}export async function listDatasets(_0x8b093a,_0x5395e4){const _0x4f1230=a65_0x1a08,_0xbafb12=await apiRequest('/client/dataset/list',{'method':_0x4f1230(0x130),'body':{'appCode':_0x8b093a,..._0x5395e4?.[_0x4f1230(0x16c)]&&{'code':_0x5395e4[_0x4f1230(0x16c)]},..._0x5395e4?.[_0x4f1230(0x144)]&&{'name':_0x5395e4[_0x4f1230(0x144)]}}});return extractList(_0xbafb12['data']);}export async function getDatasetDetail(_0xebf135){const _0x4cd969=a65_0x1a08,_0x45ed0d=await apiRequest(_0x4cd969(0x175)+encodeURIComponent(_0xebf135));return _0x45ed0d['data'];}export async function getDatasetSdkUsageDoc(_0x306e4b,_0xf00648){const _0x153920=a65_0x1a08,_0x23daac=await toolboxRequest(_0x153920(0x1a7),{'datasetCode':_0x306e4b,'appCode':_0xf00648});return typeof _0x23daac?.[_0x153920(0x12a)]==='string'?_0x23daac[_0x153920(0x12a)]:'';}export async function listRuntimeArtifacts(_0x2b469d,_0x17a4b6){const _0x5b7b8e=a65_0x1a08,_0x3a9b22=new URLSearchParams({'appCode':_0x2b469d});if(_0x17a4b6?.[_0x5b7b8e(0x16d)])_0x3a9b22[_0x5b7b8e(0x16e)](_0x5b7b8e(0x16d),_0x17a4b6[_0x5b7b8e(0x16d)]);if(_0x17a4b6?.['source'])_0x3a9b22[_0x5b7b8e(0x16e)](_0x5b7b8e(0x146),_0x17a4b6[_0x5b7b8e(0x146)]);if(_0x17a4b6?.[_0x5b7b8e(0x159)]!==undefined)_0x3a9b22['set'](_0x5b7b8e(0x159),String(_0x17a4b6['favorite']));const _0xfcb44a=await apiRequest('/client/artifact/list?'+_0x3a9b22[_0x5b7b8e(0x199)]());return Array[_0x5b7b8e(0x134)](_0xfcb44a['data'])?_0xfcb44a[_0x5b7b8e(0x131)]:[];}export async function getRuntimeArtifact(_0x313971,_0x1a15e9){const _0x1fd642=a65_0x1a08,_0x3c0895=await apiRequest('/client/artifact/'+_0x313971+'?appCode='+encodeURIComponent(_0x1a15e9));if(!_0x3c0895[_0x1fd642(0x131)])throw CliErrors[_0x1fd642(0x186)](_0x1fd642(0x180)+_0x313971);return _0x3c0895['data'];}export async function createRuntimeArtifact(_0x329fca,_0xf9ca07){const _0x3c27c7=a65_0x1a08,_0x5b3ee7=await apiRequest(_0x3c27c7(0x19d),{'method':'POST','body':{'appCode':_0x329fca,..._0xf9ca07}});return _0x5b3ee7['data'];}export async function updateRuntimeArtifact(_0x2302b3,_0x139bcb,_0x1273ef){const _0x1c75ac=a65_0x1a08,_0x5e2cf7=await apiRequest(_0x1c75ac(0x19b)+_0x2302b3+_0x1c75ac(0x1a4),{'method':'POST','body':{'appCode':_0x139bcb,..._0x1273ef}});return _0x5e2cf7[_0x1c75ac(0x131)];}export async function listPersonalBffs(_0x31bb0e){const _0x2c7163=a65_0x1a08,_0x18fd12=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x31bb0e));return Array[_0x2c7163(0x134)](_0x18fd12[_0x2c7163(0x131)])?_0x18fd12['data']:[];}export async function getPersonalBff(_0x240708,_0x57d37d){const _0x3c38aa=a65_0x1a08,_0x19fdc3=await apiRequest('/client/runtime-bff/personal/'+_0x240708+'?appCode='+encodeURIComponent(_0x57d37d));if(!_0x19fdc3[_0x3c38aa(0x131)])throw CliErrors[_0x3c38aa(0x186)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x240708);return _0x19fdc3[_0x3c38aa(0x131)];}export async function createPersonalBff(_0x38fbc2,_0x564aa6){const _0x5e9097=a65_0x1a08,_0x5cc650=await apiRequest(_0x5e9097(0x15c),{'method':'POST','body':{'appCode':_0x38fbc2,..._0x564aa6}});return _0x5cc650[_0x5e9097(0x131)];}export async function updatePersonalBff(_0x486dbb,_0x5177aa,_0x27fe2d){const _0xb26aca=a65_0x1a08,_0x5e76b1=await apiRequest(_0xb26aca(0x169)+_0x486dbb+_0xb26aca(0x1a4),{'method':'POST','body':{'appCode':_0x5177aa,..._0x27fe2d}});return _0x5e76b1['data'];}export async function executePersonalBff(_0x49fe07,_0x48dc98,_0x15b933){const _0x514162=a65_0x1a08,_0x4386b6=await apiRequest('/client/runtime-bff/personal/'+_0x49fe07+_0x514162(0x189)+encodeURIComponent(_0x48dc98),{'method':'POST','body':_0x15b933});return _0x4386b6[_0x514162(0x131)];}export async function listPersonalKnowledgeBaseItems(_0x8f4246){const _0xa06960=a65_0x1a08,_0x283d09=await apiRequest(_0xa06960(0x18d)+encodeURIComponent(_0x8f4246));return Array[_0xa06960(0x134)](_0x283d09[_0xa06960(0x131)])?_0x283d09[_0xa06960(0x131)]:[];}export async function getPersonalKnowledgeBaseItem(_0xe2eb7f,_0x144fee){const _0x3d80c2=a65_0x1a08,_0x4d1301=await apiRequest(_0x3d80c2(0x19a)+_0xe2eb7f+_0x3d80c2(0x124)+encodeURIComponent(_0x144fee));if(!_0x4d1301['data'])throw CliErrors[_0x3d80c2(0x186)](_0x3d80c2(0x17f)+_0xe2eb7f);return _0x4d1301[_0x3d80c2(0x131)];}export async function createPersonalKnowledgeBaseItem(_0x2705e8,_0x1b9846){const _0x5285c0=a65_0x1a08,_0x383394=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x5285c0(0x130),'body':{'appCode':_0x2705e8,..._0x1b9846}});return _0x383394[_0x5285c0(0x131)];}export async function updatePersonalKnowledgeBaseItem(_0x4395ca,_0x4498f9,_0x3dd18c){const _0xcd2fab=a65_0x1a08,_0x533d46=await apiRequest(_0xcd2fab(0x19a)+_0x4395ca+_0xcd2fab(0x1a4),{'method':_0xcd2fab(0x130),'body':{'appCode':_0x4498f9,..._0x3dd18c}});return _0x533d46[_0xcd2fab(0x131)];}export async function searchKnowledgeBase(_0x2168b9,_0x38fb21){const _0x10c050=a65_0x1a08,_0xab7870=await apiRequest(_0x10c050(0x141),{'method':'POST','body':{'appCode':_0x2168b9,'query':_0x38fb21[_0x10c050(0x14e)],..._0x38fb21[_0x10c050(0x192)]!==undefined?{'topK':_0x38fb21['topK']}:{}}});return Array['isArray'](_0xab7870[_0x10c050(0x131)])?_0xab7870['data']:[];}export async function getRuntimeSkillByCode(_0x59a3ee,_0x196702){const _0x306597=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x59a3ee)+'/'+encodeURIComponent(_0x196702),{'allowNotFound':!![]});return _0x306597?skillHubRuntimeDetailToRuntimeSkill(_0x306597):undefined;}export async function listRuntimeSkills(_0xb57d54){const _0x279157=a65_0x1a08,_0x271e2a=await skillHubJsonRequest(_0x279157(0x19c)+encodeURIComponent(_0xb57d54[_0x279157(0x157)])+_0x279157(0x168),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0xb57d54[_0x279157(0x157)],_0x271e2a,_0xb57d54[_0x279157(0x132)]??_0x279157(0x184),_0xb57d54[_0x279157(0x16c)]);}export async function listPersonalRuntimeSkills(_0x320055){const _0x4e3a07=a65_0x1a08;return(await listRuntimeSkills({'appCode':_0x320055,'scope':'personal'}))[_0x4e3a07(0x13e)];}export async function listCompanyRuntimeSkills(_0x1cc19c){const _0x5422f2=a65_0x1a08;return(await listRuntimeSkills({'appCode':_0x1cc19c,'scope':'company'}))[_0x5422f2(0x183)];}export async function listVisibleRuntimeSkills(_0x31f13e){const _0xebb2c4=a65_0x1a08;return(await listRuntimeSkills({'appCode':_0x31f13e,'scope':_0xebb2c4(0x184)}))['effective'];}export async function createPersonalRuntimeSkill(_0x1d817a,_0x4fa4f5){const _0x582de5=a65_0x1a08;return publishRuntimeSkill(_0x1d817a,_0x4fa4f5,{'visibility':_0x582de5(0x156)});}export async function updatePersonalRuntimeSkill(_0x5d2085,_0x265efd,_0x17738e){const _0x1c9e04=a65_0x1a08;return publishRuntimeSkill(_0x265efd,{..._0x17738e,'skillCode':_0x17738e[_0x1c9e04(0x1a5)]??_0x5d2085},{'visibility':'PRIVATE'});}export async function publishCompanyRuntimeSkill(_0x406bc6,_0x5532fe,_0x4af191={}){const _0x1dcd20=a65_0x1a08;return publishRuntimeSkill(_0x406bc6,_0x5532fe,{'visibility':_0x1dcd20(0x15a),'confirmWarnings':_0x4af191[_0x1dcd20(0x167)]});}export async function validateRuntimeSkillPublish(_0x476ad8,_0x409ec2,_0x1bf01d){const _0x107efe=a65_0x1a08,_0x3edec9=buildRuntimeSkillPublishForm(_0x409ec2,_0x1bf01d['visibility']),_0x5f2ef2=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x476ad8)+'/publish/validate',{'method':_0x107efe(0x130),'body':_0x3edec9});return{'valid':_0x5f2ef2[_0x107efe(0x14f)]===!![],'errors':Array[_0x107efe(0x134)](_0x5f2ef2['errors'])?_0x5f2ef2[_0x107efe(0x18a)]:[],'warnings':Array[_0x107efe(0x134)](_0x5f2ef2[_0x107efe(0x135)])?_0x5f2ef2[_0x107efe(0x135)]:[],'resolvedSlug':_0x5f2ef2[_0x107efe(0x133)],'resolvedVersion':_0x5f2ef2[_0x107efe(0x12c)]};}export async function downloadRuntimeSkillPackage(_0x359a01,_0x12c5e3,_0x128f24,_0x366bf7){const _0x3bcd5e=a65_0x1a08;void _0x359a01;const _0x14a632=_0x366bf7?_0x3bcd5e(0x145)+encodeURIComponent(_0x128f24)+'/'+encodeURIComponent(_0x12c5e3)+_0x3bcd5e(0x142)+encodeURIComponent(_0x366bf7)+_0x3bcd5e(0x152):_0x3bcd5e(0x145)+encodeURIComponent(_0x128f24)+'/'+encodeURIComponent(_0x12c5e3)+_0x3bcd5e(0x152);return skillHubBinaryRequest(_0x14a632);}async function publishRuntimeSkill(_0x4021f6,_0x2b001b,_0x28a4ca){const _0xb1689e=a65_0x1a08,_0x177e8d=buildRuntimeSkillPublishForm(_0x2b001b,_0x28a4ca[_0xb1689e(0x1a8)]),_0x31515e=await skillHubJsonRequest(_0xb1689e(0x145)+encodeURIComponent(_0x4021f6)+_0xb1689e(0x195),{'method':_0xb1689e(0x130),'query':{'confirmWarnings':_0x28a4ca[_0xb1689e(0x167)]===!![]?!![]:undefined},'body':_0x177e8d});return{'appCode':_0x31515e[_0xb1689e(0x17d)]??_0x4021f6,'skillCode':_0x31515e[_0xb1689e(0x150)]??_0x2b001b[_0xb1689e(0x1a5)]??'','skillName':_0x2b001b['skillName']??_0x31515e[_0xb1689e(0x150)]??_0x2b001b[_0xb1689e(0x1a5)],'description':_0x2b001b[_0xb1689e(0x176)],'scope':skillHubVisibilityToScope(_0x31515e['visibility']??_0x28a4ca[_0xb1689e(0x1a8)])??_0xb1689e(0x13e),'version':_0x31515e[_0xb1689e(0x182)]??_0x2b001b['version'],'tags':_0x2b001b[_0xb1689e(0x15f)],'content':_0x2b001b[_0xb1689e(0x139)]};}function buildRuntimeSkillPublishForm(_0x950d6f,_0x2fe539){const _0x3533ab=a65_0x1a08,_0x43d2db=new FormData();return _0x43d2db[_0x3533ab(0x16e)]('file',runtimeSkillPackageFile(_0x950d6f)),_0x43d2db['set'](_0x3533ab(0x1a8),_0x2fe539),_0x43d2db;}function runtimeSkillPackageFile(_0x20029b){const _0x91a0fc=a65_0x1a08;if(!_0x20029b[_0x91a0fc(0x187)])throw CliErrors[_0x91a0fc(0x186)]('Missing\x20Skill\x20package\x20payload.');const _0x79169c=Buffer[_0x91a0fc(0x15e)](_0x20029b['packageBase64'],_0x91a0fc(0x188)),_0x20b4f8=new Blob([_0x79169c],{'type':'application/zip'}),_0x1be3a5=(_0x20029b[_0x91a0fc(0x1a5)]||_0x91a0fc(0x137))+_0x91a0fc(0x14d);if(typeof File!==_0x91a0fc(0x190))return new File([_0x20b4f8],_0x1be3a5,{'type':'application/zip'});return _0x20b4f8;}function normalizeSkillHubRuntimeListResponse(_0x4d2b14,_0x2c6aa9,_0x267f04,_0x2c3394){const _0x417c42=a65_0x1a08,_0x85af8a=Array[_0x417c42(0x134)](_0x2c6aa9)?_0x2c6aa9:Array[_0x417c42(0x134)](_0x2c6aa9?.[_0x417c42(0x14b)])?_0x2c6aa9['items']:[],_0x114b01=_0x2c3394?.[_0x417c42(0x17e)](),_0x451e48=_0x85af8a[_0x417c42(0x17b)](_0x4364a2=>!_0x114b01||_0x4364a2[_0x417c42(0x150)]===_0x114b01)[_0x417c42(0x174)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x505014=>Boolean(_0x505014)),_0x16d8ee=_0x451e48[_0x417c42(0x17b)](_0x480fe0=>_0x480fe0[_0x417c42(0x132)]===_0x417c42(0x13e)),_0xade9d3=_0x451e48[_0x417c42(0x17b)](_0x57dc90=>_0x57dc90['scope']===_0x417c42(0x183));return{'appCode':_0x4d2b14,'personal':_0x267f04===_0x417c42(0x183)?[]:_0x16d8ee,'company':_0x267f04===_0x417c42(0x13e)?[]:_0xade9d3,'effective':buildEffectiveRuntimeSkills(_0x16d8ee,_0xade9d3,_0x267f04)};}function skillHubRuntimeItemToRuntimeSkill(_0x3560bc){const _0x4c9d13=a65_0x1a08,_0x13fafd=_0x3560bc[_0x4c9d13(0x150)]?.['trim'](),_0xcddab8=skillHubVisibilityToScope(_0x3560bc[_0x4c9d13(0x1a8)]);if(!_0x13fafd||!_0xcddab8)return undefined;return{'id':_0x3560bc['id'],'appCode':_0x3560bc[_0x4c9d13(0x17d)],'skillCode':_0x13fafd,'skillName':_0x3560bc[_0x4c9d13(0x197)]??_0x13fafd,'description':_0x3560bc['summary'],'scope':_0xcddab8,'version':skillHubRuntimeItemVersion(_0x3560bc),'status':_0x3560bc[_0x4c9d13(0x181)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x2a504b){const _0x274d40=a65_0x1a08,_0x440dfb=_0x2a504b['slug']?.[_0x274d40(0x17e)]();if(!_0x440dfb)return undefined;return{'id':_0x2a504b['id'],'appCode':_0x2a504b['namespace'],'skillCode':_0x440dfb,'skillName':_0x2a504b[_0x274d40(0x197)]??_0x440dfb,'description':_0x2a504b[_0x274d40(0x1a3)],'scope':skillHubVisibilityToScope(_0x2a504b[_0x274d40(0x1a8)])??_0x2a504b['visibility']?.[_0x274d40(0x19e)](),'version':skillHubRuntimeItemVersion(_0x2a504b),'status':_0x2a504b[_0x274d40(0x181)]};}function skillHubVisibilityToScope(_0x1872eb){const _0x3388d9=a65_0x1a08;if(_0x1872eb===_0x3388d9(0x156))return _0x3388d9(0x13e);if(_0x1872eb===_0x3388d9(0x15a))return _0x3388d9(0x183);return undefined;}function skillHubRuntimeItemVersion(_0x4ea8d8){const _0x264f8d=a65_0x1a08;return _0x4ea8d8[_0x264f8d(0x191)]?.[_0x264f8d(0x182)]??_0x4ea8d8[_0x264f8d(0x1a0)]?.['version']??_0x4ea8d8['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x3c7b95,_0x3c0e6a,_0x29ff13){const _0x444e9f=a65_0x1a08;if(_0x29ff13===_0x444e9f(0x13e))return _0x3c7b95;if(_0x29ff13==='company')return _0x3c0e6a;const _0x52da09=new Map();for(const _0x248b43 of _0x3c0e6a){_0x52da09['set'](_0x248b43[_0x444e9f(0x1a5)],_0x248b43);}for(const _0xd47ab of _0x3c7b95){_0x52da09[_0x444e9f(0x16e)](_0xd47ab[_0x444e9f(0x1a5)],_0xd47ab);}return Array['from'](_0x52da09[_0x444e9f(0x143)]());}function normalizeRuntimeSkillListResponse(_0x58e6a5,_0x5a80f4){const _0x44d155=a65_0x1a08;if(Array[_0x44d155(0x134)](_0x5a80f4)){const _0x4bf8f5=_0x5a80f4[_0x44d155(0x17b)](_0xfcc86a=>_0xfcc86a[_0x44d155(0x132)]===_0x44d155(0x13e)),_0xb65eb1=_0x5a80f4['filter'](_0x3724a4=>_0x3724a4[_0x44d155(0x132)]===_0x44d155(0x183));return{'appCode':_0x58e6a5,'personal':_0x4bf8f5,'company':_0xb65eb1,'effective':[..._0xb65eb1,..._0x4bf8f5]};}return{'appCode':_0x5a80f4?.[_0x44d155(0x157)]??_0x58e6a5,'personal':Array[_0x44d155(0x134)](_0x5a80f4?.[_0x44d155(0x13e)])?_0x5a80f4[_0x44d155(0x13e)]:[],'company':Array[_0x44d155(0x134)](_0x5a80f4?.[_0x44d155(0x183)])?_0x5a80f4[_0x44d155(0x183)]:[],'effective':Array[_0x44d155(0x134)](_0x5a80f4?.['effective'])?_0x5a80f4[_0x44d155(0x148)]:[]};}
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 +1 @@
1
- function a66_0x28e5(_0x4fe7e8,_0x569809){_0x4fe7e8=_0x4fe7e8-0xa4;const _0x5282f0=a66_0x5282();let _0x28e559=_0x5282f0[_0x4fe7e8];return _0x28e559;}function a66_0x5282(){const _0x4556c8=['dbtableConfig','entries','5EQVIMn','20510OoZyDq','db-','10QWEsne','33595562ElFzOe','372LIGBwh','3336831oXmFrQ','dbName','4239084QUJMTV','set','map','1szNIsB','3812072KUQnTY','2468524GNAQDF','dbId','8510031nGGpWp'];a66_0x5282=function(){return _0x4556c8;};return a66_0x5282();}(function(_0x12dd10,_0x5ed056){const _0x23b796=a66_0x28e5,_0x562c5e=_0x12dd10();while(!![]){try{const _0x44aec9=-parseInt(_0x23b796(0xaa))/0x1*(-parseInt(_0x23b796(0xac))/0x2)+parseInt(_0x23b796(0xa5))/0x3+parseInt(_0x23b796(0xa7))/0x4*(parseInt(_0x23b796(0xb1))/0x5)+parseInt(_0x23b796(0xa4))/0x6*(-parseInt(_0x23b796(0xb2))/0x7)+-parseInt(_0x23b796(0xab))/0x8+parseInt(_0x23b796(0xae))/0x9*(parseInt(_0x23b796(0xb4))/0xa)+-parseInt(_0x23b796(0xb5))/0xb;if(_0x44aec9===_0x5ed056)break;else _0x562c5e['push'](_0x562c5e['shift']());}catch(_0x5b9a90){_0x562c5e['push'](_0x562c5e['shift']());}}}(a66_0x5282,0x9c246));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xf77f78){const _0x1323e9=a66_0x28e5;if(cache['has'](_0xf77f78))return cache['get'](_0xf77f78);const _0x25b504=await listDatasets(_0xf77f78),_0x48762f=new Map();for(const _0x5696a8 of _0x25b504){const _0x5ed720=_0x5696a8[_0x1323e9(0xaf)];_0x5ed720?.[_0x1323e9(0xad)]!=null&&_0x48762f['set'](_0x5ed720[_0x1323e9(0xad)],_0x5ed720[_0x1323e9(0xa6)]??_0x1323e9(0xb3)+_0x5ed720[_0x1323e9(0xad)]);}const _0x553e85=[..._0x48762f[_0x1323e9(0xb0)]()][_0x1323e9(0xa9)](([_0x4eb19f,_0x2531c4])=>({'dbId':_0x4eb19f,'dbName':_0x2531c4}));return cache[_0x1323e9(0xa8)](_0xf77f78,_0x553e85),_0x553e85;}export async function getDbName(_0x3de881,_0x396d45){const _0x1c9074=a66_0x28e5;try{const _0x1a85ea=await listDatabases(_0x3de881);return _0x1a85ea['find'](_0x356445=>_0x356445[_0x1c9074(0xad)]===_0x396d45)?.[_0x1c9074(0xa6)];}catch{return undefined;}}
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 +1 @@
1
- (function(_0x208e98,_0x270d2d){const _0x3dc9b8=a67_0x8d17,_0x52db93=_0x208e98();while(!![]){try{const _0x20cb72=-parseInt(_0x3dc9b8(0xf1))/0x1+parseInt(_0x3dc9b8(0xdc))/0x2*(-parseInt(_0x3dc9b8(0xf4))/0x3)+parseInt(_0x3dc9b8(0xde))/0x4+-parseInt(_0x3dc9b8(0xd9))/0x5+parseInt(_0x3dc9b8(0xd6))/0x6*(-parseInt(_0x3dc9b8(0xf2))/0x7)+parseInt(_0x3dc9b8(0xf3))/0x8+parseInt(_0x3dc9b8(0xe2))/0x9*(parseInt(_0x3dc9b8(0xe6))/0xa);if(_0x20cb72===_0x270d2d)break;else _0x52db93['push'](_0x52db93['shift']());}catch(_0x13ca76){_0x52db93['push'](_0x52db93['shift']());}}}(a67_0x24eb,0x89366));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a67_0x8d17(_0x34eb42,_0x415970){_0x34eb42=_0x34eb42-0xd2;const _0x24ebc1=a67_0x24eb();let _0x8d170d=_0x24ebc1[_0x34eb42];return _0x8d170d;}let _client;export function initSdkClient(_0x4ddd77){const _0x300dda=a67_0x8d17;_client=createClient({'appCode':_0x4ddd77['appCode'],'env':_0x4ddd77[_0x300dda(0xe0)],'authMode':_0x4ddd77['authMode'],..._0x4ddd77[_0x300dda(0xe3)]?{'accessKey':_0x4ddd77[_0x300dda(0xe3)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}function ensureClient(){const _0x24545e=a67_0x8d17;if(!_client)throw new Error(_0x24545e(0xe4));return _client;}function normalizeAggregateParams(_0x264681){const _0x5345a0=a67_0x8d17,_0x495d27=_0x264681[_0x5345a0(0xf6)];if(_0x495d27===undefined)return _0x264681;if(!Array[_0x5345a0(0xd5)](_0x495d27))throw CliErrors[_0x5345a0(0xd3)](_0x5345a0(0xed));return{..._0x264681,'aggregate':_0x495d27[_0x5345a0(0xe7)]((_0x5ef79d,_0xbb09a3)=>{const _0xaaab86=_0x5345a0;if(!_0x5ef79d||typeof _0x5ef79d!==_0xaaab86(0xdb)||Array[_0xaaab86(0xd5)](_0x5ef79d))throw CliErrors[_0xaaab86(0xd3)](_0xaaab86(0xd4)+_0xbb09a3+_0xaaab86(0xf0));const _0x34804f=_0x5ef79d[_0xaaab86(0xe9)]??_0x5ef79d[_0xaaab86(0xd8)];if(typeof _0x34804f!=='string'||_0x34804f['trim']()==='')throw CliErrors[_0xaaab86(0xd3)](_0xaaab86(0xd4)+_0xbb09a3+_0xaaab86(0xee));const _0x471b3f={..._0x5ef79d,'column':_0x34804f};return delete _0x471b3f[_0xaaab86(0xd8)],_0x471b3f;})};}function a67_0x24eb(){const _0x4adc99=['dataset_','env','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','9TiSQYI','accessKey','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','21434830rRCMpb','map','models','column','execute','bff','delete','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','function',']\x20must\x20be\x20an\x20object.','423906LGYuPO','7dzpczz','4814392cLOTGC','2785578OzJiBh','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','aggregate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','validation','data\x20aggregate\x20--params.aggregate[','isArray','2084904YQzzcx','getOne','field','4729245lGrBSX','update','object','2HhOwqs','batchCreate','1850020REpIeN'];a67_0x24eb=function(){return _0x4adc99;};return a67_0x24eb();}export async function executeData(_0x429a11,_0x41399f,_0x1ac9c2){const _0x3f0a09=a67_0x8d17,_0x2ec430=ensureClient(),_0x38df25=_0x3f0a09(0xdf)+_0x429a11,_0x1fd09f=_0x2ec430[_0x3f0a09(0xe8)][_0x38df25];if(!_0x1fd09f||typeof _0x1fd09f[_0x41399f]!==_0x3f0a09(0xef))throw new Error(_0x3f0a09(0xf5)+_0x41399f+_0x3f0a09(0xe5)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x41399f==='batchCreate')return _0x1fd09f[_0x3f0a09(0xdd)](parseBatchCreateItemsFromParams(_0x1ac9c2));const _0xe9379d=_0x1ac9c2!==undefined&&_0x1ac9c2!==null&&!Array['isArray'](_0x1ac9c2)?_0x1ac9c2:{};switch(_0x41399f){case _0x3f0a09(0xd7):{const _0x1afc27=_0xe9379d['id'];if(_0x1afc27===undefined||_0x1afc27===null)throw new Error(_0x3f0a09(0xe1));return _0x1fd09f['getOne'](_0x1afc27);}case _0x3f0a09(0xda):{const {id:_0x40a268,..._0x59f3f7}=_0xe9379d;if(_0x40a268===undefined||_0x40a268===null)throw new Error(_0x3f0a09(0xd2));return _0x1fd09f[_0x3f0a09(0xda)](_0x40a268,_0x59f3f7);}case _0x3f0a09(0xec):{const _0x3a4e3a=_0xe9379d['id'];if(_0x3a4e3a===undefined||_0x3a4e3a===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x1fd09f[_0x3f0a09(0xec)](_0x3a4e3a);}case _0x3f0a09(0xf6):return _0x1fd09f[_0x3f0a09(0xf6)](normalizeAggregateParams(_0xe9379d));default:return _0x1fd09f[_0x41399f](_0xe9379d);}}export async function executeSdkSql(_0x501c16,_0x234357){const _0x1b4b9d=a67_0x8d17,_0x15cf50=ensureClient();return _0x15cf50['sql'][_0x1b4b9d(0xea)]({'sqlCode':_0x501c16,'params':_0x234357});}export async function executeSdkBff(_0x542da5,_0x11883d){const _0x2c6119=a67_0x8d17,_0x5d759e=ensureClient();return _0x5d759e[_0x2c6119(0xeb)][_0x2c6119(0xea)]({'scriptName':_0x542da5,'params':_0x11883d});}
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});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a68_0x31930c=a68_0x53cd;(function(_0x53b683,_0x5af698){const _0x184bb6=a68_0x53cd,_0x3d66ad=_0x53b683();while(!![]){try{const _0x1f6742=parseInt(_0x184bb6(0x1db))/0x1*(-parseInt(_0x184bb6(0x1e6))/0x2)+parseInt(_0x184bb6(0x1e0))/0x3*(-parseInt(_0x184bb6(0x1e2))/0x4)+parseInt(_0x184bb6(0x1da))/0x5*(parseInt(_0x184bb6(0x1ea))/0x6)+-parseInt(_0x184bb6(0x1e4))/0x7*(-parseInt(_0x184bb6(0x1e5))/0x8)+-parseInt(_0x184bb6(0x1df))/0x9*(-parseInt(_0x184bb6(0x1d7))/0xa)+-parseInt(_0x184bb6(0x1e9))/0xb+-parseInt(_0x184bb6(0x1d8))/0xc*(-parseInt(_0x184bb6(0x1e8))/0xd);if(_0x1f6742===_0x5af698)break;else _0x3d66ad['push'](_0x3d66ad['shift']());}catch(_0xa07f38){_0x3d66ad['push'](_0x3d66ad['shift']());}}}(a68_0x5be0,0xbc557));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a68_0x53cd(_0x5bd2fa,_0x41cfc6){_0x5bd2fa=_0x5bd2fa-0x1d7;const _0x5be0a6=a68_0x5be0();let _0x53cd3a=_0x5be0a6[_0x5bd2fa];return _0x53cd3a;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a68_0x31930c(0x1dc)+PRODUCT_CONFIG[a68_0x31930c(0x1d9)]+a68_0x31930c(0x1e3)+CLI_BIN_NAME+a68_0x31930c(0x1dd),'configMissingHint':a68_0x31930c(0x1e1)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a68_0x31930c(0x1de)+PRODUCT_CONFIG[a68_0x31930c(0x1d9)]+a68_0x31930c(0x1e7)});function a68_0x5be0(){const _0x36c397=['\x20auth\x20login`.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','6516bgfbhK','645534DeeXtZ','Set\x20appcode\x20via\x20--appcode\x20or\x20','28ZoQQea','\x20or\x20run\x20`','1407VcPHSd','9608FjSjbI','1962sfTdPy','\x20file.','12740kjgSGL','8326791eSXfVA','4532178wBLqQL','7110klymdf','16236DOgAhE','newConfigFileName','10pXZTnp','569abaUZi','Configure\x20accessKey\x20in\x20'];a68_0x5be0=function(){return _0x36c397;};return a68_0x5be0();}
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 +1 @@
1
- function a69_0x4f64(_0x4c5b2e,_0x5666e3){_0x4c5b2e=_0x4c5b2e-0x19e;var _0x427e69=a69_0x427e();var _0x4f64c4=_0x427e69[_0x4c5b2e];return _0x4f64c4;}(function(_0x1f8a54,_0x2e7607){var _0x5c005d=a69_0x4f64,_0x2efac9=_0x1f8a54();while(!![]){try{var _0x554439=parseInt(_0x5c005d(0x19f))/0x1*(-parseInt(_0x5c005d(0x19e))/0x2)+parseInt(_0x5c005d(0x1a6))/0x3+-parseInt(_0x5c005d(0x1a0))/0x4*(-parseInt(_0x5c005d(0x1a3))/0x5)+parseInt(_0x5c005d(0x1a5))/0x6+parseInt(_0x5c005d(0x1a2))/0x7+-parseInt(_0x5c005d(0x1a4))/0x8*(parseInt(_0x5c005d(0x1a8))/0x9)+-parseInt(_0x5c005d(0x1a1))/0xa*(parseInt(_0x5c005d(0x1a7))/0xb);if(_0x554439===_0x2e7607)break;else _0x2efac9['push'](_0x2efac9['shift']());}catch(_0x5114ba){_0x2efac9['push'](_0x2efac9['shift']());}}}(a69_0x427e,0xb72a9));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x162936}from'@lovrabet/cli-framework';export function buildAllFlags(_0xa01daa){return a69_0x162936(_0xa01daa,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a69_0x427e(){var _0x2ca67e=['725QvIiMC','11104KxLoFZ','7968648hTQkSl','3171909DkUetW','44ujpyoo','2295zmmwgs','2HTGTpD','118097HJDetS','904YPqNOD','5191400QgiJWy','6164655fIWAXS'];a69_0x427e=function(){return _0x2ca67e;};return a69_0x427e();}
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});}