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

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 (107) 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/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +3 -2
@@ -1 +1 @@
1
- const a52_0x5b897f=a52_0x1bd6;function a52_0x1bd6(_0x28d702,_0x251def){_0x28d702=_0x28d702-0x115;const _0x300051=a52_0x3000();let _0x1bd6d3=_0x300051[_0x28d702];return _0x1bd6d3;}(function(_0x3dcd7c,_0x5e232c){const _0x210926=a52_0x1bd6,_0x331cce=_0x3dcd7c();while(!![]){try{const _0x18a5a8=parseInt(_0x210926(0x11f))/0x1+parseInt(_0x210926(0x129))/0x2+parseInt(_0x210926(0x11b))/0x3+-parseInt(_0x210926(0x121))/0x4+parseInt(_0x210926(0x11c))/0x5*(parseInt(_0x210926(0x128))/0x6)+-parseInt(_0x210926(0x12a))/0x7+-parseInt(_0x210926(0x11a))/0x8;if(_0x18a5a8===_0x5e232c)break;else _0x331cce['push'](_0x331cce['shift']());}catch(_0x3c688e){_0x331cce['push'](_0x331cce['shift']());}}}(a52_0x3000,0xc5b78));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['env'],'importable':!![]},'format':{'description':a52_0x5b897f(0x11d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x5b897f(0x118)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x5b897f(0x122),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x5b897f(0x124),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x5b897f(0x125),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x5b897f(0x12b),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a52_0x5b897f(0x11e),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x5b897f(0x12e)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x5b897f(0x123)](CONFIG_FIELD_SCHEMAS)[a52_0x5b897f(0x120)](([,_0x5d5831])=>_0x5d5831['cliSettableTopLevel'])[a52_0x5b897f(0x116)](([_0x3b51c6])=>_0x3b51c6));function a52_0x3000(){const _0x167d98=['importable','format','has','9345080LiAAkJ','3014799ZDScln','548185ldSXRv','Default\x20output\x20format','Locale','442739qTpkSZ','filter','1870612SnbMgN','Override\x20user\x20domain','entries','Override\x20SkillHub\x20domain','Access\x20key\x20(client-ak\x20auth)','fromEntries',';\x20local\x20alias:\x20apps.<alias>.appcode','6keCKzM','2760232VkiWjZ','3442523lPPtgw','Risk\x20level','join','enumValues','locale','defaultValue','map'];a52_0x3000=function(){return _0x167d98;};return a52_0x3000();}export const CONFIG_ENUM_VALUES=Object[a52_0x5b897f(0x126)](Object[a52_0x5b897f(0x123)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x552124])=>_0x552124[a52_0x5b897f(0x12d)])[a52_0x5b897f(0x116)](([_0xd9c3cb,_0x823a4b])=>[_0xd9c3cb,[..._0x823a4b[a52_0x5b897f(0x12d)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x5b897f(0x123)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x457347])=>_0x457347[a52_0x5b897f(0x117)])[a52_0x5b897f(0x116)](([_0x4b8dd7])=>_0x4b8dd7);export function getConfigFieldSchema(_0x2a8cd8){return CONFIG_FIELD_SCHEMAS[_0x2a8cd8];}export function getConfigEnumValues(_0x5e3c41){return getConfigFieldSchema(_0x5e3c41)?.['enumValues'];}export function getConfigDefaultValue(_0x3f387e){const _0x3523fb=a52_0x5b897f;return getConfigFieldSchema(_0x3f387e)?.[_0x3523fb(0x115)];}export function isTopLevelConfigKey(_0x2f4a86){const _0x56abce=a52_0x5b897f;return TOP_LEVEL_CONFIG_KEYS[_0x56abce(0x119)](_0x2f4a86);}export function isLegacyCompatConfigKey(_0x2f636b){return getConfigFieldSchema(_0x2f636b)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x2aadce){const _0xc41518=a52_0x5b897f;return[..._0x2aadce][_0xc41518(0x12c)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x23a427=a52_0x5b897f;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x23a427(0x127);}export function buildAppProfileListFields(_0x5b443e){return{'env':_0x5b443e,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
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 +1 @@
1
- function a53_0x346f(_0x42eb82,_0x2eb880){_0x42eb82=_0x42eb82-0x16f;const _0x38fe75=a53_0x38fe();let _0x346f11=_0x38fe75[_0x42eb82];return _0x346f11;}const a53_0x4fc96d=a53_0x346f;(function(_0x67623d,_0x1a2b97){const _0x178e6b=a53_0x346f,_0x47e08c=_0x67623d();while(!![]){try{const _0x3a9875=-parseInt(_0x178e6b(0x173))/0x1*(parseInt(_0x178e6b(0x170))/0x2)+parseInt(_0x178e6b(0x179))/0x3+-parseInt(_0x178e6b(0x16f))/0x4*(-parseInt(_0x178e6b(0x174))/0x5)+-parseInt(_0x178e6b(0x171))/0x6+-parseInt(_0x178e6b(0x176))/0x7*(-parseInt(_0x178e6b(0x177))/0x8)+parseInt(_0x178e6b(0x175))/0x9+-parseInt(_0x178e6b(0x17a))/0xa;if(_0x3a9875===_0x1a2b97)break;else _0x47e08c['push'](_0x47e08c['shift']());}catch(_0x5ea79d){_0x47e08c['push'](_0x47e08c['shift']());}}}(a53_0x38fe,0xefb60));function a53_0x38fe(){const _0x500e2a=['8796lqBecg','2BTpKJd','7866408KhaBTd','PUBLISHED','401838MQIbWg','905HpkjJB','11913147tNoGtP','11921812Hryrtv','8NMJDkV','Published','905187fKjqQn','10317850arzWVR'];a53_0x38fe=function(){return _0x500e2a;};return a53_0x38fe();}export const APP_PUBLISH_STATUS={'Published':a53_0x4fc96d(0x172),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x4fc96d(0x178)];
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 +1 @@
1
- const a54_0x803b62=a54_0x3fc7;function a54_0x258a(){const _0x48f415=['2GHGaqD','126MSEqnG','20LrXoYO','104fUGYsP','ClientAk','1161873xBnptw','447805VhDxMm','client-ak','21mkNciC','60TWMqjR','436368puMcIU','8515045tjdhYD','2472168pjxhlV','796819TbfqAn','559996DqUBiS'];a54_0x258a=function(){return _0x48f415;};return a54_0x258a();}function a54_0x3fc7(_0x4b040e,_0x41612e){_0x4b040e=_0x4b040e-0x11f;const _0x258a5e=a54_0x258a();let _0x3fc75d=_0x258a5e[_0x4b040e];return _0x3fc75d;}(function(_0xbd6485,_0x461064){const _0x328c56=a54_0x3fc7,_0x2c967b=_0xbd6485();while(!![]){try{const _0x2ead5c=-parseInt(_0x328c56(0x127))/0x1*(-parseInt(_0x328c56(0x129))/0x2)+-parseInt(_0x328c56(0x122))/0x3*(parseInt(_0x328c56(0x128))/0x4)+-parseInt(_0x328c56(0x120))/0x5*(parseInt(_0x328c56(0x123))/0x6)+-parseInt(_0x328c56(0x12a))/0x7*(-parseInt(_0x328c56(0x124))/0x8)+parseInt(_0x328c56(0x11f))/0x9*(-parseInt(_0x328c56(0x12b))/0xa)+-parseInt(_0x328c56(0x125))/0xb+-parseInt(_0x328c56(0x126))/0xc*(-parseInt(_0x328c56(0x12c))/0xd);if(_0x2ead5c===_0x461064)break;else _0x2c967b['push'](_0x2c967b['shift']());}catch(_0x1cd948){_0x2c967b['push'](_0x2c967b['shift']());}}}(a54_0x258a,0x7ead3));export const AUTH_MODE={'ClientAk':a54_0x803b62(0x121)};export function isAuthMode(_0x3c559d){const _0x2599d7=a54_0x803b62;return _0x3c559d===AUTH_MODE[_0x2599d7(0x12d)];}
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 +1 @@
1
- const a55_0x4d6da9=a55_0x50b7;(function(_0xc41cbd,_0x3122fe){const _0x457614=a55_0x50b7,_0x277f0=_0xc41cbd();while(!![]){try{const _0x18d6f1=parseInt(_0x457614(0x121))/0x1*(parseInt(_0x457614(0x114))/0x2)+parseInt(_0x457614(0xfc))/0x3*(parseInt(_0x457614(0xfe))/0x4)+-parseInt(_0x457614(0x104))/0x5+-parseInt(_0x457614(0x109))/0x6*(parseInt(_0x457614(0xf7))/0x7)+-parseInt(_0x457614(0x120))/0x8+parseInt(_0x457614(0x10b))/0x9*(parseInt(_0x457614(0x11f))/0xa)+parseInt(_0x457614(0x11b))/0xb*(-parseInt(_0x457614(0x10f))/0xc);if(_0x18d6f1===_0x3122fe)break;else _0x277f0['push'](_0x277f0['shift']());}catch(_0x543875){_0x277f0['push'](_0x277f0['shift']());}}}(a55_0x5241,0xedc76));function a55_0x50b7(_0x40cf73,_0x38303f){_0x40cf73=_0x40cf73-0xf4;const _0x52416a=a55_0x5241();let _0x50b715=_0x52416a[_0x40cf73];return _0x50b715;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';function a55_0x5241(){const _0x4d1237=['Environment','Record\x20ID','meowKey','env','6067974TofOXx','Preview\x20operation\x20without\x20executing','verbose','SQL\x20query\x20code','15701230KMprOh','57064AQXeBF','1fzlYAJ','fromEntries','params','<expr>','cliDisplayName','appcode','dry-run','69244ORCkqG','sqlcode','Select\x20app\x20profile\x20by\x20name','nonInteractive','dryRun','2406kOiMbi','Skip\x20confirmation\x20for\x20high-risk\x20writes','872wXjheA','json\x20|\x20pretty\x20|\x20compress','Output\x20format','global','name','non-interactive','7023665Ryappf','string','Verbose\x20output','boolean','<code>','438qHQdLq','Clear\x20output','9ejqMEP','Force\x20non-interactive\x20mode\x20(CI)','app','yes','12pMJHgm','production\x20|\x20development\x20|\x20daily','Use\x20global\x20config\x20scope','Override\x20appcode','type','3829198jgWueh','help','clear'];a55_0x5241=function(){return _0x4d1237;};return a55_0x5241();}export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a55_0x4d6da9(0xf4)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a55_0x4d6da9(0xf5),'meowKey':'appcode','type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0x112),'hint':a55_0x4d6da9(0x108)},{'name':a55_0x4d6da9(0x10d),'meowKey':a55_0x4d6da9(0x10d),'type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0xf9),'hint':'<name>'},{'name':'env','meowKey':a55_0x4d6da9(0x11a),'type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0x117),'hint':a55_0x4d6da9(0x110)},{'name':'format','meowKey':'format','type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0x100),'hint':a55_0x4d6da9(0xff)},{'name':'jq','meowKey':'jq','type':a55_0x4d6da9(0x105),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a55_0x4d6da9(0x124)},{'name':a55_0x4d6da9(0xf6),'meowKey':a55_0x4d6da9(0xfb),'type':a55_0x4d6da9(0x107),'description':a55_0x4d6da9(0x11c)},{'name':'yes','meowKey':a55_0x4d6da9(0x10e),'type':a55_0x4d6da9(0x107),'description':a55_0x4d6da9(0xfd)},{'name':a55_0x4d6da9(0x103),'meowKey':a55_0x4d6da9(0xfa),'type':a55_0x4d6da9(0x107),'description':a55_0x4d6da9(0x10c)},{'name':a55_0x4d6da9(0x101),'meowKey':'global','type':a55_0x4d6da9(0x107),'description':a55_0x4d6da9(0x111)},{'name':'ci','meowKey':'ci','type':a55_0x4d6da9(0x107),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a55_0x4d6da9(0x115),'meowKey':a55_0x4d6da9(0x115),'type':a55_0x4d6da9(0x107),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0x118),'hidden':!![]},{'name':a55_0x4d6da9(0x102),'meowKey':a55_0x4d6da9(0x102),'type':'string','description':'Name\x20filter','hidden':!![]},{'name':a55_0x4d6da9(0xf8),'meowKey':a55_0x4d6da9(0xf8),'type':a55_0x4d6da9(0x105),'description':a55_0x4d6da9(0x11e),'hidden':!![]},{'name':a55_0x4d6da9(0x123),'meowKey':a55_0x4d6da9(0x123),'type':'string','description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a55_0x4d6da9(0x11d),'meowKey':a55_0x4d6da9(0x11d),'type':a55_0x4d6da9(0x107),'description':a55_0x4d6da9(0x106),'hidden':!![]},{'name':a55_0x4d6da9(0x116),'meowKey':a55_0x4d6da9(0x116),'type':'boolean','description':a55_0x4d6da9(0x10a),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a55_0x4d6da9(0xf5),'app','env','format','jq','dry-run',a55_0x4d6da9(0x10e),a55_0x4d6da9(0x103),'ci']);export function buildMeowFlags(){const _0x1b5194=a55_0x4d6da9;return Object[_0x1b5194(0x122)](GLOBAL_FLAGS['map'](_0x20627e=>[_0x20627e[_0x1b5194(0x119)],{'type':_0x20627e[_0x1b5194(0x113)]}]));}
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 +1 @@
1
- const a56_0x5a0630=a56_0x2851;(function(_0x2e86c8,_0x191b1e){const _0x42ecaf=a56_0x2851,_0x225646=_0x2e86c8();while(!![]){try{const _0x10701b=-parseInt(_0x42ecaf(0x15e))/0x1*(-parseInt(_0x42ecaf(0x168))/0x2)+parseInt(_0x42ecaf(0x15c))/0x3*(parseInt(_0x42ecaf(0x166))/0x4)+-parseInt(_0x42ecaf(0x159))/0x5*(-parseInt(_0x42ecaf(0x160))/0x6)+parseInt(_0x42ecaf(0x15f))/0x7*(-parseInt(_0x42ecaf(0x15b))/0x8)+-parseInt(_0x42ecaf(0x15d))/0x9*(-parseInt(_0x42ecaf(0x162))/0xa)+-parseInt(_0x42ecaf(0x163))/0xb*(parseInt(_0x42ecaf(0x165))/0xc)+-parseInt(_0x42ecaf(0x167))/0xd;if(_0x10701b===_0x191b1e)break;else _0x225646['push'](_0x225646['shift']());}catch(_0x17ebe6){_0x225646['push'](_0x225646['shift']());}}}(a56_0x22a8,0xf3123));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a56_0x5a0630(0x161),'format':a56_0x5a0630(0x15a),'locale':a56_0x5a0630(0x164),'riskLevel':a56_0x5a0630(0x158)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a56_0x5a0630(0x15a);function a56_0x2851(_0x85ba65,_0x41121c){_0x85ba65=_0x85ba65-0x158;const _0x22a883=a56_0x22a8();let _0x285183=_0x22a883[_0x85ba65];return _0x285183;}function a56_0x22a8(){const _0x5902ac=['170112TdjXTy','5194892HwBQNQ','16617575nlVRSI','710FUBgiU','write','665SMrmcH','compress','16xpvduN','3yYNzWG','765zbBXPs','4579OkhsdT','4405765RldeGX','24714FJppyp','production','50490LYblDP','286pHtMDn','en-US'];a56_0x22a8=function(){return _0x5902ac;};return a56_0x22a8();}
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 +1 @@
1
- const a57_0x44ee09=a57_0x1709;function a57_0x1709(_0x5e9158,_0x143d98){_0x5e9158=_0x5e9158-0x121;const _0x2d1fc0=a57_0x2d1f();let _0x17091b=_0x2d1fc0[_0x5e9158];return _0x17091b;}function a57_0x2d1f(){const _0x4aaed1=['npmRegistryBaseUrl','6273925dqdLmM','3410436yEHGkz','307336TgzzlC','skillSource','867261OxvnRI','npmPackageName','8JMEEOL','1430484yqDrcJ','1952886CzJQXo','3933695FPGmPF'];a57_0x2d1f=function(){return _0x4aaed1;};return a57_0x2d1f();}(function(_0x128917,_0x2aad3a){const _0x325523=a57_0x1709,_0x4f18a5=_0x128917();while(!![]){try{const _0x137f61=parseInt(_0x325523(0x12b))/0x1+parseInt(_0x325523(0x124))/0x2+-parseInt(_0x325523(0x123))/0x3*(-parseInt(_0x325523(0x122))/0x4)+-parseInt(_0x325523(0x125))/0x5+-parseInt(_0x325523(0x128))/0x6+-parseInt(_0x325523(0x127))/0x7+parseInt(_0x325523(0x129))/0x8;if(_0x137f61===_0x2aad3a)break;else _0x4f18a5['push'](_0x4f18a5['shift']());}catch(_0x36b9b8){_0x4f18a5['push'](_0x4f18a5['shift']());}}}(a57_0x2d1f,0x8eaa5));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a57_0x44ee09(0x121)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a57_0x44ee09(0x12a)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a57_0x44ee09(0x126)];
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 +1 @@
1
- const a58_0x2717fc=a58_0x5c5b;(function(_0x25a481,_0x3a2438){const _0x1b59d5=a58_0x5c5b,_0x3fcbe7=_0x25a481();while(!![]){try{const _0x5afed8=-parseInt(_0x1b59d5(0x128))/0x1+-parseInt(_0x1b59d5(0x123))/0x2*(-parseInt(_0x1b59d5(0x11d))/0x3)+parseInt(_0x1b59d5(0x12c))/0x4*(-parseInt(_0x1b59d5(0x129))/0x5)+parseInt(_0x1b59d5(0x11b))/0x6+parseInt(_0x1b59d5(0x126))/0x7+-parseInt(_0x1b59d5(0x12a))/0x8+-parseInt(_0x1b59d5(0x120))/0x9;if(_0x5afed8===_0x3a2438)break;else _0x3fcbe7['push'](_0x3fcbe7['shift']());}catch(_0x208406){_0x3fcbe7['push'](_0x3fcbe7['shift']());}}}(a58_0x48dc,0x35d15));function a58_0x5c5b(_0x4dcc24,_0x5ab417){_0x4dcc24=_0x4dcc24-0x11b;const _0x48dc7b=a58_0x48dc();let _0x5c5bb5=_0x48dc7b[_0x4dcc24];return _0x5c5bb5;}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x22d982){const _0x1a35d5=a58_0x5c5b;customApiDomain=_0x22d982?.[_0x1a35d5(0x11e)],customUserDomain=_0x22d982?.[_0x1a35d5(0x124)],customRuntimeDomain=_0x22d982?.[_0x1a35d5(0x122)],customSkillHubDomain=_0x22d982?.['skillHubDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x11c)][a58_0x2717fc(0x127)]:PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x121)]['user']);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x11c)]['api']:PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x121)]['api']);function a58_0x48dc(){const _0x13bce4=['skillhub','3028858UiQyKG','user','3780amYBAh','5wMWrXA','1694672dqlase','runtime','827644ywDXfl','1595022NKSDky','production','3369fVLLOh','apiDomain','domains','3188583PtuNwr','nonProduction','runtimeDomain','532jGxfxb','userDomain'];a58_0x48dc=function(){return _0x13bce4;};return a58_0x48dc();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x11c)][a58_0x2717fc(0x12b)]:PRODUCT_CONFIG[a58_0x2717fc(0x11f)]['nonProduction'][a58_0x2717fc(0x12b)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a58_0x2717fc(0x11f)][a58_0x2717fc(0x11c)]['skillhub']:PRODUCT_CONFIG[a58_0x2717fc(0x11f)]['nonProduction'][a58_0x2717fc(0x125)]);
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 +1 @@
1
- const a59_0x4bb8c9=a59_0x4be4;(function(_0x565194,_0x4fc423){const _0x480ad2=a59_0x4be4,_0x4cb93f=_0x565194();while(!![]){try{const _0x1f2d26=-parseInt(_0x480ad2(0x16f))/0x1+parseInt(_0x480ad2(0x16d))/0x2*(-parseInt(_0x480ad2(0x168))/0x3)+parseInt(_0x480ad2(0x169))/0x4*(-parseInt(_0x480ad2(0x167))/0x5)+-parseInt(_0x480ad2(0x16e))/0x6*(-parseInt(_0x480ad2(0x164))/0x7)+-parseInt(_0x480ad2(0x16b))/0x8+-parseInt(_0x480ad2(0x165))/0x9*(-parseInt(_0x480ad2(0x166))/0xa)+parseInt(_0x480ad2(0x173))/0xb*(parseInt(_0x480ad2(0x16c))/0xc);if(_0x1f2d26===_0x4fc423)break;else _0x4cb93f['push'](_0x4cb93f['shift']());}catch(_0x29bd4a){_0x4cb93f['push'](_0x4cb93f['shift']());}}}(a59_0x1826,0xaf355));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a59_0x4bb8c9(0x174),a59_0x4bb8c9(0x171),a59_0x4bb8c9(0x16a)];export function normalizeEnv(_0x4e24bc){const _0x442f14=a59_0x4bb8c9;return _0x4e24bc==='online'?_0x442f14(0x174):_0x4e24bc;}export function isProduction(_0x2e75b5){return normalizeEnv(_0x2e75b5)==='production';}function a59_0x4be4(_0xd2773a,_0x39de33){_0xd2773a=_0xd2773a-0x164;const _0x182624=a59_0x1826();let _0x4be4f4=_0x182624[_0xd2773a];return _0x4be4f4;}export function isDaily(_0x290e11){const _0x465b66=a59_0x4bb8c9;return normalizeEnv(_0x290e11)===_0x465b66(0x16a);}export function isDev(_0x544fa8){const _0xa65bfc=a59_0x4bb8c9,_0x4db911=normalizeEnv(_0x544fa8);return _0x4db911===_0xa65bfc(0x171)||_0x4db911===_0xa65bfc(0x170);}let env=normalizeEnv(productEnv(a59_0x4bb8c9(0x172))||a59_0x4bb8c9(0x174));export function getEnv(){return env;}export function initEnv(_0x42a055){env=normalizeEnv(_0x42a055);}function a59_0x1826(){const _0x3af59a=['development','ENV','11wdyNvG','production','8414tjSNaz','862740XhixIW','10pinKfr','5mMoFvz','3819AHrbhv','2488868PuVXzJ','daily','3865920KSCVvP','30805728rgfroB','1758ZktdxV','4494dLhrmF','621225DiSagR','dev'];a59_0x1826=function(){return _0x3af59a;};return a59_0x1826();}
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 +1 @@
1
- const a60_0x44cced=a60_0x26e6;function a60_0x26e6(_0x44dfa9,_0x378fda){_0x44dfa9=_0x44dfa9-0x1d5;const _0x5d1027=a60_0x5d10();let _0x26e6aa=_0x5d1027[_0x44dfa9];return _0x26e6aa;}(function(_0x3a1c57,_0x2dac25){const _0x1a16c2=a60_0x26e6,_0x268702=_0x3a1c57();while(!![]){try{const _0x53fe38=parseInt(_0x1a16c2(0x1df))/0x1*(-parseInt(_0x1a16c2(0x1d6))/0x2)+-parseInt(_0x1a16c2(0x1dc))/0x3+-parseInt(_0x1a16c2(0x1db))/0x4*(-parseInt(_0x1a16c2(0x1da))/0x5)+parseInt(_0x1a16c2(0x1de))/0x6*(parseInt(_0x1a16c2(0x1dd))/0x7)+parseInt(_0x1a16c2(0x1e2))/0x8+-parseInt(_0x1a16c2(0x1d9))/0x9*(parseInt(_0x1a16c2(0x1e0))/0xa)+-parseInt(_0x1a16c2(0x1e1))/0xb;if(_0x53fe38===_0x2dac25)break;else _0x268702['push'](_0x268702['shift']());}catch(_0x44f316){_0x268702['push'](_0x268702['shift']());}}}(a60_0x5d10,0x9193f));function a60_0x5d10(){const _0x2559a7=['2662506xdWvHl','14WJPMbn','1618098AjDJSQ','15887GqdNEW','24190DPasok','9280645JjdhVP','9462640YhtLWR','compress','62KMozkE','pretty','json','207qjsDzX','20745PqKAtr','1112GSCzUY'];a60_0x5d10=function(){return _0x2559a7;};return a60_0x5d10();}export const OUTPUT_FORMAT_VALUES=[a60_0x44cced(0x1d8),a60_0x44cced(0x1d7),a60_0x44cced(0x1d5)];
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 +1 @@
1
- function a61_0x118c(){const _0x143241=['Lovrabet\x20User\x20Center','1885184CVwRXG','lovrabet','https://skills.lovrabet.com','/user/ak','2LzVobG','.lovrabetrc','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','LOVRABET','https://registry.npmjs.org','envPrefix','legacyEnvPrefixes','.lovrabet.json','1252968MZsPCa','https://api.lovrabet.com','305794xHxwyl','.lovrabet','map','Lovrabet\x20Runtime\x20CLI','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','512552xOCouC','740130TOSjyW','@lovrabet/lovrabet-cli','794735MPYwYe','153HprjJC','327063DmkdNK','RABETBASE'];a61_0x118c=function(){return _0x143241;};return a61_0x118c();}const a61_0x4576c4=a61_0x3d3d;(function(_0x36a14e,_0x1cedc3){const _0x316451=a61_0x3d3d,_0x54f75f=_0x36a14e();while(!![]){try{const _0x3a38d1=parseInt(_0x316451(0x186))/0x1*(parseInt(_0x316451(0x198))/0x2)+parseInt(_0x316451(0x191))/0x3+parseInt(_0x316451(0x184))/0x4+parseInt(_0x316451(0x18f))/0x5+parseInt(_0x316451(0x18d))/0x6+parseInt(_0x316451(0x194))/0x7+parseInt(_0x316451(0x18c))/0x8*(-parseInt(_0x316451(0x190))/0x9);if(_0x3a38d1===_0x1cedc3)break;else _0x54f75f['push'](_0x54f75f['shift']());}catch(_0x166dd3){_0x54f75f['push'](_0x54f75f['shift']());}}}(a61_0x118c,0x2e822));export const PRODUCT_CONFIG={'cliBinName':a61_0x4576c4(0x195),'cliDisplayName':a61_0x4576c4(0x189),'npmPackageName':a61_0x4576c4(0x18e),'skillSource':'lovrabet/lovrabet-cli','npmRegistryBaseUrl':a61_0x4576c4(0x180),'envPrefix':a61_0x4576c4(0x19c),'legacyEnvPrefixes':[a61_0x4576c4(0x192)],'configFileNames':[a61_0x4576c4(0x183),a61_0x4576c4(0x199)],'newConfigFileName':a61_0x4576c4(0x183),'homeDirName':a61_0x4576c4(0x187),'logFileName':'.lovrabet-runtime.log','invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a61_0x4576c4(0x193),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a61_0x4576c4(0x185),'runtime':'https://runtime.lovrabet.com','skillhub':a61_0x4576c4(0x196)},'nonProduction':{'user':a61_0x4576c4(0x19b),'api':a61_0x4576c4(0x18a),'runtime':a61_0x4576c4(0x18b),'skillhub':a61_0x4576c4(0x19a)}},'accessKeyCreatePath':a61_0x4576c4(0x197)};function a61_0x3d3d(_0x41f863,_0x3dd773){_0x41f863=_0x41f863-0x180;const _0x118cfd=a61_0x118c();let _0x3d3dd5=_0x118cfd[_0x41f863];return _0x3d3dd5;}export function productEnvName(_0x3dd1b6){const _0x438f14=a61_0x4576c4;return PRODUCT_CONFIG[_0x438f14(0x181)]+'_'+_0x3dd1b6;}export function productEnvNames(_0x598321){const _0x39bd5b=a61_0x4576c4;return[productEnvName(_0x598321),...PRODUCT_CONFIG[_0x39bd5b(0x182)][_0x39bd5b(0x188)](_0x18bd3c=>_0x18bd3c+'_'+_0x598321)];}export function productEnv(_0x3c129f){for(const _0x355f51 of productEnvNames(_0x3c129f)){const _0x5dcb47=process.env[_0x355f51];if(_0x5dcb47!==undefined)return _0x5dcb47;}return undefined;}
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 +1 @@
1
- const a62_0x2e1b99=a62_0x66ac;(function(_0xd6fbdf,_0x2f9b3e){const _0x2d4144=a62_0x66ac,_0x44c63b=_0xd6fbdf();while(!![]){try{const _0x59dc11=parseInt(_0x2d4144(0x1a0))/0x1*(-parseInt(_0x2d4144(0x1a2))/0x2)+parseInt(_0x2d4144(0x19c))/0x3*(-parseInt(_0x2d4144(0x1a5))/0x4)+parseInt(_0x2d4144(0x1a4))/0x5+parseInt(_0x2d4144(0x1a1))/0x6+parseInt(_0x2d4144(0x1a8))/0x7+parseInt(_0x2d4144(0x1a3))/0x8*(-parseInt(_0x2d4144(0x19f))/0x9)+parseInt(_0x2d4144(0x1a7))/0xa;if(_0x59dc11===_0x2f9b3e)break;else _0x44c63b['push'](_0x44c63b['shift']());}catch(_0x2b50b8){_0x44c63b['push'](_0x44c63b['shift']());}}}(a62_0x80e1,0x7d721));function a62_0x66ac(_0x5ea2ad,_0x17e482){_0x5ea2ad=_0x5ea2ad-0x19c;const _0x80e1b7=a62_0x80e1();let _0x66acaf=_0x80e1b7[_0x5ea2ad];return _0x66acaf;}export const RISK_LEVEL_VALUES=[a62_0x2e1b99(0x19d),a62_0x2e1b99(0x1a6),a62_0x2e1b99(0x19e)];function a62_0x80e1(){const _0x3fa50b=['144EAnZEV','983YquATX','2486358wnVHUX','604OPFvTn','166416dfMqZo','2401985UPOLNn','1708eFgidP','write','6724030CFpfmP','3218551OVBQNy','6207awEevN','read','high-risk-write'];a62_0x80e1=function(){return _0x3fa50b;};return a62_0x80e1();}
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 +1 @@
1
- const a63_0x346674=a63_0x4f0d;function a63_0x4f0d(_0x6e5bb5,_0x4ed182){_0x6e5bb5=_0x6e5bb5-0x101;const _0x5c2ab7=a63_0x5c2a();let _0x4f0d8b=_0x5c2ab7[_0x6e5bb5];return _0x4f0d8b;}(function(_0x52131a,_0x80e866){const _0x3884ab=a63_0x4f0d,_0x1ae043=_0x52131a();while(!![]){try{const _0x28f4cc=-parseInt(_0x3884ab(0x104))/0x1*(parseInt(_0x3884ab(0x10e))/0x2)+parseInt(_0x3884ab(0x10c))/0x3*(-parseInt(_0x3884ab(0x10f))/0x4)+-parseInt(_0x3884ab(0x106))/0x5*(parseInt(_0x3884ab(0x10b))/0x6)+-parseInt(_0x3884ab(0x109))/0x7*(-parseInt(_0x3884ab(0x10d))/0x8)+parseInt(_0x3884ab(0x101))/0x9+-parseInt(_0x3884ab(0x107))/0xa*(-parseInt(_0x3884ab(0x103))/0xb)+-parseInt(_0x3884ab(0x10a))/0xc;if(_0x28f4cc===_0x80e866)break;else _0x1ae043['push'](_0x1ae043['shift']());}catch(_0x290e21){_0x1ae043['push'](_0x1ae043['shift']());}}}(a63_0x5c2a,0x7fac6));import{PRODUCT_CONFIG}from'../constant/product.js';export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a63_0x346674(0x108)]['production'][a63_0x346674(0x105)]+PRODUCT_CONFIG[a63_0x346674(0x102)];function a63_0x5c2a(){const _0x503d23=['1107360TLPoEO','315738HEAXzR','381uwPkqL','8gYAtma','873910SVLaeZ','1464HVqAZH','4004631TNHNix','accessKeyCreatePath','14146atTWoG','1oXbKKp','user','45JGHiqq','4470rjHBsT','domains','3867311htvpdr'];a63_0x5c2a=function(){return _0x503d23;};return a63_0x5c2a();}
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'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a64_0x1c76be=a64_0x3e91;(function(_0x5886ab,_0x4a00cf){const _0x316ac3=a64_0x3e91,_0x39dcce=_0x5886ab();while(!![]){try{const _0x124466=parseInt(_0x316ac3(0x170))/0x1+parseInt(_0x316ac3(0x171))/0x2+-parseInt(_0x316ac3(0x195))/0x3*(parseInt(_0x316ac3(0x18f))/0x4)+parseInt(_0x316ac3(0x191))/0x5+-parseInt(_0x316ac3(0x179))/0x6+-parseInt(_0x316ac3(0x19d))/0x7*(-parseInt(_0x316ac3(0x18d))/0x8)+-parseInt(_0x316ac3(0x186))/0x9;if(_0x124466===_0x4a00cf)break;else _0x39dcce['push'](_0x39dcce['shift']());}catch(_0x3e99c9){_0x39dcce['push'](_0x39dcce['shift']());}}}(a64_0x5bd2,0xe3e08));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[a64_0x1c76be(0x198)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a64_0x1c76be(0x16a)];function resolveConfigPath(_0x4289af){for(const _0xb36113 of CONFIG_NAMES){const _0x379a21=resolve(_0x4289af,_0xb36113);if(existsSync(_0x379a21))return _0x379a21;}return undefined;}export function resolveWriteConfigPath(_0x439d1a){const _0x10b0aa=a64_0x1c76be,_0x461984=_0x439d1a===_0x10b0aa(0x19a)?process[_0x10b0aa(0x19e)]():homedir(),_0x44425f=resolveConfigPath(_0x461984);return _0x44425f??resolve(_0x461984,NEW_CONFIG_NAME);}function a64_0x5bd2(){const _0x4793a4=['utf8','stdin','join','newConfigFileName','./constant/env.js','stdout','true','write','code','1466973ITnlhX','2108394kEZsRs','ENV','object','string','env','raw','setRawMode','find','320712NSWidh','slice','inherit','APPCODE','cache','host','nonInteractive','isTTY','runtimeDomain','riskLevel','trim','locale','authRequired','17930979KccUlR','projectConfig','app','local-alias','missing','appcode','top-level','16inDzCM','values','4xyUxeK','apps','3389200iNBFCc','globalConfig','parse','defaultApp','4980651jWpYXZ','production','accessKey','configFileNames','setRawCommand','project','APP','ACCESS_KEY','5041309VYlMqf','cwd','PAGE_SIZE','global','online','development','./constant/domain.js','error','apiDomain','FORMAT','stringify','format','pageSize','skillHubDomain','read','.tmp'];a64_0x5bd2=function(){return _0x4793a4;};return a64_0x5bd2();}export function readConfigFile(_0x1b9043){const _0x24b6f8=a64_0x1c76be;try{if(existsSync(_0x1b9043)){const _0x4eff5c=readFileSync(_0x1b9043,{'encoding':_0x24b6f8(0x167)});if(_0x4eff5c){const _0x2e32bc=JSON[_0x24b6f8(0x193)](_0x4eff5c);return migrateOnlineEnv(_0x1b9043,_0x2e32bc),_0x2e32bc;}}}catch{}return{};}function migrateOnlineEnv(_0x180fc8,_0x5104a4){const _0x11f3ae=a64_0x1c76be;let _0x2342fe=![];_0x5104a4[_0x11f3ae(0x175)]===_0x11f3ae(0x1a1)&&(_0x5104a4[_0x11f3ae(0x175)]='production',_0x2342fe=!![]);if(_0x5104a4[_0x11f3ae(0x190)]&&typeof _0x5104a4[_0x11f3ae(0x190)]===_0x11f3ae(0x173))for(const _0x5a0818 of Object[_0x11f3ae(0x18e)](_0x5104a4[_0x11f3ae(0x190)])){_0x5a0818&&_0x5a0818[_0x11f3ae(0x175)]===_0x11f3ae(0x1a1)&&(_0x5a0818[_0x11f3ae(0x175)]=_0x11f3ae(0x196),_0x2342fe=!![]);}if(_0x2342fe)try{writeConfigFile(_0x180fc8,_0x5104a4);}catch{}}export function writeConfigFile(_0x5c66cd,_0x287b4a){const _0x5e34aa=a64_0x1c76be,_0x48b388=dirname(_0x5c66cd);!existsSync(_0x48b388)&&mkdirSync(_0x48b388,{'recursive':!![]});const _0x3ce007=_0x5c66cd+_0x5e34aa(0x166);try{writeFileSync(_0x3ce007,JSON[_0x5e34aa(0x161)](_0x287b4a,null,0x2)+'\x0a',{'encoding':_0x5e34aa(0x167),'mode':0x180});try{renameSync(_0x3ce007,_0x5c66cd);}catch(_0x2ba5ce){if(_0x2ba5ce[_0x5e34aa(0x16f)]==='EPERM'||_0x2ba5ce[_0x5e34aa(0x16f)]==='EXDEV'||_0x2ba5ce[_0x5e34aa(0x16f)]==='EACCES'){writeFileSync(_0x5c66cd,JSON['stringify'](_0x287b4a,null,0x2)+'\x0a',{'encoding':_0x5e34aa(0x167)});try{unlinkSync(_0x3ce007);}catch{}}else throw _0x2ba5ce;}}catch(_0x5d4a9b){try{unlinkSync(_0x3ce007);}catch{}throw _0x5d4a9b;}}export function isNonInteractiveMode(_0x4e3304){const _0x31130c=a64_0x1c76be;return!!(_0x4e3304[_0x31130c(0x17f)]||_0x4e3304['ci']||productEnvNames('CI')['some'](_0x1cb01a=>process.env[_0x1cb01a]==='true')||process.env.CI===_0x31130c(0x16d)||!process[_0x31130c(0x16c)][_0x31130c(0x180)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xb2e51b=a64_0x1c76be;if(!process[_0xb2e51b(0x168)][_0xb2e51b(0x180)])return![];try{const _0x47333a=process[_0xb2e51b(0x168)]['isRaw'];return process['stdin'][_0xb2e51b(0x177)](!![]),process[_0xb2e51b(0x168)][_0xb2e51b(0x177)](_0x47333a??![]),!![];}catch{return![];}}export async function createContext(_0x218431){const _0x2b1cbf=a64_0x1c76be,_0x18a0ff=readRawConfig(),_0x922427=buildConfig(_0x18a0ff,_0x218431);await initGlobalEnvironment(_0x922427);const {getUserDomain:_0x26c5c5,getApiDomain:_0x5b466e}=await import(_0x2b1cbf(0x1a3)),_0x13ab5f={'apiDomain':_0x5b466e(),'userDomain':_0x26c5c5()},_0x59e11b=await buildAuth(_0x922427);logger['setLogPath'](process[_0x2b1cbf(0x19e)]());const _0x309a78=(CLI_BIN_NAME+'\x20'+process['argv'][_0x2b1cbf(0x17a)](0x2)[_0x2b1cbf(0x169)]('\x20'))[_0x2b1cbf(0x183)]();logger[_0x2b1cbf(0x199)](_0x309a78);const _0x282aac=isNonInteractiveMode(_0x218431);return{'config':_0x922427,'auth':_0x59e11b,'logger':logger,'env':_0x13ab5f,'nonInteractive':_0x282aac};}export function buildConfigFromFlags(_0x472c2e){return buildConfig(readRawConfig(),_0x472c2e);}export function getLocalAppAliases(_0x4e446b){const _0xa0675=a64_0x1c76be;return _0x4e446b[_0xa0675(0x190)]&&typeof _0x4e446b[_0xa0675(0x190)]===_0xa0675(0x173)?_0x4e446b[_0xa0675(0x190)]:{};}export function resolveLocalAppAliasCode(_0x55fc9c,_0x494cd9){const _0x16a58a=a64_0x1c76be;if(!_0x494cd9)return undefined;const _0x29dcf2=getLocalAppAliases(_0x55fc9c)[_0x494cd9],_0x17a606=_0x29dcf2?.[_0x16a58a(0x18b)];return typeof _0x17a606===_0x16a58a(0x174)&&_0x17a606[_0x16a58a(0x183)]()?_0x17a606[_0x16a58a(0x183)]():undefined;}export function readAppCodeFromConfig(){const _0x355921=a64_0x1c76be,_0x19dd1c=readRawConfig(),_0x275969=_0x19dd1c['appcode']??_0x19dd1c[_0x355921(0x188)];if(typeof _0x275969===_0x355921(0x174)&&_0x275969[_0x355921(0x183)]())return _0x275969[_0x355921(0x183)]();const _0x19a5f8=resolveLocalAppAliasCode(_0x19dd1c,typeof _0x19dd1c[_0x355921(0x194)]==='string'?_0x19dd1c[_0x355921(0x194)]:undefined);if(_0x19a5f8)return _0x19a5f8;const _0x1a8699=normalizeEnv(String(_0x19dd1c[_0x355921(0x175)]||_0x355921(0x196))),_0x59d2d4=isDaily(_0x1a8699)?'daily':isDev(_0x1a8699)?_0x355921(0x1a2):_0x355921(0x196),_0x5f337b=resolveCachedAppCode(typeof _0x19dd1c[_0x355921(0x194)]===_0x355921(0x174)?_0x19dd1c[_0x355921(0x194)]:undefined,_0x59d2d4,typeof _0x19dd1c[_0x355921(0x197)]===_0x355921(0x174)?_0x19dd1c[_0x355921(0x197)]:undefined);if(_0x5f337b)return _0x5f337b;const _0x222640=Object[_0x355921(0x18e)](getLocalAppAliases(_0x19dd1c))[_0x355921(0x178)](_0x166b32=>_0x166b32?.[_0x355921(0x18b)]);return typeof _0x222640?.[_0x355921(0x18b)]===_0x355921(0x174)&&_0x222640[_0x355921(0x18b)]['trim']()?_0x222640[_0x355921(0x18b)][_0x355921(0x183)]():undefined;}export function readScopedConfig(_0x4a8a2e){const _0x1b913b=a64_0x1c76be,_0x60d818=_0x4a8a2e[_0x1b913b(0x1a0)]?_0x1b913b(0x1a0):_0x1b913b(0x19a);return readConfigFile(resolveWriteConfigPath(_0x60d818));}function a64_0x3e91(_0x1dce8c,_0x55a242){_0x1dce8c=_0x1dce8c-0x161;const _0x5bd278=a64_0x5bd2();let _0x3e9153=_0x5bd278[_0x1dce8c];return _0x3e9153;}export function writeScopedConfig(_0x2eacd4,_0x1420d7){const _0x4c0eaf=a64_0x1c76be,_0x1964c7=_0x1420d7[_0x4c0eaf(0x1a0)]?_0x4c0eaf(0x1a0):_0x4c0eaf(0x19a);writeConfigFile(resolveWriteConfigPath(_0x1964c7),_0x2eacd4);}export async function initGlobalEnvironment(_0x19432b){const _0x277a88=a64_0x1c76be,{initEnv:_0x24dd9e}=await import(_0x277a88(0x16b));_0x24dd9e(_0x19432b['env']);const {initDomains:_0x1e3b63}=await import(_0x277a88(0x1a3));_0x1e3b63({'apiDomain':_0x19432b[_0x277a88(0x176)][_0x277a88(0x1a5)]||_0x19432b[_0x277a88(0x176)][_0x277a88(0x17e)]||undefined,'userDomain':_0x19432b[_0x277a88(0x176)]['userDomain']||undefined,'runtimeDomain':_0x19432b[_0x277a88(0x176)][_0x277a88(0x181)]||undefined,'skillHubDomain':_0x19432b[_0x277a88(0x176)][_0x277a88(0x164)]||undefined});}export function getProjectConfigPath(){const _0x2e7e70=a64_0x1c76be;return resolveConfigPath(process[_0x2e7e70(0x19e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x345227){const _0x32f939=a64_0x1c76be;if(!existsSync(_0x345227))return{'status':_0x32f939(0x18a)};try{const _0x5df92f=readFileSync(_0x345227,{'encoding':_0x32f939(0x167)});if(!_0x5df92f?.['trim']())return{'status':'empty'};const _0x5eed66=JSON[_0x32f939(0x193)](_0x5df92f);return{'status':'ok','data':_0x5eed66};}catch(_0x34360a){return{'status':_0x32f939(0x1a4),'message':_0x34360a instanceof Error?_0x34360a['message']:String(_0x34360a)};}}export function loadRawConfigLayers(_0x5e57f8){const _0x2aac23=a64_0x1c76be;let _0x47351f={},_0x480950={},_0xcc6871,_0x1edcb4;try{_0xcc6871=resolveConfigPath(homedir());if(_0xcc6871){const _0x4e178b=readFileSync(_0xcc6871,{'encoding':_0x2aac23(0x167)});if(_0x4e178b)_0x47351f=JSON[_0x2aac23(0x193)](_0x4e178b);}}catch{}try{const _0x1cddaa=_0x5e57f8||process[_0x2aac23(0x19e)]();_0x1edcb4=resolveConfigPath(_0x1cddaa);if(_0x1edcb4){const _0x3ba0dd=readFileSync(_0x1edcb4,{'encoding':_0x2aac23(0x167)});if(_0x3ba0dd)_0x480950=JSON['parse'](_0x3ba0dd);}}catch{}return{'globalPath':_0xcc6871,'projectPath':_0x1edcb4,'globalConfig':_0x47351f,'projectConfig':_0x480950};}function mergeRawConfigLayers(_0x45b3b2){const _0x53392e=a64_0x1c76be,{globalConfig:_0x42e9d1,projectConfig:_0x51587e}=_0x45b3b2;if(_0x51587e[_0x53392e(0x17b)]===![]){const _0x4bfca1={..._0x51587e};return delete _0x4bfca1[_0x53392e(0x17b)],_0x4bfca1;}const _0x289b47={..._0x42e9d1,..._0x51587e};if(_0x53392e(0x194)in _0x51587e)_0x289b47['defaultApp']=_0x51587e[_0x53392e(0x194)];else _0x42e9d1['defaultApp']&&(_0x289b47[_0x53392e(0x194)]=_0x42e9d1[_0x53392e(0x194)]);return _0x289b47;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5cdd7e){return mergeRawConfigLayers(loadRawConfigLayers(_0x5cdd7e));}export function readRawConfigWithLayers(_0x1fbb5d){const _0x6bff90=loadRawConfigLayers(_0x1fbb5d);return{'config':mergeRawConfigLayers(_0x6bff90),'layers':_0x6bff90};}export function resolveDefaultAppSource(_0x124dde){const _0x4e6e4f=a64_0x1c76be;if('defaultApp'in _0x124dde[_0x4e6e4f(0x187)])return _0x4e6e4f(0x19a);if(_0x124dde[_0x4e6e4f(0x187)][_0x4e6e4f(0x17b)]===![])return null;if(_0x124dde[_0x4e6e4f(0x192)][_0x4e6e4f(0x194)])return _0x4e6e4f(0x1a0);return null;}function buildConfig(_0xf7c964,_0x43ead3){const _0x57b611=a64_0x1c76be,_0x182e94=_0xf7c964[_0x57b611(0x194)]||undefined,_0x434b1c=_0x43ead3[_0x57b611(0x188)]||env(_0x57b611(0x19b))||undefined,_0x5cc514=_0x434b1c||_0x182e94||undefined,_0x505c32=env(_0x57b611(0x19c))||_0xf7c964[_0x57b611(0x197)]||undefined,_0x5efb6e=_0x43ead3[_0x57b611(0x175)]||env(_0x57b611(0x172))||_0xf7c964[_0x57b611(0x175)]||DEFAULT_CONFIG_VALUES[_0x57b611(0x175)],_0x1c13c9=normalizeEnv(String(_0x5efb6e)),_0x2cb8b6=isDaily(_0x1c13c9)?'daily':isDev(_0x1c13c9)?_0x57b611(0x1a2):_0x57b611(0x196),_0x5c6d50=resolveLocalAppAliasCode(_0xf7c964,_0x5cc514),_0x31ad0b=resolveCachedAppCode(_0x5cc514,_0x2cb8b6,_0x505c32),_0x43b620=typeof _0x43ead3[_0x57b611(0x18b)]===_0x57b611(0x174)?_0x43ead3[_0x57b611(0x18b)]:undefined,_0x31c2b6=env(_0x57b611(0x17c)),_0x4ac1ab=_0x434b1c?undefined:_0xf7c964[_0x57b611(0x18b)]||_0xf7c964[_0x57b611(0x188)]||undefined,_0x5d69a5=_0x43b620||_0x31c2b6||_0x5c6d50||_0x31ad0b||_0x4ac1ab||undefined,_0x323f56=_0x43b620?'explicit':_0x31c2b6?_0x57b611(0x175):_0x5c6d50?_0x57b611(0x189):_0x31ad0b?_0x57b611(0x17d):_0x4ac1ab?_0x57b611(0x18c):undefined,_0x485e89=_0xf7c964[_0x57b611(0x184)]||DEFAULT_CONFIG_VALUES[_0x57b611(0x184)],_0x180f42=undefined,_0x110f2f=_0x43ead3[_0x57b611(0x162)]||env(_0x57b611(0x1a6))||_0xf7c964[_0x57b611(0x162)],_0x555643=normalizeLegacyOutputFormat(_0x110f2f),_0x24004a=env(_0x57b611(0x19f))||_0xf7c964[_0x57b611(0x163)],_0x3818a9=_0x24004a?Number(_0x24004a)||undefined:undefined,_0x52954f=_0xf7c964[_0x57b611(0x182)]||_0xf7c964['maxRisk'],_0x5f481c=_0x52954f===_0x57b611(0x165)||_0x52954f===_0x57b611(0x16e)||_0x52954f==='high-risk-write'?_0x52954f:DEFAULT_CONFIG_VALUES[_0x57b611(0x182)],_0x169a1f=env('VERBOSE'),_0x4c340c=_0x169a1f==='1'||_0x169a1f===_0x57b611(0x16d);return{'appCode':typeof _0x5d69a5==='string'&&_0x5d69a5[_0x57b611(0x183)]()?_0x5d69a5['trim']():undefined,'appCodeSource':_0x323f56,'env':_0x2cb8b6,'locale':_0x485e89,'cookie':_0x180f42,'accessKey':_0x505c32,'format':_0x555643,'pageSize':_0x3818a9,'riskLevel':_0x5f481c,'verbose':_0x4c340c,'defaultApp':_0x182e94,'currentApp':typeof _0x5cc514==='string'?_0x5cc514:undefined,'raw':_0xf7c964};}function env(_0x590a95){return productEnv(_0x590a95);}async function buildAuth(_0x32f4f0){const _0x5946a5=a64_0x1c76be,_0x1f900d='',_0x5347b=!!_0x32f4f0[_0x5946a5(0x197)];return{'cookie':_0x1f900d,'isLoggedIn':_0x5347b,async 'getOrLogin'(){const _0x3a1f57=_0x5946a5;if(_0x5347b)return _0x1f900d;throw CliErrors[_0x3a1f57(0x185)]();}};}
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 +1 @@
1
- (function(_0x3efe1a,_0x43f662){const _0x3b0a31=a65_0x38dd,_0x4010a3=_0x3efe1a();while(!![]){try{const _0x5da8e1=-parseInt(_0x3b0a31(0x8e))/0x1*(parseInt(_0x3b0a31(0x8f))/0x2)+-parseInt(_0x3b0a31(0xcf))/0x3+parseInt(_0x3b0a31(0xf7))/0x4*(parseInt(_0x3b0a31(0xe7))/0x5)+-parseInt(_0x3b0a31(0xd7))/0x6+parseInt(_0x3b0a31(0xe2))/0x7*(-parseInt(_0x3b0a31(0x99))/0x8)+parseInt(_0x3b0a31(0xc5))/0x9*(-parseInt(_0x3b0a31(0xf2))/0xa)+parseInt(_0x3b0a31(0x9d))/0xb*(parseInt(_0x3b0a31(0xbd))/0xc);if(_0x5da8e1===_0x43f662)break;else _0x4010a3['push'](_0x4010a3['shift']());}catch(_0x2ba393){_0x4010a3['push'](_0x4010a3['shift']());}}}(a65_0x5661,0xcb0cc));function a65_0x38dd(_0x5a8b80,_0xc1058b){_0x5a8b80=_0x5a8b80-0x78;const _0x5661c0=a65_0x5661();let _0x38dd72=_0x5661c0[_0x5a8b80];return _0x38dd72;}import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';function a65_0x5661(){const _0x2c7293=['isArray','packageBase64','errorMsg','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','appName','Check\x20your\x20credentials\x20and\x20try\x20again.','/client/artifact/list?','headlineVersion','4617597KUnIRW','/skills','AbortError','number','errorCode','arrayBuffer','Request\x20timeout:\x20','replace','4574928kHyzcM','Toolbox\x20API\x20error:\x20','object','base64','code','all','toLowerCase','string','content','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','values','6701821XKeHyX','warnings','/client/knowledge-base/personal/create','company','/download','2458255ETYkND','toString','Toolbox\x20API\x20error','skillCode','GET','/publish','file','/client/knowledge-base/personal/list?appCode=','Personal\x20BFF\x20not\x20found:\x20id=','searchParams','map','40vxHZKi','/publish/validate','tableData','/client/user/loginUserInfo','abort','12RddlOY','text','.zip','description','/client/bff/query/','query','status','set','confirmWarnings','visibility','Download\x20failed:\x20','validation','/client/runtime-bff/personal/create','application/zip','data','markdown','Knowledge-base\x20entry\x20not\x20found:\x20id=','Configure\x20accessKey\x20in\x20','skill','catch','/update','stringify','/client/runtime-bff/personal/','invokeSource','authRequired','SkillHub\x20API\x20error:\x20','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','effective','json','valid','4viXEhJ','397034cLHeuV','msg','displayName','/client/runtime-bff/personal/list?appCode=','/execute?appCode=','errors','/client/app/my-apps','favorite','filter','ownerPreviewVersion','8xmmaVM','namespace','POST','tags','91883IgyjQT','PRIVATE','personal','success','application/octet-stream','/client/sql/query','message','items','newConfigFileName','summary','API\x20error:\x20','NAMESPACE_ONLY','/client/artifact/create','version','slug','resolvedSlug','signal','entries','application/json','artifactType','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/knowledge-base/personal/','boolean','scope','/client/artifact/','api-doc-generator','SkillHub\x20error\x20code:\x20','appCode','/api/cli/v1/skills/','name','SQL\x20query\x20not\x20found:\x20','topK','6972PvAevt','from','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','publishedVersion','?appCode=','trim','Artifact\x20not\x20found:\x20id=','resolvedVersion','3247191gxHVQr','apiError'];a65_0x5661=function(){return _0x2c7293;};return a65_0x5661();}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x19ecc2){_activeAK=_0x19ecc2||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x5b92d4,_0x551e1d={}){const _0x15784c=a65_0x38dd,{method:method=_0x15784c(0xeb),body:_0x39825a,headers:headers={},timeout:timeout=0x7530}=_0x551e1d,_0x3c047d=_activeAK,_0xffa3a5=getRuntimeDomain();if(!_0x3c047d)throw CliErrors[_0x15784c(0x88)](_0x15784c(0x81)+PRODUCT_CONFIG[_0x15784c(0xa5)]+'.');const _0x1a878b=''+_0xffa3a5+_0x5b92d4,_0x5f4c49={'X-User-AK':_0x3c047d},_0x27e551=new AbortController(),_0x1c056f=setTimeout(()=>_0x27e551[_0x15784c(0xf6)](),timeout);try{const _0x1f83ad=await fetch(_0x1a878b,{'method':method,'headers':{'Content-Type':_0x15784c(0xaf),'X-Invoke-Source':PRODUCT_CONFIG[_0x15784c(0x87)],..._0x5f4c49,...headers},'body':_0x39825a?JSON[_0x15784c(0x85)](_0x39825a):undefined,'signal':_0x27e551[_0x15784c(0xad)]});let _0x14247d;try{_0x14247d=await _0x1f83ad[_0x15784c(0x8c)]();}catch{throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x1f83ad[_0x15784c(0xfd)]+')',_0x1f83ad[_0x15784c(0xfd)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x1f83ad['ok']||_0x14247d[_0x15784c(0xa0)]===![])throw CliErrors['apiError'](_0x14247d[_0x15784c(0xc9)]||_0x14247d[_0x15784c(0xa3)]||_0x15784c(0xa7)+_0x1f83ad[_0x15784c(0xfd)],_0x14247d[_0x15784c(0xd3)]?'API\x20error\x20code:\x20'+_0x14247d[_0x15784c(0xd3)]:undefined);return _0x14247d;}catch(_0x5b508a){if(_0x5b508a instanceof Error&&_0x5b508a[_0x15784c(0xba)]==='AbortError')throw CliErrors[_0x15784c(0xc6)](_0x15784c(0xd5)+_0x1a878b);throw _0x5b508a;}finally{clearTimeout(_0x1c056f);}}async function apiBinaryRequest(_0x27e5d5,_0x539b6b={}){const _0x550e6e=a65_0x38dd,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x539b6b,_0x616ec0=_activeAK,_0x340624=getRuntimeDomain();if(!_0x616ec0)throw CliErrors[_0x550e6e(0x88)](_0x550e6e(0x81)+PRODUCT_CONFIG[_0x550e6e(0xa5)]+'.');const _0x4f7c53=''+_0x340624+_0x27e5d5,_0x371121=new AbortController(),_0x35702d=setTimeout(()=>_0x371121[_0x550e6e(0xf6)](),timeout);try{const _0x1dfd91=await fetch(_0x4f7c53,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x550e6e(0x87)],'X-User-AK':_0x616ec0,...headers},'signal':_0x371121[_0x550e6e(0xad)]});if(!_0x1dfd91['ok']){let _0x272bf1;try{const _0x247fc3=await _0x1dfd91['json']();_0x272bf1=_0x247fc3[_0x550e6e(0xc9)]||_0x247fc3[_0x550e6e(0xa3)]||_0x247fc3[_0x550e6e(0xd3)];}catch{_0x272bf1=await _0x1dfd91[_0x550e6e(0xf8)]()[_0x550e6e(0x83)](()=>undefined);}throw CliErrors[_0x550e6e(0xc6)](_0x272bf1||_0x550e6e(0xa7)+_0x1dfd91[_0x550e6e(0xfd)],_0x550e6e(0x7a)+_0x4f7c53);}return Buffer['from'](await _0x1dfd91['arrayBuffer']());}catch(_0x5a995b){if(_0x5a995b instanceof Error&&_0x5a995b[_0x550e6e(0xba)]===_0x550e6e(0xd1))throw CliErrors[_0x550e6e(0xc6)](_0x550e6e(0xd5)+_0x4f7c53);throw _0x5a995b;}finally{clearTimeout(_0x35702d);}}async function toolboxRequest(_0x1761d9,_0x2f4032,_0x3e75a8={}){const _0x1aa8e2=a65_0x38dd,{method:method=_0x1aa8e2(0xeb),headers:headers={},timeout:timeout=0x7530}=_0x3e75a8,_0x1ffe65=_activeAK;if(!_0x1ffe65)throw CliErrors[_0x1aa8e2(0x88)](_0x1aa8e2(0x81)+PRODUCT_CONFIG[_0x1aa8e2(0xa5)]+'.');const _0x50bf62=getApiDomain()[_0x1aa8e2(0xd6)](/\/$/,''),_0x1a28a9=new URL(_0x1761d9,_0x50bf62+'/api/node-toolbox/');if(_0x2f4032)for(const [_0x32058c,_0x391bc6]of Object[_0x1aa8e2(0xae)](_0x2f4032)){_0x391bc6!==undefined&&_0x391bc6!==null&&_0x1a28a9[_0x1aa8e2(0xf0)][_0x1aa8e2(0xfe)](_0x32058c,String(_0x391bc6));}const _0x53a53f=new AbortController(),_0x183172=setTimeout(()=>_0x53a53f[_0x1aa8e2(0xf6)](),timeout);try{const _0xea39a3=await fetch(_0x1a28a9,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x1aa8e2(0x87)],'X-User-AK':_0x1ffe65,...headers},'signal':_0x53a53f[_0x1aa8e2(0xad)]});let _0x47447b;try{_0x47447b=await _0xea39a3[_0x1aa8e2(0x8c)]();}catch{throw CliErrors[_0x1aa8e2(0xc6)](_0x1aa8e2(0xca)+_0xea39a3[_0x1aa8e2(0xfd)]+')',_0xea39a3['status']>=0x190?_0x1aa8e2(0xcc):undefined);}if(!_0xea39a3['ok']){const _0xdca1a0=_0x47447b&&typeof _0x47447b==='object'?_0x47447b:{};throw CliErrors['apiError'](_0xdca1a0[_0x1aa8e2(0xc9)]||_0xdca1a0[_0x1aa8e2(0xa3)]||_0x1aa8e2(0xd8)+_0xea39a3[_0x1aa8e2(0xfd)],_0xdca1a0[_0x1aa8e2(0xd3)]?'Toolbox\x20error\x20code:\x20'+_0xdca1a0[_0x1aa8e2(0xd3)]:undefined);}if(_0x47447b&&typeof _0x47447b===_0x1aa8e2(0xd9)&&_0x1aa8e2(0xa0)in _0x47447b&&typeof _0x47447b[_0x1aa8e2(0xa0)]===_0x1aa8e2(0xb3)){const _0x1c4c59=_0x47447b;if(!_0x1c4c59[_0x1aa8e2(0xa0)])throw CliErrors[_0x1aa8e2(0xc6)](_0x1c4c59[_0x1aa8e2(0xc9)]||_0x1c4c59['message']||_0x1aa8e2(0xe9),_0x1c4c59[_0x1aa8e2(0xd3)]?'Toolbox\x20error\x20code:\x20'+_0x1c4c59[_0x1aa8e2(0xd3)]:undefined);return _0x1c4c59[_0x1aa8e2(0x7e)];}return _0x47447b;}catch(_0xf0a483){if(_0xf0a483 instanceof Error&&_0xf0a483[_0x1aa8e2(0xba)]===_0x1aa8e2(0xd1))throw CliErrors[_0x1aa8e2(0xc6)](_0x1aa8e2(0xd5)+_0x1a28a9['toString']());throw _0xf0a483;}finally{clearTimeout(_0x183172);}}async function skillHubJsonRequest(_0x2419f3,_0x130edb={}){const _0x387829=a65_0x38dd,{method:method=_0x387829(0xeb),query:_0x429ed4,body:_0x20b094,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x130edb,_0x4055b3=_activeAK;if(!_0x4055b3)throw CliErrors[_0x387829(0x88)](_0x387829(0x81)+PRODUCT_CONFIG[_0x387829(0xa5)]+'.');const _0x4911db=getSkillHubDomain()['replace'](/\/$/,''),_0x484713=new URL(_0x2419f3,_0x4911db+'/');if(_0x429ed4)for(const [_0x4c9243,_0x4811c5]of Object[_0x387829(0xae)](_0x429ed4)){_0x4811c5!==undefined&&_0x4811c5!==null&&_0x484713['searchParams'][_0x387829(0xfe)](_0x4c9243,String(_0x4811c5));}const _0x59f254=new AbortController(),_0x2b85a6=setTimeout(()=>_0x59f254['abort'](),timeout);try{const _0xb6893a=await fetch(_0x484713['toString'](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x387829(0x87)],'X-User-AK':_0x4055b3,...headers},'body':_0x20b094,'signal':_0x59f254[_0x387829(0xad)]});let _0xb3c39c;try{_0xb3c39c=await _0xb6893a['json']();}catch{if(allowNotFound&&_0xb6893a[_0x387829(0xfd)]===0x194)return undefined;throw CliErrors[_0x387829(0xc6)](_0x387829(0xb1)+_0xb6893a[_0x387829(0xfd)]+')',_0xb6893a['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(allowNotFound&&(_0xb6893a[_0x387829(0xfd)]===0x194||_0xb3c39c?.[_0x387829(0xdb)]===0x194))return undefined;const _0x2512ee=!_0xb6893a['ok']||_0xb3c39c?.[_0x387829(0xa0)]===![]||typeof _0xb3c39c?.[_0x387829(0xdb)]===_0x387829(0xd2)&&_0xb3c39c[_0x387829(0xdb)]>=0x190;if(_0x2512ee)throw CliErrors[_0x387829(0xc6)](_0xb3c39c?.[_0x387829(0xc9)]||_0xb3c39c?.['message']||_0xb3c39c?.[_0x387829(0x90)]||'SkillHub\x20API\x20error:\x20'+_0xb6893a['status'],_0xb3c39c?.[_0x387829(0xd3)]?_0x387829(0xb7)+_0xb3c39c[_0x387829(0xd3)]:undefined);return _0xb3c39c?.[_0x387829(0x7e)]??_0xb3c39c;}catch(_0x47d935){if(_0x47d935 instanceof Error&&_0x47d935[_0x387829(0xba)]===_0x387829(0xd1))throw CliErrors[_0x387829(0xc6)]('Request\x20timeout:\x20'+_0x484713[_0x387829(0xe8)]());throw _0x47d935;}finally{clearTimeout(_0x2b85a6);}}async function skillHubBinaryRequest(_0x379427,_0x5a46e8={}){const _0x50ba30=a65_0x38dd,{query:_0x2bbdb6,headers:headers={},timeout:timeout=0x7530}=_0x5a46e8,_0x4ce326=_activeAK;if(!_0x4ce326)throw CliErrors[_0x50ba30(0x88)](_0x50ba30(0x81)+PRODUCT_CONFIG[_0x50ba30(0xa5)]+'.');const _0x23ac36=getSkillHubDomain()[_0x50ba30(0xd6)](/\/$/,''),_0x1fed8e=new URL(_0x379427,_0x23ac36+'/');if(_0x2bbdb6)for(const [_0x541625,_0xc6e7a5]of Object[_0x50ba30(0xae)](_0x2bbdb6)){_0xc6e7a5!==undefined&&_0xc6e7a5!==null&&_0x1fed8e['searchParams'][_0x50ba30(0xfe)](_0x541625,String(_0xc6e7a5));}const _0x5808f4=new AbortController(),_0x29c64b=setTimeout(()=>_0x5808f4[_0x50ba30(0xf6)](),timeout);try{const _0x52ad5b=await fetch(_0x1fed8e[_0x50ba30(0xe8)](),{'method':'GET','headers':{'Accept':_0x50ba30(0xa1),'X-Invoke-Source':PRODUCT_CONFIG[_0x50ba30(0x87)],'X-User-AK':_0x4ce326,...headers},'signal':_0x5808f4[_0x50ba30(0xad)]});if(!_0x52ad5b['ok']){let _0x2f8bab;try{const _0x51ad76=await _0x52ad5b[_0x50ba30(0x8c)]();_0x2f8bab=_0x51ad76[_0x50ba30(0xc9)]||_0x51ad76[_0x50ba30(0xa3)]||_0x51ad76['msg']||_0x51ad76[_0x50ba30(0xd3)];}catch{_0x2f8bab=await _0x52ad5b[_0x50ba30(0xf8)]()['catch'](()=>undefined);}throw CliErrors[_0x50ba30(0xc6)](_0x2f8bab||_0x50ba30(0x89)+_0x52ad5b[_0x50ba30(0xfd)],_0x50ba30(0x7a)+_0x1fed8e[_0x50ba30(0xe8)]());}return Buffer[_0x50ba30(0xbe)](await _0x52ad5b[_0x50ba30(0xd4)]());}catch(_0x2d5ed8){if(_0x2d5ed8 instanceof Error&&_0x2d5ed8['name']===_0x50ba30(0xd1))throw CliErrors[_0x50ba30(0xc6)](_0x50ba30(0xd5)+_0x1fed8e[_0x50ba30(0xe8)]());throw _0x2d5ed8;}finally{clearTimeout(_0x29c64b);}}export async function getBffScriptInfo(_0x47397d){const _0x46fcb0=a65_0x38dd,_0x28fa72=await apiRequest(_0x46fcb0(0xfb)+_0x47397d);if(!_0x28fa72[_0x46fcb0(0x7e)])throw CliErrors[_0x46fcb0(0x7b)]('BFF\x20script\x20not\x20found:\x20id='+_0x47397d);return _0x28fa72[_0x46fcb0(0x7e)];}export async function getSqlQueryInfo(_0x3b3259,_0x56e3fc){const _0x1e1c0c=a65_0x38dd,_0x298acb=await apiRequest(_0x1e1c0c(0xa2),{'method':_0x1e1c0c(0x9b),'body':{'appCode':_0x3b3259,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x56e3fc}}),_0x3cbbca=_0x298acb[_0x1e1c0c(0x7e)],_0x316bfc=_0x3cbbca&&typeof _0x3cbbca==='object'&&_0x1e1c0c(0xf4)in _0x3cbbca?_0x3cbbca[_0x1e1c0c(0xf4)]?.[0x0]:_0x3cbbca&&typeof _0x3cbbca==='object'&&'sqlCode'in _0x3cbbca?_0x3cbbca:undefined;if(!_0x316bfc)throw CliErrors[_0x1e1c0c(0x7b)](_0x1e1c0c(0xbb)+_0x56e3fc);return _0x316bfc;}function isRemoteAppItem(_0x12513a){const _0x49031a=a65_0x38dd;return!!_0x12513a&&typeof _0x12513a===_0x49031a(0xd9)&&typeof _0x12513a['appCode']===_0x49031a(0xde)&&typeof _0x12513a[_0x49031a(0xcb)]===_0x49031a(0xde);}function extractRemoteAppItems(_0x44eaf2){const _0x45fc85=a65_0x38dd;if(Array[_0x45fc85(0xc7)](_0x44eaf2))return _0x44eaf2['filter'](isRemoteAppItem);if(!_0x44eaf2||typeof _0x44eaf2!==_0x45fc85(0xd9))throw CliErrors['apiError'](_0x45fc85(0x8a));const _0x59696b=_0x44eaf2;if(Array[_0x45fc85(0xc7)](_0x59696b['tableData']))return _0x59696b[_0x45fc85(0xf4)]['filter'](isRemoteAppItem);if(_0x59696b[_0x45fc85(0x7e)]&&typeof _0x59696b[_0x45fc85(0x7e)]===_0x45fc85(0xd9)){const _0x400bbd=_0x59696b['data'];if(Array[_0x45fc85(0xc7)](_0x400bbd[_0x45fc85(0xf4)]))return _0x400bbd[_0x45fc85(0xf4)]['filter'](isRemoteAppItem);}throw CliErrors[_0x45fc85(0xc6)](_0x45fc85(0xe0));}export async function getMyApps(){const _0x516ccc=a65_0x38dd,_0x236b1a=await apiRequest(_0x516ccc(0x95));return extractRemoteAppItems(_0x236b1a[_0x516ccc(0x7e)]);}export async function getLoginUserInfo(){const _0x5daf82=a65_0x38dd,_0x348351=await apiRequest(_0x5daf82(0xf5));if(!_0x348351[_0x5daf82(0x7e)]||typeof _0x348351[_0x5daf82(0x7e)]!=='object'||Array[_0x5daf82(0xc7)](_0x348351[_0x5daf82(0x7e)]))throw CliErrors[_0x5daf82(0xc6)](_0x5daf82(0xbf));return _0x348351[_0x5daf82(0x7e)];}export async function listDatasets(_0x11e18d,_0x1e71cb){const _0x4eb1d7=a65_0x38dd,_0x181a00=await apiRequest('/client/dataset/list',{'method':_0x4eb1d7(0x9b),'body':{'appCode':_0x11e18d,..._0x1e71cb?.['code']&&{'code':_0x1e71cb[_0x4eb1d7(0xdb)]},..._0x1e71cb?.[_0x4eb1d7(0xba)]&&{'name':_0x1e71cb[_0x4eb1d7(0xba)]}}});return extractList(_0x181a00['data']);}export async function getDatasetDetail(_0x238f02){const _0x3cd2da=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x238f02));return _0x3cd2da['data'];}export async function getDatasetSdkUsageDoc(_0x16c2a1,_0x3210d9){const _0x40dfb1=a65_0x38dd,_0x5576d5=await toolboxRequest(_0x40dfb1(0xb6),{'datasetCode':_0x16c2a1,'appCode':_0x3210d9});return typeof _0x5576d5?.['markdown']==='string'?_0x5576d5[_0x40dfb1(0x7f)]:'';}export async function listRuntimeArtifacts(_0x4a4c5e,_0x47f428){const _0x1c5a5d=a65_0x38dd,_0x1b61a3=new URLSearchParams({'appCode':_0x4a4c5e});if(_0x47f428?.[_0x1c5a5d(0xb0)])_0x1b61a3[_0x1c5a5d(0xfe)](_0x1c5a5d(0xb0),_0x47f428[_0x1c5a5d(0xb0)]);if(_0x47f428?.['source'])_0x1b61a3['set']('source',_0x47f428['source']);if(_0x47f428?.[_0x1c5a5d(0x96)]!==undefined)_0x1b61a3[_0x1c5a5d(0xfe)]('favorite',String(_0x47f428['favorite']));const _0x569d23=await apiRequest(_0x1c5a5d(0xcd)+_0x1b61a3[_0x1c5a5d(0xe8)]());return Array[_0x1c5a5d(0xc7)](_0x569d23[_0x1c5a5d(0x7e)])?_0x569d23[_0x1c5a5d(0x7e)]:[];}export async function getRuntimeArtifact(_0x4a5df3,_0x882468){const _0x586f25=a65_0x38dd,_0x4e779e=await apiRequest(_0x586f25(0xb5)+_0x4a5df3+_0x586f25(0xc1)+encodeURIComponent(_0x882468));if(!_0x4e779e[_0x586f25(0x7e)])throw CliErrors['validation'](_0x586f25(0xc3)+_0x4a5df3);return _0x4e779e['data'];}export async function createRuntimeArtifact(_0x56d637,_0x5f2c97){const _0x5cb4fb=a65_0x38dd,_0x53e299=await apiRequest(_0x5cb4fb(0xa9),{'method':'POST','body':{'appCode':_0x56d637,..._0x5f2c97}});return _0x53e299[_0x5cb4fb(0x7e)];}export async function updateRuntimeArtifact(_0xda627b,_0x2a4b96,_0x4c6b41){const _0x104614=a65_0x38dd,_0x48b9c2=await apiRequest(_0x104614(0xb5)+_0xda627b+_0x104614(0x84),{'method':_0x104614(0x9b),'body':{'appCode':_0x2a4b96,..._0x4c6b41}});return _0x48b9c2[_0x104614(0x7e)];}export async function listPersonalBffs(_0x43c3d4){const _0x22eac8=a65_0x38dd,_0x4f03fd=await apiRequest(_0x22eac8(0x92)+encodeURIComponent(_0x43c3d4));return Array[_0x22eac8(0xc7)](_0x4f03fd[_0x22eac8(0x7e)])?_0x4f03fd[_0x22eac8(0x7e)]:[];}export async function getPersonalBff(_0x2d748f,_0x13208e){const _0x1d5489=a65_0x38dd,_0x1d0901=await apiRequest(_0x1d5489(0x86)+_0x2d748f+_0x1d5489(0xc1)+encodeURIComponent(_0x13208e));if(!_0x1d0901[_0x1d5489(0x7e)])throw CliErrors['validation'](_0x1d5489(0xef)+_0x2d748f);return _0x1d0901[_0x1d5489(0x7e)];}export async function createPersonalBff(_0x351bfd,_0x2b694b){const _0x39f1a9=a65_0x38dd,_0x547f5a=await apiRequest(_0x39f1a9(0x7c),{'method':_0x39f1a9(0x9b),'body':{'appCode':_0x351bfd,..._0x2b694b}});return _0x547f5a[_0x39f1a9(0x7e)];}export async function updatePersonalBff(_0x21d651,_0x1c9551,_0x28fec6){const _0x18ddd4=a65_0x38dd,_0x92dbca=await apiRequest('/client/runtime-bff/personal/'+_0x21d651+'/update',{'method':_0x18ddd4(0x9b),'body':{'appCode':_0x1c9551,..._0x28fec6}});return _0x92dbca[_0x18ddd4(0x7e)];}export async function executePersonalBff(_0x55f675,_0x2d3c52,_0x2a223f){const _0x3b60de=a65_0x38dd,_0x1885bb=await apiRequest('/client/runtime-bff/personal/'+_0x55f675+_0x3b60de(0x93)+encodeURIComponent(_0x2d3c52),{'method':_0x3b60de(0x9b),'body':_0x2a223f});return _0x1885bb['data'];}export async function listPersonalKnowledgeBaseItems(_0x38e040){const _0x3c54eb=a65_0x38dd,_0x3a1840=await apiRequest(_0x3c54eb(0xee)+encodeURIComponent(_0x38e040));return Array['isArray'](_0x3a1840[_0x3c54eb(0x7e)])?_0x3a1840['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x1f6ab5,_0x2c79e0){const _0x50f755=a65_0x38dd,_0x554d15=await apiRequest(_0x50f755(0xb2)+_0x1f6ab5+_0x50f755(0xc1)+encodeURIComponent(_0x2c79e0));if(!_0x554d15[_0x50f755(0x7e)])throw CliErrors[_0x50f755(0x7b)](_0x50f755(0x80)+_0x1f6ab5);return _0x554d15[_0x50f755(0x7e)];}export async function createPersonalKnowledgeBaseItem(_0x5015ae,_0x32d8b7){const _0x11149d=a65_0x38dd,_0x1ea78c=await apiRequest(_0x11149d(0xe4),{'method':_0x11149d(0x9b),'body':{'appCode':_0x5015ae,..._0x32d8b7}});return _0x1ea78c['data'];}export async function updatePersonalKnowledgeBaseItem(_0x261776,_0x358fe1,_0x5b2333){const _0x23a792=a65_0x38dd,_0x48eda5=await apiRequest(_0x23a792(0xb2)+_0x261776+_0x23a792(0x84),{'method':_0x23a792(0x9b),'body':{'appCode':_0x358fe1,..._0x5b2333}});return _0x48eda5[_0x23a792(0x7e)];}export async function searchKnowledgeBase(_0x4b8910,_0x3ad3e6){const _0x4f25da=a65_0x38dd,_0x2a499a=await apiRequest('/client/knowledge-base/search',{'method':_0x4f25da(0x9b),'body':{'appCode':_0x4b8910,'query':_0x3ad3e6[_0x4f25da(0xfc)],..._0x3ad3e6[_0x4f25da(0xbc)]!==undefined?{'topK':_0x3ad3e6[_0x4f25da(0xbc)]}:{}}});return Array['isArray'](_0x2a499a[_0x4f25da(0x7e)])?_0x2a499a[_0x4f25da(0x7e)]:[];}export async function getRuntimeSkillByCode(_0x41786d,_0x2c8747){const _0x92b425=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x41786d)+'/'+encodeURIComponent(_0x2c8747),{'allowNotFound':!![]});return _0x92b425?skillHubRuntimeDetailToRuntimeSkill(_0x92b425):undefined;}export async function listRuntimeSkills(_0x427a10){const _0x5ef15b=a65_0x38dd,_0x1da0ec=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x427a10['appCode'])+_0x5ef15b(0xd0),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x427a10[_0x5ef15b(0xb8)],_0x1da0ec,_0x427a10[_0x5ef15b(0xb4)]??'all',_0x427a10[_0x5ef15b(0xdb)]);}export async function listPersonalRuntimeSkills(_0x4de27f){const _0x23ee99=a65_0x38dd;return(await listRuntimeSkills({'appCode':_0x4de27f,'scope':'personal'}))[_0x23ee99(0x9f)];}export async function listCompanyRuntimeSkills(_0x3f07b8){const _0x573bd8=a65_0x38dd;return(await listRuntimeSkills({'appCode':_0x3f07b8,'scope':_0x573bd8(0xe5)}))[_0x573bd8(0xe5)];}export async function listVisibleRuntimeSkills(_0x4e228f){const _0x140886=a65_0x38dd;return(await listRuntimeSkills({'appCode':_0x4e228f,'scope':_0x140886(0xdc)}))['effective'];}export async function createPersonalRuntimeSkill(_0x14dfe3,_0x10d018){const _0xfdc648=a65_0x38dd;return publishRuntimeSkill(_0x14dfe3,_0x10d018,{'visibility':_0xfdc648(0x9e)});}export async function updatePersonalRuntimeSkill(_0x2ded35,_0x264310,_0x1d3a8f){const _0x56b4f4=a65_0x38dd;return publishRuntimeSkill(_0x264310,{..._0x1d3a8f,'skillCode':_0x1d3a8f[_0x56b4f4(0xea)]??_0x2ded35},{'visibility':'PRIVATE'});}export async function publishCompanyRuntimeSkill(_0x166d1e,_0x2d4e9e,_0x12c764={}){const _0x42ec2f=a65_0x38dd;return publishRuntimeSkill(_0x166d1e,_0x2d4e9e,{'visibility':_0x42ec2f(0xa8),'confirmWarnings':_0x12c764[_0x42ec2f(0x78)]});}export async function validateRuntimeSkillPublish(_0x234852,_0x45508b,_0x55eb00){const _0x3b14e9=a65_0x38dd,_0xbe7a48=buildRuntimeSkillPublishForm(_0x45508b,_0x55eb00[_0x3b14e9(0x79)]),_0x36794e=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x234852)+_0x3b14e9(0xf3),{'method':_0x3b14e9(0x9b),'body':_0xbe7a48});return{'valid':_0x36794e[_0x3b14e9(0x8d)]===!![],'errors':Array['isArray'](_0x36794e[_0x3b14e9(0x94)])?_0x36794e[_0x3b14e9(0x94)]:[],'warnings':Array[_0x3b14e9(0xc7)](_0x36794e['warnings'])?_0x36794e[_0x3b14e9(0xe3)]:[],'resolvedSlug':_0x36794e[_0x3b14e9(0xac)],'resolvedVersion':_0x36794e[_0x3b14e9(0xc4)]};}export async function downloadRuntimeSkillPackage(_0x2d78dc,_0x106041,_0x1aa506,_0x185229){const _0x514e81=a65_0x38dd;void _0x2d78dc;const _0x1a3540=_0x185229?_0x514e81(0xb9)+encodeURIComponent(_0x1aa506)+'/'+encodeURIComponent(_0x106041)+'/versions/'+encodeURIComponent(_0x185229)+_0x514e81(0xe6):'/api/cli/v1/skills/'+encodeURIComponent(_0x1aa506)+'/'+encodeURIComponent(_0x106041)+'/download';return skillHubBinaryRequest(_0x1a3540);}async function publishRuntimeSkill(_0x5eb3ad,_0x3aee9d,_0x133ec2){const _0x5a2d3c=a65_0x38dd,_0x5028ab=buildRuntimeSkillPublishForm(_0x3aee9d,_0x133ec2[_0x5a2d3c(0x79)]),_0x1b731d=await skillHubJsonRequest(_0x5a2d3c(0xb9)+encodeURIComponent(_0x5eb3ad)+_0x5a2d3c(0xec),{'method':_0x5a2d3c(0x9b),'query':{'confirmWarnings':_0x133ec2['confirmWarnings']===!![]?!![]:undefined},'body':_0x5028ab});return{'appCode':_0x1b731d[_0x5a2d3c(0x9a)]??_0x5eb3ad,'skillCode':_0x1b731d['slug']??_0x3aee9d[_0x5a2d3c(0xea)]??'','skillName':_0x3aee9d['skillName']??_0x1b731d[_0x5a2d3c(0xab)]??_0x3aee9d[_0x5a2d3c(0xea)],'description':_0x3aee9d[_0x5a2d3c(0xfa)],'scope':skillHubVisibilityToScope(_0x1b731d[_0x5a2d3c(0x79)]??_0x133ec2[_0x5a2d3c(0x79)])??_0x5a2d3c(0x9f),'version':_0x1b731d[_0x5a2d3c(0xaa)]??_0x3aee9d[_0x5a2d3c(0xaa)],'tags':_0x3aee9d[_0x5a2d3c(0x9c)],'content':_0x3aee9d[_0x5a2d3c(0xdf)]};}function buildRuntimeSkillPublishForm(_0x4d62db,_0x3a5487){const _0x6e5948=a65_0x38dd,_0x2b34cc=new FormData();return _0x2b34cc['set'](_0x6e5948(0xed),runtimeSkillPackageFile(_0x4d62db)),_0x2b34cc['set'](_0x6e5948(0x79),_0x3a5487),_0x2b34cc;}function runtimeSkillPackageFile(_0x3a640e){const _0x1b77c3=a65_0x38dd;if(!_0x3a640e[_0x1b77c3(0xc8)])throw CliErrors[_0x1b77c3(0x7b)]('Missing\x20Skill\x20package\x20payload.');const _0x2f3def=Buffer['from'](_0x3a640e[_0x1b77c3(0xc8)],_0x1b77c3(0xda)),_0x3faa0e=new Blob([_0x2f3def],{'type':'application/zip'}),_0x2ee6f2=(_0x3a640e[_0x1b77c3(0xea)]||_0x1b77c3(0x82))+_0x1b77c3(0xf9);if(typeof File!=='undefined')return new File([_0x3faa0e],_0x2ee6f2,{'type':_0x1b77c3(0x7d)});return _0x3faa0e;}function normalizeSkillHubRuntimeListResponse(_0x1e991a,_0x563625,_0x21f314,_0x335275){const _0x42c247=a65_0x38dd,_0x31f644=Array[_0x42c247(0xc7)](_0x563625)?_0x563625:Array['isArray'](_0x563625?.[_0x42c247(0xa4)])?_0x563625[_0x42c247(0xa4)]:[],_0x3ebd59=_0x335275?.['trim'](),_0x2035d8=_0x31f644['filter'](_0x38ad2e=>!_0x3ebd59||_0x38ad2e['slug']===_0x3ebd59)[_0x42c247(0xf1)](skillHubRuntimeItemToRuntimeSkill)[_0x42c247(0x97)](_0x1b2d1e=>Boolean(_0x1b2d1e)),_0x17f03f=_0x2035d8['filter'](_0x44a0ad=>_0x44a0ad[_0x42c247(0xb4)]===_0x42c247(0x9f)),_0x332473=_0x2035d8[_0x42c247(0x97)](_0x19980a=>_0x19980a[_0x42c247(0xb4)]===_0x42c247(0xe5));return{'appCode':_0x1e991a,'personal':_0x21f314===_0x42c247(0xe5)?[]:_0x17f03f,'company':_0x21f314===_0x42c247(0x9f)?[]:_0x332473,'effective':buildEffectiveRuntimeSkills(_0x17f03f,_0x332473,_0x21f314)};}function skillHubRuntimeItemToRuntimeSkill(_0x5dc444){const _0xceefe0=a65_0x38dd,_0x2d75ce=_0x5dc444[_0xceefe0(0xab)]?.[_0xceefe0(0xc2)](),_0x5d4ed3=skillHubVisibilityToScope(_0x5dc444[_0xceefe0(0x79)]);if(!_0x2d75ce||!_0x5d4ed3)return undefined;return{'id':_0x5dc444['id'],'appCode':_0x5dc444[_0xceefe0(0x9a)],'skillCode':_0x2d75ce,'skillName':_0x5dc444['displayName']??_0x2d75ce,'description':_0x5dc444['summary'],'scope':_0x5d4ed3,'version':skillHubRuntimeItemVersion(_0x5dc444),'status':_0x5dc444[_0xceefe0(0xfd)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x57c470){const _0x12fb7e=a65_0x38dd,_0x343f95=_0x57c470[_0x12fb7e(0xab)]?.[_0x12fb7e(0xc2)]();if(!_0x343f95)return undefined;return{'id':_0x57c470['id'],'appCode':_0x57c470[_0x12fb7e(0x9a)],'skillCode':_0x343f95,'skillName':_0x57c470[_0x12fb7e(0x91)]??_0x343f95,'description':_0x57c470[_0x12fb7e(0xa6)],'scope':skillHubVisibilityToScope(_0x57c470[_0x12fb7e(0x79)])??_0x57c470['visibility']?.[_0x12fb7e(0xdd)](),'version':skillHubRuntimeItemVersion(_0x57c470),'status':_0x57c470[_0x12fb7e(0xfd)]};}function skillHubVisibilityToScope(_0x4a72cf){const _0x31491a=a65_0x38dd;if(_0x4a72cf==='PRIVATE')return _0x31491a(0x9f);if(_0x4a72cf===_0x31491a(0xa8))return _0x31491a(0xe5);return undefined;}function skillHubRuntimeItemVersion(_0x3be5c8){const _0x464608=a65_0x38dd;return _0x3be5c8[_0x464608(0xc0)]?.[_0x464608(0xaa)]??_0x3be5c8[_0x464608(0xce)]?.[_0x464608(0xaa)]??_0x3be5c8[_0x464608(0x98)]?.[_0x464608(0xaa)];}function buildEffectiveRuntimeSkills(_0x5eda78,_0x562c05,_0x561fb9){const _0x3928f5=a65_0x38dd;if(_0x561fb9===_0x3928f5(0x9f))return _0x5eda78;if(_0x561fb9===_0x3928f5(0xe5))return _0x562c05;const _0x4ed29c=new Map();for(const _0x16f988 of _0x562c05){_0x4ed29c[_0x3928f5(0xfe)](_0x16f988[_0x3928f5(0xea)],_0x16f988);}for(const _0xd8e43b of _0x5eda78){_0x4ed29c[_0x3928f5(0xfe)](_0xd8e43b[_0x3928f5(0xea)],_0xd8e43b);}return Array[_0x3928f5(0xbe)](_0x4ed29c[_0x3928f5(0xe1)]());}function normalizeRuntimeSkillListResponse(_0x31aeeb,_0x4b08b0){const _0x24e4da=a65_0x38dd;if(Array[_0x24e4da(0xc7)](_0x4b08b0)){const _0x2ef922=_0x4b08b0[_0x24e4da(0x97)](_0xd78553=>_0xd78553[_0x24e4da(0xb4)]===_0x24e4da(0x9f)),_0x571c0d=_0x4b08b0[_0x24e4da(0x97)](_0x24c438=>_0x24c438[_0x24e4da(0xb4)]==='company');return{'appCode':_0x31aeeb,'personal':_0x2ef922,'company':_0x571c0d,'effective':[..._0x571c0d,..._0x2ef922]};}return{'appCode':_0x4b08b0?.[_0x24e4da(0xb8)]??_0x31aeeb,'personal':Array[_0x24e4da(0xc7)](_0x4b08b0?.[_0x24e4da(0x9f)])?_0x4b08b0[_0x24e4da(0x9f)]:[],'company':Array[_0x24e4da(0xc7)](_0x4b08b0?.[_0x24e4da(0xe5)])?_0x4b08b0['company']:[],'effective':Array[_0x24e4da(0xc7)](_0x4b08b0?.[_0x24e4da(0x8b)])?_0x4b08b0[_0x24e4da(0x8b)]:[]};}
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 +1 @@
1
- (function(_0x1a438a,_0x2fc2e2){const _0x1ca310=a66_0x4611,_0x319c26=_0x1a438a();while(!![]){try{const _0xbb54ea=parseInt(_0x1ca310(0x18b))/0x1*(-parseInt(_0x1ca310(0x185))/0x2)+-parseInt(_0x1ca310(0x184))/0x3*(-parseInt(_0x1ca310(0x181))/0x4)+parseInt(_0x1ca310(0x17d))/0x5*(-parseInt(_0x1ca310(0x18d))/0x6)+parseInt(_0x1ca310(0x18a))/0x7*(parseInt(_0x1ca310(0x188))/0x8)+-parseInt(_0x1ca310(0x17b))/0x9*(parseInt(_0x1ca310(0x180))/0xa)+parseInt(_0x1ca310(0x186))/0xb+-parseInt(_0x1ca310(0x182))/0xc;if(_0xbb54ea===_0x2fc2e2)break;else _0x319c26['push'](_0x319c26['shift']());}catch(_0x363694){_0x319c26['push'](_0x319c26['shift']());}}}(a66_0x5a60,0x4e531));import{listDatasets}from'../core/api-client.js';function a66_0x5a60(){const _0x1cefd7=['2486061avCoBo','get','57635DIBmrn','map','dbId','20UODuaC','2044xLiwCs','1258248ylHBkw','db-','2667BijxMY','546BSgSQo','6369297diEakG','has','287728bWByYV','set','112kUvEQz','1930KoBAib','entries','54aUcank','dbName'];a66_0x5a60=function(){return _0x1cefd7;};return a66_0x5a60();}const cache=new Map();function a66_0x4611(_0xac20dd,_0x3f011c){_0xac20dd=_0xac20dd-0x17a;const _0x5a60d9=a66_0x5a60();let _0x4611ff=_0x5a60d9[_0xac20dd];return _0x4611ff;}export async function listDatabases(_0x102775){const _0x5f2d47=a66_0x4611;if(cache[_0x5f2d47(0x187)](_0x102775))return cache[_0x5f2d47(0x17c)](_0x102775);const _0x56135a=await listDatasets(_0x102775),_0x46cb2c=new Map();for(const _0x2856e4 of _0x56135a){const _0x9dea7c=_0x2856e4['dbtableConfig'];_0x9dea7c?.['dbId']!=null&&_0x46cb2c[_0x5f2d47(0x189)](_0x9dea7c[_0x5f2d47(0x17f)],_0x9dea7c[_0x5f2d47(0x17a)]??_0x5f2d47(0x183)+_0x9dea7c[_0x5f2d47(0x17f)]);}const _0x2c40a6=[..._0x46cb2c[_0x5f2d47(0x18c)]()][_0x5f2d47(0x17e)](([_0x4da454,_0x1522a3])=>({'dbId':_0x4da454,'dbName':_0x1522a3}));return cache[_0x5f2d47(0x189)](_0x102775,_0x2c40a6),_0x2c40a6;}export async function getDbName(_0x1aeaec,_0x6c4180){const _0x561bd7=a66_0x4611;try{const _0x350169=await listDatabases(_0x1aeaec);return _0x350169['find'](_0x2dccbb=>_0x2dccbb[_0x561bd7(0x17f)]===_0x6c4180)?.[_0x561bd7(0x17a)];}catch{return undefined;}}
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 +1 @@
1
- (function(_0x412d70,_0x3ab08c){const _0x4900cb=a67_0x2aef,_0x14d021=_0x412d70();while(!![]){try{const _0x401efc=parseInt(_0x4900cb(0x191))/0x1+parseInt(_0x4900cb(0x189))/0x2*(parseInt(_0x4900cb(0x197))/0x3)+-parseInt(_0x4900cb(0x18e))/0x4*(parseInt(_0x4900cb(0x192))/0x5)+-parseInt(_0x4900cb(0x1a6))/0x6+parseInt(_0x4900cb(0x193))/0x7+-parseInt(_0x4900cb(0x1a3))/0x8*(parseInt(_0x4900cb(0x188))/0x9)+parseInt(_0x4900cb(0x194))/0xa;if(_0x401efc===_0x3ab08c)break;else _0x14d021['push'](_0x14d021['shift']());}catch(_0x3b14af){_0x14d021['push'](_0x14d021['shift']());}}}(a67_0x2127,0x208b4));function a67_0x2127(){const _0x44bff5=['trim','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','getOne','function','18TsFruF','2pHBnOo','bff','isArray','map','appCode','4fyNAHH','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','validation','249184NxueZc','1184705AFeucc','591801ODpmNh','2675170siZZCR','authMode','field','42078pHKdDK',']\x20must\x20be\x20an\x20object.','data\x20aggregate\x20--params.aggregate[','object','models','string','delete','accessKey','column','dataset_','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','sql','301648RfFgle',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','update','1017702ANgDOv','batchCreate','execute','aggregate','invokeSource'];a67_0x2127=function(){return _0x44bff5;};return a67_0x2127();}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a67_0x2aef(_0x34efc7,_0x3b6b68){_0x34efc7=_0x34efc7-0x183;const _0x212720=a67_0x2127();let _0x2aef55=_0x212720[_0x34efc7];return _0x2aef55;}import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x18c854){const _0x3e0df7=a67_0x2aef;_client=createClient({'appCode':_0x18c854[_0x3e0df7(0x18d)],'env':_0x18c854['env'],'authMode':_0x18c854[_0x3e0df7(0x195)],..._0x18c854[_0x3e0df7(0x19e)]?{'accessKey':_0x18c854[_0x3e0df7(0x19e)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3e0df7(0x183)]}}});}function ensureClient(){const _0x52af3f=a67_0x2aef;if(!_client)throw new Error(_0x52af3f(0x18f));return _client;}function normalizeAggregateParams(_0x53cb14){const _0x24fd7e=a67_0x2aef,_0x33f60c=_0x53cb14['aggregate'];if(_0x33f60c===undefined)return _0x53cb14;if(!Array[_0x24fd7e(0x18b)](_0x33f60c))throw CliErrors[_0x24fd7e(0x190)](_0x24fd7e(0x185));return{..._0x53cb14,'aggregate':_0x33f60c[_0x24fd7e(0x18c)]((_0x32ecd3,_0x5f0e7d)=>{const _0x414dec=_0x24fd7e;if(!_0x32ecd3||typeof _0x32ecd3!==_0x414dec(0x19a)||Array[_0x414dec(0x18b)](_0x32ecd3))throw CliErrors[_0x414dec(0x190)](_0x414dec(0x199)+_0x5f0e7d+_0x414dec(0x198));const _0x104647=_0x32ecd3[_0x414dec(0x19f)]??_0x32ecd3[_0x414dec(0x196)];if(typeof _0x104647!==_0x414dec(0x19c)||_0x104647[_0x414dec(0x184)]()==='')throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x5f0e7d+_0x414dec(0x1a4));const _0x4e6ddc={..._0x32ecd3,'column':_0x104647};return delete _0x4e6ddc[_0x414dec(0x196)],_0x4e6ddc;})};}export async function executeData(_0x4d274c,_0x18b176,_0x1136e3){const _0x283726=a67_0x2aef,_0x12bb56=ensureClient(),_0x58b268=_0x283726(0x1a0)+_0x4d274c,_0x58d733=_0x12bb56[_0x283726(0x19b)][_0x58b268];if(!_0x58d733||typeof _0x58d733[_0x18b176]!==_0x283726(0x187))throw new Error(_0x283726(0x1a1)+_0x18b176+'\x22.\x20'+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x18b176===_0x283726(0x1a7))return _0x58d733[_0x283726(0x1a7)](parseBatchCreateItemsFromParams(_0x1136e3));const _0x33f92a=_0x1136e3!==undefined&&_0x1136e3!==null&&!Array['isArray'](_0x1136e3)?_0x1136e3:{};switch(_0x18b176){case _0x283726(0x186):{const _0x1d65ef=_0x33f92a['id'];if(_0x1d65ef===undefined||_0x1d65ef===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x58d733[_0x283726(0x186)](_0x1d65ef);}case _0x283726(0x1a5):{const {id:_0x1ceaf3,..._0x174681}=_0x33f92a;if(_0x1ceaf3===undefined||_0x1ceaf3===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 _0x58d733[_0x283726(0x1a5)](_0x1ceaf3,_0x174681);}case _0x283726(0x19d):{const _0x59170a=_0x33f92a['id'];if(_0x59170a===undefined||_0x59170a===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x58d733[_0x283726(0x19d)](_0x59170a);}case _0x283726(0x1a9):return _0x58d733[_0x283726(0x1a9)](normalizeAggregateParams(_0x33f92a));default:return _0x58d733[_0x18b176](_0x33f92a);}}export async function executeSdkSql(_0x543ab9,_0x8e86f1){const _0x393e84=a67_0x2aef,_0x981630=ensureClient();return _0x981630[_0x393e84(0x1a2)][_0x393e84(0x1a8)]({'sqlCode':_0x543ab9,'params':_0x8e86f1});}export async function executeSdkBff(_0x921787,_0x191a7d){const _0x52edca=a67_0x2aef,_0x3a3148=ensureClient();return _0x3a3148[_0x52edca(0x18a)][_0x52edca(0x1a8)]({'scriptName':_0x921787,'params':_0x191a7d});}
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});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a68_0x4607d5=a68_0x3e7b;function a68_0xa9a0(){const _0x40b0fe=['newConfigFileName','2783930cIGRkg','2231010YeAmDm','12CuSZqX','\x20file.','1472169SuHtZM','\x20or\x20run\x20`','7222901mfmXDK','23715261winaBc','4301760OvbdRU','18GdsaVa','1683466McMorq'];a68_0xa9a0=function(){return _0x40b0fe;};return a68_0xa9a0();}(function(_0x30af85,_0x24ee5e){const _0x202359=a68_0x3e7b,_0xb37f76=_0x30af85();while(!![]){try{const _0x1dce49=parseInt(_0x202359(0xc1))/0x1+parseInt(_0x202359(0xc4))/0x2+-parseInt(_0x202359(0xc7))/0x3*(parseInt(_0x202359(0xc5))/0x4)+parseInt(_0x202359(0xc3))/0x5*(parseInt(_0x202359(0xc0))/0x6)+parseInt(_0x202359(0xbd))/0x7+-parseInt(_0x202359(0xbf))/0x8+-parseInt(_0x202359(0xbe))/0x9;if(_0x1dce49===_0x24ee5e)break;else _0xb37f76['push'](_0xb37f76['shift']());}catch(_0x14499b){_0xb37f76['push'](_0xb37f76['shift']());}}}(a68_0xa9a0,0xd10be));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a68_0x3e7b(_0x2800a1,_0x4763b2){_0x2800a1=_0x2800a1-0xbd;const _0xa9a0d9=a68_0xa9a0();let _0x3e7b33=_0xa9a0d9[_0x2800a1];return _0x3e7b33;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a68_0x4607d5(0xc2)]+a68_0x4607d5(0xc8)+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a68_0x4607d5(0xc2)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a68_0x4607d5(0xc2)]+a68_0x4607d5(0xc6)});
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 +1 @@
1
- function a69_0x2f46(_0x584ca5,_0x5d245a){_0x584ca5=_0x584ca5-0x135;var _0x138f30=a69_0x138f();var _0x2f462e=_0x138f30[_0x584ca5];return _0x2f462e;}(function(_0x2cbc81,_0x5352e3){var _0x1f2ca3=a69_0x2f46,_0x46d724=_0x2cbc81();while(!![]){try{var _0x40e32c=-parseInt(_0x1f2ca3(0x137))/0x1*(parseInt(_0x1f2ca3(0x13b))/0x2)+parseInt(_0x1f2ca3(0x135))/0x3+parseInt(_0x1f2ca3(0x139))/0x4+-parseInt(_0x1f2ca3(0x13e))/0x5*(-parseInt(_0x1f2ca3(0x13a))/0x6)+parseInt(_0x1f2ca3(0x136))/0x7+parseInt(_0x1f2ca3(0x13d))/0x8*(parseInt(_0x1f2ca3(0x138))/0x9)+parseInt(_0x1f2ca3(0x13f))/0xa*(-parseInt(_0x1f2ca3(0x13c))/0xb);if(_0x40e32c===_0x5352e3)break;else _0x46d724['push'](_0x46d724['shift']());}catch(_0x299947){_0x46d724['push'](_0x46d724['shift']());}}}(a69_0x138f,0x45fc0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a69_0x4a78a2}from'@lovrabet/cli-framework';function a69_0x138f(){var _0x39bb45=['1621689zBWaTI','523670eXCAmR','4lBvkTy','28242PXTbSL','715620ONMhOq','2179698mdHUal','74234ugSMjA','5093KXQPqX','192pguPxB','5EpWcln','17230UbZqyh'];a69_0x138f=function(){return _0x39bb45;};return a69_0x138f();}export function buildAllFlags(_0x1a04e1){return a69_0x4a78a2(_0x1a04e1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
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 +1 @@
1
- function a70_0x2da7(_0x118044,_0x673fec){_0x118044=_0x118044-0x120;const _0xc108d1=a70_0xc108();let _0x2da767=_0xc108d1[_0x118044];return _0x2da767;}function a70_0xc108(){const _0x93d2f2=['3CfjUZf','279108yJlabt','134FEzqTX','body','5045zcdLML','632007YQWqDQ','description','6777474OgEHFI','42vJlDXU','67850BrTuxv','48hqlMGZ','764956Mhpgga','1932430odCOnX'];a70_0xc108=function(){return _0x93d2f2;};return a70_0xc108();}(function(_0x2fb98b,_0x1ff269){const _0x44ee2f=a70_0x2da7,_0x28a5c7=_0x2fb98b();while(!![]){try{const _0x4d9338=parseInt(_0x44ee2f(0x12c))/0x1*(parseInt(_0x44ee2f(0x12a))/0x2)+-parseInt(_0x44ee2f(0x128))/0x3*(parseInt(_0x44ee2f(0x126))/0x4)+-parseInt(_0x44ee2f(0x124))/0x5+parseInt(_0x44ee2f(0x129))/0x6*(-parseInt(_0x44ee2f(0x123))/0x7)+parseInt(_0x44ee2f(0x125))/0x8*(-parseInt(_0x44ee2f(0x120))/0x9)+parseInt(_0x44ee2f(0x127))/0xa+parseInt(_0x44ee2f(0x122))/0xb;if(_0x4d9338===_0x1ff269)break;else _0x28a5c7['push'](_0x28a5c7['shift']());}catch(_0x42ce7b){_0x28a5c7['push'](_0x28a5c7['shift']());}}}(a70_0xc108,0x3b1d9));export function dryRun(_0x3f515a,_0x518ae3){const _0x33cf62={'method':_0x3f515a,'url':_0x518ae3},_0x26e2ab={'body'(_0x5b05e0){const _0x4e6984=a70_0x2da7;return _0x33cf62[_0x4e6984(0x12b)]=_0x5b05e0,_0x26e2ab;},'description'(_0x2cc26d){const _0xfc3aed=a70_0x2da7;return _0x33cf62[_0xfc3aed(0x121)]=_0x2cc26d,_0x26e2ab;},'build'(){return{..._0x33cf62};}};return _0x26e2ab;}
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();}