@lovrabet/lovrabet-cli 2.1.16 → 2.1.18-beta.1
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a66_0x2c3f70=a66_0x485c;function a66_0x4026(){const _0x36f0c4=['Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear\x20output','45bXbtyG','5750192fkdgCt','dryRun','sqlcode','json\x20|\x20pretty\x20|\x20compress','2725219WJjUzi','691704IAGyrF','boolean','type','non-interactive','Record\x20ID','nonInteractive','app','clear','cliBinName','Alias\x20for\x20--non-interactive','2321330egfZql','Override\x20appcode','2IpGoYC','appcode','<code>','format','string','map','env','1197436aCNAaA','yes','Verbose\x20output','production\x20|\x20development\x20|\x20daily','851691ImEjmp','5KWIHea','params','Force\x20non-interactive\x20mode\x20(CI)','cliDisplayName','dry-run','verbose','616803YpzTWX','name','Name\x20filter','SQL\x20query\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)'];a66_0x4026=function(){return _0x36f0c4;};return a66_0x4026();}(function(_0x3e22a8,_0x1b5d5b){const _0x39df63=a66_0x485c,_0x2db8f2=_0x3e22a8();while(!![]){try{const _0x255cb6=parseInt(_0x39df63(0x10d))/0x1+parseInt(_0x39df63(0xfb))/0x2*(parseInt(_0x39df63(0x106))/0x3)+parseInt(_0x39df63(0x102))/0x4*(-parseInt(_0x39df63(0x107))/0x5)+-parseInt(_0x39df63(0xef))/0x6+parseInt(_0x39df63(0xee))/0x7+parseInt(_0x39df63(0x115))/0x8+-parseInt(_0x39df63(0x114))/0x9*(parseInt(_0x39df63(0xf9))/0xa);if(_0x255cb6===_0x1b5d5b)break;else _0x2db8f2['push'](_0x2db8f2['shift']());}catch(_0x43c3de){_0x2db8f2['push'](_0x2db8f2['shift']());}}}(a66_0x4026,0x69d4b));function a66_0x485c(_0x1c95c8,_0xbcf3a5){_0x1c95c8=_0x1c95c8-0xeb;const _0x402649=a66_0x4026();let _0x485cc9=_0x402649[_0x1c95c8];return _0x485cc9;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a66_0x2c3f70(0xf7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a66_0x2c3f70(0x10a)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a66_0x2c3f70(0xfc),'meowKey':'appcode','type':a66_0x2c3f70(0xff),'description':a66_0x2c3f70(0xfa),'hint':a66_0x2c3f70(0xfd)},{'name':a66_0x2c3f70(0xf5),'meowKey':a66_0x2c3f70(0xf5),'type':a66_0x2c3f70(0xff),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a66_0x2c3f70(0x101),'meowKey':'env','type':a66_0x2c3f70(0xff),'description':'Environment','hint':a66_0x2c3f70(0x105)},{'name':a66_0x2c3f70(0xfe),'meowKey':a66_0x2c3f70(0xfe),'type':'string','description':'Output\x20format','hint':a66_0x2c3f70(0xed)},{'name':'jq','meowKey':'jq','type':a66_0x2c3f70(0xff),'description':a66_0x2c3f70(0x111),'hint':'<expr>'},{'name':'dry-run','meowKey':a66_0x2c3f70(0xeb),'type':a66_0x2c3f70(0xf0),'description':'Preview\x20operation\x20without\x20executing'},{'name':a66_0x2c3f70(0x103),'meowKey':a66_0x2c3f70(0x103),'type':a66_0x2c3f70(0xf0),'description':a66_0x2c3f70(0x112)},{'name':a66_0x2c3f70(0xf2),'meowKey':a66_0x2c3f70(0xf4),'type':a66_0x2c3f70(0xf0),'description':a66_0x2c3f70(0x109)},{'name':'global','meowKey':'global','type':a66_0x2c3f70(0xf0),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a66_0x2c3f70(0xf8),'hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a66_0x2c3f70(0xff),'description':a66_0x2c3f70(0xf3),'hidden':!![]},{'name':a66_0x2c3f70(0x10e),'meowKey':a66_0x2c3f70(0x10e),'type':a66_0x2c3f70(0xff),'description':a66_0x2c3f70(0x10f),'hidden':!![]},{'name':a66_0x2c3f70(0xec),'meowKey':a66_0x2c3f70(0xec),'type':a66_0x2c3f70(0xff),'description':a66_0x2c3f70(0x110),'hidden':!![]},{'name':a66_0x2c3f70(0x108),'meowKey':a66_0x2c3f70(0x108),'type':a66_0x2c3f70(0xff),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':'verbose','meowKey':a66_0x2c3f70(0x10c),'type':a66_0x2c3f70(0xf0),'description':a66_0x2c3f70(0x104),'hidden':!![]},{'name':'clear','meowKey':a66_0x2c3f70(0xf6),'type':a66_0x2c3f70(0xf0),'description':a66_0x2c3f70(0x113),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a66_0x2c3f70(0xfc),'app','env',a66_0x2c3f70(0xfe),'jq',a66_0x2c3f70(0x10b),a66_0x2c3f70(0x103),a66_0x2c3f70(0xf2),'ci']);export function buildMeowFlags(){const _0x1cc073=a66_0x2c3f70;return Object['fromEntries'](GLOBAL_FLAGS[_0x1cc073(0x100)](_0x4b4199=>[_0x4b4199['meowKey'],{'type':_0x4b4199[_0x1cc073(0xf1)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x1161a6=a67_0x5b6d;function a67_0x46e8(){const _0x225712=['compress','production','12mtRyAi','46405Imihan','main','375236ukmFUo','18241836tUcRHK','12983839RcVESd','1775624cBhUpR','1KhsFOl','20vyyJWD','1158CxXWGh','193914jHHPhF','14PNKgux','675746OtNJsx'];a67_0x46e8=function(){return _0x225712;};return a67_0x46e8();}function a67_0x5b6d(_0x242af8,_0x556f14){_0x242af8=_0x242af8-0x137;const _0x46e8e3=a67_0x46e8();let _0x5b6d6a=_0x46e8e3[_0x242af8];return _0x5b6d6a;}(function(_0x25f5d0,_0x2ae2ca){const _0x50ed50=a67_0x5b6d,_0x5f058f=_0x25f5d0();while(!![]){try{const _0x5d43cb=-parseInt(_0x50ed50(0x142))/0x1*(parseInt(_0x50ed50(0x138))/0x2)+parseInt(_0x50ed50(0x13b))/0x3*(-parseInt(_0x50ed50(0x13e))/0x4)+parseInt(_0x50ed50(0x13c))/0x5*(parseInt(_0x50ed50(0x144))/0x6)+parseInt(_0x50ed50(0x137))/0x7*(-parseInt(_0x50ed50(0x141))/0x8)+-parseInt(_0x50ed50(0x145))/0x9*(parseInt(_0x50ed50(0x143))/0xa)+-parseInt(_0x50ed50(0x140))/0xb+parseInt(_0x50ed50(0x13f))/0xc;if(_0x5d43cb===_0x2ae2ca)break;else _0x5f058f['push'](_0x5f058f['shift']());}catch(_0x562730){_0x5f058f['push'](_0x5f058f['shift']());}}}(a67_0x46e8,0xe3472));export const DEFAULT_APP_PROFILE_NAME=a67_0x1161a6(0x13d);export const DEFAULT_CONFIG_VALUES={'env':a67_0x1161a6(0x13a),'format':a67_0x1161a6(0x139),'locale':'en-US','riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a67_0x1161a6(0x139);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a68_0x2fa660=a68_0xbf26;function a68_0x4559(){const _0x600fd8=['5163444kSFErN','1574490TQfQZo','3375cMCWev','575263eHtUIw','3460516pPFSaG','123292IiKuku','npmPackageName','npmRegistryBaseUrl','8663431gyyDoT','83624fqvyJW','265gCyjkp'];a68_0x4559=function(){return _0x600fd8;};return a68_0x4559();}(function(_0x3b5e84,_0x1a4b06){const _0x16179b=a68_0xbf26,_0x39abab=_0x3b5e84();while(!![]){try{const _0x24ce9d=parseInt(_0x16179b(0x1ac))/0x1+-parseInt(_0x16179b(0x1ad))/0x2+-parseInt(_0x16179b(0x1b4))/0x3+-parseInt(_0x16179b(0x1ae))/0x4*(parseInt(_0x16179b(0x1b3))/0x5)+parseInt(_0x16179b(0x1aa))/0x6+parseInt(_0x16179b(0x1b1))/0x7+parseInt(_0x16179b(0x1b2))/0x8*(parseInt(_0x16179b(0x1ab))/0x9);if(_0x24ce9d===_0x1a4b06)break;else _0x39abab['push'](_0x39abab['shift']());}catch(_0x292d8a){_0x39abab['push'](_0x39abab['shift']());}}}(a68_0x4559,0xde351));function a68_0xbf26(_0x5d6e19,_0x350a7e){_0x5d6e19=_0x5d6e19-0x1aa;const _0x455962=a68_0x4559();let _0xbf26d7=_0x455962[_0x5d6e19];return _0xbf26d7;}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a68_0x2fa660(0x1af)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a68_0x2fa660(0x1b0)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x26fd5f=a69_0x451b;(function(_0x213435,_0xce6ef){const _0x594436=a69_0x451b,_0x500c57=_0x213435();while(!![]){try{const _0x5aeab5=parseInt(_0x594436(0xaf))/0x1*(parseInt(_0x594436(0x9e))/0x2)+-parseInt(_0x594436(0xaa))/0x3*(-parseInt(_0x594436(0xb2))/0x4)+parseInt(_0x594436(0xae))/0x5+parseInt(_0x594436(0xa9))/0x6+parseInt(_0x594436(0xa8))/0x7*(parseInt(_0x594436(0xb0))/0x8)+-parseInt(_0x594436(0xa3))/0x9+parseInt(_0x594436(0x9d))/0xa*(-parseInt(_0x594436(0xad))/0xb);if(_0x5aeab5===_0xce6ef)break;else _0x500c57['push'](_0x500c57['shift']());}catch(_0x399b28){_0x500c57['push'](_0x500c57['shift']());}}}(a69_0x4fc2,0xddd4b));import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a69_0x4fc2(){const _0x4f5366=['16VTXHWA','463550kknkFA','14576VoRDqO','api','userDomain','user','apiDomain','11832723NxTpgQ','production','nonProduction','domains','skillhub','130683CPcAhc','5919522RdlDUg','1223562OPvzWG','runtimeDomain','skillHubDomain','1177PNlouy','8967630mOoclv','242TWdIzT','432LQVADt','runtime'];a69_0x4fc2=function(){return _0x4f5366;};return a69_0x4fc2();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x2dba17){const _0x16bcec=a69_0x451b;customApiDomain=_0x2dba17?.[_0x16bcec(0xa2)],customUserDomain=_0x2dba17?.[_0x16bcec(0xa0)],customRuntimeDomain=_0x2dba17?.[_0x16bcec(0xab)],customSkillHubDomain=_0x2dba17?.[_0x16bcec(0xac)];}function a69_0x451b(_0xf385a0,_0x231966){_0xf385a0=_0xf385a0-0x9d;const _0x4fc212=a69_0x4fc2();let _0x451bf3=_0x4fc212[_0xf385a0];return _0x451bf3;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa4)][a69_0x26fd5f(0xa1)]:PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa5)][a69_0x26fd5f(0xa1)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x26fd5f(0xa6)]['production'][a69_0x26fd5f(0x9f)]:PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa5)][a69_0x26fd5f(0x9f)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a69_0x26fd5f(0xa4)]['runtime']:PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa5)][a69_0x26fd5f(0xb1)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa4)][a69_0x26fd5f(0xa7)]:PRODUCT_CONFIG[a69_0x26fd5f(0xa6)][a69_0x26fd5f(0xa5)][a69_0x26fd5f(0xa7)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x47e98c=a70_0x5658;(function(_0x1b41a5,_0x1edd0a){const _0x488cd8=a70_0x5658,_0x1ddc5e=_0x1b41a5();while(!![]){try{const _0x41031a=-parseInt(_0x488cd8(0x7e))/0x1*(parseInt(_0x488cd8(0x71))/0x2)+-parseInt(_0x488cd8(0x73))/0x3+parseInt(_0x488cd8(0x72))/0x4+parseInt(_0x488cd8(0x78))/0x5*(parseInt(_0x488cd8(0x7c))/0x6)+-parseInt(_0x488cd8(0x77))/0x7*(-parseInt(_0x488cd8(0x75))/0x8)+parseInt(_0x488cd8(0x70))/0x9+-parseInt(_0x488cd8(0x74))/0xa*(parseInt(_0x488cd8(0x7b))/0xb);if(_0x41031a===_0x1edd0a)break;else _0x1ddc5e['push'](_0x1ddc5e['shift']());}catch(_0x3c44dc){_0x1ddc5e['push'](_0x1ddc5e['shift']());}}}(a70_0x1c57,0xbff76));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=['production','development',a70_0x47e98c(0x76)];export function normalizeEnv(_0x2f2f8e){const _0x158909=a70_0x47e98c;return _0x2f2f8e===_0x158909(0x7a)?_0x158909(0x7f):_0x2f2f8e;}export function isProduction(_0x5923c9){return normalizeEnv(_0x5923c9)==='production';}export function isDaily(_0x46636d){const _0x37e965=a70_0x47e98c;return normalizeEnv(_0x46636d)===_0x37e965(0x76);}export function isDev(_0x4624ce){const _0x54ca6e=a70_0x47e98c,_0x24a470=normalizeEnv(_0x4624ce);return _0x24a470==='development'||_0x24a470===_0x54ca6e(0x7d);}function a70_0x1c57(){const _0x11808b=['9200196cZsPeP','2vKWlrg','5976576HMjqkt','2241282RhMayu','210kjgIIb','40CVnvus','daily','811489nHSsZz','6390810mTAuNs','ENV','online','1396736oYhERF','6UoLvmJ','dev','174301eFVKJA','production'];a70_0x1c57=function(){return _0x11808b;};return a70_0x1c57();}let env=normalizeEnv(productEnv(a70_0x47e98c(0x79))||a70_0x47e98c(0x7f));function a70_0x5658(_0x591876,_0x381d02){_0x591876=_0x591876-0x70;const _0x1c5760=a70_0x1c57();let _0x5658e1=_0x1c5760[_0x591876];return _0x5658e1;}export function getEnv(){return env;}export function initEnv(_0x2c71e8){env=normalizeEnv(_0x2c71e8);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a71_0x38f0(){const _0x3a8ec4=['6971958sTXFGa','2266110PmdrPj','16wudaIA','pretty','compress','json','35cahVwL','7819656phghyi','53328GDkkeU','58772PdfSzD','33pnyQta','644826wrSzmq','2YNjWdw','4706949CywfnI','95HVMcIF'];a71_0x38f0=function(){return _0x3a8ec4;};return a71_0x38f0();}const a71_0x104bf1=a71_0x51c5;(function(_0x197f84,_0x29acf5){const _0x103dc8=a71_0x51c5,_0x2d8358=_0x197f84();while(!![]){try{const _0x3a8b3e=-parseInt(_0x103dc8(0xc9))/0x1+-parseInt(_0x103dc8(0xca))/0x2*(parseInt(_0x103dc8(0xcb))/0x3)+-parseInt(_0x103dc8(0xd6))/0x4*(-parseInt(_0x103dc8(0xcc))/0x5)+parseInt(_0x103dc8(0xd5))/0x6*(-parseInt(_0x103dc8(0xd3))/0x7)+parseInt(_0x103dc8(0xcf))/0x8*(parseInt(_0x103dc8(0xcd))/0x9)+parseInt(_0x103dc8(0xce))/0xa*(parseInt(_0x103dc8(0xd7))/0xb)+parseInt(_0x103dc8(0xd4))/0xc;if(_0x3a8b3e===_0x29acf5)break;else _0x2d8358['push'](_0x2d8358['shift']());}catch(_0x1a0063){_0x2d8358['push'](_0x2d8358['shift']());}}}(a71_0x38f0,0xdc251));function a71_0x51c5(_0x39edcb,_0x2d896b){_0x39edcb=_0x39edcb-0xc9;const _0x38f0a5=a71_0x38f0();let _0x51c5e3=_0x38f0a5[_0x39edcb];return _0x51c5e3;}export const OUTPUT_FORMAT_VALUES=[a71_0x104bf1(0xd2),a71_0x104bf1(0xd0),a71_0x104bf1(0xd1)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a72_0x476ebf=a72_0xc68d;function a72_0xc68d(_0x48e706,_0x37082f){_0x48e706=_0x48e706-0x18d;const _0x4afa89=a72_0x4afa();let _0xc68dfd=_0x4afa89[_0x48e706];return _0xc68dfd;}(function(_0x285aa2,_0x39f386){const _0x31822b=a72_0xc68d,_0x275cc4=_0x285aa2();while(!![]){try{const _0x2ed91a=parseInt(_0x31822b(0x1a5))/0x1+-parseInt(_0x31822b(0x1ab))/0x2+parseInt(_0x31822b(0x18f))/0x3+parseInt(_0x31822b(0x1ad))/0x4*(-parseInt(_0x31822b(0x1a0))/0x5)+-parseInt(_0x31822b(0x195))/0x6+parseInt(_0x31822b(0x18e))/0x7*(-parseInt(_0x31822b(0x199))/0x8)+-parseInt(_0x31822b(0x1a9))/0x9*(-parseInt(_0x31822b(0x192))/0xa);if(_0x2ed91a===_0x39f386)break;else _0x275cc4['push'](_0x275cc4['shift']());}catch(_0x4d18c){_0x275cc4['push'](_0x275cc4['shift']());}}}(a72_0x4afa,0x5d9cf));function a72_0x4afa(){const _0x4c00bc=['lovrabet/lovrabet-cli','https://daily-api.lovrabet.com','https://api.lovrabet.com','@lovrabet/lovrabet-cli','legacyEnvPrefixes','206345ZsMpUc','.lovrabetrc','https://user.lovrabet.com','.lovrabet-runtime.log','Lovrabet\x20User\x20Center','260618ZhRiGl','SKIP_NPX_SKILLS','lovrabet','https://skills.lovrabet.com','381420vxcDWh','cli:lovrabet-runtime','134346fpROdx','Lovrabet\x20Runtime\x20CLI','16ibgpmh','.lovrabet','/user/ak','440223rTHmSu','2178261OenuHt','https://skills-daily.lovrabet.com','envPrefix','110IPUaUJ','https://user-daily.lovrabet.com','RABETBASE','2381844FGptkT','map','https://daily-runtime.lovrabet.com','.lovrabet.json','56fqbaif','https://runtime.lovrabet.com'];a72_0x4afa=function(){return _0x4c00bc;};return a72_0x4afa();}export const PRODUCT_CONFIG={'cliBinName':a72_0x476ebf(0x1a7),'cliDisplayName':a72_0x476ebf(0x1ac),'npmPackageName':a72_0x476ebf(0x19e),'skillSource':a72_0x476ebf(0x19b),'npmRegistryBaseUrl':'https://registry.npmjs.org','envPrefix':'LOVRABET','legacyEnvPrefixes':[a72_0x476ebf(0x194)],'configFileNames':['.lovrabet.json',a72_0x476ebf(0x1a1)],'newConfigFileName':a72_0x476ebf(0x198),'homeDirName':a72_0x476ebf(0x1ae),'logFileName':a72_0x476ebf(0x1a3),'invokeSource':a72_0x476ebf(0x1aa),'userCenterDisplayName':a72_0x476ebf(0x1a4),'skipNpxSkillsEnvSuffix':a72_0x476ebf(0x1a6),'domains':{'production':{'user':a72_0x476ebf(0x1a2),'api':a72_0x476ebf(0x19d),'runtime':a72_0x476ebf(0x19a),'skillhub':a72_0x476ebf(0x1a8)},'nonProduction':{'user':a72_0x476ebf(0x193),'api':a72_0x476ebf(0x19c),'runtime':a72_0x476ebf(0x197),'skillhub':a72_0x476ebf(0x190)}},'accessKeyCreatePath':a72_0x476ebf(0x18d)};export function productEnvName(_0x20bf76){const _0xca9e5b=a72_0x476ebf;return PRODUCT_CONFIG[_0xca9e5b(0x191)]+'_'+_0x20bf76;}export function productEnvNames(_0x21cb66){const _0x5ddadb=a72_0x476ebf;return[productEnvName(_0x21cb66),...PRODUCT_CONFIG[_0x5ddadb(0x19f)][_0x5ddadb(0x196)](_0x48c171=>_0x48c171+'_'+_0x21cb66)];}export function productEnv(_0x2b0faf){for(const _0x7c53d8 of productEnvNames(_0x2b0faf)){const _0x4258c1=process.env[_0x7c53d8];if(_0x4258c1!==undefined)return _0x4258c1;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x27da(){const _0x337aa5=['10mfqCuo','2478536EBXlmn','20947256hcwpri','8840874ywrmbt','1324680buwwEc','1311714aoZPBh','2744025zHIeIc','write','581268KugKQP','read'];a73_0x27da=function(){return _0x337aa5;};return a73_0x27da();}function a73_0x4606(_0x33d84c,_0x453cf5){_0x33d84c=_0x33d84c-0xc7;const _0x27da9e=a73_0x27da();let _0x4606e3=_0x27da9e[_0x33d84c];return _0x4606e3;}const a73_0x4930d6=a73_0x4606;(function(_0x22df9a,_0x4c1b18){const _0x557f06=a73_0x4606,_0x214db3=_0x22df9a();while(!![]){try{const _0x10a44e=parseInt(_0x557f06(0xce))/0x1+parseInt(_0x557f06(0xca))/0x2+-parseInt(_0x557f06(0xcc))/0x3+parseInt(_0x557f06(0xc7))/0x4*(-parseInt(_0x557f06(0xd0))/0x5)+parseInt(_0x557f06(0xcb))/0x6+-parseInt(_0x557f06(0xc9))/0x7+parseInt(_0x557f06(0xc8))/0x8;if(_0x10a44e===_0x4c1b18)break;else _0x214db3['push'](_0x214db3['shift']());}catch(_0x4f0a96){_0x214db3['push'](_0x214db3['shift']());}}}(a73_0x27da,0xa209d));export const RISK_LEVEL_VALUES=[a73_0x4930d6(0xcf),a73_0x4930d6(0xcd),'high-risk-write'];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a74_0x5d86ad=a74_0x2b24;function a74_0x1f69(){const _0x4de2bb=['372516VqSyre','3282846RynxSs','1210548LWjgtX','domains','43552Aidrex','210MQCHCB','production','50680OWdJiy','6gYYWhz','5zWsNkS','600HgqCal','user','7815775tpyBBw','accessKeyCreatePath','86418DpldcQ'];a74_0x1f69=function(){return _0x4de2bb;};return a74_0x1f69();}(function(_0x3b21db,_0x50a34f){const _0x2c34a6=a74_0x2b24,_0x5ecd66=_0x3b21db();while(!![]){try{const _0x56e412=parseInt(_0x2c34a6(0x1cf))/0x1+parseInt(_0x2c34a6(0x1c7))/0x2+parseInt(_0x2c34a6(0x1c8))/0x3*(-parseInt(_0x2c34a6(0x1d1))/0x4)+-parseInt(_0x2c34a6(0x1c9))/0x5*(parseInt(_0x2c34a6(0x1d0))/0x6)+parseInt(_0x2c34a6(0x1d4))/0x7*(-parseInt(_0x2c34a6(0x1d3))/0x8)+parseInt(_0x2c34a6(0x1ce))/0x9*(parseInt(_0x2c34a6(0x1ca))/0xa)+parseInt(_0x2c34a6(0x1cc))/0xb;if(_0x56e412===_0x50a34f)break;else _0x5ecd66['push'](_0x5ecd66['shift']());}catch(_0x3aa282){_0x5ecd66['push'](_0x5ecd66['shift']());}}}(a74_0x1f69,0x5a07e));import{PRODUCT_CONFIG}from'../constant/product.js';function a74_0x2b24(_0x9561aa,_0x4c75aa){_0x9561aa=_0x9561aa-0x1c6;const _0x1f69b8=a74_0x1f69();let _0x2b24b4=_0x1f69b8[_0x9561aa];return _0x2b24b4;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a74_0x5d86ad(0x1d2)][a74_0x5d86ad(0x1c6)][a74_0x5d86ad(0x1cb)]+PRODUCT_CONFIG[a74_0x5d86ad(0x1cd)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a74_0x197f(_0x5ef059,_0x520ab1){_0x5ef059=_0x5ef059-0x7a;const _0x24ff29=a74_0x24ff();let _0x197ff2=_0x24ff29[_0x5ef059];return _0x197ff2;}const a74_0x6c261e=a74_0x197f;(function(_0x3dd16c,_0x4b99fd){const _0x58ba8e=a74_0x197f,_0x5c20b1=_0x3dd16c();while(!![]){try{const _0x44e5b7=-parseInt(_0x58ba8e(0x8b))/0x1+-parseInt(_0x58ba8e(0x7f))/0x2+-parseInt(_0x58ba8e(0xa2))/0x3*(-parseInt(_0x58ba8e(0xbd))/0x4)+parseInt(_0x58ba8e(0x90))/0x5*(parseInt(_0x58ba8e(0x9d))/0x6)+parseInt(_0x58ba8e(0x96))/0x7*(parseInt(_0x58ba8e(0xa6))/0x8)+-parseInt(_0x58ba8e(0x86))/0x9*(-parseInt(_0x58ba8e(0xac))/0xa)+-parseInt(_0x58ba8e(0xba))/0xb;if(_0x44e5b7===_0x4b99fd)break;else _0x5c20b1['push'](_0x5c20b1['shift']());}catch(_0x16139c){_0x5c20b1['push'](_0x5c20b1['shift']());}}}(a74_0x24ff,0xcb18e));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['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a74_0x6c261e(0xad)];function resolveConfigPath(_0x2350d5){for(const _0x46390b of CONFIG_NAMES){const _0x350f7d=resolve(_0x2350d5,_0x46390b);if(existsSync(_0x350f7d))return _0x350f7d;}return undefined;}export function resolveWriteConfigPath(_0x108ea8){const _0x48bf61=a74_0x6c261e,_0x16ffa7=_0x108ea8===_0x48bf61(0x85)?process[_0x48bf61(0x98)]():homedir(),_0x1c3b2d=resolveConfigPath(_0x16ffa7);return _0x1c3b2d??resolve(_0x16ffa7,NEW_CONFIG_NAME);}export function readConfigFile(_0x7181fb){try{if(existsSync(_0x7181fb)){const _0x2cdf4a=readFileSync(_0x7181fb,{'encoding':'utf8'});if(_0x2cdf4a){const _0x33ef43=JSON['parse'](_0x2cdf4a);return migrateOnlineEnv(_0x7181fb,_0x33ef43),_0x33ef43;}}}catch{}return{};}function migrateOnlineEnv(_0x8091e1,_0x333327){const _0x20d8c7=a74_0x6c261e;let _0x15cd6f=![];_0x333327[_0x20d8c7(0x84)]===_0x20d8c7(0x92)&&(_0x333327[_0x20d8c7(0x84)]=_0x20d8c7(0x87),_0x15cd6f=!![]);if(_0x333327['apps']&&typeof _0x333327[_0x20d8c7(0x8c)]===_0x20d8c7(0xa4))for(const _0x34d5a9 of Object[_0x20d8c7(0xc3)](_0x333327[_0x20d8c7(0x8c)])){_0x34d5a9&&_0x34d5a9['env']===_0x20d8c7(0x92)&&(_0x34d5a9[_0x20d8c7(0x84)]=_0x20d8c7(0x87),_0x15cd6f=!![]);}if(_0x15cd6f)try{writeConfigFile(_0x8091e1,_0x333327);}catch{}}export function writeConfigFile(_0x54b24d,_0x40c739){const _0x3111ae=a74_0x6c261e,_0x567f24=dirname(_0x54b24d);!existsSync(_0x567f24)&&mkdirSync(_0x567f24,{'recursive':!![]});const _0x12e7c7=_0x54b24d+_0x3111ae(0x9a);try{writeFileSync(_0x12e7c7,JSON['stringify'](_0x40c739,null,0x2)+'\x0a',{'encoding':_0x3111ae(0xb7),'mode':0x180});try{renameSync(_0x12e7c7,_0x54b24d);}catch(_0x5551c6){if(_0x5551c6[_0x3111ae(0xc9)]===_0x3111ae(0x97)||_0x5551c6[_0x3111ae(0xc9)]===_0x3111ae(0x9e)||_0x5551c6[_0x3111ae(0xc9)]===_0x3111ae(0x81)){writeFileSync(_0x54b24d,JSON[_0x3111ae(0x89)](_0x40c739,null,0x2)+'\x0a',{'encoding':_0x3111ae(0xb7)});try{unlinkSync(_0x12e7c7);}catch{}}else throw _0x5551c6;}}catch(_0x1c4318){try{unlinkSync(_0x12e7c7);}catch{}throw _0x1c4318;}}export function isNonInteractiveMode(_0x2bf113){const _0x32ab30=a74_0x6c261e;return!!(_0x2bf113[_0x32ab30(0x82)]||_0x2bf113['ci']||productEnvNames('CI')[_0x32ab30(0xc2)](_0xb23223=>process.env[_0xb23223]==='true')||process.env.CI===_0x32ab30(0x99)||!process[_0x32ab30(0x7c)][_0x32ab30(0xaa)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2c80a8=a74_0x6c261e;if(!process[_0x2c80a8(0x94)][_0x2c80a8(0xaa)])return![];try{const _0x4cc454=process[_0x2c80a8(0x94)][_0x2c80a8(0xbe)];return process['stdin'][_0x2c80a8(0xb6)](!![]),process[_0x2c80a8(0x94)][_0x2c80a8(0xb6)](_0x4cc454??![]),!![];}catch{return![];}}export async function createContext(_0x139a88){const _0x555097=a74_0x6c261e,_0x4665bc=readRawConfig(),_0x550756=buildConfig(_0x4665bc,_0x139a88);await initGlobalEnvironment(_0x550756);const {getUserDomain:_0x3721c3,getApiDomain:_0x2ee0a0}=await import('./constant/domain.js'),_0x2ffea1={'apiDomain':_0x2ee0a0(),'userDomain':_0x3721c3()},_0x362d5d=await buildAuth(_0x550756);logger['setLogPath'](process['cwd']());const _0x41b7b4=(CLI_BIN_NAME+'\x20'+process[_0x555097(0x9f)][_0x555097(0x91)](0x2)[_0x555097(0xa1)]('\x20'))['trim']();logger[_0x555097(0x8f)](_0x41b7b4);const _0x36d81e=isNonInteractiveMode(_0x139a88);return{'config':_0x550756,'auth':_0x362d5d,'logger':logger,'env':_0x2ffea1,'nonInteractive':_0x36d81e};}export function buildConfigFromFlags(_0xa712b1){return buildConfig(readRawConfig(),_0xa712b1);}export function getLocalAppAliases(_0x4489d0){const _0x4370cf=a74_0x6c261e;return _0x4489d0[_0x4370cf(0x8c)]&&typeof _0x4489d0['apps']===_0x4370cf(0xa4)?_0x4489d0[_0x4370cf(0x8c)]:{};}function a74_0x24ff(){const _0xf76f17=['99066qgDBWV','EXDEV','argv','inherit','join','2847633BDMcVp','FORMAT','object','APP','2796912JquOWa','skillHubDomain','find','runtimeDomain','isTTY','local-alias','4628630nSdLsb','newConfigFileName','string','authRequired','parse','./constant/domain.js','top-level','daily','PAGE_SIZE','write','setRawMode','utf8','maxRisk','VERBOSE','6579507ivjxJf','ENV','globalConfig','4mqNWsw','isRaw','locale','global','appcode','some','values','riskLevel','app','userDomain','error','message','code','pageSize','development','stdout','raw','apiDomain','543190fjXJdp','missing','EACCES','nonInteractive','format','env','project','9sLrtRF','production','APPCODE','stringify','host','1122540xpXlGa','apps','accessKey','defaultApp','setRawCommand','110ZrHUac','slice','online','empty','stdin','high-risk-write','21oIdsGv','EPERM','cwd','true','.tmp','ACCESS_KEY','trim'];a74_0x24ff=function(){return _0xf76f17;};return a74_0x24ff();}export function resolveLocalAppAliasCode(_0x10e99b,_0x2636df){const _0x3decc3=a74_0x6c261e;if(!_0x2636df)return undefined;const _0x2a9aa5=getLocalAppAliases(_0x10e99b)[_0x2636df],_0x194aba=_0x2a9aa5?.[_0x3decc3(0xc1)];return typeof _0x194aba==='string'&&_0x194aba[_0x3decc3(0x9c)]()?_0x194aba['trim']():undefined;}export function readAppCodeFromConfig(){const _0x3f2dee=a74_0x6c261e,_0x5dc1d5=readRawConfig(),_0x1d0619=_0x5dc1d5[_0x3f2dee(0xc1)]??_0x5dc1d5['app'];if(typeof _0x1d0619===_0x3f2dee(0xae)&&_0x1d0619['trim']())return _0x1d0619[_0x3f2dee(0x9c)]();const _0x18874a=resolveLocalAppAliasCode(_0x5dc1d5,typeof _0x5dc1d5[_0x3f2dee(0x8e)]===_0x3f2dee(0xae)?_0x5dc1d5[_0x3f2dee(0x8e)]:undefined);if(_0x18874a)return _0x18874a;const _0x58c34c=normalizeEnv(String(_0x5dc1d5['env']||'production')),_0x50465b=isDaily(_0x58c34c)?_0x3f2dee(0xb3):isDev(_0x58c34c)?_0x3f2dee(0x7b):_0x3f2dee(0x87),_0x41033b=resolveCachedAppCode(typeof _0x5dc1d5[_0x3f2dee(0x8e)]===_0x3f2dee(0xae)?_0x5dc1d5[_0x3f2dee(0x8e)]:undefined,_0x50465b,typeof _0x5dc1d5['accessKey']===_0x3f2dee(0xae)?_0x5dc1d5[_0x3f2dee(0x8d)]:undefined);if(_0x41033b)return _0x41033b;const _0x4f7134=Object['values'](getLocalAppAliases(_0x5dc1d5))[_0x3f2dee(0xa8)](_0x267ca7=>_0x267ca7?.['appcode']);return typeof _0x4f7134?.[_0x3f2dee(0xc1)]===_0x3f2dee(0xae)&&_0x4f7134[_0x3f2dee(0xc1)][_0x3f2dee(0x9c)]()?_0x4f7134[_0x3f2dee(0xc1)]['trim']():undefined;}export function readScopedConfig(_0x412239){const _0x35849b=a74_0x6c261e,_0x1feed4=_0x412239[_0x35849b(0xc0)]?_0x35849b(0xc0):_0x35849b(0x85);return readConfigFile(resolveWriteConfigPath(_0x1feed4));}export function writeScopedConfig(_0x359cc3,_0x175f1d){const _0x36ffff=a74_0x6c261e,_0x6aa069=_0x175f1d[_0x36ffff(0xc0)]?'global':_0x36ffff(0x85);writeConfigFile(resolveWriteConfigPath(_0x6aa069),_0x359cc3);}export async function initGlobalEnvironment(_0x185d60){const _0x143213=a74_0x6c261e,{initEnv:_0x3c73d8}=await import('./constant/env.js');_0x3c73d8(_0x185d60[_0x143213(0x84)]);const {initDomains:_0x168f6d}=await import(_0x143213(0xb1));_0x168f6d({'apiDomain':_0x185d60[_0x143213(0x7d)][_0x143213(0x7e)]||_0x185d60['raw'][_0x143213(0x8a)]||undefined,'userDomain':_0x185d60[_0x143213(0x7d)][_0x143213(0xc6)]||undefined,'runtimeDomain':_0x185d60['raw'][_0x143213(0xa9)]||undefined,'skillHubDomain':_0x185d60['raw'][_0x143213(0xa7)]||undefined});}export function getProjectConfigPath(){const _0x4360a7=a74_0x6c261e;return resolveConfigPath(process[_0x4360a7(0x98)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5c8380){const _0x5ae5a3=a74_0x6c261e;if(!existsSync(_0x5c8380))return{'status':_0x5ae5a3(0x80)};try{const _0x4ee9f7=readFileSync(_0x5c8380,{'encoding':'utf8'});if(!_0x4ee9f7?.['trim']())return{'status':_0x5ae5a3(0x93)};const _0x2db2b6=JSON[_0x5ae5a3(0xb0)](_0x4ee9f7);return{'status':'ok','data':_0x2db2b6};}catch(_0x4511db){return{'status':_0x5ae5a3(0xc7),'message':_0x4511db instanceof Error?_0x4511db[_0x5ae5a3(0xc8)]:String(_0x4511db)};}}export function loadRawConfigLayers(_0xc4af55){const _0x45f706=a74_0x6c261e;let _0x4f7e43={},_0x3ec766={},_0x20dac7,_0x287aba;try{_0x20dac7=resolveConfigPath(homedir());if(_0x20dac7){const _0x550c1a=readFileSync(_0x20dac7,{'encoding':_0x45f706(0xb7)});if(_0x550c1a)_0x4f7e43=JSON[_0x45f706(0xb0)](_0x550c1a);}}catch{}try{const _0x24eef2=_0xc4af55||process[_0x45f706(0x98)]();_0x287aba=resolveConfigPath(_0x24eef2);if(_0x287aba){const _0x2b8d43=readFileSync(_0x287aba,{'encoding':'utf8'});if(_0x2b8d43)_0x3ec766=JSON['parse'](_0x2b8d43);}}catch{}return{'globalPath':_0x20dac7,'projectPath':_0x287aba,'globalConfig':_0x4f7e43,'projectConfig':_0x3ec766};}function mergeRawConfigLayers(_0x3fce29){const _0x451ee3=a74_0x6c261e,{globalConfig:_0x21d61a,projectConfig:_0x46de03}=_0x3fce29;if(_0x46de03[_0x451ee3(0xa0)]===![]){const _0x210213={..._0x46de03};return delete _0x210213[_0x451ee3(0xa0)],_0x210213;}const _0x48c697={..._0x21d61a,..._0x46de03};if(_0x451ee3(0x8e)in _0x46de03)_0x48c697[_0x451ee3(0x8e)]=_0x46de03['defaultApp'];else _0x21d61a['defaultApp']&&(_0x48c697[_0x451ee3(0x8e)]=_0x21d61a[_0x451ee3(0x8e)]);return _0x48c697;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x25636f){return mergeRawConfigLayers(loadRawConfigLayers(_0x25636f));}export function readRawConfigWithLayers(_0x3c5130){const _0x113ae1=loadRawConfigLayers(_0x3c5130);return{'config':mergeRawConfigLayers(_0x113ae1),'layers':_0x113ae1};}export function resolveDefaultAppSource(_0x57f2bb){const _0x5de675=a74_0x6c261e;if('defaultApp'in _0x57f2bb['projectConfig'])return _0x5de675(0x85);if(_0x57f2bb['projectConfig'][_0x5de675(0xa0)]===![])return null;if(_0x57f2bb[_0x5de675(0xbc)][_0x5de675(0x8e)])return'global';return null;}function buildConfig(_0x4d1f01,_0x3f9507){const _0x2ac099=a74_0x6c261e,_0x3b89e7=_0x4d1f01[_0x2ac099(0x8e)]||undefined,_0x52d846=_0x3f9507[_0x2ac099(0xc5)]||env(_0x2ac099(0xa5))||undefined,_0x139178=_0x52d846||_0x3b89e7||undefined,_0x5a0c52=env(_0x2ac099(0x9b))||_0x4d1f01[_0x2ac099(0x8d)]||undefined,_0x373431=_0x3f9507[_0x2ac099(0x84)]||env(_0x2ac099(0xbb))||_0x4d1f01[_0x2ac099(0x84)]||DEFAULT_CONFIG_VALUES[_0x2ac099(0x84)],_0xe2b6c2=normalizeEnv(String(_0x373431)),_0x4b13ac=isDaily(_0xe2b6c2)?_0x2ac099(0xb3):isDev(_0xe2b6c2)?_0x2ac099(0x7b):_0x2ac099(0x87),_0x2d802e=typeof _0x3f9507[_0x2ac099(0xc1)]===_0x2ac099(0xae)?_0x3f9507[_0x2ac099(0xc1)]:undefined,_0xae6ee5=env(_0x2ac099(0x88)),_0x4aeb9a=_0x52d846?undefined:_0x4d1f01[_0x2ac099(0xc1)]||_0x4d1f01[_0x2ac099(0xc5)]||undefined,_0x4d8933=_0x52d846||(_0x4aeb9a?undefined:_0x3b89e7),_0x1230d8=resolveLocalAppAliasCode(_0x4d1f01,_0x4d8933),_0x5e9d5a=resolveCachedAppCode(_0x4d8933,_0x4b13ac,_0x5a0c52),_0x16abc6=_0x2d802e||_0xae6ee5||_0x4aeb9a||_0x1230d8||_0x5e9d5a||undefined,_0xb9acd2=_0x2d802e?'explicit':_0xae6ee5?_0x2ac099(0x84):_0x4aeb9a?_0x2ac099(0xb2):_0x1230d8?_0x2ac099(0xab):_0x5e9d5a?'cache':undefined,_0x5c39d4=_0x4d1f01[_0x2ac099(0xbf)]||DEFAULT_CONFIG_VALUES[_0x2ac099(0xbf)],_0x1e8c9e=undefined,_0x18a0af=_0x3f9507[_0x2ac099(0x83)]||env(_0x2ac099(0xa3))||_0x4d1f01[_0x2ac099(0x83)],_0x3a8e81=normalizeLegacyOutputFormat(_0x18a0af),_0x501f0b=env(_0x2ac099(0xb4))||_0x4d1f01[_0x2ac099(0x7a)],_0x42cfa1=_0x501f0b?Number(_0x501f0b)||undefined:undefined,_0x8e49a6=_0x4d1f01[_0x2ac099(0xc4)]||_0x4d1f01[_0x2ac099(0xb8)],_0x504497=_0x8e49a6==='read'||_0x8e49a6===_0x2ac099(0xb5)||_0x8e49a6===_0x2ac099(0x95)?_0x8e49a6:DEFAULT_CONFIG_VALUES['riskLevel'],_0x10aa8d=env(_0x2ac099(0xb9)),_0x6ccecd=_0x10aa8d==='1'||_0x10aa8d===_0x2ac099(0x99);return{'appCode':typeof _0x16abc6===_0x2ac099(0xae)&&_0x16abc6[_0x2ac099(0x9c)]()?_0x16abc6[_0x2ac099(0x9c)]():undefined,'appCodeSource':_0xb9acd2,'env':_0x4b13ac,'locale':_0x5c39d4,'cookie':_0x1e8c9e,'accessKey':_0x5a0c52,'format':_0x3a8e81,'pageSize':_0x42cfa1,'riskLevel':_0x504497,'verbose':_0x6ccecd,'defaultApp':_0x3b89e7,'currentApp':typeof _0x139178===_0x2ac099(0xae)?_0x139178:undefined,'raw':_0x4d1f01};}function env(_0x1ba5cf){return productEnv(_0x1ba5cf);}async function buildAuth(_0x1c6600){const _0x279de3=a74_0x6c261e,_0x35624a='',_0x39fce8=!!_0x1c6600[_0x279de3(0x8d)];return{'cookie':_0x35624a,'isLoggedIn':_0x39fce8,async 'getOrLogin'(){const _0x3f4a18=_0x279de3;if(_0x39fce8)return _0x35624a;throw CliErrors[_0x3f4a18(0xaf)]();}};}
|
|
1
|
+
const a75_0x87185b=a75_0x449f;(function(_0x311914,_0x25214c){const _0x2e408f=a75_0x449f,_0x1cbb7a=_0x311914();while(!![]){try{const _0x5c61fb=-parseInt(_0x2e408f(0x1b2))/0x1*(-parseInt(_0x2e408f(0x1b7))/0x2)+-parseInt(_0x2e408f(0x1a3))/0x3*(parseInt(_0x2e408f(0x1a7))/0x4)+parseInt(_0x2e408f(0x1e2))/0x5+-parseInt(_0x2e408f(0x1c8))/0x6*(-parseInt(_0x2e408f(0x1ca))/0x7)+parseInt(_0x2e408f(0x1ba))/0x8*(parseInt(_0x2e408f(0x1de))/0x9)+parseInt(_0x2e408f(0x1a5))/0xa+parseInt(_0x2e408f(0x199))/0xb*(-parseInt(_0x2e408f(0x1c7))/0xc);if(_0x5c61fb===_0x25214c)break;else _0x1cbb7a['push'](_0x1cbb7a['shift']());}catch(_0x6c9e49){_0x1cbb7a['push'](_0x1cbb7a['shift']());}}}(a75_0x18db,0x40864));function a75_0x18db(){const _0x1b7f6c=['setRawCommand','skillHubDomain','locale','development','inherit','defaultApp','app','18477BzBeiT','trim','userDomain','accessKey','975220loqrkE','.tmp','155353PoNxVM','env','missing','pageSize','top-level','global','code','online','true','APPCODE','9eWafWN','setRawMode','5063900QiEBRn','parse','320396vtaTfV','explicit','utf8','message','format','slice','isRaw','project','EPERM','EACCES','./constant/domain.js','467SSBNSB','APP','string','production','apiDomain','2Glwiwj','riskLevel','ACCESS_KEY','1288XrZINE','nonInteractive','setLogPath','argv','stdin','join','globalConfig','projectConfig','authRequired','configFileNames','values','cwd','object','612yPAmcI','1752wohUsi','apps','4613GSSiQz','host','appcode','isTTY','./constant/env.js','maxRisk','high-risk-write','raw','ENV','runtimeDomain','FORMAT','local-alias','VERBOSE'];a75_0x18db=function(){return _0x1b7f6c;};return a75_0x18db();}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[a75_0x87185b(0x1c3)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x5e722e){for(const _0x32c6ef of CONFIG_NAMES){const _0x189f73=resolve(_0x5e722e,_0x32c6ef);if(existsSync(_0x189f73))return _0x189f73;}return undefined;}export function resolveWriteConfigPath(_0x4425cb){const _0x4324b3=a75_0x87185b,_0x2cf1d7=_0x4425cb===_0x4324b3(0x1ae)?process['cwd']():homedir(),_0x115bd1=resolveConfigPath(_0x2cf1d7);return _0x115bd1??resolve(_0x2cf1d7,NEW_CONFIG_NAME);}export function readConfigFile(_0x540a41){const _0x327145=a75_0x87185b;try{if(existsSync(_0x540a41)){const _0x114180=readFileSync(_0x540a41,{'encoding':'utf8'});if(_0x114180){const _0x4c3b09=JSON[_0x327145(0x1a6)](_0x114180);return migrateOnlineEnv(_0x540a41,_0x4c3b09),_0x4c3b09;}}}catch{}return{};}function migrateOnlineEnv(_0x51c845,_0x2ea6ea){const _0x54871e=a75_0x87185b;let _0x59659=![];_0x2ea6ea[_0x54871e(0x19a)]===_0x54871e(0x1a0)&&(_0x2ea6ea['env']=_0x54871e(0x1b5),_0x59659=!![]);if(_0x2ea6ea[_0x54871e(0x1c9)]&&typeof _0x2ea6ea[_0x54871e(0x1c9)]===_0x54871e(0x1c6))for(const _0xdcc0b of Object[_0x54871e(0x1c4)](_0x2ea6ea[_0x54871e(0x1c9)])){_0xdcc0b&&_0xdcc0b[_0x54871e(0x19a)]===_0x54871e(0x1a0)&&(_0xdcc0b[_0x54871e(0x19a)]=_0x54871e(0x1b5),_0x59659=!![]);}if(_0x59659)try{writeConfigFile(_0x51c845,_0x2ea6ea);}catch{}}export function writeConfigFile(_0x4666fd,_0x56c906){const _0x18ab58=a75_0x87185b,_0x2b1951=dirname(_0x4666fd);!existsSync(_0x2b1951)&&mkdirSync(_0x2b1951,{'recursive':!![]});const _0x353179=_0x4666fd+_0x18ab58(0x198);try{writeFileSync(_0x353179,JSON['stringify'](_0x56c906,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x353179,_0x4666fd);}catch(_0x1578b4){if(_0x1578b4[_0x18ab58(0x19f)]===_0x18ab58(0x1af)||_0x1578b4[_0x18ab58(0x19f)]==='EXDEV'||_0x1578b4[_0x18ab58(0x19f)]===_0x18ab58(0x1b0)){writeFileSync(_0x4666fd,JSON['stringify'](_0x56c906,null,0x2)+'\x0a',{'encoding':_0x18ab58(0x1a9)});try{unlinkSync(_0x353179);}catch{}}else throw _0x1578b4;}}catch(_0x2eb7f4){try{unlinkSync(_0x353179);}catch{}throw _0x2eb7f4;}}export function isNonInteractiveMode(_0x364249){const _0x5b8e41=a75_0x87185b;return!!(_0x364249[_0x5b8e41(0x1bb)]||_0x364249['ci']||productEnvNames('CI')['some'](_0x385573=>process.env[_0x385573]===_0x5b8e41(0x1a1))||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x53441e=a75_0x87185b;if(!process['stdin'][_0x53441e(0x1cd)])return![];try{const _0x464fee=process[_0x53441e(0x1be)][_0x53441e(0x1ad)];return process['stdin'][_0x53441e(0x1a4)](!![]),process[_0x53441e(0x1be)][_0x53441e(0x1a4)](_0x464fee??![]),!![];}catch{return![];}}export async function createContext(_0x9ebdc6){const _0x1c94d6=a75_0x87185b,_0x40fed5=readRawConfig(),_0x2815bd=buildConfig(_0x40fed5,_0x9ebdc6);await initGlobalEnvironment(_0x2815bd);const {getUserDomain:_0x19cd59,getApiDomain:_0x3447a4}=await import(_0x1c94d6(0x1b1)),_0x4fea29={'apiDomain':_0x3447a4(),'userDomain':_0x19cd59()},_0x480a3e=await buildAuth(_0x2815bd);logger[_0x1c94d6(0x1bc)](process[_0x1c94d6(0x1c5)]());const _0x49bb0e=(CLI_BIN_NAME+'\x20'+process[_0x1c94d6(0x1bd)][_0x1c94d6(0x1ac)](0x2)[_0x1c94d6(0x1bf)]('\x20'))['trim']();logger[_0x1c94d6(0x1d7)](_0x49bb0e);const _0x65c8d5=isNonInteractiveMode(_0x9ebdc6);return{'config':_0x2815bd,'auth':_0x480a3e,'logger':logger,'env':_0x4fea29,'nonInteractive':_0x65c8d5};}export function buildConfigFromFlags(_0x49be8b){return buildConfig(readRawConfig(),_0x49be8b);}function a75_0x449f(_0x4d932b,_0x149d05){_0x4d932b=_0x4d932b-0x198;const _0x18db27=a75_0x18db();let _0x449f0b=_0x18db27[_0x4d932b];return _0x449f0b;}export function getLocalAppAliases(_0x45378f){const _0x3c94b5=a75_0x87185b;return _0x45378f[_0x3c94b5(0x1c9)]&&typeof _0x45378f['apps']===_0x3c94b5(0x1c6)?_0x45378f[_0x3c94b5(0x1c9)]:{};}export function resolveLocalAppAliasCode(_0xda1a8c,_0x1df0c1){const _0x437e8e=a75_0x87185b;if(!_0x1df0c1)return undefined;const _0x494280=getLocalAppAliases(_0xda1a8c)[_0x1df0c1],_0x55fd2c=_0x494280?.[_0x437e8e(0x1cc)];return typeof _0x55fd2c===_0x437e8e(0x1b4)&&_0x55fd2c[_0x437e8e(0x1df)]()?_0x55fd2c[_0x437e8e(0x1df)]():undefined;}export function readAppCodeFromConfig(){const _0x48d5ed=a75_0x87185b,_0x1eccc6=readRawConfig(),_0x172e5d=_0x1eccc6[_0x48d5ed(0x1cc)]??_0x1eccc6['app'];if(typeof _0x172e5d==='string'&&_0x172e5d[_0x48d5ed(0x1df)]())return _0x172e5d[_0x48d5ed(0x1df)]();const _0x4180e4=resolveLocalAppAliasCode(_0x1eccc6,typeof _0x1eccc6[_0x48d5ed(0x1dc)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1dc)]:undefined);if(_0x4180e4)return _0x4180e4;const _0x13fbf0=normalizeEnv(String(_0x1eccc6[_0x48d5ed(0x19a)]||_0x48d5ed(0x1b5))),_0x1a9763=isDaily(_0x13fbf0)?'daily':isDev(_0x13fbf0)?_0x48d5ed(0x1da):_0x48d5ed(0x1b5),_0x578fef=resolveCachedAppCode(typeof _0x1eccc6[_0x48d5ed(0x1dc)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1dc)]:undefined,_0x1a9763,typeof _0x1eccc6[_0x48d5ed(0x1e1)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1e1)]:undefined);if(_0x578fef)return _0x578fef;const _0x14198e=Object['values'](getLocalAppAliases(_0x1eccc6))['find'](_0x35a238=>_0x35a238?.[_0x48d5ed(0x1cc)]);return typeof _0x14198e?.['appcode']===_0x48d5ed(0x1b4)&&_0x14198e[_0x48d5ed(0x1cc)]['trim']()?_0x14198e[_0x48d5ed(0x1cc)]['trim']():undefined;}export function readScopedConfig(_0x18ac62){const _0xf3b986=a75_0x87185b,_0x477793=_0x18ac62['global']?_0xf3b986(0x19e):_0xf3b986(0x1ae);return readConfigFile(resolveWriteConfigPath(_0x477793));}export function writeScopedConfig(_0x506517,_0x19774c){const _0x5f47fb=a75_0x87185b,_0x2bab42=_0x19774c['global']?_0x5f47fb(0x19e):'project';writeConfigFile(resolveWriteConfigPath(_0x2bab42),_0x506517);}export async function initGlobalEnvironment(_0x5b4697){const _0xf63ac1=a75_0x87185b,{initEnv:_0x6fafb6}=await import(_0xf63ac1(0x1ce));_0x6fafb6(_0x5b4697[_0xf63ac1(0x19a)]);const {initDomains:_0x565490}=await import('./constant/domain.js');_0x565490({'apiDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1b6)]||_0x5b4697['raw'][_0xf63ac1(0x1cb)]||undefined,'userDomain':_0x5b4697['raw'][_0xf63ac1(0x1e0)]||undefined,'runtimeDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1d3)]||undefined,'skillHubDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1d8)]||undefined});}export function getProjectConfigPath(){const _0x43673b=a75_0x87185b;return resolveConfigPath(process[_0x43673b(0x1c5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x98ff82){const _0x342154=a75_0x87185b;if(!existsSync(_0x98ff82))return{'status':_0x342154(0x19b)};try{const _0x431ba0=readFileSync(_0x98ff82,{'encoding':_0x342154(0x1a9)});if(!_0x431ba0?.[_0x342154(0x1df)]())return{'status':'empty'};const _0x15a9e4=JSON[_0x342154(0x1a6)](_0x431ba0);return{'status':'ok','data':_0x15a9e4};}catch(_0x4cce7c){return{'status':'error','message':_0x4cce7c instanceof Error?_0x4cce7c[_0x342154(0x1aa)]:String(_0x4cce7c)};}}export function loadRawConfigLayers(_0x162643){const _0x264961=a75_0x87185b;let _0x3dc3d3={},_0x27a07={},_0x55cd8a,_0x2541db;try{_0x55cd8a=resolveConfigPath(homedir());if(_0x55cd8a){const _0x13d004=readFileSync(_0x55cd8a,{'encoding':_0x264961(0x1a9)});if(_0x13d004)_0x3dc3d3=JSON[_0x264961(0x1a6)](_0x13d004);}}catch{}try{const _0x46d981=_0x162643||process['cwd']();_0x2541db=resolveConfigPath(_0x46d981);if(_0x2541db){const _0x303e84=readFileSync(_0x2541db,{'encoding':_0x264961(0x1a9)});if(_0x303e84)_0x27a07=JSON[_0x264961(0x1a6)](_0x303e84);}}catch{}return{'globalPath':_0x55cd8a,'projectPath':_0x2541db,'globalConfig':_0x3dc3d3,'projectConfig':_0x27a07};}function mergeRawConfigLayers(_0x2730bc){const _0x52744d=a75_0x87185b,{globalConfig:_0x1458a7,projectConfig:_0x4ce4e2}=_0x2730bc;if(_0x4ce4e2['inherit']===![]){const _0x23b371={..._0x4ce4e2};return delete _0x23b371[_0x52744d(0x1db)],_0x23b371;}const _0x408549={..._0x1458a7,..._0x4ce4e2};if(_0x52744d(0x1dc)in _0x4ce4e2)_0x408549[_0x52744d(0x1dc)]=_0x4ce4e2[_0x52744d(0x1dc)];else _0x1458a7[_0x52744d(0x1dc)]&&(_0x408549[_0x52744d(0x1dc)]=_0x1458a7['defaultApp']);return _0x408549;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x45af23){return mergeRawConfigLayers(loadRawConfigLayers(_0x45af23));}export function readRawConfigWithLayers(_0x5d9f0c){const _0x58f986=loadRawConfigLayers(_0x5d9f0c);return{'config':mergeRawConfigLayers(_0x58f986),'layers':_0x58f986};}export function resolveDefaultAppSource(_0x50c0f6){const _0x51dc0b=a75_0x87185b;if(_0x51dc0b(0x1dc)in _0x50c0f6[_0x51dc0b(0x1c1)])return _0x51dc0b(0x1ae);if(_0x50c0f6['projectConfig'][_0x51dc0b(0x1db)]===![])return null;if(_0x50c0f6[_0x51dc0b(0x1c0)][_0x51dc0b(0x1dc)])return _0x51dc0b(0x19e);return null;}function buildConfig(_0x13ed84,_0x2e8f48){const _0x3db67b=a75_0x87185b,_0x44d08e=_0x13ed84[_0x3db67b(0x1dc)]||undefined,_0x3fd14e=_0x2e8f48[_0x3db67b(0x1dd)]||env(_0x3db67b(0x1b3))||undefined,_0x2552a1=_0x3fd14e||_0x44d08e||undefined,_0x12514c=env(_0x3db67b(0x1b9))||_0x13ed84[_0x3db67b(0x1e1)]||undefined,_0x28363c=_0x2e8f48[_0x3db67b(0x19a)]||env(_0x3db67b(0x1d2))||_0x13ed84[_0x3db67b(0x19a)]||DEFAULT_CONFIG_VALUES[_0x3db67b(0x19a)],_0x2bd4a1=normalizeEnv(String(_0x28363c)),_0x540866=isDaily(_0x2bd4a1)?'daily':isDev(_0x2bd4a1)?_0x3db67b(0x1da):_0x3db67b(0x1b5),_0x3fcaa6=typeof _0x2e8f48[_0x3db67b(0x1cc)]==='string'?_0x2e8f48['appcode']:undefined,_0x1c02da=env(_0x3db67b(0x1a2)),_0x29b016=_0x3fd14e?undefined:_0x13ed84[_0x3db67b(0x1cc)]||_0x13ed84[_0x3db67b(0x1dd)]||undefined,_0x181ec5=_0x3fd14e||(_0x29b016?undefined:_0x44d08e),_0x2d4bf5=resolveLocalAppAliasCode(_0x13ed84,_0x181ec5),_0x4577f4=resolveCachedAppCode(_0x181ec5,_0x540866,_0x12514c),_0x1fcd72=_0x3fcaa6||_0x1c02da||_0x29b016||_0x2d4bf5||_0x4577f4||undefined,_0x335a87=_0x3fcaa6?_0x3db67b(0x1a8):_0x1c02da?'env':_0x29b016?_0x3db67b(0x19d):_0x2d4bf5?_0x3db67b(0x1d5):_0x4577f4?'cache':undefined,_0x2b1f09=_0x13ed84[_0x3db67b(0x1d9)]||DEFAULT_CONFIG_VALUES['locale'],_0x1a455b=undefined,_0xde84b9=_0x2e8f48[_0x3db67b(0x1ab)]||env(_0x3db67b(0x1d4))||_0x13ed84[_0x3db67b(0x1ab)],_0x299807=normalizeLegacyOutputFormat(_0xde84b9),_0x3cb970=env('PAGE_SIZE')||_0x13ed84[_0x3db67b(0x19c)],_0x3cb840=_0x3cb970?Number(_0x3cb970)||undefined:undefined,_0x2408c5=_0x13ed84[_0x3db67b(0x1b8)]||_0x13ed84[_0x3db67b(0x1cf)],_0x476e2b=_0x2408c5==='read'||_0x2408c5==='write'||_0x2408c5===_0x3db67b(0x1d0)?_0x2408c5:DEFAULT_CONFIG_VALUES['riskLevel'],_0x58a12e=env(_0x3db67b(0x1d6)),_0x59f6be=_0x58a12e==='1'||_0x58a12e==='true';return{'appCode':typeof _0x1fcd72==='string'&&_0x1fcd72[_0x3db67b(0x1df)]()?_0x1fcd72[_0x3db67b(0x1df)]():undefined,'appCodeSource':_0x335a87,'env':_0x540866,'locale':_0x2b1f09,'cookie':_0x1a455b,'accessKey':_0x12514c,'format':_0x299807,'pageSize':_0x3cb840,'riskLevel':_0x476e2b,'verbose':_0x59f6be,'defaultApp':_0x44d08e,'currentApp':typeof _0x2552a1===_0x3db67b(0x1b4)?_0x2552a1:undefined,'raw':_0x13ed84};}function env(_0x2c7589){return productEnv(_0x2c7589);}async function buildAuth(_0xe915ea){const _0xeaf3a2=a75_0x87185b,_0x268bec='',_0x598037=!!_0xe915ea[_0xeaf3a2(0x1e1)];return{'cookie':_0x268bec,'isLoggedIn':_0x598037,async 'getOrLogin'(){const _0x53090d=_0xeaf3a2;if(_0x598037)return _0x268bec;throw CliErrors[_0x53090d(0x1c2)]();}};}
|
package/lib/core/api-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x58f41f,_0x3691f8){const _0x5e4fff=a75_0x2432,_0x33f81f=_0x58f41f();while(!![]){try{const _0x1b65f1=parseInt(_0x5e4fff(0x154))/0x1+parseInt(_0x5e4fff(0x100))/0x2+parseInt(_0x5e4fff(0x110))/0x3+parseInt(_0x5e4fff(0x122))/0x4*(parseInt(_0x5e4fff(0x14c))/0x5)+-parseInt(_0x5e4fff(0xf3))/0x6+parseInt(_0x5e4fff(0x113))/0x7*(parseInt(_0x5e4fff(0x12b))/0x8)+parseInt(_0x5e4fff(0x169))/0x9*(-parseInt(_0x5e4fff(0x171))/0xa);if(_0x1b65f1===_0x3691f8)break;else _0x33f81f['push'](_0x33f81f['shift']());}catch(_0x467315){_0x33f81f['push'](_0x33f81f['shift']());}}}(a75_0x27ac,0x8f83a));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a75_0x2432(_0x2980cb,_0x14ffb1){_0x2980cb=_0x2980cb-0xe7;const _0x27acef=a75_0x27ac();let _0x24321c=_0x27acef[_0x2980cb];return _0x24321c;}function a75_0x27ac(){const _0x5269fa=['items','/client/knowledge-base/personal/create','?appCode=','AbortError','/client/dataset/get-driven-data?code=','/client/runtime-bff/personal/list?appCode=','application/zip','functions','Invalid\x20app\x20config\x20value:\x20key=','searchParams','text','displayName','description','Knowledge-base\x20entry\x20not\x20found:\x20id=','9FCeEwD','GET','visibility','effective','appName','message','packageBase64','/api/v1/skills/','2499040Lesumh','gmtModified','errorCode','Toolbox\x20API\x20error:\x20',',\x20name=','sqlCode','POST','type','Toolbox\x20error\x20code:\x20','replace','/execute?appCode=','arrayBuffer','url','file','favorite','entries','/api/node-toolbox/','invokeSource','topK','3724590JhkzkI','API\x20error:\x20','validation','/client/app-config/getByKey?','data','object','Missing\x20Skill\x20package\x20payload.','stringify','append','functionName','abort','headers','success','58892muXbvE','confirmWarnings','/api/cli/v1/skills/','slug','application/octet-stream','/client/queryFileUrl','company','tableData','error','version','/client/knowledge-base/personal/list?appCode=','scope','namespace','errors','warnings','undefined','253590GyQPVJ','values','publishedVersion','6368467bGOuXk','/client/artifact/','msg','/publish/validate','join','Download\x20failed:\x20','appCode','content','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/user/loginUserInfo','test','/client/app/my-apps','/update','application/json','source','1656zuXrGb','toString','/versions/','/client/artifact/list?','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/client/knowledge-base/personal/','Artifact\x20not\x20found:\x20id=','authRequired','trim','8FFOLQe','from','summary','Toolbox\x20API\x20error','isJson','name','API\x20error\x20code:\x20','query','skillCode','newConfigFileName','api-doc-generator','valid','Request\x20timeout:\x20','isArray','/download','/client/uploadFile','Check\x20your\x20credentials\x20and\x20try\x20again.','SQL\x20query\x20not\x20found:\x20','download','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','filter','NAMESPACE_ONLY','apiError','signal','/client/sql/query','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/','status','toLowerCase','all','errorMsg','/publish','SkillHub\x20API\x20error:\x20','3485NFbhuk','function','number','/api/runtime/v1/namespaces/','artifactType','set','string','example','146188JlleDG','personal','code','markdown','skillName','PRIVATE','json'];a75_0x27ac=function(){return _0x5269fa;};return a75_0x27ac();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x3edf5f){_activeAK=_0x3edf5f||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x55c4ad){const _0x287e8a=a75_0x2432;for(const _0xc25aaf of _0x55c4ad){if(typeof _0xc25aaf===_0x287e8a(0x152)&&_0xc25aaf[_0x287e8a(0x12a)]())return _0xc25aaf['trim']();}return undefined;}async function decodeResponseBody(_0x2fe166){const _0x1925e4=a75_0x2432;if(typeof _0x2fe166[_0x1925e4(0x165)]===_0x1925e4(0x14d))try{const _0x40af67=await _0x2fe166[_0x1925e4(0x165)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x40af67),'text':_0x40af67};}catch{return{'isJson':![],'text':_0x40af67[_0x1925e4(0x12a)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x2fe166[_0x1925e4(0x15a)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x449b6f,_0x84b27e,_0x24d43f){const _0x172bbb=a75_0x2432,_0x2db73a=_0x84b27e&&typeof _0x84b27e===_0x172bbb(0xf8)?_0x84b27e:{},_0x9ac92d=[_0x2db73a[_0x172bbb(0x146)],_0x2db73a[_0x172bbb(0x156)]]['find'](_0x634e5b=>Number(_0x634e5b)===0x1ad),_0x530d79=createRateLimitError({'status':_0x449b6f[_0x172bbb(0x146)]===0x1ad?_0x449b6f[_0x172bbb(0x146)]:_0x9ac92d??_0x449b6f[_0x172bbb(0x146)],'errorCode':firstString(_0x2db73a[_0x172bbb(0x173)],typeof _0x2db73a[_0x172bbb(0x156)]===_0x172bbb(0x152)?_0x2db73a[_0x172bbb(0x156)]:undefined),'message':firstString(_0x2db73a[_0x172bbb(0x149)],_0x2db73a[_0x172bbb(0x16e)],_0x2db73a[_0x172bbb(0x115)],_0x24d43f),'retryAfter':readRetryAfter(_0x449b6f[_0x172bbb(0xfe)])??readRetryAfterSeconds(_0x84b27e)});if(_0x530d79)throw _0x530d79;}async function apiRequest(_0x1ed718,_0x1ee946={}){const _0x28f489=a75_0x2432,{method:method=_0x28f489(0x16a),body:_0x2816c5,headers:headers={},timeout:timeout=0x7530}=_0x1ee946,_0x33496c=_activeAK,_0x22945f=getRuntimeDomain();if(!_0x33496c)throw CliErrors[_0x28f489(0x129)](_0x28f489(0x144)+PRODUCT_CONFIG[_0x28f489(0x134)]+'.');const _0x4caf3d=''+_0x22945f+_0x1ed718,_0x116706={'X-User-AK':_0x33496c},_0x2065e0=new AbortController(),_0x58f1fc=setTimeout(()=>_0x2065e0[_0x28f489(0xfd)](),timeout);try{const _0x5899bd=await fetch(_0x4caf3d,{'method':method,'headers':{'Content-Type':_0x28f489(0x120),'X-Invoke-Source':PRODUCT_CONFIG[_0x28f489(0xf1)],..._0x116706,...headers},'body':_0x2816c5?JSON[_0x28f489(0xfa)](_0x2816c5):undefined,'signal':_0x2065e0[_0x28f489(0x142)]}),_0x5ffef6=await decodeResponseBody(_0x5899bd);if(!_0x5ffef6[_0x28f489(0x12f)]){throwIfRateLimited(_0x5899bd,undefined,_0x5ffef6[_0x28f489(0x165)]);throw CliErrors[_0x28f489(0x141)](_0x28f489(0x11b)+_0x5899bd[_0x28f489(0x146)]+')',_0x5899bd[_0x28f489(0x146)]>=0x190?_0x28f489(0x13b):undefined);}const _0x2e419f=_0x5ffef6[_0x28f489(0xf7)];throwIfRateLimited(_0x5899bd,_0x2e419f);if(!_0x5899bd['ok']||_0x2e419f[_0x28f489(0xff)]===![])throw CliErrors[_0x28f489(0x141)](_0x2e419f[_0x28f489(0x149)]||_0x2e419f[_0x28f489(0x16e)]||_0x28f489(0xf4)+_0x5899bd['status'],_0x2e419f[_0x28f489(0x173)]?'API\x20error\x20code:\x20'+_0x2e419f[_0x28f489(0x173)]:undefined);return _0x2e419f;}catch(_0x188e0b){if(_0x188e0b instanceof Error&&_0x188e0b[_0x28f489(0x130)]===_0x28f489(0x15e))throw CliErrors[_0x28f489(0x141)](_0x28f489(0x137)+_0x4caf3d);throw _0x188e0b;}finally{clearTimeout(_0x58f1fc);}}async function apiBinaryRequest(_0x3df65b,_0x2a724b={}){const _0x5db26a=a75_0x2432,{method:method=_0x5db26a(0x16a),headers:headers={},timeout:timeout=0x7530}=_0x2a724b,_0x118bdc=_activeAK,_0x351964=getRuntimeDomain();if(!_0x118bdc)throw CliErrors['authRequired'](_0x5db26a(0x144)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x428f56=''+_0x351964+_0x3df65b,_0x5521e7=new AbortController(),_0x16dad0=setTimeout(()=>_0x5521e7[_0x5db26a(0xfd)](),timeout);try{const _0x39627c=await fetch(_0x428f56,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5db26a(0xf1)],'X-User-AK':_0x118bdc,...headers},'signal':_0x5521e7[_0x5db26a(0x142)]});if(!_0x39627c['ok']){const _0x120202=await decodeResponseBody(_0x39627c),_0x22be26=_0x120202[_0x5db26a(0xf7)]&&typeof _0x120202['data']===_0x5db26a(0xf8)?_0x120202[_0x5db26a(0xf7)]:{},_0x10f198=firstString(_0x22be26[_0x5db26a(0x149)],_0x22be26[_0x5db26a(0x16e)],_0x22be26['errorCode'],_0x120202[_0x5db26a(0x165)]);throwIfRateLimited(_0x39627c,_0x120202['data'],_0x10f198);throw CliErrors[_0x5db26a(0x141)](_0x10f198||'API\x20error:\x20'+_0x39627c[_0x5db26a(0x146)],_0x5db26a(0x118)+_0x428f56);}return Buffer[_0x5db26a(0x12c)](await _0x39627c['arrayBuffer']());}catch(_0x3fed93){if(_0x3fed93 instanceof Error&&_0x3fed93[_0x5db26a(0x130)]==='AbortError')throw CliErrors[_0x5db26a(0x141)](_0x5db26a(0x137)+_0x428f56);throw _0x3fed93;}finally{clearTimeout(_0x16dad0);}}async function apiFormRequest(_0x50ddb6,_0x14bc41,_0x55c913={}){const _0x2b977=a75_0x2432,{timeout:timeout=0x7530}=_0x55c913,_0x42b9b4=_activeAK,_0x36dca1=getRuntimeDomain();if(!_0x42b9b4)throw CliErrors[_0x2b977(0x129)](_0x2b977(0x144)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x22314f=''+_0x36dca1+_0x50ddb6,_0x707987=new AbortController(),_0x51468c=setTimeout(()=>_0x707987[_0x2b977(0xfd)](),timeout);try{const _0x4b5f03=await fetch(_0x22314f,{'method':_0x2b977(0x177),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2b977(0xf1)],'X-User-AK':_0x42b9b4},'body':_0x14bc41,'signal':_0x707987['signal']}),_0xe9559e=await decodeResponseBody(_0x4b5f03);if(!_0xe9559e[_0x2b977(0x12f)]){throwIfRateLimited(_0x4b5f03,undefined,_0xe9559e[_0x2b977(0x165)]);throw CliErrors['apiError']('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x4b5f03[_0x2b977(0x146)]+')',_0x4b5f03[_0x2b977(0x146)]>=0x190?_0x2b977(0x13b):undefined);}const _0x1c644b=_0xe9559e['data'];throwIfRateLimited(_0x4b5f03,_0x1c644b);if(!_0x4b5f03['ok']||_0x1c644b['success']===![])throw CliErrors[_0x2b977(0x141)](_0x1c644b[_0x2b977(0x149)]||_0x1c644b[_0x2b977(0x16e)]||_0x2b977(0xf4)+_0x4b5f03[_0x2b977(0x146)],_0x1c644b[_0x2b977(0x173)]?_0x2b977(0x131)+_0x1c644b['errorCode']:undefined);return _0x1c644b;}catch(_0x462463){if(_0x462463 instanceof Error&&_0x462463[_0x2b977(0x130)]===_0x2b977(0x15e))throw CliErrors[_0x2b977(0x141)](_0x2b977(0x137)+_0x22314f);throw _0x462463;}finally{clearTimeout(_0x51468c);}}async function toolboxRequest(_0x22739a,_0x336ffa,_0x16b947={}){const _0x53a130=a75_0x2432,{method:method=_0x53a130(0x16a),headers:headers={},timeout:timeout=0x7530}=_0x16b947,_0x5a8e43=_activeAK;if(!_0x5a8e43)throw CliErrors[_0x53a130(0x129)](_0x53a130(0x144)+PRODUCT_CONFIG[_0x53a130(0x134)]+'.');const _0x3a7fad=getApiDomain()[_0x53a130(0xe9)](/\/$/,''),_0x2044ac=new URL(_0x22739a,_0x3a7fad+_0x53a130(0xf0));if(_0x336ffa)for(const [_0x2a7cb3,_0x50cc3b]of Object[_0x53a130(0xef)](_0x336ffa)){_0x50cc3b!==undefined&&_0x50cc3b!==null&&_0x2044ac[_0x53a130(0x164)][_0x53a130(0x151)](_0x2a7cb3,String(_0x50cc3b));}const _0x5239d8=new AbortController(),_0x210811=setTimeout(()=>_0x5239d8[_0x53a130(0xfd)](),timeout);try{const _0x968825=await fetch(_0x2044ac,{'method':method,'headers':{'Content-Type':_0x53a130(0x120),'X-Invoke-Source':PRODUCT_CONFIG[_0x53a130(0xf1)],'X-User-AK':_0x5a8e43,...headers},'signal':_0x5239d8['signal']}),_0x5c5cc9=await decodeResponseBody(_0x968825);if(!_0x5c5cc9['isJson']){throwIfRateLimited(_0x968825,undefined,_0x5c5cc9['text']);throw CliErrors['apiError'](_0x53a130(0x13e)+_0x968825[_0x53a130(0x146)]+')',_0x968825['status']>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x3cbc07=_0x5c5cc9[_0x53a130(0xf7)];throwIfRateLimited(_0x968825,_0x3cbc07);if(!_0x968825['ok']){const _0x55e177=_0x3cbc07&&typeof _0x3cbc07===_0x53a130(0xf8)?_0x3cbc07:{};throw CliErrors[_0x53a130(0x141)](_0x55e177[_0x53a130(0x149)]||_0x55e177[_0x53a130(0x16e)]||_0x53a130(0x174)+_0x968825[_0x53a130(0x146)],_0x55e177[_0x53a130(0x173)]?'Toolbox\x20error\x20code:\x20'+_0x55e177[_0x53a130(0x173)]:undefined);}if(_0x3cbc07&&typeof _0x3cbc07==='object'&&'success'in _0x3cbc07&&typeof _0x3cbc07['success']==='boolean'){const _0x1287bc=_0x3cbc07;if(!_0x1287bc[_0x53a130(0xff)])throw CliErrors[_0x53a130(0x141)](_0x1287bc[_0x53a130(0x149)]||_0x1287bc[_0x53a130(0x16e)]||_0x53a130(0x12e),_0x1287bc[_0x53a130(0x173)]?_0x53a130(0xe8)+_0x1287bc[_0x53a130(0x173)]:undefined);return _0x1287bc[_0x53a130(0xf7)];}return _0x3cbc07;}catch(_0x316c21){if(_0x316c21 instanceof Error&&_0x316c21[_0x53a130(0x130)]===_0x53a130(0x15e))throw CliErrors[_0x53a130(0x141)](_0x53a130(0x137)+_0x2044ac['toString']());throw _0x316c21;}finally{clearTimeout(_0x210811);}}async function skillHubJsonRequest(_0xc50c9e,_0x40e448={}){const _0x132cf7=a75_0x2432,{method:method=_0x132cf7(0x16a),query:_0x49440c,body:_0x30f02d,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x40e448,_0x449ed5=_activeAK;if(!_0x449ed5)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x132cf7(0x134)]+'.');const _0x5a84f1=getSkillHubDomain()[_0x132cf7(0xe9)](/\/$/,''),_0x18bc0a=new URL(_0xc50c9e,_0x5a84f1+'/');if(_0x49440c)for(const [_0x15db3a,_0x181475]of Object[_0x132cf7(0xef)](_0x49440c)){_0x181475!==undefined&&_0x181475!==null&&_0x18bc0a[_0x132cf7(0x164)][_0x132cf7(0x151)](_0x15db3a,String(_0x181475));}const _0x11ff46=new AbortController(),_0x198027=setTimeout(()=>_0x11ff46[_0x132cf7(0xfd)](),timeout);try{const _0x7f516e=await fetch(_0x18bc0a[_0x132cf7(0x123)](),{'method':method,'headers':{'Accept':_0x132cf7(0x120),'X-Invoke-Source':PRODUCT_CONFIG[_0x132cf7(0xf1)],'X-User-AK':_0x449ed5,...headers},'body':_0x30f02d,'signal':_0x11ff46[_0x132cf7(0x142)]}),_0x161ac0=await decodeResponseBody(_0x7f516e);if(!_0x161ac0['isJson']){if(allowNotFound&&_0x7f516e['status']===0x194)return undefined;throwIfRateLimited(_0x7f516e,undefined,_0x161ac0[_0x132cf7(0x165)]);throw CliErrors['apiError']('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x7f516e['status']+')',_0x7f516e[_0x132cf7(0x146)]>=0x190?_0x132cf7(0x13b):undefined);}const _0x5bbb08=_0x161ac0[_0x132cf7(0xf7)];throwIfRateLimited(_0x7f516e,_0x5bbb08);if(allowNotFound&&isSkillHubNotFoundResponse(_0x7f516e['status'],_0x5bbb08))return undefined;const _0x4a8534=!_0x7f516e['ok']||_0x5bbb08?.['success']===![]||typeof _0x5bbb08?.['code']===_0x132cf7(0x14e)&&_0x5bbb08[_0x132cf7(0x156)]>=0x190;if(_0x4a8534)throw CliErrors['apiError'](_0x5bbb08?.[_0x132cf7(0x149)]||_0x5bbb08?.[_0x132cf7(0x16e)]||_0x5bbb08?.['msg']||'SkillHub\x20API\x20error:\x20'+_0x7f516e['status'],_0x5bbb08?.[_0x132cf7(0x173)]?'SkillHub\x20error\x20code:\x20'+_0x5bbb08['errorCode']:undefined);return _0x5bbb08?.[_0x132cf7(0xf7)]??_0x5bbb08;}catch(_0x19a5d9){if(_0x19a5d9 instanceof Error&&_0x19a5d9[_0x132cf7(0x130)]===_0x132cf7(0x15e))throw CliErrors[_0x132cf7(0x141)](_0x132cf7(0x137)+_0x18bc0a[_0x132cf7(0x123)]());throw _0x19a5d9;}finally{clearTimeout(_0x198027);}}function isSkillHubNotFoundResponse(_0x2eead2,_0x3bf197){const _0x4b77a8=a75_0x2432;if(_0x2eead2===0x194||_0x3bf197?.['code']===0x194)return!![];if(_0x2eead2!==0x190&&_0x3bf197?.['code']!==0x190)return![];const _0x32981c=[_0x3bf197?.[_0x4b77a8(0x115)],_0x3bf197?.[_0x4b77a8(0x16e)],_0x3bf197?.['errorMsg'],_0x3bf197?.[_0x4b77a8(0x108)]][_0x4b77a8(0x13f)](_0xb4599a=>typeof _0xb4599a===_0x4b77a8(0x152))[_0x4b77a8(0x117)]('\x20');return/skill not found\b/i[_0x4b77a8(0x11d)](_0x32981c);}async function skillHubBinaryRequest(_0x51379b,_0x5c9f3a={}){const _0x43906b=a75_0x2432,{query:_0x19216a,headers:headers={},timeout:timeout=0x7530}=_0x5c9f3a,_0x5cb8f1=_activeAK;if(!_0x5cb8f1)throw CliErrors[_0x43906b(0x129)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x51432b=getSkillHubDomain()[_0x43906b(0xe9)](/\/$/,''),_0x3b77cb=new URL(_0x51379b,_0x51432b+'/');if(_0x19216a)for(const [_0x4b52cc,_0x38c30e]of Object[_0x43906b(0xef)](_0x19216a)){_0x38c30e!==undefined&&_0x38c30e!==null&&_0x3b77cb[_0x43906b(0x164)][_0x43906b(0x151)](_0x4b52cc,String(_0x38c30e));}const _0x31e425=new AbortController(),_0x15b1c0=setTimeout(()=>_0x31e425[_0x43906b(0xfd)](),timeout);try{const _0x572438=await fetch(_0x3b77cb[_0x43906b(0x123)](),{'method':_0x43906b(0x16a),'headers':{'Accept':_0x43906b(0x104),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x5cb8f1,...headers},'signal':_0x31e425[_0x43906b(0x142)]});if(!_0x572438['ok']){const _0x1cf22b=await decodeResponseBody(_0x572438),_0x61a572=_0x1cf22b[_0x43906b(0xf7)]&&typeof _0x1cf22b['data']===_0x43906b(0xf8)?_0x1cf22b[_0x43906b(0xf7)]:{},_0x37bea5=firstString(_0x61a572[_0x43906b(0x149)],_0x61a572[_0x43906b(0x16e)],_0x61a572[_0x43906b(0x115)],_0x61a572[_0x43906b(0x173)],_0x1cf22b[_0x43906b(0x165)]);throwIfRateLimited(_0x572438,_0x1cf22b[_0x43906b(0xf7)],_0x37bea5);throw CliErrors['apiError'](_0x37bea5||_0x43906b(0x14b)+_0x572438[_0x43906b(0x146)],_0x43906b(0x118)+_0x3b77cb[_0x43906b(0x123)]());}return Buffer['from'](await _0x572438[_0x43906b(0xeb)]());}catch(_0x2b0e79){if(_0x2b0e79 instanceof Error&&_0x2b0e79[_0x43906b(0x130)]==='AbortError')throw CliErrors[_0x43906b(0x141)](_0x43906b(0x137)+_0x3b77cb[_0x43906b(0x123)]());throw _0x2b0e79;}finally{clearTimeout(_0x15b1c0);}}export async function getBffEndpointContract(_0x2b018f,_0x25ab24){const _0x1cf801=a75_0x2432;if(_0x25ab24===_0x1cf801(0x162))throw CliErrors[_0x1cf801(0xf5)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x2b018f+_0x1cf801(0x175)+_0x25ab24);const _0x20eaf3=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0x2b018f)+'/'+encodeURIComponent(_0x25ab24)),_0x1bcba0=_0x20eaf3[_0x1cf801(0xf7)];if(!_0x1bcba0||typeof _0x1bcba0!=='object'||Array[_0x1cf801(0x138)](_0x1bcba0)||_0x1bcba0[_0x1cf801(0x119)]!==_0x2b018f||_0x1bcba0['functionName']!==_0x25ab24)throw CliErrors[_0x1cf801(0xf5)]('BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x2b018f+_0x1cf801(0x175)+_0x25ab24);return{'appCode':_0x1bcba0[_0x1cf801(0x119)],'functionName':_0x1bcba0[_0x1cf801(0xfc)],'description':_0x1bcba0['description'],'version':_0x1bcba0['version'],'gmtModified':_0x1bcba0[_0x1cf801(0x172)]};}export async function getSqlQueryInfo(_0x59fde4,_0x4c82b1){const _0x41d336=a75_0x2432,_0x3d3f5f=await apiRequest(_0x41d336(0x143),{'method':'POST','body':{'appCode':_0x59fde4,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x4c82b1}}),_0x1a2b35=_0x3d3f5f[_0x41d336(0xf7)],_0x80c35e=_0x1a2b35&&typeof _0x1a2b35===_0x41d336(0xf8)&&_0x41d336(0x107)in _0x1a2b35?_0x1a2b35['tableData']?.[0x0]:_0x1a2b35&&typeof _0x1a2b35===_0x41d336(0xf8)&&_0x41d336(0x176)in _0x1a2b35?_0x1a2b35:undefined;if(!_0x80c35e)throw CliErrors[_0x41d336(0xf5)](_0x41d336(0x13c)+_0x4c82b1);return _0x80c35e;}function isRemoteAppItem(_0x2ad627){const _0x4cea66=a75_0x2432;return!!_0x2ad627&&typeof _0x2ad627===_0x4cea66(0xf8)&&typeof _0x2ad627[_0x4cea66(0x119)]===_0x4cea66(0x152)&&typeof _0x2ad627[_0x4cea66(0x16d)]===_0x4cea66(0x152);}function extractRemoteAppItems(_0x14cb2f){const _0x26f82f=a75_0x2432;if(Array[_0x26f82f(0x138)](_0x14cb2f))return _0x14cb2f[_0x26f82f(0x13f)](isRemoteAppItem);if(!_0x14cb2f||typeof _0x14cb2f!=='object')throw CliErrors[_0x26f82f(0x141)]('Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.');const _0x24d196=_0x14cb2f;if(Array['isArray'](_0x24d196['tableData']))return _0x24d196[_0x26f82f(0x107)][_0x26f82f(0x13f)](isRemoteAppItem);if(_0x24d196[_0x26f82f(0xf7)]&&typeof _0x24d196[_0x26f82f(0xf7)]===_0x26f82f(0xf8)){const _0x41e065=_0x24d196['data'];if(Array[_0x26f82f(0x138)](_0x41e065['tableData']))return _0x41e065['tableData'][_0x26f82f(0x13f)](isRemoteAppItem);}throw CliErrors[_0x26f82f(0x141)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x2569e9=a75_0x2432,_0x3efb8e=await apiRequest(_0x2569e9(0x11e));return extractRemoteAppItems(_0x3efb8e[_0x2569e9(0xf7)]);}export async function getLoginUserInfo(){const _0x133101=a75_0x2432,_0x13d378=await apiRequest(_0x133101(0x11c));if(!_0x13d378['data']||typeof _0x13d378[_0x133101(0xf7)]!==_0x133101(0xf8)||Array[_0x133101(0x138)](_0x13d378['data']))throw CliErrors[_0x133101(0x141)](_0x133101(0x126));return _0x13d378[_0x133101(0xf7)];}export async function listDatasets(_0x524ec3,_0x203d1c){const _0x7bc249=a75_0x2432,_0x47f12c=await apiRequest('/client/dataset/list',{'method':_0x7bc249(0x177),'body':{'appCode':_0x524ec3,..._0x203d1c?.[_0x7bc249(0x156)]&&{'code':_0x203d1c[_0x7bc249(0x156)]},..._0x203d1c?.[_0x7bc249(0x130)]&&{'name':_0x203d1c[_0x7bc249(0x130)]}}});return extractList(_0x47f12c[_0x7bc249(0xf7)]);}export async function getDatasetDetail(_0x369029){const _0x2f9a35=a75_0x2432,_0x21975e=await apiRequest(_0x2f9a35(0x15f)+encodeURIComponent(_0x369029));return _0x21975e[_0x2f9a35(0xf7)];}export async function getDatasetSdkUsageDoc(_0x19eb81,_0x53f062){const _0x1c5d35=a75_0x2432,_0x3ece3b=await toolboxRequest(_0x1c5d35(0x135),{'datasetCode':_0x19eb81,'appCode':_0x53f062});return typeof _0x3ece3b?.[_0x1c5d35(0x157)]===_0x1c5d35(0x152)?_0x3ece3b[_0x1c5d35(0x157)]:'';}export async function uploadRuntimeFile(_0xd4b7ba,_0xdcec38){const _0x141d0d=a75_0x2432,_0x41874d=await readFile(_0xdcec38),_0x700225=new FormData();_0x700225[_0x141d0d(0xfb)](_0x141d0d(0x119),_0xd4b7ba),_0x700225['append'](_0x141d0d(0xed),new Blob([new Uint8Array(_0x41874d)]),basename(_0xdcec38));const _0x5adbd4=await apiFormRequest(_0x141d0d(0x13a),_0x700225);return _0x5adbd4['data'];}export async function queryRuntimeFileUrl(_0x33f52e,_0x45d644={}){const _0x1f0063=a75_0x2432,_0x17f3d3=await apiRequest(_0x1f0063(0x105),{'method':_0x1f0063(0x177),'body':{'filePath':_0x33f52e,'downloadFlag':_0x45d644[_0x1f0063(0x13d)]??![],..._0x45d644['longTerm']?{'longTerm':!![]}:{}}});return _0x17f3d3[_0x1f0063(0xf7)];}export async function recognizeRuntimeOcr(_0x472bd4,_0x4edbcf){const _0x28d598=a75_0x2432,_0x5d9ee7=await apiRequest('/client/ocr',{'method':'POST','body':{'appCode':_0x472bd4,'url':_0x4edbcf[_0x28d598(0xec)],'type':_0x4edbcf[_0x28d598(0xe7)]}});return _0x5d9ee7[_0x28d598(0xf7)];}export async function getRuntimeAppConfigByKey(_0x57da2b,_0x2fe2cd){const _0xbdb6a7=a75_0x2432,_0x403774=new URLSearchParams({'appCode':_0x57da2b,'key':_0x2fe2cd}),_0x4dd4b5=await apiRequest(_0xbdb6a7(0xf6)+_0x403774[_0xbdb6a7(0x123)]());if(typeof _0x4dd4b5[_0xbdb6a7(0xf7)]!==_0xbdb6a7(0x152))throw CliErrors['validation'](_0xbdb6a7(0x163)+_0x2fe2cd);return _0x4dd4b5[_0xbdb6a7(0xf7)];}export async function listRuntimeArtifacts(_0x45e5f9,_0xd54666){const _0x27290a=a75_0x2432,_0x472d83=new URLSearchParams({'appCode':_0x45e5f9});if(_0xd54666?.[_0x27290a(0x150)])_0x472d83[_0x27290a(0x151)](_0x27290a(0x150),_0xd54666[_0x27290a(0x150)]);if(_0xd54666?.[_0x27290a(0x121)])_0x472d83['set'](_0x27290a(0x121),_0xd54666[_0x27290a(0x121)]);if(_0xd54666?.[_0x27290a(0xee)]!==undefined)_0x472d83[_0x27290a(0x151)](_0x27290a(0xee),String(_0xd54666[_0x27290a(0xee)]));const _0x59c267=await apiRequest(_0x27290a(0x125)+_0x472d83['toString']());return Array[_0x27290a(0x138)](_0x59c267['data'])?_0x59c267[_0x27290a(0xf7)]:[];}export async function getRuntimeArtifact(_0x5cbbb2,_0x5650b3){const _0x34052a=a75_0x2432,_0xd4010c=await apiRequest(_0x34052a(0x114)+_0x5cbbb2+_0x34052a(0x15d)+encodeURIComponent(_0x5650b3));if(!_0xd4010c[_0x34052a(0xf7)])throw CliErrors[_0x34052a(0xf5)](_0x34052a(0x128)+_0x5cbbb2);return _0xd4010c['data'];}export async function createRuntimeArtifact(_0x130c2e,_0x51b57c){const _0x4b4c98=a75_0x2432,_0x1ad6b7=await apiRequest('/client/artifact/create',{'method':_0x4b4c98(0x177),'body':{'appCode':_0x130c2e,..._0x51b57c}});return _0x1ad6b7[_0x4b4c98(0xf7)];}export async function updateRuntimeArtifact(_0x4cd29e,_0x5c797b,_0x4e95cd){const _0x7e0589=a75_0x2432,_0x5ca24e=await apiRequest(_0x7e0589(0x114)+_0x4cd29e+_0x7e0589(0x11f),{'method':_0x7e0589(0x177),'body':{'appCode':_0x5c797b,..._0x4e95cd}});return _0x5ca24e['data'];}export async function listPersonalBffs(_0x327be7){const _0x41c981=a75_0x2432,_0x569212=await apiRequest(_0x41c981(0x160)+encodeURIComponent(_0x327be7));return Array[_0x41c981(0x138)](_0x569212['data'])?_0x569212[_0x41c981(0xf7)]:[];}export async function getPersonalBff(_0x24ee39,_0x5f5360){const _0x14e25c=a75_0x2432,_0x1a3192=await apiRequest('/client/runtime-bff/personal/'+_0x24ee39+_0x14e25c(0x15d)+encodeURIComponent(_0x5f5360));if(!_0x1a3192[_0x14e25c(0xf7)])throw CliErrors[_0x14e25c(0xf5)]('Personal\x20BFF\x20not\x20found:\x20id='+_0x24ee39);return _0x1a3192[_0x14e25c(0xf7)];}export async function createPersonalBff(_0x2b2379,_0x5238ee){const _0x914be4=a75_0x2432,_0x26a021=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x914be4(0x177),'body':{'appCode':_0x2b2379,..._0x5238ee}});return _0x26a021[_0x914be4(0xf7)];}export async function updatePersonalBff(_0x14cf67,_0x100e39,_0x51ae78){const _0x2024bb=a75_0x2432,_0x14e2e3=await apiRequest('/client/runtime-bff/personal/'+_0x14cf67+'/update',{'method':'POST','body':{'appCode':_0x100e39,..._0x51ae78}});return _0x14e2e3[_0x2024bb(0xf7)];}export async function executePersonalBff(_0x64b943,_0x34211a,_0x2a8e98){const _0x55cf19=a75_0x2432,_0x1826e4=await apiRequest(_0x55cf19(0x145)+_0x64b943+_0x55cf19(0xea)+encodeURIComponent(_0x34211a),{'method':'POST','body':_0x2a8e98});return _0x1826e4[_0x55cf19(0xf7)];}export async function listPersonalKnowledgeBaseItems(_0x2dc282){const _0x20b8c9=a75_0x2432,_0x31e5b8=await apiRequest(_0x20b8c9(0x10a)+encodeURIComponent(_0x2dc282));return Array[_0x20b8c9(0x138)](_0x31e5b8[_0x20b8c9(0xf7)])?_0x31e5b8[_0x20b8c9(0xf7)]:[];}export async function getPersonalKnowledgeBaseItem(_0x43b713,_0x1ed756){const _0x5284ac=a75_0x2432,_0x449135=await apiRequest('/client/knowledge-base/personal/'+_0x43b713+_0x5284ac(0x15d)+encodeURIComponent(_0x1ed756));if(!_0x449135[_0x5284ac(0xf7)])throw CliErrors[_0x5284ac(0xf5)](_0x5284ac(0x168)+_0x43b713);return _0x449135[_0x5284ac(0xf7)];}export async function createPersonalKnowledgeBaseItem(_0x244e1b,_0x47fe33){const _0x402a25=a75_0x2432,_0x5bfd4f=await apiRequest(_0x402a25(0x15c),{'method':_0x402a25(0x177),'body':{'appCode':_0x244e1b,..._0x47fe33}});return _0x5bfd4f['data'];}export async function updatePersonalKnowledgeBaseItem(_0x1f7372,_0x4ccdc0,_0x5d1aa1){const _0x5d370e=a75_0x2432,_0x250e32=await apiRequest(_0x5d370e(0x127)+_0x1f7372+_0x5d370e(0x11f),{'method':_0x5d370e(0x177),'body':{'appCode':_0x4ccdc0,..._0x5d1aa1}});return _0x250e32[_0x5d370e(0xf7)];}export async function searchKnowledgeBase(_0x16081e,_0x658933){const _0x459651=a75_0x2432,_0x2460ce=await apiRequest('/client/knowledge-base/search',{'method':_0x459651(0x177),'body':{'appCode':_0x16081e,'query':_0x658933[_0x459651(0x132)],..._0x658933[_0x459651(0xf2)]!==undefined?{'topK':_0x658933[_0x459651(0xf2)]}:{}}});return Array[_0x459651(0x138)](_0x2460ce[_0x459651(0xf7)])?_0x2460ce[_0x459651(0xf7)]:[];}export async function getRuntimeSkillByCode(_0x55f741,_0x311bf8){const _0x4e011f=a75_0x2432,_0x18bc9c=await skillHubJsonRequest(_0x4e011f(0x170)+encodeURIComponent(_0x55f741)+'/'+encodeURIComponent(_0x311bf8),{'allowNotFound':!![]});return _0x18bc9c?skillHubRuntimeDetailToRuntimeSkill(_0x18bc9c):undefined;}export async function listRuntimeSkills(_0x416825){const _0x4e0fbf=a75_0x2432,_0x37fc6f=await skillHubJsonRequest(_0x4e0fbf(0x14f)+encodeURIComponent(_0x416825[_0x4e0fbf(0x119)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x416825['appCode'],_0x37fc6f,_0x416825['scope']??_0x4e0fbf(0x148),_0x416825[_0x4e0fbf(0x156)]);}export async function listPersonalRuntimeSkills(_0x2650b4){const _0x484fe2=a75_0x2432;return(await listRuntimeSkills({'appCode':_0x2650b4,'scope':_0x484fe2(0x155)}))[_0x484fe2(0x155)];}export async function listCompanyRuntimeSkills(_0x4bf8b9){const _0x268c31=a75_0x2432;return(await listRuntimeSkills({'appCode':_0x4bf8b9,'scope':_0x268c31(0x106)}))[_0x268c31(0x106)];}export async function listVisibleRuntimeSkills(_0x680892){const _0x4c4fd8=a75_0x2432;return(await listRuntimeSkills({'appCode':_0x680892,'scope':_0x4c4fd8(0x148)}))[_0x4c4fd8(0x16c)];}export async function createPersonalRuntimeSkill(_0x59a187,_0x368b4f,_0x33d88b={}){return publishRuntimeSkill(_0x59a187,_0x368b4f,{'visibility':'PRIVATE','confirmWarnings':_0x33d88b['confirmWarnings']});}export async function updatePersonalRuntimeSkill(_0x1f0665,_0x4e56d4,_0x23be29,_0x540097={}){const _0x2ae8d4=a75_0x2432;return publishRuntimeSkill(_0x4e56d4,{..._0x23be29,'skillCode':_0x23be29['skillCode']??_0x1f0665},{'visibility':_0x2ae8d4(0x159),'confirmWarnings':_0x540097['confirmWarnings']});}export async function publishCompanyRuntimeSkill(_0x2cc12e,_0x5e286d,_0x48f88c={}){const _0x2aa448=a75_0x2432;return publishRuntimeSkill(_0x2cc12e,_0x5e286d,{'visibility':_0x2aa448(0x140),'confirmWarnings':_0x48f88c[_0x2aa448(0x101)]});}export async function validateRuntimeSkillPublish(_0x27f1a8,_0x520da4,_0x10b88b){const _0x1ba9d0=a75_0x2432,_0x2e7ed2=buildRuntimeSkillPublishForm(_0x520da4,_0x10b88b[_0x1ba9d0(0x16b)]),_0x11a79b=await skillHubJsonRequest(_0x1ba9d0(0x102)+encodeURIComponent(_0x27f1a8)+_0x1ba9d0(0x116),{'method':'POST','body':_0x2e7ed2});return{'valid':_0x11a79b[_0x1ba9d0(0x136)]===!![],'errors':Array[_0x1ba9d0(0x138)](_0x11a79b['errors'])?_0x11a79b[_0x1ba9d0(0x10d)]:[],'warnings':Array[_0x1ba9d0(0x138)](_0x11a79b[_0x1ba9d0(0x10e)])?_0x11a79b[_0x1ba9d0(0x10e)]:[],'resolvedSlug':_0x11a79b['resolvedSlug'],'resolvedVersion':_0x11a79b['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0x467c09,_0x33479e,_0x30ae84,_0x19e536){const _0x3f6258=a75_0x2432;void _0x467c09;const _0x92734e=_0x19e536?_0x3f6258(0x102)+encodeURIComponent(_0x30ae84)+'/'+encodeURIComponent(_0x33479e)+_0x3f6258(0x124)+encodeURIComponent(_0x19e536)+'/download':_0x3f6258(0x102)+encodeURIComponent(_0x30ae84)+'/'+encodeURIComponent(_0x33479e)+_0x3f6258(0x139);return skillHubBinaryRequest(_0x92734e);}async function publishRuntimeSkill(_0x381aed,_0x55e089,_0x33bdd6){const _0x48a12b=a75_0x2432,_0x590a1d=buildRuntimeSkillPublishForm(_0x55e089,_0x33bdd6[_0x48a12b(0x16b)]),_0xfcf9f4=await skillHubJsonRequest(_0x48a12b(0x102)+encodeURIComponent(_0x381aed)+_0x48a12b(0x14a),{'method':'POST','query':{'confirmWarnings':_0x33bdd6['confirmWarnings']===!![]?!![]:undefined},'body':_0x590a1d});return{'appCode':_0xfcf9f4[_0x48a12b(0x10c)]??_0x381aed,'skillCode':_0xfcf9f4['slug']??_0x55e089[_0x48a12b(0x133)]??'','skillName':_0x55e089[_0x48a12b(0x158)]??_0xfcf9f4[_0x48a12b(0x103)]??_0x55e089[_0x48a12b(0x133)],'description':_0x55e089[_0x48a12b(0x167)],'scope':skillHubVisibilityToScope(_0xfcf9f4[_0x48a12b(0x16b)]??_0x33bdd6[_0x48a12b(0x16b)])??'personal','version':_0xfcf9f4['version']??_0x55e089['version'],'tags':_0x55e089['tags'],'content':_0x55e089[_0x48a12b(0x11a)]};}function buildRuntimeSkillPublishForm(_0x412e7e,_0x24f7b2){const _0x5f5c97=a75_0x2432,_0x2826ca=new FormData();return _0x2826ca[_0x5f5c97(0x151)](_0x5f5c97(0xed),runtimeSkillPackageFile(_0x412e7e)),_0x412e7e[_0x5f5c97(0x158)]?.['trim']()&&_0x2826ca[_0x5f5c97(0x151)](_0x5f5c97(0x166),_0x412e7e[_0x5f5c97(0x158)]['trim']()),_0x2826ca[_0x5f5c97(0x151)](_0x5f5c97(0x16b),_0x24f7b2),_0x2826ca;}function runtimeSkillPackageFile(_0x370688){const _0x41b308=a75_0x2432;if(!_0x370688[_0x41b308(0x16f)])throw CliErrors[_0x41b308(0xf5)](_0x41b308(0xf9));const _0xa2a283=Buffer[_0x41b308(0x12c)](_0x370688['packageBase64'],'base64'),_0x54ac25=new Blob([_0xa2a283],{'type':_0x41b308(0x161)}),_0x55f5f7=(_0x370688[_0x41b308(0x133)]||'skill')+'.zip';if(typeof File!==_0x41b308(0x10f))return new File([_0x54ac25],_0x55f5f7,{'type':_0x41b308(0x161)});return _0x54ac25;}function normalizeSkillHubRuntimeListResponse(_0x3a92a9,_0x3ce1f1,_0x6a7c00,_0x566b23){const _0xd4e2f2=a75_0x2432,_0x3dbde0=Array[_0xd4e2f2(0x138)](_0x3ce1f1)?_0x3ce1f1:Array[_0xd4e2f2(0x138)](_0x3ce1f1?.[_0xd4e2f2(0x15b)])?_0x3ce1f1[_0xd4e2f2(0x15b)]:[],_0x20abe0=_0x566b23?.['trim'](),_0x40047b=_0x3dbde0['filter'](_0x17b3b8=>!_0x20abe0||_0x17b3b8[_0xd4e2f2(0x103)]===_0x20abe0)['map'](skillHubRuntimeItemToRuntimeSkill)[_0xd4e2f2(0x13f)](_0x2815e3=>Boolean(_0x2815e3)),_0x9a21bd=_0x40047b[_0xd4e2f2(0x13f)](_0x2f43e3=>_0x2f43e3[_0xd4e2f2(0x10b)]===_0xd4e2f2(0x155)),_0x2252be=_0x40047b['filter'](_0x2bed60=>_0x2bed60[_0xd4e2f2(0x10b)]===_0xd4e2f2(0x106));return{'appCode':_0x3a92a9,'personal':_0x6a7c00==='company'?[]:_0x9a21bd,'company':_0x6a7c00==='personal'?[]:_0x2252be,'effective':buildEffectiveRuntimeSkills(_0x9a21bd,_0x2252be,_0x6a7c00)};}function skillHubRuntimeItemToRuntimeSkill(_0x186016){const _0xbb2de=a75_0x2432,_0x354b5b=_0x186016[_0xbb2de(0x103)]?.['trim'](),_0xde1af6=skillHubVisibilityToScope(_0x186016[_0xbb2de(0x16b)]);if(!_0x354b5b||!_0xde1af6)return undefined;return{'id':_0x186016['id'],'appCode':_0x186016[_0xbb2de(0x10c)],'skillCode':_0x354b5b,'skillName':_0x186016[_0xbb2de(0x166)]??_0x354b5b,'description':_0x186016['summary'],'scope':_0xde1af6,'version':skillHubRuntimeItemVersion(_0x186016),'status':_0x186016['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x391fea){const _0x494d7e=a75_0x2432,_0x1e50ec=_0x391fea[_0x494d7e(0x103)]?.['trim']();if(!_0x1e50ec)return undefined;return{'id':_0x391fea['id'],'appCode':_0x391fea[_0x494d7e(0x10c)],'skillCode':_0x1e50ec,'skillName':_0x391fea[_0x494d7e(0x166)]??_0x1e50ec,'description':_0x391fea[_0x494d7e(0x12d)],'example':_0x391fea[_0x494d7e(0x153)],'scope':skillHubVisibilityToScope(_0x391fea[_0x494d7e(0x16b)])??_0x391fea[_0x494d7e(0x16b)]?.[_0x494d7e(0x147)](),'version':skillHubRuntimeItemVersion(_0x391fea),'status':_0x391fea['status']};}function skillHubVisibilityToScope(_0x36e1bb){const _0x182dd5=a75_0x2432;if(_0x36e1bb==='PRIVATE')return'personal';if(_0x36e1bb===_0x182dd5(0x140))return'company';return undefined;}function skillHubRuntimeItemVersion(_0x1722ba){const _0x226edc=a75_0x2432;return _0x1722ba[_0x226edc(0x112)]?.[_0x226edc(0x109)]??_0x1722ba['headlineVersion']?.[_0x226edc(0x109)]??_0x1722ba['ownerPreviewVersion']?.[_0x226edc(0x109)];}function buildEffectiveRuntimeSkills(_0x16e120,_0x126780,_0x31a6ae){const _0x1f1bec=a75_0x2432;if(_0x31a6ae===_0x1f1bec(0x155))return _0x16e120;if(_0x31a6ae===_0x1f1bec(0x106))return _0x126780;const _0x4d83c7=new Map();for(const _0xab0cfd of _0x126780){_0x4d83c7[_0x1f1bec(0x151)](_0xab0cfd[_0x1f1bec(0x133)],_0xab0cfd);}for(const _0x8ecc07 of _0x16e120){_0x4d83c7[_0x1f1bec(0x151)](_0x8ecc07[_0x1f1bec(0x133)],_0x8ecc07);}return Array[_0x1f1bec(0x12c)](_0x4d83c7[_0x1f1bec(0x111)]());}function normalizeRuntimeSkillListResponse(_0x475a4b,_0x19291c){const _0x3306bd=a75_0x2432;if(Array['isArray'](_0x19291c)){const _0x35addc=_0x19291c[_0x3306bd(0x13f)](_0x4314b4=>_0x4314b4['scope']===_0x3306bd(0x155)),_0x5a1cd3=_0x19291c[_0x3306bd(0x13f)](_0x37551b=>_0x37551b['scope']==='company');return{'appCode':_0x475a4b,'personal':_0x35addc,'company':_0x5a1cd3,'effective':[..._0x5a1cd3,..._0x35addc]};}return{'appCode':_0x19291c?.[_0x3306bd(0x119)]??_0x475a4b,'personal':Array[_0x3306bd(0x138)](_0x19291c?.[_0x3306bd(0x155)])?_0x19291c[_0x3306bd(0x155)]:[],'company':Array[_0x3306bd(0x138)](_0x19291c?.[_0x3306bd(0x106)])?_0x19291c[_0x3306bd(0x106)]:[],'effective':Array[_0x3306bd(0x138)](_0x19291c?.['effective'])?_0x19291c[_0x3306bd(0x16c)]:[]};}
|
|
1
|
+
(function(_0xf118da,_0x6bf8bb){const _0x5c52b6=a76_0x37c4,_0x4ba269=_0xf118da();while(!![]){try{const _0x41ab06=-parseInt(_0x5c52b6(0xbb))/0x1*(parseInt(_0x5c52b6(0xe6))/0x2)+-parseInt(_0x5c52b6(0x82))/0x3*(parseInt(_0x5c52b6(0xaa))/0x4)+parseInt(_0x5c52b6(0x107))/0x5*(parseInt(_0x5c52b6(0xa1))/0x6)+parseInt(_0x5c52b6(0x91))/0x7+-parseInt(_0x5c52b6(0xdb))/0x8*(-parseInt(_0x5c52b6(0xbd))/0x9)+parseInt(_0x5c52b6(0x92))/0xa+parseInt(_0x5c52b6(0xe3))/0xb*(-parseInt(_0x5c52b6(0xe8))/0xc);if(_0x41ab06===_0x6bf8bb)break;else _0x4ba269['push'](_0x4ba269['shift']());}catch(_0x57bee2){_0x4ba269['push'](_0x4ba269['shift']());}}}(a76_0x3493,0x8b09b));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x37c4(_0x3e6695,_0x3cacfd){_0x3e6695=_0x3e6695-0x81;const _0x349356=a76_0x3493();let _0x37c435=_0x349356[_0x3e6695];return _0x37c435;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x3be2b0){_activeAK=_0x3be2b0||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x57baf0){const _0x35d4eb=a76_0x37c4;for(const _0x3f9a3b of _0x57baf0){if(typeof _0x3f9a3b==='string'&&_0x3f9a3b[_0x35d4eb(0x99)]())return _0x3f9a3b[_0x35d4eb(0x99)]();}return undefined;}async function decodeResponseBody(_0x544675){const _0x546833=a76_0x37c4;if(typeof _0x544675['text']==='function')try{const _0x477ea6=await _0x544675[_0x546833(0xf8)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x477ea6),'text':_0x477ea6};}catch{return{'isJson':![],'text':_0x477ea6[_0x546833(0x99)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x544675[_0x546833(0xfd)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x14d821,_0xf79c4a,_0x5bb4d1){const _0x22a8c4=a76_0x37c4,_0x3fa06a=_0xf79c4a&&typeof _0xf79c4a===_0x22a8c4(0xef)?_0xf79c4a:{},_0xed3798=[_0x3fa06a[_0x22a8c4(0x87)],_0x3fa06a[_0x22a8c4(0xed)]]['find'](_0x3e08a9=>Number(_0x3e08a9)===0x1ad),_0xb5875e=createRateLimitError({'status':_0x14d821['status']===0x1ad?_0x14d821[_0x22a8c4(0x87)]:_0xed3798??_0x14d821[_0x22a8c4(0x87)],'errorCode':firstString(_0x3fa06a[_0x22a8c4(0xd0)],typeof _0x3fa06a[_0x22a8c4(0xed)]===_0x22a8c4(0xad)?_0x3fa06a['code']:undefined),'message':firstString(_0x3fa06a[_0x22a8c4(0xb8)],_0x3fa06a[_0x22a8c4(0xae)],_0x3fa06a[_0x22a8c4(0x108)],_0x5bb4d1),'retryAfter':readRetryAfter(_0x14d821[_0x22a8c4(0xa5)])??readRetryAfterSeconds(_0xf79c4a)});if(_0xb5875e)throw _0xb5875e;}async function apiRequest(_0x1a7f7,_0x262908={}){const _0x2c4a61=a76_0x37c4,{method:method=_0x2c4a61(0xc9),body:_0x5ea9af,headers:headers={},timeout:timeout=0x7530}=_0x262908,_0x72d575=_activeAK,_0x39a99c=getRuntimeDomain();if(!_0x72d575)throw CliErrors[_0x2c4a61(0x10b)](_0x2c4a61(0x10d)+PRODUCT_CONFIG[_0x2c4a61(0xb2)]+'.');const _0x3cf18e=''+_0x39a99c+_0x1a7f7,_0x253a58={'X-User-AK':_0x72d575},_0x229512=new AbortController(),_0x1c9e3f=setTimeout(()=>_0x229512[_0x2c4a61(0xcf)](),timeout);try{const _0x15f754=await fetch(_0x3cf18e,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x2c4a61(0xc0)],..._0x253a58,...headers},'body':_0x5ea9af?JSON[_0x2c4a61(0xcd)](_0x5ea9af):undefined,'signal':_0x229512[_0x2c4a61(0xbf)]}),_0x1ff557=await decodeResponseBody(_0x15f754);if(!_0x1ff557[_0x2c4a61(0xc8)]){throwIfRateLimited(_0x15f754,undefined,_0x1ff557['text']);throw CliErrors['apiError'](_0x2c4a61(0xf4)+_0x15f754[_0x2c4a61(0x87)]+')',_0x15f754[_0x2c4a61(0x87)]>=0x190?_0x2c4a61(0xa4):undefined);}const _0x2de229=_0x1ff557[_0x2c4a61(0xd5)];throwIfRateLimited(_0x15f754,_0x2de229);if(!_0x15f754['ok']||_0x2de229[_0x2c4a61(0xcb)]===![])throw CliErrors[_0x2c4a61(0xd2)](_0x2de229[_0x2c4a61(0xb8)]||_0x2de229[_0x2c4a61(0xae)]||_0x2c4a61(0x110)+_0x15f754[_0x2c4a61(0x87)],_0x2de229[_0x2c4a61(0xd0)]?_0x2c4a61(0xf2)+_0x2de229[_0x2c4a61(0xd0)]:undefined);return _0x2de229;}catch(_0x8c11be){if(_0x8c11be instanceof Error&&_0x8c11be['name']===_0x2c4a61(0x8a))throw CliErrors[_0x2c4a61(0xd2)](_0x2c4a61(0x9e)+_0x3cf18e);throw _0x8c11be;}finally{clearTimeout(_0x1c9e3f);}}async function apiBinaryRequest(_0x4b03c2,_0x191bc7={}){const _0x5a27a5=a76_0x37c4,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x191bc7,_0x5addca=_activeAK,_0x4920e6=getRuntimeDomain();if(!_0x5addca)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x55e8cf=''+_0x4920e6+_0x4b03c2,_0x212143=new AbortController(),_0x41500c=setTimeout(()=>_0x212143[_0x5a27a5(0xcf)](),timeout);try{const _0x41db4b=await fetch(_0x55e8cf,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5a27a5(0xc0)],'X-User-AK':_0x5addca,...headers},'signal':_0x212143['signal']});if(!_0x41db4b['ok']){const _0x5566c3=await decodeResponseBody(_0x41db4b),_0x3a6ed0=_0x5566c3[_0x5a27a5(0xd5)]&&typeof _0x5566c3[_0x5a27a5(0xd5)]===_0x5a27a5(0xef)?_0x5566c3[_0x5a27a5(0xd5)]:{},_0x484d82=firstString(_0x3a6ed0[_0x5a27a5(0xb8)],_0x3a6ed0[_0x5a27a5(0xae)],_0x3a6ed0[_0x5a27a5(0xd0)],_0x5566c3[_0x5a27a5(0xf8)]);throwIfRateLimited(_0x41db4b,_0x5566c3[_0x5a27a5(0xd5)],_0x484d82);throw CliErrors[_0x5a27a5(0xd2)](_0x484d82||_0x5a27a5(0x110)+_0x41db4b[_0x5a27a5(0x87)],_0x5a27a5(0xf3)+_0x55e8cf);}return Buffer[_0x5a27a5(0xa0)](await _0x41db4b[_0x5a27a5(0x93)]());}catch(_0x5b7305){if(_0x5b7305 instanceof Error&&_0x5b7305[_0x5a27a5(0x106)]===_0x5a27a5(0x8a))throw CliErrors[_0x5a27a5(0xd2)]('Request\x20timeout:\x20'+_0x55e8cf);throw _0x5b7305;}finally{clearTimeout(_0x41500c);}}async function apiFormRequest(_0x41c920,_0x13c20a,_0x1cd60c={}){const _0x5c51e2=a76_0x37c4,{timeout:timeout=0x7530}=_0x1cd60c,_0x49a6ee=_activeAK,_0x373390=getRuntimeDomain();if(!_0x49a6ee)throw CliErrors[_0x5c51e2(0x10b)](_0x5c51e2(0x10d)+PRODUCT_CONFIG[_0x5c51e2(0xb2)]+'.');const _0xcf7e02=''+_0x373390+_0x41c920,_0x447852=new AbortController(),_0x3f5764=setTimeout(()=>_0x447852[_0x5c51e2(0xcf)](),timeout);try{const _0x6fbd6c=await fetch(_0xcf7e02,{'method':_0x5c51e2(0x8b),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5c51e2(0xc0)],'X-User-AK':_0x49a6ee},'body':_0x13c20a,'signal':_0x447852[_0x5c51e2(0xbf)]}),_0x4dce75=await decodeResponseBody(_0x6fbd6c);if(!_0x4dce75[_0x5c51e2(0xc8)]){throwIfRateLimited(_0x6fbd6c,undefined,_0x4dce75[_0x5c51e2(0xf8)]);throw CliErrors[_0x5c51e2(0xd2)](_0x5c51e2(0xf4)+_0x6fbd6c[_0x5c51e2(0x87)]+')',_0x6fbd6c[_0x5c51e2(0x87)]>=0x190?_0x5c51e2(0xa4):undefined);}const _0x16247c=_0x4dce75[_0x5c51e2(0xd5)];throwIfRateLimited(_0x6fbd6c,_0x16247c);if(!_0x6fbd6c['ok']||_0x16247c[_0x5c51e2(0xcb)]===![])throw CliErrors['apiError'](_0x16247c[_0x5c51e2(0xb8)]||_0x16247c[_0x5c51e2(0xae)]||_0x5c51e2(0x110)+_0x6fbd6c[_0x5c51e2(0x87)],_0x16247c[_0x5c51e2(0xd0)]?'API\x20error\x20code:\x20'+_0x16247c[_0x5c51e2(0xd0)]:undefined);return _0x16247c;}catch(_0x3ab214){if(_0x3ab214 instanceof Error&&_0x3ab214[_0x5c51e2(0x106)]==='AbortError')throw CliErrors['apiError']('Request\x20timeout:\x20'+_0xcf7e02);throw _0x3ab214;}finally{clearTimeout(_0x3f5764);}}async function toolboxRequest(_0x971f4f,_0x563fd4,_0x3a22a1={}){const _0x49d6a8=a76_0x37c4,{method:method=_0x49d6a8(0xc9),headers:headers={},timeout:timeout=0x7530}=_0x3a22a1,_0xd07b25=_activeAK;if(!_0xd07b25)throw CliErrors['authRequired'](_0x49d6a8(0x10d)+PRODUCT_CONFIG[_0x49d6a8(0xb2)]+'.');const _0x32362a=getApiDomain()[_0x49d6a8(0x100)](/\/$/,''),_0x1e8271=new URL(_0x971f4f,_0x32362a+_0x49d6a8(0x10e));if(_0x563fd4)for(const [_0x4d6ab7,_0x106a50]of Object[_0x49d6a8(0x83)](_0x563fd4)){_0x106a50!==undefined&&_0x106a50!==null&&_0x1e8271[_0x49d6a8(0xb9)][_0x49d6a8(0xea)](_0x4d6ab7,String(_0x106a50));}const _0x5d5fc8=new AbortController(),_0x6500bf=setTimeout(()=>_0x5d5fc8[_0x49d6a8(0xcf)](),timeout);try{const _0x1d7e2f=await fetch(_0x1e8271,{'method':method,'headers':{'Content-Type':_0x49d6a8(0xd3),'X-Invoke-Source':PRODUCT_CONFIG[_0x49d6a8(0xc0)],'X-User-AK':_0xd07b25,...headers},'signal':_0x5d5fc8[_0x49d6a8(0xbf)]}),_0x565347=await decodeResponseBody(_0x1d7e2f);if(!_0x565347[_0x49d6a8(0xc8)]){throwIfRateLimited(_0x1d7e2f,undefined,_0x565347['text']);throw CliErrors['apiError'](_0x49d6a8(0xd9)+_0x1d7e2f[_0x49d6a8(0x87)]+')',_0x1d7e2f[_0x49d6a8(0x87)]>=0x190?_0x49d6a8(0xa4):undefined);}const _0x309aeb=_0x565347['data'];throwIfRateLimited(_0x1d7e2f,_0x309aeb);if(!_0x1d7e2f['ok']){const _0x5904a0=_0x309aeb&&typeof _0x309aeb===_0x49d6a8(0xef)?_0x309aeb:{};throw CliErrors['apiError'](_0x5904a0[_0x49d6a8(0xb8)]||_0x5904a0['message']||_0x49d6a8(0xd8)+_0x1d7e2f[_0x49d6a8(0x87)],_0x5904a0[_0x49d6a8(0xd0)]?_0x49d6a8(0xfc)+_0x5904a0['errorCode']:undefined);}if(_0x309aeb&&typeof _0x309aeb==='object'&&_0x49d6a8(0xcb)in _0x309aeb&&typeof _0x309aeb[_0x49d6a8(0xcb)]==='boolean'){const _0xcedf2c=_0x309aeb;if(!_0xcedf2c[_0x49d6a8(0xcb)])throw CliErrors[_0x49d6a8(0xd2)](_0xcedf2c['errorMsg']||_0xcedf2c[_0x49d6a8(0xae)]||_0x49d6a8(0x116),_0xcedf2c[_0x49d6a8(0xd0)]?_0x49d6a8(0xfc)+_0xcedf2c['errorCode']:undefined);return _0xcedf2c[_0x49d6a8(0xd5)];}return _0x309aeb;}catch(_0x1d2538){if(_0x1d2538 instanceof Error&&_0x1d2538[_0x49d6a8(0x106)]===_0x49d6a8(0x8a))throw CliErrors[_0x49d6a8(0xd2)](_0x49d6a8(0x9e)+_0x1e8271[_0x49d6a8(0x10c)]());throw _0x1d2538;}finally{clearTimeout(_0x6500bf);}}async function skillHubJsonRequest(_0x342cad,_0x5505d6={}){const _0x56fc6d=a76_0x37c4,{method:method=_0x56fc6d(0xc9),query:_0x1d9ca8,body:_0x5d18a6,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5505d6,_0x28f4b7=_activeAK;if(!_0x28f4b7)throw CliErrors['authRequired'](_0x56fc6d(0x10d)+PRODUCT_CONFIG[_0x56fc6d(0xb2)]+'.');const _0x4e0d4f=getSkillHubDomain()[_0x56fc6d(0x100)](/\/$/,''),_0x1f7abf=new URL(_0x342cad,_0x4e0d4f+'/');if(_0x1d9ca8)for(const [_0x129507,_0x121e03]of Object[_0x56fc6d(0x83)](_0x1d9ca8)){_0x121e03!==undefined&&_0x121e03!==null&&_0x1f7abf[_0x56fc6d(0xb9)][_0x56fc6d(0xea)](_0x129507,String(_0x121e03));}const _0x80c4b0=new AbortController(),_0x129ec2=setTimeout(()=>_0x80c4b0[_0x56fc6d(0xcf)](),timeout);try{const _0x3a7576=await fetch(_0x1f7abf['toString'](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x28f4b7,...headers},'body':_0x5d18a6,'signal':_0x80c4b0[_0x56fc6d(0xbf)]}),_0x507c5a=await decodeResponseBody(_0x3a7576);if(!_0x507c5a['isJson']){if(allowNotFound&&_0x3a7576['status']===0x194)return undefined;throwIfRateLimited(_0x3a7576,undefined,_0x507c5a[_0x56fc6d(0xf8)]);throw CliErrors[_0x56fc6d(0xd2)](_0x56fc6d(0x112)+_0x3a7576[_0x56fc6d(0x87)]+')',_0x3a7576[_0x56fc6d(0x87)]>=0x190?_0x56fc6d(0xa4):undefined);}const _0x57cbc3=_0x507c5a[_0x56fc6d(0xd5)];throwIfRateLimited(_0x3a7576,_0x57cbc3);if(allowNotFound&&isSkillHubNotFoundResponse(_0x3a7576[_0x56fc6d(0x87)],_0x57cbc3))return undefined;const _0x2be9f1=!_0x3a7576['ok']||_0x57cbc3?.[_0x56fc6d(0xcb)]===![]||typeof _0x57cbc3?.[_0x56fc6d(0xed)]===_0x56fc6d(0xfa)&&_0x57cbc3['code']>=0x190;if(_0x2be9f1)throw CliErrors[_0x56fc6d(0xd2)](_0x57cbc3?.[_0x56fc6d(0xb8)]||_0x57cbc3?.[_0x56fc6d(0xae)]||_0x57cbc3?.[_0x56fc6d(0x108)]||_0x56fc6d(0xe0)+_0x3a7576[_0x56fc6d(0x87)],_0x57cbc3?.[_0x56fc6d(0xd0)]?'SkillHub\x20error\x20code:\x20'+_0x57cbc3[_0x56fc6d(0xd0)]:undefined);return _0x57cbc3?.[_0x56fc6d(0xd5)]??_0x57cbc3;}catch(_0x28f7e9){if(_0x28f7e9 instanceof Error&&_0x28f7e9['name']===_0x56fc6d(0x8a))throw CliErrors[_0x56fc6d(0xd2)]('Request\x20timeout:\x20'+_0x1f7abf[_0x56fc6d(0x10c)]());throw _0x28f7e9;}finally{clearTimeout(_0x129ec2);}}function a76_0x3493(){const _0x77f32f=['object','limit','/client/runtime-bff/personal/list?appCode=','API\x20error\x20code:\x20','Download\x20failed:\x20','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/uploadFile','topK','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','text','DELETE','number','NAMESPACE_ONLY','Toolbox\x20error\x20code:\x20','json','packageBase64','/api/v1/skills/','replace','PRIVATE','validation','/versions/','valid','resolvedVersion','name','1760YYEJVH','msg','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/dataset/get-driven-data?code=','authRequired','toString','Configure\x20accessKey\x20in\x20','/api/node-toolbox/','append','API\x20error:\x20','isArray','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/artifact/list?','example','version','Toolbox\x20API\x20error','skillName','description','tableData','2620491apWzbM','entries','personal','/client/runtime-bff/personal/','favorite','status','scope','error','AbortError','POST','tags','Invalid\x20app\x20config\x20value:\x20key=','query','displayName','warnings','4937653ncRoGS','7343260IuqAlf','arrayBuffer','appCode','summary','skill','effective','resolvedSlug','trim','url','/client/knowledge-base/search','/update','download','Request\x20timeout:\x20','cursor','from','9096Fdhqxf','/api/cli/v1/skills/','longTerm','Check\x20your\x20credentials\x20and\x20try\x20again.','headers','application/zip','/skills','/execute?appCode=','appName','4cCnzEA','skillCode','file','string','message','gmtModified','headlineVersion','functionName','newConfigFileName','all','/client/knowledge-base/personal/list?appCode=','Personal\x20BFF\x20not\x20found:\x20id=','size','?appCode=','errorMsg','searchParams','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','17xrbJvT','Missing\x20Skill\x20package\x20payload.','2297448NXXosp','Knowledge-base\x20entry\x20not\x20found:\x20id=','signal','invokeSource','/client/app/my-apps','/publish/validate','/api/harness/apps/','/client/queryFileUrl','/client/sql/query','values','join','isJson','GET','type','success','/client/runtime-bff/personal/create','stringify','functions','abort','errorCode','undefined','apiError','application/json','source','data','Artifact\x20not\x20found:\x20id=',',\x20name=','Toolbox\x20API\x20error:\x20','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/octet-stream','32THGYHY','filter','artifactType','confirmWarnings','company','SkillHub\x20API\x20error:\x20','/download','/client/knowledge-base/personal/','603119HKFdcO','slug','sqlCode','85764rhFPhb','errors','180IbxGuu','/schedules','set','namespace','content','code','visibility'];a76_0x3493=function(){return _0x77f32f;};return a76_0x3493();}function isSkillHubNotFoundResponse(_0x58680d,_0x3fcb41){const _0x37a429=a76_0x37c4;if(_0x58680d===0x194||_0x3fcb41?.['code']===0x194)return!![];if(_0x58680d!==0x190&&_0x3fcb41?.[_0x37a429(0xed)]!==0x190)return![];const _0x2cfbcd=[_0x3fcb41?.[_0x37a429(0x108)],_0x3fcb41?.['message'],_0x3fcb41?.['errorMsg'],_0x3fcb41?.[_0x37a429(0x89)]][_0x37a429(0xdc)](_0x5271a1=>typeof _0x5271a1==='string')[_0x37a429(0xc7)]('\x20');return/skill not found\b/i['test'](_0x2cfbcd);}async function skillHubBinaryRequest(_0x410d29,_0x57a991={}){const _0x1c8421=a76_0x37c4,{query:_0x5cca86,headers:headers={},timeout:timeout=0x7530}=_0x57a991,_0x1bbd0f=_activeAK;if(!_0x1bbd0f)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1c8421(0xb2)]+'.');const _0x2bccd3=getSkillHubDomain()[_0x1c8421(0x100)](/\/$/,''),_0x38a725=new URL(_0x410d29,_0x2bccd3+'/');if(_0x5cca86)for(const [_0x5469ac,_0x2e65b5]of Object[_0x1c8421(0x83)](_0x5cca86)){_0x2e65b5!==undefined&&_0x2e65b5!==null&&_0x38a725[_0x1c8421(0xb9)][_0x1c8421(0xea)](_0x5469ac,String(_0x2e65b5));}const _0x5f2c39=new AbortController(),_0x29864c=setTimeout(()=>_0x5f2c39[_0x1c8421(0xcf)](),timeout);try{const _0x58864f=await fetch(_0x38a725['toString'](),{'method':_0x1c8421(0xc9),'headers':{'Accept':_0x1c8421(0xda),'X-Invoke-Source':PRODUCT_CONFIG[_0x1c8421(0xc0)],'X-User-AK':_0x1bbd0f,...headers},'signal':_0x5f2c39[_0x1c8421(0xbf)]});if(!_0x58864f['ok']){const _0x16015c=await decodeResponseBody(_0x58864f),_0x23dcc0=_0x16015c[_0x1c8421(0xd5)]&&typeof _0x16015c['data']===_0x1c8421(0xef)?_0x16015c[_0x1c8421(0xd5)]:{},_0x27b34b=firstString(_0x23dcc0['errorMsg'],_0x23dcc0[_0x1c8421(0xae)],_0x23dcc0[_0x1c8421(0x108)],_0x23dcc0['errorCode'],_0x16015c[_0x1c8421(0xf8)]);throwIfRateLimited(_0x58864f,_0x16015c[_0x1c8421(0xd5)],_0x27b34b);throw CliErrors[_0x1c8421(0xd2)](_0x27b34b||_0x1c8421(0xe0)+_0x58864f['status'],'Download\x20failed:\x20'+_0x38a725['toString']());}return Buffer[_0x1c8421(0xa0)](await _0x58864f[_0x1c8421(0x93)]());}catch(_0x142833){if(_0x142833 instanceof Error&&_0x142833[_0x1c8421(0x106)]===_0x1c8421(0x8a))throw CliErrors[_0x1c8421(0xd2)]('Request\x20timeout:\x20'+_0x38a725['toString']());throw _0x142833;}finally{clearTimeout(_0x29864c);}}export async function getBffEndpointContract(_0xc2fd8b,_0x313590){const _0x2240ef=a76_0x37c4;if(_0x313590===_0x2240ef(0xce))throw CliErrors[_0x2240ef(0x102)](_0x2240ef(0xba)+_0xc2fd8b+',\x20name='+_0x313590);const _0x5db8cb=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0xc2fd8b)+'/'+encodeURIComponent(_0x313590)),_0x1380de=_0x5db8cb[_0x2240ef(0xd5)];if(!_0x1380de||typeof _0x1380de!==_0x2240ef(0xef)||Array[_0x2240ef(0x111)](_0x1380de)||_0x1380de[_0x2240ef(0x94)]!==_0xc2fd8b||_0x1380de[_0x2240ef(0xb1)]!==_0x313590)throw CliErrors[_0x2240ef(0x102)](_0x2240ef(0xba)+_0xc2fd8b+_0x2240ef(0xd7)+_0x313590);return{'appCode':_0x1380de['appCode'],'functionName':_0x1380de[_0x2240ef(0xb1)],'description':_0x1380de[_0x2240ef(0x118)],'version':_0x1380de[_0x2240ef(0x115)],'gmtModified':_0x1380de[_0x2240ef(0xaf)]};}export async function getSqlQueryInfo(_0x2e738d,_0x824450){const _0x157a3f=a76_0x37c4,_0x119e36=await apiRequest(_0x157a3f(0xc5),{'method':_0x157a3f(0x8b),'body':{'appCode':_0x2e738d,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x824450}}),_0x5e4238=_0x119e36[_0x157a3f(0xd5)],_0x2b81bf=_0x5e4238&&typeof _0x5e4238===_0x157a3f(0xef)&&_0x157a3f(0x81)in _0x5e4238?_0x5e4238[_0x157a3f(0x81)]?.[0x0]:_0x5e4238&&typeof _0x5e4238===_0x157a3f(0xef)&&_0x157a3f(0xe5)in _0x5e4238?_0x5e4238:undefined;if(!_0x2b81bf)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x824450);return _0x2b81bf;}function isRemoteAppItem(_0x1b0cd4){const _0x30f4f7=a76_0x37c4;return!!_0x1b0cd4&&typeof _0x1b0cd4===_0x30f4f7(0xef)&&typeof _0x1b0cd4[_0x30f4f7(0x94)]==='string'&&typeof _0x1b0cd4[_0x30f4f7(0xa9)]===_0x30f4f7(0xad);}function extractRemoteAppItems(_0x3371e4){const _0x3892cb=a76_0x37c4;if(Array['isArray'](_0x3371e4))return _0x3371e4[_0x3892cb(0xdc)](isRemoteAppItem);if(!_0x3371e4||typeof _0x3371e4!==_0x3892cb(0xef))throw CliErrors['apiError'](_0x3892cb(0xf7));const _0x2d6610=_0x3371e4;if(Array['isArray'](_0x2d6610[_0x3892cb(0x81)]))return _0x2d6610['tableData']['filter'](isRemoteAppItem);if(_0x2d6610[_0x3892cb(0xd5)]&&typeof _0x2d6610[_0x3892cb(0xd5)]===_0x3892cb(0xef)){const _0x1ff4c4=_0x2d6610[_0x3892cb(0xd5)];if(Array[_0x3892cb(0x111)](_0x1ff4c4['tableData']))return _0x1ff4c4[_0x3892cb(0x81)]['filter'](isRemoteAppItem);}throw CliErrors[_0x3892cb(0xd2)](_0x3892cb(0x109));}export async function getMyApps(){const _0x13a466=a76_0x37c4,_0x8bf175=await apiRequest(_0x13a466(0xc1));return extractRemoteAppItems(_0x8bf175[_0x13a466(0xd5)]);}export async function getLoginUserInfo(){const _0x373af6=a76_0x37c4,_0x3c4b38=await apiRequest('/client/user/loginUserInfo');if(!_0x3c4b38['data']||typeof _0x3c4b38['data']!==_0x373af6(0xef)||Array[_0x373af6(0x111)](_0x3c4b38[_0x373af6(0xd5)]))throw CliErrors[_0x373af6(0xd2)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x3c4b38[_0x373af6(0xd5)];}function runtimeSchedulePath(_0x2d648d,_0x186e1e=''){const _0x7251bf=a76_0x37c4;return _0x7251bf(0xc3)+encodeURIComponent(_0x2d648d)+_0x7251bf(0xe9)+_0x186e1e;}export async function validateRuntimeSchedule(_0x403823,_0x4006fe){const _0x5d1328=a76_0x37c4,_0x1cdf0b=await apiRequest(runtimeSchedulePath(_0x403823,'/validate'),{'method':_0x5d1328(0x8b),'body':_0x4006fe});return _0x1cdf0b[_0x5d1328(0xd5)];}export async function createRuntimeSchedule(_0x4743f1,_0x466f08){const _0xd966be=a76_0x37c4,_0xd9e860=await apiRequest(runtimeSchedulePath(_0x4743f1),{'method':_0xd966be(0x8b),'body':_0x466f08});return _0xd9e860[_0xd966be(0xd5)];}export async function listRuntimeSchedules(_0x3e9c34,_0x208329={}){const _0x34251e=a76_0x37c4,_0x491b48=new URLSearchParams();if(_0x208329['limit']!==undefined)_0x491b48[_0x34251e(0xea)](_0x34251e(0xf0),String(_0x208329[_0x34251e(0xf0)]));if(_0x208329['cursor'])_0x491b48[_0x34251e(0xea)](_0x34251e(0x9f),_0x208329['cursor']);const _0x6fd5c8=_0x491b48[_0x34251e(0xb6)]>0x0?'?'+_0x491b48['toString']():'',_0x4add36=await apiRequest(''+runtimeSchedulePath(_0x3e9c34)+_0x6fd5c8);return _0x4add36[_0x34251e(0xd5)];}export async function getRuntimeSchedule(_0xfff1,_0x4282e6){const _0x16cdab=a76_0x37c4,_0x52e174=await apiRequest(runtimeSchedulePath(_0xfff1,'/'+encodeURIComponent(_0x4282e6)));return _0x52e174[_0x16cdab(0xd5)];}export async function deleteRuntimeSchedule(_0x4b1969,_0x5ad18c){const _0x36544d=a76_0x37c4,_0x24d146=await apiRequest(runtimeSchedulePath(_0x4b1969,'/'+encodeURIComponent(_0x5ad18c)),{'method':_0x36544d(0xf9)});return _0x24d146[_0x36544d(0xd5)];}export async function runRuntimeSchedule(_0x17172b,_0x4aeacc){const _0xed4e10=a76_0x37c4,_0x4f06af=await apiRequest(runtimeSchedulePath(_0x17172b,'/'+encodeURIComponent(_0x4aeacc)+'/run'),{'method':_0xed4e10(0x8b)});return _0x4f06af[_0xed4e10(0xd5)];}export async function listDatasets(_0x34eba5,_0x1a1bd8){const _0x2183eb=a76_0x37c4,_0x5800e8=await apiRequest('/client/dataset/list',{'method':_0x2183eb(0x8b),'body':{'appCode':_0x34eba5,..._0x1a1bd8?.['code']&&{'code':_0x1a1bd8[_0x2183eb(0xed)]},..._0x1a1bd8?.[_0x2183eb(0x106)]&&{'name':_0x1a1bd8['name']}}});return extractList(_0x5800e8['data']);}export async function getDatasetDetail(_0x52081c){const _0x54ed8b=a76_0x37c4,_0x2c2b0e=await apiRequest(_0x54ed8b(0x10a)+encodeURIComponent(_0x52081c));return _0x2c2b0e[_0x54ed8b(0xd5)];}export async function getDatasetSdkUsageDoc(_0x55b00b,_0x5d0f5c){const _0x31eaba=a76_0x37c4,_0x7b4dbd=await toolboxRequest('api-doc-generator',{'datasetCode':_0x55b00b,'appCode':_0x5d0f5c});return typeof _0x7b4dbd?.['markdown']===_0x31eaba(0xad)?_0x7b4dbd['markdown']:'';}export async function uploadRuntimeFile(_0x20b8bd,_0x393a55){const _0x25b73d=a76_0x37c4,_0x1560d4=await readFile(_0x393a55),_0x342ad1=new FormData();_0x342ad1['append'](_0x25b73d(0x94),_0x20b8bd),_0x342ad1[_0x25b73d(0x10f)](_0x25b73d(0xac),new Blob([new Uint8Array(_0x1560d4)]),basename(_0x393a55));const _0x4dc150=await apiFormRequest(_0x25b73d(0xf5),_0x342ad1);return _0x4dc150[_0x25b73d(0xd5)];}export async function queryRuntimeFileUrl(_0x3c53f0,_0x57e0da={}){const _0x525854=a76_0x37c4,_0xd67b27=await apiRequest(_0x525854(0xc4),{'method':_0x525854(0x8b),'body':{'filePath':_0x3c53f0,'downloadFlag':_0x57e0da[_0x525854(0x9d)]??![],..._0x57e0da[_0x525854(0xa3)]?{'longTerm':!![]}:{}}});return _0xd67b27['data'];}export async function recognizeRuntimeOcr(_0x336bb5,_0x19a5aa){const _0x536cde=a76_0x37c4,_0x13c5c2=await apiRequest('/client/ocr',{'method':_0x536cde(0x8b),'body':{'appCode':_0x336bb5,'url':_0x19a5aa[_0x536cde(0x9a)],'type':_0x19a5aa[_0x536cde(0xca)]}});return _0x13c5c2[_0x536cde(0xd5)];}export async function getRuntimeAppConfigByKey(_0x2e782c,_0x4a3a73){const _0x2d0fda=a76_0x37c4,_0x490460=new URLSearchParams({'appCode':_0x2e782c,'key':_0x4a3a73}),_0x1ce183=await apiRequest('/client/app-config/getByKey?'+_0x490460[_0x2d0fda(0x10c)]());if(typeof _0x1ce183[_0x2d0fda(0xd5)]!==_0x2d0fda(0xad))throw CliErrors['validation'](_0x2d0fda(0x8d)+_0x4a3a73);return _0x1ce183[_0x2d0fda(0xd5)];}export async function listRuntimeArtifacts(_0x15ed4d,_0x22a1cf){const _0x2ffa0d=a76_0x37c4,_0x1a355b=new URLSearchParams({'appCode':_0x15ed4d});if(_0x22a1cf?.[_0x2ffa0d(0xdd)])_0x1a355b['set'](_0x2ffa0d(0xdd),_0x22a1cf['artifactType']);if(_0x22a1cf?.[_0x2ffa0d(0xd4)])_0x1a355b[_0x2ffa0d(0xea)](_0x2ffa0d(0xd4),_0x22a1cf[_0x2ffa0d(0xd4)]);if(_0x22a1cf?.[_0x2ffa0d(0x86)]!==undefined)_0x1a355b[_0x2ffa0d(0xea)]('favorite',String(_0x22a1cf[_0x2ffa0d(0x86)]));const _0x135a83=await apiRequest(_0x2ffa0d(0x113)+_0x1a355b['toString']());return Array['isArray'](_0x135a83[_0x2ffa0d(0xd5)])?_0x135a83[_0x2ffa0d(0xd5)]:[];}export async function getRuntimeArtifact(_0x4b7631,_0x20084f){const _0x53f81f=a76_0x37c4,_0x2c76a8=await apiRequest('/client/artifact/'+_0x4b7631+_0x53f81f(0xb7)+encodeURIComponent(_0x20084f));if(!_0x2c76a8[_0x53f81f(0xd5)])throw CliErrors['validation'](_0x53f81f(0xd6)+_0x4b7631);return _0x2c76a8[_0x53f81f(0xd5)];}export async function createRuntimeArtifact(_0xda2a05,_0x57f2d1){const _0x3db4c2=a76_0x37c4,_0x3e84be=await apiRequest('/client/artifact/create',{'method':_0x3db4c2(0x8b),'body':{'appCode':_0xda2a05,..._0x57f2d1}});return _0x3e84be['data'];}export async function updateRuntimeArtifact(_0x56e6e7,_0x956b02,_0x362477){const _0x3fd897=a76_0x37c4,_0x1f361e=await apiRequest('/client/artifact/'+_0x56e6e7+_0x3fd897(0x9c),{'method':_0x3fd897(0x8b),'body':{'appCode':_0x956b02,..._0x362477}});return _0x1f361e[_0x3fd897(0xd5)];}export async function listPersonalBffs(_0x408a5f){const _0x383135=a76_0x37c4,_0x54df4b=await apiRequest(_0x383135(0xf1)+encodeURIComponent(_0x408a5f));return Array[_0x383135(0x111)](_0x54df4b[_0x383135(0xd5)])?_0x54df4b['data']:[];}export async function getPersonalBff(_0x23180a,_0x2c2866){const _0x40b57e=a76_0x37c4,_0x52fb0e=await apiRequest(_0x40b57e(0x85)+_0x23180a+'?appCode='+encodeURIComponent(_0x2c2866));if(!_0x52fb0e[_0x40b57e(0xd5)])throw CliErrors[_0x40b57e(0x102)](_0x40b57e(0xb5)+_0x23180a);return _0x52fb0e['data'];}export async function createPersonalBff(_0x122e2a,_0x4a6295){const _0x4f9c04=a76_0x37c4,_0x39d9db=await apiRequest(_0x4f9c04(0xcc),{'method':_0x4f9c04(0x8b),'body':{'appCode':_0x122e2a,..._0x4a6295}});return _0x39d9db[_0x4f9c04(0xd5)];}export async function updatePersonalBff(_0xa8372d,_0x50b02b,_0x5e29e5){const _0x3cfaea=a76_0x37c4,_0x9d3aee=await apiRequest('/client/runtime-bff/personal/'+_0xa8372d+_0x3cfaea(0x9c),{'method':_0x3cfaea(0x8b),'body':{'appCode':_0x50b02b,..._0x5e29e5}});return _0x9d3aee[_0x3cfaea(0xd5)];}export async function executePersonalBff(_0xc16b2a,_0x3b2dcf,_0x3557bc){const _0x4efe9b=a76_0x37c4,_0x118157=await apiRequest(_0x4efe9b(0x85)+_0xc16b2a+_0x4efe9b(0xa8)+encodeURIComponent(_0x3b2dcf),{'method':'POST','body':_0x3557bc});return _0x118157[_0x4efe9b(0xd5)];}export async function listPersonalKnowledgeBaseItems(_0x57541a){const _0x3f8471=a76_0x37c4,_0x5ae049=await apiRequest(_0x3f8471(0xb4)+encodeURIComponent(_0x57541a));return Array[_0x3f8471(0x111)](_0x5ae049[_0x3f8471(0xd5)])?_0x5ae049['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x30be20,_0x7d46fb){const _0x2e5783=a76_0x37c4,_0x358116=await apiRequest(_0x2e5783(0xe2)+_0x30be20+_0x2e5783(0xb7)+encodeURIComponent(_0x7d46fb));if(!_0x358116[_0x2e5783(0xd5)])throw CliErrors[_0x2e5783(0x102)](_0x2e5783(0xbe)+_0x30be20);return _0x358116[_0x2e5783(0xd5)];}export async function createPersonalKnowledgeBaseItem(_0x58cbba,_0x460f33){const _0x19735c=a76_0x37c4,_0x1aebbb=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x19735c(0x8b),'body':{'appCode':_0x58cbba,..._0x460f33}});return _0x1aebbb[_0x19735c(0xd5)];}export async function updatePersonalKnowledgeBaseItem(_0x4122a5,_0x2ef3b6,_0x4407f4){const _0x255889=a76_0x37c4,_0x5729c4=await apiRequest(_0x255889(0xe2)+_0x4122a5+'/update',{'method':_0x255889(0x8b),'body':{'appCode':_0x2ef3b6,..._0x4407f4}});return _0x5729c4['data'];}export async function searchKnowledgeBase(_0x13c2dd,_0x47592e){const _0x4222f3=a76_0x37c4,_0x1ce22a=await apiRequest(_0x4222f3(0x9b),{'method':_0x4222f3(0x8b),'body':{'appCode':_0x13c2dd,'query':_0x47592e[_0x4222f3(0x8e)],..._0x47592e[_0x4222f3(0xf6)]!==undefined?{'topK':_0x47592e[_0x4222f3(0xf6)]}:{}}});return Array[_0x4222f3(0x111)](_0x1ce22a[_0x4222f3(0xd5)])?_0x1ce22a[_0x4222f3(0xd5)]:[];}export async function getRuntimeSkillByCode(_0x2565a5,_0x10a72b){const _0x36686d=a76_0x37c4,_0x3b6d6d=await skillHubJsonRequest(_0x36686d(0xff)+encodeURIComponent(_0x2565a5)+'/'+encodeURIComponent(_0x10a72b),{'allowNotFound':!![]});return _0x3b6d6d?skillHubRuntimeDetailToRuntimeSkill(_0x3b6d6d):undefined;}export async function listRuntimeSkills(_0x5aca1f){const _0x58733e=a76_0x37c4,_0x423f79=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x5aca1f[_0x58733e(0x94)])+_0x58733e(0xa7),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5aca1f[_0x58733e(0x94)],_0x423f79,_0x5aca1f[_0x58733e(0x88)]??_0x58733e(0xb3),_0x5aca1f['code']);}export async function listPersonalRuntimeSkills(_0x4e5cd7){const _0x278da4=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x4e5cd7,'scope':_0x278da4(0x84)}))[_0x278da4(0x84)];}export async function listCompanyRuntimeSkills(_0x81467e){const _0x36a389=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x81467e,'scope':'company'}))[_0x36a389(0xdf)];}export async function listVisibleRuntimeSkills(_0x20db57){const _0x46ac34=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x20db57,'scope':_0x46ac34(0xb3)}))[_0x46ac34(0x97)];}export async function createPersonalRuntimeSkill(_0x39f047,_0x1347ce,_0x80ce2={}){const _0x2971ba=a76_0x37c4;return publishRuntimeSkill(_0x39f047,_0x1347ce,{'visibility':'PRIVATE','confirmWarnings':_0x80ce2[_0x2971ba(0xde)]});}export async function updatePersonalRuntimeSkill(_0x3e95c7,_0x4bb06d,_0x412c91,_0x45b757={}){const _0x16b53b=a76_0x37c4;return publishRuntimeSkill(_0x4bb06d,{..._0x412c91,'skillCode':_0x412c91[_0x16b53b(0xab)]??_0x3e95c7},{'visibility':'PRIVATE','confirmWarnings':_0x45b757[_0x16b53b(0xde)]});}export async function publishCompanyRuntimeSkill(_0x5c2514,_0x54daf9,_0x8d107d={}){const _0x4ce107=a76_0x37c4;return publishRuntimeSkill(_0x5c2514,_0x54daf9,{'visibility':_0x4ce107(0xfb),'confirmWarnings':_0x8d107d['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x27b07a,_0x58c616,_0x51e4ea){const _0x53019b=a76_0x37c4,_0x4de716=buildRuntimeSkillPublishForm(_0x58c616,_0x51e4ea[_0x53019b(0xee)]),_0x77f78b=await skillHubJsonRequest(_0x53019b(0xa2)+encodeURIComponent(_0x27b07a)+_0x53019b(0xc2),{'method':_0x53019b(0x8b),'body':_0x4de716});return{'valid':_0x77f78b[_0x53019b(0x104)]===!![],'errors':Array['isArray'](_0x77f78b[_0x53019b(0xe7)])?_0x77f78b[_0x53019b(0xe7)]:[],'warnings':Array[_0x53019b(0x111)](_0x77f78b[_0x53019b(0x90)])?_0x77f78b[_0x53019b(0x90)]:[],'resolvedSlug':_0x77f78b[_0x53019b(0x98)],'resolvedVersion':_0x77f78b[_0x53019b(0x105)]};}export async function downloadRuntimeSkillPackage(_0x28b9cf,_0x59846d,_0x5104cf,_0x2adff6){const _0x27b900=a76_0x37c4;void _0x28b9cf;const _0x5ed219=_0x2adff6?_0x27b900(0xa2)+encodeURIComponent(_0x5104cf)+'/'+encodeURIComponent(_0x59846d)+_0x27b900(0x103)+encodeURIComponent(_0x2adff6)+_0x27b900(0xe1):'/api/cli/v1/skills/'+encodeURIComponent(_0x5104cf)+'/'+encodeURIComponent(_0x59846d)+'/download';return skillHubBinaryRequest(_0x5ed219);}async function publishRuntimeSkill(_0x4f4916,_0x2e429a,_0x59e141){const _0x232df4=a76_0x37c4,_0x282519=buildRuntimeSkillPublishForm(_0x2e429a,_0x59e141['visibility']),_0x3609e4=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4f4916)+'/publish',{'method':_0x232df4(0x8b),'query':{'confirmWarnings':_0x59e141['confirmWarnings']===!![]?!![]:undefined},'body':_0x282519});return{'appCode':_0x3609e4[_0x232df4(0xeb)]??_0x4f4916,'skillCode':_0x3609e4[_0x232df4(0xe4)]??_0x2e429a[_0x232df4(0xab)]??'','skillName':_0x2e429a[_0x232df4(0x117)]??_0x3609e4[_0x232df4(0xe4)]??_0x2e429a['skillCode'],'description':_0x2e429a[_0x232df4(0x118)],'scope':skillHubVisibilityToScope(_0x3609e4['visibility']??_0x59e141[_0x232df4(0xee)])??_0x232df4(0x84),'version':_0x3609e4[_0x232df4(0x115)]??_0x2e429a[_0x232df4(0x115)],'tags':_0x2e429a[_0x232df4(0x8c)],'content':_0x2e429a[_0x232df4(0xec)]};}function buildRuntimeSkillPublishForm(_0x291690,_0x36426f){const _0x5bf280=a76_0x37c4,_0x5e2a52=new FormData();return _0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0xac),runtimeSkillPackageFile(_0x291690)),_0x291690['skillName']?.['trim']()&&_0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0x8f),_0x291690[_0x5bf280(0x117)][_0x5bf280(0x99)]()),_0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0xee),_0x36426f),_0x5e2a52;}function runtimeSkillPackageFile(_0x3e6ed1){const _0x13e35f=a76_0x37c4;if(!_0x3e6ed1[_0x13e35f(0xfe)])throw CliErrors['validation'](_0x13e35f(0xbc));const _0x5c6bf8=Buffer['from'](_0x3e6ed1[_0x13e35f(0xfe)],'base64'),_0x24df50=new Blob([_0x5c6bf8],{'type':'application/zip'}),_0x4b1c4e=(_0x3e6ed1[_0x13e35f(0xab)]||_0x13e35f(0x96))+'.zip';if(typeof File!==_0x13e35f(0xd1))return new File([_0x24df50],_0x4b1c4e,{'type':_0x13e35f(0xa6)});return _0x24df50;}function normalizeSkillHubRuntimeListResponse(_0x171979,_0x2138d5,_0x153a79,_0x557ce1){const _0x5a10fb=a76_0x37c4,_0x34b0e4=Array[_0x5a10fb(0x111)](_0x2138d5)?_0x2138d5:Array[_0x5a10fb(0x111)](_0x2138d5?.['items'])?_0x2138d5['items']:[],_0x22efed=_0x557ce1?.[_0x5a10fb(0x99)](),_0x529104=_0x34b0e4[_0x5a10fb(0xdc)](_0x216d13=>!_0x22efed||_0x216d13[_0x5a10fb(0xe4)]===_0x22efed)['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0xafb655=>Boolean(_0xafb655)),_0x386032=_0x529104[_0x5a10fb(0xdc)](_0x2156d6=>_0x2156d6[_0x5a10fb(0x88)]==='personal'),_0x4de0c7=_0x529104[_0x5a10fb(0xdc)](_0x4b35d0=>_0x4b35d0[_0x5a10fb(0x88)]==='company');return{'appCode':_0x171979,'personal':_0x153a79===_0x5a10fb(0xdf)?[]:_0x386032,'company':_0x153a79==='personal'?[]:_0x4de0c7,'effective':buildEffectiveRuntimeSkills(_0x386032,_0x4de0c7,_0x153a79)};}function skillHubRuntimeItemToRuntimeSkill(_0x257bab){const _0x197636=a76_0x37c4,_0x1922d2=_0x257bab[_0x197636(0xe4)]?.[_0x197636(0x99)](),_0x316959=skillHubVisibilityToScope(_0x257bab[_0x197636(0xee)]);if(!_0x1922d2||!_0x316959)return undefined;return{'id':_0x257bab['id'],'appCode':_0x257bab['namespace'],'skillCode':_0x1922d2,'skillName':_0x257bab[_0x197636(0x8f)]??_0x1922d2,'description':_0x257bab['summary'],'scope':_0x316959,'version':skillHubRuntimeItemVersion(_0x257bab),'status':_0x257bab[_0x197636(0x87)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x4ef8d9){const _0x33624e=a76_0x37c4,_0x44a12a=_0x4ef8d9['slug']?.['trim']();if(!_0x44a12a)return undefined;return{'id':_0x4ef8d9['id'],'appCode':_0x4ef8d9[_0x33624e(0xeb)],'skillCode':_0x44a12a,'skillName':_0x4ef8d9[_0x33624e(0x8f)]??_0x44a12a,'description':_0x4ef8d9[_0x33624e(0x95)],'example':_0x4ef8d9[_0x33624e(0x114)],'scope':skillHubVisibilityToScope(_0x4ef8d9[_0x33624e(0xee)])??_0x4ef8d9[_0x33624e(0xee)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x4ef8d9),'status':_0x4ef8d9[_0x33624e(0x87)]};}function skillHubVisibilityToScope(_0x37c894){const _0x104eb2=a76_0x37c4;if(_0x37c894===_0x104eb2(0x101))return _0x104eb2(0x84);if(_0x37c894===_0x104eb2(0xfb))return _0x104eb2(0xdf);return undefined;}function skillHubRuntimeItemVersion(_0x451861){const _0x288b27=a76_0x37c4;return _0x451861['publishedVersion']?.['version']??_0x451861[_0x288b27(0xb0)]?.[_0x288b27(0x115)]??_0x451861['ownerPreviewVersion']?.[_0x288b27(0x115)];}function buildEffectiveRuntimeSkills(_0x4e1dde,_0x31b323,_0x4ef44e){const _0x29b4a1=a76_0x37c4;if(_0x4ef44e===_0x29b4a1(0x84))return _0x4e1dde;if(_0x4ef44e==='company')return _0x31b323;const _0x83acfa=new Map();for(const _0x14b9fe of _0x31b323){_0x83acfa[_0x29b4a1(0xea)](_0x14b9fe[_0x29b4a1(0xab)],_0x14b9fe);}for(const _0x2b0653 of _0x4e1dde){_0x83acfa[_0x29b4a1(0xea)](_0x2b0653[_0x29b4a1(0xab)],_0x2b0653);}return Array[_0x29b4a1(0xa0)](_0x83acfa[_0x29b4a1(0xc6)]());}function normalizeRuntimeSkillListResponse(_0x329152,_0x374f19){const _0x46ce05=a76_0x37c4;if(Array[_0x46ce05(0x111)](_0x374f19)){const _0x1c02c8=_0x374f19[_0x46ce05(0xdc)](_0x4dbeb1=>_0x4dbeb1[_0x46ce05(0x88)]==='personal'),_0x1211da=_0x374f19[_0x46ce05(0xdc)](_0x36a6a2=>_0x36a6a2['scope']===_0x46ce05(0xdf));return{'appCode':_0x329152,'personal':_0x1c02c8,'company':_0x1211da,'effective':[..._0x1211da,..._0x1c02c8]};}return{'appCode':_0x374f19?.[_0x46ce05(0x94)]??_0x329152,'personal':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0x84)])?_0x374f19[_0x46ce05(0x84)]:[],'company':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0xdf)])?_0x374f19[_0x46ce05(0xdf)]:[],'effective':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0x97)])?_0x374f19['effective']:[]};}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d6d0e,_0xb4c7ba){const _0x32136e=a77_0x30c0,_0x4b68c2=_0x3d6d0e();while(!![]){try{const _0x205f2f=-parseInt(_0x32136e(0x1d4))/0x1*(parseInt(_0x32136e(0x1d1))/0x2)+parseInt(_0x32136e(0x1ca))/0x3+-parseInt(_0x32136e(0x1cc))/0x4+parseInt(_0x32136e(0x1d3))/0x5+-parseInt(_0x32136e(0x1d2))/0x6*(parseInt(_0x32136e(0x1d6))/0x7)+parseInt(_0x32136e(0x1cf))/0x8*(-parseInt(_0x32136e(0x1c9))/0x9)+-parseInt(_0x32136e(0x1cb))/0xa*(-parseInt(_0x32136e(0x1cd))/0xb);if(_0x205f2f===_0xb4c7ba)break;else _0x4b68c2['push'](_0x4b68c2['shift']());}catch(_0x3bc15a){_0x4b68c2['push'](_0x4b68c2['shift']());}}}(a77_0x57a6,0x9925a));function a77_0x30c0(_0x8a4753,_0x571c3d){_0x8a4753=_0x8a4753-0x1c5;const _0x57a621=a77_0x57a6();let _0x30c0d1=_0x57a621[_0x8a4753];return _0x30c0d1;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x40fb54){const _0x1182eb=a77_0x30c0;if(cache[_0x1182eb(0x1ce)](_0x40fb54))return cache[_0x1182eb(0x1d0)](_0x40fb54);const _0xe124fa=await listDatasets(_0x40fb54),_0x4b8f82=new Map();for(const _0x2ae852 of _0xe124fa){const _0x293657=_0x2ae852[_0x1182eb(0x1c8)];_0x293657?.[_0x1182eb(0x1d8)]!=null&&_0x4b8f82['set'](_0x293657[_0x1182eb(0x1d8)],_0x293657[_0x1182eb(0x1c7)]??_0x1182eb(0x1c5)+_0x293657[_0x1182eb(0x1d8)]);}const _0x141e33=[..._0x4b8f82[_0x1182eb(0x1c6)]()]['map'](([_0x298b63,_0x4541dc])=>({'dbId':_0x298b63,'dbName':_0x4541dc}));return cache[_0x1182eb(0x1d5)](_0x40fb54,_0x141e33),_0x141e33;}export async function getDbName(_0x1c5f06,_0x164043){const _0x4a22b5=a77_0x30c0;try{const _0x1f7da9=await listDatabases(_0x1c5f06);return _0x1f7da9[_0x4a22b5(0x1d7)](_0x350cf8=>_0x350cf8['dbId']===_0x164043)?.['dbName'];}catch{return undefined;}}function a77_0x57a6(){const _0x1bf682=['1292328tozpuz','59884YRejAE','has','47984xxPTXf','get','2BodlTP','4902IwxIka','1766860jUXSTE','929480qZCkzm','set','5397kOJJLh','find','dbId','db-','entries','dbName','dbtableConfig','1143hsKlPD','392415KaYFFs','5120FjCEUE'];a77_0x57a6=function(){return _0x1bf682;};return a77_0x57a6();}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f0768,_0x2d07c2){const _0x149104=a78_0x1074,_0x18eaa5=_0x3f0768();while(!![]){try{const _0xe357e1=-parseInt(_0x149104(0xb9))/0x1*(-parseInt(_0x149104(0xad))/0x2)+parseInt(_0x149104(0xa3))/0x3+-parseInt(_0x149104(0xb7))/0x4+parseInt(_0x149104(0xb0))/0x5+-parseInt(_0x149104(0xc2))/0x6*(parseInt(_0x149104(0xb4))/0x7)+parseInt(_0x149104(0xc0))/0x8*(-parseInt(_0x149104(0xab))/0x9)+-parseInt(_0x149104(0xc1))/0xa*(-parseInt(_0x149104(0xbf))/0xb);if(_0xe357e1===_0x2d07c2)break;else _0x18eaa5['push'](_0x18eaa5['shift']());}catch(_0x2812ce){_0x18eaa5['push'](_0x18eaa5['shift']());}}}(a78_0x39b9,0x39188));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x57afe1){const _0x398cff=a78_0x1074;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x57afe1[_0x398cff(0xc5)],'env':_0x57afe1[_0x398cff(0xba)],'authMode':_0x57afe1[_0x398cff(0xa6)],..._0x57afe1[_0x398cff(0xac)]?{'accessKey':_0x57afe1['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x124b12){clearSdkClient();throw _0x124b12;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x3ca5e3=a78_0x1074;if(!_client)throw new Error(_0x3ca5e3(0xa7));return _client;}function a78_0x39b9(){const _0x135f6d=['11CDhMqe','33848cjIFMw','104970FGYlzb','24690PCWWbR','delete','models','appCode','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','map','bff','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','624819OupXhx','execute','data\x20aggregate\x20--params.aggregate[','authMode','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','function','873tiVJIa','accessKey','2BpbUOT','object','getOne','2154885hiiEDh','sql','validation','column','119mSwnEl','isArray','aggregate','1033464aWLwOD','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','322845BYdEed','env','batchCreate','field','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20must\x20be\x20an\x20object.'];a78_0x39b9=function(){return _0x135f6d;};return a78_0x39b9();}function normalizeAggregateParams(_0x20530b){const _0x3fd2ca=a78_0x1074,_0x5a5b5c=_0x20530b[_0x3fd2ca(0xb6)];if(_0x5a5b5c===undefined)return _0x20530b;if(!Array['isArray'](_0x5a5b5c))throw CliErrors['validation'](_0x3fd2ca(0xc6));return{..._0x20530b,'aggregate':_0x5a5b5c[_0x3fd2ca(0xc7)]((_0x4598d9,_0x58b904)=>{const _0xc78287=_0x3fd2ca;if(!_0x4598d9||typeof _0x4598d9!==_0xc78287(0xae)||Array[_0xc78287(0xb5)](_0x4598d9))throw CliErrors[_0xc78287(0xb2)]('data\x20aggregate\x20--params.aggregate['+_0x58b904+_0xc78287(0xbe));const _0x216623=_0x4598d9[_0xc78287(0xb3)]??_0x4598d9[_0xc78287(0xbc)];if(typeof _0x216623!=='string'||_0x216623['trim']()==='')throw CliErrors[_0xc78287(0xb2)](_0xc78287(0xa5)+_0x58b904+_0xc78287(0xa2));const _0x2bb626={..._0x4598d9,'column':_0x216623};return delete _0x2bb626[_0xc78287(0xbc)],_0x2bb626;})};}export async function executeData(_0x5d4f0a,_0xab3d4d,_0x5a192a){const _0x133de3=a78_0x1074,_0x1df1b0=ensureClient(),_0x5c92aa='dataset_'+_0x5d4f0a,_0x19ecc3=_0x1df1b0[_0x133de3(0xc4)][_0x5c92aa];if(!_0x19ecc3||typeof _0x19ecc3[_0xab3d4d]!==_0x133de3(0xaa))throw new Error(_0x133de3(0xb8)+_0xab3d4d+_0x133de3(0xa8)+_0x133de3(0xa9));if(_0xab3d4d===_0x133de3(0xbb))return _0x19ecc3[_0x133de3(0xbb)](parseBatchCreateItemsFromParams(_0x5a192a));const _0x3adf99=_0x5a192a!==undefined&&_0x5a192a!==null&&!Array[_0x133de3(0xb5)](_0x5a192a)?_0x5a192a:{};switch(_0xab3d4d){case _0x133de3(0xaf):{const _0x25ad8d=_0x3adf99['id'];if(_0x25ad8d===undefined||_0x25ad8d===null)throw new Error(_0x133de3(0xbd));return _0x19ecc3[_0x133de3(0xaf)](_0x25ad8d);}case'update':{const {id:_0x554989,..._0x28539d}=_0x3adf99;if(_0x554989===undefined||_0x554989===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27');return _0x19ecc3['update'](_0x554989,_0x28539d);}case _0x133de3(0xc3):{const _0x59bab=_0x3adf99['id'];if(_0x59bab===undefined||_0x59bab===null)throw new Error(_0x133de3(0xa1));return _0x19ecc3['delete'](_0x59bab);}case'aggregate':return _0x19ecc3['aggregate'](normalizeAggregateParams(_0x3adf99));default:return _0x19ecc3[_0xab3d4d](_0x3adf99);}}function a78_0x1074(_0x5c3273,_0x478110){_0x5c3273=_0x5c3273-0xa1;const _0x39b9fc=a78_0x39b9();let _0x107418=_0x39b9fc[_0x5c3273];return _0x107418;}export async function executeSdkSql(_0x3409dc,_0xbfc4d5){const _0x2aaa20=a78_0x1074,_0x1cbefa=ensureClient();return _0x1cbefa[_0x2aaa20(0xb1)]['execute']({'sqlCode':_0x3409dc,'params':_0xbfc4d5});}export async function executeSdkBff(_0x5ad037,_0x649cde){const _0x35db97=a78_0x1074,_0xc345ed=ensureClient();return _0xc345ed[_0x35db97(0xc8)][_0x35db97(0xa4)]({'scriptName':_0x5ad037,'params':_0x649cde});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x559108=a79_0x1faf;(function(_0x39c688,_0x1446bd){const _0x3d863c=a79_0x1faf,_0x89995b=_0x39c688();while(!![]){try{const _0x14ab30=-parseInt(_0x3d863c(0x166))/0x1*(-parseInt(_0x3d863c(0x15f))/0x2)+-parseInt(_0x3d863c(0x163))/0x3+parseInt(_0x3d863c(0x169))/0x4*(parseInt(_0x3d863c(0x168))/0x5)+-parseInt(_0x3d863c(0x162))/0x6*(parseInt(_0x3d863c(0x15a))/0x7)+parseInt(_0x3d863c(0x16a))/0x8+parseInt(_0x3d863c(0x167))/0x9*(-parseInt(_0x3d863c(0x159))/0xa)+-parseInt(_0x3d863c(0x165))/0xb*(-parseInt(_0x3d863c(0x15b))/0xc);if(_0x14ab30===_0x1446bd)break;else _0x89995b['push'](_0x89995b['shift']());}catch(_0x593e4b){_0x89995b['push'](_0x89995b['shift']());}}}(a79_0x229b,0x3f29b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a79_0x229b(){const _0xeca031=['Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','3666nXEGwp','220416yuLaAr','Configure\x20accessKey\x20in\x20','3729yHanCp','1796irqsJQ','666YmDRRn','15GbildB','194188cDWrbq','3842608Cpgjls','65000ZGljYG','5859DIBYUU','7692tLyexB','rate_limited','\x20auth\x20login`.','newConfigFileName','536HDQUdc'];a79_0x229b=function(){return _0xeca031;};return a79_0x229b();}function a79_0x1faf(_0x3c8f97,_0x3d678e){_0x3c8f97=_0x3c8f97-0x159;const _0x229b69=a79_0x229b();let _0x1faf06=_0x229b69[_0x3c8f97];return _0x1faf06;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a79_0x559108(0x164)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a79_0x559108(0x15d),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a79_0x559108(0x15e)]+'.','notInProjectHint':a79_0x559108(0x160)+PRODUCT_CONFIG[a79_0x559108(0x15e)]+a79_0x559108(0x161)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3eba79,_0x5bb0a8)=>new CliError(a79_0x559108(0x15c),0x2,_0x3eba79,_0x5bb0a8)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17a942,_0x7b8d05){var _0x5ebe7c=a80_0x5e86,_0x1400c9=_0x17a942();while(!![]){try{var _0x327aa1=-parseInt(_0x5ebe7c(0xd1))/0x1+parseInt(_0x5ebe7c(0xd2))/0x2*(-parseInt(_0x5ebe7c(0xcf))/0x3)+parseInt(_0x5ebe7c(0xd0))/0x4+parseInt(_0x5ebe7c(0xd4))/0x5+-parseInt(_0x5ebe7c(0xd5))/0x6*(parseInt(_0x5ebe7c(0xd9))/0x7)+parseInt(_0x5ebe7c(0xd3))/0x8*(-parseInt(_0x5ebe7c(0xd8))/0x9)+parseInt(_0x5ebe7c(0xd7))/0xa*(parseInt(_0x5ebe7c(0xd6))/0xb);if(_0x327aa1===_0x7b8d05)break;else _0x1400c9['push'](_0x1400c9['shift']());}catch(_0x1d3856){_0x1400c9['push'](_0x1400c9['shift']());}}}(a80_0x2593,0x1dbf3));function a80_0x5e86(_0x230caf,_0xe103fc){_0x230caf=_0x230caf-0xcf;var _0x259319=a80_0x2593();var _0x5e86dd=_0x259319[_0x230caf];return _0x5e86dd;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x39efde}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3531c4){return a80_0x39efde(_0x3531c4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a80_0x2593(){var _0x2d7ae6=['84pyPNIS','253IldOgS','174140DqBPFG','9AUyVpJ','14217seKMmG','51nuCrWi','488872uVAKwP','83382ppVVzz','15416YZDLMa','1919464HszDZN','409440FxdYPb'];a80_0x2593=function(){return _0x2d7ae6;};return a80_0x2593();}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xae9316,_0x5c1880){const _0x10b2ea=a81_0x2a66,_0x85255d=_0xae9316();while(!![]){try{const _0xe86d16=parseInt(_0x10b2ea(0xd0))/0x1+-parseInt(_0x10b2ea(0xd5))/0x2*(-parseInt(_0x10b2ea(0xd3))/0x3)+-parseInt(_0x10b2ea(0xcd))/0x4+parseInt(_0x10b2ea(0xd2))/0x5+parseInt(_0x10b2ea(0xcf))/0x6+parseInt(_0x10b2ea(0xd4))/0x7+-parseInt(_0x10b2ea(0xce))/0x8;if(_0xe86d16===_0x5c1880)break;else _0x85255d['push'](_0x85255d['shift']());}catch(_0x21bb24){_0x85255d['push'](_0x85255d['shift']());}}}(a81_0x3cb9,0x3506a));function a81_0x3cb9(){const _0x219950=['description','922575aItamk','3alYnZl','637147OahEGE','319874DqbDAk','356308dNOoZf','4578312nwPPFq','1340820DtlorB','219617ufQbzS'];a81_0x3cb9=function(){return _0x219950;};return a81_0x3cb9();}function a81_0x2a66(_0x12b1f5,_0x60dea){_0x12b1f5=_0x12b1f5-0xcd;const _0x3cb98b=a81_0x3cb9();let _0x2a6607=_0x3cb98b[_0x12b1f5];return _0x2a6607;}export function dryRun(_0x40ee29,_0x166ba4){const _0x90522c={'method':_0x40ee29,'url':_0x166ba4},_0x2f058e={'body'(_0x4efc27){return _0x90522c['body']=_0x4efc27,_0x2f058e;},'description'(_0x20e4d6){const _0x17f6c2=a81_0x2a66;return _0x90522c[_0x17f6c2(0xd1)]=_0x20e4d6,_0x2f058e;},'build'(){return{..._0x90522c};}};return _0x2f058e;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a82_0x2691(){const _0x2e1b59=['54864yVWzFE','325038QhrVSD','211179hsfPUz','12rlHUYz','2291552XyYCkT','362828QBRETs','55JAserk','29113IMrKNe','1180xqHhBA','44505eDKShE','parseFlags'];a82_0x2691=function(){return _0x2e1b59;};return a82_0x2691();}const a82_0x45306a=a82_0xb315;(function(_0x3b4998,_0x234816){const _0x248e85=a82_0xb315,_0x7c68fe=_0x3b4998();while(!![]){try{const _0x527a4b=-parseInt(_0x248e85(0xd1))/0x1*(parseInt(_0x248e85(0xcd))/0x2)+parseInt(_0x248e85(0xcc))/0x3+-parseInt(_0x248e85(0xcf))/0x4+parseInt(_0x248e85(0xd0))/0x5*(parseInt(_0x248e85(0xca))/0x6)+-parseInt(_0x248e85(0xcb))/0x7+-parseInt(_0x248e85(0xce))/0x8+parseInt(_0x248e85(0xc8))/0x9*(parseInt(_0x248e85(0xd2))/0xa);if(_0x527a4b===_0x234816)break;else _0x7c68fe['push'](_0x7c68fe['shift']());}catch(_0x35de49){_0x7c68fe['push'](_0x7c68fe['shift']());}}}(a82_0x2691,0x26240));function a82_0xb315(_0x5beb2c,_0xdf05c4){_0x5beb2c=_0x5beb2c-0xc8;const _0x269149=a82_0x2691();let _0xb31514=_0x269149[_0x5beb2c];return _0xb31514;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a82_0x45306a(0xc9)];export const validateFlags=helpers['validateFlags'];
|