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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/push-retarget.js +1 -0
  45. package/lib/commands/skill/scopes.js +1 -1
  46. package/lib/commands/skill/summary.js +1 -1
  47. package/lib/commands/skill/templates.js +1 -1
  48. package/lib/commands/skill/validate.js +1 -1
  49. package/lib/commands/sql/detail.js +1 -1
  50. package/lib/commands/sql/exec.js +1 -1
  51. package/lib/commands/sql/index.js +1 -1
  52. package/lib/commands/update.js +1 -1
  53. package/lib/commands/workspace/index.js +1 -1
  54. package/lib/config/schema.js +1 -1
  55. package/lib/constant/app.js +1 -1
  56. package/lib/constant/auth-mode.js +1 -1
  57. package/lib/constant/cli.js +1 -1
  58. package/lib/constant/defaults.js +1 -1
  59. package/lib/constant/distribution.js +1 -1
  60. package/lib/constant/domain.js +1 -1
  61. package/lib/constant/env.js +1 -1
  62. package/lib/constant/output.js +1 -1
  63. package/lib/constant/product.js +1 -1
  64. package/lib/constant/risk.js +1 -1
  65. package/lib/constant/url.js +1 -1
  66. package/lib/context.js +1 -1
  67. package/lib/core/api-client.js +1 -1
  68. package/lib/core/db-resolver.js +1 -1
  69. package/lib/core/sdk-client.js +1 -1
  70. package/lib/errors.js +1 -1
  71. package/lib/framework/build-all-flags.js +1 -1
  72. package/lib/framework/dryrun.js +1 -1
  73. package/lib/framework/flags.js +1 -1
  74. package/lib/framework/help.js +1 -1
  75. package/lib/framework/index.js +1 -1
  76. package/lib/framework/output.js +1 -1
  77. package/lib/framework/preparse.js +1 -1
  78. package/lib/framework/response.js +1 -1
  79. package/lib/framework/runner-confirmation.js +1 -1
  80. package/lib/framework/runner-error.js +1 -1
  81. package/lib/framework/runner.js +1 -1
  82. package/lib/framework/schema-export.js +1 -1
  83. package/lib/framework/types.js +1 -1
  84. package/lib/generated/build-info.js +1 -1
  85. package/lib/help.js +1 -1
  86. package/lib/skills/npx-skills-add.js +1 -1
  87. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  88. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  89. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  90. package/lib/skills/runtime-skill-sync/links.js +1 -1
  91. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  92. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  93. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  94. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  95. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  96. package/lib/skills/runtime-skill-sync/push.js +1 -1
  97. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  99. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  100. package/lib/skills/runtime-skill-sync.js +1 -1
  101. package/lib/utils/apply-jq-filter.js +1 -1
  102. package/lib/utils/logger.js +1 -1
  103. package/lib/utils/params.js +1 -1
  104. package/lib/utils/platform.js +1 -1
  105. package/lib/utils/update-notice.js +1 -1
  106. package/lib/utils/version.js +1 -1
  107. package/lib/utils/write-cli-side-channel.js +1 -1
  108. 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 a53_0x59ca99=a53_0x2e22;function a53_0x26df(){const _0x2919fe=['Override\x20SkillHub\x20domain','3110868JydROr','21532qBDdJm','locale','Override\x20API\x20domain','Default\x20page\x20size','1802388hjYGCQ','1192tgDWPL','map','18277QUIzZh','format','Override\x20runtime\x20domain','Default\x20output\x20format',';\x20local\x20alias:\x20apps.<alias>.appcode','enumValues','importable','Override\x20user\x20domain','19lTVTRY','9046440igRQBS','854028lqWDvT','1534756ccqKyk','Config\x20key.\x20Top-level:\x20','Target\x20environment','defaultValue','join','Locale','entries','5FJgKqa','filter'];a53_0x26df=function(){return _0x2919fe;};return a53_0x26df();}(function(_0x1be7a4,_0x506412){const _0x1742dd=a53_0x2e22,_0xcc58e5=_0x1be7a4();while(!![]){try{const _0x47d9a5=parseInt(_0x1742dd(0x1b9))/0x1*(parseInt(_0x1742dd(0x1aa))/0x2)+parseInt(_0x1742dd(0x1bb))/0x3+parseInt(_0x1742dd(0x1bc))/0x4*(-parseInt(_0x1742dd(0x1a6))/0x5)+parseInt(_0x1742dd(0x1ae))/0x6+-parseInt(_0x1742dd(0x1b1))/0x7*(-parseInt(_0x1742dd(0x1af))/0x8)+parseInt(_0x1742dd(0x1a9))/0x9+-parseInt(_0x1742dd(0x1ba))/0xa;if(_0x47d9a5===_0x506412)break;else _0xcc58e5['push'](_0xcc58e5['shift']());}catch(_0x25725a){_0xcc58e5['push'](_0xcc58e5['shift']());}}}(a53_0x26df,0x399d2));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':a53_0x59ca99(0x1be),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a53_0x59ca99(0x1b4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a53_0x59ca99(0x1b2)],'importable':!![]},'pageSize':{'description':a53_0x59ca99(0x1ad),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a53_0x59ca99(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a53_0x59ca99(0x1b8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a53_0x59ca99(0x1b3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a53_0x59ca99(0x1a8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a53_0x59ca99(0x1a4),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a53_0x59ca99(0x1ab)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a53_0x59ca99(0x1a5)](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0x2e85f3])=>_0x2e85f3['cliSettableTopLevel'])[a53_0x59ca99(0x1b0)](([_0x4ba647])=>_0x4ba647));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0xa6c08f])=>_0xa6c08f['enumValues'])['map'](([_0x1bfd07,_0xeabd50])=>[_0x1bfd07,[..._0xeabd50['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a53_0x59ca99(0x1a7)](([,_0x569f58])=>_0x569f58[a53_0x59ca99(0x1b7)])['map'](([_0x10203d])=>_0x10203d);export function getConfigFieldSchema(_0xa06548){return CONFIG_FIELD_SCHEMAS[_0xa06548];}export function getConfigEnumValues(_0x5aee0f){const _0x21f419=a53_0x59ca99;return getConfigFieldSchema(_0x5aee0f)?.[_0x21f419(0x1b6)];}export function getConfigDefaultValue(_0x8983f6){const _0x5d61fd=a53_0x59ca99;return getConfigFieldSchema(_0x8983f6)?.[_0x5d61fd(0x1a2)];}export function isTopLevelConfigKey(_0x3991f1){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3991f1);}export function isLegacyCompatConfigKey(_0x4d2da8){return getConfigFieldSchema(_0x4d2da8)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a53_0x2e22(_0x56eb06,_0x8ef832){_0x56eb06=_0x56eb06-0x1a2;const _0x26dfca=a53_0x26df();let _0x2e2262=_0x26dfca[_0x56eb06];return _0x2e2262;}export function formatConfigKeyList(_0x2bc4e5){const _0x7e7ab8=a53_0x59ca99;return[..._0x2bc4e5][_0x7e7ab8(0x1a3)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x26bb7d=a53_0x59ca99;return _0x26bb7d(0x1bd)+getTopLevelConfigKeySummary()+_0x26bb7d(0x1b5);}export function buildAppProfileListFields(_0xdb4b31){return{'env':_0xdb4b31,'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 a54_0x2e3c(){const _0xc326c2=['Published','3HKYSqQ','2062992nHzHXy','45eZuYYE','PUBLISHED','205vASNQM','511358OvQFuN','12vwtzAd','7264NdhsUa','182997hRrhPA','647059shuWLe','5224879hVoNhR','348070zMFnIK'];a54_0x2e3c=function(){return _0xc326c2;};return a54_0x2e3c();}const a54_0x17287b=a54_0x3b2e;(function(_0x471c6f,_0x2b9c80){const _0x18ab2f=a54_0x3b2e,_0x1b6a64=_0x471c6f();while(!![]){try{const _0x4193de=parseInt(_0x18ab2f(0xb4))/0x1+parseInt(_0x18ab2f(0xbe))/0x2*(parseInt(_0x18ab2f(0xb9))/0x3)+-parseInt(_0x18ab2f(0xb3))/0x4*(-parseInt(_0x18ab2f(0xbd))/0x5)+parseInt(_0x18ab2f(0xb2))/0x6*(parseInt(_0x18ab2f(0xb5))/0x7)+-parseInt(_0x18ab2f(0xba))/0x8+parseInt(_0x18ab2f(0xbb))/0x9*(parseInt(_0x18ab2f(0xb7))/0xa)+-parseInt(_0x18ab2f(0xb6))/0xb;if(_0x4193de===_0x2b9c80)break;else _0x1b6a64['push'](_0x1b6a64['shift']());}catch(_0x23c3e2){_0x1b6a64['push'](_0x1b6a64['shift']());}}}(a54_0x2e3c,0x21faa));export const APP_PUBLISH_STATUS={'Published':a54_0x17287b(0xbc),'Unpublished':'UNPUBLISH'};function a54_0x3b2e(_0x43169e,_0xa3666e){_0x43169e=_0x43169e-0xb2;const _0x2e3c0e=a54_0x2e3c();let _0x3b2e0f=_0x2e3c0e[_0x43169e];return _0x3b2e0f;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a54_0x17287b(0xb8)];
@@ -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
+ const a55_0x19699e=a55_0x35b8;function a55_0x35b8(_0x1f4308,_0x1ccc27){_0x1f4308=_0x1f4308-0x119;const _0x62a46=a55_0x62a4();let _0x35b818=_0x62a46[_0x1f4308];return _0x35b818;}(function(_0xb5921b,_0x29d399){const _0x4ab11=a55_0x35b8,_0x508e4e=_0xb5921b();while(!![]){try{const _0x4afe77=-parseInt(_0x4ab11(0x11c))/0x1+-parseInt(_0x4ab11(0x121))/0x2*(parseInt(_0x4ab11(0x11b))/0x3)+parseInt(_0x4ab11(0x11f))/0x4*(parseInt(_0x4ab11(0x11d))/0x5)+-parseInt(_0x4ab11(0x127))/0x6*(-parseInt(_0x4ab11(0x122))/0x7)+parseInt(_0x4ab11(0x125))/0x8*(-parseInt(_0x4ab11(0x11a))/0x9)+parseInt(_0x4ab11(0x120))/0xa*(parseInt(_0x4ab11(0x124))/0xb)+parseInt(_0x4ab11(0x123))/0xc*(parseInt(_0x4ab11(0x126))/0xd);if(_0x4afe77===_0x29d399)break;else _0x508e4e['push'](_0x508e4e['shift']());}catch(_0x41df11){_0x508e4e['push'](_0x508e4e['shift']());}}}(a55_0x62a4,0x5be4f));export const AUTH_MODE={'ClientAk':a55_0x19699e(0x119)};function a55_0x62a4(){const _0x144e20=['3324yCWEQr','652157XVbXSc','1248728JxysMm','51662SBKXci','6TDJJfT','client-ak','9gSvvjo','4122druiTZ','405192irfxzL','26170rCLqNk','ClientAk','196WDcouK','20erILZa','898OHqwhE','551390mNGQUb'];a55_0x62a4=function(){return _0x144e20;};return a55_0x62a4();}export function isAuthMode(_0x216b64){const _0x1e40e1=a55_0x19699e;return _0x216b64===AUTH_MODE[_0x1e40e1(0x11e)];}
@@ -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
+ function a56_0x23bd(_0x5aecee,_0x2bdb25){_0x5aecee=_0x5aecee-0x12b;const _0x314c61=a56_0x314c();let _0x23bd72=_0x314c61[_0x5aecee];return _0x23bd72;}const a56_0x2f097a=a56_0x23bd;function a56_0x314c(){const _0x4f06e8=['boolean','96fhPvrs','Record\x20ID','help','string','110hCiMyU','map','Output\x20format','appcode','<code>','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20confirmation\x20for\x20high-risk\x20writes','cliBinName','dry-run','8969328SQlkOs','Alias\x20for\x20--non-interactive','5MkNZjP','nonInteractive','cliDisplayName','<expr>','<name>','fromEntries','Name\x20filter','production\x20|\x20development\x20|\x20daily','clear','yes','non-interactive','name','Preview\x20operation\x20without\x20executing','sqlcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','1235553QtmjNk','global','Use\x20global\x20config\x20scope','params','Override\x20appcode','5748USgDIT','1011020RQMBhk','format','141281eboZnp','env','192RDHeSa','verbose','app','type','1969962iGFyMI','680978rbFEOM','dryRun','Select\x20app\x20profile\x20by\x20name'];a56_0x314c=function(){return _0x4f06e8;};return a56_0x314c();}(function(_0x14dc45,_0x3a07db){const _0xb3d456=a56_0x23bd,_0x48d484=_0x14dc45();while(!![]){try{const _0xab2477=-parseInt(_0xb3d456(0x147))/0x1+parseInt(_0xb3d456(0x13e))/0x2+-parseInt(_0xb3d456(0x13d))/0x3*(-parseInt(_0xb3d456(0x142))/0x4)+parseInt(_0xb3d456(0x15a))/0x5*(parseInt(_0xb3d456(0x146))/0x6)+parseInt(_0xb3d456(0x140))/0x7*(parseInt(_0xb3d456(0x14b))/0x8)+-parseInt(_0xb3d456(0x158))/0x9+parseInt(_0xb3d456(0x14f))/0xa*(parseInt(_0xb3d456(0x138))/0xb);if(_0xab2477===_0x3a07db)break;else _0x48d484['push'](_0x48d484['shift']());}catch(_0x2c128f){_0x48d484['push'](_0x48d484['shift']());}}}(a56_0x314c,0xb13e0));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a56_0x2f097a(0x156)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a56_0x2f097a(0x12b)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a56_0x2f097a(0x152),'meowKey':a56_0x2f097a(0x152),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x13c),'hint':a56_0x2f097a(0x153)},{'name':a56_0x2f097a(0x144),'meowKey':a56_0x2f097a(0x144),'type':'string','description':a56_0x2f097a(0x149),'hint':a56_0x2f097a(0x12d)},{'name':a56_0x2f097a(0x141),'meowKey':a56_0x2f097a(0x141),'type':a56_0x2f097a(0x14e),'description':'Environment','hint':a56_0x2f097a(0x130)},{'name':a56_0x2f097a(0x13f),'meowKey':a56_0x2f097a(0x13f),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x151),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x137),'hint':a56_0x2f097a(0x12c)},{'name':a56_0x2f097a(0x157),'meowKey':a56_0x2f097a(0x148),'type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x135)},{'name':a56_0x2f097a(0x132),'meowKey':'yes','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x155)},{'name':a56_0x2f097a(0x133),'meowKey':a56_0x2f097a(0x15b),'type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x154)},{'name':a56_0x2f097a(0x139),'meowKey':'global','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x13a)},{'name':'ci','meowKey':'ci','type':a56_0x2f097a(0x14a),'description':a56_0x2f097a(0x159),'hidden':!![]},{'name':a56_0x2f097a(0x14d),'meowKey':a56_0x2f097a(0x14d),'type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x14c),'hidden':!![]},{'name':'name','meowKey':a56_0x2f097a(0x134),'type':a56_0x2f097a(0x14e),'description':a56_0x2f097a(0x12f),'hidden':!![]},{'name':a56_0x2f097a(0x136),'meowKey':a56_0x2f097a(0x136),'type':a56_0x2f097a(0x14e),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a56_0x2f097a(0x13b),'meowKey':'params','type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a56_0x2f097a(0x143),'meowKey':a56_0x2f097a(0x143),'type':a56_0x2f097a(0x14a),'description':'Verbose\x20output','hidden':!![]},{'name':a56_0x2f097a(0x131),'meowKey':a56_0x2f097a(0x131),'type':a56_0x2f097a(0x14a),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a56_0x2f097a(0x152),a56_0x2f097a(0x144),a56_0x2f097a(0x141),a56_0x2f097a(0x13f),'jq',a56_0x2f097a(0x157),a56_0x2f097a(0x132),a56_0x2f097a(0x133),'ci']);export function buildMeowFlags(){const _0x462d58=a56_0x2f097a;return Object[_0x462d58(0x12e)](GLOBAL_FLAGS[_0x462d58(0x150)](_0x299fa8=>[_0x299fa8['meowKey'],{'type':_0x299fa8[_0x462d58(0x145)]}]));}
@@ -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 a57_0x3a754e=a57_0x2428;(function(_0x265e05,_0x27f741){const _0x489926=a57_0x2428,_0x1d0ea5=_0x265e05();while(!![]){try{const _0x539cb8=parseInt(_0x489926(0x10a))/0x1*(-parseInt(_0x489926(0x10d))/0x2)+parseInt(_0x489926(0x10c))/0x3+parseInt(_0x489926(0x110))/0x4+-parseInt(_0x489926(0x109))/0x5+parseInt(_0x489926(0x112))/0x6*(-parseInt(_0x489926(0x117))/0x7)+-parseInt(_0x489926(0x10b))/0x8*(-parseInt(_0x489926(0x116))/0x9)+parseInt(_0x489926(0x10e))/0xa*(-parseInt(_0x489926(0x115))/0xb);if(_0x539cb8===_0x27f741)break;else _0x1d0ea5['push'](_0x1d0ea5['shift']());}catch(_0x3086fc){_0x1d0ea5['push'](_0x1d0ea5['shift']());}}}(a57_0xecfa,0xa0ded));function a57_0x2428(_0x800365,_0x22f3f9){_0x800365=_0x800365-0x108;const _0xecfa34=a57_0xecfa();let _0x2428cd=_0xecfa34[_0x800365];return _0x2428cd;}function a57_0xecfa(){const _0x42e3a1=['41532IdBSze','production','compress','110ZDozzb','9EZUFSv','28QFePCy','write','2359585cedNAB','42802rPsMfn','6808936ukgpAi','2465118qwBZWJ','14MWylnf','1464710bsempD','main','5000124pkPOXn','en-US'];a57_0xecfa=function(){return _0x42e3a1;};return a57_0xecfa();}export const DEFAULT_APP_PROFILE_NAME=a57_0x3a754e(0x10f);export const DEFAULT_CONFIG_VALUES={'env':a57_0x3a754e(0x113),'format':'compress','locale':a57_0x3a754e(0x111),'riskLevel':a57_0x3a754e(0x108)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a57_0x3a754e(0x114);
@@ -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 a58_0x28d8(){const _0x349a51=['17624xwbjrY','64JxkeiI','260704AIJanL','116760hjqWbW','3627882YQAyLC','npmPackageName','365ZZbdSl','1662582gdQsnW','4052400YbjpOH','12iQfZWy','91534cxPjaj'];a58_0x28d8=function(){return _0x349a51;};return a58_0x28d8();}const a58_0x39bea4=a58_0x2297;(function(_0x14a1ed,_0xe67663){const _0x1741b7=a58_0x2297,_0x93807c=_0x14a1ed();while(!![]){try{const _0x52dd47=parseInt(_0x1741b7(0x193))/0x1+-parseInt(_0x1741b7(0x18b))/0x2*(parseInt(_0x1741b7(0x192))/0x3)+parseInt(_0x1741b7(0x194))/0x4*(parseInt(_0x1741b7(0x18f))/0x5)+-parseInt(_0x1741b7(0x190))/0x6+parseInt(_0x1741b7(0x18c))/0x7*(-parseInt(_0x1741b7(0x18a))/0x8)+parseInt(_0x1741b7(0x18d))/0x9+parseInt(_0x1741b7(0x191))/0xa;if(_0x52dd47===_0xe67663)break;else _0x93807c['push'](_0x93807c['shift']());}catch(_0xfe07b){_0x93807c['push'](_0x93807c['shift']());}}}(a58_0x28d8,0x46b1d));import{PRODUCT_CONFIG}from'../constant/product.js';function a58_0x2297(_0x3bd4a0,_0x3a8e49){_0x3bd4a0=_0x3bd4a0-0x18a;const _0x28d83e=a58_0x28d8();let _0x2297c2=_0x28d83e[_0x3bd4a0];return _0x2297c2;}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a58_0x39bea4(0x18e)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];
@@ -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
+ const a59_0x116064=a59_0x5a52;function a59_0x5a52(_0x1f749b,_0x163744){_0x1f749b=_0x1f749b-0xcf;const _0x55b6f9=a59_0x55b6();let _0x5a525f=_0x55b6f9[_0x1f749b];return _0x5a525f;}(function(_0x8ec477,_0x3875d9){const _0x19c860=a59_0x5a52,_0x7649d7=_0x8ec477();while(!![]){try{const _0x2d2f2a=-parseInt(_0x19c860(0xe3))/0x1*(parseInt(_0x19c860(0xde))/0x2)+-parseInt(_0x19c860(0xd3))/0x3+-parseInt(_0x19c860(0xd5))/0x4*(-parseInt(_0x19c860(0xd1))/0x5)+-parseInt(_0x19c860(0xdf))/0x6*(-parseInt(_0x19c860(0xd8))/0x7)+parseInt(_0x19c860(0xd0))/0x8+parseInt(_0x19c860(0xdb))/0x9*(-parseInt(_0x19c860(0xd9))/0xa)+-parseInt(_0x19c860(0xdd))/0xb;if(_0x2d2f2a===_0x3875d9)break;else _0x7649d7['push'](_0x7649d7['shift']());}catch(_0x269906){_0x7649d7['push'](_0x7649d7['shift']());}}}(a59_0x55b6,0xa9128));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x16ca78){const _0xc142b=a59_0x5a52;customApiDomain=_0x16ca78?.[_0xc142b(0xd4)],customUserDomain=_0x16ca78?.['userDomain'],customRuntimeDomain=_0x16ca78?.[_0xc142b(0xcf)],customSkillHubDomain=_0x16ca78?.[_0xc142b(0xdc)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a59_0x116064(0xe1)][a59_0x116064(0xd6)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xd6)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)]['production'][a59_0x116064(0xda)]:PRODUCT_CONFIG[a59_0x116064(0xd7)]['nonProduction'][a59_0x116064(0xda)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe1)][a59_0x116064(0xd2)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xd2)]);function a59_0x55b6(){const _0x42bee3=['6669096NyfuFF','384950ALsqwk','runtime','91395AqJORc','apiDomain','60jOdspV','user','domains','581oFksRd','3985490LdiOEQ','api','18BsBDbf','skillHubDomain','7391879woygKh','134JPgoJv','73254RaKTKD','skillhub','production','nonProduction','12086ckKwBe','runtimeDomain'];a59_0x55b6=function(){return _0x42bee3;};return a59_0x55b6();}export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe1)][a59_0x116064(0xe0)]:PRODUCT_CONFIG[a59_0x116064(0xd7)][a59_0x116064(0xe2)][a59_0x116064(0xe0)]);
@@ -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 a60_0x4efa79=a60_0x523b;(function(_0xb3ea59,_0x8058d3){const _0x58569b=a60_0x523b,_0x557428=_0xb3ea59();while(!![]){try{const _0x540aff=-parseInt(_0x58569b(0x6b))/0x1*(-parseInt(_0x58569b(0x70))/0x2)+parseInt(_0x58569b(0x6e))/0x3+parseInt(_0x58569b(0x6d))/0x4*(parseInt(_0x58569b(0x6a))/0x5)+parseInt(_0x58569b(0x74))/0x6+parseInt(_0x58569b(0x73))/0x7+-parseInt(_0x58569b(0x67))/0x8+-parseInt(_0x58569b(0x69))/0x9*(parseInt(_0x58569b(0x71))/0xa);if(_0x540aff===_0x8058d3)break;else _0x557428['push'](_0x557428['shift']());}catch(_0x592fbb){_0x557428['push'](_0x557428['shift']());}}}(a60_0x3baa,0xd3fcb));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production','development','daily'];export function normalizeEnv(_0x1a5bc9){const _0xa0e40f=a60_0x523b;return _0x1a5bc9===_0xa0e40f(0x68)?'production':_0x1a5bc9;}export function isProduction(_0x2ffc39){return normalizeEnv(_0x2ffc39)==='production';}export function isDaily(_0x38fb11){const _0x4bb1e4=a60_0x523b;return normalizeEnv(_0x38fb11)===_0x4bb1e4(0x72);}export function isDev(_0x5824db){const _0x6f97b2=a60_0x523b,_0x12fc74=normalizeEnv(_0x5824db);return _0x12fc74===_0x6f97b2(0x6f)||_0x12fc74===_0x6f97b2(0x66);}let env=normalizeEnv(productEnv(a60_0x4efa79(0x6c))||'production');function a60_0x523b(_0x34ad8a,_0x42ad92){_0x34ad8a=_0x34ad8a-0x66;const _0x3baa66=a60_0x3baa();let _0x523b95=_0x3baa66[_0x34ad8a];return _0x523b95;}export function getEnv(){return env;}function a60_0x3baa(){const _0x4b9c7f=['45eUrKax','315RzdfJC','47mNemWW','ENV','61616gUVfcD','465618McqGUG','development','39966hNqgjz','6041540zwQQPd','daily','11276279YOcVkh','1645896XKvgCX','dev','488024VgBmDD','online'];a60_0x3baa=function(){return _0x4b9c7f;};return a60_0x3baa();}export function initEnv(_0x2145a0){env=normalizeEnv(_0x2145a0);}
@@ -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
+ function a61_0x3204(_0x19003c,_0x180656){_0x19003c=_0x19003c-0xe6;const _0x3b565d=a61_0x3b56();let _0x32044b=_0x3b565d[_0x19003c];return _0x32044b;}(function(_0x29bc79,_0x5c1931){const _0x3b821d=a61_0x3204,_0x1e1cf0=_0x29bc79();while(!![]){try{const _0x58b4c3=-parseInt(_0x3b821d(0xea))/0x1+-parseInt(_0x3b821d(0xee))/0x2+parseInt(_0x3b821d(0xef))/0x3+parseInt(_0x3b821d(0xeb))/0x4+parseInt(_0x3b821d(0xe6))/0x5*(parseInt(_0x3b821d(0xed))/0x6)+parseInt(_0x3b821d(0xe8))/0x7*(-parseInt(_0x3b821d(0xe7))/0x8)+parseInt(_0x3b821d(0xe9))/0x9*(parseInt(_0x3b821d(0xec))/0xa);if(_0x58b4c3===_0x5c1931)break;else _0x1e1cf0['push'](_0x1e1cf0['shift']());}catch(_0x39cfd9){_0x1e1cf0['push'](_0x1e1cf0['shift']());}}}(a61_0x3b56,0x187ce));function a61_0x3b56(){const _0x5389b5=['46287IzjVgw','234564GMvHih','40ceGyDv','6cLFULh','298670gmQUTg','408273JPGGqz','169010jdACOg','8bluuol','325178zPsHlJ','256149EFVlCY'];a61_0x3b56=function(){return _0x5389b5;};return a61_0x3b56();}export const OUTPUT_FORMAT_VALUES=['json','pretty','compress'];
@@ -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 a62_0x4f11e7=a62_0x51dd;(function(_0x5dfa3e,_0x495e05){const _0x4172fb=a62_0x51dd,_0x2aec52=_0x5dfa3e();while(!![]){try{const _0x1d727b=parseInt(_0x4172fb(0x132))/0x1*(parseInt(_0x4172fb(0x12f))/0x2)+-parseInt(_0x4172fb(0x12c))/0x3+parseInt(_0x4172fb(0x125))/0x4+-parseInt(_0x4172fb(0x123))/0x5*(parseInt(_0x4172fb(0x134))/0x6)+parseInt(_0x4172fb(0x136))/0x7*(-parseInt(_0x4172fb(0x11d))/0x8)+-parseInt(_0x4172fb(0x133))/0x9+parseInt(_0x4172fb(0x131))/0xa;if(_0x1d727b===_0x495e05)break;else _0x2aec52['push'](_0x2aec52['shift']());}catch(_0x1a0072){_0x2aec52['push'](_0x2aec52['shift']());}}}(a62_0x1ee6,0x59aa0));export const PRODUCT_CONFIG={'cliBinName':a62_0x4f11e7(0x124),'cliDisplayName':a62_0x4f11e7(0x127),'npmPackageName':a62_0x4f11e7(0x129),'skillSource':a62_0x4f11e7(0x11b),'npmRegistryBaseUrl':a62_0x4f11e7(0x11f),'envPrefix':'LOVRABET','legacyEnvPrefixes':[a62_0x4f11e7(0x128)],'configFileNames':[a62_0x4f11e7(0x12e),a62_0x4f11e7(0x12b)],'newConfigFileName':a62_0x4f11e7(0x12e),'homeDirName':'.lovrabet','logFileName':a62_0x4f11e7(0x135),'invokeSource':a62_0x4f11e7(0x12a),'userCenterDisplayName':'Lovrabet\x20User\x20Center','skipNpxSkillsEnvSuffix':a62_0x4f11e7(0x11e),'domains':{'production':{'user':'https://user.lovrabet.com','api':a62_0x4f11e7(0x120),'runtime':'https://runtime.lovrabet.com','skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a62_0x4f11e7(0x122),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skillhub':a62_0x4f11e7(0x11c)}},'accessKeyCreatePath':a62_0x4f11e7(0x130)};function a62_0x1ee6(){const _0x103acf=['map','Lovrabet\x20Runtime\x20CLI','RABETBASE','@lovrabet/lovrabet-cli','cli:lovrabet-runtime','.lovrabetrc','2049651MsHCMj','envPrefix','.lovrabet.json','370HQXQDE','/user/ak','21135990LSXeMJ','3145aurfWm','6010461LIkzbn','3014898QaYAKE','.lovrabet-runtime.log','4333xoMqcB','lovrabet/lovrabet-cli','https://skills-daily.lovrabet.com','7824YpiTSJ','SKIP_NPX_SKILLS','https://registry.npmjs.org','https://api.lovrabet.com','legacyEnvPrefixes','https://user-daily.lovrabet.com','5Liywlm','lovrabet','523004EmozjP'];a62_0x1ee6=function(){return _0x103acf;};return a62_0x1ee6();}export function productEnvName(_0x2d40ba){const _0x5373c5=a62_0x4f11e7;return PRODUCT_CONFIG[_0x5373c5(0x12d)]+'_'+_0x2d40ba;}export function productEnvNames(_0x2c96fc){const _0x3db332=a62_0x4f11e7;return[productEnvName(_0x2c96fc),...PRODUCT_CONFIG[_0x3db332(0x121)][_0x3db332(0x126)](_0x1eb636=>_0x1eb636+'_'+_0x2c96fc)];}function a62_0x51dd(_0x5ca908,_0x59f5b5){_0x5ca908=_0x5ca908-0x11b;const _0x1ee6f2=a62_0x1ee6();let _0x51dd87=_0x1ee6f2[_0x5ca908];return _0x51dd87;}export function productEnv(_0x1e95d3){for(const _0x517998 of productEnvNames(_0x1e95d3)){const _0x395aed=process.env[_0x517998];if(_0x395aed!==undefined)return _0x395aed;}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
+ function a63_0x2d0f(){const _0x143f73=['1011948bzLnBe','21635604lbMicD','read','6500520mvTYHp','15030qHPeiW','561EPWVyK','9338175EpiRUG','4038575OUTsBQ','2406364BpRQbm','6sYikVP','write'];a63_0x2d0f=function(){return _0x143f73;};return a63_0x2d0f();}function a63_0x28fa(_0x5e6649,_0x118178){_0x5e6649=_0x5e6649-0x1a9;const _0x2d0ffd=a63_0x2d0f();let _0x28fa65=_0x2d0ffd[_0x5e6649];return _0x28fa65;}const a63_0x190b02=a63_0x28fa;(function(_0x1be672,_0x46f666){const _0x5a178b=a63_0x28fa,_0x5482d6=_0x1be672();while(!![]){try{const _0x57c712=-parseInt(_0x5a178b(0x1aa))/0x1+parseInt(_0x5a178b(0x1ae))/0x2*(parseInt(_0x5a178b(0x1af))/0x3)+-parseInt(_0x5a178b(0x1b2))/0x4+parseInt(_0x5a178b(0x1b1))/0x5*(-parseInt(_0x5a178b(0x1b3))/0x6)+-parseInt(_0x5a178b(0x1b0))/0x7+parseInt(_0x5a178b(0x1ad))/0x8+parseInt(_0x5a178b(0x1ab))/0x9;if(_0x57c712===_0x46f666)break;else _0x5482d6['push'](_0x5482d6['shift']());}catch(_0x191f11){_0x5482d6['push'](_0x5482d6['shift']());}}}(a63_0x2d0f,0xd38f3));export const RISK_LEVEL_VALUES=[a63_0x190b02(0x1ac),a63_0x190b02(0x1a9),'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 a64_0x5a47(_0x28f774,_0x13782e){_0x28f774=_0x28f774-0x11d;const _0xa5cd0d=a64_0xa5cd();let _0x5a47ce=_0xa5cd0d[_0x28f774];return _0x5a47ce;}const a64_0x8ff6b7=a64_0x5a47;(function(_0x3051b2,_0x5b54cc){const _0xd92725=a64_0x5a47,_0x2847cb=_0x3051b2();while(!![]){try{const _0x55563c=-parseInt(_0xd92725(0x11e))/0x1+parseInt(_0xd92725(0x121))/0x2*(-parseInt(_0xd92725(0x126))/0x3)+-parseInt(_0xd92725(0x122))/0x4+parseInt(_0xd92725(0x128))/0x5+-parseInt(_0xd92725(0x120))/0x6+parseInt(_0xd92725(0x11d))/0x7*(parseInt(_0xd92725(0x125))/0x8)+-parseInt(_0xd92725(0x124))/0x9*(-parseInt(_0xd92725(0x12a))/0xa);if(_0x55563c===_0x5b54cc)break;else _0x2847cb['push'](_0x2847cb['shift']());}catch(_0x5d89ed){_0x2847cb['push'](_0x2847cb['shift']());}}}(a64_0xa5cd,0x2df3f));function a64_0xa5cd(){const _0x22ec73=['111375maFNMP','domains','4145080Lkweeb','2131101qxBBuD','140389SddHUE','accessKeyCreatePath','1368378jyyZfp','850XAREsX','935936zpNbQE','user','18yvDVVg','8tAEBFq','2577RhPsfr','production'];a64_0xa5cd=function(){return _0x22ec73;};return a64_0xa5cd();}import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a64_0x8ff6b7(0x129)][a64_0x8ff6b7(0x127)][a64_0x8ff6b7(0x123)]+PRODUCT_CONFIG[a64_0x8ff6b7(0x11f)];
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 a65_0x163918=a65_0x2f55;(function(_0x4a4e98,_0x25d228){const _0x14bd96=a65_0x2f55,_0x7abc3=_0x4a4e98();while(!![]){try{const _0x57729d=-parseInt(_0x14bd96(0x133))/0x1+parseInt(_0x14bd96(0x145))/0x2+parseInt(_0x14bd96(0x136))/0x3*(-parseInt(_0x14bd96(0x16d))/0x4)+-parseInt(_0x14bd96(0x166))/0x5*(-parseInt(_0x14bd96(0x14f))/0x6)+parseInt(_0x14bd96(0x142))/0x7+-parseInt(_0x14bd96(0x153))/0x8*(-parseInt(_0x14bd96(0x158))/0x9)+parseInt(_0x14bd96(0x162))/0xa*(parseInt(_0x14bd96(0x163))/0xb);if(_0x57729d===_0x25d228)break;else _0x7abc3['push'](_0x7abc3['shift']());}catch(_0x3fdf7e){_0x7abc3['push'](_0x7abc3['shift']());}}}(a65_0x2358,0x4bd25));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a65_0x163918(0x127)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x95a402){for(const _0xab365 of CONFIG_NAMES){const _0x51c3c4=resolve(_0x95a402,_0xab365);if(existsSync(_0x51c3c4))return _0x51c3c4;}return undefined;}export function resolveWriteConfigPath(_0x256af8){const _0xf748d4=a65_0x163918,_0x3a0703=_0x256af8===_0xf748d4(0x12d)?process['cwd']():homedir(),_0x3ab331=resolveConfigPath(_0x3a0703);return _0x3ab331??resolve(_0x3a0703,NEW_CONFIG_NAME);}export function readConfigFile(_0x48ceee){const _0x1f0a9e=a65_0x163918;try{if(existsSync(_0x48ceee)){const _0x2a450e=readFileSync(_0x48ceee,{'encoding':_0x1f0a9e(0x155)});if(_0x2a450e){const _0xeecb58=JSON[_0x1f0a9e(0x134)](_0x2a450e);return migrateOnlineEnv(_0x48ceee,_0xeecb58),_0xeecb58;}}}catch{}return{};}function migrateOnlineEnv(_0x2300d2,_0x11d823){const _0x7a809e=a65_0x163918;let _0x591224=![];_0x11d823[_0x7a809e(0x154)]==='online'&&(_0x11d823['env']=_0x7a809e(0x16a),_0x591224=!![]);if(_0x11d823[_0x7a809e(0x16b)]&&typeof _0x11d823[_0x7a809e(0x16b)]===_0x7a809e(0x139))for(const _0x240445 of Object[_0x7a809e(0x161)](_0x11d823[_0x7a809e(0x16b)])){_0x240445&&_0x240445[_0x7a809e(0x154)]===_0x7a809e(0x141)&&(_0x240445[_0x7a809e(0x154)]=_0x7a809e(0x16a),_0x591224=!![]);}if(_0x591224)try{writeConfigFile(_0x2300d2,_0x11d823);}catch{}}function a65_0x2358(){const _0x46c535=['production','apps','true','364BzqagV','accessKey','empty','configFileNames','PAGE_SIZE','code','EPERM','projectConfig','stdout','project','stdin','apiDomain','isTTY','explicit','setRawMode','545647vikPbc','parse','missing','19527SyTyuc','trim','maxRisk','object','cache','error','riskLevel','nonInteractive','high-risk-write','raw','EACCES','online','240569VOlmyH','runtimeDomain','locale','693312ugcGio','globalConfig','development','setLogPath','top-level','isRaw','EXDEV','app','cwd','pageSize','18tyFKnK','inherit','defaultApp','authRequired','3864592xMIpsX','env','utf8','argv','global','9OXXALg','.tmp','host','./constant/env.js','format','skillHubDomain','appcode','string','daily','values','10zEpIlD','5272091UMdBfU','local-alias','./constant/domain.js','175255jyRpkt','write','setRawCommand','some'];a65_0x2358=function(){return _0x46c535;};return a65_0x2358();}export function writeConfigFile(_0x159f1f,_0x38c401){const _0x2bbad0=a65_0x163918,_0x22c9cf=dirname(_0x159f1f);!existsSync(_0x22c9cf)&&mkdirSync(_0x22c9cf,{'recursive':!![]});const _0x8e44b9=_0x159f1f+_0x2bbad0(0x159);try{writeFileSync(_0x8e44b9,JSON['stringify'](_0x38c401,null,0x2)+'\x0a',{'encoding':_0x2bbad0(0x155),'mode':0x180});try{renameSync(_0x8e44b9,_0x159f1f);}catch(_0x483be6){if(_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x12a)||_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x14b)||_0x483be6[_0x2bbad0(0x129)]===_0x2bbad0(0x140)){writeFileSync(_0x159f1f,JSON['stringify'](_0x38c401,null,0x2)+'\x0a',{'encoding':_0x2bbad0(0x155)});try{unlinkSync(_0x8e44b9);}catch{}}else throw _0x483be6;}}catch(_0x9e4e4f){try{unlinkSync(_0x8e44b9);}catch{}throw _0x9e4e4f;}}export function isNonInteractiveMode(_0x9d7be5){const _0xad5542=a65_0x163918;return!!(_0x9d7be5[_0xad5542(0x13d)]||_0x9d7be5['ci']||productEnvNames('CI')[_0xad5542(0x169)](_0x27c666=>process.env[_0x27c666]===_0xad5542(0x16c))||process.env.CI==='true'||!process[_0xad5542(0x12c)][_0xad5542(0x130)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x407076=a65_0x163918;if(!process[_0x407076(0x12e)][_0x407076(0x130)])return![];try{const _0x4f49cb=process[_0x407076(0x12e)][_0x407076(0x14a)];return process[_0x407076(0x12e)][_0x407076(0x132)](!![]),process[_0x407076(0x12e)][_0x407076(0x132)](_0x4f49cb??![]),!![];}catch{return![];}}export async function createContext(_0x557716){const _0xddbd51=a65_0x163918,_0x5bb2f5=readRawConfig(),_0x578537=buildConfig(_0x5bb2f5,_0x557716);await initGlobalEnvironment(_0x578537);const {getUserDomain:_0x54e415,getApiDomain:_0x515f2c}=await import(_0xddbd51(0x165)),_0x30d413={'apiDomain':_0x515f2c(),'userDomain':_0x54e415()},_0x337f62=await buildAuth(_0x578537);logger[_0xddbd51(0x148)](process['cwd']());const _0xd06c1c=(CLI_BIN_NAME+'\x20'+process[_0xddbd51(0x156)]['slice'](0x2)['join']('\x20'))['trim']();logger[_0xddbd51(0x168)](_0xd06c1c);const _0x8c5ee8=isNonInteractiveMode(_0x557716);return{'config':_0x578537,'auth':_0x337f62,'logger':logger,'env':_0x30d413,'nonInteractive':_0x8c5ee8};}export function buildConfigFromFlags(_0x3cd470){return buildConfig(readRawConfig(),_0x3cd470);}export function getLocalAppAliases(_0x222416){const _0x45cce4=a65_0x163918;return _0x222416[_0x45cce4(0x16b)]&&typeof _0x222416[_0x45cce4(0x16b)]===_0x45cce4(0x139)?_0x222416[_0x45cce4(0x16b)]:{};}function a65_0x2f55(_0x3bbdb1,_0x55596f){_0x3bbdb1=_0x3bbdb1-0x127;const _0x2358c0=a65_0x2358();let _0x2f55e3=_0x2358c0[_0x3bbdb1];return _0x2f55e3;}export function resolveLocalAppAliasCode(_0x3b5435,_0x4488a1){const _0x80debb=a65_0x163918;if(!_0x4488a1)return undefined;const _0x34f759=getLocalAppAliases(_0x3b5435)[_0x4488a1],_0x2bcc66=_0x34f759?.[_0x80debb(0x15e)];return typeof _0x2bcc66===_0x80debb(0x15f)&&_0x2bcc66[_0x80debb(0x137)]()?_0x2bcc66['trim']():undefined;}export function readAppCodeFromConfig(){const _0x32ac68=a65_0x163918,_0x38f687=readRawConfig(),_0x5099f4=_0x38f687['appcode']??_0x38f687[_0x32ac68(0x14c)];if(typeof _0x5099f4==='string'&&_0x5099f4['trim']())return _0x5099f4[_0x32ac68(0x137)]();const _0x22c0c3=resolveLocalAppAliasCode(_0x38f687,typeof _0x38f687['defaultApp']===_0x32ac68(0x15f)?_0x38f687[_0x32ac68(0x151)]:undefined);if(_0x22c0c3)return _0x22c0c3;const _0x48f5b3=normalizeEnv(String(_0x38f687[_0x32ac68(0x154)]||_0x32ac68(0x16a))),_0x530c7d=isDaily(_0x48f5b3)?_0x32ac68(0x160):isDev(_0x48f5b3)?'development':_0x32ac68(0x16a),_0x4911e8=resolveCachedAppCode(typeof _0x38f687[_0x32ac68(0x151)]==='string'?_0x38f687[_0x32ac68(0x151)]:undefined,_0x530c7d,typeof _0x38f687[_0x32ac68(0x16e)]==='string'?_0x38f687[_0x32ac68(0x16e)]:undefined);if(_0x4911e8)return _0x4911e8;const _0x341a86=Object[_0x32ac68(0x161)](getLocalAppAliases(_0x38f687))['find'](_0x1247d5=>_0x1247d5?.[_0x32ac68(0x15e)]);return typeof _0x341a86?.[_0x32ac68(0x15e)]===_0x32ac68(0x15f)&&_0x341a86['appcode'][_0x32ac68(0x137)]()?_0x341a86['appcode'][_0x32ac68(0x137)]():undefined;}export function readScopedConfig(_0x6085fe){const _0x48316e=a65_0x163918,_0x55acf8=_0x6085fe['global']?_0x48316e(0x157):_0x48316e(0x12d);return readConfigFile(resolveWriteConfigPath(_0x55acf8));}export function writeScopedConfig(_0x1e8b58,_0x5c5ae9){const _0x5d40ed=a65_0x163918,_0x55ab67=_0x5c5ae9[_0x5d40ed(0x157)]?_0x5d40ed(0x157):'project';writeConfigFile(resolveWriteConfigPath(_0x55ab67),_0x1e8b58);}export async function initGlobalEnvironment(_0x1b40c3){const _0x430f92=a65_0x163918,{initEnv:_0x562a7a}=await import(_0x430f92(0x15b));_0x562a7a(_0x1b40c3['env']);const {initDomains:_0xbb66a}=await import('./constant/domain.js');_0xbb66a({'apiDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x12f)]||_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x15a)]||undefined,'userDomain':_0x1b40c3[_0x430f92(0x13f)]['userDomain']||undefined,'runtimeDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x143)]||undefined,'skillHubDomain':_0x1b40c3[_0x430f92(0x13f)][_0x430f92(0x15d)]||undefined});}export function getProjectConfigPath(){const _0x49ae55=a65_0x163918;return resolveConfigPath(process[_0x49ae55(0x14d)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x304499){const _0x5dc14b=a65_0x163918;if(!existsSync(_0x304499))return{'status':_0x5dc14b(0x135)};try{const _0x1a9357=readFileSync(_0x304499,{'encoding':_0x5dc14b(0x155)});if(!_0x1a9357?.['trim']())return{'status':_0x5dc14b(0x16f)};const _0x57318d=JSON[_0x5dc14b(0x134)](_0x1a9357);return{'status':'ok','data':_0x57318d};}catch(_0x547f48){return{'status':_0x5dc14b(0x13b),'message':_0x547f48 instanceof Error?_0x547f48['message']:String(_0x547f48)};}}export function loadRawConfigLayers(_0x2da1c2){const _0x5a6a88=a65_0x163918;let _0x5751b0={},_0x39ce2d={},_0x31b4ec,_0x2daebe;try{_0x31b4ec=resolveConfigPath(homedir());if(_0x31b4ec){const _0x1f802c=readFileSync(_0x31b4ec,{'encoding':_0x5a6a88(0x155)});if(_0x1f802c)_0x5751b0=JSON['parse'](_0x1f802c);}}catch{}try{const _0x333daa=_0x2da1c2||process[_0x5a6a88(0x14d)]();_0x2daebe=resolveConfigPath(_0x333daa);if(_0x2daebe){const _0x3fca01=readFileSync(_0x2daebe,{'encoding':'utf8'});if(_0x3fca01)_0x39ce2d=JSON[_0x5a6a88(0x134)](_0x3fca01);}}catch{}return{'globalPath':_0x31b4ec,'projectPath':_0x2daebe,'globalConfig':_0x5751b0,'projectConfig':_0x39ce2d};}function mergeRawConfigLayers(_0x40d3bc){const _0x4a89e2=a65_0x163918,{globalConfig:_0x5565d3,projectConfig:_0x275ec3}=_0x40d3bc;if(_0x275ec3[_0x4a89e2(0x150)]===![]){const _0x10e178={..._0x275ec3};return delete _0x10e178[_0x4a89e2(0x150)],_0x10e178;}const _0x55a6c6={..._0x5565d3,..._0x275ec3};if(_0x4a89e2(0x151)in _0x275ec3)_0x55a6c6[_0x4a89e2(0x151)]=_0x275ec3[_0x4a89e2(0x151)];else _0x5565d3['defaultApp']&&(_0x55a6c6[_0x4a89e2(0x151)]=_0x5565d3[_0x4a89e2(0x151)]);return _0x55a6c6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x581856){return mergeRawConfigLayers(loadRawConfigLayers(_0x581856));}export function readRawConfigWithLayers(_0x247487){const _0x38668c=loadRawConfigLayers(_0x247487);return{'config':mergeRawConfigLayers(_0x38668c),'layers':_0x38668c};}export function resolveDefaultAppSource(_0x2fc7ce){const _0x593f88=a65_0x163918;if(_0x593f88(0x151)in _0x2fc7ce[_0x593f88(0x12b)])return'project';if(_0x2fc7ce['projectConfig']['inherit']===![])return null;if(_0x2fc7ce[_0x593f88(0x146)][_0x593f88(0x151)])return'global';return null;}function buildConfig(_0x4a0aee,_0x4d10fb){const _0x4b4fa3=a65_0x163918,_0x1f481f=_0x4a0aee[_0x4b4fa3(0x151)]||undefined,_0x5aa34f=_0x4d10fb[_0x4b4fa3(0x14c)]||env('APP')||undefined,_0x1b0cdd=_0x5aa34f||_0x1f481f||undefined,_0xd74abd=env('ACCESS_KEY')||_0x4a0aee['accessKey']||undefined,_0x3b1255=_0x4d10fb[_0x4b4fa3(0x154)]||env('ENV')||_0x4a0aee[_0x4b4fa3(0x154)]||DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x154)],_0x473a92=normalizeEnv(String(_0x3b1255)),_0x3ddbd9=isDaily(_0x473a92)?_0x4b4fa3(0x160):isDev(_0x473a92)?_0x4b4fa3(0x147):_0x4b4fa3(0x16a),_0x11e93e=typeof _0x4d10fb[_0x4b4fa3(0x15e)]==='string'?_0x4d10fb['appcode']:undefined,_0x2ec32e=env('APPCODE'),_0x5b904e=_0x5aa34f?undefined:_0x4a0aee[_0x4b4fa3(0x15e)]||_0x4a0aee['app']||undefined,_0x2dbbeb=_0x5aa34f||(_0x5b904e?undefined:_0x1f481f),_0x301eee=resolveLocalAppAliasCode(_0x4a0aee,_0x2dbbeb),_0x3703d4=resolveCachedAppCode(_0x2dbbeb,_0x3ddbd9,_0xd74abd),_0x289184=_0x11e93e||_0x2ec32e||_0x5b904e||_0x301eee||_0x3703d4||undefined,_0x37d697=_0x11e93e?_0x4b4fa3(0x131):_0x2ec32e?'env':_0x5b904e?_0x4b4fa3(0x149):_0x301eee?_0x4b4fa3(0x164):_0x3703d4?_0x4b4fa3(0x13a):undefined,_0x54e5d7=_0x4a0aee[_0x4b4fa3(0x144)]||DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x144)],_0x262c86=undefined,_0x340e48=_0x4d10fb['format']||env('FORMAT')||_0x4a0aee[_0x4b4fa3(0x15c)],_0xd3e7fa=normalizeLegacyOutputFormat(_0x340e48),_0x495352=env(_0x4b4fa3(0x128))||_0x4a0aee[_0x4b4fa3(0x14e)],_0x2dc2e2=_0x495352?Number(_0x495352)||undefined:undefined,_0x27083b=_0x4a0aee['riskLevel']||_0x4a0aee[_0x4b4fa3(0x138)],_0x8a031d=_0x27083b==='read'||_0x27083b===_0x4b4fa3(0x167)||_0x27083b===_0x4b4fa3(0x13e)?_0x27083b:DEFAULT_CONFIG_VALUES[_0x4b4fa3(0x13c)],_0x246300=env('VERBOSE'),_0x36718b=_0x246300==='1'||_0x246300===_0x4b4fa3(0x16c);return{'appCode':typeof _0x289184==='string'&&_0x289184[_0x4b4fa3(0x137)]()?_0x289184[_0x4b4fa3(0x137)]():undefined,'appCodeSource':_0x37d697,'env':_0x3ddbd9,'locale':_0x54e5d7,'cookie':_0x262c86,'accessKey':_0xd74abd,'format':_0xd3e7fa,'pageSize':_0x2dc2e2,'riskLevel':_0x8a031d,'verbose':_0x36718b,'defaultApp':_0x1f481f,'currentApp':typeof _0x1b0cdd==='string'?_0x1b0cdd:undefined,'raw':_0x4a0aee};}function env(_0x4d7873){return productEnv(_0x4d7873);}async function buildAuth(_0x1ce049){const _0x1f1dfd=a65_0x163918,_0x5a5741='',_0x37361a=!!_0x1ce049[_0x1f1dfd(0x16e)];return{'cookie':_0x5a5741,'isLoggedIn':_0x37361a,async 'getOrLogin'(){const _0x4c2e71=_0x1f1dfd;if(_0x37361a)return _0x5a5741;throw CliErrors[_0x4c2e71(0x152)]();}};}
@@ -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(_0x23cd43,_0x3a2198){const _0x679b6f=a66_0x525c,_0x4b9fc9=_0x23cd43();while(!![]){try{const _0x20a2d3=parseInt(_0x679b6f(0x18a))/0x1+-parseInt(_0x679b6f(0x17a))/0x2*(-parseInt(_0x679b6f(0x1b8))/0x3)+-parseInt(_0x679b6f(0x171))/0x4+parseInt(_0x679b6f(0x1bc))/0x5+parseInt(_0x679b6f(0x166))/0x6+-parseInt(_0x679b6f(0x154))/0x7*(parseInt(_0x679b6f(0x199))/0x8)+-parseInt(_0x679b6f(0x1b1))/0x9;if(_0x20a2d3===_0x3a2198)break;else _0x4b9fc9['push'](_0x4b9fc9['shift']());}catch(_0x1aa291){_0x4b9fc9['push'](_0x4b9fc9['shift']());}}}(a66_0x4489,0xd0e1d));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(_0x4e5035){_activeAK=_0x4e5035||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x777274,_0x50b024={}){const _0x5d0b65=a66_0x525c,{method:method=_0x5d0b65(0x1b3),body:_0x306046,headers:headers={},timeout:timeout=0x7530}=_0x50b024,_0x4c7fc1=_activeAK,_0x190d01=getRuntimeDomain();if(!_0x4c7fc1)throw CliErrors[_0x5d0b65(0x185)](_0x5d0b65(0x165)+PRODUCT_CONFIG[_0x5d0b65(0x1a8)]+'.');const _0x2b3939=''+_0x190d01+_0x777274,_0x127b20={'X-User-AK':_0x4c7fc1},_0x4526f9=new AbortController(),_0x446a36=setTimeout(()=>_0x4526f9['abort'](),timeout);try{const _0x7bdfab=await fetch(_0x2b3939,{'method':method,'headers':{'Content-Type':_0x5d0b65(0x14c),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],..._0x127b20,...headers},'body':_0x306046?JSON['stringify'](_0x306046):undefined,'signal':_0x4526f9[_0x5d0b65(0x178)]});let _0x2368a7;try{_0x2368a7=await _0x7bdfab['json']();}catch{throw CliErrors[_0x5d0b65(0x19e)](_0x5d0b65(0x17e)+_0x7bdfab[_0x5d0b65(0x1a9)]+')',_0x7bdfab[_0x5d0b65(0x1a9)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x7bdfab['ok']||_0x2368a7[_0x5d0b65(0x1b2)]===![])throw CliErrors[_0x5d0b65(0x19e)](_0x2368a7[_0x5d0b65(0x15a)]||_0x2368a7[_0x5d0b65(0x1a5)]||_0x5d0b65(0x148)+_0x7bdfab[_0x5d0b65(0x1a9)],_0x2368a7['errorCode']?'API\x20error\x20code:\x20'+_0x2368a7[_0x5d0b65(0x1a3)]:undefined);return _0x2368a7;}catch(_0x232056){if(_0x232056 instanceof Error&&_0x232056[_0x5d0b65(0x1ad)]===_0x5d0b65(0x181))throw CliErrors[_0x5d0b65(0x19e)]('Request\x20timeout:\x20'+_0x2b3939);throw _0x232056;}finally{clearTimeout(_0x446a36);}}async function apiBinaryRequest(_0x34368d,_0x35f5bf={}){const _0xc8c906=a66_0x525c,{method:method=_0xc8c906(0x1b3),headers:headers={},timeout:timeout=0x7530}=_0x35f5bf,_0x5a7a61=_activeAK,_0x4241b6=getRuntimeDomain();if(!_0x5a7a61)throw CliErrors[_0xc8c906(0x185)](_0xc8c906(0x165)+PRODUCT_CONFIG[_0xc8c906(0x1a8)]+'.');const _0x4d801c=''+_0x4241b6+_0x34368d,_0x5f1ca5=new AbortController(),_0x3af75a=setTimeout(()=>_0x5f1ca5[_0xc8c906(0x1a6)](),timeout);try{const _0x3bc23f=await fetch(_0x4d801c,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xc8c906(0x161)],'X-User-AK':_0x5a7a61,...headers},'signal':_0x5f1ca5[_0xc8c906(0x178)]});if(!_0x3bc23f['ok']){let _0xacaea9;try{const _0x5a5719=await _0x3bc23f['json']();_0xacaea9=_0x5a5719['errorMsg']||_0x5a5719[_0xc8c906(0x1a5)]||_0x5a5719[_0xc8c906(0x1a3)];}catch{_0xacaea9=await _0x3bc23f[_0xc8c906(0x196)]()[_0xc8c906(0x151)](()=>undefined);}throw CliErrors[_0xc8c906(0x19e)](_0xacaea9||_0xc8c906(0x148)+_0x3bc23f['status'],_0xc8c906(0x1ab)+_0x4d801c);}return Buffer[_0xc8c906(0x15e)](await _0x3bc23f['arrayBuffer']());}catch(_0x1cbe6a){if(_0x1cbe6a instanceof Error&&_0x1cbe6a[_0xc8c906(0x1ad)]===_0xc8c906(0x181))throw CliErrors[_0xc8c906(0x19e)](_0xc8c906(0x19a)+_0x4d801c);throw _0x1cbe6a;}finally{clearTimeout(_0x3af75a);}}async function toolboxRequest(_0x23c632,_0x4027b8,_0x30e114={}){const _0x1ffd9e=a66_0x525c,{method:method=_0x1ffd9e(0x1b3),headers:headers={},timeout:timeout=0x7530}=_0x30e114,_0x28bdea=_activeAK;if(!_0x28bdea)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1ffd9e(0x1a8)]+'.');const _0x384665=getApiDomain()[_0x1ffd9e(0x191)](/\/$/,''),_0x5d26ea=new URL(_0x23c632,_0x384665+_0x1ffd9e(0x19f));if(_0x4027b8)for(const [_0xda9b9c,_0x1d9f82]of Object[_0x1ffd9e(0x18e)](_0x4027b8)){_0x1d9f82!==undefined&&_0x1d9f82!==null&&_0x5d26ea[_0x1ffd9e(0x1bb)][_0x1ffd9e(0x194)](_0xda9b9c,String(_0x1d9f82));}const _0x40a5b8=new AbortController(),_0x317c65=setTimeout(()=>_0x40a5b8['abort'](),timeout);try{const _0x51736e=await fetch(_0x5d26ea,{'method':method,'headers':{'Content-Type':_0x1ffd9e(0x14c),'X-Invoke-Source':PRODUCT_CONFIG[_0x1ffd9e(0x161)],'X-User-AK':_0x28bdea,...headers},'signal':_0x40a5b8[_0x1ffd9e(0x178)]});let _0x212379;try{_0x212379=await _0x51736e[_0x1ffd9e(0x18f)]();}catch{throw CliErrors['apiError'](_0x1ffd9e(0x174)+_0x51736e['status']+')',_0x51736e[_0x1ffd9e(0x1a9)]>=0x190?_0x1ffd9e(0x16b):undefined);}if(!_0x51736e['ok']){const _0x19e24d=_0x212379&&typeof _0x212379===_0x1ffd9e(0x193)?_0x212379:{};throw CliErrors[_0x1ffd9e(0x19e)](_0x19e24d[_0x1ffd9e(0x15a)]||_0x19e24d[_0x1ffd9e(0x1a5)]||_0x1ffd9e(0x16e)+_0x51736e[_0x1ffd9e(0x1a9)],_0x19e24d['errorCode']?_0x1ffd9e(0x1ae)+_0x19e24d['errorCode']:undefined);}if(_0x212379&&typeof _0x212379===_0x1ffd9e(0x193)&&_0x1ffd9e(0x1b2)in _0x212379&&typeof _0x212379[_0x1ffd9e(0x1b2)]===_0x1ffd9e(0x175)){const _0x2aff06=_0x212379;if(!_0x2aff06[_0x1ffd9e(0x1b2)])throw CliErrors[_0x1ffd9e(0x19e)](_0x2aff06[_0x1ffd9e(0x15a)]||_0x2aff06[_0x1ffd9e(0x1a5)]||_0x1ffd9e(0x1a1),_0x2aff06[_0x1ffd9e(0x1a3)]?_0x1ffd9e(0x1ae)+_0x2aff06[_0x1ffd9e(0x1a3)]:undefined);return _0x2aff06[_0x1ffd9e(0x1aa)];}return _0x212379;}catch(_0x5365da){if(_0x5365da instanceof Error&&_0x5365da[_0x1ffd9e(0x1ad)]===_0x1ffd9e(0x181))throw CliErrors[_0x1ffd9e(0x19e)](_0x1ffd9e(0x19a)+_0x5d26ea[_0x1ffd9e(0x183)]());throw _0x5365da;}finally{clearTimeout(_0x317c65);}}async function skillHubJsonRequest(_0x1c82aa,_0x5293d5={}){const _0x59d980=a66_0x525c,{method:method=_0x59d980(0x1b3),query:_0x1ad9c1,body:_0x177897,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5293d5,_0x19eecd=_activeAK;if(!_0x19eecd)throw CliErrors[_0x59d980(0x185)](_0x59d980(0x165)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x41ac83=getSkillHubDomain()[_0x59d980(0x191)](/\/$/,''),_0x32e37d=new URL(_0x1c82aa,_0x41ac83+'/');if(_0x1ad9c1)for(const [_0x4d119d,_0x562a5b]of Object[_0x59d980(0x18e)](_0x1ad9c1)){_0x562a5b!==undefined&&_0x562a5b!==null&&_0x32e37d[_0x59d980(0x1bb)][_0x59d980(0x194)](_0x4d119d,String(_0x562a5b));}const _0x41d41f=new AbortController(),_0x4ea4e8=setTimeout(()=>_0x41d41f['abort'](),timeout);try{const _0x14f405=await fetch(_0x32e37d[_0x59d980(0x183)](),{'method':method,'headers':{'Accept':_0x59d980(0x14c),'X-Invoke-Source':PRODUCT_CONFIG[_0x59d980(0x161)],'X-User-AK':_0x19eecd,...headers},'body':_0x177897,'signal':_0x41d41f['signal']});let _0x1332ff;try{_0x1332ff=await _0x14f405[_0x59d980(0x18f)]();}catch{if(allowNotFound&&_0x14f405['status']===0x194)return undefined;throw CliErrors['apiError'](_0x59d980(0x147)+_0x14f405['status']+')',_0x14f405['status']>=0x190?_0x59d980(0x16b):undefined);}if(allowNotFound&&(_0x14f405[_0x59d980(0x1a9)]===0x194||_0x1332ff?.[_0x59d980(0x168)]===0x194))return undefined;const _0x191e47=!_0x14f405['ok']||_0x1332ff?.['success']===![]||typeof _0x1332ff?.['code']==='number'&&_0x1332ff[_0x59d980(0x168)]>=0x190;if(_0x191e47)throw CliErrors[_0x59d980(0x19e)](_0x1332ff?.[_0x59d980(0x15a)]||_0x1332ff?.[_0x59d980(0x1a5)]||_0x1332ff?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x14f405[_0x59d980(0x1a9)],_0x1332ff?.[_0x59d980(0x1a3)]?_0x59d980(0x153)+_0x1332ff['errorCode']:undefined);return _0x1332ff?.[_0x59d980(0x1aa)]??_0x1332ff;}catch(_0x1c567e){if(_0x1c567e instanceof Error&&_0x1c567e['name']==='AbortError')throw CliErrors[_0x59d980(0x19e)]('Request\x20timeout:\x20'+_0x32e37d[_0x59d980(0x183)]());throw _0x1c567e;}finally{clearTimeout(_0x4ea4e8);}}function a66_0x4489(){const _0xe3f2f0=['208196qIDTlw','/client/runtime-bff/personal/create','warnings','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','boolean','/client/bff/query/','Missing\x20Skill\x20package\x20payload.','signal','resolvedSlug','346634OUwUny','resolvedVersion','personal','skillCode','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','artifactType','skillName','AbortError','/api/cli/v1/skills/','toString','packageBase64','authRequired','scope','PRIVATE','string','/publish','875272KfbYkO','/execute?appCode=','/client/artifact/','/download','entries','json','source','replace','filter','object','set','tags','text','validation','slug','1264440yREzgz','Request\x20timeout:\x20','trim','isArray','/api/runtime/v1/namespaces/','apiError','/api/node-toolbox/','tableData','Toolbox\x20API\x20error','Knowledge-base\x20entry\x20not\x20found:\x20id=','errorCode','effective','message','abort','/client/runtime-bff/personal/','newConfigFileName','status','data','Download\x20failed:\x20','/client/sql/query','name','Toolbox\x20error\x20code:\x20','?appCode=','/client/user/loginUserInfo','16438239hbZAcd','success','GET','.zip','skill','errors','appCode','15EMyhKv','appName','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','searchParams','2767565SElMJB','headlineVersion','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/knowledge-base/search','file','summary','Personal\x20BFF\x20not\x20found:\x20id=','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','API\x20error:\x20','/versions/','map','POST','application/json','valid','confirmWarnings','namespace','version','catch','BFF\x20script\x20not\x20found:\x20id=','SkillHub\x20error\x20code:\x20','35IyrLDL','items','/client/artifact/create','sqlCode','NAMESPACE_ONLY','markdown','errorMsg','/update','favorite','base64','from','/client/knowledge-base/personal/list?appCode=','/client/knowledge-base/personal/create','invokeSource','SQL\x20query\x20not\x20found:\x20','company','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Configure\x20accessKey\x20in\x20','7374036wbGTVU','application/zip','code','topK','content','Check\x20your\x20credentials\x20and\x20try\x20again.','visibility','all','Toolbox\x20API\x20error:\x20','/client/knowledge-base/personal/','description'];a66_0x4489=function(){return _0xe3f2f0;};return a66_0x4489();}async function skillHubBinaryRequest(_0x385cbd,_0x1ed9b6={}){const _0x121046=a66_0x525c,{query:_0x1bef57,headers:headers={},timeout:timeout=0x7530}=_0x1ed9b6,_0x5a973d=_activeAK;if(!_0x5a973d)throw CliErrors[_0x121046(0x185)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x121046(0x1a8)]+'.');const _0x33ff4b=getSkillHubDomain()[_0x121046(0x191)](/\/$/,''),_0x584d80=new URL(_0x385cbd,_0x33ff4b+'/');if(_0x1bef57)for(const [_0x4aba3c,_0x29a4bb]of Object[_0x121046(0x18e)](_0x1bef57)){_0x29a4bb!==undefined&&_0x29a4bb!==null&&_0x584d80[_0x121046(0x1bb)][_0x121046(0x194)](_0x4aba3c,String(_0x29a4bb));}const _0x508ec7=new AbortController(),_0x9fe702=setTimeout(()=>_0x508ec7['abort'](),timeout);try{const _0x1c6976=await fetch(_0x584d80[_0x121046(0x183)](),{'method':_0x121046(0x1b3),'headers':{'Accept':'application/octet-stream','X-Invoke-Source':PRODUCT_CONFIG[_0x121046(0x161)],'X-User-AK':_0x5a973d,...headers},'signal':_0x508ec7[_0x121046(0x178)]});if(!_0x1c6976['ok']){let _0x5d5355;try{const _0x2b18fd=await _0x1c6976[_0x121046(0x18f)]();_0x5d5355=_0x2b18fd[_0x121046(0x15a)]||_0x2b18fd[_0x121046(0x1a5)]||_0x2b18fd['msg']||_0x2b18fd[_0x121046(0x1a3)];}catch{_0x5d5355=await _0x1c6976[_0x121046(0x196)]()[_0x121046(0x151)](()=>undefined);}throw CliErrors[_0x121046(0x19e)](_0x5d5355||'SkillHub\x20API\x20error:\x20'+_0x1c6976[_0x121046(0x1a9)],_0x121046(0x1ab)+_0x584d80['toString']());}return Buffer[_0x121046(0x15e)](await _0x1c6976['arrayBuffer']());}catch(_0x50de40){if(_0x50de40 instanceof Error&&_0x50de40['name']===_0x121046(0x181))throw CliErrors['apiError'](_0x121046(0x19a)+_0x584d80['toString']());throw _0x50de40;}finally{clearTimeout(_0x9fe702);}}export async function getBffScriptInfo(_0x145b5b){const _0xce9965=a66_0x525c,_0x2dbb72=await apiRequest(_0xce9965(0x176)+_0x145b5b);if(!_0x2dbb72[_0xce9965(0x1aa)])throw CliErrors[_0xce9965(0x197)](_0xce9965(0x152)+_0x145b5b);return _0x2dbb72['data'];}export async function getSqlQueryInfo(_0xc53e43,_0x5c5e03){const _0x4f93a8=a66_0x525c,_0x803584=await apiRequest(_0x4f93a8(0x1ac),{'method':_0x4f93a8(0x14b),'body':{'appCode':_0xc53e43,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5c5e03}}),_0x31ef02=_0x803584[_0x4f93a8(0x1aa)],_0x2252fa=_0x31ef02&&typeof _0x31ef02===_0x4f93a8(0x193)&&_0x4f93a8(0x1a0)in _0x31ef02?_0x31ef02['tableData']?.[0x0]:_0x31ef02&&typeof _0x31ef02==='object'&&_0x4f93a8(0x157)in _0x31ef02?_0x31ef02:undefined;if(!_0x2252fa)throw CliErrors[_0x4f93a8(0x197)](_0x4f93a8(0x162)+_0x5c5e03);return _0x2252fa;}function isRemoteAppItem(_0x5bda90){const _0x4f6c10=a66_0x525c;return!!_0x5bda90&&typeof _0x5bda90===_0x4f6c10(0x193)&&typeof _0x5bda90[_0x4f6c10(0x1b7)]==='string'&&typeof _0x5bda90[_0x4f6c10(0x1b9)]===_0x4f6c10(0x188);}function extractRemoteAppItems(_0x31c706){const _0x25eda2=a66_0x525c;if(Array[_0x25eda2(0x19c)](_0x31c706))return _0x31c706[_0x25eda2(0x192)](isRemoteAppItem);if(!_0x31c706||typeof _0x31c706!==_0x25eda2(0x193))throw CliErrors[_0x25eda2(0x19e)](_0x25eda2(0x164));const _0x58b7a6=_0x31c706;if(Array['isArray'](_0x58b7a6['tableData']))return _0x58b7a6['tableData'][_0x25eda2(0x192)](isRemoteAppItem);if(_0x58b7a6[_0x25eda2(0x1aa)]&&typeof _0x58b7a6[_0x25eda2(0x1aa)]==='object'){const _0x5ae630=_0x58b7a6['data'];if(Array[_0x25eda2(0x19c)](_0x5ae630[_0x25eda2(0x1a0)]))return _0x5ae630[_0x25eda2(0x1a0)][_0x25eda2(0x192)](isRemoteAppItem);}throw CliErrors['apiError'](_0x25eda2(0x1ba));}export async function getMyApps(){const _0x5a2e97=a66_0x525c,_0x2f6c28=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x2f6c28[_0x5a2e97(0x1aa)]);}export async function getLoginUserInfo(){const _0x3d4677=a66_0x525c,_0x4abc45=await apiRequest(_0x3d4677(0x1b0));if(!_0x4abc45['data']||typeof _0x4abc45['data']!=='object'||Array['isArray'](_0x4abc45[_0x3d4677(0x1aa)]))throw CliErrors[_0x3d4677(0x19e)](_0x3d4677(0x1be));return _0x4abc45[_0x3d4677(0x1aa)];}export async function listDatasets(_0x598188,_0x53d878){const _0x2d3dce=a66_0x525c,_0x3a8ab4=await apiRequest('/client/dataset/list',{'method':_0x2d3dce(0x14b),'body':{'appCode':_0x598188,..._0x53d878?.[_0x2d3dce(0x168)]&&{'code':_0x53d878[_0x2d3dce(0x168)]},..._0x53d878?.['name']&&{'name':_0x53d878[_0x2d3dce(0x1ad)]}}});return extractList(_0x3a8ab4[_0x2d3dce(0x1aa)]);}export async function getDatasetDetail(_0x926594){const _0x2b02ca=a66_0x525c,_0x3fef9e=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x926594));return _0x3fef9e[_0x2b02ca(0x1aa)];}export async function getDatasetSdkUsageDoc(_0x1f3e2a,_0x2ab8fc){const _0x383a71=a66_0x525c,_0x134ffa=await toolboxRequest('api-doc-generator',{'datasetCode':_0x1f3e2a,'appCode':_0x2ab8fc});return typeof _0x134ffa?.['markdown']===_0x383a71(0x188)?_0x134ffa[_0x383a71(0x159)]:'';}export async function listRuntimeArtifacts(_0x3be898,_0x424706){const _0x2365bc=a66_0x525c,_0x110f7b=new URLSearchParams({'appCode':_0x3be898});if(_0x424706?.[_0x2365bc(0x17f)])_0x110f7b[_0x2365bc(0x194)]('artifactType',_0x424706[_0x2365bc(0x17f)]);if(_0x424706?.[_0x2365bc(0x190)])_0x110f7b[_0x2365bc(0x194)]('source',_0x424706[_0x2365bc(0x190)]);if(_0x424706?.['favorite']!==undefined)_0x110f7b['set'](_0x2365bc(0x15c),String(_0x424706[_0x2365bc(0x15c)]));const _0x10c47a=await apiRequest('/client/artifact/list?'+_0x110f7b[_0x2365bc(0x183)]());return Array[_0x2365bc(0x19c)](_0x10c47a['data'])?_0x10c47a[_0x2365bc(0x1aa)]:[];}export async function getRuntimeArtifact(_0x5bdbe6,_0x239c75){const _0x13a363=a66_0x525c,_0x223eee=await apiRequest(_0x13a363(0x18c)+_0x5bdbe6+_0x13a363(0x1af)+encodeURIComponent(_0x239c75));if(!_0x223eee[_0x13a363(0x1aa)])throw CliErrors['validation']('Artifact\x20not\x20found:\x20id='+_0x5bdbe6);return _0x223eee[_0x13a363(0x1aa)];}export async function createRuntimeArtifact(_0x3fe24b,_0x5a8b8c){const _0x15199f=a66_0x525c,_0x7f40ea=await apiRequest(_0x15199f(0x156),{'method':_0x15199f(0x14b),'body':{'appCode':_0x3fe24b,..._0x5a8b8c}});return _0x7f40ea[_0x15199f(0x1aa)];}export async function updateRuntimeArtifact(_0x3fae55,_0x192aab,_0x353b70){const _0x3f5ff3=a66_0x525c,_0x233b34=await apiRequest(_0x3f5ff3(0x18c)+_0x3fae55+_0x3f5ff3(0x15b),{'method':'POST','body':{'appCode':_0x192aab,..._0x353b70}});return _0x233b34[_0x3f5ff3(0x1aa)];}export async function listPersonalBffs(_0x2b8d97){const _0x109eeb=a66_0x525c,_0x3519be=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x2b8d97));return Array[_0x109eeb(0x19c)](_0x3519be[_0x109eeb(0x1aa)])?_0x3519be[_0x109eeb(0x1aa)]:[];}export async function getPersonalBff(_0xd68ff2,_0x155eb3){const _0x21e3cb=a66_0x525c,_0x28e34e=await apiRequest(_0x21e3cb(0x1a7)+_0xd68ff2+_0x21e3cb(0x1af)+encodeURIComponent(_0x155eb3));if(!_0x28e34e[_0x21e3cb(0x1aa)])throw CliErrors[_0x21e3cb(0x197)](_0x21e3cb(0x146)+_0xd68ff2);return _0x28e34e[_0x21e3cb(0x1aa)];}export async function createPersonalBff(_0x4bcb59,_0x2d74d1){const _0x5c558c=a66_0x525c,_0x5013ca=await apiRequest(_0x5c558c(0x172),{'method':_0x5c558c(0x14b),'body':{'appCode':_0x4bcb59,..._0x2d74d1}});return _0x5013ca[_0x5c558c(0x1aa)];}export async function updatePersonalBff(_0x244141,_0x3c0385,_0x3410b9){const _0x333024=a66_0x525c,_0x470a3f=await apiRequest(_0x333024(0x1a7)+_0x244141+_0x333024(0x15b),{'method':_0x333024(0x14b),'body':{'appCode':_0x3c0385,..._0x3410b9}});return _0x470a3f['data'];}export async function executePersonalBff(_0x4fbe98,_0x33609a,_0x4ca0ac){const _0x54f1fe=a66_0x525c,_0x3bd18b=await apiRequest(_0x54f1fe(0x1a7)+_0x4fbe98+_0x54f1fe(0x18b)+encodeURIComponent(_0x33609a),{'method':_0x54f1fe(0x14b),'body':_0x4ca0ac});return _0x3bd18b[_0x54f1fe(0x1aa)];}export async function listPersonalKnowledgeBaseItems(_0x373ce1){const _0x46f505=a66_0x525c,_0x3541fb=await apiRequest(_0x46f505(0x15f)+encodeURIComponent(_0x373ce1));return Array[_0x46f505(0x19c)](_0x3541fb[_0x46f505(0x1aa)])?_0x3541fb[_0x46f505(0x1aa)]:[];}export async function getPersonalKnowledgeBaseItem(_0x1f2f40,_0xfcace0){const _0x196402=a66_0x525c,_0x433a05=await apiRequest(_0x196402(0x16f)+_0x1f2f40+'?appCode='+encodeURIComponent(_0xfcace0));if(!_0x433a05[_0x196402(0x1aa)])throw CliErrors[_0x196402(0x197)](_0x196402(0x1a2)+_0x1f2f40);return _0x433a05[_0x196402(0x1aa)];}export async function createPersonalKnowledgeBaseItem(_0x4b7dbf,_0x5b8222){const _0x2d690d=a66_0x525c,_0x4ed2df=await apiRequest(_0x2d690d(0x160),{'method':'POST','body':{'appCode':_0x4b7dbf,..._0x5b8222}});return _0x4ed2df[_0x2d690d(0x1aa)];}export async function updatePersonalKnowledgeBaseItem(_0x56631d,_0x40728f,_0x55d854){const _0x59d4f5=a66_0x525c,_0x506c3e=await apiRequest(_0x59d4f5(0x16f)+_0x56631d+_0x59d4f5(0x15b),{'method':_0x59d4f5(0x14b),'body':{'appCode':_0x40728f,..._0x55d854}});return _0x506c3e['data'];}export async function searchKnowledgeBase(_0x56e597,_0x438a58){const _0x35898a=a66_0x525c,_0x18f620=await apiRequest(_0x35898a(0x1bf),{'method':_0x35898a(0x14b),'body':{'appCode':_0x56e597,'query':_0x438a58['query'],..._0x438a58[_0x35898a(0x169)]!==undefined?{'topK':_0x438a58[_0x35898a(0x169)]}:{}}});return Array[_0x35898a(0x19c)](_0x18f620[_0x35898a(0x1aa)])?_0x18f620[_0x35898a(0x1aa)]:[];}export async function getRuntimeSkillByCode(_0x195fed,_0x4f2d53){const _0x2585d3=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x195fed)+'/'+encodeURIComponent(_0x4f2d53),{'allowNotFound':!![]});return _0x2585d3?skillHubRuntimeDetailToRuntimeSkill(_0x2585d3):undefined;}function a66_0x525c(_0x6ebb8b,_0x11687b){_0x6ebb8b=_0x6ebb8b-0x145;const _0x4489c6=a66_0x4489();let _0x525c18=_0x4489c6[_0x6ebb8b];return _0x525c18;}export async function listRuntimeSkills(_0x116d9c){const _0x304eca=a66_0x525c,_0x2b7b23=await skillHubJsonRequest(_0x304eca(0x19d)+encodeURIComponent(_0x116d9c['appCode'])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x116d9c[_0x304eca(0x1b7)],_0x2b7b23,_0x116d9c[_0x304eca(0x186)]??_0x304eca(0x16d),_0x116d9c[_0x304eca(0x168)]);}export async function listPersonalRuntimeSkills(_0x5326ec){const _0x2c75a5=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x5326ec,'scope':_0x2c75a5(0x17c)}))[_0x2c75a5(0x17c)];}export async function listCompanyRuntimeSkills(_0x179d21){const _0x357ac1=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x179d21,'scope':_0x357ac1(0x163)}))[_0x357ac1(0x163)];}export async function listVisibleRuntimeSkills(_0x4ae616){const _0x59fa03=a66_0x525c;return(await listRuntimeSkills({'appCode':_0x4ae616,'scope':_0x59fa03(0x16d)}))[_0x59fa03(0x1a4)];}export async function createPersonalRuntimeSkill(_0x253ac5,_0x14aec7){const _0x5befa9=a66_0x525c;return publishRuntimeSkill(_0x253ac5,_0x14aec7,{'visibility':_0x5befa9(0x187)});}export async function updatePersonalRuntimeSkill(_0x47052d,_0x46da36,_0x1b55d8){const _0x187279=a66_0x525c;return publishRuntimeSkill(_0x46da36,{..._0x1b55d8,'skillCode':_0x1b55d8[_0x187279(0x17d)]??_0x47052d},{'visibility':_0x187279(0x187)});}export async function publishCompanyRuntimeSkill(_0x2a30f0,_0x58c95e,_0x45bcc8={}){const _0x480564=a66_0x525c;return publishRuntimeSkill(_0x2a30f0,_0x58c95e,{'visibility':_0x480564(0x158),'confirmWarnings':_0x45bcc8[_0x480564(0x14e)]});}export async function validateRuntimeSkillPublish(_0x2bbe55,_0x5080bf,_0x4ac833){const _0x2f50d7=a66_0x525c,_0x330514=buildRuntimeSkillPublishForm(_0x5080bf,_0x4ac833[_0x2f50d7(0x16c)]),_0x2aca29=await skillHubJsonRequest(_0x2f50d7(0x182)+encodeURIComponent(_0x2bbe55)+'/publish/validate',{'method':'POST','body':_0x330514});return{'valid':_0x2aca29[_0x2f50d7(0x14d)]===!![],'errors':Array[_0x2f50d7(0x19c)](_0x2aca29[_0x2f50d7(0x1b6)])?_0x2aca29['errors']:[],'warnings':Array[_0x2f50d7(0x19c)](_0x2aca29['warnings'])?_0x2aca29[_0x2f50d7(0x173)]:[],'resolvedSlug':_0x2aca29[_0x2f50d7(0x179)],'resolvedVersion':_0x2aca29[_0x2f50d7(0x17b)]};}export async function downloadRuntimeSkillPackage(_0x2fec1a,_0x316b8b,_0x366717,_0x1f3567){const _0x141fe1=a66_0x525c;void _0x2fec1a;const _0xb32d38=_0x1f3567?_0x141fe1(0x182)+encodeURIComponent(_0x366717)+'/'+encodeURIComponent(_0x316b8b)+_0x141fe1(0x149)+encodeURIComponent(_0x1f3567)+_0x141fe1(0x18d):_0x141fe1(0x182)+encodeURIComponent(_0x366717)+'/'+encodeURIComponent(_0x316b8b)+_0x141fe1(0x18d);return skillHubBinaryRequest(_0xb32d38);}async function publishRuntimeSkill(_0x4d105b,_0x3bf0bb,_0x1e7ee9){const _0x2b6d91=a66_0x525c,_0x30b76f=buildRuntimeSkillPublishForm(_0x3bf0bb,_0x1e7ee9[_0x2b6d91(0x16c)]),_0x363681=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4d105b)+_0x2b6d91(0x189),{'method':_0x2b6d91(0x14b),'query':{'confirmWarnings':_0x1e7ee9['confirmWarnings']===!![]?!![]:undefined},'body':_0x30b76f});return{'appCode':_0x363681['namespace']??_0x4d105b,'skillCode':_0x363681[_0x2b6d91(0x198)]??_0x3bf0bb[_0x2b6d91(0x17d)]??'','skillName':_0x3bf0bb[_0x2b6d91(0x180)]??_0x363681[_0x2b6d91(0x198)]??_0x3bf0bb[_0x2b6d91(0x17d)],'description':_0x3bf0bb[_0x2b6d91(0x170)],'scope':skillHubVisibilityToScope(_0x363681[_0x2b6d91(0x16c)]??_0x1e7ee9[_0x2b6d91(0x16c)])??_0x2b6d91(0x17c),'version':_0x363681[_0x2b6d91(0x150)]??_0x3bf0bb['version'],'tags':_0x3bf0bb[_0x2b6d91(0x195)],'content':_0x3bf0bb[_0x2b6d91(0x16a)]};}function buildRuntimeSkillPublishForm(_0x149146,_0x5ef34e){const _0xa81364=a66_0x525c,_0x415f7d=new FormData();return _0x415f7d[_0xa81364(0x194)](_0xa81364(0x1c0),runtimeSkillPackageFile(_0x149146)),_0x415f7d[_0xa81364(0x194)](_0xa81364(0x16c),_0x5ef34e),_0x415f7d;}function runtimeSkillPackageFile(_0x5c6648){const _0x5ecf42=a66_0x525c;if(!_0x5c6648['packageBase64'])throw CliErrors['validation'](_0x5ecf42(0x177));const _0x5c1ef3=Buffer[_0x5ecf42(0x15e)](_0x5c6648[_0x5ecf42(0x184)],_0x5ecf42(0x15d)),_0x55e06c=new Blob([_0x5c1ef3],{'type':_0x5ecf42(0x167)}),_0x5bdbf9=(_0x5c6648[_0x5ecf42(0x17d)]||_0x5ecf42(0x1b5))+_0x5ecf42(0x1b4);if(typeof File!=='undefined')return new File([_0x55e06c],_0x5bdbf9,{'type':_0x5ecf42(0x167)});return _0x55e06c;}function normalizeSkillHubRuntimeListResponse(_0x5e3b7d,_0x45aae0,_0x475c3d,_0x12a032){const _0x57aad4=a66_0x525c,_0x4f0af6=Array[_0x57aad4(0x19c)](_0x45aae0)?_0x45aae0:Array[_0x57aad4(0x19c)](_0x45aae0?.[_0x57aad4(0x155)])?_0x45aae0['items']:[],_0x508101=_0x12a032?.[_0x57aad4(0x19b)](),_0x55f137=_0x4f0af6[_0x57aad4(0x192)](_0x152bc5=>!_0x508101||_0x152bc5['slug']===_0x508101)[_0x57aad4(0x14a)](skillHubRuntimeItemToRuntimeSkill)[_0x57aad4(0x192)](_0x598520=>Boolean(_0x598520)),_0x38d282=_0x55f137[_0x57aad4(0x192)](_0x4c25c1=>_0x4c25c1[_0x57aad4(0x186)]==='personal'),_0x197538=_0x55f137['filter'](_0x174963=>_0x174963['scope']===_0x57aad4(0x163));return{'appCode':_0x5e3b7d,'personal':_0x475c3d===_0x57aad4(0x163)?[]:_0x38d282,'company':_0x475c3d===_0x57aad4(0x17c)?[]:_0x197538,'effective':buildEffectiveRuntimeSkills(_0x38d282,_0x197538,_0x475c3d)};}function skillHubRuntimeItemToRuntimeSkill(_0x1630cd){const _0x4079cd=a66_0x525c,_0x41f3b9=_0x1630cd[_0x4079cd(0x198)]?.[_0x4079cd(0x19b)](),_0x373bc8=skillHubVisibilityToScope(_0x1630cd[_0x4079cd(0x16c)]);if(!_0x41f3b9||!_0x373bc8)return undefined;return{'id':_0x1630cd['id'],'appCode':_0x1630cd[_0x4079cd(0x14f)],'skillCode':_0x41f3b9,'skillName':_0x1630cd['displayName']??_0x41f3b9,'description':_0x1630cd[_0x4079cd(0x145)],'scope':_0x373bc8,'version':skillHubRuntimeItemVersion(_0x1630cd),'status':_0x1630cd[_0x4079cd(0x1a9)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x5872f2){const _0x19809d=a66_0x525c,_0x2bfefe=_0x5872f2[_0x19809d(0x198)]?.['trim']();if(!_0x2bfefe)return undefined;return{'id':_0x5872f2['id'],'appCode':_0x5872f2[_0x19809d(0x14f)],'skillCode':_0x2bfefe,'skillName':_0x5872f2['displayName']??_0x2bfefe,'description':_0x5872f2[_0x19809d(0x145)],'scope':skillHubVisibilityToScope(_0x5872f2[_0x19809d(0x16c)])??_0x5872f2[_0x19809d(0x16c)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x5872f2),'status':_0x5872f2[_0x19809d(0x1a9)]};}function skillHubVisibilityToScope(_0x5892fc){const _0x522c2c=a66_0x525c;if(_0x5892fc===_0x522c2c(0x187))return _0x522c2c(0x17c);if(_0x5892fc==='NAMESPACE_ONLY')return _0x522c2c(0x163);return undefined;}function skillHubRuntimeItemVersion(_0x492fc9){const _0x1d2593=a66_0x525c;return _0x492fc9['publishedVersion']?.['version']??_0x492fc9[_0x1d2593(0x1bd)]?.[_0x1d2593(0x150)]??_0x492fc9['ownerPreviewVersion']?.[_0x1d2593(0x150)];}function buildEffectiveRuntimeSkills(_0x2a2c3f,_0x73d428,_0x3f1d7e){const _0x5c2e52=a66_0x525c;if(_0x3f1d7e===_0x5c2e52(0x17c))return _0x2a2c3f;if(_0x3f1d7e===_0x5c2e52(0x163))return _0x73d428;const _0x3cd14a=new Map();for(const _0x137de9 of _0x73d428){_0x3cd14a[_0x5c2e52(0x194)](_0x137de9[_0x5c2e52(0x17d)],_0x137de9);}for(const _0x2fa2e1 of _0x2a2c3f){_0x3cd14a[_0x5c2e52(0x194)](_0x2fa2e1[_0x5c2e52(0x17d)],_0x2fa2e1);}return Array['from'](_0x3cd14a['values']());}function normalizeRuntimeSkillListResponse(_0x1d9aae,_0xa2f894){const _0x41d49c=a66_0x525c;if(Array[_0x41d49c(0x19c)](_0xa2f894)){const _0x414735=_0xa2f894['filter'](_0x510738=>_0x510738[_0x41d49c(0x186)]===_0x41d49c(0x17c)),_0x430ff3=_0xa2f894[_0x41d49c(0x192)](_0x25955e=>_0x25955e[_0x41d49c(0x186)]===_0x41d49c(0x163));return{'appCode':_0x1d9aae,'personal':_0x414735,'company':_0x430ff3,'effective':[..._0x430ff3,..._0x414735]};}return{'appCode':_0xa2f894?.['appCode']??_0x1d9aae,'personal':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x17c)])?_0xa2f894[_0x41d49c(0x17c)]:[],'company':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x163)])?_0xa2f894[_0x41d49c(0x163)]:[],'effective':Array[_0x41d49c(0x19c)](_0xa2f894?.[_0x41d49c(0x1a4)])?_0xa2f894[_0x41d49c(0x1a4)]:[]};}
@@ -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 a67_0x30f2(_0x153601,_0x1a702e){_0x153601=_0x153601-0x101;const _0x3ebf19=a67_0x3ebf();let _0x30f23a=_0x3ebf19[_0x153601];return _0x30f23a;}(function(_0x193b84,_0x44d65b){const _0x5058c9=a67_0x30f2,_0x581a51=_0x193b84();while(!![]){try{const _0x469966=-parseInt(_0x5058c9(0x111))/0x1+-parseInt(_0x5058c9(0x10f))/0x2*(parseInt(_0x5058c9(0x102))/0x3)+-parseInt(_0x5058c9(0x112))/0x4*(parseInt(_0x5058c9(0x10d))/0x5)+-parseInt(_0x5058c9(0x110))/0x6*(-parseInt(_0x5058c9(0x103))/0x7)+-parseInt(_0x5058c9(0x10a))/0x8*(-parseInt(_0x5058c9(0x108))/0x9)+-parseInt(_0x5058c9(0x101))/0xa*(-parseInt(_0x5058c9(0x105))/0xb)+-parseInt(_0x5058c9(0x107))/0xc;if(_0x469966===_0x44d65b)break;else _0x581a51['push'](_0x581a51['shift']());}catch(_0x351b16){_0x581a51['push'](_0x581a51['shift']());}}}(a67_0x3ebf,0x6d5e2));function a67_0x3ebf(){const _0x476c8f=['has','dbId','580kDGWWv','set','321218yBhFih','988950mtPsIY','510770xlvTzK','7804lAWxKy','70OmlwJp','9iihLbB','35tUYHId','entries','1342462QQiwWO','db-','2322960crJtTc','11538qFtQFX','dbName','1136CwVbja'];a67_0x3ebf=function(){return _0x476c8f;};return a67_0x3ebf();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x4e2883){const _0x4d0764=a67_0x30f2;if(cache[_0x4d0764(0x10b)](_0x4e2883))return cache['get'](_0x4e2883);const _0x1a0ac7=await listDatasets(_0x4e2883),_0x5a0b9f=new Map();for(const _0x522c22 of _0x1a0ac7){const _0x1173ba=_0x522c22['dbtableConfig'];_0x1173ba?.[_0x4d0764(0x10c)]!=null&&_0x5a0b9f[_0x4d0764(0x10e)](_0x1173ba[_0x4d0764(0x10c)],_0x1173ba[_0x4d0764(0x109)]??_0x4d0764(0x106)+_0x1173ba[_0x4d0764(0x10c)]);}const _0x53007d=[..._0x5a0b9f[_0x4d0764(0x104)]()]['map'](([_0x1adee7,_0x1b2931])=>({'dbId':_0x1adee7,'dbName':_0x1b2931}));return cache['set'](_0x4e2883,_0x53007d),_0x53007d;}export async function getDbName(_0x51278c,_0x2a50be){try{const _0x462c1f=await listDatabases(_0x51278c);return _0x462c1f['find'](_0x3c27fb=>_0x3c27fb['dbId']===_0x2a50be)?.['dbName'];}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(_0x1b3fd4,_0x5e99a1){const _0xcbe594=a68_0x3a05,_0x22b130=_0x1b3fd4();while(!![]){try{const _0x1082b3=parseInt(_0xcbe594(0x102))/0x1+-parseInt(_0xcbe594(0xf2))/0x2*(parseInt(_0xcbe594(0xf3))/0x3)+parseInt(_0xcbe594(0xfe))/0x4+parseInt(_0xcbe594(0xf6))/0x5*(parseInt(_0xcbe594(0xfd))/0x6)+parseInt(_0xcbe594(0x100))/0x7*(-parseInt(_0xcbe594(0x115))/0x8)+-parseInt(_0xcbe594(0x113))/0x9*(parseInt(_0xcbe594(0x116))/0xa)+parseInt(_0xcbe594(0x107))/0xb;if(_0x1082b3===_0x5e99a1)break;else _0x22b130['push'](_0x22b130['shift']());}catch(_0x5198cc){_0x22b130['push'](_0x22b130['shift']());}}}(a68_0xbf81,0x756bc));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x50d219){const _0x217fa9=a68_0x3a05;_client=createClient({'appCode':_0x50d219[_0x217fa9(0x109)],'env':_0x50d219['env'],'authMode':_0x50d219['authMode'],..._0x50d219['accessKey']?{'accessKey':_0x50d219[_0x217fa9(0x108)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x217fa9(0x104)]}}});}function ensureClient(){const _0x4a080c=a68_0x3a05;if(!_client)throw new Error(_0x4a080c(0xff));return _client;}function normalizeAggregateParams(_0x421425){const _0x20642b=a68_0x3a05,_0xaee80e=_0x421425['aggregate'];if(_0xaee80e===undefined)return _0x421425;if(!Array[_0x20642b(0x103)](_0xaee80e))throw CliErrors[_0x20642b(0x101)](_0x20642b(0xf7));return{..._0x421425,'aggregate':_0xaee80e[_0x20642b(0x114)]((_0x52d2a5,_0xdf1020)=>{const _0x55a142=_0x20642b;if(!_0x52d2a5||typeof _0x52d2a5!=='object'||Array['isArray'](_0x52d2a5))throw CliErrors['validation'](_0x55a142(0x10c)+_0xdf1020+_0x55a142(0xf4));const _0x50e306=_0x52d2a5[_0x55a142(0xf8)]??_0x52d2a5['field'];if(typeof _0x50e306!=='string'||_0x50e306['trim']()==='')throw CliErrors[_0x55a142(0x101)](_0x55a142(0x10c)+_0xdf1020+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x2f3636={..._0x52d2a5,'column':_0x50e306};return delete _0x2f3636[_0x55a142(0x106)],_0x2f3636;})};}export async function executeData(_0x387256,_0x47e9a5,_0x551273){const _0x23e0c1=a68_0x3a05,_0x4fb51c=ensureClient(),_0x4101c1='dataset_'+_0x387256,_0x10cef7=_0x4fb51c['models'][_0x4101c1];if(!_0x10cef7||typeof _0x10cef7[_0x47e9a5]!==_0x23e0c1(0x111))throw new Error(_0x23e0c1(0x105)+_0x47e9a5+_0x23e0c1(0x10a)+_0x23e0c1(0x10f));if(_0x47e9a5==='batchCreate')return _0x10cef7[_0x23e0c1(0xfc)](parseBatchCreateItemsFromParams(_0x551273));const _0x3b0c0f=_0x551273!==undefined&&_0x551273!==null&&!Array[_0x23e0c1(0x103)](_0x551273)?_0x551273:{};switch(_0x47e9a5){case _0x23e0c1(0x10b):{const _0x4ab908=_0x3b0c0f['id'];if(_0x4ab908===undefined||_0x4ab908===null)throw new Error(_0x23e0c1(0xfa));return _0x10cef7[_0x23e0c1(0x10b)](_0x4ab908);}case _0x23e0c1(0xf5):{const {id:_0x171d77,..._0x20cfce}=_0x3b0c0f;if(_0x171d77===undefined||_0x171d77===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 _0x10cef7[_0x23e0c1(0xf5)](_0x171d77,_0x20cfce);}case _0x23e0c1(0x112):{const _0x26bee5=_0x3b0c0f['id'];if(_0x26bee5===undefined||_0x26bee5===null)throw new Error(_0x23e0c1(0x10d));return _0x10cef7['delete'](_0x26bee5);}case'aggregate':return _0x10cef7[_0x23e0c1(0x10e)](normalizeAggregateParams(_0x3b0c0f));default:return _0x10cef7[_0x47e9a5](_0x3b0c0f);}}function a68_0xbf81(){const _0x508a99=['14ZCDeqv','validation','239645eURwDW','isArray','invokeSource','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','field','16398635etLFIx','accessKey','appCode','\x22.\x20','getOne','data\x20aggregate\x20--params.aggregate[','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','aggregate','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','bff','function','delete','2269161YpySZM','map','3653784pqsWYo','30JYlCtC','1008836FbuhOq','3jvsyse',']\x20must\x20be\x20an\x20object.','update','21510zEzMbk','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','column','execute','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','sql','batchCreate','1164rkQzAg','360756mMMBMl','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.'];a68_0xbf81=function(){return _0x508a99;};return a68_0xbf81();}function a68_0x3a05(_0x206798,_0x5173ab){_0x206798=_0x206798-0xf2;const _0xbf8144=a68_0xbf81();let _0x3a0552=_0xbf8144[_0x206798];return _0x3a0552;}export async function executeSdkSql(_0xe6abe9,_0x24a886){const _0x2115fe=a68_0x3a05,_0x38edc0=ensureClient();return _0x38edc0[_0x2115fe(0xfb)][_0x2115fe(0xf9)]({'sqlCode':_0xe6abe9,'params':_0x24a886});}export async function executeSdkBff(_0x1d7f9b,_0xc3c063){const _0x1dd410=a68_0x3a05,_0x480b63=ensureClient();return _0x480b63[_0x1dd410(0x110)]['execute']({'scriptName':_0x1d7f9b,'params':_0xc3c063});}
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 a69_0x3103de=a69_0x3c28;(function(_0x539613,_0x238e2b){const _0x5d30f0=a69_0x3c28,_0xa52e35=_0x539613();while(!![]){try{const _0x14d8a5=-parseInt(_0x5d30f0(0xf8))/0x1*(-parseInt(_0x5d30f0(0xfb))/0x2)+parseInt(_0x5d30f0(0x103))/0x3+-parseInt(_0x5d30f0(0xf5))/0x4*(parseInt(_0x5d30f0(0x102))/0x5)+parseInt(_0x5d30f0(0xfc))/0x6+-parseInt(_0x5d30f0(0xf3))/0x7+parseInt(_0x5d30f0(0x100))/0x8*(parseInt(_0x5d30f0(0x101))/0x9)+-parseInt(_0x5d30f0(0xfa))/0xa*(parseInt(_0x5d30f0(0xf6))/0xb);if(_0x14d8a5===_0x238e2b)break;else _0xa52e35['push'](_0xa52e35['shift']());}catch(_0x547405){_0xa52e35['push'](_0xa52e35['shift']());}}}(a69_0x4283,0x51684));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a69_0x4283(){const _0x7164a6=['1535661KuRqoF','3168291KTrZKj','\x20auth\x20login`.','16dWDeEH','2141359hdQVhO','newConfigFileName','325631VkdcgV','\x20or\x20run\x20`','50QFkhVx','4ODlCrb','2906670gLbObU','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20file.','Configure\x20accessKey\x20in\x20','8fQRGPS','3472416aTOTJz','342520NdsxRX'];a69_0x4283=function(){return _0x7164a6;};return a69_0x4283();}export{CliError};function a69_0x3c28(_0x50db6f,_0x15376d){_0x50db6f=_0x50db6f-0xf3;const _0x428331=a69_0x4283();let _0x3c28ba=_0x428331[_0x50db6f];return _0x3c28ba;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a69_0x3103de(0xff)+PRODUCT_CONFIG[a69_0x3103de(0xf7)]+a69_0x3103de(0xf9)+CLI_BIN_NAME+a69_0x3103de(0xf4),'configMissingHint':a69_0x3103de(0xfd)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a69_0x3103de(0xf7)]+a69_0x3103de(0xfe)});
@@ -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(_0x1be33d,_0x21389c){var _0x5113d6=a70_0x3339,_0x17fbb7=_0x1be33d();while(!![]){try{var _0x243588=parseInt(_0x5113d6(0x11f))/0x1*(parseInt(_0x5113d6(0x122))/0x2)+parseInt(_0x5113d6(0x11c))/0x3*(parseInt(_0x5113d6(0x123))/0x4)+-parseInt(_0x5113d6(0x127))/0x5+parseInt(_0x5113d6(0x125))/0x6*(parseInt(_0x5113d6(0x121))/0x7)+-parseInt(_0x5113d6(0x124))/0x8*(-parseInt(_0x5113d6(0x120))/0x9)+-parseInt(_0x5113d6(0x11d))/0xa+-parseInt(_0x5113d6(0x126))/0xb*(parseInt(_0x5113d6(0x11e))/0xc);if(_0x243588===_0x21389c)break;else _0x17fbb7['push'](_0x17fbb7['shift']());}catch(_0x1ef34e){_0x17fbb7['push'](_0x17fbb7['shift']());}}}(a70_0x22f0,0xef130));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a70_0x3339(_0x459364,_0x47d8e1){_0x459364=_0x459364-0x11c;var _0x22f0a1=a70_0x22f0();var _0x33394e=_0x22f0a1[_0x459364];return _0x33394e;}import{buildAllFlags as a70_0x2025d7}from'@lovrabet/cli-framework';function a70_0x22f0(){var _0x358ad5=['3890700cfgCPN','2761000krfwuX','101844LMvlMY','1254109lIcfPv','36IsDuOS','21dtRzCh','2zkacPO','4gCPtnL','2839472hMNEEq','3047832OFkSaw','4565IPOifj','3586040aBxOYy'];a70_0x22f0=function(){return _0x358ad5;};return a70_0x22f0();}export function buildAllFlags(_0x19b698){return a70_0x2025d7(_0x19b698,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a70_0x385e(_0xb76092,_0x4f7f82){_0xb76092=_0xb76092-0x84;const _0x4098f8=a70_0x4098();let _0x385e6f=_0x4098f8[_0xb76092];return _0x385e6f;}(function(_0x4cf5bb,_0x1d18ea){const _0x142c70=a70_0x385e,_0x5ddd8f=_0x4cf5bb();while(!![]){try{const _0x9577a2=-parseInt(_0x142c70(0x90))/0x1*(-parseInt(_0x142c70(0x88))/0x2)+-parseInt(_0x142c70(0x84))/0x3*(-parseInt(_0x142c70(0x8c))/0x4)+-parseInt(_0x142c70(0x8f))/0x5*(-parseInt(_0x142c70(0x86))/0x6)+-parseInt(_0x142c70(0x89))/0x7+parseInt(_0x142c70(0x8b))/0x8+-parseInt(_0x142c70(0x8e))/0x9*(parseInt(_0x142c70(0x8a))/0xa)+parseInt(_0x142c70(0x85))/0xb*(parseInt(_0x142c70(0x87))/0xc);if(_0x9577a2===_0x1d18ea)break;else _0x5ddd8f['push'](_0x5ddd8f['shift']());}catch(_0x21ea88){_0x5ddd8f['push'](_0x5ddd8f['shift']());}}}(a70_0x4098,0xa7a7f));export function dryRun(_0x4a98db,_0xd596d2){const _0x3157b2={'method':_0x4a98db,'url':_0xd596d2},_0x1225a0={'body'(_0x2007e6){return _0x3157b2['body']=_0x2007e6,_0x1225a0;},'description'(_0x2b0db7){const _0x40a99f=a70_0x385e;return _0x3157b2[_0x40a99f(0x8d)]=_0x2b0db7,_0x1225a0;},'build'(){return{..._0x3157b2};}};return _0x1225a0;}function a70_0x4098(){const _0x522b78=['1103295dLgypU','16061Kpjaea','1984401TjMmDI','11fWCOKS','6oosLBt','755844YPLFrx','8wnnTbD','3058216EdWQGQ','353540aOXjfl','3541560XYTtpN','8fTCUAk','description','252inHogf'];a70_0x4098=function(){return _0x522b78;};return a70_0x4098();}
1
+ function a71_0xfc05(){const _0x2d9cfa=['212409JDEDRy','48594vXFdwt','body','description','50BAucgY','154mUoVSL','61096etJhRW','1322008FbmcgP','1151535BiIJJH','239674ytaXkS','285879DegPsi','27fdhjit','8YODNKk'];a71_0xfc05=function(){return _0x2d9cfa;};return a71_0xfc05();}(function(_0x189f8e,_0x11c295){const _0x6266fe=a71_0x4bb0,_0x4eb218=_0x189f8e();while(!![]){try{const _0x5858d=-parseInt(_0x6266fe(0x171))/0x1+parseInt(_0x6266fe(0x16e))/0x2*(parseInt(_0x6266fe(0x173))/0x3)+-parseInt(_0x6266fe(0x16f))/0x4+parseInt(_0x6266fe(0x170))/0x5+parseInt(_0x6266fe(0x176))/0x6*(parseInt(_0x6266fe(0x16d))/0x7)+-parseInt(_0x6266fe(0x174))/0x8*(parseInt(_0x6266fe(0x175))/0x9)+-parseInt(_0x6266fe(0x16c))/0xa*(-parseInt(_0x6266fe(0x172))/0xb);if(_0x5858d===_0x11c295)break;else _0x4eb218['push'](_0x4eb218['shift']());}catch(_0x4a931e){_0x4eb218['push'](_0x4eb218['shift']());}}}(a71_0xfc05,0x359c1));function a71_0x4bb0(_0x27d99f,_0x497610){_0x27d99f=_0x27d99f-0x16b;const _0xfc05f3=a71_0xfc05();let _0x4bb0a2=_0xfc05f3[_0x27d99f];return _0x4bb0a2;}export function dryRun(_0x20cd4f,_0x509e69){const _0x8dcfa1={'method':_0x20cd4f,'url':_0x509e69},_0x43e9ba={'body'(_0x5b6320){const _0x4e86c4=a71_0x4bb0;return _0x8dcfa1[_0x4e86c4(0x177)]=_0x5b6320,_0x43e9ba;},'description'(_0x5bd85a){const _0x88c77c=a71_0x4bb0;return _0x8dcfa1[_0x88c77c(0x16b)]=_0x5bd85a,_0x43e9ba;},'build'(){return{..._0x8dcfa1};}};return _0x43e9ba;}