@lovrabet/lovrabet-cli 2.3.8-beta.4 → 2.3.8-beta.6
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/README.md +12 -0
- 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/approval/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/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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/issue/context.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -0
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- 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/diagram.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/diagram.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/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.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/region.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/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.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/raw-flags.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.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.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/install-target.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/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.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 +2 -2
- package/skills/lovrabet/SKILL.md +12 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet/references/lovrabet-issue-report.md +24 -0
- package/skills/lovrabet.manifest.json +5 -3
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a95_0x5caa3f=a95_0x20ac;function a95_0x20ac(_0x556825,_0x2735e1){_0x556825=_0x556825-0xd7;const _0x19254c=a95_0x1925();let _0x20ac83=_0x19254c[_0x556825];return _0x20ac83;}function a95_0x1925(){const _0x3428d9=['PUBLISHED','945920KkeudI','16415wKVjPa','6fojNka','2qKtIeL','207820TTfTrT','2302450ANikCA','56mrraxY','246mEGqlZ','680841GoIrif','187169cJZMzO','Published','13796827ggivfr','12mOMGtV'];a95_0x1925=function(){return _0x3428d9;};return a95_0x1925();}(function(_0x1c5979,_0x5ef39c){const _0x4d4483=a95_0x20ac,_0x19dd6d=_0x1c5979();while(!![]){try{const _0x56e843=-parseInt(_0x4d4483(0xdc))/0x1*(-parseInt(_0x4d4483(0xe4))/0x2)+-parseInt(_0x4d4483(0xe3))/0x3*(-parseInt(_0x4d4483(0xd7))/0x4)+-parseInt(_0x4d4483(0xe1))/0x5+parseInt(_0x4d4483(0xda))/0x6*(-parseInt(_0x4d4483(0xe2))/0x7)+-parseInt(_0x4d4483(0xd9))/0x8*(parseInt(_0x4d4483(0xdb))/0x9)+-parseInt(_0x4d4483(0xd8))/0xa+-parseInt(_0x4d4483(0xde))/0xb*(-parseInt(_0x4d4483(0xdf))/0xc);if(_0x56e843===_0x5ef39c)break;else _0x19dd6d['push'](_0x19dd6d['shift']());}catch(_0x52e071){_0x19dd6d['push'](_0x19dd6d['shift']());}}}(a95_0x1925,0x7a1fb));export const APP_PUBLISH_STATUS={'Published':a95_0x5caa3f(0xe0),'Unpublished':'UNPUBLISH'};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a95_0x5caa3f(0xdd)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a96_0x3042(_0x4a692b,_0x39d7c6){_0x4a692b=_0x4a692b-0x1c7;const _0x36e2b0=a96_0x36e2();let _0x304223=_0x36e2b0[_0x4a692b];return _0x304223;}const a96_0x5edce9=a96_0x3042;(function(_0x1a5a71,_0x54e4e9){const _0x498cd6=a96_0x3042,_0x4a6524=_0x1a5a71();while(!![]){try{const _0x13995f=-parseInt(_0x498cd6(0x1d1))/0x1*(parseInt(_0x498cd6(0x1d2))/0x2)+parseInt(_0x498cd6(0x1d0))/0x3*(-parseInt(_0x498cd6(0x1cf))/0x4)+-parseInt(_0x498cd6(0x1cd))/0x5*(-parseInt(_0x498cd6(0x1c7))/0x6)+-parseInt(_0x498cd6(0x1ca))/0x7+parseInt(_0x498cd6(0x1ce))/0x8+-parseInt(_0x498cd6(0x1d3))/0x9+parseInt(_0x498cd6(0x1cc))/0xa*(parseInt(_0x498cd6(0x1c9))/0xb);if(_0x13995f===_0x54e4e9)break;else _0x4a6524['push'](_0x4a6524['shift']());}catch(_0x4f9861){_0x4a6524['push'](_0x4a6524['shift']());}}}(a96_0x36e2,0x49191));export const AUTH_MODE={'ClientAk':a96_0x5edce9(0x1cb)};function a96_0x36e2(){const _0x1b4c9e=['350vaXzZK','15wYSCQU','1284600chpANE','4eCypgl','1036677JdjtUU','63883GOasAB','6TmyYKJ','4922541PdTYqX','90438idwLXE','ClientAk','523468pSaDMs','3414656eOYzid','client-ak'];a96_0x36e2=function(){return _0x1b4c9e;};return a96_0x36e2();}export function isAuthMode(_0x232549){const _0x32ffb1=a96_0x5edce9;return _0x232549===AUTH_MODE[_0x32ffb1(0x1c8)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x6e444=a97_0xd3f6;(function(_0x3e8615,_0x437527){const _0x3caa55=a97_0xd3f6,_0x293f17=_0x3e8615();while(!![]){try{const _0x443225=parseInt(_0x3caa55(0xb6))/0x1+parseInt(_0x3caa55(0xd9))/0x2+parseInt(_0x3caa55(0xd4))/0x3*(parseInt(_0x3caa55(0xde))/0x4)+parseInt(_0x3caa55(0xcd))/0x5*(parseInt(_0x3caa55(0xcb))/0x6)+parseInt(_0x3caa55(0xc8))/0x7*(parseInt(_0x3caa55(0xb8))/0x8)+-parseInt(_0x3caa55(0xd5))/0x9*(parseInt(_0x3caa55(0xcf))/0xa)+-parseInt(_0x3caa55(0xc4))/0xb;if(_0x443225===_0x437527)break;else _0x293f17['push'](_0x293f17['shift']());}catch(_0x2f1300){_0x293f17['push'](_0x293f17['shift']());}}}(a97_0x5901,0xb14c0));function a97_0xd3f6(_0x8f3081,_0x22c187){_0x8f3081=_0x8f3081-0xb2;const _0x59014e=a97_0x5901();let _0xd3f6ec=_0x59014e[_0x8f3081];return _0xd3f6ec;}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a97_0x6e444(0xba)];function a97_0x5901(){const _0x258298=['Record\x20ID','47848ThWruZ','boolean','cliDisplayName','name','type','Alias\x20for\x20--non-interactive','json\x20|\x20pretty\x20|\x20compress','<code>','params','JSON\x20params\x20for\x20execute\x20commands','map','SQL\x20query\x20code','40331390Immjuk','Show\x20help','sqlcode','Use\x20global\x20config\x20scope','945TPjZyf','dryRun','Select\x20app\x20profile\x20by\x20name','1943724NFhsVW','app','10LkATGh','non-interactive','10pTsLIM','Skip\x20confirmation\x20for\x20high-risk\x20writes','help','meowKey','format','1545243cWeUcu','663948HUfwOK','yes','fromEntries','dry-run','2617518xnoINV','env','Clear\x20output','verbose','nonInteractive','4eohfGN','Environment','production\x20|\x20development\x20|\x20daily','<expr>','Override\x20appcode','Name\x20filter','Verbose\x20output','appcode','global','string','Force\x20non-interactive\x20mode\x20(CI)','clear','Preview\x20operation\x20without\x20executing','1187287ZXklks'];a97_0x5901=function(){return _0x258298;};return a97_0x5901();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a97_0x6e444(0xe5),'meowKey':'appcode','type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xe2),'hint':a97_0x6e444(0xbf)},{'name':a97_0x6e444(0xcc),'meowKey':a97_0x6e444(0xcc),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xca),'hint':'<name>'},{'name':'env','meowKey':a97_0x6e444(0xda),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xdf),'hint':a97_0x6e444(0xe0)},{'name':a97_0x6e444(0xd3),'meowKey':a97_0x6e444(0xd3),'type':a97_0x6e444(0xb2),'description':'Output\x20format','hint':a97_0x6e444(0xbe)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a97_0x6e444(0xe1)},{'name':'dry-run','meowKey':a97_0x6e444(0xc9),'type':'boolean','description':a97_0x6e444(0xb5)},{'name':'yes','meowKey':a97_0x6e444(0xd6),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xd0)},{'name':a97_0x6e444(0xce),'meowKey':a97_0x6e444(0xdd),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xb3)},{'name':a97_0x6e444(0xe6),'meowKey':a97_0x6e444(0xe6),'type':'boolean','description':a97_0x6e444(0xc7)},{'name':'ci','meowKey':'ci','type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xbd),'hidden':!![]},{'name':a97_0x6e444(0xd1),'meowKey':a97_0x6e444(0xd1),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xc5)},{'name':'id','meowKey':'id','type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xb7),'hidden':!![]},{'name':'name','meowKey':a97_0x6e444(0xbb),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xe3),'hidden':!![]},{'name':a97_0x6e444(0xc6),'meowKey':a97_0x6e444(0xc6),'type':a97_0x6e444(0xb2),'description':a97_0x6e444(0xc3),'hidden':!![]},{'name':a97_0x6e444(0xc0),'meowKey':a97_0x6e444(0xc0),'type':'string','description':a97_0x6e444(0xc1),'hidden':!![]},{'name':'verbose','meowKey':a97_0x6e444(0xdc),'type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xe4),'hidden':!![]},{'name':a97_0x6e444(0xb4),'meowKey':'clear','type':a97_0x6e444(0xb9),'description':a97_0x6e444(0xdb),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a97_0x6e444(0xe5),a97_0x6e444(0xcc),a97_0x6e444(0xda),a97_0x6e444(0xd3),'jq',a97_0x6e444(0xd8),'yes',a97_0x6e444(0xce),'ci']);export function buildMeowFlags(){const _0x3f14ce=a97_0x6e444;return Object[_0x3f14ce(0xd7)](GLOBAL_FLAGS[_0x3f14ce(0xc2)](_0x13712d=>[_0x13712d[_0x3f14ce(0xd2)],{'type':_0x13712d[_0x3f14ce(0xbc)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a98_0x52f3e4=a98_0x28e9;(function(_0x16949e,_0x49620e){const _0x3fe407=a98_0x28e9,_0x16eb95=_0x16949e();while(!![]){try{const _0x36fc8a=parseInt(_0x3fe407(0x1ec))/0x1+-parseInt(_0x3fe407(0x1ee))/0x2+-parseInt(_0x3fe407(0x1f8))/0x3*(-parseInt(_0x3fe407(0x1f2))/0x4)+-parseInt(_0x3fe407(0x1fa))/0x5+-parseInt(_0x3fe407(0x1ef))/0x6*(parseInt(_0x3fe407(0x1f0))/0x7)+-parseInt(_0x3fe407(0x1f9))/0x8+-parseInt(_0x3fe407(0x1f1))/0x9*(-parseInt(_0x3fe407(0x1f3))/0xa);if(_0x36fc8a===_0x49620e)break;else _0x16eb95['push'](_0x16eb95['shift']());}catch(_0x360530){_0x16eb95['push'](_0x16eb95['shift']());}}}(a98_0xefb8,0x55f7c));function a98_0xefb8(){const _0x4c3704=['main','1177152RlSRwh','234cHXJkS','101738npwQjX','677601SaIkLd','1455276gcwBTX','220BmiuIC','write','en-US','production','compress','3TxDRjs','3816424WoDohh','3215325nnOiKU','607467vRKKXW'];a98_0xefb8=function(){return _0x4c3704;};return a98_0xefb8();}export const DEFAULT_APP_PROFILE_NAME=a98_0x52f3e4(0x1ed);export const DEFAULT_CONFIG_VALUES={'env':a98_0x52f3e4(0x1f6),'format':a98_0x52f3e4(0x1f7),'locale':a98_0x52f3e4(0x1f5),'riskLevel':a98_0x52f3e4(0x1f4)};function a98_0x28e9(_0x28b446,_0xb4e530){_0x28b446=_0x28b446-0x1ec;const _0xefb815=a98_0xefb8();let _0x28e9f0=_0xefb815[_0x28b446];return _0x28e9f0;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a98_0x52f3e4(0x1f7);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x5cf323=a99_0x4cea;function a99_0x4aa7(){const _0x19c2ed=['2424lByrsJ','394386zGSeLY','2dtZBGS','/dist/lovrabet-cli/config/index.json','13479djhMIV','npmRegistryBaseUrl','10UwSYiR','cliCdnBaseUrl','480FkKQRi','2602472zIlZmZ','npmPackageName','1865780VSouhP','skillSource','5122233SWZYUv','60093ogMtWH','188854aqFOgI','5ZMUQIW'];a99_0x4aa7=function(){return _0x19c2ed;};return a99_0x4aa7();}(function(_0x1126f2,_0x539070){const _0x3b6188=a99_0x4cea,_0x34ee1d=_0x1126f2();while(!![]){try{const _0x567081=parseInt(_0x3b6188(0xa7))/0x1*(-parseInt(_0x3b6188(0xa3))/0x2)+-parseInt(_0x3b6188(0xa9))/0x3*(-parseInt(_0x3b6188(0xad))/0x4)+-parseInt(_0x3b6188(0xa4))/0x5*(parseInt(_0x3b6188(0xa6))/0x6)+parseInt(_0x3b6188(0xb0))/0x7+parseInt(_0x3b6188(0xae))/0x8+parseInt(_0x3b6188(0xb2))/0x9*(parseInt(_0x3b6188(0xab))/0xa)+parseInt(_0x3b6188(0xa2))/0xb*(-parseInt(_0x3b6188(0xa5))/0xc);if(_0x567081===_0x539070)break;else _0x34ee1d['push'](_0x34ee1d['shift']());}catch(_0x430e37){_0x34ee1d['push'](_0x34ee1d['shift']());}}}(a99_0x4aa7,0x53813));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a99_0x5cf323(0xaf)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a99_0x5cf323(0xb1)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a99_0x5cf323(0xaa)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a99_0x5cf323(0xac)];function a99_0x4cea(_0x38754d,_0x1e306d){_0x38754d=_0x38754d-0xa2;const _0x4aa741=a99_0x4aa7();let _0x4ceaad=_0x4aa741[_0x38754d];return _0x4ceaad;}export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a99_0x5cf323(0xa8);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a100_0x8ef8(){const _0x4772b2=['production','serviceDomains','19736ytBZBf','6MBBwLh','262RpBJxA','1971558qPgRsZ','3351vPdVGv','skillDomain','kbService','runtime','1350vUmmtV','skill','allowOfficialKbServiceDefault','4665705imlXxn','api','9616IsVPTx','daily','12620030nwWUet','6896771xHDDXr','userDomain','kbServiceDomain','runtimeDomain','1370hZpAzm'];a100_0x8ef8=function(){return _0x4772b2;};return a100_0x8ef8();}const a100_0x4a3580=a100_0x5151;(function(_0x35d789,_0x16c95a){const _0x17f84f=a100_0x5151,_0xd2591=_0x35d789();while(!![]){try{const _0x2b4d9b=parseInt(_0x17f84f(0x10b))/0x1*(parseInt(_0x17f84f(0x109))/0x2)+-parseInt(_0x17f84f(0x10a))/0x3+parseInt(_0x17f84f(0xfd))/0x4*(parseInt(_0x17f84f(0x104))/0x5)+-parseInt(_0x17f84f(0x108))/0x6*(parseInt(_0x17f84f(0x100))/0x7)+-parseInt(_0x17f84f(0x107))/0x8*(-parseInt(_0x17f84f(0x10f))/0x9)+parseInt(_0x17f84f(0xff))/0xa+-parseInt(_0x17f84f(0xfb))/0xb;if(_0x2b4d9b===_0x16c95a)break;else _0xd2591['push'](_0xd2591['shift']());}catch(_0x484e79){_0xd2591['push'](_0xd2591['shift']());}}}(a100_0x8ef8,0xa1e60));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x3d17dc){const _0x2e7150=a100_0x5151;customApiDomain=_0x3d17dc?.['apiDomain'],customUserDomain=_0x3d17dc?.[_0x2e7150(0x101)],customRuntimeDomain=_0x3d17dc?.[_0x2e7150(0x103)],customSkillDomain=_0x3d17dc?.[_0x2e7150(0x10c)],customKbServiceDomain=_0x3d17dc?.[_0x2e7150(0x102)],allowOfficialKbServiceDefault=_0x3d17dc?.[_0x2e7150(0xfa)]??!![],activeRegion=_0x3d17dc?.['region']??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x447bcb=a100_0x5151,_0x4ae502=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x447bcb(0x106)];return isProduction(getEnv())?_0x4ae502[_0x447bcb(0x105)]:_0x447bcb(0xfe)in _0x4ae502?_0x4ae502[_0x447bcb(0xfe)]:_0x4ae502[_0x447bcb(0x105)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a100_0x4a3580(0xfc)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a100_0x4a3580(0x10e)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a100_0x4a3580(0x110)];function a100_0x5151(_0x33242c,_0x21eaa0){_0x33242c=_0x33242c-0xfa;const _0x8ef877=a100_0x8ef8();let _0x515161=_0x8ef877[_0x33242c];return _0x515161;}export const getKbServiceDomain=()=>{const _0x1afe2d=a100_0x4a3580;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x108561=getActiveRegionDomains();return _0x1afe2d(0x10d)in _0x108561?_0x108561[_0x1afe2d(0x10d)]:undefined;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x3581d1=a101_0x328f;function a101_0x328f(_0x391219,_0x3ad891){_0x391219=_0x391219-0x1e9;const _0xb0dadf=a101_0xb0da();let _0x328fac=_0xb0dadf[_0x391219];return _0x328fac;}(function(_0x557734,_0x4ed8e3){const _0x18ada8=a101_0x328f,_0xfa0a7=_0x557734();while(!![]){try{const _0x22cdb6=-parseInt(_0x18ada8(0x1ed))/0x1+-parseInt(_0x18ada8(0x1f4))/0x2+-parseInt(_0x18ada8(0x1f2))/0x3*(parseInt(_0x18ada8(0x1ef))/0x4)+-parseInt(_0x18ada8(0x1eb))/0x5+parseInt(_0x18ada8(0x1f5))/0x6+parseInt(_0x18ada8(0x1f3))/0x7+parseInt(_0x18ada8(0x1f6))/0x8*(parseInt(_0x18ada8(0x1ee))/0x9);if(_0x22cdb6===_0x4ed8e3)break;else _0xfa0a7['push'](_0xfa0a7['shift']());}catch(_0x31f8e7){_0xfa0a7['push'](_0xfa0a7['shift']());}}}(a101_0xb0da,0x58bc7));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a101_0x3581d1(0x1ec),a101_0x3581d1(0x1f1),a101_0x3581d1(0x1ea)];export function normalizeEnv(_0x5622ec){const _0x595026=a101_0x3581d1;return _0x5622ec===_0x595026(0x1e9)?_0x595026(0x1ec):_0x5622ec;}export function isProduction(_0x4af2e8){const _0x5d7000=a101_0x3581d1;return normalizeEnv(_0x4af2e8)===_0x5d7000(0x1ec);}export function isDaily(_0x5d0041){const _0x5b771c=a101_0x3581d1;return normalizeEnv(_0x5d0041)===_0x5b771c(0x1ea);}export function isDev(_0x262f24){const _0x48d25d=a101_0x3581d1,_0xa6c6e7=normalizeEnv(_0x262f24);return _0xa6c6e7==='development'||_0xa6c6e7===_0x48d25d(0x1f0);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}function a101_0xb0da(){const _0x8ed5d=['605685iAFTus','production','585291WbvvDv','32517PSljWH','4MoQHCQ','dev','development','336072peqvEc','239582DWAtMh','293738utSGEE','3063222veGXDr','1736ehtZwB','online','daily'];a101_0xb0da=function(){return _0x8ed5d;};return a101_0xb0da();}export function initEnv(_0x2918a9){env=normalizeEnv(_0x2918a9);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a102_0x5e9c(){const _0x4927a8=['21MTEMZH','990081vHrqtp','298148UHCJhX','2370LQhJDB','809979sbsuSA','pretty','1670400Kpokzk','compress','792264ZNWuzV','306125rmlmNr','1500RcJbwG'];a102_0x5e9c=function(){return _0x4927a8;};return a102_0x5e9c();}const a102_0x4e548b=a102_0x50df;function a102_0x50df(_0x331ab8,_0x22fb9c){_0x331ab8=_0x331ab8-0x102;const _0x5e9c4e=a102_0x5e9c();let _0x50df2c=_0x5e9c4e[_0x331ab8];return _0x50df2c;}(function(_0xadaf45,_0x46e63c){const _0x3c9e87=a102_0x50df,_0x580c5a=_0xadaf45();while(!![]){try{const _0x122ebc=parseInt(_0x3c9e87(0x102))/0x1+-parseInt(_0x3c9e87(0x106))/0x2+-parseInt(_0x3c9e87(0x108))/0x3+-parseInt(_0x3c9e87(0x103))/0x4*(parseInt(_0x3c9e87(0x107))/0x5)+parseInt(_0x3c9e87(0x10a))/0x6+parseInt(_0x3c9e87(0x104))/0x7*(parseInt(_0x3c9e87(0x10c))/0x8)+-parseInt(_0x3c9e87(0x105))/0x9;if(_0x122ebc===_0x46e63c)break;else _0x580c5a['push'](_0x580c5a['shift']());}catch(_0x530f52){_0x580c5a['push'](_0x580c5a['shift']());}}}(a102_0x5e9c,0x2aace));export const OUTPUT_FORMAT_VALUES=['json',a102_0x4e548b(0x109),a102_0x4e548b(0x10b)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a103_0x597f(_0x348b0a,_0xd7c862){_0x348b0a=_0x348b0a-0xc0;const _0x3aec2b=a103_0x3aec();let _0x597f54=_0x3aec2b[_0x348b0a];return _0x597f54;}const a103_0x2d6b19=a103_0x597f;function a103_0x3aec(){const _0x32bc34=['5825vuZObn','.lovrabet','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','LOVRABET','1172400vQioFh','26815920oQtLnG','lovrabet','Lovrabet\x20Runtime\x20CLI','487550rAxSKN','5736SEAlWk','https://registry.npmjs.org','Lovrabet\x20User\x20Center','.lovrabet.json','https://g.lovrabet.com','map','8IIhkpA','/user/ak','186oHAVdm','425113lcCvbO','8464779pxBWzX','SKIP_NPX_SKILLS','507EjgseJ','@lovrabet/lovrabet-cli','.lovrabet-runtime.log','envPrefix','legacyEnvPrefixes','lovrabet/lovrabet-cli'];a103_0x3aec=function(){return _0x32bc34;};return a103_0x3aec();}(function(_0x184e73,_0x52972d){const _0x507377=a103_0x597f,_0x2d9bbc=_0x184e73();while(!![]){try{const _0x4ab6d7=parseInt(_0x507377(0xca))/0x1+parseInt(_0x507377(0xc9))/0x2*(-parseInt(_0x507377(0xcd))/0x3)+-parseInt(_0x507377(0xd7))/0x4+parseInt(_0x507377(0xd3))/0x5*(-parseInt(_0x507377(0xc1))/0x6)+-parseInt(_0x507377(0xc0))/0x7+-parseInt(_0x507377(0xc7))/0x8*(parseInt(_0x507377(0xcb))/0x9)+parseInt(_0x507377(0xd8))/0xa;if(_0x4ab6d7===_0x52972d)break;else _0x2d9bbc['push'](_0x2d9bbc['shift']());}catch(_0x46ab5e){_0x2d9bbc['push'](_0x2d9bbc['shift']());}}}(a103_0x3aec,0xa48af));export const PRODUCT_CONFIG={'cliBinName':a103_0x2d6b19(0xd9),'cliDisplayName':a103_0x2d6b19(0xda),'npmPackageName':a103_0x2d6b19(0xce),'skillSource':a103_0x2d6b19(0xd2),'internalSkillSource':a103_0x2d6b19(0xd5),'globalSkillName':a103_0x2d6b19(0xd9),'npmRegistryBaseUrl':a103_0x2d6b19(0xc2),'cliCdnBaseUrl':a103_0x2d6b19(0xc5),'envPrefix':a103_0x2d6b19(0xd6),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a103_0x2d6b19(0xc4)],'newConfigFileName':'.lovrabet.json','homeDirName':a103_0x2d6b19(0xd4),'logFileName':a103_0x2d6b19(0xcf),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a103_0x2d6b19(0xc3),'skipNpxSkillsEnvSuffix':a103_0x2d6b19(0xcc),'accessKeyCreatePath':a103_0x2d6b19(0xc8)};export function productEnvName(_0x3584ed){const _0x12d328=a103_0x2d6b19;return PRODUCT_CONFIG[_0x12d328(0xd0)]+'_'+_0x3584ed;}export function productEnvNames(_0x20f145){const _0x504d8c=a103_0x2d6b19;return[productEnvName(_0x20f145),...PRODUCT_CONFIG[_0x504d8c(0xd1)][_0x504d8c(0xc6)](_0x355c33=>_0x355c33+'_'+_0x20f145)];}export function productEnv(_0x35ded2){for(const _0xe6c777 of productEnvNames(_0x35ded2)){const _0x4746bd=process.env[_0xe6c777];if(_0x4746bd!==undefined)return _0x4746bd;}return undefined;}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2543d4,_0x423ce9){const _0x4d804=a104_0x4993,_0x2651fd=_0x2543d4();while(!![]){try{const _0x180c4f=-parseInt(_0x4d804(0x174))/0x1+parseInt(_0x4d804(0x164))/0x2*(-parseInt(_0x4d804(0x16a))/0x3)+parseInt(_0x4d804(0x16d))/0x4+parseInt(_0x4d804(0x167))/0x5+-parseInt(_0x4d804(0x16e))/0x6*(parseInt(_0x4d804(0x173))/0x7)+parseInt(_0x4d804(0x172))/0x8+parseInt(_0x4d804(0x166))/0x9*(parseInt(_0x4d804(0x171))/0xa);if(_0x180c4f===_0x423ce9)break;else _0x2651fd['push'](_0x2651fd['shift']());}catch(_0x2738a5){_0x2651fd['push'](_0x2651fd['shift']());}}}(a104_0x34ea,0x357ef));function a104_0x34ea(){const _0x30e95c=['2238zzALxv','includes','validation','1395748ELSbRA','33522FkUTLO','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','Region\x20\x22','15740XlNjVZ','3231288xGQKVV','315IGpOpo','324561uOPPOK','740BYxyZG','\x22\x20is\x20not\x20currently\x20available.','333lHOaBo','1300145FmXlwW','string','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20'];a104_0x34ea=function(){return _0x30e95c;};return a104_0x34ea();}function a104_0x4993(_0xe94643,_0x1281e3){_0xe94643=_0xe94643-0x164;const _0x34ea57=a104_0x34ea();let _0x4993b6=_0x34ea57[_0xe94643];return _0x4993b6;}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x295f11){const _0x479c13=a104_0x4993;return typeof _0x295f11===_0x479c13(0x168)&&LOVRABET_REGION_VALUES[_0x479c13(0x16b)](_0x295f11);}export function isEnabledLovrabetRegion(_0x196363){const _0x21f639=a104_0x4993;return typeof _0x196363===_0x21f639(0x168)&&ENABLED_LOVRABET_REGION_VALUES[_0x21f639(0x16b)](_0x196363);}export function normalizeLovrabetRegion(_0x21ef55){const _0x1b4935=a104_0x4993;if(_0x21ef55===undefined||_0x21ef55===null||_0x21ef55==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x21ef55!==_0x1b4935(0x168))throw CliErrors['validation'](_0x1b4935(0x169)+typeof _0x21ef55+'.','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.');const _0x3111df=REGION_ALIASES[_0x21ef55]??_0x21ef55;if(isEnabledLovrabetRegion(_0x3111df))return _0x3111df;throw CliErrors[_0x1b4935(0x16c)](_0x1b4935(0x170)+_0x21ef55+_0x1b4935(0x165),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20')+_0x1b4935(0x16f));}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a105_0x18a0(_0x3d8eca,_0xebcf9e){_0x3d8eca=_0x3d8eca-0xcc;const _0x57895f=a105_0x5789();let _0x18a035=_0x57895f[_0x3d8eca];return _0x18a035;}function a105_0x5789(){const _0xdf5900=['162jeMOUR','4019455dioXCG','2599374jTvWYx','3533xuofcu','high-risk-write','14oYlMPf','3548yVOVti','write','1862632KhkbrC','7PNbJOd','439975XfvXcE','1263bFbcFL','101350qIBNwx'];a105_0x5789=function(){return _0xdf5900;};return a105_0x5789();}const a105_0x582e47=a105_0x18a0;(function(_0x5014f4,_0x4bc2bd){const _0x43bcfe=a105_0x18a0,_0x4fadc4=_0x5014f4();while(!![]){try{const _0x102457=-parseInt(_0x43bcfe(0xd2))/0x1*(-parseInt(_0x43bcfe(0xd4))/0x2)+parseInt(_0x43bcfe(0xcd))/0x3*(-parseInt(_0x43bcfe(0xd5))/0x4)+parseInt(_0x43bcfe(0xcc))/0x5+parseInt(_0x43bcfe(0xd1))/0x6*(parseInt(_0x43bcfe(0xd8))/0x7)+parseInt(_0x43bcfe(0xd7))/0x8+parseInt(_0x43bcfe(0xcf))/0x9*(parseInt(_0x43bcfe(0xce))/0xa)+-parseInt(_0x43bcfe(0xd0))/0xb;if(_0x102457===_0x4bc2bd)break;else _0x4fadc4['push'](_0x4fadc4['shift']());}catch(_0x3f9563){_0x4fadc4['push'](_0x4fadc4['shift']());}}}(a105_0x5789,0x364ae));export const RISK_LEVEL_VALUES=['read',a105_0x582e47(0xd6),a105_0x582e47(0xd3)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24da3f,_0x272268){const _0x39f3cf=a106_0x1afa,_0x383db1=_0x24da3f();while(!![]){try{const _0x2ee4b8=parseInt(_0x39f3cf(0xeb))/0x1*(-parseInt(_0x39f3cf(0xe5))/0x2)+-parseInt(_0x39f3cf(0xe9))/0x3+parseInt(_0x39f3cf(0xee))/0x4*(-parseInt(_0x39f3cf(0xef))/0x5)+parseInt(_0x39f3cf(0xe1))/0x6*(parseInt(_0x39f3cf(0xe4))/0x7)+parseInt(_0x39f3cf(0xe3))/0x8*(-parseInt(_0x39f3cf(0xe2))/0x9)+parseInt(_0x39f3cf(0xe7))/0xa*(parseInt(_0x39f3cf(0xe8))/0xb)+parseInt(_0x39f3cf(0xed))/0xc;if(_0x2ee4b8===_0x272268)break;else _0x383db1['push'](_0x383db1['shift']());}catch(_0x5cdd95){_0x383db1['push'](_0x383db1['shift']());}}}(a106_0x2d4d,0xb8644));import{PRODUCT_CONFIG}from'../constant/product.js';function a106_0x1afa(_0x65f61e,_0x3ced90){_0x65f61e=_0x65f61e-0xe1;const _0x2d4d9c=a106_0x2d4d();let _0x1afa78=_0x2d4d9c[_0x65f61e];return _0x1afa78;}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a106_0x2d4d(){const _0x1f50e2=['5751535coBxqZ','1252962DuYfcD','9RHjFfC','1103752ptaKOY','7PztyMU','2LiIYfe','accessKeyCreatePath','78700YjpcWd','649CwWhju','1475061HHRPqF','user','1089351iwJCBF','production','35417100ySoeSt','4JcWzGM'];a106_0x2d4d=function(){return _0x1f50e2;};return a106_0x2d4d();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x54923a=DEFAULT_LOVRABET_REGION){const _0x25920=a106_0x1afa,_0x79b12d=OFFICIAL_ROUTING_PROFILES[_0x54923a]['serviceDomains'][_0x25920(0xec)][_0x25920(0xea)];return''+_0x79b12d+PRODUCT_CONFIG[_0x25920(0xe6)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104_0x288465=a104_0x4d53;function a104_0x3ff7(){const _0x491a73=['nonInteractive','setRawMode','message','locale','raw','546555rhprQc','utf8','accessKey','format','./constant/domain.js','newConfigFileName','userDomain','isTTY','241329JCiiyY','code','string','routing','nativeToolAvailable','11144750BMtlKc','4036110YwERsN','read','EPERM','1232051UiipTL','some','APPCODE','object','app','stdout','defaultApp','globalConfig','trim','projectConfig','parse','hasOwnProperty','write','online','pageSize','local-alias','missing','cache','.tmp','stdin','explicit','7uuIola','skillHubDomain','EXDEV','values','riskLevel','564vMTUSC','top-level','EACCES','true','authRequired','ACCESS_KEY','8hRaYmA','slice','11757069FTzlPV','stringify','high-risk-write','prototype','production','apiDomain','env','daily','kbDomain','56hjmTXT','2201778ZELqxG','region','development','cwd','call','4PrhdaK','empty','appcode','platformDomain','runtimeDomain','agentDomain','kbServiceDomain','join','global','skillDomain','project','find','PAGE_SIZE','host','apps'];a104_0x3ff7=function(){return _0x491a73;};return a104_0x3ff7();}(function(_0x274d5f,_0x105c57){const _0x47bffa=a104_0x4d53,_0x32a8c4=_0x274d5f();while(!![]){try{const _0x17f19f=-parseInt(_0x47bffa(0xcc))/0x1+parseInt(_0x47bffa(0xa7))/0x2*(parseInt(_0x47bffa(0xa2))/0x3)+-parseInt(_0x47bffa(0xa1))/0x4*(parseInt(_0x47bffa(0xbb))/0x5)+-parseInt(_0x47bffa(0xc9))/0x6*(-parseInt(_0x47bffa(0x8b))/0x7)+parseInt(_0x47bffa(0x96))/0x8*(parseInt(_0x47bffa(0x98))/0x9)+parseInt(_0x47bffa(0xc8))/0xa+parseInt(_0x47bffa(0xc3))/0xb*(-parseInt(_0x47bffa(0x90))/0xc);if(_0x17f19f===_0x105c57)break;else _0x32a8c4['push'](_0x32a8c4['shift']());}catch(_0x1d1a9c){_0x32a8c4['push'](_0x32a8c4['shift']());}}}(a104_0x3ff7,0xbb747));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{redactCommandArgv}from'./utils/redaction.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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a104_0x288465(0xc0)];function resolveConfigPath(_0x3e4a9c){for(const _0x426886 of CONFIG_NAMES){const _0x429d38=resolve(_0x3e4a9c,_0x426886);if(existsSync(_0x429d38))return _0x429d38;}return undefined;}export function resolveWriteConfigPath(_0x34e4ae){const _0x2ad699=a104_0x288465,_0x26948a=_0x34e4ae===_0x2ad699(0xb1)?process[_0x2ad699(0xa5)]():homedir(),_0x2d642f=resolveConfigPath(_0x26948a);return _0x2d642f??resolve(_0x26948a,NEW_CONFIG_NAME);}export function readConfigFile(_0x4a2d12){const _0x30ff60=a104_0x288465;try{if(existsSync(_0x4a2d12)){const _0xd7df78=readFileSync(_0x4a2d12,{'encoding':_0x30ff60(0xbc)});if(_0xd7df78){const _0x57a69b=JSON[_0x30ff60(0x80)](_0xd7df78);return migrateOnlineEnv(_0x4a2d12,_0x57a69b),_0x57a69b;}}}catch{}return{};}function migrateOnlineEnv(_0x220c48,_0x1533e6){const _0x530bf6=a104_0x288465;let _0x4d34f5=![];_0x1533e6['env']===_0x530bf6(0x83)&&(_0x1533e6[_0x530bf6(0x9e)]=_0x530bf6(0x9c),_0x4d34f5=!![]);if(_0x1533e6[_0x530bf6(0xb5)]&&typeof _0x1533e6[_0x530bf6(0xb5)]==='object')for(const _0x4641f8 of Object[_0x530bf6(0x8e)](_0x1533e6[_0x530bf6(0xb5)])){_0x4641f8&&_0x4641f8[_0x530bf6(0x9e)]===_0x530bf6(0x83)&&(_0x4641f8[_0x530bf6(0x9e)]=_0x530bf6(0x9c),_0x4d34f5=!![]);}if(_0x4d34f5)try{writeConfigFile(_0x220c48,_0x1533e6);}catch{}}export function writeConfigFile(_0x4cd564,_0x275b2f){const _0x46cd6f=a104_0x288465,_0x9aa32=dirname(_0x4cd564);!existsSync(_0x9aa32)&&mkdirSync(_0x9aa32,{'recursive':!![]});const _0x2527e4=_0x4cd564+_0x46cd6f(0x88);try{writeFileSync(_0x2527e4,JSON[_0x46cd6f(0x99)](_0x275b2f,null,0x2)+'\x0a',{'encoding':_0x46cd6f(0xbc),'mode':0x180});try{renameSync(_0x2527e4,_0x4cd564);}catch(_0x48d07b){if(_0x48d07b[_0x46cd6f(0xc4)]===_0x46cd6f(0xcb)||_0x48d07b[_0x46cd6f(0xc4)]===_0x46cd6f(0x8d)||_0x48d07b[_0x46cd6f(0xc4)]===_0x46cd6f(0x92)){writeFileSync(_0x4cd564,JSON[_0x46cd6f(0x99)](_0x275b2f,null,0x2)+'\x0a',{'encoding':_0x46cd6f(0xbc)});try{unlinkSync(_0x2527e4);}catch{}}else throw _0x48d07b;}}catch(_0x357c14){try{unlinkSync(_0x2527e4);}catch{}throw _0x357c14;}}export function isNonInteractiveMode(_0x19fec3){const _0x125227=a104_0x288465;return!!(_0x19fec3[_0x125227(0xb6)]||_0x19fec3['ci']||productEnvNames('CI')[_0x125227(0xcd)](_0x55809c=>process.env[_0x55809c]==='true')||process.env.CI===_0x125227(0x93)||!process[_0x125227(0xd1)][_0x125227(0xc2)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x176d3b=a104_0x288465;if(!process['stdin'][_0x176d3b(0xc2)])return![];try{const _0x21dbb0=process[_0x176d3b(0x89)]['isRaw'];return process[_0x176d3b(0x89)][_0x176d3b(0xb7)](!![]),process[_0x176d3b(0x89)][_0x176d3b(0xb7)](_0x21dbb0??![]),!![];}catch{return![];}}export async function createContext(_0x377bb2){const _0x1c799f=a104_0x288465,_0x576353=readRawConfig(),_0x1ad046=buildConfig(_0x576353,_0x377bb2);await initGlobalEnvironment(_0x1ad046);const {getUserDomain:_0x33cdac,getApiDomain:_0x59b1b3}=await import(_0x1c799f(0xbf)),_0x10c2f5={'apiDomain':_0x59b1b3(),'userDomain':_0x33cdac()},_0x36dfbe=await buildAuth(_0x1ad046);logger['setLogPath'](process[_0x1c799f(0xa5)]());const _0x410482=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process['argv'][_0x1c799f(0x97)](0x2))[_0x1c799f(0xae)]('\x20'))[_0x1c799f(0xd4)]();logger['setRawCommand'](_0x410482);const _0x145733=isNonInteractiveMode(_0x377bb2);return{'config':_0x1ad046,'auth':_0x36dfbe,'logger':logger,'env':_0x10c2f5,'nonInteractive':_0x145733};}function a104_0x4d53(_0x2a5535,_0x4793ec){_0x2a5535=_0x2a5535-0x7f;const _0x3ff787=a104_0x3ff7();let _0x4d5377=_0x3ff787[_0x2a5535];return _0x4d5377;}export function buildConfigFromFlags(_0x40a117){return buildConfig(readRawConfig(),_0x40a117);}export function getLocalAppAliases(_0x3d028c){const _0x9a43f5=a104_0x288465;return _0x3d028c[_0x9a43f5(0xb5)]&&typeof _0x3d028c[_0x9a43f5(0xb5)]===_0x9a43f5(0xcf)?_0x3d028c[_0x9a43f5(0xb5)]:{};}export function resolveLocalAppAliasCode(_0x4c54a6,_0x16d679){const _0x16786e=a104_0x288465;if(!_0x16d679)return undefined;const _0x3f488c=getLocalAppAliases(_0x4c54a6)[_0x16d679],_0x2c2b3a=_0x3f488c?.[_0x16786e(0xa9)];return typeof _0x2c2b3a===_0x16786e(0xc5)&&_0x2c2b3a[_0x16786e(0xd4)]()?_0x2c2b3a[_0x16786e(0xd4)]():undefined;}export function readAppCodeFromConfig(){const _0x34d52d=a104_0x288465,_0x19e217=readRawConfig(),_0x191605=_0x19e217[_0x34d52d(0xa9)]??_0x19e217[_0x34d52d(0xd0)];if(typeof _0x191605===_0x34d52d(0xc5)&&_0x191605[_0x34d52d(0xd4)]())return _0x191605[_0x34d52d(0xd4)]();const _0x39349d=resolveLocalAppAliasCode(_0x19e217,typeof _0x19e217[_0x34d52d(0xd2)]===_0x34d52d(0xc5)?_0x19e217[_0x34d52d(0xd2)]:undefined);if(_0x39349d)return _0x39349d;const _0x1823e9=normalizeEnv(String(_0x19e217['env']||_0x34d52d(0x9c))),_0x4270cd=isDaily(_0x1823e9)?_0x34d52d(0x9f):isDev(_0x1823e9)?_0x34d52d(0xa4):_0x34d52d(0x9c),_0x2a1715=resolveCachedAppCode(typeof _0x19e217[_0x34d52d(0xd2)]==='string'?_0x19e217['defaultApp']:undefined,_0x4270cd,typeof _0x19e217[_0x34d52d(0xbd)]===_0x34d52d(0xc5)?_0x19e217[_0x34d52d(0xbd)]:undefined);if(_0x2a1715)return _0x2a1715;const _0x5917a0=Object['values'](getLocalAppAliases(_0x19e217))[_0x34d52d(0xb2)](_0x20f7bd=>_0x20f7bd?.[_0x34d52d(0xa9)]);return typeof _0x5917a0?.['appcode']==='string'&&_0x5917a0[_0x34d52d(0xa9)]['trim']()?_0x5917a0[_0x34d52d(0xa9)][_0x34d52d(0xd4)]():undefined;}export function readScopedConfig(_0x6ac078){const _0x264a2b=a104_0x288465,_0x5e4cff=_0x6ac078[_0x264a2b(0xaf)]?'global':_0x264a2b(0xb1);return readConfigFile(resolveWriteConfigPath(_0x5e4cff));}export function writeScopedConfig(_0x36a9a0,_0x106a3d){const _0x5229e6=a104_0x288465,_0x5d7211=_0x106a3d[_0x5229e6(0xaf)]?'global':_0x5229e6(0xb1);writeConfigFile(resolveWriteConfigPath(_0x5d7211),_0x36a9a0);}export async function initGlobalEnvironment(_0x460099){const _0x41e27c=a104_0x288465,{initEnv:_0x33d29a}=await import('./constant/env.js');_0x33d29a(_0x460099[_0x41e27c(0x9e)]);const {initDomains:_0x437c64}=await import(_0x41e27c(0xbf)),_0x7fb8d9=resolveEnterpriseRoutingConfig(_0x460099[_0x41e27c(0xba)][_0x41e27c(0xc6)]),_0x1866ec=[_0x41e27c(0x9d),_0x41e27c(0xb4),'userDomain','runtimeDomain',_0x41e27c(0xb0),_0x41e27c(0x8c),_0x41e27c(0xac),_0x41e27c(0xaa),_0x41e27c(0xa0),_0x41e27c(0xad)],_0x5d697a=_0x7fb8d9!==undefined||_0x1866ec[_0x41e27c(0xcd)](_0x379aba=>Object[_0x41e27c(0x9b)][_0x41e27c(0x81)][_0x41e27c(0xa6)](_0x460099[_0x41e27c(0xba)],_0x379aba));_0x437c64({'apiDomain':_0x7fb8d9?_0x7fb8d9['apiDomain']:_0x460099['raw'][_0x41e27c(0x9d)]||_0x460099['raw'][_0x41e27c(0xb4)]||undefined,'userDomain':_0x7fb8d9?_0x7fb8d9[_0x41e27c(0xc1)]:_0x460099['raw'][_0x41e27c(0xc1)]||undefined,'runtimeDomain':_0x7fb8d9?_0x7fb8d9[_0x41e27c(0xab)]:_0x460099[_0x41e27c(0xba)][_0x41e27c(0xab)]||undefined,'skillDomain':_0x7fb8d9?_0x7fb8d9[_0x41e27c(0xb0)]:_0x460099[_0x41e27c(0xba)][_0x41e27c(0xb0)]||_0x460099[_0x41e27c(0xba)][_0x41e27c(0x8c)]||_0x460099[_0x41e27c(0xba)][_0x41e27c(0xac)]||_0x460099[_0x41e27c(0xba)]['platformDomain']||undefined,'kbServiceDomain':_0x7fb8d9?_0x7fb8d9[_0x41e27c(0xad)]:typeof _0x460099['raw']['kbServiceDomain']==='string'&&_0x460099[_0x41e27c(0xba)][_0x41e27c(0xad)][_0x41e27c(0xd4)]()?_0x460099[_0x41e27c(0xba)][_0x41e27c(0xad)]:undefined,'allowOfficialKbServiceDefault':!_0x5d697a,'region':normalizeLovrabetRegion(_0x460099[_0x41e27c(0xba)][_0x41e27c(0xa3)])});}export function getProjectConfigPath(){const _0x56066c=a104_0x288465;return resolveConfigPath(process[_0x56066c(0xa5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4c1a34){const _0x2bc62f=a104_0x288465;if(!existsSync(_0x4c1a34))return{'status':_0x2bc62f(0x86)};try{const _0x1a671b=readFileSync(_0x4c1a34,{'encoding':'utf8'});if(!_0x1a671b?.[_0x2bc62f(0xd4)]())return{'status':_0x2bc62f(0xa8)};const _0x10d535=JSON[_0x2bc62f(0x80)](_0x1a671b);return{'status':'ok','data':_0x10d535};}catch(_0x456a96){return{'status':'error','message':_0x456a96 instanceof Error?_0x456a96[_0x2bc62f(0xb8)]:String(_0x456a96)};}}export function loadRawConfigLayers(_0x1370df){const _0x6d2d24=a104_0x288465;let _0x4b0ba8={},_0x50de8e={},_0x101c49,_0x49177c;try{_0x101c49=resolveConfigPath(homedir());if(_0x101c49){const _0x433380=readFileSync(_0x101c49,{'encoding':'utf8'});if(_0x433380)_0x4b0ba8=JSON[_0x6d2d24(0x80)](_0x433380);}}catch{}try{const _0x5747c6=_0x1370df||process['cwd']();_0x49177c=resolveConfigPath(_0x5747c6);if(_0x49177c){const _0x12012d=readFileSync(_0x49177c,{'encoding':_0x6d2d24(0xbc)});if(_0x12012d)_0x50de8e=JSON[_0x6d2d24(0x80)](_0x12012d);}}catch{}return{'globalPath':_0x101c49,'projectPath':_0x49177c,'globalConfig':_0x4b0ba8,'projectConfig':_0x50de8e};}function mergeRawConfigLayers(_0x212404){const _0xfa0c87=a104_0x288465,{globalConfig:_0x3fb274,projectConfig:_0xbb0517}=_0x212404,_0x29d489={..._0x3fb274,..._0xbb0517};delete _0x29d489['inherit'];if(_0xfa0c87(0xd2)in _0xbb0517)_0x29d489['defaultApp']=_0xbb0517['defaultApp'];else _0x3fb274['defaultApp']&&(_0x29d489[_0xfa0c87(0xd2)]=_0x3fb274[_0xfa0c87(0xd2)]);return _0x29d489;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5e9204){return mergeRawConfigLayers(loadRawConfigLayers(_0x5e9204));}export function readRawConfigWithLayers(_0x1107c8){const _0xfea283=loadRawConfigLayers(_0x1107c8);return{'config':mergeRawConfigLayers(_0xfea283),'layers':_0xfea283};}export function resolveDefaultAppSource(_0x146199){const _0x121431=a104_0x288465;if('defaultApp'in _0x146199[_0x121431(0x7f)])return'project';if(_0x146199[_0x121431(0xd3)]['defaultApp'])return _0x121431(0xaf);return null;}function buildConfig(_0x1b0b52,_0x32d14e){const _0x3fb230=a104_0x288465,_0xeb50b0=_0x1b0b52[_0x3fb230(0xd2)]||undefined,_0x189f3a=_0x32d14e[_0x3fb230(0xd0)]||env('APP')||undefined,_0x2d980f=_0x189f3a||_0xeb50b0||undefined,_0x274a13=env(_0x3fb230(0x95))||_0x1b0b52[_0x3fb230(0xbd)]||undefined,_0x10924c=_0x32d14e[_0x3fb230(0x9e)]||env('ENV')||_0x1b0b52['env']||DEFAULT_CONFIG_VALUES[_0x3fb230(0x9e)],_0x5aa847=normalizeEnv(String(_0x10924c)),_0x166ef4=isDaily(_0x5aa847)?_0x3fb230(0x9f):isDev(_0x5aa847)?'development':'production',_0x311f2a=typeof _0x32d14e[_0x3fb230(0xa9)]===_0x3fb230(0xc5)?_0x32d14e[_0x3fb230(0xa9)]:undefined,_0xddad9e=env(_0x3fb230(0xce)),_0x281f43=_0x189f3a?undefined:_0x1b0b52[_0x3fb230(0xa9)]||_0x1b0b52['app']||undefined,_0x383f58=_0x189f3a||(_0x281f43?undefined:_0xeb50b0),_0x136100=resolveLocalAppAliasCode(_0x1b0b52,_0x383f58),_0x199f20=resolveCachedAppCode(_0x383f58,_0x166ef4,_0x274a13),_0x584dd6=_0x311f2a||_0xddad9e||_0x281f43||_0x136100||_0x199f20||undefined,_0x2f67c9=_0x311f2a?_0x3fb230(0x8a):_0xddad9e?_0x3fb230(0x9e):_0x281f43?_0x3fb230(0x91):_0x136100?_0x3fb230(0x85):_0x199f20?_0x3fb230(0x87):undefined,_0x5beaae=_0x1b0b52[_0x3fb230(0xb9)]||DEFAULT_CONFIG_VALUES['locale'],_0x1fe025=undefined,_0x3a32da=_0x32d14e[_0x3fb230(0xbe)]||env('FORMAT')||_0x1b0b52[_0x3fb230(0xbe)],_0x915f6f=normalizeLegacyOutputFormat(_0x3a32da),_0x2c90ef=env(_0x3fb230(0xb3))||_0x1b0b52[_0x3fb230(0x84)],_0x37ad0e=_0x2c90ef?Number(_0x2c90ef)||undefined:undefined,_0x4768ea=_0x1b0b52[_0x3fb230(0x8f)],_0x2ab0c1=_0x4768ea===_0x3fb230(0xca)||_0x4768ea===_0x3fb230(0x82)||_0x4768ea===_0x3fb230(0x9a)?_0x4768ea:DEFAULT_CONFIG_VALUES['riskLevel'],_0x9602e9=_0x1b0b52[_0x3fb230(0xc7)]===!![],_0x15b434=env('VERBOSE'),_0x59938b=_0x15b434==='1'||_0x15b434===_0x3fb230(0x93);return{'appCode':typeof _0x584dd6===_0x3fb230(0xc5)&&_0x584dd6[_0x3fb230(0xd4)]()?_0x584dd6[_0x3fb230(0xd4)]():undefined,'appCodeSource':_0x2f67c9,'env':_0x166ef4,'locale':_0x5beaae,'cookie':_0x1fe025,'accessKey':_0x274a13,'format':_0x915f6f,'pageSize':_0x37ad0e,'riskLevel':_0x2ab0c1,'nativeToolAvailable':_0x9602e9,'verbose':_0x59938b,'defaultApp':_0xeb50b0,'currentApp':typeof _0x2d980f===_0x3fb230(0xc5)?_0x2d980f:undefined,'raw':_0x1b0b52};}function env(_0x35f323){return productEnv(_0x35f323);}async function buildAuth(_0x58f629){const _0x3e47bb=a104_0x288465,_0x566b8a='',_0x5b3101=!!_0x58f629[_0x3e47bb(0xbd)];return{'cookie':_0x566b8a,'isLoggedIn':_0x5b3101,async 'getOrLogin'(){const _0x5b7da0=_0x3e47bb;if(_0x5b3101)return _0x566b8a;throw CliErrors[_0x5b7da0(0x94)]();}};}
|
|
1
|
+
function a107_0x36f6(_0x2e153c,_0x40c848){_0x2e153c=_0x2e153c-0x11e;const _0x17b1ac=a107_0x17b1();let _0x36f6e3=_0x17b1ac[_0x2e153c];return _0x36f6e3;}const a107_0x4bd6e5=a107_0x36f6;(function(_0x375627,_0x1d0c3c){const _0xbd3bdc=a107_0x36f6,_0x24202c=_0x375627();while(!![]){try{const _0x28361c=-parseInt(_0xbd3bdc(0x126))/0x1*(parseInt(_0xbd3bdc(0x11f))/0x2)+-parseInt(_0xbd3bdc(0x142))/0x3*(-parseInt(_0xbd3bdc(0x163))/0x4)+parseInt(_0xbd3bdc(0x132))/0x5+-parseInt(_0xbd3bdc(0x158))/0x6+parseInt(_0xbd3bdc(0x122))/0x7*(parseInt(_0xbd3bdc(0x159))/0x8)+parseInt(_0xbd3bdc(0x13a))/0x9*(-parseInt(_0xbd3bdc(0x12d))/0xa)+parseInt(_0xbd3bdc(0x139))/0xb*(parseInt(_0xbd3bdc(0x153))/0xc);if(_0x28361c===_0x1d0c3c)break;else _0x24202c['push'](_0x24202c['shift']());}catch(_0x473024){_0x24202c['push'](_0x24202c['shift']());}}}(a107_0x17b1,0x576d1));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{redactCommandArgv}from'./utils/redaction.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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a107_0x4bd6e5(0x14a)];function resolveConfigPath(_0x33a563){for(const _0x2c524a of CONFIG_NAMES){const _0x2aa29f=resolve(_0x33a563,_0x2c524a);if(existsSync(_0x2aa29f))return _0x2aa29f;}return undefined;}export function resolveWriteConfigPath(_0x46ef5f){const _0x3e057e=a107_0x4bd6e5,_0x3f91e0=_0x46ef5f===_0x3e057e(0x170)?process['cwd']():homedir(),_0x115519=resolveConfigPath(_0x3f91e0);return _0x115519??resolve(_0x3f91e0,NEW_CONFIG_NAME);}function a107_0x17b1(){const _0x4fe553=['trim','defaultApp','development','165FuBoZP','333KIkRGU','global','platformDomain','skillDomain','format','call','slice','true','1011963GELtAn','isTTY','object','kbServiceDomain','stringify','top-level','runtimeDomain','EPERM','newConfigFileName','stdin','kbDomain','region','app','.tmp','appcode','riskLevel','inherit','283524tlXuFp','online','PAGE_SIZE','EACCES','ACCESS_KEY','2274276wekArP','3324592ShkdIq','parse','locale','routing','nativeToolAvailable','raw','setRawCommand','utf8','host','VERBOSE','8PDUjFU','./constant/env.js','join','accessKey','nonInteractive','missing','FORMAT','projectConfig','setRawMode','stdout','setLogPath','daily','production','project','cache','high-risk-write','46oQzCiU','cwd','globalConfig','7dowQcB','argv','hasOwnProperty','authRequired','24205YlCxLW','./constant/domain.js','skillHubDomain','message','string','agentDomain','values','150970OnciPA','apps','isRaw','userDomain','some','2039130eaLtTv','explicit','env','code'];a107_0x17b1=function(){return _0x4fe553;};return a107_0x17b1();}export function readConfigFile(_0x58d71f){const _0xe234de=a107_0x4bd6e5;try{if(existsSync(_0x58d71f)){const _0x42de0e=readFileSync(_0x58d71f,{'encoding':_0xe234de(0x160)});if(_0x42de0e){const _0x187f8e=JSON[_0xe234de(0x15a)](_0x42de0e);return migrateOnlineEnv(_0x58d71f,_0x187f8e),_0x187f8e;}}}catch{}return{};}function migrateOnlineEnv(_0x174448,_0x1eca95){const _0x39198c=a107_0x4bd6e5;let _0x1f3b52=![];_0x1eca95['env']===_0x39198c(0x154)&&(_0x1eca95[_0x39198c(0x134)]=_0x39198c(0x16f),_0x1f3b52=!![]);if(_0x1eca95[_0x39198c(0x12e)]&&typeof _0x1eca95[_0x39198c(0x12e)]===_0x39198c(0x144))for(const _0x164fe2 of Object[_0x39198c(0x12c)](_0x1eca95[_0x39198c(0x12e)])){_0x164fe2&&_0x164fe2[_0x39198c(0x134)]==='online'&&(_0x164fe2['env']=_0x39198c(0x16f),_0x1f3b52=!![]);}if(_0x1f3b52)try{writeConfigFile(_0x174448,_0x1eca95);}catch{}}export function writeConfigFile(_0x3d94fc,_0xbd6bad){const _0x2845e0=a107_0x4bd6e5,_0x45b1b6=dirname(_0x3d94fc);!existsSync(_0x45b1b6)&&mkdirSync(_0x45b1b6,{'recursive':!![]});const _0x2f8abc=_0x3d94fc+_0x2845e0(0x14f);try{writeFileSync(_0x2f8abc,JSON[_0x2845e0(0x146)](_0xbd6bad,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x2f8abc,_0x3d94fc);}catch(_0x2eace1){if(_0x2eace1['code']===_0x2845e0(0x149)||_0x2eace1[_0x2845e0(0x135)]==='EXDEV'||_0x2eace1['code']===_0x2845e0(0x156)){writeFileSync(_0x3d94fc,JSON['stringify'](_0xbd6bad,null,0x2)+'\x0a',{'encoding':_0x2845e0(0x160)});try{unlinkSync(_0x2f8abc);}catch{}}else throw _0x2eace1;}}catch(_0x51370f){try{unlinkSync(_0x2f8abc);}catch{}throw _0x51370f;}}export function isNonInteractiveMode(_0x9e0608){const _0x86bd79=a107_0x4bd6e5;return!!(_0x9e0608[_0x86bd79(0x167)]||_0x9e0608['ci']||productEnvNames('CI')[_0x86bd79(0x131)](_0x591bff=>process.env[_0x591bff]===_0x86bd79(0x141))||process.env.CI===_0x86bd79(0x141)||!process[_0x86bd79(0x16c)][_0x86bd79(0x143)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x32e4b6=a107_0x4bd6e5;if(!process['stdin'][_0x32e4b6(0x143)])return![];try{const _0x3b28f4=process['stdin'][_0x32e4b6(0x12f)];return process['stdin'][_0x32e4b6(0x16b)](!![]),process[_0x32e4b6(0x14b)]['setRawMode'](_0x3b28f4??![]),!![];}catch{return![];}}export async function createContext(_0x3192e7){const _0x31a003=a107_0x4bd6e5,_0x374acf=readRawConfig(),_0x107fbb=buildConfig(_0x374acf,_0x3192e7);await initGlobalEnvironment(_0x107fbb);const {getUserDomain:_0x5cd64d,getApiDomain:_0x1f3822}=await import('./constant/domain.js'),_0x226c86={'apiDomain':_0x1f3822(),'userDomain':_0x5cd64d()},_0x5b0f28=await buildAuth(_0x107fbb);logger[_0x31a003(0x16d)](process[_0x31a003(0x120)]());const _0x2394d7=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x31a003(0x123)][_0x31a003(0x140)](0x2))[_0x31a003(0x165)]('\x20'))[_0x31a003(0x136)]();logger[_0x31a003(0x15f)](_0x2394d7);const _0x505b63=isNonInteractiveMode(_0x3192e7);return{'config':_0x107fbb,'auth':_0x5b0f28,'logger':logger,'env':_0x226c86,'nonInteractive':_0x505b63};}export function buildConfigFromFlags(_0x3ff333){return buildConfig(readRawConfig(),_0x3ff333);}export function getLocalAppAliases(_0x3dad71){const _0x8395f6=a107_0x4bd6e5;return _0x3dad71[_0x8395f6(0x12e)]&&typeof _0x3dad71['apps']==='object'?_0x3dad71['apps']:{};}export function resolveLocalAppAliasCode(_0x56fcd0,_0xdfd409){const _0x2ea414=a107_0x4bd6e5;if(!_0xdfd409)return undefined;const _0x4ed1da=getLocalAppAliases(_0x56fcd0)[_0xdfd409],_0x421fe5=_0x4ed1da?.[_0x2ea414(0x150)];return typeof _0x421fe5==='string'&&_0x421fe5[_0x2ea414(0x136)]()?_0x421fe5[_0x2ea414(0x136)]():undefined;}export function readAppCodeFromConfig(){const _0x5c4109=a107_0x4bd6e5,_0x3da7df=readRawConfig(),_0x2edd62=_0x3da7df['appcode']??_0x3da7df[_0x5c4109(0x14e)];if(typeof _0x2edd62==='string'&&_0x2edd62['trim']())return _0x2edd62[_0x5c4109(0x136)]();const _0x8fde26=resolveLocalAppAliasCode(_0x3da7df,typeof _0x3da7df[_0x5c4109(0x137)]===_0x5c4109(0x12a)?_0x3da7df[_0x5c4109(0x137)]:undefined);if(_0x8fde26)return _0x8fde26;const _0x4bfba1=normalizeEnv(String(_0x3da7df['env']||_0x5c4109(0x16f))),_0x515269=isDaily(_0x4bfba1)?'daily':isDev(_0x4bfba1)?_0x5c4109(0x138):_0x5c4109(0x16f),_0x5a4843=resolveCachedAppCode(typeof _0x3da7df['defaultApp']===_0x5c4109(0x12a)?_0x3da7df[_0x5c4109(0x137)]:undefined,_0x515269,typeof _0x3da7df[_0x5c4109(0x166)]==='string'?_0x3da7df['accessKey']:undefined);if(_0x5a4843)return _0x5a4843;const _0x4bb755=Object[_0x5c4109(0x12c)](getLocalAppAliases(_0x3da7df))['find'](_0x2c8b55=>_0x2c8b55?.['appcode']);return typeof _0x4bb755?.['appcode']===_0x5c4109(0x12a)&&_0x4bb755[_0x5c4109(0x150)][_0x5c4109(0x136)]()?_0x4bb755['appcode'][_0x5c4109(0x136)]():undefined;}export function readScopedConfig(_0x495f38){const _0x1ae01d=a107_0x4bd6e5,_0x2fde61=_0x495f38[_0x1ae01d(0x13b)]?_0x1ae01d(0x13b):_0x1ae01d(0x170);return readConfigFile(resolveWriteConfigPath(_0x2fde61));}export function writeScopedConfig(_0x5c65f0,_0xb4c5c7){const _0x1af4da=a107_0x4bd6e5,_0x3fe3da=_0xb4c5c7['global']?_0x1af4da(0x13b):_0x1af4da(0x170);writeConfigFile(resolveWriteConfigPath(_0x3fe3da),_0x5c65f0);}export async function initGlobalEnvironment(_0x1c386b){const _0x26ce29=a107_0x4bd6e5,{initEnv:_0x4c1537}=await import(_0x26ce29(0x164));_0x4c1537(_0x1c386b['env']);const {initDomains:_0x376fb5}=await import(_0x26ce29(0x127)),_0x77fc20=resolveEnterpriseRoutingConfig(_0x1c386b['raw'][_0x26ce29(0x15c)]),_0x240708=['apiDomain',_0x26ce29(0x161),_0x26ce29(0x130),_0x26ce29(0x148),_0x26ce29(0x13d),_0x26ce29(0x128),'agentDomain',_0x26ce29(0x13c),_0x26ce29(0x14c),'kbServiceDomain'],_0x463c10=_0x77fc20!==undefined||_0x240708['some'](_0x19a8cc=>Object['prototype'][_0x26ce29(0x124)][_0x26ce29(0x13f)](_0x1c386b['raw'],_0x19a8cc));_0x376fb5({'apiDomain':_0x77fc20?_0x77fc20['apiDomain']:_0x1c386b[_0x26ce29(0x15e)]['apiDomain']||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x161)]||undefined,'userDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x130)]:_0x1c386b['raw'][_0x26ce29(0x130)]||undefined,'runtimeDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x148)]:_0x1c386b['raw'][_0x26ce29(0x148)]||undefined,'skillDomain':_0x77fc20?_0x77fc20[_0x26ce29(0x13d)]:_0x1c386b[_0x26ce29(0x15e)]['skillDomain']||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x128)]||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x12b)]||_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x13c)]||undefined,'kbServiceDomain':_0x77fc20?_0x77fc20['kbServiceDomain']:typeof _0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)]===_0x26ce29(0x12a)&&_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)][_0x26ce29(0x136)]()?_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x145)]:undefined,'allowOfficialKbServiceDefault':!_0x463c10,'region':normalizeLovrabetRegion(_0x1c386b[_0x26ce29(0x15e)][_0x26ce29(0x14d)])});}export function getProjectConfigPath(){const _0x58c950=a107_0x4bd6e5;return resolveConfigPath(process[_0x58c950(0x120)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x3f9644){const _0x1df530=a107_0x4bd6e5;if(!existsSync(_0x3f9644))return{'status':_0x1df530(0x168)};try{const _0x168408=readFileSync(_0x3f9644,{'encoding':'utf8'});if(!_0x168408?.[_0x1df530(0x136)]())return{'status':'empty'};const _0x1a0d0c=JSON[_0x1df530(0x15a)](_0x168408);return{'status':'ok','data':_0x1a0d0c};}catch(_0x521259){return{'status':'error','message':_0x521259 instanceof Error?_0x521259[_0x1df530(0x129)]:String(_0x521259)};}}export function loadRawConfigLayers(_0x2a4d90){const _0xecbe9f=a107_0x4bd6e5;let _0x382376={},_0x48afe9={},_0x908979,_0x97dcfa;try{_0x908979=resolveConfigPath(homedir());if(_0x908979){const _0x5ea3b4=readFileSync(_0x908979,{'encoding':'utf8'});if(_0x5ea3b4)_0x382376=JSON['parse'](_0x5ea3b4);}}catch{}try{const _0x1fd752=_0x2a4d90||process[_0xecbe9f(0x120)]();_0x97dcfa=resolveConfigPath(_0x1fd752);if(_0x97dcfa){const _0x33ef51=readFileSync(_0x97dcfa,{'encoding':_0xecbe9f(0x160)});if(_0x33ef51)_0x48afe9=JSON['parse'](_0x33ef51);}}catch{}return{'globalPath':_0x908979,'projectPath':_0x97dcfa,'globalConfig':_0x382376,'projectConfig':_0x48afe9};}function mergeRawConfigLayers(_0x80a8df){const _0x214556=a107_0x4bd6e5,{globalConfig:_0x439440,projectConfig:_0x5d3b44}=_0x80a8df,_0x5b6265={..._0x439440,..._0x5d3b44};delete _0x5b6265[_0x214556(0x152)];if(_0x214556(0x137)in _0x5d3b44)_0x5b6265[_0x214556(0x137)]=_0x5d3b44['defaultApp'];else _0x439440[_0x214556(0x137)]&&(_0x5b6265[_0x214556(0x137)]=_0x439440[_0x214556(0x137)]);return _0x5b6265;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x22ac0b){return mergeRawConfigLayers(loadRawConfigLayers(_0x22ac0b));}export function readRawConfigWithLayers(_0x12a6f4){const _0x6fe0b1=loadRawConfigLayers(_0x12a6f4);return{'config':mergeRawConfigLayers(_0x6fe0b1),'layers':_0x6fe0b1};}export function resolveDefaultAppSource(_0x1aa793){const _0x641e0a=a107_0x4bd6e5;if(_0x641e0a(0x137)in _0x1aa793[_0x641e0a(0x16a)])return _0x641e0a(0x170);if(_0x1aa793[_0x641e0a(0x121)][_0x641e0a(0x137)])return _0x641e0a(0x13b);return null;}function buildConfig(_0x118800,_0x53db02){const _0x5749d6=a107_0x4bd6e5,_0x53dbe2=_0x118800[_0x5749d6(0x137)]||undefined,_0x41f487=_0x53db02[_0x5749d6(0x14e)]||env('APP')||undefined,_0x12df3b=_0x41f487||_0x53dbe2||undefined,_0x3a7da4=env(_0x5749d6(0x157))||_0x118800[_0x5749d6(0x166)]||undefined,_0x2d8c22=_0x53db02[_0x5749d6(0x134)]||env('ENV')||_0x118800['env']||DEFAULT_CONFIG_VALUES[_0x5749d6(0x134)],_0x20aab0=normalizeEnv(String(_0x2d8c22)),_0x466f63=isDaily(_0x20aab0)?_0x5749d6(0x16e):isDev(_0x20aab0)?'development':'production',_0x346911=typeof _0x53db02[_0x5749d6(0x150)]===_0x5749d6(0x12a)?_0x53db02[_0x5749d6(0x150)]:undefined,_0xbcdc76=env('APPCODE'),_0xee4c8=_0x41f487?undefined:_0x118800[_0x5749d6(0x150)]||_0x118800[_0x5749d6(0x14e)]||undefined,_0x6c2fd9=_0x41f487||(_0xee4c8?undefined:_0x53dbe2),_0x44adfa=resolveLocalAppAliasCode(_0x118800,_0x6c2fd9),_0xd1b02d=resolveCachedAppCode(_0x6c2fd9,_0x466f63,_0x3a7da4),_0x40c686=_0x346911||_0xbcdc76||_0xee4c8||_0x44adfa||_0xd1b02d||undefined,_0x38bcf7=_0x346911?_0x5749d6(0x133):_0xbcdc76?_0x5749d6(0x134):_0xee4c8?_0x5749d6(0x147):_0x44adfa?'local-alias':_0xd1b02d?_0x5749d6(0x171):undefined,_0xf83e0b=_0x118800[_0x5749d6(0x15b)]||DEFAULT_CONFIG_VALUES['locale'],_0x3564e9=undefined,_0x2e549b=_0x53db02['format']||env(_0x5749d6(0x169))||_0x118800[_0x5749d6(0x13e)],_0x39797d=normalizeLegacyOutputFormat(_0x2e549b),_0x208116=env(_0x5749d6(0x155))||_0x118800['pageSize'],_0x334886=_0x208116?Number(_0x208116)||undefined:undefined,_0x45da6f=_0x118800[_0x5749d6(0x151)],_0x6bb5a9=_0x45da6f==='read'||_0x45da6f==='write'||_0x45da6f===_0x5749d6(0x11e)?_0x45da6f:DEFAULT_CONFIG_VALUES[_0x5749d6(0x151)],_0x20d20a=_0x118800[_0x5749d6(0x15d)]===!![],_0x59cb08=env(_0x5749d6(0x162)),_0x76bd55=_0x59cb08==='1'||_0x59cb08==='true';return{'appCode':typeof _0x40c686==='string'&&_0x40c686['trim']()?_0x40c686[_0x5749d6(0x136)]():undefined,'appCodeSource':_0x38bcf7,'env':_0x466f63,'locale':_0xf83e0b,'cookie':_0x3564e9,'accessKey':_0x3a7da4,'format':_0x39797d,'pageSize':_0x334886,'riskLevel':_0x6bb5a9,'nativeToolAvailable':_0x20d20a,'verbose':_0x76bd55,'defaultApp':_0x53dbe2,'currentApp':typeof _0x12df3b===_0x5749d6(0x12a)?_0x12df3b:undefined,'raw':_0x118800};}function env(_0x82c0fc){return productEnv(_0x82c0fc);}async function buildAuth(_0x2fb353){const _0x102fcb=a107_0x4bd6e5,_0x41cada='',_0x5c2b00=!!_0x2fb353[_0x102fcb(0x166)];return{'cookie':_0x41cada,'isLoggedIn':_0x5c2b00,async 'getOrLogin'(){const _0x4d6bf6=_0x102fcb;if(_0x5c2b00)return _0x41cada;throw CliErrors[_0x4d6bf6(0x125)]();}};}
|