@lovrabet/lovrabet-cli 2.3.4-beta.1 → 2.3.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- 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.d.ts +1 -1
- package/lib/commands/config/init.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/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.d.ts +2 -2
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +4 -0
- 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.d.ts +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-search-client.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/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.d.ts +12 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +5 -0
- 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/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/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet/guides/troubleshooting.md +1 -1
- package/skills/lovrabet/references/lovrabet-config-commands.md +8 -7
- package/skills/lovrabet/references/lovrabet-config.md +3 -2
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +8 -6
- package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a82_0x373e(_0xf98414,_0x20a22e){_0xf98414=_0xf98414-0x1a5;const _0x5edb2f=a82_0x5edb();let _0x373e66=_0x5edb2f[_0xf98414];return _0x373e66;}const a82_0x1f4c09=a82_0x373e;(function(_0x57b14d,_0x2e464c){const _0x46da2f=a82_0x373e,_0x5ccf5d=_0x57b14d();while(!![]){try{const _0x29b4c2=-parseInt(_0x46da2f(0x1b3))/0x1*(parseInt(_0x46da2f(0x1af))/0x2)+-parseInt(_0x46da2f(0x1ac))/0x3+parseInt(_0x46da2f(0x1a9))/0x4*(parseInt(_0x46da2f(0x1b6))/0x5)+parseInt(_0x46da2f(0x1a7))/0x6+-parseInt(_0x46da2f(0x1ad))/0x7*(parseInt(_0x46da2f(0x1ae))/0x8)+parseInt(_0x46da2f(0x1b7))/0x9+parseInt(_0x46da2f(0x1b5))/0xa;if(_0x29b4c2===_0x2e464c)break;else _0x5ccf5d['push'](_0x5ccf5d['shift']());}catch(_0x4acc8d){_0x5ccf5d['push'](_0x5ccf5d['shift']());}}}(a82_0x5edb,0x5c70f));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a82_0x5edb(){const _0x114ec=['7080tjkWJb','2ajOFvQ','appCode','dbId','str','351713TFgiTq','sqlcode','1309910uXNcWR','5rehrUR','4503438DifTkb','verbose','sql','1576746rhKYyn','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','2510252qQQAzM','bool','sqlCode','2212170IrKUGI','427fvTrRq'];a82_0x5edb=function(){return _0x114ec;};return a82_0x5edb();}export const sqlDetail={'service':a82_0x1f4c09(0x1a6),'command':'detail','description':a82_0x1f4c09(0x1a8),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x31d97b){const _0x4dfe2a=a82_0x1f4c09,_0xe07737=await getSqlQueryInfo(_0x31d97b[_0x4dfe2a(0x1b0)],_0x31d97b[_0x4dfe2a(0x1b2)](_0x4dfe2a(0x1b4))),_0x2dbfec=_0x31d97b[_0x4dfe2a(0x1aa)](_0x4dfe2a(0x1a5));if(_0x2dbfec)return{'ok':!![],'data':_0xe07737};const _0x4dba2e=_0xe07737['dbId']?await getDbName(_0x31d97b['appCode'],_0xe07737[_0x4dfe2a(0x1b1)]):undefined;return{'ok':!![],'data':{'sqlCode':_0xe07737[_0x4dfe2a(0x1ab)],'sqlName':_0xe07737['sqlName'],'db':_0x4dba2e?_0x4dba2e+'\x20('+_0xe07737[_0x4dfe2a(0x1b1)]+')':_0xe07737[_0x4dfe2a(0x1b1)]??'','sqlContent':_0xe07737['sqlContent']??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x2857ca=a83_0x3533;(function(_0x4737d9,_0x38706f){const _0x453ae9=a83_0x3533,_0x51f9be=_0x4737d9();while(!![]){try{const _0x2d6999=parseInt(_0x453ae9(0x145))/0x1+parseInt(_0x453ae9(0x151))/0x2*(parseInt(_0x453ae9(0x14d))/0x3)+-parseInt(_0x453ae9(0x14f))/0x4*(-parseInt(_0x453ae9(0x148))/0x5)+parseInt(_0x453ae9(0x156))/0x6*(-parseInt(_0x453ae9(0x158))/0x7)+parseInt(_0x453ae9(0x155))/0x8+parseInt(_0x453ae9(0x154))/0x9+-parseInt(_0x453ae9(0x159))/0xa*(parseInt(_0x453ae9(0x143))/0xb);if(_0x2d6999===_0x38706f)break;else _0x51f9be['push'](_0x51f9be['shift']());}catch(_0x4efaca){_0x51f9be['push'](_0x51f9be['shift']());}}}(a83_0x5b61,0xc1a60));import{executeSdkSql}from'../../core/sdk-client.js';function a83_0x3533(_0x54d95e,_0x10a270){_0x54d95e=_0x54d95e-0x143;const _0x5b610e=a83_0x5b61();let _0x35339d=_0x5b610e[_0x54d95e];return _0x35339d;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a83_0x5b61(){const _0x1db0a1=['3358023AkZttJ','Returned\x20','1435872jkkXCp','read','2pswrhz','execError','params','10297332GHlIps','1844528PXJotd','2718rnktee','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','7182myONGG','3216590NHPXvD','sql','110ZAvdJx','execResult','544625wDhnKf','now','exec','20lGBFDJ','str','isArray','SQL\x20execution\x20failed','length'];a83_0x5b61=function(){return _0x1db0a1;};return a83_0x5b61();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a83_0x2857ca(0x15a),'command':a83_0x2857ca(0x147),'description':a83_0x2857ca(0x157),'risk':a83_0x2857ca(0x150),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2d953c){const _0x4b338f=a83_0x2857ca,_0x4d59f2=parseJsonParams(_0x2d953c[_0x4b338f(0x149)](_0x4b338f(0x153))),_0xb354aa=Date[_0x4b338f(0x146)](),_0x285146=await executeSdkSql(_0x2d953c[_0x4b338f(0x149)]('sqlcode'),_0x4d59f2),_0x49de44=Date[_0x4b338f(0x146)]()-_0xb354aa,_0x2a2167=_0x285146?.[_0x4b338f(0x144)]??_0x285146,_0x2f25dd=_0x285146?.['execSuccess']??!![];if(!_0x2f25dd)return{'ok':![],'data':{'error':_0x285146?.[_0x4b338f(0x152)]||_0x4b338f(0x14b),'elapsed':_0x49de44},'message':'SQL\x20execution\x20failed'};const _0x37f5df=Array[_0x4b338f(0x14a)](_0x2a2167)?_0x2a2167:[];return{'ok':!![],'data':{'rows':_0x37f5df,'rowCount':_0x37f5df[_0x4b338f(0x14c)],'elapsed':_0x49de44},'message':_0x4b338f(0x14e)+_0x37f5df[_0x4b338f(0x14c)]+'\x20row(s)\x20in\x20'+_0x49de44+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26fb5b,_0x2b9c81){const _0xc9de9b=a84_0x5b60,_0x4ac65c=_0x26fb5b();while(!![]){try{const _0x523960=parseInt(_0xc9de9b(0x78))/0x1*(parseInt(_0xc9de9b(0x7f))/0x2)+parseInt(_0xc9de9b(0x7c))/0x3+parseInt(_0xc9de9b(0x73))/0x4*(-parseInt(_0xc9de9b(0x79))/0x5)+parseInt(_0xc9de9b(0x7a))/0x6*(-parseInt(_0xc9de9b(0x74))/0x7)+-parseInt(_0xc9de9b(0x7d))/0x8*(-parseInt(_0xc9de9b(0x76))/0x9)+parseInt(_0xc9de9b(0x77))/0xa*(parseInt(_0xc9de9b(0x75))/0xb)+parseInt(_0xc9de9b(0x7b))/0xc*(-parseInt(_0xc9de9b(0x7e))/0xd);if(_0x523960===_0x2b9c81)break;else _0x4ac65c['push'](_0x4ac65c['shift']());}catch(_0x2f683b){_0x4ac65c['push'](_0x4ac65c['shift']());}}}(a84_0x4097,0x67c4c));function a84_0x5b60(_0x4b32d0,_0xc062a7){_0x4b32d0=_0x4b32d0-0x73;const _0x409744=a84_0x4097();let _0x5b6011=_0x409744[_0x4b32d0];return _0x5b6011;}function a84_0x4097(){const _0x864b5e=['464aKNNDW','2144051NjvPQY','11671MywCRK','1145079dQceVw','690ovIFOm','446098YOJnVs','16870RUKUjo','12HvAbeU','17964TFCQPL','2113914cokGXc','16XnpSAz','429tOSCSi','2ccmzzD'];a84_0x4097=function(){return _0x864b5e;};return a84_0x4097();}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x35c983=a85_0x3342;function a85_0x2f47(){const _0x251ddc=['current','string','Update\x20the\x20',',\x20state\x20','update','dirname','unknown','includes','toLowerCase','Checking\x20CLI\x20Built-in\x20Skill...','\x20doctor','reason','24qvvKrX','6iZAxNu','beta','timeout','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','@lovrabet/lovrabet-cli','skillVersion','@lovrabet\x5clovrabet-cli','499149BQxSTu','exitCode','Unable\x20to\x20resolve\x20','INSTALL_FAILED','3342420qIxNqu','join','nonInteractive','expected\x20','Install\x20a\x20specific\x20CLI\x20version','win32','Update\x20failed:\x20','\x20->\x20','platform','map','\x20is\x20current.','Current\x20version:\x20','fromEntries','write',']:\x20','json','stderr','trim','bool','state','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','\x20dist-tags,\x20then\x20retry.','install','error','Updating\x20','object','\x20version\x20from\x20npm.','3044268ymagdu','Invalid\x20version:\x20','valid','--prefix','lib',',\x20then\x20verify\x20with:\x20','log','164748svXcdo','relative','cwd','repairCommand','warn','Run:\x20npm\x20install\x20-g\x20','Version\x20comparison\x20failed:\x20','271980Cxtywa','npm','Run:\x20','Checking\x20npm\x20dist-tags...','args','apiError','inherit','CLI\x20updated\x20to\x20v','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','72729NcVUqq','\x20\x20CLI\x20Built-in\x20Skill\x20','Already\x20on\x20requested\x20version\x20(v','code','run','boolean','55406fwmcnL','validation','27AKvYSm','latest','node_modules','stdout','pipe','version','length'];a85_0x2f47=function(){return _0x251ddc;};return a85_0x2f47();}(function(_0xa0c8d8,_0x1394f5){const _0x20ca0e=a85_0x3342,_0x4e6944=_0xa0c8d8();while(!![]){try{const _0x29b206=-parseInt(_0x20ca0e(0xc2))/0x1*(parseInt(_0x20ca0e(0xd8))/0x2)+parseInt(_0x20ca0e(0xc4))/0x3*(-parseInt(_0x20ca0e(0x106))/0x4)+parseInt(_0x20ca0e(0xb3))/0x5+parseInt(_0x20ca0e(0xff))/0x6+-parseInt(_0x20ca0e(0xdf))/0x7+parseInt(_0x20ca0e(0xd7))/0x8*(-parseInt(_0x20ca0e(0xbc))/0x9)+parseInt(_0x20ca0e(0xe3))/0xa;if(_0x29b206===_0x1394f5)break;else _0x4e6944['push'](_0x4e6944['shift']());}catch(_0x3ca024){_0x4e6944['push'](_0x4e6944['shift']());}}}(a85_0x2f47,0x4058d));import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';function a85_0x3342(_0xbe9757,_0x57c638){_0xbe9757=_0xbe9757-0xb2;const _0x2f479e=a85_0x2f47();let _0x334286=_0x2f479e[_0xbe9757];return _0x334286;}import{execaSync}from'execa';import a85_0x225af0 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a85_0x35c983(0xc5),'type':a85_0x35c983(0xc1),'description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a85_0x35c983(0xd9),'type':a85_0x35c983(0xc1),'description':a85_0x35c983(0xbb),'default':![]},{'name':a85_0x35c983(0xc9),'type':a85_0x35c983(0xcc),'description':a85_0x35c983(0xe7)}];function getRequestedVersion(_0x272827){const _0x1d18ba=a85_0x35c983,_0x2e1523=_0x272827['str']('version')['trim']();if(_0x2e1523)return _0x2e1523;return String(_0x272827[_0x1d18ba(0xb7)]?.[0x0]??'')[_0x1d18ba(0xf4)]();}async function validateUpdateFlags(_0x59a0c1){const _0x213e23=a85_0x35c983,_0x392565=getRequestedVersion(_0x59a0c1),_0x36e2a2=[_0x59a0c1[_0x213e23(0xf5)](_0x213e23(0xc5))?'latest':'',_0x59a0c1[_0x213e23(0xf5)](_0x213e23(0xd9))?_0x213e23(0xd9):'',_0x392565?_0x213e23(0xc9):'']['filter'](Boolean);if(_0x36e2a2[_0x213e23(0xca)]>0x1)throw CliErrors[_0x213e23(0xc3)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x392565&&!a85_0x225af0[_0x213e23(0x101)](_0x392565))throw CliErrors[_0x213e23(0xc3)](_0x213e23(0x100)+_0x392565,_0x213e23(0xdb));}async function fetchNpmDistTags(){const _0x3b49bc=a85_0x35c983;try{const _0x31328f=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x4cded2=await fetch(_0x31328f,{'signal':AbortSignal[_0x3b49bc(0xda)](0x2710)});if(!_0x4cded2['ok'])return null;const _0x1cd3a8=await _0x4cded2[_0x3b49bc(0xf2)]();if(!_0x1cd3a8||typeof _0x1cd3a8!==_0x3b49bc(0xfd))return null;return Object[_0x3b49bc(0xef)](Object['entries'](_0x1cd3a8)['filter'](([,_0x5f2363])=>typeof _0x5f2363==='string'&&_0x5f2363[_0x3b49bc(0xf4)]())[_0x3b49bc(0xec)](([_0x10c478,_0x213caf])=>[_0x10c478,String(_0x213caf)[_0x3b49bc(0xf4)]()]));}catch{return null;}}async function resolveTargetVersion(_0x50e190){const _0x46fb20=a85_0x35c983,_0x8b9079=getRequestedVersion(_0x50e190);if(_0x8b9079)return{'version':_0x8b9079,'source':_0x46fb20(0xc9)};const _0x14a8ea=_0x50e190[_0x46fb20(0xf5)](_0x46fb20(0xd9))?'beta':_0x46fb20(0xc5),_0x3dcac9=await fetchNpmDistTags(),_0x49c767=_0x3dcac9?.[_0x14a8ea];if(!_0x49c767)return null;return{'version':_0x49c767,'source':_0x14a8ea};}function shouldInstallTarget(_0x3087cd,_0x10732f){const _0x35b447=a85_0x35c983;if(_0x10732f['source']==='version'||_0x10732f['source']===_0x35b447(0xd9))return!a85_0x225af0['eq'](_0x3087cd,_0x10732f['version']);return a85_0x225af0['lt'](_0x3087cd,_0x10732f[_0x35b447(0xc9)]);}export function installCliPackage(_0x1219a1,_0x2e623e,_0x3d3f97=resolveCurrentCliNpmPrefix()){const _0x39ffc7=a85_0x35c983,_0x1430c0=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1219a1,_0x18cb14=[_0x39ffc7(0xfa),'-g',_0x1430c0],_0x156bd6=runNpmInstall(_0x18cb14,_0x2e623e);if(_0x156bd6['ok']||!isNpmPrefixPermissionError(_0x156bd6[_0x39ffc7(0xfb)]))return _0x156bd6;if(!_0x3d3f97||_0x156bd6['error']?.[_0x39ffc7(0xd3)]()[_0x39ffc7(0xd2)](_0x3d3f97[_0x39ffc7(0xd3)]()))return _0x156bd6;return console[_0x39ffc7(0x10a)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x3d3f97),runNpmInstall([..._0x18cb14,_0x39ffc7(0x102),_0x3d3f97],_0x2e623e);}export function resolveCurrentCliNpmPrefix(_0x49d270=fileURLToPath(import.meta.url),_0x1ab0d9=process[a85_0x35c983(0xeb)]){const _0x5a7232=a85_0x35c983,_0x3bc3df=_0x1ab0d9===_0x5a7232(0xe8)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x15ee8c=_0x3bc3df[_0x5a7232(0xd0)](_0x3bc3df[_0x5a7232(0xd0)](_0x3bc3df[_0x5a7232(0xd0)](_0x49d270))),_0x28d8bc=_0x1ab0d9===_0x5a7232(0xe8)?_0x5a7232(0xde):_0x5a7232(0xdc);let _0x4aab97=_0x3bc3df[_0x5a7232(0xd0)](_0x15ee8c);while(!![]){if(_0x3bc3df['basename'](_0x4aab97)===_0x5a7232(0xc6)&&_0x3bc3df[_0x5a7232(0x107)](_0x4aab97,_0x15ee8c)===_0x28d8bc){const _0x470180=_0x3bc3df[_0x5a7232(0xd0)](_0x4aab97);return _0x3bc3df['basename'](_0x470180)===_0x5a7232(0x103)?_0x3bc3df[_0x5a7232(0xd0)](_0x470180):_0x470180;}const _0x5b8e19=_0x3bc3df[_0x5a7232(0xd0)](_0x4aab97);if(_0x5b8e19===_0x4aab97)return null;_0x4aab97=_0x5b8e19;}}function runNpmInstall(_0x273b2a,_0x41040c){const _0x209a45=a85_0x35c983;console[_0x209a45(0x105)]('*\x20'+[_0x209a45(0xb4),..._0x273b2a][_0x209a45(0xe4)]('\x20'));const _0x17bea6=execaSync(_0x209a45(0xb4),_0x273b2a,{'cwd':process[_0x209a45(0x108)](),'stdio':_0x209a45(0xc8),'env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0xa11d52=_0x17bea6['stderr']?String(_0x17bea6[_0x209a45(0xf3)])[_0x209a45(0xf4)]():'',_0x456fb5=_0x17bea6[_0x209a45(0xc7)]?String(_0x17bea6[_0x209a45(0xc7)])[_0x209a45(0xf4)]():'';if(!_0x41040c){if(_0x456fb5)process[_0x209a45(0xc7)][_0x209a45(0xf0)](_0x456fb5+'\x0a');if(_0xa11d52)process[_0x209a45(0xf3)][_0x209a45(0xf0)](_0xa11d52+'\x0a');}if(_0x17bea6[_0x209a45(0xe0)]===0x0)return{'ok':!![]};const _0x546cf3=_0xa11d52||_0x456fb5||_0x17bea6['shortMessage']||'exit\x20'+(_0x17bea6[_0x209a45(0xe0)]??_0x209a45(0xd1));return{'ok':![],'error':_0x546cf3};}function isNpmPrefixPermissionError(_0x8ad76e){return Boolean(_0x8ad76e&&/\b(?:EACCES|EPERM)\b/['test'](_0x8ad76e));}function repairCurrentBuiltinSkill(_0x35fc35){const _0x33e64c=a85_0x35c983;console[_0x33e64c(0x105)](_0x33e64c(0xd4));const _0x1f89fc=installBuiltinSkill({'stdio':_0x35fc35?_0x33e64c(0xc8):_0x33e64c(0xb9)});if(_0x1f89fc['ok']){console[_0x33e64c(0x105)](_0x33e64c(0xbd)+_0x1f89fc['skillVersion']+_0x33e64c(0xed));return;}throw CliErrors['apiError']('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x1f89fc[_0x33e64c(0xbf)]||_0x33e64c(0xe2))+_0x33e64c(0xf1)+(_0x1f89fc[_0x33e64c(0xfb)]||_0x33e64c(0xd1)),_0x33e64c(0xb5)+_0x1f89fc[_0x33e64c(0x109)]+_0x33e64c(0x104)+CLI_BIN_NAME+_0x33e64c(0xd5));}function verifyUpdatedBuiltinSkill(_0x9b9c54){const _0x205cdd=a85_0x35c983;console['log'](_0x205cdd(0xd4));const _0x123026=inspectInstalledBuiltinSkillVersion(_0x9b9c54);if(_0x123026[_0x205cdd(0xf6)]===_0x205cdd(0xcb)){console[_0x205cdd(0x105)](_0x205cdd(0xbd)+_0x9b9c54+_0x205cdd(0xed));return;}const _0x1cd798=_0x123026[_0x205cdd(0xdd)]?_0x205cdd(0xe6)+_0x9b9c54+',\x20found\x20'+_0x123026[_0x205cdd(0xdd)]:_0x205cdd(0xe6)+_0x9b9c54+_0x205cdd(0xce)+_0x123026[_0x205cdd(0xf6)],_0x3daefd=_0x123026['reason']?_0x1cd798+':\x20'+_0x123026[_0x205cdd(0xd6)]:_0x1cd798;throw CliErrors['apiError'](_0x205cdd(0xba)+_0x9b9c54+_0x205cdd(0xf8)+_0x3daefd,_0x205cdd(0xb5)+_0x123026[_0x205cdd(0x109)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x205cdd(0xd5));}async function execute(_0x46150a){const _0x6ab953=a85_0x35c983;await validateUpdateFlags(_0x46150a);const _0x136f40=getCliVersion();console[_0x6ab953(0x105)](_0x6ab953(0xee)+_0x136f40),console[_0x6ab953(0x105)](_0x6ab953(0xb6));const _0x4d092f=await resolveTargetVersion(_0x46150a);if(!_0x4d092f){const _0x4fd526=_0x46150a[_0x6ab953(0xf5)](_0x6ab953(0xd9))?_0x6ab953(0xd9):_0x6ab953(0xc5),_0x4d928a=_0x6ab953(0xe1)+_0x4fd526+_0x6ab953(0xfe);throw CliErrors[_0x6ab953(0xb8)](_0x4d928a,_0x6ab953(0x10b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4fd526);}const _0x41c277=[_0x136f40,_0x4d092f[_0x6ab953(0xc9)]]['find'](_0x5045d3=>!a85_0x225af0[_0x6ab953(0x101)](_0x5045d3));if(_0x41c277){const _0x229654=_0x6ab953(0xb2)+_0x41c277+'.';throw CliErrors[_0x6ab953(0xb8)](_0x229654,'Run:\x20npm\x20view\x20'+LOVRABET_NPM_PACKAGE_NAME+_0x6ab953(0xf9));}if(!shouldInstallTarget(_0x136f40,_0x4d092f)){const _0xe1bfd1=_0x4d092f['source']===_0x6ab953(0xc9)?_0x6ab953(0xbe)+_0x4d092f['version']+').':'Already\x20up\x20to\x20date\x20(v'+_0x4d092f['version']+').';return console[_0x6ab953(0x105)](_0xe1bfd1),repairCurrentBuiltinSkill(_0x46150a[_0x6ab953(0xe5)]),{'ok':!![]};}console['log'](_0x6ab953(0xfc)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x136f40+_0x6ab953(0xea)+_0x4d092f[_0x6ab953(0xc9)]);const _0xf8a315=installCliPackage(_0x4d092f[_0x6ab953(0xc9)],_0x46150a[_0x6ab953(0xe5)]);if(!_0xf8a315['ok']){const _0x169abf=_0x6ab953(0xe9)+(_0xf8a315[_0x6ab953(0xfb)]||_0x6ab953(0xd1));throw CliErrors['apiError'](_0x169abf,'Run:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d092f[_0x6ab953(0xc9)]);}return console[_0x6ab953(0x105)]('Updated\x20to\x20v'+_0x4d092f[_0x6ab953(0xc9)]+'.'),console[_0x6ab953(0x105)](_0x6ab953(0xf7)),verifyUpdatedBuiltinSkill(_0x4d092f[_0x6ab953(0xc9)]),{'ok':!![]};}export const updateDefinition={'service':a85_0x35c983(0xcf),'command':a85_0x35c983(0xc0),'description':a85_0x35c983(0xcd)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a85_0x52460b=a85_0xd393;(function(_0x49979b,_0x5912a4){const _0x5906f9=a85_0xd393,_0xc6fc1a=_0x49979b();while(!![]){try{const _0x5029ae=-parseInt(_0x5906f9(0x190))/0x1*(parseInt(_0x5906f9(0x1c0))/0x2)+-parseInt(_0x5906f9(0x193))/0x3+parseInt(_0x5906f9(0x1e5))/0x4+-parseInt(_0x5906f9(0x1de))/0x5+parseInt(_0x5906f9(0x1af))/0x6+-parseInt(_0x5906f9(0x1a0))/0x7+parseInt(_0x5906f9(0x1ac))/0x8;if(_0x5029ae===_0x5912a4)break;else _0xc6fc1a['push'](_0xc6fc1a['shift']());}catch(_0x5f3b08){_0xc6fc1a['push'](_0xc6fc1a['shift']());}}}(a85_0x1316,0xba8b7));import{fileURLToPath}from'node:url';function a85_0x1316(){const _0x43f034=['\x20CLI\x20from\x20npm','Checking\x20npm\x20dist-tags...','win32','npm','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Updating\x20','12621888dydfhE',']:\x20','\x20->\x20','8622144NiIhPP','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Run:\x20npm\x20view\x20','node_modules','version','update','join','--prefix','beta','Install\x20a\x20specific\x20CLI\x20version','bool','stderr','\x20is\x20current.','lib','exit\x20','INSTALL_FAILED','/-/package/','4YeEJux','cwd','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','test','object','find','warn','error','log','exitCode',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','latest','state',',\x20then\x20verify\x20with:\x20','source','Update\x20the\x20','relative','str','platform','entries','@lovrabet\x5clovrabet-cli','Checking\x20CLI\x20Built-in\x20Skill...','timeout','Version\x20comparison\x20failed:\x20','includes','@lovrabet/lovrabet-cli','validation','read','Unable\x20to\x20resolve\x20','/dist-tags','435905aUZJzn','map','trim',',\x20found\x20','stdout','apiError','nonInteractive','5442192ifwLgc','reason','expected\x20','boolean','install','Updated\x20to\x20v','valid','run','Already\x20on\x20requested\x20version\x20(v','\x20version\x20from\x20npm.','529892yNOYLS','skillVersion','unknown','3525705NgnTgL','Run:\x20npm\x20install\x20-g\x20','CLI\x20updated\x20to\x20v','Current\x20version:\x20','repairCommand','dirname','\x20doctor','Run:\x20','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','string','current','filter','9023147GspTBf','code','length','args'];a85_0x1316=function(){return _0x43f034;};return a85_0x1316();}import{basename,dirname,relative,win32}from'node:path';import{execaSync}from'execa';import a85_0x111dab from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a85_0x52460b(0x1cb),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1b0),'default':![]},{'name':a85_0x52460b(0x1b7),'type':a85_0x52460b(0x1e8),'description':a85_0x52460b(0x1aa),'default':![]},{'name':a85_0x52460b(0x1b3),'type':a85_0x52460b(0x19d),'description':a85_0x52460b(0x1b8)}];function getRequestedVersion(_0x380301){const _0xc2d99=a85_0x52460b,_0x24fc47=_0x380301[_0xc2d99(0x1d1)](_0xc2d99(0x1b3))[_0xc2d99(0x1e0)]();if(_0x24fc47)return _0x24fc47;return String(_0x380301[_0xc2d99(0x1a3)]?.[0x0]??'')[_0xc2d99(0x1e0)]();}async function validateUpdateFlags(_0x21accf){const _0x511fb3=a85_0x52460b,_0xba3f4d=getRequestedVersion(_0x21accf),_0x559b6c=[_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1cb))?_0x511fb3(0x1cb):'',_0x21accf[_0x511fb3(0x1b9)](_0x511fb3(0x1b7))?'beta':'',_0xba3f4d?'version':''][_0x511fb3(0x19f)](Boolean);if(_0x559b6c[_0x511fb3(0x1a2)]>0x1)throw CliErrors['validation'](_0x511fb3(0x1a9),_0x511fb3(0x1c2));if(_0xba3f4d&&!a85_0x111dab[_0x511fb3(0x18c)](_0xba3f4d))throw CliErrors[_0x511fb3(0x1da)]('Invalid\x20version:\x20'+_0xba3f4d,_0x511fb3(0x19c));}async function fetchNpmDistTags(){const _0x10974a=a85_0x52460b;try{const _0x25d12d=NPM_REGISTRY_BASE_URL+_0x10974a(0x1bf)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x10974a(0x1dd),_0x4dce8c=await fetch(_0x25d12d,{'signal':AbortSignal[_0x10974a(0x1d6)](0x2710)});if(!_0x4dce8c['ok'])return null;const _0x417ace=await _0x4dce8c['json']();if(!_0x417ace||typeof _0x417ace!==_0x10974a(0x1c4))return null;return Object[_0x10974a(0x19b)](Object[_0x10974a(0x1d3)](_0x417ace)[_0x10974a(0x19f)](([,_0x20e678])=>typeof _0x20e678===_0x10974a(0x19d)&&_0x20e678[_0x10974a(0x1e0)]())[_0x10974a(0x1df)](([_0x3cf6ba,_0x4bad43])=>[_0x3cf6ba,String(_0x4bad43)[_0x10974a(0x1e0)]()]));}catch{return null;}}function a85_0xd393(_0x196898,_0x1cb3a1){_0x196898=_0x196898-0x18c;const _0x131615=a85_0x1316();let _0xd39388=_0x131615[_0x196898];return _0xd39388;}async function resolveTargetVersion(_0x5c4f6c){const _0xc2546d=a85_0x52460b,_0x57c4dd=getRequestedVersion(_0x5c4f6c);if(_0x57c4dd)return{'version':_0x57c4dd,'source':_0xc2546d(0x1b3)};const _0x5bf3ef=_0x5c4f6c[_0xc2546d(0x1b9)](_0xc2546d(0x1b7))?_0xc2546d(0x1b7):_0xc2546d(0x1cb),_0x260dc2=await fetchNpmDistTags(),_0x3fed51=_0x260dc2?.[_0x5bf3ef];if(!_0x3fed51)return null;return{'version':_0x3fed51,'source':_0x5bf3ef};}function shouldInstallTarget(_0x4e1f4d,_0x4fed5c){const _0x1a0fed=a85_0x52460b;if(_0x4fed5c[_0x1a0fed(0x1ce)]===_0x1a0fed(0x1b3)||_0x4fed5c['source']==='beta')return!a85_0x111dab['eq'](_0x4e1f4d,_0x4fed5c['version']);return a85_0x111dab['lt'](_0x4e1f4d,_0x4fed5c['version']);}export function installCliPackage(_0x167a41,_0x409add,_0x3a06d7=resolveCurrentCliNpmPrefix()){const _0x323caa=a85_0x52460b,_0x4337cd=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x167a41,_0x1fceae=[_0x323caa(0x1e9),'-g',_0x4337cd],_0x565eb9=runNpmInstall(_0x1fceae,_0x409add);if(_0x565eb9['ok']||!isNpmPrefixPermissionError(_0x565eb9[_0x323caa(0x1c7)]))return _0x565eb9;if(!_0x3a06d7||_0x565eb9['error']?.['toLowerCase']()[_0x323caa(0x1d8)](_0x3a06d7['toLowerCase']()))return _0x565eb9;return console[_0x323caa(0x1c6)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x3a06d7),runNpmInstall([..._0x1fceae,_0x323caa(0x1b6),_0x3a06d7],_0x409add);}export function resolveCurrentCliNpmPrefix(_0xf873dd=fileURLToPath(import.meta.url),_0x4cae0e=process[a85_0x52460b(0x1d2)]){const _0x294f51=a85_0x52460b,_0x245d93=_0x4cae0e===_0x294f51(0x1a6)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x467293=_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0x245d93[_0x294f51(0x198)](_0xf873dd))),_0x14e015=_0x4cae0e===_0x294f51(0x1a6)?_0x294f51(0x1d4):_0x294f51(0x1d9);let _0x542743=_0x245d93['dirname'](_0x467293);while(!![]){if(_0x245d93['basename'](_0x542743)===_0x294f51(0x1b2)&&_0x245d93[_0x294f51(0x1d0)](_0x542743,_0x467293)===_0x14e015){const _0x35785a=_0x245d93[_0x294f51(0x198)](_0x542743);return _0x245d93['basename'](_0x35785a)===_0x294f51(0x1bc)?_0x245d93[_0x294f51(0x198)](_0x35785a):_0x35785a;}const _0x578503=_0x245d93[_0x294f51(0x198)](_0x542743);if(_0x578503===_0x542743)return null;_0x542743=_0x578503;}}function runNpmInstall(_0x4c1ec7,_0x6bbcca){const _0x41a118=a85_0x52460b;console[_0x41a118(0x1c8)]('*\x20'+[_0x41a118(0x1a7),..._0x4c1ec7][_0x41a118(0x1b5)]('\x20'));const _0x4ccfd4=execaSync('npm',_0x4c1ec7,{'cwd':process[_0x41a118(0x1c1)](),'stdio':'pipe','env':process.env,'extendEnv':![],'shell':![],'reject':![]}),_0x419859=_0x4ccfd4[_0x41a118(0x1ba)]?String(_0x4ccfd4[_0x41a118(0x1ba)])[_0x41a118(0x1e0)]():'',_0x1b2850=_0x4ccfd4[_0x41a118(0x1e2)]?String(_0x4ccfd4[_0x41a118(0x1e2)])['trim']():'';if(!_0x6bbcca){if(_0x1b2850)process[_0x41a118(0x1e2)]['write'](_0x1b2850+'\x0a');if(_0x419859)process[_0x41a118(0x1ba)]['write'](_0x419859+'\x0a');}if(_0x4ccfd4[_0x41a118(0x1c9)]===0x0)return{'ok':!![]};const _0x3bd420=_0x419859||_0x1b2850||_0x4ccfd4['shortMessage']||_0x41a118(0x1bd)+(_0x4ccfd4[_0x41a118(0x1c9)]??'unknown');return{'ok':![],'error':_0x3bd420};}function isNpmPrefixPermissionError(_0x554293){const _0x44670c=a85_0x52460b;return Boolean(_0x554293&&/\b(?:EACCES|EPERM)\b/[_0x44670c(0x1c3)](_0x554293));}function repairCurrentBuiltinSkill(_0x1dc578){const _0x183254=a85_0x52460b;console['log'](_0x183254(0x1d5));const _0x288dbe=installBuiltinSkill({'stdio':_0x1dc578?'pipe':'inherit'});if(_0x288dbe['ok']){console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x288dbe[_0x183254(0x191)]+_0x183254(0x1bb));return;}throw CliErrors[_0x183254(0x1e3)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x288dbe[_0x183254(0x1a1)]||_0x183254(0x1be))+_0x183254(0x1ad)+(_0x288dbe[_0x183254(0x1c7)]||_0x183254(0x192)),'Run:\x20'+_0x288dbe['repairCommand']+_0x183254(0x1cd)+CLI_BIN_NAME+_0x183254(0x199));}function verifyUpdatedBuiltinSkill(_0x2b7306){const _0x18a3bf=a85_0x52460b;console[_0x18a3bf(0x1c8)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x36bc64=inspectInstalledBuiltinSkillVersion(_0x2b7306);if(_0x36bc64[_0x18a3bf(0x1cc)]===_0x18a3bf(0x19e)){console[_0x18a3bf(0x1c8)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2b7306+_0x18a3bf(0x1bb));return;}const _0x55fbc5=_0x36bc64['skillVersion']?_0x18a3bf(0x1e7)+_0x2b7306+_0x18a3bf(0x1e1)+_0x36bc64[_0x18a3bf(0x191)]:'expected\x20'+_0x2b7306+',\x20state\x20'+_0x36bc64[_0x18a3bf(0x1cc)],_0x222738=_0x36bc64[_0x18a3bf(0x1e6)]?_0x55fbc5+':\x20'+_0x36bc64[_0x18a3bf(0x1e6)]:_0x55fbc5;throw CliErrors[_0x18a3bf(0x1e3)](_0x18a3bf(0x195)+_0x2b7306+_0x18a3bf(0x1ca)+_0x222738,_0x18a3bf(0x19a)+_0x36bc64[_0x18a3bf(0x197)]+_0x18a3bf(0x1cd)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x141210){const _0x1be9f5=a85_0x52460b;await validateUpdateFlags(_0x141210);const _0x24717c=getCliVersion();console[_0x1be9f5(0x1c8)](_0x1be9f5(0x196)+_0x24717c),console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1a5));const _0x5ebea3=await resolveTargetVersion(_0x141210);if(!_0x5ebea3){const _0x15c4e3=_0x141210[_0x1be9f5(0x1b9)](_0x1be9f5(0x1b7))?_0x1be9f5(0x1b7):_0x1be9f5(0x1cb),_0x5d768f=_0x1be9f5(0x1dc)+_0x15c4e3+_0x1be9f5(0x18f);throw CliErrors['apiError'](_0x5d768f,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x15c4e3);}const _0x45a18e=[_0x24717c,_0x5ebea3[_0x1be9f5(0x1b3)]][_0x1be9f5(0x1c5)](_0x3a4bd5=>!a85_0x111dab[_0x1be9f5(0x18c)](_0x3a4bd5));if(_0x45a18e){const _0x275345=_0x1be9f5(0x1d7)+_0x45a18e+'.';throw CliErrors[_0x1be9f5(0x1e3)](_0x275345,_0x1be9f5(0x1b1)+LOVRABET_NPM_PACKAGE_NAME+'\x20dist-tags,\x20then\x20retry.');}if(!shouldInstallTarget(_0x24717c,_0x5ebea3)){const _0xfafcc7=_0x5ebea3[_0x1be9f5(0x1ce)]==='version'?_0x1be9f5(0x18e)+_0x5ebea3[_0x1be9f5(0x1b3)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x5ebea3[_0x1be9f5(0x1b3)]+').';return console[_0x1be9f5(0x1c8)](_0xfafcc7),repairCurrentBuiltinSkill(_0x141210['nonInteractive']),{'ok':!![]};}console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x24717c+_0x1be9f5(0x1ae)+_0x5ebea3[_0x1be9f5(0x1b3)]);const _0x5964d8=installCliPackage(_0x5ebea3[_0x1be9f5(0x1b3)],_0x141210[_0x1be9f5(0x1e4)]);if(!_0x5964d8['ok']){const _0x2c1fb0='Update\x20failed:\x20'+(_0x5964d8['error']||_0x1be9f5(0x192));throw CliErrors[_0x1be9f5(0x1e3)](_0x2c1fb0,_0x1be9f5(0x194)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5ebea3[_0x1be9f5(0x1b3)]);}return console[_0x1be9f5(0x1c8)](_0x1be9f5(0x1ea)+_0x5ebea3[_0x1be9f5(0x1b3)]+'.'),console['log'](_0x1be9f5(0x1a8)),verifyUpdatedBuiltinSkill(_0x5ebea3[_0x1be9f5(0x1b3)]),{'ok':!![]};}export const updateDefinition={'service':a85_0x52460b(0x1b4),'command':a85_0x52460b(0x18d),'description':a85_0x52460b(0x1cf)+CLI_BIN_NAME+a85_0x52460b(0x1a4),'risk':a85_0x52460b(0x1db),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a86_0x5afffc=a86_0x5b81;(function(_0x466cd0,_0x1db373){const _0x1c9b16=a86_0x5b81,_0x4e0821=_0x466cd0();while(!![]){try{const _0x18895f=parseInt(_0x1c9b16(0x18a))/0x1+parseInt(_0x1c9b16(0x18b))/0x2*(-parseInt(_0x1c9b16(0x195))/0x3)+parseInt(_0x1c9b16(0x190))/0x4*(-parseInt(_0x1c9b16(0x17d))/0x5)+parseInt(_0x1c9b16(0x19b))/0x6*(parseInt(_0x1c9b16(0x184))/0x7)+-parseInt(_0x1c9b16(0x188))/0x8+parseInt(_0x1c9b16(0x183))/0x9*(parseInt(_0x1c9b16(0x180))/0xa)+-parseInt(_0x1c9b16(0x18c))/0xb*(-parseInt(_0x1c9b16(0x18d))/0xc);if(_0x18895f===_0x1db373)break;else _0x4e0821['push'](_0x4e0821['shift']());}catch(_0x177e6f){_0x4e0821['push'](_0x4e0821['shift']());}}}(a86_0x5dcc,0x4c84a));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a86_0x5b81(_0x8ce153,_0x39507f){_0x8ce153=_0x8ce153-0x17d;const _0x5dcce7=a86_0x5dcc();let _0x5b812e=_0x5dcce7[_0x8ce153];return _0x5b812e;}import{CliErrors}from'../../errors.js';function a86_0x5dcc(){const _0x29476b=['169454vMFqIr','64lsrZFu','9100938EdhOju','12rMkEOb','write','string','68FzStai','(empty)','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','account-id','str','46353DAvFOd','provider','External\x20account\x20ID\x20for\x20the\x20selected\x20provider','Unsupported\x20provider:\x20','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','Binds\x20the\x20platform\x20user\x20of\x20the\x20current\x20AccessKey\x20to\x20the\x20given\x20collaboration-provider\x20account.\x20An\x20existing\x20bind\x20for\x20the\x20same\x20provider\x20may\x20be\x20replaced.','30iMPZJP','validation','user-account','123855oTtqqc','includes','toLowerCase','30brHGFM','External\x20account\x20binding\x20was\x20not\x20confirmed.','bind','827289AGJIjB','431235XqgoXb','dingtalk','POST','trim','2813144ldqZVQ','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'];a86_0x5dcc=function(){return _0x29476b;};return a86_0x5dcc();}const CURRENT_BINDING_WARNING=a86_0x5afffc(0x192),SUPPORTED_PROVIDERS=[a86_0x5afffc(0x185)];function readBindingInput(_0x4180e2){const _0x27f891=a86_0x5afffc,_0x18c2f4=_0x4180e2[_0x27f891(0x194)](_0x27f891(0x196))[_0x27f891(0x187)]()[_0x27f891(0x17f)]();if(!SUPPORTED_PROVIDERS[_0x27f891(0x17e)](_0x18c2f4))throw CliErrors[_0x27f891(0x19c)](_0x27f891(0x198)+(_0x18c2f4||_0x27f891(0x191))+'.','Pass\x20one\x20of:\x20'+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x19f9a6=_0x4180e2[_0x27f891(0x194)](_0x27f891(0x193))[_0x27f891(0x187)]();if(!_0x19f9a6)throw CliErrors[_0x27f891(0x19c)]('--account-id\x20cannot\x20be\x20empty.','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x18c2f4,'accountId':_0x19f9a6};}function buildBindingData(_0x1fec46,_0x4cceb3,_0x19d274){const _0x3f164e=a86_0x5afffc;return{'operation':_0x3f164e(0x182),'selector':{'provider':_0x1fec46,'accountId':_0x4cceb3},'before':null,'after':{'provider':_0x1fec46,'accountId':_0x4cceb3,'bound':!![]},'dryRun':_0x19d274,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a86_0x5afffc(0x19d),'command':a86_0x5afffc(0x182),'description':a86_0x5afffc(0x199),'risk':a86_0x5afffc(0x18e),'confirmationDescription':a86_0x5afffc(0x19a),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a86_0x5afffc(0x196),'type':a86_0x5afffc(0x18f),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':'External\x20account\x20provider'},{'name':a86_0x5afffc(0x193),'type':a86_0x5afffc(0x18f),'required':!![],'description':a86_0x5afffc(0x197)}],async 'validate'(_0x160610){readBindingInput(_0x160610);},async 'dryRun'(_0x28d823){const _0x953dfb=a86_0x5afffc,{provider:_0x3b5279,accountId:_0x168d2b}=readBindingInput(_0x28d823);return{...buildBindingData(_0x3b5279,_0x168d2b,!![]),'method':_0x953dfb(0x186),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x3b5279,'accountId':_0x168d2b}};},async 'execute'(_0x375df2){const _0x51e09d=a86_0x5afffc,{provider:_0x573f8e,accountId:_0x537e02}=readBindingInput(_0x375df2),_0x1c3774=await bindExternalUserAccount(_0x573f8e,_0x537e02);if(_0x1c3774!==!![])throw CliErrors['apiError'](_0x51e09d(0x181),'Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x573f8e,_0x537e02,![]),'message':_0x51e09d(0x189)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a87_0x2241(){const _0x40ed14=['5910888jTqKum','99896IuIOmQ','82776ETJYlt','82aetxVa','69CybZle','132980PTHxuN','979uVypJj','42ioCKjR','1231804bmvwGp','414Etgkqu','496085zjwdTh','7471SIwgmn'];a87_0x2241=function(){return _0x40ed14;};return a87_0x2241();}(function(_0x1cba62,_0x5ae57b){const _0x5aa8a6=a87_0x2cfc,_0x40f9af=_0x1cba62();while(!![]){try{const _0x3b4c81=-parseInt(_0x5aa8a6(0xf6))/0x1*(-parseInt(_0x5aa8a6(0xfa))/0x2)+-parseInt(_0x5aa8a6(0xfb))/0x3*(-parseInt(_0x5aa8a6(0xf8))/0x4)+parseInt(_0x5aa8a6(0xf5))/0x5*(parseInt(_0x5aa8a6(0xfe))/0x6)+-parseInt(_0x5aa8a6(0xf3))/0x7+-parseInt(_0x5aa8a6(0xf7))/0x8+parseInt(_0x5aa8a6(0xf4))/0x9*(-parseInt(_0x5aa8a6(0xfc))/0xa)+-parseInt(_0x5aa8a6(0xfd))/0xb*(-parseInt(_0x5aa8a6(0xf9))/0xc);if(_0x3b4c81===_0x5ae57b)break;else _0x40f9af['push'](_0x40f9af['shift']());}catch(_0x104d29){_0x40f9af['push'](_0x40f9af['shift']());}}}(a87_0x2241,0xa1c55));import{bindUserAccount}from'../../commands/user-account/bind.js';function a87_0x2cfc(_0x2eb96b,_0x5789f4){_0x2eb96b=_0x2eb96b-0xf3;const _0x22411c=a87_0x2241();let _0x2cfce=_0x22411c[_0x2eb96b];return _0x2cfce;}export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a88_0x31b2(_0x25b9b0,_0x4584bd){_0x25b9b0=_0x25b9b0-0x1a0;const _0xd849b3=a88_0xd849();let _0x31b217=_0xd849b3[_0x25b9b0];return _0x31b217;}const a88_0x37501b=a88_0x31b2;(function(_0x17f866,_0x2928b2){const _0x3b5905=a88_0x31b2,_0x20d681=_0x17f866();while(!![]){try{const _0x4b95e4=-parseInt(_0x3b5905(0x1c2))/0x1+-parseInt(_0x3b5905(0x1b3))/0x2+-parseInt(_0x3b5905(0x1dc))/0x3*(-parseInt(_0x3b5905(0x1bf))/0x4)+parseInt(_0x3b5905(0x1d3))/0x5*(parseInt(_0x3b5905(0x1b0))/0x6)+-parseInt(_0x3b5905(0x1bd))/0x7+-parseInt(_0x3b5905(0x1c0))/0x8*(-parseInt(_0x3b5905(0x1d2))/0x9)+parseInt(_0x3b5905(0x1d7))/0xa;if(_0x4b95e4===_0x2928b2)break;else _0x20d681['push'](_0x20d681['shift']());}catch(_0x170ee4){_0x20d681['push'](_0x20d681['shift']());}}}(a88_0xd849,0x3778a));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a88_0x37501b(0x1d0),'type':a88_0x37501b(0x1bb),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a88_0x37501b(0x1c9),'type':'string','description':a88_0x37501b(0x1ac)},{'name':a88_0x37501b(0x1b7),'type':'string','description':a88_0x37501b(0x1a5),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x5d1bb5,_0x533929){const _0xf0115b=a88_0x37501b,_0x254266=_0x5d1bb5[_0xf0115b(0x1d1)](_0xf0115b(0x1d0))[_0xf0115b(0x1db)](),_0x404aa2=_0x5d1bb5[_0xf0115b(0x1d1)]('appcode')[_0xf0115b(0x1db)](),_0x4fe281=_0x5d1bb5[_0xf0115b(0x1d1)]('env')['trim'](),_0xa99771=resolveWorkspaceEnv(_0x4fe281||_0x5d1bb5['envName']||DEFAULT_CONFIG_VALUES[_0xf0115b(0x1b7)]);if(!_0x254266&&!_0x404aa2)throw CliErrors[_0xf0115b(0x1ab)]('Missing\x20workspace\x20app\x20selector.',_0xf0115b(0x1cb)+CLI_BIN_NAME+_0xf0115b(0x1c7)+_0x533929+_0xf0115b(0x1ad)+CLI_BIN_NAME+_0xf0115b(0x1c7)+_0x533929+_0xf0115b(0x1a9));if(_0x254266&&_0x404aa2)throw CliErrors[_0xf0115b(0x1ab)](_0xf0115b(0x1b1),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x1ae58f=resolveWriteConfigPath(_0xf0115b(0x1c5)),_0x49f478=readConfigFile(_0x1ae58f);assertWorkspaceCommandState(_0x533929,_0x49f478);const _0x28e628=_0x404aa2||await resolveRemoteAppCode({'command':_0x533929,'appName':_0x254266,'env':_0xa99771,'accessKey':_0x5d1bb5[_0xf0115b(0x1c1)]});return writeWorkspaceConfig({'command':_0x533929,'appName':_0x254266,'appcode':_0x28e628,'env':_0xa99771,'shouldWriteEnv':!!_0x4fe281,'accessKey':_0x5d1bb5[_0xf0115b(0x1c1)]},_0x1ae58f,_0x49f478),{'ok':!![],'data':{'configPath':_0x1ae58f,'app':_0x254266||null,'appcode':_0x28e628,'env':_0x4fe281?_0xa99771:null,'accessKeyWritten':![],'command':_0xf0115b(0x1cc)+_0x533929},'message':buildWorkspaceMessage(_0x1ae58f,_0x254266,_0x28e628,_0x4fe281?_0xa99771:undefined)};}async function resolveRemoteAppCode(_0x3d0d0d){const _0x43a5ca=a88_0x37501b;if(!_0x3d0d0d['accessKey'])throw CliErrors[_0x43a5ca(0x1b8)](_0x43a5ca(0x1d8)+CLI_BIN_NAME+_0x43a5ca(0x1c7)+_0x3d0d0d['command']+'.');const {setActiveAK:_0x3690c2}=await import(_0x43a5ca(0x1a0)),{getRemoteAppList:_0x429891}=await import(_0x43a5ca(0x1ba));_0x3690c2(_0x3d0d0d[_0x43a5ca(0x1c1)]);const _0x37d391=await _0x429891({'env':_0x3d0d0d[_0x43a5ca(0x1b7)],'accessKey':_0x3d0d0d[_0x43a5ca(0x1c1)],'noCache':![]}),_0x182b28=findAppByName(_0x37d391['items'],_0x3d0d0d[_0x43a5ca(0x1bc)]);if(_0x182b28&&!isRuntimeAccessibleApp(_0x182b28))throw runtimeInaccessibleAppError(_0x182b28,'\x22'+_0x3d0d0d[_0x43a5ca(0x1bc)]+'\x22');const _0x337ec0=_0x182b28?.[_0x43a5ca(0x1b9)]?.[_0x43a5ca(0x1db)]();if(_0x337ec0)return _0x337ec0;const _0x379c08=_0x37d391['items'][_0x43a5ca(0x1b4)](_0x2cf05d=>_0x2cf05d[_0x43a5ca(0x1bc)])[_0x43a5ca(0x1ae)](Boolean),_0x5b78cf=_0x379c08['length']?'Available\x20apps:\x20'+Array[_0x43a5ca(0x1d9)](new Set(_0x379c08))['join'](',\x20')+'.':_0x43a5ca(0x1ce)+CLI_BIN_NAME+_0x43a5ca(0x1aa);throw CliErrors[_0x43a5ca(0x1ab)](_0x43a5ca(0x1b2)+_0x3d0d0d[_0x43a5ca(0x1bc)]+_0x43a5ca(0x1a6),_0x5b78cf);}function writeWorkspaceConfig(_0x18e148,_0xd7f96f,_0x548cd5){const _0x432ec2=a88_0x37501b;_0x18e148['shouldWriteEnv']&&(_0x548cd5[_0x432ec2(0x1b7)]=_0x18e148[_0x432ec2(0x1b7)]);if(_0x18e148[_0x432ec2(0x1bc)]){const _0x151556=isRecord(_0x548cd5[_0x432ec2(0x1a8)])?{..._0x548cd5['apps']}:{},_0x194798=isRecord(_0x151556[_0x18e148[_0x432ec2(0x1bc)]])?_0x151556[_0x18e148[_0x432ec2(0x1bc)]]:{};return _0x151556[_0x18e148[_0x432ec2(0x1bc)]]={..._0x194798,'appcode':_0x18e148[_0x432ec2(0x1c9)]},_0x548cd5['apps']=_0x151556,_0x548cd5['defaultApp']=_0x18e148['appName'],delete _0x548cd5[_0x432ec2(0x1c9)],delete _0x548cd5[_0x432ec2(0x1d0)],writeAndReturn(_0xd7f96f,_0x548cd5);}return _0x548cd5['appcode']=_0x18e148[_0x432ec2(0x1c9)],delete _0x548cd5[_0x432ec2(0x1be)],delete _0x548cd5['app'],writeAndReturn(_0xd7f96f,_0x548cd5);}function writeAndReturn(_0x3d786a,_0x2b0920){return writeConfigFile(_0x3d786a,_0x2b0920),_0x3d786a;}function resolveWorkspaceEnv(_0x1fcf04){const _0x5cace5=a88_0x37501b;if(RUNTIME_ENV_VALUES[_0x5cace5(0x1b5)](_0x1fcf04))return _0x1fcf04;throw CliErrors[_0x5cace5(0x1ab)](_0x5cace5(0x1a7)+_0x1fcf04+_0x5cace5(0x1c6)+RUNTIME_ENV_VALUES[_0x5cace5(0x1c8)](',\x20'));}function buildWorkspaceMessage(_0x334353,_0x339258,_0x5e963e,_0x2b64f8){const _0x54fbcf=a88_0x37501b,_0x29f4f8=_0x339258?_0x339258+'\x20('+_0x5e963e+')':_0x5e963e,_0x449322=_0x2b64f8?_0x54fbcf(0x1ca)+_0x2b64f8:'';return _0x54fbcf(0x1cf)+_0x334353+'\x0aDefault\x20app:\x20'+_0x29f4f8+_0x449322+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x5d13c8){const _0xd96a42=a88_0x37501b;return typeof _0x5d13c8===_0xd96a42(0x1a4)&&_0x5d13c8!==null&&!Array[_0xd96a42(0x1d4)](_0x5d13c8);}function hasWorkspaceAppBinding(_0x45fb30){const _0x999709=a88_0x37501b;if(typeof _0x45fb30[_0x999709(0x1c9)]===_0x999709(0x1bb)&&_0x45fb30['appcode'][_0x999709(0x1db)]()[_0x999709(0x1c4)]>0x0)return!![];if(typeof _0x45fb30[_0x999709(0x1be)]!==_0x999709(0x1bb)||!_0x45fb30[_0x999709(0x1be)]['trim']())return![];if(!isRecord(_0x45fb30[_0x999709(0x1a8)]))return![];const _0x2b8d29=_0x45fb30[_0x999709(0x1a8)][_0x45fb30[_0x999709(0x1be)][_0x999709(0x1db)]()];return isRecord(_0x2b8d29)&&typeof _0x2b8d29[_0x999709(0x1c9)]==='string'&&_0x2b8d29[_0x999709(0x1c9)][_0x999709(0x1db)]()[_0x999709(0x1c4)]>0x0;}function assertWorkspaceCommandState(_0x3bc146,_0x7d4d97){const _0x561a5b=a88_0x37501b,_0x456596=hasWorkspaceAppBinding(_0x7d4d97);if(_0x3bc146==='init'&&_0x456596)throw CliErrors[_0x561a5b(0x1ab)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x561a5b(0x1d5)+CLI_BIN_NAME+_0x561a5b(0x1a2)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x3bc146===_0x561a5b(0x1b6)&&!_0x456596)throw CliErrors[_0x561a5b(0x1ab)](_0x561a5b(0x1af),'Run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x561a5b(0x1cd));}function makeWorkspaceCommand(_0x35c759){const _0x189b32=a88_0x37501b;return{'service':_0x189b32(0x1a1),'command':_0x35c759,'description':_0x35c759===_0x189b32(0x1d6)?_0x189b32(0x1a3):'Change\x20the\x20app\x20context\x20already\x20bound\x20to\x20the\x20current\x20working\x20directory','risk':_0x189b32(0x1da),'confirmationDescription':_0x35c759===_0x189b32(0x1d6)?'Writes\x20Lovrabet\x20project\x20config\x20in\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet,\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.':_0x189b32(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x12e7db){return executeWorkspaceUse(_0x12e7db,_0x35c759);}};}function a88_0xd849(){const _0x3f3fff=['Run\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','app','str','63vFwzsP','5GImqYi','isArray','Use\x20`','init','462060DDciZU','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','from','write','trim','21DeXRzJ','../../core/api-client.js','workspace','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','Initialize\x20app\x20context\x20for\x20the\x20current\x20working\x20directory\x20when\x20no\x20app\x20is\x20bound\x20yet','object','Target\x20environment','\x22\x20not\x20found.','Invalid\x20env\x20\x22','apps','\x20--appcode\x20<code>\x20[--env\x20daily]','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','validation','App\x20code\x20to\x20bind\x20directly','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','filter','Workspace\x20app\x20context\x20is\x20not\x20initialized.','221772jGKGoZ','Conflicting\x20workspace\x20app\x20selectors.','App\x20\x22','232654EZRGtT','map','includes','use','env','authRequired','appCode','../../commands/app/remote-source.js','string','appName','1827798szcECE','defaultApp','155404pLWdwp','466968sodniq','accessKey','159071wFmPHd','Updates\x20the\x20app\x20binding\x20already\x20present\x20in\x20the\x20current\x20working\x20directory\x20and\x20sets\x20the\x20selected\x20app\x20as\x20the\x20directory\x20default.\x20AccessKey\x20is\x20not\x20written.','length','project','\x22.\x20Allowed:\x20','\x20workspace\x20','join','appcode','\x0aEnv:\x20','Usage:\x20','workspace\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.'];a88_0xd849=function(){return _0x3f3fff;};return a88_0xd849();}export const workspaceDefinitions=[makeWorkspaceCommand(a88_0x37501b(0x1d6)),makeWorkspaceCommand(a88_0x37501b(0x1b6))];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ENTERPRISE_ROUTING_DOMAIN_FIELDS } from "../generated/routing-contract.js";
|
|
2
|
-
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain"];
|
|
2
|
+
export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbServiceDomain"];
|
|
3
3
|
export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
|
|
4
4
|
export type DomainConfig = Partial<Record<DomainConfigField, string>>;
|
|
5
5
|
export type EnterpriseRoutingDomainField = (typeof ENTERPRISE_ROUTING_DOMAIN_FIELDS)[number];
|
|
@@ -13,7 +13,7 @@ export type DomainConfigInput = {
|
|
|
13
13
|
manifestDomains: EnterpriseRoutingDomains;
|
|
14
14
|
};
|
|
15
15
|
/** Old domain keys removed when connection routing is reinitialized. */
|
|
16
|
-
export declare const LEGACY_DOMAIN_CONFIG_FIELDS: readonly ["agentDomain", "platformDomain", "skillHubDomain", "kbDomain"];
|
|
16
|
+
export declare const LEGACY_DOMAIN_CONFIG_FIELDS: readonly ["host", "agentDomain", "platformDomain", "skillHubDomain", "kbDomain"];
|
|
17
17
|
/** Validates and normalizes an exact HTTPS origin used for authenticated requests. */
|
|
18
18
|
export declare function normalizeDomainOrigin(field: DomainConfigField | EnterpriseRoutingDomainField, input: unknown): string;
|
|
19
19
|
export declare function normalizeRoutingDomainValue(field: EnterpriseRoutingDomainField, input: unknown): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x4111c2=a89_0x4c54;(function(_0x111337,_0x3b871a){const _0x45a65f=a89_0x4c54,_0x34c15e=_0x111337();while(!![]){try{const _0x428f7b=parseInt(_0x45a65f(0x174))/0x1+-parseInt(_0x45a65f(0x14d))/0x2+parseInt(_0x45a65f(0x153))/0x3*(parseInt(_0x45a65f(0x167))/0x4)+-parseInt(_0x45a65f(0x158))/0x5*(parseInt(_0x45a65f(0x175))/0x6)+-parseInt(_0x45a65f(0x150))/0x7+-parseInt(_0x45a65f(0x17e))/0x8*(-parseInt(_0x45a65f(0x173))/0x9)+parseInt(_0x45a65f(0x15c))/0xa;if(_0x428f7b===_0x3b871a)break;else _0x34c15e['push'](_0x34c15e['shift']());}catch(_0x56bccc){_0x34c15e['push'](_0x34c15e['shift']());}}}(a89_0x2146,0xa6484));function a89_0x2146(){const _0x32454c=['agentDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','length','304BOIFWN','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','user-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20','kbDomain','domains','validation','Enterprise\x20','apiDomain','pathname','object','9HtFveA','65704JhmjSO','72pQkhlY','isArray','lovrabet-cli','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','legacy','enterprise-v1','trim','platformDomain','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','9398544uxkhDO','password','kbServiceDomain','runtimeDomain','userDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','join','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','\x22\x20is\x20not\x20a\x20valid\x20URL.','parse','includes','cwd','string','hash','skillHubDomain','881266LnbGoo','search','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','7738619CjpNKg','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','skillDomain','34245yeEEeY','str','host','\x22\x20and\x20kind\x20\x22','runtime-domain','159730gLgWni','kind','mode',':\x20\x22','5025320UDBrCN','Invalid\x20domain\x20config\x20JSON:\x20','origin','Unsupported\x20domain\x20config\x20field(s):\x20','filter','keys','domain-config','protocol'];a89_0x2146=function(){return _0x32454c;};return a89_0x2146();}import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a89_0x4c54(_0x38354a,_0x3dfcf3){_0x38354a=_0x38354a-0x145;const _0x2146d7=a89_0x2146();let _0x4c54b4=_0x2146d7[_0x38354a];return _0x4c54b4;}import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a89_0x4111c2(0x182),a89_0x4111c2(0x170),a89_0x4111c2(0x181),a89_0x4111c2(0x152),'kbServiceDomain'];const DOMAIN_FLAGS={'userDomain':a89_0x4111c2(0x169),'apiDomain':'api-domain','runtimeDomain':a89_0x4111c2(0x157),'skillDomain':'skill-domain','kbServiceDomain':'kb-service-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a89_0x4111c2(0x155),a89_0x4111c2(0x164),a89_0x4111c2(0x17c),a89_0x4111c2(0x14c),a89_0x4111c2(0x16c)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a89_0x4111c2(0x182),'apiDomain':a89_0x4111c2(0x170),'runtimeDomain':a89_0x4111c2(0x181),'skillDomain':a89_0x4111c2(0x152),'kbServiceDomain':a89_0x4111c2(0x180)},ROUTING_CONSUMER=a89_0x4111c2(0x177);export function normalizeDomainOrigin(_0x576ff8,_0x52aa19){const _0x406b0=a89_0x4111c2;if(typeof _0x52aa19!==_0x406b0(0x14a)||!_0x52aa19[_0x406b0(0x17b)]())throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+_0x406b0(0x16a));let _0x22ade7;try{_0x22ade7=new URL(_0x52aa19[_0x406b0(0x17b)]());}catch{throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+_0x406b0(0x15b)+_0x52aa19+_0x406b0(0x146));}if(_0x22ade7['protocol']!=='https:'||_0x22ade7['username']||_0x22ade7[_0x406b0(0x17f)]||_0x22ade7[_0x406b0(0x171)]!=='/'&&_0x22ade7[_0x406b0(0x171)]!==''||_0x22ade7[_0x406b0(0x14e)]||_0x22ade7[_0x406b0(0x14b)])throw CliErrors[_0x406b0(0x16e)](_0x406b0(0x16b)+_0x576ff8+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x406b0(0x165));return _0x22ade7[_0x406b0(0x15e)];}export function normalizeRoutingDomainValue(_0x3c4e8d,_0x4233f0){const _0x2d054b=a89_0x4111c2;if(typeof _0x4233f0===_0x2d054b(0x14a))return normalizeDomainOrigin(_0x3c4e8d,_0x4233f0);if(!_0x4233f0||typeof _0x4233f0!==_0x2d054b(0x172)||Array[_0x2d054b(0x176)](_0x4233f0))throw CliErrors[_0x2d054b(0x16e)](_0x2d054b(0x16b)+_0x3c4e8d+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x2823b8=_0x4233f0,_0x5249ba=_0x2823b8[ROUTING_CONSUMER]??_0x2823b8['default'];if(_0x5249ba===undefined)throw CliErrors[_0x2d054b(0x16e)](_0x2d054b(0x16f)+_0x3c4e8d+_0x2d054b(0x14f)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x3c4e8d,_0x5249ba);}export function resolveEnterpriseRoutingConfig(_0xe463ee){const _0x284f65=a89_0x4111c2;if(_0xe463ee===undefined)return undefined;if(!_0xe463ee||typeof _0xe463ee!=='object'||Array['isArray'](_0xe463ee))throw CliErrors[_0x284f65(0x16e)](_0x284f65(0x17d));return parseEnterpriseRoutingManifest(_0xe463ee)[_0x284f65(0x16d)];}export function readDomainConfigInput(_0x3ddc89){const _0x1c17bf=a89_0x4111c2,_0x121f17=isAbsolute(_0x3ddc89)?_0x3ddc89:resolve(process[_0x1c17bf(0x149)](),_0x3ddc89);if(!existsSync(_0x121f17))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x121f17);let _0x391e22;try{_0x391e22=JSON[_0x1c17bf(0x147)](readFileSync(_0x121f17,'utf8'));}catch{throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x15d)+_0x121f17);}if(!_0x391e22||typeof _0x391e22!=='object'||Array[_0x1c17bf(0x176)](_0x391e22))throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x178));const _0x4bf0dc=_0x391e22;if(_0x1c17bf(0x163)in _0x4bf0dc)return parseEnterpriseRoutingManifest(_0x4bf0dc);const _0x2b4030=Object[_0x1c17bf(0x161)](_0x4bf0dc)['filter'](_0x4f8863=>!DOMAIN_CONFIG_FIELDS[_0x1c17bf(0x148)](_0x4f8863));if(_0x2b4030['length']>0x0)throw CliErrors[_0x1c17bf(0x16e)](_0x1c17bf(0x15f)+_0x2b4030[_0x1c17bf(0x184)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x319a98={};for(const _0x14ce19 of DOMAIN_CONFIG_FIELDS){_0x4bf0dc[_0x14ce19]!==undefined&&(_0x319a98[_0x14ce19]=normalizeDomainOrigin(_0x14ce19,_0x4bf0dc[_0x14ce19]));}if(Object[_0x1c17bf(0x161)](_0x319a98)['length']===0x0)throw CliErrors[_0x1c17bf(0x16e)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x319a98};}export function readDomainConfig(_0x45baa2){const _0x41c1fd=a89_0x4111c2;return readDomainConfigInput(_0x45baa2)[_0x41c1fd(0x16d)];}export function resolveDomainConfigInput(_0x4249f4){const _0x139cdf=a89_0x4111c2,_0x581aa6=(_0x4249f4[_0x139cdf(0x154)](_0x139cdf(0x162))||'')['trim'](),_0x35a677=_0x581aa6?readDomainConfigInput(_0x581aa6):{'mode':_0x139cdf(0x179),'domains':{}},_0x5cbd9a=DOMAIN_CONFIG_FIELDS[_0x139cdf(0x160)](_0x35e55d=>Boolean((_0x4249f4[_0x139cdf(0x154)](DOMAIN_FLAGS[_0x35e55d])||'')[_0x139cdf(0x17b)]()));if(_0x35a677[_0x139cdf(0x15a)]===_0x139cdf(0x17a)&&_0x5cbd9a[_0x139cdf(0x166)]>0x0)throw CliErrors[_0x139cdf(0x16e)](_0x139cdf(0x183),_0x139cdf(0x151));for(const _0x5663c1 of DOMAIN_CONFIG_FIELDS){const _0x4f1764=(_0x4249f4['str'](DOMAIN_FLAGS[_0x5663c1])||'')['trim']();if(_0x4f1764)_0x35a677[_0x139cdf(0x16d)][_0x5663c1]=normalizeDomainOrigin(_0x5663c1,_0x4f1764);}return _0x35a677;}export function resolveDomainFlags(_0x5023c4){const _0x27816a=a89_0x4111c2;return resolveDomainConfigInput(_0x5023c4)[_0x27816a(0x16d)];}export function parseEnterpriseRoutingManifest(_0x535305){const _0x2fdd66=a89_0x4111c2;if(_0x535305[_0x2fdd66(0x163)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x535305[_0x2fdd66(0x159)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2fdd66(0x16e)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x2fdd66(0x156)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x535305[_0x2fdd66(0x16d)]||typeof _0x535305[_0x2fdd66(0x16d)]!=='object'||Array[_0x2fdd66(0x176)](_0x535305[_0x2fdd66(0x16d)]))throw CliErrors[_0x2fdd66(0x16e)](_0x2fdd66(0x145));const _0x1645b4=_0x535305['domains'],_0x4f0bc6=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2fdd66(0x160)](_0x3ec0b9=>_0x1645b4[_0x3ec0b9]===undefined);if(_0x4f0bc6[_0x2fdd66(0x166)]>0x0)throw CliErrors['validation'](_0x2fdd66(0x168)+_0x4f0bc6['join'](',\x20'));const _0xf31eb={},_0x4ba50b={};for(const _0x36e628 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x59a6fb=_0x1645b4[_0x36e628];if(_0x59a6fb===undefined)continue;const _0x240de3=normalizeRoutingDomainValue(_0x36e628,_0x59a6fb);_0xf31eb[_0x36e628]=_0x240de3;const _0x6bc4b3=ENTERPRISE_TO_LOCAL_FIELD[_0x36e628];_0x6bc4b3&&(_0x4ba50b[_0x6bc4b3]=_0x240de3);}return{'mode':'enterprise-v1','domains':_0x4ba50b,'manifestDomains':_0xf31eb};}
|
package/lib/config/schema.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import { RUNTIME_ENV_VALUES } from "../constant/env.js";
|
|
20
20
|
export type RuntimeEnv = (typeof RUNTIME_ENV_VALUES)[number];
|
|
21
21
|
/** All configuration field names recognized by the runtime CLI. */
|
|
22
|
-
type ConfigFieldName = "env" | "region" | "routing" | "format" | "pageSize" | "apiDomain" | "userDomain" | "runtimeDomain" | "skillDomain" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
|
|
22
|
+
type ConfigFieldName = "env" | "region" | "routing" | "format" | "pageSize" | "apiDomain" | "userDomain" | "runtimeDomain" | "skillDomain" | "kbServiceDomain" | "accessKey" | "riskLevel" | "nativeToolAvailable" | "locale";
|
|
23
23
|
/**
|
|
24
24
|
* Schema for a single configuration field.
|
|
25
25
|
*
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0xb28c3=a90_0x271d;(function(_0x1cf490,_0x1fddf9){const _0x4e74ee=a90_0x271d,_0x54a328=_0x1cf490();while(!![]){try{const _0x192290=parseInt(_0x4e74ee(0x1c9))/0x1*(parseInt(_0x4e74ee(0x1c2))/0x2)+-parseInt(_0x4e74ee(0x1cf))/0x3+parseInt(_0x4e74ee(0x1bd))/0x4+-parseInt(_0x4e74ee(0x1b8))/0x5*(parseInt(_0x4e74ee(0x1ca))/0x6)+-parseInt(_0x4e74ee(0x1d1))/0x7*(parseInt(_0x4e74ee(0x1b7))/0x8)+-parseInt(_0x4e74ee(0x1b0))/0x9+parseInt(_0x4e74ee(0x1cb))/0xa*(parseInt(_0x4e74ee(0x1af))/0xb);if(_0x192290===_0x1fddf9)break;else _0x54a328['push'](_0x54a328['shift']());}catch(_0x7a16a3){_0x54a328['push'](_0x54a328['shift']());}}}(a90_0x235d,0x4cb5d));function a90_0x235d(){const _0x37687c=['map','Override\x20runtime\x20domain',';\x20local\x20alias:\x20apps.<alias>.appcode','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Override\x20KB\x20Service\x20domain','filter','616WEzRpg','3711591YmFFYC','Config\x20key.\x20Top-level:\x20','toLowerCase','Native\x20Lovrabet\x20tool\x20availability\x20in\x20the\x20current\x20execution\x20host','Default\x20output\x20format','env','has','3137576OtHAwK','5exhUFL','locale','Target\x20environment','zh-CN','importable','2266816JTlnDL','Override\x20SkillHub\x20domain','entries','cliSettableTopLevel','Versioned\x20enterprise\x20routing\x20manifest','3902WITTbW','Default\x20page\x20size','fromEntries','legacyCompatOnly','Override\x20API\x20domain','riskLevel','format','84xPejKA','1284738SETSMb','202070zDlZTg','en-US','enumValues','defaultValue','1587768kkRSRS','Override\x20user\x20domain','7MGhJAj'];a90_0x235d=function(){return _0x37687c;};return a90_0x235d();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export const CONFIG_FIELD_SCHEMAS={'routing':{'description':a90_0xb28c3(0x1c1),'topLevel':!![]},'region':{'description':'Lovrabet\x20region','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':ENABLED_LOVRABET_REGION_VALUES,'defaultValue':DEFAULT_LOVRABET_REGION,'importable':!![]},'env':{'description':a90_0xb28c3(0x1ba),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1b5)],'importable':!![]},'format':{'description':a90_0xb28c3(0x1b4),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1c8)],'importable':!![]},'pageSize':{'description':a90_0xb28c3(0x1c3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a90_0xb28c3(0x1c6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a90_0xb28c3(0x1d0),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a90_0xb28c3(0x1d3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillDomain':{'description':a90_0xb28c3(0x1be),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'kbServiceDomain':{'description':a90_0xb28c3(0x1ad),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1c7)],'importable':!![]},'nativeToolAvailable':{'description':a90_0xb28c3(0x1b3),'topLevel':!![],'defaultValue':![]},'locale':{'description':a90_0xb28c3(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a90_0xb28c3(0x1b9)],'importable':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a90_0xb28c3(0x1bf)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3638d4])=>_0x3638d4[a90_0xb28c3(0x1c0)])[a90_0xb28c3(0x1d2)](([_0x1b69da])=>_0x1b69da));export const CLI_PROTECTED_CONFIG_KEYS=new Set(['riskLevel','nativeToolAvailable']);export const CONFIG_ENUM_VALUES=Object[a90_0xb28c3(0x1c4)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a90_0xb28c3(0x1ae)](([,_0xa6d823])=>_0xa6d823[a90_0xb28c3(0x1cd)])[a90_0xb28c3(0x1d2)](([_0xb9601a,_0x35f131])=>[_0xb9601a,[..._0x35f131['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a90_0xb28c3(0x1bf)](CONFIG_FIELD_SCHEMAS)[a90_0xb28c3(0x1ae)](([,_0x3b1815])=>_0x3b1815[a90_0xb28c3(0x1bc)])[a90_0xb28c3(0x1d2)](([_0x4fed2a])=>_0x4fed2a);export function getConfigFieldSchema(_0xbd4c1d){return CONFIG_FIELD_SCHEMAS[_0xbd4c1d];}export function getConfigEnumValues(_0x1c1f6d){const _0x525f1e=a90_0xb28c3;return getConfigFieldSchema(_0x1c1f6d)?.[_0x525f1e(0x1cd)];}export function getConfigDefaultValue(_0x122904){const _0x18ad8a=a90_0xb28c3;return getConfigFieldSchema(_0x122904)?.[_0x18ad8a(0x1ce)];}export function isTopLevelConfigKey(_0x422857){const _0x1e9baa=a90_0xb28c3;return TOP_LEVEL_CONFIG_KEYS[_0x1e9baa(0x1b6)](_0x422857);}function a90_0x271d(_0x6d0481,_0x3081ad){_0x6d0481=_0x6d0481-0x1ab;const _0x235d81=a90_0x235d();let _0x271d4f=_0x235d81[_0x6d0481];return _0x271d4f;}export function isCliProtectedConfigKey(_0x4a9f12){return CLI_PROTECTED_CONFIG_KEYS['has'](_0x4a9f12);}const LOCALE_MAP={'zh':a90_0xb28c3(0x1bb),'zh-cn':a90_0xb28c3(0x1bb),'zh_cn':a90_0xb28c3(0x1bb),'en':a90_0xb28c3(0x1cc),'en-us':a90_0xb28c3(0x1cc),'en_us':a90_0xb28c3(0x1cc)};export function normalizeLocale(_0xd6f3a){const _0x3c5ae7=a90_0xb28c3;if(!_0xd6f3a)return null;return LOCALE_MAP[_0xd6f3a[_0x3c5ae7(0x1b2)]()]??null;}export function isLegacyCompatConfigKey(_0x522e3a){const _0x587b2f=a90_0xb28c3;return getConfigFieldSchema(_0x522e3a)?.[_0x587b2f(0x1c5)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1aa735){return[..._0x1aa735]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4debf7=a90_0xb28c3;return _0x4debf7(0x1b1)+getTopLevelConfigKeySummary()+_0x4debf7(0x1ab);}export function buildAppProfileListFields(_0x1b426c){return{'env':_0x1b426c,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a91_0x16b7(_0x2a9942,_0x2b0ce7){_0x2a9942=_0x2a9942-0x1b6;const _0x49b2e0=a91_0x49b2();let _0x16b704=_0x49b2e0[_0x2a9942];return _0x16b704;}function a91_0x49b2(){const _0x5b6858=['11ybdYIU','2628890KdfePe','PUBLISHED','1935SUgmOx','19456iqmzbb','5244936VAvQwy','269134bgmYXP','Published','2nEzAFX','1426617GJdLqh','2199VQQrBr','UNPUBLISH','4434hDoFZM','1668vJQdDi','455TGqeoi'];a91_0x49b2=function(){return _0x5b6858;};return a91_0x49b2();}const a91_0xd5ff09=a91_0x16b7;(function(_0xfb53f0,_0x50ebe9){const _0x47d14e=a91_0x16b7,_0x34c5ac=_0xfb53f0();while(!![]){try{const _0x1aaf90=-parseInt(_0x47d14e(0x1c2))/0x1*(-parseInt(_0x47d14e(0x1c0))/0x2)+-parseInt(_0x47d14e(0x1c4))/0x3*(parseInt(_0x47d14e(0x1b8))/0x4)+-parseInt(_0x47d14e(0x1bd))/0x5*(parseInt(_0x47d14e(0x1b7))/0x6)+parseInt(_0x47d14e(0x1b9))/0x7*(parseInt(_0x47d14e(0x1be))/0x8)+parseInt(_0x47d14e(0x1c3))/0x9+parseInt(_0x47d14e(0x1bb))/0xa*(-parseInt(_0x47d14e(0x1ba))/0xb)+parseInt(_0x47d14e(0x1bf))/0xc;if(_0x1aaf90===_0x50ebe9)break;else _0x34c5ac['push'](_0x34c5ac['shift']());}catch(_0x4bdef3){_0x34c5ac['push'](_0x34c5ac['shift']());}}}(a91_0x49b2,0x29146));export const APP_PUBLISH_STATUS={'Published':a91_0xd5ff09(0x1bc),'Unpublished':a91_0xd5ff09(0x1b6)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a91_0xd5ff09(0x1c1)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a92_0x27b9b6=a92_0x1f77;function a92_0x1f77(_0x3d89d7,_0x23e5d9){_0x3d89d7=_0x3d89d7-0x186;const _0x3163e0=a92_0x3163();let _0x1f77a2=_0x3163e0[_0x3d89d7];return _0x1f77a2;}function a92_0x3163(){const _0x4cbc63=['1946520eCejhp','3019161MeVAPk','31221sGdpiK','1894394FzDTVZ','client-ak','21QrljmN','2170UBWyrL','152trPwNE','1291196VtFZcY','ClientAk','35bIxnqR','81235pvOALA','682828LJTxNU'];a92_0x3163=function(){return _0x4cbc63;};return a92_0x3163();}(function(_0x38dc5d,_0x53f4cb){const _0x4d08ba=a92_0x1f77,_0x12b9b0=_0x38dc5d();while(!![]){try{const _0x177b37=parseInt(_0x4d08ba(0x186))/0x1+-parseInt(_0x4d08ba(0x18e))/0x2+-parseInt(_0x4d08ba(0x18c))/0x3+-parseInt(_0x4d08ba(0x18a))/0x4*(parseInt(_0x4d08ba(0x188))/0x5)+-parseInt(_0x4d08ba(0x18b))/0x6*(-parseInt(_0x4d08ba(0x190))/0x7)+-parseInt(_0x4d08ba(0x192))/0x8*(parseInt(_0x4d08ba(0x18d))/0x9)+-parseInt(_0x4d08ba(0x191))/0xa*(-parseInt(_0x4d08ba(0x189))/0xb);if(_0x177b37===_0x53f4cb)break;else _0x12b9b0['push'](_0x12b9b0['shift']());}catch(_0x5553c4){_0x12b9b0['push'](_0x12b9b0['shift']());}}}(a92_0x3163,0x9f50d));export const AUTH_MODE={'ClientAk':a92_0x27b9b6(0x18f)};export function isAuthMode(_0x3d66e3){const _0xf8eaf8=a92_0x27b9b6;return _0x3d66e3===AUTH_MODE[_0xf8eaf8(0x187)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x4d36b4=a93_0x519d;(function(_0x1cba42,_0x1cef0c){const _0x12ce3e=a93_0x519d,_0x5e8f39=_0x1cba42();while(!![]){try{const _0x5622db=parseInt(_0x12ce3e(0x1a7))/0x1+parseInt(_0x12ce3e(0x1ae))/0x2*(-parseInt(_0x12ce3e(0x1a1))/0x3)+parseInt(_0x12ce3e(0x1a3))/0x4*(parseInt(_0x12ce3e(0x19b))/0x5)+-parseInt(_0x12ce3e(0x19e))/0x6*(-parseInt(_0x12ce3e(0x1a0))/0x7)+parseInt(_0x12ce3e(0x1ab))/0x8*(-parseInt(_0x12ce3e(0x197))/0x9)+parseInt(_0x12ce3e(0x1a2))/0xa*(parseInt(_0x12ce3e(0x19d))/0xb)+-parseInt(_0x12ce3e(0x18f))/0xc;if(_0x5622db===_0x1cef0c)break;else _0x5e8f39['push'](_0x5e8f39['shift']());}catch(_0x47d53b){_0x5e8f39['push'](_0x5e8f39['shift']());}}}(a93_0x123d,0xa38af));function a93_0x123d(){const _0x281b0e=['app','2918556arNCss','yes','fromEntries','non-interactive','708835soLgjn','Environment','11FIJGXC','11586RtzbOg','<code>','1169VWJuji','658263nIWbvC','1831180uHcybQ','36EZnrFc','Record\x20ID','json\x20|\x20pretty\x20|\x20compress','Use\x20global\x20config\x20scope','630125YrOSwY','<expr>','<name>','boolean','8pudYRk','Preview\x20operation\x20without\x20executing','dryRun','6ZgLEIg','appcode','params','env','string','format','sqlcode','Name\x20filter','name','help','Select\x20app\x20profile\x20by\x20name','Alias\x20for\x20--non-interactive','production\x20|\x20development\x20|\x20daily','dry-run','type','9110460iNzwMf','global','Clear\x20output','map','verbose','Show\x20help','JSON\x20params\x20for\x20execute\x20commands'];a93_0x123d=function(){return _0x281b0e;};return a93_0x123d();}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['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;function a93_0x519d(_0x1515ff,_0x8930a6){_0x1515ff=_0x1515ff-0x186;const _0x123d05=a93_0x123d();let _0x519d79=_0x123d05[_0x1515ff];return _0x519d79;}export const GLOBAL_FLAGS=[{'name':a93_0x4d36b4(0x1af),'meowKey':a93_0x4d36b4(0x1af),'type':a93_0x4d36b4(0x1b2),'description':'Override\x20appcode','hint':a93_0x4d36b4(0x19f)},{'name':a93_0x4d36b4(0x196),'meowKey':'app','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x18a),'hint':a93_0x4d36b4(0x1a9)},{'name':'env','meowKey':a93_0x4d36b4(0x1b1),'type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x19c),'hint':a93_0x4d36b4(0x18c)},{'name':a93_0x4d36b4(0x1b3),'meowKey':'format','type':a93_0x4d36b4(0x1b2),'description':'Output\x20format','hint':a93_0x4d36b4(0x1a5)},{'name':'jq','meowKey':'jq','type':a93_0x4d36b4(0x1b2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a93_0x4d36b4(0x1a8)},{'name':a93_0x4d36b4(0x18d),'meowKey':a93_0x4d36b4(0x1ad),'type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x1ac)},{'name':a93_0x4d36b4(0x198),'meowKey':a93_0x4d36b4(0x198),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a93_0x4d36b4(0x19a),'meowKey':'nonInteractive','type':a93_0x4d36b4(0x1aa),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a93_0x4d36b4(0x190),'type':'boolean','description':a93_0x4d36b4(0x1a6)},{'name':'ci','meowKey':'ci','type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x18b),'hidden':!![]},{'name':'help','meowKey':a93_0x4d36b4(0x189),'type':a93_0x4d36b4(0x1aa),'description':a93_0x4d36b4(0x194)},{'name':'id','meowKey':'id','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x1a4),'hidden':!![]},{'name':a93_0x4d36b4(0x188),'meowKey':'name','type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x187),'hidden':!![]},{'name':'sqlcode','meowKey':a93_0x4d36b4(0x186),'type':a93_0x4d36b4(0x1b2),'description':'SQL\x20query\x20code','hidden':!![]},{'name':'params','meowKey':a93_0x4d36b4(0x1b0),'type':a93_0x4d36b4(0x1b2),'description':a93_0x4d36b4(0x195),'hidden':!![]},{'name':a93_0x4d36b4(0x193),'meowKey':a93_0x4d36b4(0x193),'type':a93_0x4d36b4(0x1aa),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':'clear','type':'boolean','description':a93_0x4d36b4(0x191),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a93_0x4d36b4(0x1b3),'jq','dry-run',a93_0x4d36b4(0x198),'non-interactive','ci']);export function buildMeowFlags(){const _0x4e5e6e=a93_0x4d36b4;return Object[_0x4e5e6e(0x199)](GLOBAL_FLAGS[_0x4e5e6e(0x192)](_0x4be8d0=>[_0x4be8d0['meowKey'],{'type':_0x4be8d0[_0x4e5e6e(0x18e)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a94_0x2dbdfe=a94_0x1631;function a94_0x1631(_0x9a074f,_0x35c65a){_0x9a074f=_0x9a074f-0xf1;const _0x55fbb9=a94_0x55fb();let _0x1631d5=_0x55fbb9[_0x9a074f];return _0x1631d5;}(function(_0x1a7a5b,_0x381a1a){const _0x22794b=a94_0x1631,_0x58f502=_0x1a7a5b();while(!![]){try{const _0x41af87=-parseInt(_0x22794b(0xfe))/0x1+-parseInt(_0x22794b(0xf6))/0x2+parseInt(_0x22794b(0xf3))/0x3+-parseInt(_0x22794b(0xfd))/0x4*(parseInt(_0x22794b(0xf5))/0x5)+parseInt(_0x22794b(0xf7))/0x6*(-parseInt(_0x22794b(0xf9))/0x7)+parseInt(_0x22794b(0xf4))/0x8*(parseInt(_0x22794b(0xf2))/0x9)+parseInt(_0x22794b(0xfa))/0xa;if(_0x41af87===_0x381a1a)break;else _0x58f502['push'](_0x58f502['shift']());}catch(_0x41be10){_0x58f502['push'](_0x58f502['shift']());}}}(a94_0x55fb,0xc7fac));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a94_0x2dbdfe(0xfc),'format':a94_0x2dbdfe(0xf1),'locale':a94_0x2dbdfe(0xfb),'riskLevel':a94_0x2dbdfe(0xf8)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a94_0x55fb(){const _0x51507b=['write','9737938AFCazT','43175370TniWTH','en-US','production','1821892TVHCZB','547373ejUMWv','compress','1118781fEZRlH','680523aVyRuw','32eqiRwH','15ymbjIS','1835144mFnCUK','6IKnmeH'];a94_0x55fb=function(){return _0x51507b;};return a94_0x55fb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0xfd07f8=a95_0x4582;(function(_0x34a33e,_0x51edee){const _0x24a866=a95_0x4582,_0x4e5ce0=_0x34a33e();while(!![]){try{const _0x3be911=parseInt(_0x24a866(0x10a))/0x1+parseInt(_0x24a866(0x105))/0x2*(-parseInt(_0x24a866(0x101))/0x3)+-parseInt(_0x24a866(0x106))/0x4+-parseInt(_0x24a866(0x100))/0x5+parseInt(_0x24a866(0x103))/0x6+parseInt(_0x24a866(0x10c))/0x7*(parseInt(_0x24a866(0x102))/0x8)+-parseInt(_0x24a866(0x104))/0x9*(-parseInt(_0x24a866(0x109))/0xa);if(_0x3be911===_0x51edee)break;else _0x4e5ce0['push'](_0x4e5ce0['shift']());}catch(_0x2899bb){_0x4e5ce0['push'](_0x4e5ce0['shift']());}}}(a95_0x3906,0xbcaa8));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a95_0xfd07f8(0x108)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a95_0xfd07f8(0x107)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a95_0xfd07f8(0x10b);function a95_0x4582(_0xccae40,_0x2b0e2c){_0xccae40=_0xccae40-0x100;const _0x390629=a95_0x3906();let _0x458257=_0x390629[_0xccae40];return _0x458257;}function a95_0x3906(){const _0x43da4f=['3496000gyiQRC','npmRegistryBaseUrl','skillSource','37430cUmscZ','307111khEkNB','/dist/lovrabet-cli/config/index.json','42763GiILON','6244690SjugvT','261FjCUpb','1304NnqCSA','8407842zaVLCQ','2538EvauAq','19862FzsRUR'];a95_0x3906=function(){return _0x43da4f;};return a95_0x3906();}
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export declare function initDomains(domains?: {
|
|
|
30
30
|
userDomain?: string;
|
|
31
31
|
runtimeDomain?: string;
|
|
32
32
|
skillDomain?: string;
|
|
33
|
+
kbServiceDomain?: string;
|
|
34
|
+
allowOfficialKbServiceDefault?: boolean;
|
|
33
35
|
region?: LovrabetRegion;
|
|
34
36
|
}): void;
|
|
35
37
|
/**
|
|
@@ -59,3 +61,5 @@ export declare const getRuntimeDomain: () => string;
|
|
|
59
61
|
* Returns the SkillHub domain used by native Skill management APIs.
|
|
60
62
|
*/
|
|
61
63
|
export declare const getSkillDomain: () => string;
|
|
64
|
+
/** Returns the independently routed KB Service origin, when configured. */
|
|
65
|
+
export declare const getKbServiceDomain: () => string | undefined;
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x19bc22=a96_0x65e9;(function(_0x366420,_0x4204ee){const _0x77ec9e=a96_0x65e9,_0x455aae=_0x366420();while(!![]){try{const _0x2cf8cc=parseInt(_0x77ec9e(0xf4))/0x1*(parseInt(_0x77ec9e(0xf9))/0x2)+-parseInt(_0x77ec9e(0xfd))/0x3+-parseInt(_0x77ec9e(0xee))/0x4+-parseInt(_0x77ec9e(0xf7))/0x5+-parseInt(_0x77ec9e(0xf6))/0x6+parseInt(_0x77ec9e(0xfa))/0x7*(parseInt(_0x77ec9e(0x100))/0x8)+parseInt(_0x77ec9e(0xfb))/0x9;if(_0x2cf8cc===_0x4204ee)break;else _0x455aae['push'](_0x455aae['shift']());}catch(_0x18ef3d){_0x455aae['push'](_0x455aae['shift']());}}}(a96_0x2806,0x616b6));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a96_0x65e9(_0x1b82bb,_0x7dcb2){_0x1b82bb=_0x1b82bb-0xed;const _0x280643=a96_0x2806();let _0x65e958=_0x280643[_0x1b82bb];return _0x65e958;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x1a9c2d){const _0x28841b=a96_0x65e9;customApiDomain=_0x1a9c2d?.[_0x28841b(0xed)],customUserDomain=_0x1a9c2d?.[_0x28841b(0xfe)],customRuntimeDomain=_0x1a9c2d?.['runtimeDomain'],customSkillDomain=_0x1a9c2d?.[_0x28841b(0xf3)],customKbServiceDomain=_0x1a9c2d?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x1a9c2d?.[_0x28841b(0xfc)]??!![],activeRegion=_0x1a9c2d?.[_0x28841b(0xf8)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x1a95ff=a96_0x65e9,_0x438a6c=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x1a95ff(0xff)];return isProduction(getEnv())?_0x438a6c['production']:_0x1a95ff(0xf0)in _0x438a6c?_0x438a6c[_0x1a95ff(0xf0)]:_0x438a6c['production'];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a96_0x19bc22(0xf5)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a96_0x19bc22(0xf2)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a96_0x19bc22(0xf1)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbServiceDomain=()=>{const _0x413813=a96_0x19bc22;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x342fa3=getActiveRegionDomains();return _0x413813(0xef)in _0x342fa3?_0x342fa3['kbService']:undefined;};function a96_0x2806(){const _0x2f9aa7=['apiDomain','2218132pgNBFS','kbService','daily','runtime','api','skillDomain','328602YdAJNW','user','1416WGFvOj','2315605Yvwcvp','region','4IhKUPf','2594753YchYba','3534165NadITK','allowOfficialKbServiceDefault','1122981xATKvG','userDomain','serviceDomains','16zdmycl'];a96_0x2806=function(){return _0x2f9aa7;};return a96_0x2806();}
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x53835e=a97_0x336b;(function(_0x545558,_0x1dd5e3){const _0x1d5341=a97_0x336b,_0x250ec2=_0x545558();while(!![]){try{const _0x49a147=-parseInt(_0x1d5341(0xbb))/0x1+-parseInt(_0x1d5341(0xb0))/0x2+-parseInt(_0x1d5341(0xb8))/0x3*(parseInt(_0x1d5341(0xba))/0x4)+-parseInt(_0x1d5341(0xb5))/0x5+-parseInt(_0x1d5341(0xbc))/0x6*(parseInt(_0x1d5341(0xb2))/0x7)+parseInt(_0x1d5341(0xb4))/0x8+-parseInt(_0x1d5341(0xaf))/0x9*(-parseInt(_0x1d5341(0xb1))/0xa);if(_0x49a147===_0x1dd5e3)break;else _0x250ec2['push'](_0x250ec2['shift']());}catch(_0x2dfa72){_0x250ec2['push'](_0x250ec2['shift']());}}}(a97_0x38f5,0xd9b19));function a97_0x336b(_0xbc51ab,_0x54e9fc){_0xbc51ab=_0xbc51ab-0xaf;const _0x38f513=a97_0x38f5();let _0x336b03=_0x38f513[_0xbc51ab];return _0x336b03;}function a97_0x38f5(){const _0x3a515e=['1776aGDgTL','dev','151974oiZbWU','3445248kGufYu','2370uzZnQm','15211vGcSBh','daily','932848XKnryS','1349945yekhYu','production','development','93dMtpth','online','16884BtpVzD','460243WyoxdP'];a97_0x38f5=function(){return _0x3a515e;};return a97_0x38f5();}import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a97_0x53835e(0xb6),a97_0x53835e(0xb7),a97_0x53835e(0xb3)];export function normalizeEnv(_0xd4878f){const _0x3e75e0=a97_0x53835e;return _0xd4878f===_0x3e75e0(0xb9)?_0x3e75e0(0xb6):_0xd4878f;}export function isProduction(_0xf8b310){const _0x311eb8=a97_0x53835e;return normalizeEnv(_0xf8b310)===_0x311eb8(0xb6);}export function isDaily(_0x4f0986){const _0x5c60b9=a97_0x53835e;return normalizeEnv(_0x4f0986)===_0x5c60b9(0xb3);}export function isDev(_0x1a0d7b){const _0x4a190e=a97_0x53835e,_0x8a1576=normalizeEnv(_0x1a0d7b);return _0x8a1576==='development'||_0x8a1576===_0x4a190e(0xbd);}let env=normalizeEnv(productEnv('ENV')||'production');export function getEnv(){return env;}export function initEnv(_0xe7fc56){env=normalizeEnv(_0xe7fc56);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a98_0x7d1686=a98_0x2d50;(function(_0x52bc3b,_0x383d54){const _0x15e857=a98_0x2d50,_0x5f3f39=_0x52bc3b();while(!![]){try{const _0x6e6ba2=-parseInt(_0x15e857(0x125))/0x1*(-parseInt(_0x15e857(0x128))/0x2)+-parseInt(_0x15e857(0x124))/0x3+-parseInt(_0x15e857(0x127))/0x4+parseInt(_0x15e857(0x12c))/0x5+parseInt(_0x15e857(0x12a))/0x6+-parseInt(_0x15e857(0x129))/0x7+-parseInt(_0x15e857(0x12d))/0x8*(-parseInt(_0x15e857(0x12b))/0x9);if(_0x6e6ba2===_0x383d54)break;else _0x5f3f39['push'](_0x5f3f39['shift']());}catch(_0x5ce6b0){_0x5f3f39['push'](_0x5f3f39['shift']());}}}(a98_0x445a,0x93ebe));function a98_0x2d50(_0x401c98,_0x1bb5a4){_0x401c98=_0x401c98-0x124;const _0x445a94=a98_0x445a();let _0x2d503b=_0x445a94[_0x401c98];return _0x2d503b;}export const OUTPUT_FORMAT_VALUES=['json',a98_0x7d1686(0x126),a98_0x7d1686(0x12e)];function a98_0x445a(){const _0x55a349=['330472NLdhhw','compress','1239864KYrFMj','104HDiTSn','pretty','4766980FNuxWU','5738nzXYYJ','7607404pcKaak','6603078xgrpLt','342xKMECL','1645300KtFtHj'];a98_0x445a=function(){return _0x55a349;};return a98_0x445a();}
|