@lovrabet/lovrabet-cli 2.3.0-beta.2 → 2.3.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/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.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/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/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.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/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x41eecf=a114_0x48c2;(function(_0x1428b4,_0x1ef297){const _0x438af2=a114_0x48c2,_0x227d1d=_0x1428b4();while(!![]){try{const _0x1e084e=parseInt(_0x438af2(0x18a))/0x1+-parseInt(_0x438af2(0x18d))/0x2+-parseInt(_0x438af2(0x196))/0x3+parseInt(_0x438af2(0x1a1))/0x4+parseInt(_0x438af2(0x19f))/0x5+parseInt(_0x438af2(0x194))/0x6+parseInt(_0x438af2(0x18f))/0x7*(parseInt(_0x438af2(0x193))/0x8);if(_0x1e084e===_0x1ef297)break;else _0x227d1d['push'](_0x227d1d['shift']());}catch(_0x3e9c8c){_0x227d1d['push'](_0x227d1d['shift']());}}}(a114_0x108e,0x794ae));function a114_0x48c2(_0x25c99b,_0x38f12b){_0x25c99b=_0x25c99b-0x185;const _0x108efe=a114_0x108e();let _0x48c23a=_0x108efe[_0x25c99b];return _0x48c23a;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a114_0x41eecf(0x190),a114_0x41eecf(0x1a0)]);function nonEmptyString(_0x2b7141){const _0x3abb0b=a114_0x41eecf;if(typeof _0x2b7141!==_0x3abb0b(0x187))return undefined;const _0x122a4e=_0x2b7141[_0x3abb0b(0x19b)]();return _0x122a4e||undefined;}function a114_0x108e(){const _0x11b485=['trim','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Retry\x20after\x20','call','226870LIcUgX','IP_RATE_LIMIT_EXCEEDED','2124220ZYwmDa','retryAfterSeconds','retry-after','test','rateLimited','string','toLowerCase','object','257956maDGvt','Wait\x20','entries','591342WadoAU','number','78267YYhiEe','MAX_QPS_LIMIT','message','retryAfter','360IuThjY','65046fPXDOt','get','1667658vwRPEo','Retry\x20after\x20a\x20short\x20delay.','\x20seconds\x20before\x20retrying.','toUpperCase','status'];a114_0x108e=function(){return _0x11b485;};return a114_0x108e();}function buildRetryHint(_0x35fa95){const _0x59bf85=a114_0x41eecf,_0x51f39d=nonEmptyString(_0x35fa95),_0x1f5061=_0x51f39d?/^\d+$/['test'](_0x51f39d)?_0x59bf85(0x18b)+_0x51f39d+_0x59bf85(0x198):_0x59bf85(0x19d)+_0x51f39d+'.':_0x59bf85(0x197);return _0x1f5061+_0x59bf85(0x19c);}export function createRateLimitError(_0x43a11){const _0x2a7d78=a114_0x41eecf,_0x58a601=nonEmptyString(_0x43a11['errorCode'])?.[_0x2a7d78(0x199)](),_0x4eac96=Number(_0x43a11[_0x2a7d78(0x19a)])===0x1ad||_0x58a601!==undefined&&RATE_LIMIT_ERROR_CODES['has'](_0x58a601);if(!_0x4eac96)return undefined;return CliErrors[_0x2a7d78(0x186)](nonEmptyString(_0x43a11[_0x2a7d78(0x191)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x43a11[_0x2a7d78(0x192)]));}export function readRetryAfter(_0x5892c4){const _0x14887a=a114_0x41eecf;if(!_0x5892c4||typeof _0x5892c4!==_0x14887a(0x189))return undefined;const _0x2bcc2e=_0x5892c4[_0x14887a(0x195)];if(typeof _0x2bcc2e==='function'){const _0xbc9c83=_0x2bcc2e[_0x14887a(0x19e)](_0x5892c4,'Retry-After')??_0x2bcc2e['call'](_0x5892c4,_0x14887a(0x1a3));return nonEmptyString(_0xbc9c83);}for(const [_0x32e4da,_0x24902f]of Object[_0x14887a(0x18c)](_0x5892c4)){if(_0x32e4da[_0x14887a(0x188)]()===_0x14887a(0x1a3))return nonEmptyString(_0x24902f)??(typeof _0x24902f===_0x14887a(0x18e)?String(_0x24902f):undefined);}return undefined;}export function readRetryAfterSeconds(_0x164044){const _0xf5e049=a114_0x41eecf;if(!_0x164044||typeof _0x164044!=='object'||Array['isArray'](_0x164044))return undefined;const _0x1eef90=_0x164044[_0xf5e049(0x1a2)];if(typeof _0x1eef90===_0xf5e049(0x18e))return Number['isInteger'](_0x1eef90)&&_0x1eef90>=0x0?String(_0x1eef90):undefined;const _0xed5c56=nonEmptyString(_0x1eef90);return _0xed5c56&&/^\d+$/[_0xf5e049(0x185)](_0xed5c56)?_0xed5c56:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115_0x114f96=a115_0x8ca7;(function(_0x1f37a7,_0x567ad2){const _0x1ea397=a115_0x8ca7,_0x3715d3=_0x1f37a7();while(!![]){try{const _0x42fd0a=-parseInt(_0x1ea397(0x184))/0x1*(-parseInt(_0x1ea397(0x175))/0x2)+parseInt(_0x1ea397(0x172))/0x3*(parseInt(_0x1ea397(0x17d))/0x4)+parseInt(_0x1ea397(0x190))/0x5+parseInt(_0x1ea397(0x180))/0x6*(-parseInt(_0x1ea397(0x17a))/0x7)+-parseInt(_0x1ea397(0x17e))/0x8+-parseInt(_0x1ea397(0x16f))/0x9+parseInt(_0x1ea397(0x171))/0xa;if(_0x42fd0a===_0x567ad2)break;else _0x3715d3['push'](_0x3715d3['shift']());}catch(_0x33a275){_0x3715d3['push'](_0x3715d3['shift']());}}}(a115_0x416f,0x3a304));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a115_0x8ca7(_0x10c5bc,_0x3c6730){_0x10c5bc=_0x10c5bc-0x169;const _0x416f3b=a115_0x416f();let _0x8ca72d=_0x416f3b[_0x10c5bc];return _0x8ca72d;}const FILTER_BODY_FIELDS=new Set([a115_0x114f96(0x17b),a115_0x114f96(0x176),a115_0x114f96(0x182),a115_0x114f96(0x173),a115_0x114f96(0x174),a115_0x114f96(0x189),a115_0x114f96(0x17c),a115_0x114f96(0x177),'pagesize']);function a115_0x416f(){const _0x4a5b11=['Unknown\x20flag\x20--','service','3247092RzjTqC','\x20data\x20filter`.','1296280HspQyC','35556fGnvaC','orderby','current-page','30lEltat','select','page-size','name','stringify','1519pRoDXr','where','page','76soOqLW','1766928zoOcSC','Example:\x20','1338eenYyR','Run\x20`','order-by','validation','5479jprcAP','active','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','asc','entries','currentpage','version','has','no-','add','\x20for\x20`','meowKey','2156920XqCmTt','data','command','filter','flags','\x20--help`\x20to\x20see\x20accepted\x20flags.'];a115_0x416f=function(){return _0x4a5b11;};return a115_0x416f();}export function assertKnownCommandFlags(_0x5d8e5f,_0x4f3e30){const _0x4ea581=a115_0x114f96,_0x5c10f1=new Set([_0x4ea581(0x18a)]);for(const _0x4b88c1 of GLOBAL_FLAGS){_0x5c10f1['add'](_0x4b88c1[_0x4ea581(0x178)]),_0x5c10f1[_0x4ea581(0x18d)](toKebab(_0x4b88c1[_0x4ea581(0x18f)]));}for(const _0x380e39 of _0x5d8e5f[_0x4ea581(0x16b)]??[]){_0x5c10f1['add'](_0x380e39[_0x4ea581(0x178)]);}for(const [_0x4c9caa,_0x47bcb6]of Object[_0x4ea581(0x188)](_0x4f3e30)){const _0x4bc58d=toKebab(_0x4c9caa);if(_0x5c10f1['has'](_0x4bc58d))continue;if(_0x47bcb6===![]&&_0x5c10f1['has'](_0x4ea581(0x18c)+_0x4bc58d))continue;if(_0x5d8e5f['service']===_0x4ea581(0x191)&&_0x5d8e5f[_0x4ea581(0x169)]===_0x4ea581(0x16a)&&FILTER_BODY_FIELDS[_0x4ea581(0x18b)](_0x4bc58d))throw CliErrors[_0x4ea581(0x183)]('--'+_0x4bc58d+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x4ea581(0x170),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x4ea581(0x17f)+CLI_BIN_NAME+_0x4ea581(0x186))+('\x27'+JSON[_0x4ea581(0x179)]({'where':{'status':{'$eq':_0x4ea581(0x185)}},'orderBy':[{'id':_0x4ea581(0x187)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x4ea581(0x183)](_0x4ea581(0x16d)+_0x4bc58d+_0x4ea581(0x18e)+CLI_BIN_NAME+'\x20'+_0x5d8e5f['service']+'\x20'+_0x5d8e5f[_0x4ea581(0x169)]+'`.',_0x4ea581(0x181)+CLI_BIN_NAME+'\x20'+_0x5d8e5f[_0x4ea581(0x16e)]+'\x20'+_0x5d8e5f[_0x4ea581(0x169)]+_0x4ea581(0x16c));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a116_0x4692(_0x2af679,_0x78ee7c){_0x2af679=_0x2af679-0xcf;var _0x276360=a116_0x2763();var _0x4692ca=_0x276360[_0x2af679];return _0x4692ca;}(function(_0x12f9c3,_0x49d705){var _0x348698=a116_0x4692,_0x130af7=_0x12f9c3();while(!![]){try{var _0x1e8a22=parseInt(_0x348698(0xd6))/0x1*(parseInt(_0x348698(0xd8))/0x2)+parseInt(_0x348698(0xcf))/0x3*(-parseInt(_0x348698(0xd5))/0x4)+-parseInt(_0x348698(0xd2))/0x5+-parseInt(_0x348698(0xd4))/0x6+-parseInt(_0x348698(0xd0))/0x7+parseInt(_0x348698(0xd7))/0x8*(-parseInt(_0x348698(0xd3))/0x9)+parseInt(_0x348698(0xd1))/0xa;if(_0x1e8a22===_0x49d705)break;else _0x130af7['push'](_0x130af7['shift']());}catch(_0x512096){_0x130af7['push'](_0x130af7['shift']());}}}(a116_0x2763,0x2014b));function a116_0x2763(){var _0x682543=['1177047aMvMTy','1514064lxInuV','408316NzxrNk','30GJBppH','16HQfoOt','5078mGtWAe','3pgIRBy','1077503fTOenl','10018210nSpBEq','883350jVXuve'];a116_0x2763=function(){return _0x682543;};return a116_0x2763();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6b42b5,_0x1edc06){const _0x23c37a=a117_0x11a9,_0x46cebc=_0x6b42b5();while(!![]){try{const _0x17ab71=-parseInt(_0x23c37a(0x180))/0x1*(-parseInt(_0x23c37a(0x16e))/0x2)+-parseInt(_0x23c37a(0x172))/0x3*(parseInt(_0x23c37a(0x165))/0x4)+-parseInt(_0x23c37a(0x170))/0x5*(parseInt(_0x23c37a(0x17b))/0x6)+parseInt(_0x23c37a(0x168))/0x7*(parseInt(_0x23c37a(0x166))/0x8)+parseInt(_0x23c37a(0x16f))/0x9+parseInt(_0x23c37a(0x15d))/0xa+-parseInt(_0x23c37a(0x179))/0xb;if(_0x17ab71===_0x1edc06)break;else _0x46cebc['push'](_0x46cebc['shift']());}catch(_0x3fb68a){_0x46cebc['push'](_0x46cebc['shift']());}}}(a117_0x502d,0x9f0af));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x13c164,_0x382879,_0x21bf8a){const _0x1800b9=a117_0x11a9,_0x4c7981=buildConfirmationContext(_0x13c164,_0x382879,_0x21bf8a),_0x2db679=[_0x1800b9(0x16c)+_0x4c7981['commandLabel']];return _0x4c7981[_0x1800b9(0x169)]&&_0x2db679[_0x1800b9(0x17d)]('\x20\x20\x20'+_0x4c7981['description']),_0x4c7981[_0x1800b9(0x182)]&&_0x2db679[_0x1800b9(0x17d)](_0x1800b9(0x174)+_0x4c7981[_0x1800b9(0x182)]),_0x2db679[_0x1800b9(0x17d)](_0x1800b9(0x175)),_0x2db679;}function a117_0x11a9(_0x27bbee,_0x29e2bf){_0x27bbee=_0x27bbee-0x15d;const _0x502d6a=a117_0x502d();let _0x11a986=_0x502d6a[_0x27bbee];return _0x11a986;}function a117_0x502d(){const _0xc43721=['channel=','3ZpCfEz','command','\x20\x20\x20Affected:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','name','title','code','6558233hRMXJu','service','30TpMhUP','code=','push','scheduled-at=','cron','23EBInXi','title=','affectedRecords','schedule-id','3603170TMqwhs','entries','cron=','kind','stringify','join','length','id=','4437308wdKPJA','2744dswIWK','params','26495ExxvDF','description','params=','scheduled-at','⚠\x20\x20High-risk\x20operation:\x20','channel','16270UAwdwc','5410053kZnQLR','89825QboLSi'];a117_0x502d=function(){return _0xc43721;};return a117_0x502d();}export function reconstructCommandArgv(_0x1197d7,_0x1c0fd8){const _0x438598=a117_0x11a9,_0x5d0373=[CLI_BIN_NAME,_0x1197d7[_0x438598(0x17a)],_0x1197d7[_0x438598(0x173)]];for(const [_0x3dabbe,_0x99a469]of Object[_0x438598(0x15e)](_0x1c0fd8)){if(_0x99a469===!![])_0x5d0373['push']('--'+_0x3dabbe);else _0x99a469!==![]&&_0x99a469!==undefined&&_0x99a469!==''&&_0x5d0373[_0x438598(0x17d)]('--'+_0x3dabbe+'\x20'+JSON[_0x438598(0x161)](_0x99a469));}return _0x5d0373[_0x438598(0x17d)]('--yes'),_0x5d0373[_0x438598(0x162)]('\x20');}function buildConfirmationContext(_0xf8ff91,_0xf82cec,_0x5283b9){const _0x469026=a117_0x11a9,_0x4f3244=extractAffectedRecords(_0x5283b9);return{'commandLabel':_0xf82cec,'description':_0xf8ff91[_0x469026(0x169)],'affectedRecords':_0x4f3244};}function extractAffectedRecords(_0x212cd2){const _0x44e31c=a117_0x11a9,_0x5070d1=[];if(_0x212cd2[_0x44e31c(0x178)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x17c)+_0x212cd2[_0x44e31c(0x178)]);if(_0x212cd2['id'])_0x5070d1['push'](_0x44e31c(0x164)+_0x212cd2['id']);if(_0x212cd2[_0x44e31c(0x183)])_0x5070d1[_0x44e31c(0x17d)]('schedule-id='+_0x212cd2['schedule-id']);if(_0x212cd2['name'])_0x5070d1['push']('name='+_0x212cd2[_0x44e31c(0x176)]);if(_0x212cd2['title'])_0x5070d1['push'](_0x44e31c(0x181)+_0x212cd2[_0x44e31c(0x177)]);if(_0x212cd2[_0x44e31c(0x160)])_0x5070d1[_0x44e31c(0x17d)]('kind='+_0x212cd2[_0x44e31c(0x160)]);if(_0x212cd2[_0x44e31c(0x17f)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x15f)+_0x212cd2[_0x44e31c(0x17f)]);if(_0x212cd2[_0x44e31c(0x16b)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x17e)+_0x212cd2[_0x44e31c(0x16b)]);if(_0x212cd2['channel'])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x171)+_0x212cd2[_0x44e31c(0x16d)]);if(_0x212cd2[_0x44e31c(0x167)])_0x5070d1[_0x44e31c(0x17d)](_0x44e31c(0x16a)+_0x212cd2[_0x44e31c(0x167)]);return _0x5070d1[_0x44e31c(0x163)]>0x0?_0x5070d1['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d3cc0,_0x4a1e38){const _0x503341=a118_0x4a4d,_0x43c9e3=_0x5d3cc0();while(!![]){try{const _0x53e9b6=-parseInt(_0x503341(0x1cb))/0x1+parseInt(_0x503341(0x1d2))/0x2+parseInt(_0x503341(0x1db))/0x3*(parseInt(_0x503341(0x1d1))/0x4)+parseInt(_0x503341(0x1ce))/0x5+-parseInt(_0x503341(0x1d9))/0x6+parseInt(_0x503341(0x1cc))/0x7+-parseInt(_0x503341(0x1d5))/0x8*(parseInt(_0x503341(0x1d4))/0x9);if(_0x53e9b6===_0x4a1e38)break;else _0x43c9e3['push'](_0x43c9e3['shift']());}catch(_0x3f7854){_0x43c9e3['push'](_0x43c9e3['shift']());}}}(a118_0x32ea,0x4b131));import{LovrabetError}from'@lovrabet/sdk';function a118_0x4a4d(_0xb52d4e,_0x173e9d){_0xb52d4e=_0xb52d4e-0x1cb;const _0x32ea55=a118_0x32ea();let _0x4a4d32=_0x32ea55[_0xb52d4e];return _0x4a4d32;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x1bcaab){const _0x7662eb=a118_0x4a4d;if(_0x1bcaab instanceof LovrabetError){const _0x3c616e=userFacingLovrabetMessage(_0x1bcaab),_0xcffc71=_0x1bcaab,_0x446200=createRateLimitError({'status':_0xcffc71[_0x7662eb(0x1cf)],'errorCode':_0xcffc71[_0x7662eb(0x1d0)],'message':_0x3c616e,'retryAfter':readRetryAfter(_0xcffc71[_0x7662eb(0x1d8)]?.['headers'])??readRetryAfterSeconds(_0xcffc71[_0x7662eb(0x1d8)])});return _0x446200??CliErrors[_0x7662eb(0x1cd)](_0x3c616e);}return _0x1bcaab;}function userFacingLovrabetMessage(_0x2f1f76){const _0x155ffa=a118_0x4a4d,_0x54b49b=_0x2f1f76[_0x155ffa(0x1da)];if(_0x54b49b!==undefined&&_0x54b49b!==null){if(typeof _0x54b49b===_0x155ffa(0x1d3)&&_0x54b49b[_0x155ffa(0x1d7)]())return _0x54b49b[_0x155ffa(0x1d7)]();try{return JSON[_0x155ffa(0x1d6)](_0x54b49b);}catch{}}return _0x2f1f76['message'];}function a118_0x32ea(){const _0x460edd=['description','190011bIESmn','318265acXhwN','3018561odrjUA','validation','954855VgULJV','status','code','8zEhPCk','426244ajIcZw','string','41049mXxBAf','248LLrdSt','stringify','trim','response','1168974ewSfFO'];a118_0x32ea=function(){return _0x460edd;};return a118_0x32ea();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4e93e5,_0x14a2fe){const _0x5de459=a119_0x3976,_0x2e9211=_0x4e93e5();while(!![]){try{const _0x56c1cf=-parseInt(_0x5de459(0x20c))/0x1*(parseInt(_0x5de459(0x1f2))/0x2)+parseInt(_0x5de459(0x211))/0x3+parseInt(_0x5de459(0x1f9))/0x4+-parseInt(_0x5de459(0x20f))/0x5+-parseInt(_0x5de459(0x1ea))/0x6+-parseInt(_0x5de459(0x209))/0x7+-parseInt(_0x5de459(0x1fd))/0x8*(-parseInt(_0x5de459(0x1d3))/0x9);if(_0x56c1cf===_0x14a2fe)break;else _0x2e9211['push'](_0x2e9211['shift']());}catch(_0xfdc1f1){_0x2e9211['push'](_0x2e9211['shift']());}}}(a119_0x8e84,0x86615));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x2a3bfa){return void _0x2a3bfa,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5baa7d,_0x1f2b80){const _0x534c5b=a119_0x3976,_0x46e6e6=typeof _0x1f2b80['app']==='string'&&_0x1f2b80[_0x534c5b(0x1f4)][_0x534c5b(0x208)]();return{'rawFlags':_0x1f2b80,'appCode':_0x5baa7d[_0x534c5b(0x210)]||productEnv('APPCODE')||(_0x46e6e6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5baa7d[_0x534c5b(0x204)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1f2b80),'defaultFormat':_0x5baa7d[_0x534c5b(0x1d2)],'defaultPageSize':_0x5baa7d[_0x534c5b(0x1dd)],'defaultVerbose':_0x5baa7d['verbose'],'riskLevel':_0x5baa7d[_0x534c5b(0x1e6)],'accessKey':_0x5baa7d[_0x534c5b(0x1ec)],'env':_0x5baa7d[_0x534c5b(0x1de)],'mergedCli':{'defaultApp':_0x5baa7d[_0x534c5b(0x1e7)],'currentApp':_0x5baa7d[_0x534c5b(0x1fb)],'appCode':_0x5baa7d[_0x534c5b(0x210)]}};}export function createLovrabetRunnerAdapter(_0x588fa8={}){const _0x3a20c6=a119_0x3976,_0x5dcaf8={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3a20c6(0x1e8)](_0x35a37c=>PIPELINE_FLAG_NAMES[_0x3a20c6(0x1d4)](_0x35a37c[_0x3a20c6(0x20a)]))[_0x3a20c6(0x1d8)](({name:_0x1403b3,type:_0x106dcf,description:_0x35f87f})=>({'name':_0x1403b3,'type':_0x106dcf,'description':_0x35f87f})),'formatOutput':_0x588fa8[_0x3a20c6(0x1f8)]??formatOutput,'getCommandLabel'(_0x23f808){const _0x1bcacc=_0x3a20c6;return CLI_BIN_NAME+'\x20'+_0x23f808[_0x1bcacc(0x1d9)]+'\x20'+_0x23f808['command'];},'riskPolicy':{'onViolation'(_0x364f90){console['error'](_0x364f90);},'createError'(_0x4550ee){const _0x47322b=_0x3a20c6;return CliErrors[_0x47322b(0x205)](_0x4550ee);}},async 'prepare'(_0xf915cf,_0x49059a){const _0xfa6314=_0x3a20c6,_0x3e0065=resolveAuthMode(_0x49059a);if(_0xf915cf[_0xfa6314(0x1e1)]!==![]){if(!_0x49059a[_0xfa6314(0x1ec)])throw CliErrors['authRequired'](_0xfa6314(0x1d6)+PRODUCT_CONFIG[_0xfa6314(0x1e3)]+_0xfa6314(0x1f3)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x1ec445}=await import(_0xfa6314(0x200));_0x1ec445(_0x49059a[_0xfa6314(0x1ec)]);}let _0x5b05c8='';if(_0xf915cf[_0xfa6314(0x1dc)]!==![]){_0x5b05c8=_0x49059a['appCode']??'',_0x5b05c8=await resolveExplicitAppName(_0xf915cf,_0x49059a,_0x5b05c8);if(!_0x5b05c8){await assertSelectedAppNameIsRuntimeAccessible(_0xf915cf,_0x49059a);throw CliErrors['configMissing'](_0xfa6314(0x1ee)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xf915cf,_0x49059a,_0x5b05c8);}if(_0x5b05c8){const {initSdkClient:_0x543748}=await import(_0xfa6314(0x1e9));_0x543748({'appCode':_0x5b05c8,'env':_0x49059a[_0xfa6314(0x1de)]??_0xfa6314(0x1d1),'runtimeDomain':_0x49059a['runtimeDomain'],'accessKey':_0x49059a[_0xfa6314(0x1ec)],'authMode':_0x3e0065}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x49059a[_0xfa6314(0x1f7)]},'numbers':{'pagesize':_0x49059a[_0xfa6314(0x1ed)]}},'extras':{'appCode':_0x5b05c8,'cookie':'','apiDomain':_0x49059a[_0xfa6314(0x1ef)],'apiDir':'','accessKey':_0x49059a[_0xfa6314(0x1ec)],'envName':_0x49059a[_0xfa6314(0x1de)],'mergedCli':_0x49059a[_0xfa6314(0x1e4)]}};},'confirmHighRisk':_0x588fa8[_0x3a20c6(0x1f0)]??(async({def:_0x4d54ba,env:_0x3eafd0,flags:_0x5cd41d,commandLabel:_0x2d13c1})=>{const _0x248b5d=_0x3a20c6;if(_0x3eafd0['isNonInteractive']){const _0x3e1dd6=reconstructCommandArgv(_0x4d54ba,_0x5cd41d);throw CliErrors[_0x248b5d(0x207)](_0x248b5d(0x20d)+_0x2d13c1+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x248b5d(0x1fe)+_0x3e1dd6));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4d54ba,_0x2d13c1,_0x5cd41d),'createCancelledError':_0x583fed=>CliErrors[_0x248b5d(0x205)](_0x583fed)});}),'mapDryRunError'(_0x3431e8){return mapUserFacingExecuteError(_0x3431e8);},'mapExecuteError'(_0x2a7248){return mapUserFacingExecuteError(_0x2a7248);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x5dcaf8;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a119_0x3976(_0x20eab0,_0x1da2db){_0x20eab0=_0x20eab0-0x1d1;const _0x8e8438=a119_0x8e84();let _0x39764b=_0x8e8438[_0x20eab0];return _0x39764b;}export async function finalizeLovrabetRuntimeState(){const _0x4ee84a=a119_0x3976;try{if(sdkClientInitialized){const {clearSdkClient:_0x3ef7f9}=await import(_0x4ee84a(0x1e9));_0x3ef7f9();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x54e07c}=await import(_0x4ee84a(0x200));_0x54e07c();}}async function resolveExplicitAppName(_0x53654a,_0x4f098d,_0x371c66){const _0x41506b=a119_0x3976;if(_0x53654a[_0x41506b(0x1dc)]===![])return _0x371c66;const _0x7f882e=typeof _0x4f098d['rawFlags']['app']===_0x41506b(0x1e2)?_0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1f4)][_0x41506b(0x208)]():'';if(!_0x7f882e)return _0x371c66;const _0x4f93b1=typeof _0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1d5)]===_0x41506b(0x1e2)&&_0x4f098d['rawFlags'][_0x41506b(0x1d5)][_0x41506b(0x208)]()||productEnv(_0x41506b(0x1da));if(_0x4f93b1||_0x4f098d[_0x41506b(0x204)]===_0x41506b(0x1eb))return _0x371c66;const {getRemoteAppList:_0x126167}=await import('../commands/app/remote-source.js'),_0x597f09=await _0x126167({'env':_0x4f098d['env']??_0x41506b(0x1d1),'accessKey':_0x4f098d['accessKey']}),_0x9ed377=findAppByName(_0x597f09['items'],_0x7f882e);if(_0x9ed377&&!isRuntimeAccessibleApp(_0x9ed377))throw runtimeInaccessibleAppError(_0x9ed377,'\x22'+_0x7f882e+'\x22');const _0x1ac8f7=_0x9ed377?.['appCode']?.[_0x41506b(0x208)]();if(_0x1ac8f7)return _0x1ac8f7;throw CliErrors[_0x41506b(0x207)](_0x41506b(0x1db)+_0x7f882e,'Run\x20`'+CLI_BIN_NAME+_0x41506b(0x1fc)+_0x7f882e+_0x41506b(0x1d7)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x194a45,_0x5326d1){const _0x157cfc=a119_0x3976;if(_0x194a45['requiresAppCode']===![]||!_0x5326d1['accessKey'])return;const _0x5ad5db=(typeof _0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]===_0x157cfc(0x1e2)&&_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)][_0x157cfc(0x208)]()?_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]:_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1fb)]??_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1e7)])?.['trim']();if(!_0x5ad5db)return;const {getRemoteAppList:_0x4096f5}=await import(_0x157cfc(0x20b)),_0x200547=await _0x4096f5({'env':_0x5326d1[_0x157cfc(0x1de)]??_0x157cfc(0x1d1),'accessKey':_0x5326d1['accessKey']}),_0x56c165=findAppByName(_0x200547[_0x157cfc(0x1df)],_0x5ad5db);if(_0x56c165&&!isRuntimeAccessibleApp(_0x56c165))throw runtimeInaccessibleAppError(_0x56c165,'\x22'+_0x5ad5db+'\x22');}function a119_0x8e84(){const _0x40a2a9=['3452740MKihjf','nonInteractive','currentApp','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','8JWfCgF','\x20\x20To\x20proceed:\x20','command','../core/api-client.js','catch','update','doctor','appCodeSource','cancelled','_notice','validation','trim','2983190DLSYle','name','../commands/app/remote-source.js','1TTEqrE','High-risk\x20operation\x20`','schema','822225PeazsO','appCode','844068BOvorH','production','format','14798601rsfZuS','has','appcode','Set\x20accessKey\x20in\x20','.appcode\x20to\x20','map','service','APPCODE','Unknown\x20app:\x20','requiresAppCode','pageSize','env','items','appcode\x20\x22','requiresAuth','string','newConfigFileName','mergedCli','execute','riskLevel','defaultApp','filter','../core/sdk-client.js','4914708QsUqHf','local-alias','accessKey','defaultPageSize','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','apiDomain','confirmHighRisk','object','1657352BSSgZQ','\x20or\x20pass\x20','app','pretty','rawFlags','defaultVerbose','formatOutput'];a119_0x8e84=function(){return _0x40a2a9;};return a119_0x8e84();}async function assertAppCodeIsRuntimeAccessible(_0x23fbed,_0x39be44,_0x16f92d){const _0x3c426d=a119_0x3976;if(_0x23fbed[_0x3c426d(0x1dc)]===![]||!_0x39be44['accessKey'])return;const {getRemoteAppList:_0x10b95f}=await import(_0x3c426d(0x20b)),_0x1306f4=await _0x10b95f({'env':_0x39be44[_0x3c426d(0x1de)]??_0x3c426d(0x1d1),'accessKey':_0x39be44[_0x3c426d(0x1ec)]}),_0x57c60a=findAppByCode(_0x1306f4['items'],_0x16f92d);if(_0x57c60a&&!isRuntimeAccessibleApp(_0x57c60a))throw runtimeInaccessibleAppError(_0x57c60a,_0x3c426d(0x1e0)+_0x16f92d+'\x22');}export async function runCommand(_0x2d2e18,_0x1a2710,_0x19f952=terminalRunnerAdapter){const _0x5de03c=a119_0x3976;assertKnownCommandFlags(_0x2d2e18,_0x1a2710[_0x5de03c(0x1f6)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2d2e18)?withVersionPolicy(_0x2d2e18):_0x2d2e18,_0x1a2710,_0x19f952);}function shouldApplyVersionPolicy(_0x82d04b){const _0x109e15=a119_0x3976;if([_0x109e15(0x202),_0x109e15(0x20e),_0x109e15(0x203)]['includes'](_0x82d04b['service']))return![];return!(_0x82d04b[_0x109e15(0x1d9)]==='cli-skill'&&_0x82d04b[_0x109e15(0x1ff)]==='install');}function withVersionPolicy(_0x264ca9){return{..._0x264ca9,async 'execute'(_0x2f89ba){const _0x39e418=a119_0x3976,_0x5a9c78=await checkCliVersion();assertCliVersionSupported(_0x5a9c78);const _0x31616b=shouldResolveUpdateNotice(_0x2f89ba)?resolveLatestUpdateNotice(_0x5a9c78)[_0x39e418(0x201)](()=>null):Promise['resolve'](null),_0x1b693b=await _0x264ca9[_0x39e418(0x1e5)](_0x2f89ba);return attachUpdateNotice(_0x1b693b,await _0x31616b);}};}function shouldResolveUpdateNotice(_0x91b6d6){const _0xf56679=a119_0x3976;return _0x91b6d6[_0xf56679(0x1d2)]===_0xf56679(0x1f5)&&!_0x91b6d6[_0xf56679(0x1fa)];}function attachUpdateNotice(_0xab416f,_0x30af8d){const _0x17a650=a119_0x3976;if(!_0x30af8d||!_0xab416f||typeof _0xab416f!==_0x17a650(0x1f1))return _0xab416f;const _0x408482=_0xab416f,_0x22caf8=typeof _0x408482[_0x17a650(0x206)]===_0x17a650(0x1f1)&&_0x408482[_0x17a650(0x206)]!==null?_0x408482['_notice']:{};return{..._0x408482,'_notice':{..._0x22caf8,'update':_0x30af8d}};}
|
|
1
|
+
(function(_0x44ea5f,_0x122895){const _0x200e93=a119_0x3728,_0x194467=_0x44ea5f();while(!![]){try{const _0x3ef2ed=-parseInt(_0x200e93(0x188))/0x1*(parseInt(_0x200e93(0x1b4))/0x2)+-parseInt(_0x200e93(0x1a4))/0x3*(parseInt(_0x200e93(0x19f))/0x4)+-parseInt(_0x200e93(0x1aa))/0x5*(parseInt(_0x200e93(0x17f))/0x6)+-parseInt(_0x200e93(0x18b))/0x7+-parseInt(_0x200e93(0x184))/0x8+parseInt(_0x200e93(0x1ba))/0x9+-parseInt(_0x200e93(0x183))/0xa*(-parseInt(_0x200e93(0x1b3))/0xb);if(_0x3ef2ed===_0x122895)break;else _0x194467['push'](_0x194467['shift']());}catch(_0xb795ec){_0x194467['push'](_0x194467['shift']());}}}(a119_0x575d,0x549b0));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a119_0x575d(){const _0x3795a5=['Run\x20`','../core/api-client.js','mergedCli','cli-skill','cancelled','appCode','4996ENuvLD','_notice','env','pageSize','newConfigFileName','1635SetAbI','isNonInteractive','Set\x20accessKey\x20in\x20','authRequired','service','production','647385LsCwPc','../core/sdk-client.js','APPCODE','accessKey','appcode','rawFlags','object','requiresAppCode','currentApp','7019012lcpiCx','1239182MJbaZK','../commands/app/remote-source.js','runtimeDomain','map','confirmHighRisk','validation','2306214HnQRhC','formatOutput','.appcode\x20to\x20','trim','appCodeSource','appcode\x20\x22','name','includes','6vHGtHA','command','resolve','schema','40MnZYAY','4446960egqFnK','\x20\x20To\x20proceed:\x20','format','nonInteractive','1ovnnqN','update','verbose','3334989IgfMPK','defaultApp','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','string','catch','defaultVerbose','requiresAuth','configMissing','execute','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','items','app','Unknown\x20app:\x20'];a119_0x575d=function(){return _0x3795a5;};return a119_0x575d();}import{AUTH_MODE}from'../constant/auth-mode.js';function a119_0x3728(_0x414cd7,_0x2e5fb8){_0x414cd7=_0x414cd7-0x17a;const _0x575d69=a119_0x575d();let _0x3728f3=_0x575d69[_0x414cd7];return _0x3728f3;}import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x21b3eb){return void _0x21b3eb,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x225f7e,_0x2d02a5){const _0x2de17c=a119_0x3728,_0x2a0283=typeof _0x2d02a5[_0x2de17c(0x197)]===_0x2de17c(0x18f)&&_0x2d02a5[_0x2de17c(0x197)][_0x2de17c(0x17a)]();return{'rawFlags':_0x2d02a5,'appCode':_0x225f7e[_0x2de17c(0x19e)]||productEnv(_0x2de17c(0x1ac))||(_0x2a0283?undefined:readAppCodeFromConfig()),'appCodeSource':_0x225f7e[_0x2de17c(0x17b)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2d02a5),'defaultFormat':_0x225f7e[_0x2de17c(0x186)],'defaultPageSize':_0x225f7e[_0x2de17c(0x1a2)],'defaultVerbose':_0x225f7e[_0x2de17c(0x18a)],'riskLevel':_0x225f7e['riskLevel'],'accessKey':_0x225f7e[_0x2de17c(0x1ad)],'env':_0x225f7e[_0x2de17c(0x1a1)],'mergedCli':{'defaultApp':_0x225f7e['defaultApp'],'currentApp':_0x225f7e[_0x2de17c(0x1b2)],'appCode':_0x225f7e['appCode']}};}export function createLovrabetRunnerAdapter(_0x82dbc7={}){const _0x43a1fc=a119_0x3728,_0xc85c42={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x43a1fc(0x18d)](_0x2faf89=>PIPELINE_FLAG_NAMES['has'](_0x2faf89[_0x43a1fc(0x17d)]))[_0x43a1fc(0x1b7)](({name:_0x59e056,type:_0x37778a,description:_0x4cfe25})=>({'name':_0x59e056,'type':_0x37778a,'description':_0x4cfe25})),'formatOutput':_0x82dbc7[_0x43a1fc(0x1bb)]??formatOutput,'getCommandLabel'(_0x1762d8){const _0x25903f=_0x43a1fc;return CLI_BIN_NAME+'\x20'+_0x1762d8['service']+'\x20'+_0x1762d8[_0x25903f(0x180)];},'riskPolicy':{'onViolation'(_0x16402c){console['error'](_0x16402c);},'createError'(_0x46ae9){const _0x1c20e9=_0x43a1fc;return CliErrors[_0x1c20e9(0x19d)](_0x46ae9);}},async 'prepare'(_0x426e57,_0x4c78b8){const _0x4a12a6=_0x43a1fc,_0x223b43=resolveAuthMode(_0x4c78b8);if(_0x426e57[_0x4a12a6(0x192)]!==![]){if(!_0x4c78b8[_0x4a12a6(0x1ad)])throw CliErrors[_0x4a12a6(0x1a7)](_0x4a12a6(0x1a6)+PRODUCT_CONFIG[_0x4a12a6(0x1a3)]+'\x20or\x20pass\x20'+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x2cd32e}=await import(_0x4a12a6(0x19a));_0x2cd32e(_0x4c78b8['accessKey']);}let _0x2f7bdd='';if(_0x426e57[_0x4a12a6(0x1b1)]!==![]){_0x2f7bdd=_0x4c78b8[_0x4a12a6(0x19e)]??'',_0x2f7bdd=await resolveExplicitAppName(_0x426e57,_0x4c78b8,_0x2f7bdd);if(!_0x2f7bdd){await assertSelectedAppNameIsRuntimeAccessible(_0x426e57,_0x4c78b8);throw CliErrors[_0x4a12a6(0x193)](_0x4a12a6(0x195)+PRODUCT_CONFIG[_0x4a12a6(0x1a3)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x426e57,_0x4c78b8,_0x2f7bdd);}if(_0x2f7bdd){const {initSdkClient:_0x3bd34a}=await import(_0x4a12a6(0x1ab));_0x3bd34a({'appCode':_0x2f7bdd,'env':_0x4c78b8[_0x4a12a6(0x1a1)]??_0x4a12a6(0x1a9),'runtimeDomain':_0x4c78b8[_0x4a12a6(0x1b6)],'accessKey':_0x4c78b8[_0x4a12a6(0x1ad)],'authMode':_0x223b43}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4c78b8[_0x4a12a6(0x191)]},'numbers':{'pagesize':_0x4c78b8['defaultPageSize']}},'extras':{'appCode':_0x2f7bdd,'cookie':'','apiDomain':_0x4c78b8['apiDomain'],'apiDir':'','accessKey':_0x4c78b8[_0x4a12a6(0x1ad)],'envName':_0x4c78b8['env'],'mergedCli':_0x4c78b8[_0x4a12a6(0x19b)]}};},'confirmHighRisk':_0x82dbc7[_0x43a1fc(0x1b8)]??(async({def:_0x5109f4,env:_0x2a589c,flags:_0x100095,commandLabel:_0x21cf57})=>{const _0x2a0518=_0x43a1fc;if(_0x2a589c[_0x2a0518(0x1a5)]){const _0x2deb27=reconstructCommandArgv(_0x5109f4,_0x100095);throw CliErrors[_0x2a0518(0x1b9)]('High-risk\x20operation\x20`'+_0x21cf57+_0x2a0518(0x18e)+(_0x2a0518(0x185)+_0x2deb27));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5109f4,_0x21cf57,_0x100095),'createCancelledError':_0x56484d=>CliErrors['cancelled'](_0x56484d)});}),'mapDryRunError'(_0xe5995b){return mapUserFacingExecuteError(_0xe5995b);},'mapExecuteError'(_0x58c323){return mapUserFacingExecuteError(_0x58c323);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xc85c42;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x10048f=a119_0x3728;try{if(sdkClientInitialized){const {clearSdkClient:_0x401529}=await import(_0x10048f(0x1ab));_0x401529();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3d2428}=await import(_0x10048f(0x19a));_0x3d2428();}}async function resolveExplicitAppName(_0x4f5032,_0xb51fe1,_0x3605a8){const _0x3f7669=a119_0x3728;if(_0x4f5032[_0x3f7669(0x1b1)]===![])return _0x3605a8;const _0x2ea9ce=typeof _0xb51fe1['rawFlags'][_0x3f7669(0x197)]===_0x3f7669(0x18f)?_0xb51fe1[_0x3f7669(0x1af)]['app'][_0x3f7669(0x17a)]():'';if(!_0x2ea9ce)return _0x3605a8;const _0x3865aa=typeof _0xb51fe1['rawFlags'][_0x3f7669(0x1ae)]===_0x3f7669(0x18f)&&_0xb51fe1[_0x3f7669(0x1af)][_0x3f7669(0x1ae)][_0x3f7669(0x17a)]()||productEnv(_0x3f7669(0x1ac));if(_0x3865aa||_0xb51fe1[_0x3f7669(0x17b)]==='local-alias')return _0x3605a8;const {getRemoteAppList:_0x31d2ab}=await import('../commands/app/remote-source.js'),_0x4b0fa7=await _0x31d2ab({'env':_0xb51fe1[_0x3f7669(0x1a1)]??_0x3f7669(0x1a9),'accessKey':_0xb51fe1[_0x3f7669(0x1ad)]}),_0x450983=findAppByName(_0x4b0fa7[_0x3f7669(0x196)],_0x2ea9ce);if(_0x450983&&!isRuntimeAccessibleApp(_0x450983))throw runtimeInaccessibleAppError(_0x450983,'\x22'+_0x2ea9ce+'\x22');const _0x471102=_0x450983?.[_0x3f7669(0x19e)]?.[_0x3f7669(0x17a)]();if(_0x471102)return _0x471102;throw CliErrors['validation'](_0x3f7669(0x198)+_0x2ea9ce,_0x3f7669(0x199)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2ea9ce+_0x3f7669(0x1bc)+PRODUCT_CONFIG[_0x3f7669(0x1a3)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x128cfe,_0x4682d5){const _0x2c0ca3=a119_0x3728;if(_0x128cfe['requiresAppCode']===![]||!_0x4682d5['accessKey'])return;const _0x4c796c=(typeof _0x4682d5['rawFlags'][_0x2c0ca3(0x197)]===_0x2c0ca3(0x18f)&&_0x4682d5[_0x2c0ca3(0x1af)][_0x2c0ca3(0x197)]['trim']()?_0x4682d5[_0x2c0ca3(0x1af)][_0x2c0ca3(0x197)]:_0x4682d5[_0x2c0ca3(0x19b)]?.['currentApp']??_0x4682d5['mergedCli']?.[_0x2c0ca3(0x18c)])?.[_0x2c0ca3(0x17a)]();if(!_0x4c796c)return;const {getRemoteAppList:_0x481f2e}=await import(_0x2c0ca3(0x1b5)),_0x2a0ad4=await _0x481f2e({'env':_0x4682d5[_0x2c0ca3(0x1a1)]??_0x2c0ca3(0x1a9),'accessKey':_0x4682d5[_0x2c0ca3(0x1ad)]}),_0x21d790=findAppByName(_0x2a0ad4[_0x2c0ca3(0x196)],_0x4c796c);if(_0x21d790&&!isRuntimeAccessibleApp(_0x21d790))throw runtimeInaccessibleAppError(_0x21d790,'\x22'+_0x4c796c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x59b7b4,_0x4771b4,_0x48a3ca){const _0xce8022=a119_0x3728;if(_0x59b7b4[_0xce8022(0x1b1)]===![]||!_0x4771b4['accessKey'])return;const {getRemoteAppList:_0x356269}=await import('../commands/app/remote-source.js'),_0xfd727b=await _0x356269({'env':_0x4771b4[_0xce8022(0x1a1)]??_0xce8022(0x1a9),'accessKey':_0x4771b4[_0xce8022(0x1ad)]}),_0x4bb158=findAppByCode(_0xfd727b['items'],_0x48a3ca);if(_0x4bb158&&!isRuntimeAccessibleApp(_0x4bb158))throw runtimeInaccessibleAppError(_0x4bb158,_0xce8022(0x17c)+_0x48a3ca+'\x22');}export async function runCommand(_0x5cc21c,_0x36469d,_0x51a4d1=terminalRunnerAdapter){const _0x3ff59c=a119_0x3728;assertKnownCommandFlags(_0x5cc21c,_0x36469d[_0x3ff59c(0x1af)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x5cc21c)?withVersionPolicy(_0x5cc21c):_0x5cc21c,_0x36469d,_0x51a4d1);}function shouldApplyVersionPolicy(_0x476d9f){const _0x49d887=a119_0x3728;if([_0x49d887(0x189),_0x49d887(0x182),'doctor'][_0x49d887(0x17e)](_0x476d9f[_0x49d887(0x1a8)]))return![];return!(_0x476d9f[_0x49d887(0x1a8)]===_0x49d887(0x19c)&&_0x476d9f['command']==='install');}function withVersionPolicy(_0x26c5e9){return{..._0x26c5e9,async 'execute'(_0x45f14e){const _0x151a73=a119_0x3728,_0x41970f=await checkCliVersion();assertCliVersionSupported(_0x41970f);const _0x3dbbc8=shouldResolveUpdateNotice(_0x45f14e)?resolveLatestUpdateNotice(_0x41970f)[_0x151a73(0x190)](()=>null):Promise[_0x151a73(0x181)](null),_0x192af8=await _0x26c5e9[_0x151a73(0x194)](_0x45f14e);return attachUpdateNotice(_0x192af8,await _0x3dbbc8);}};}function shouldResolveUpdateNotice(_0x1c5de4){const _0x2f31af=a119_0x3728;return _0x1c5de4['format']==='pretty'&&!_0x1c5de4[_0x2f31af(0x187)];}function attachUpdateNotice(_0x13a8d1,_0x30e974){const _0x1a4302=a119_0x3728;if(!_0x30e974||!_0x13a8d1||typeof _0x13a8d1!==_0x1a4302(0x1b0))return _0x13a8d1;const _0x41ed9a=_0x13a8d1,_0x592522=typeof _0x41ed9a[_0x1a4302(0x1a0)]===_0x1a4302(0x1b0)&&_0x41ed9a[_0x1a4302(0x1a0)]!==null?_0x41ed9a[_0x1a4302(0x1a0)]:{};return{..._0x41ed9a,'_notice':{..._0x592522,'update':_0x30e974}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e5dca,_0x1b06e4){const _0x4567d2=a120_0x4ff3,_0x5be843=_0x5e5dca();while(!![]){try{const _0x4bbabb=-parseInt(_0x4567d2(0x118))/0x1+parseInt(_0x4567d2(0x119))/0x2+parseInt(_0x4567d2(0x114))/0x3*(-parseInt(_0x4567d2(0x11c))/0x4)+parseInt(_0x4567d2(0x120))/0x5+parseInt(_0x4567d2(0x121))/0x6+-parseInt(_0x4567d2(0x11b))/0x7*(-parseInt(_0x4567d2(0x115))/0x8)+-parseInt(_0x4567d2(0x122))/0x9;if(_0x4bbabb===_0x1b06e4)break;else _0x5be843['push'](_0x5be843['shift']());}catch(_0x57d30f){_0x5be843['push'](_0x5be843['shift']());}}}(a120_0x16a3,0xb1bb5));import{buildSchemaPayload as a120_0x226869}from'@lovrabet/cli-framework';function a120_0x4ff3(_0x11e8d3,_0xa0cf8a){_0x11e8d3=_0x11e8d3-0x112;const _0x16a3b4=a120_0x16a3();let _0x4ff375=_0x16a3b4[_0x11e8d3];return _0x4ff375;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x416390=a120_0x4ff3,{serviceRegistry:_0x18f746,findDefinition:_0x2804a3}=await import(_0x416390(0x123)),_0x112e51=new Set(_0x18f746[_0x416390(0x11e)](_0xcc339=>_0xcc339[_0x416390(0x112)])),_0x5a5b8c=listDynamicServiceEntries()[_0x416390(0x11f)](_0x230f83=>!_0x112e51['has'](_0x230f83[_0x416390(0x112)])),_0x171887=a120_0x226869({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x18f746,_0x5a5b8c),'buildAllFlags':buildAllFlags,'findDefinition':(_0x5a0d2a,_0x1ef5c2)=>_0x2804a3(_0x5a0d2a,_0x1ef5c2)??findDynamicServiceDefinition(_0x5a0d2a,_0x1ef5c2)});return normalizeSchemaPayload(_0x171887);}function normalizeSchemaPayload(_0x1f73c2){const _0x3ae502=a120_0x4ff3;return{..._0x1f73c2,'schemaVersion':0x2,'services':_0x1f73c2[_0x3ae502(0x11d)]['map'](_0x26a6e3=>({..._0x26a6e3,'commands':_0x26a6e3[_0x3ae502(0x113)][_0x3ae502(0x11e)](normalizeSchemaCommand)}))};}function a120_0x16a3(){const _0x16ff0b=['filter','3324135vYBISe','2220948pCBJWo','8211051iWpHXx','../commands/registry.js','service','commands','6bpycRA','888032tyWONB','auth','requiresAuth','660660vcsmtl','1796434jdzIQX','none','49uKLnIV','818484QHfKTn','services','map'];a120_0x16a3=function(){return _0x16ff0b;};return a120_0x16a3();}function normalizeSchemaCommand(_0x365144){const _0x59b825=a120_0x4ff3,_0x32ff97=_0x365144;return{..._0x365144,'auth':_0x32ff97[_0x59b825(0x116)]??(_0x365144[_0x59b825(0x117)]?'required':_0x59b825(0x11a))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x3957(_0x4c1a0b,_0x9ceac5){_0x4c1a0b=_0x4c1a0b-0x82;const _0x276212=a121_0x2762();let _0x395706=_0x276212[_0x4c1a0b];return _0x395706;}(function(_0x2a4abc,_0x263ca4){const _0x352cc2=a121_0x3957,_0x4888fb=_0x2a4abc();while(!![]){try{const _0x121d3a=-parseInt(_0x352cc2(0x8c))/0x1+-parseInt(_0x352cc2(0x8d))/0x2*(-parseInt(_0x352cc2(0x86))/0x3)+parseInt(_0x352cc2(0x8b))/0x4*(parseInt(_0x352cc2(0x85))/0x5)+parseInt(_0x352cc2(0x88))/0x6+-parseInt(_0x352cc2(0x83))/0x7+-parseInt(_0x352cc2(0x89))/0x8+parseInt(_0x352cc2(0x8a))/0x9;if(_0x121d3a===_0x263ca4)break;else _0x4888fb['push'](_0x4888fb['shift']());}catch(_0x4fe845){_0x4888fb['push'](_0x4888fb['shift']());}}}(a121_0x2762,0xc1511));function a121_0x2762(){const _0x1df5d7=['6166446tOcZMm','569432UinKHH','1935414ykiWTc','556SpFHvI','1321393XuWELW','794wDaKoJ','findIndex','length','4907308MJgpUj','slice','22530ceeFYL','7680xnwUJV','service'];a121_0x2762=function(){return _0x1df5d7;};return a121_0x2762();}export function insertDynamicServicesAfterServiceTree(_0x4fd2e4,_0x52ef98){const _0x16d840=a121_0x3957;if(_0x52ef98[_0x16d840(0x82)]===0x0)return[..._0x4fd2e4];const _0x12979a=_0x4fd2e4[_0x16d840(0x8e)](_0x341f7b=>_0x341f7b[_0x16d840(0x87)]===_0x16d840(0x87));if(_0x12979a<0x0)return[..._0x4fd2e4,..._0x52ef98];return[..._0x4fd2e4[_0x16d840(0x84)](0x0,_0x12979a+0x1),..._0x52ef98,..._0x4fd2e4['slice'](_0x12979a+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x38da(_0xf6b917,_0x4af694){_0xf6b917=_0xf6b917-0x19b;var _0x5dea98=a122_0x5dea();var _0x38da39=_0x5dea98[_0xf6b917];return _0x38da39;}(function(_0x352873,_0x18048d){var _0xfaeb1d=a122_0x38da,_0x564065=_0x352873();while(!![]){try{var _0x489ada=-parseInt(_0xfaeb1d(0x1a2))/0x1+parseInt(_0xfaeb1d(0x1a0))/0x2+-parseInt(_0xfaeb1d(0x19d))/0x3+-parseInt(_0xfaeb1d(0x19f))/0x4+-parseInt(_0xfaeb1d(0x19e))/0x5*(-parseInt(_0xfaeb1d(0x19b))/0x6)+-parseInt(_0xfaeb1d(0x1a1))/0x7*(parseInt(_0xfaeb1d(0x1a3))/0x8)+parseInt(_0xfaeb1d(0x19c))/0x9;if(_0x489ada===_0x18048d)break;else _0x564065['push'](_0x564065['shift']());}catch(_0x2382cf){_0x564065['push'](_0x564065['shift']());}}}(a122_0x5dea,0x8a9c2));function a122_0x5dea(){var _0x3f9435=['5219250yIQdjd','4476132qftSPc','179966aUSDhJ','7YBdVLO','525303gBLniB','4121816hTmhHX','6znYhmf','20879910DPyAXm','2179542SDoTfR'];a122_0x5dea=function(){return _0x3f9435;};return a122_0x5dea();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.0-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.0-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.3.0-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.0-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "827a328";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-22T09:30:26.952Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x3ea581=a123_0x13e0;function a123_0x13e0(_0x8afe28,_0x1e02c5){_0x8afe28=_0x8afe28-0xd9;const _0x40344a=a123_0x4034();let _0x13e0d4=_0x40344a[_0x8afe28];return _0x13e0d4;}(function(_0xf88b0a,_0x213740){const _0x440bb9=a123_0x13e0,_0x4366b7=_0xf88b0a();while(!![]){try{const _0x500988=-parseInt(_0x440bb9(0xe2))/0x1+parseInt(_0x440bb9(0xde))/0x2*(parseInt(_0x440bb9(0xe1))/0x3)+parseInt(_0x440bb9(0xdc))/0x4+-parseInt(_0x440bb9(0xd9))/0x5*(parseInt(_0x440bb9(0xdd))/0x6)+parseInt(_0x440bb9(0xda))/0x7*(parseInt(_0x440bb9(0xe0))/0x8)+parseInt(_0x440bb9(0xe3))/0x9*(-parseInt(_0x440bb9(0xdb))/0xa)+-parseInt(_0x440bb9(0xdf))/0xb;if(_0x500988===_0x213740)break;else _0x4366b7['push'](_0x4366b7['shift']());}catch(_0x4b482d){_0x4366b7['push'](_0x4366b7['shift']());}}}(a123_0x4034,0x21936));function a123_0x4034(){const _0x547ab9=['8JXxpYv','3BktWwM','1568eUwKIG','1206FbqtUl','2026-08-22T09:30:26.952Z','3095OWvzWu','651693nrzPhX','10BKASBo','677300IYoIMn','426gYFJzy','335016zQeJhS','2714305RsTHHp'];a123_0x4034=function(){return _0x547ab9;};return a123_0x4034();}export const VERSION='2.3.0-beta.3';export const GIT_TAG='v2.3.0-beta.3';export const GIT_COMMIT='827a328';export const BUILD_TIME=a123_0x3ea581(0xe4);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ed957,_0x1890b1){const _0x220930=a124_0x3a46,_0x22e113=_0x3ed957();while(!![]){try{const _0x13e838=-parseInt(_0x220930(0xea))/0x1+parseInt(_0x220930(0xec))/0x2*(parseInt(_0x220930(0xf5))/0x3)+-parseInt(_0x220930(0xe7))/0x4*(parseInt(_0x220930(0xf0))/0x5)+-parseInt(_0x220930(0xed))/0x6+-parseInt(_0x220930(0xeb))/0x7+-parseInt(_0x220930(0xef))/0x8*(parseInt(_0x220930(0xe9))/0x9)+-parseInt(_0x220930(0xf6))/0xa*(-parseInt(_0x220930(0xee))/0xb);if(_0x13e838===_0x1890b1)break;else _0x22e113['push'](_0x22e113['shift']());}catch(_0x105fdb){_0x22e113['push'](_0x22e113['shift']());}}}(a124_0x7c50,0xdf9bc));import{jsx as a124_0x47378e,jsxs as a124_0x3da970}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a124_0x3a46(_0x54727f,_0x312b07){_0x54727f=_0x54727f-0xe7;const _0x7c5014=a124_0x7c50();let _0x3a4637=_0x7c5014[_0x54727f];return _0x3a4637;}export function Help(){const _0x1a752f=a124_0x3a46,{exit:_0x53defa}=useApp();return useEffect(()=>{_0x53defa();},[_0x53defa]),a124_0x3da970(Box,{'flexDirection':_0x1a752f(0xf2),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x47378e(Box,{'children':a124_0x47378e(Text,{'bold':!![],'color':_0x1a752f(0xe8),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x3da970(Box,{'marginTop':0x1,'children':[a124_0x47378e(Text,{'dimColor':!![],'children':_0x1a752f(0xf4)}),a124_0x47378e(Text,{'bold':!![],'color':_0x1a752f(0xe8),'children':CLI_BIN_NAME+_0x1a752f(0xf1)}),a124_0x47378e(Text,{'dimColor':!![],'children':_0x1a752f(0xf3)})]})]});}function a124_0x7c50(){const _0x40b08e=['\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','2503482RGacMc','430DwCbTH','113116rVVfCg','green','36NhVkyL','974297DqCdCL','7277298SbDTiX','4wXAuSh','9971922daocqG','1220692VBPQzQ','870072sOzSkj','250CRuGOh','\x20--help','column'];a124_0x7c50=function(){return _0x40b08e;};return a124_0x7c50();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x298533,_0x457e1e){const _0x16ba2f=a125_0x2471,_0x555934=_0x298533();while(!![]){try{const _0x209d7e=-parseInt(_0x16ba2f(0x12a))/0x1*(parseInt(_0x16ba2f(0x11f))/0x2)+parseInt(_0x16ba2f(0x136))/0x3*(-parseInt(_0x16ba2f(0x133))/0x4)+parseInt(_0x16ba2f(0x11a))/0x5*(parseInt(_0x16ba2f(0x132))/0x6)+parseInt(_0x16ba2f(0x11d))/0x7+-parseInt(_0x16ba2f(0x120))/0x8+parseInt(_0x16ba2f(0x127))/0x9+-parseInt(_0x16ba2f(0x12c))/0xa*(-parseInt(_0x16ba2f(0x129))/0xb);if(_0x209d7e===_0x457e1e)break;else _0x555934['push'](_0x555934['shift']());}catch(_0x1bb104){_0x555934['push'](_0x555934['shift']());}}}(a125_0x3d3b,0x95b33));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a125_0x2471(_0x1778c1,_0x230b41){_0x1778c1=_0x1778c1-0x11a;const _0x3d3b54=a125_0x3d3b();let _0x2471e0=_0x3d3b54[_0x1778c1];return _0x2471e0;}export async function runPostinstall(_0xc0aa53={}){const _0x365ba6=a125_0x2471,_0x55eec1=installBuiltinSkill(_0xc0aa53);if(_0x55eec1['ok']){const _0x126101=_0x55eec1[_0x365ba6(0x121)]?_0x365ba6(0x130):_0x365ba6(0x134),_0x53e820=_0x55eec1[_0x365ba6(0x12f)]?_0x365ba6(0x12e)+_0x55eec1[_0x365ba6(0x12f)]:_0x365ba6(0x131);return console[_0x365ba6(0x11c)](_0x365ba6(0x12b)+_0x55eec1[_0x365ba6(0x123)]+'\x20'+_0x126101+_0x53e820),_0x55eec1;}const _0x2476c9=_0x365ba6(0x12d)+(_0x55eec1[_0x365ba6(0x11b)]??_0x365ba6(0x135))+']\x20'+(_0x55eec1[_0x365ba6(0x11e)]??_0x365ba6(0x125))+'.\x20'+(_0x365ba6(0x128)+_0x55eec1[_0x365ba6(0x124)]);if(_0x55eec1[_0x365ba6(0x11b)]===_0x365ba6(0x122))throw new Error(_0x2476c9);return console[_0x365ba6(0x126)](_0x2476c9),_0x55eec1;}function a125_0x3d3b(){const _0x1d0354=['640737FrlCGx','5eKVDkc','code','log','2892141xdYlxU','error','12pDsjBd','2155168LiZxVr','changed','SOURCE_INVALID','skillVersion','repairCommand','Installation\x20failed','warn','5712894tMhzdu','Repair\x20with:\x20','5269elWzXK','192187JAMQft','Lovrabet\x20Built-in\x20Skill\x20','2740MIRqpn','[BUILTIN_SKILL_INSTALL_','\x20at\x20','installedPath','installed','\x20via\x20skills@latest','6420558OGvjeK','4gBxfUX','already\x20current','FAILED'];a125_0x3d3b=function(){return _0x1d0354;};return a125_0x3d3b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x2947(_0x1e35c7,_0x2eac32){_0x1e35c7=_0x1e35c7-0x15b;const _0xf7d2b6=a126_0xf7d2();let _0x294701=_0xf7d2b6[_0x1e35c7];return _0x294701;}(function(_0x42a63e,_0x5c3fbf){const _0x70f8cd=a126_0x2947,_0x1ad5cc=_0x42a63e();while(!![]){try{const _0xa4c436=-parseInt(_0x70f8cd(0x15b))/0x1*(parseInt(_0x70f8cd(0x15f))/0x2)+parseInt(_0x70f8cd(0x165))/0x3*(-parseInt(_0x70f8cd(0x16c))/0x4)+-parseInt(_0x70f8cd(0x166))/0x5+parseInt(_0x70f8cd(0x15d))/0x6+-parseInt(_0x70f8cd(0x16b))/0x7*(-parseInt(_0x70f8cd(0x168))/0x8)+parseInt(_0x70f8cd(0x163))/0x9*(parseInt(_0x70f8cd(0x167))/0xa)+-parseInt(_0x70f8cd(0x15e))/0xb;if(_0xa4c436===_0x5c3fbf)break;else _0x1ad5cc['push'](_0x1ad5cc['shift']());}catch(_0x2d2a4d){_0x1ad5cc['push'](_0x1ad5cc['shift']());}}}(a126_0xf7d2,0x67485));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x55f0d3,_0x6df553,_0xd0535f){const _0x541483=a126_0x2947,_0x580fb3=normalizeText(_0x55f0d3[_0x541483(0x16a)],DESCRIPTION_MAX_LENGTH),_0x429beb=normalizeText(_0x55f0d3[_0x541483(0x162)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x6df553,'risk':requireWriteRisk(_0x55f0d3),'description':_0x580fb3||_0x429beb||'Run\x20this\x20write\x20operation',..._0xd0535f?{'signal':_0xd0535f}:{}};}function requireWriteRisk(_0x3f1647){const _0x340d03=a126_0x2947;if(_0x3f1647[_0x340d03(0x164)]===_0x340d03(0x161)||_0x3f1647['risk']===_0x340d03(0x169))return _0x3f1647[_0x340d03(0x164)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a126_0xf7d2(){const _0x52abd3=['risk','5079uPaCwk','2403605mjRvVK','2290550fbjUal','1448008RXtZmu','high-risk-write','confirmationDescription','28dBcQeu','736ptEogh','replace','trim','1kNblao','string','2296974lYaRIR','5220677MWRoag','208226XeABEO','slice','write','description','27NJSqRl'];a126_0xf7d2=function(){return _0x52abd3;};return a126_0xf7d2();}function normalizeText(_0x3209d9,_0x55e72d){const _0x2c3062=a126_0x2947;if(typeof _0x3209d9!==_0x2c3062(0x15c))return'';return _0x3209d9[_0x2c3062(0x16d)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2c3062(0x16d)](/\s+/g,'\x20')[_0x2c3062(0x16e)]()[_0x2c3062(0x160)](0x0,_0x55e72d);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5e7ecc,_0x21bfbf){const _0x438ccc=a127_0x2733,_0xefc6f9=_0x5e7ecc();while(!![]){try{const _0x3f470c=-parseInt(_0x438ccc(0x127))/0x1+-parseInt(_0x438ccc(0x12a))/0x2+parseInt(_0x438ccc(0x133))/0x3*(-parseInt(_0x438ccc(0x134))/0x4)+parseInt(_0x438ccc(0x138))/0x5*(-parseInt(_0x438ccc(0x139))/0x6)+parseInt(_0x438ccc(0x135))/0x7*(parseInt(_0x438ccc(0x12b))/0x8)+parseInt(_0x438ccc(0x129))/0x9*(parseInt(_0x438ccc(0x131))/0xa)+parseInt(_0x438ccc(0x136))/0xb;if(_0x3f470c===_0x21bfbf)break;else _0xefc6f9['push'](_0xefc6f9['shift']());}catch(_0x38bec2){_0xefc6f9['push'](_0xefc6f9['shift']());}}}(a127_0x9c3f,0x2b355));export function canonicalLovrabetOperation(_0x1d4bfd){const _0x1b4490=a127_0x2733;return[_0x1d4bfd[_0x1b4490(0x12e)],..._0x1d4bfd[_0x1b4490(0x12d)][_0x1b4490(0x137)]()[_0x1b4490(0x132)](/\s+/)]['filter'](Boolean)['join']('.');}function a127_0x2733(_0x253f33,_0x23f76c){_0x253f33=_0x253f33-0x127;const _0x9c3f98=a127_0x9c3f();let _0x27333f=_0x9c3f98[_0x253f33];return _0x27333f;}function a127_0x9c3f(){const _0x3b0c90=['4sEJyhZ','889JKgiwx','640673eOKgas','trim','1525umYjCl','78iIymuu','275069iIWNNu','write','3124881tEpZoq','249592ZpvWYu','18728BmDACb','risk','command','service','writeEventSubject','lovrabet.write.completed','10SMroDt','split','365844PpqZWb'];a127_0x9c3f=function(){return _0x3b0c90;};return a127_0x9c3f();}export function createLovrabetWriteMetadata(_0x58237b,_0x426f24,_0x226354,_0x5d872b){const _0x1c1894=a127_0x2733;if(_0x5d872b||_0x226354['ok']!==!![]||_0x58237b[_0x1c1894(0x12c)]!==_0x1c1894(0x128)&&_0x58237b['risk']!=='high-risk-write')return undefined;const _0x11f361=_0x58237b[_0x1c1894(0x12f)]?.(_0x226354),_0xab86a7={'type':_0x1c1894(0x130),'operation':_0x426f24,'risk':_0x58237b[_0x1c1894(0x12c)],..._0x11f361?{'subject':_0x11f361}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0xab86a7}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x422181,_0x2bf0ef){const _0x57faee=a128_0x5f00,_0x5490b6=_0x422181();while(!![]){try{const _0x1fd06d=parseInt(_0x57faee(0x19d))/0x1*(-parseInt(_0x57faee(0x17e))/0x2)+parseInt(_0x57faee(0x199))/0x3*(parseInt(_0x57faee(0x182))/0x4)+parseInt(_0x57faee(0x190))/0x5+parseInt(_0x57faee(0x19b))/0x6*(parseInt(_0x57faee(0x192))/0x7)+parseInt(_0x57faee(0x198))/0x8*(parseInt(_0x57faee(0x1a0))/0x9)+parseInt(_0x57faee(0x183))/0xa+-parseInt(_0x57faee(0x19f))/0xb;if(_0x1fd06d===_0x2bf0ef)break;else _0x5490b6['push'](_0x5490b6['shift']());}catch(_0x4659b4){_0x5490b6['push'](_0x5490b6['shift']());}}}(a128_0x4083,0xbccdb));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a128_0x5f00(_0x5ba6b6,_0x51d4ef){_0x5ba6b6=_0x5ba6b6-0x17d;const _0x4083a1=a128_0x4083();let _0x5f001d=_0x4083a1[_0x5ba6b6];return _0x5f001d;}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a128_0x4083(){const _0x4702ed=['risk','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','aborted','rawFlags','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','presentation','command','4304725fLQftJ','definition','114177ZFWglE','execute','data','high-risk-write','yes','args','49960rZrIso','1017qenaXx','result','426AqyEcK','dryRun','7603zJPLCj','write','36050795dHLEzb','621ibTIBv','stringify','dry-run','106CDlcsv','AbortError','confirmation','reason','15448LIowYA','6944940ciBfEb','signal','present','message','isNonInteractive','format'];a128_0x4083=function(){return _0x4702ed;};return a128_0x4083();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x3fb8b8,command:_0x3bbd3d,risk:_0x47f7ba,dryRun:_0x14a587}){const _0x1a2eb2=a128_0x5f00;return JSON[_0x1a2eb2(0x1a1)]({'ok':_0x3fb8b8['ok'],'command':_0x3bbd3d,'risk':_0x47f7ba,..._0x14a587?{'dryRun':!![]}:{},..._0x3fb8b8[_0x1a2eb2(0x194)]!==undefined?{'data':_0x3fb8b8['data']}:{},..._0x3fb8b8[_0x1a2eb2(0x186)]?{'message':_0x3fb8b8[_0x1a2eb2(0x186)]}:{}});}};export async function invokeLovrabet(_0x21fe07,_0x214806){const _0x397047=a128_0x5f00;throwIfAborted(_0x214806['signal']);const _0x57b62d=await resolveLovrabetInvocation(_0x21fe07),_0x1b59c6=canonicalLovrabetOperation(_0x57b62d[_0x397047(0x191)]);return await confirmWriteBeforeQueue(_0x57b62d[_0x397047(0x191)],_0x57b62d[_0x397047(0x18c)],_0x1b59c6,_0x214806),runSerialized(async()=>{const _0x3ce209=_0x397047;throwIfAborted(_0x214806[_0x3ce209(0x184)]);const _0x5bd898={},_0x137068=buildConfigFromFlags(_0x57b62d[_0x3ce209(0x18c)]);await initGlobalEnvironment(_0x137068);const _0x3e244c=createPipelineEnv(_0x137068,{..._0x57b62d['rawFlags'],'yes':_0x57b62d['definition'][_0x3ce209(0x189)]===_0x3ce209(0x195)?!![]:_0x57b62d[_0x3ce209(0x18c)][_0x3ce209(0x196)],'nonInteractive':!![]});_0x3e244c[_0x3ce209(0x197)]=_0x57b62d[_0x3ce209(0x197)],_0x3e244c[_0x3ce209(0x187)]=!![],_0x3e244c['riskLevel']='high-risk-write';const _0x106171=withAbortSignal(_0x57b62d[_0x3ce209(0x191)],_0x214806[_0x3ce209(0x184)]),_0x241383=createLovrabetRunnerAdapter({'formatOutput'(_0x562471,_0x25048f){const _0x5b34cb=_0x3ce209;_0x5bd898[_0x5b34cb(0x19a)]=_0x562471,_0x5bd898[_0x5b34cb(0x18f)]=_0x25048f[_0x5b34cb(0x18f)],_0x5bd898['risk']=_0x25048f[_0x5b34cb(0x189)],_0x5bd898[_0x5b34cb(0x188)]=_0x25048f[_0x5b34cb(0x188)],_0x5bd898[_0x5b34cb(0x19c)]=_0x25048f[_0x5b34cb(0x19c)]===!![];},async 'confirmHighRisk'(){const _0x551edb=_0x3ce209;throw new Error(_0x551edb(0x18d));}});try{await runCommand(_0x106171,_0x3e244c,_0x241383);if(!_0x5bd898[_0x3ce209(0x19a)]||!_0x5bd898[_0x3ce209(0x18f)]||!_0x5bd898[_0x3ce209(0x189)]||!_0x5bd898[_0x3ce209(0x188)])throw new Error(_0x3ce209(0x18a));const _0x211cc8=_0x214806[_0x3ce209(0x18e)]??defaultPresentation,_0x257923=_0x5bd898['dryRun']===!![],_0x43cdd6={'result':_0x5bd898[_0x3ce209(0x19a)],'command':_0x5bd898[_0x3ce209(0x18f)],'operation':_0x1b59c6,'risk':_0x5bd898[_0x3ce209(0x189)],'format':_0x5bd898[_0x3ce209(0x188)],'dryRun':_0x257923},_0x1332ca=createLovrabetWriteMetadata(_0x57b62d[_0x3ce209(0x191)],_0x1b59c6,_0x5bd898[_0x3ce209(0x19a)],_0x257923);let _0x53bfb2;try{_0x53bfb2=await _0x211cc8[_0x3ce209(0x185)](_0x43cdd6);}catch(_0x57443d){if(!_0x1332ca||_0x211cc8===defaultPresentation)throw _0x57443d;_0x53bfb2=await defaultPresentation[_0x3ce209(0x185)](_0x43cdd6);}return{'operation':_0x1b59c6,'risk':_0x5bd898[_0x3ce209(0x189)],'mode':_0x257923?_0x3ce209(0x17d):_0x3ce209(0x193),'result':_0x5bd898[_0x3ce209(0x19a)],'output':_0x53bfb2,..._0x1332ca?{'metadata':_0x1332ca}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5bf62e,_0x1eebb5,_0x1d33a8,_0x3aebc3){const _0x5bbcec=a128_0x5f00;if(_0x1eebb5[_0x5bbcec(0x19c)]===!![]||_0x5bf62e[_0x5bbcec(0x189)]!==_0x5bbcec(0x19e)&&_0x5bf62e[_0x5bbcec(0x189)]!==_0x5bbcec(0x195))return;await _0x3aebc3[_0x5bbcec(0x180)]['confirm'](buildLovrabetConfirmationRequest(_0x5bf62e,_0x1d33a8,_0x3aebc3[_0x5bbcec(0x184)]));}function withAbortSignal(_0x36ea1d,_0x1d49a8){return{..._0x36ea1d,async 'execute'(_0x2625a0){const _0x271261=a128_0x5f00;return throwIfAborted(_0x1d49a8),_0x36ea1d[_0x271261(0x193)](_0x2625a0);}};}function throwIfAborted(_0x32bb92){const _0x45d962=a128_0x5f00;if(_0x32bb92?.[_0x45d962(0x18b)])throw _0x32bb92[_0x45d962(0x181)]instanceof Error?_0x32bb92['reason']:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x45d962(0x17f));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x1c9811=a129_0x2ee1;function a129_0x2ee1(_0x3dd3f2,_0x3d0d18){_0x3dd3f2=_0x3dd3f2-0x177;const _0xe81e9=a129_0xe81e();let _0x2ee1c3=_0xe81e9[_0x3dd3f2];return _0x2ee1c3;}(function(_0x18ab3d,_0x28205b){const _0x141463=a129_0x2ee1,_0x3d421e=_0x18ab3d();while(!![]){try{const _0x30e365=-parseInt(_0x141463(0x17a))/0x1*(-parseInt(_0x141463(0x17c))/0x2)+parseInt(_0x141463(0x183))/0x3+-parseInt(_0x141463(0x177))/0x4*(-parseInt(_0x141463(0x179))/0x5)+-parseInt(_0x141463(0x184))/0x6*(parseInt(_0x141463(0x17f))/0x7)+parseInt(_0x141463(0x17b))/0x8+parseInt(_0x141463(0x17d))/0x9*(parseInt(_0x141463(0x182))/0xa)+parseInt(_0x141463(0x178))/0xb*(-parseInt(_0x141463(0x17e))/0xc);if(_0x30e365===_0x28205b)break;else _0x3d421e['push'](_0x3d421e['shift']());}catch(_0x46e416){_0x3d421e['push'](_0x3d421e['shift']());}}}(a129_0xe81e,0xc61d2));let tail=Promise[a129_0x1c9811(0x180)]();function a129_0xe81e(){const _0x55a2b9=['10OQCprM','394725vWzaJt','846OmGtWJ','4MuFRpK','3688157dhtzVw','6359815qZOssl','5352KDzcOt','2460592ZWrcuS','262vYMQkK','1657323tvEtIs','24ZPpyJX','55321bHTeYi','resolve','catch'];a129_0xe81e=function(){return _0x55a2b9;};return a129_0xe81e();}export async function runSerialized(_0x55457b){const _0x10ad71=a129_0x1c9811,_0x201722=tail;let _0x40e204;tail=new Promise(_0x228653=>{_0x40e204=_0x228653;}),await _0x201722[_0x10ad71(0x181)](()=>undefined);try{return await _0x55457b();}finally{_0x40e204();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a130_0xfa36(_0x33c272,_0x3e3c21){_0x33c272=_0x33c272-0x128;const _0x484a79=a130_0x484a();let _0xfa3685=_0x484a79[_0x33c272];return _0xfa3685;}(function(_0x56ab9d,_0x22b8a8){const _0x108cf8=a130_0xfa36,_0x2ea867=_0x56ab9d();while(!![]){try{const _0x19da8f=parseInt(_0x108cf8(0x132))/0x1+parseInt(_0x108cf8(0x139))/0x2*(-parseInt(_0x108cf8(0x134))/0x3)+-parseInt(_0x108cf8(0x138))/0x4+parseInt(_0x108cf8(0x12e))/0x5*(parseInt(_0x108cf8(0x12d))/0x6)+-parseInt(_0x108cf8(0x136))/0x7*(parseInt(_0x108cf8(0x13d))/0x8)+-parseInt(_0x108cf8(0x12f))/0x9+parseInt(_0x108cf8(0x13c))/0xa;if(_0x19da8f===_0x22b8a8)break;else _0x2ea867['push'](_0x2ea867['shift']());}catch(_0x42c0c0){_0x2ea867['push'](_0x2ea867['shift']());}}}(a130_0x484a,0xd8203));import a130_0x2aeb94 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a130_0x484a(){const _0x294b7a=['367917wZIrmv','message','848701KBrhco','unknownCommand','3216064ZxciQc','26apbsDo','join','assign','26329710xgBPYu','16xdsvHl','slice','input','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','args','2342598zHPFpp','5mmSTFZ','4958244vOMYkH','flags','defaultCommand','1053572zIokgB','validation'];a130_0x484a=function(){return _0x294b7a;};return a130_0x484a();}export async function resolveLovrabetInvocation(_0x37bbc8){const _0x346339=a130_0xfa36,_0x15217b=a130_0x2aeb94('',{'importMeta':import.meta,'argv':_0x37bbc8,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x16c565=[..._0x15217b[_0x346339(0x129)]],_0xd2db04=_0x15217b[_0x346339(0x130)];await correctFlags(_0xd2db04);const _0x3e25ad=_0x16c565[0x0];if(!_0x3e25ad)throw CliErrors[_0x346339(0x133)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x166eb6=resolveRemovedCommand(_0x3e25ad,_0x16c565[0x1]);if(_0x166eb6)throw CliErrors[_0x346339(0x133)](_0x166eb6[_0x346339(0x135)],_0x166eb6['hint']);if(!isKnownService(_0x3e25ad)){const _0x3bf9b9=resolveDynamicServiceCommand(_0x16c565,_0xd2db04);if(!_0x3bf9b9)throw CliErrors[_0x346339(0x137)](_0x16c565[_0x346339(0x13a)]('\x20'));return Object['assign'](_0xd2db04,_0x3bf9b9[_0x346339(0x130)]),{'definition':_0x3bf9b9['definition'],'rawFlags':_0xd2db04,'args':_0x3bf9b9[_0x346339(0x12c)]};}const _0x16f48e=getServiceEntry(_0x3e25ad),_0x3f12c9=_0x16c565[0x1]||_0x16f48e[_0x346339(0x131)];if(!_0x3f12c9)throw CliErrors[_0x346339(0x133)](_0x346339(0x12b)+_0x3e25ad+'\x22.');const _0x4140b1=findDefinition(_0x3e25ad,_0x3f12c9);if(!_0x4140b1)throw CliErrors[_0x346339(0x137)](_0x3e25ad+'\x20'+_0x3f12c9);return{'definition':_0x4140b1,'rawFlags':_0xd2db04,'args':_0x16c565[_0x346339(0x128)](0x2)};}async function correctFlags(_0x7b6bb0){const _0x45f4d2=a130_0xfa36;try{const {correctFlags:_0x4a9931}=await import('../framework/preparse.js'),{getAllDefinitions:_0xda3416}=await import(_0x45f4d2(0x12a)),_0x4f811c=_0xda3416()['flatMap'](_0x2d189d=>_0x2d189d['flags']??[]),_0x45e677=_0x4a9931(_0x7b6bb0,_0x4f811c);Object[_0x45f4d2(0x13b)](_0x7b6bb0,_0x45e677['flags']);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a132_0x5696fa=a132_0x53d0;(function(_0x10f582,_0x463027){const _0x26b55b=a132_0x53d0,_0xfd605d=_0x10f582();while(!![]){try{const _0x316003=-parseInt(_0x26b55b(0xc4))/0x1+-parseInt(_0x26b55b(0xaf))/0x2*(-parseInt(_0x26b55b(0xae))/0x3)+parseInt(_0x26b55b(0xc2))/0x4*(-parseInt(_0x26b55b(0xd1))/0x5)+parseInt(_0x26b55b(0xb6))/0x6+-parseInt(_0x26b55b(0xb8))/0x7+-parseInt(_0x26b55b(0xce))/0x8+parseInt(_0x26b55b(0xdd))/0x9;if(_0x316003===_0x463027)break;else _0xfd605d['push'](_0xfd605d['shift']());}catch(_0x4116fd){_0xfd605d['push'](_0xfd605d['shift']());}}}(a132_0x5503,0xbf038));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a132_0x5696fa(0xc6),SKILL_NAME='lovrabet';function frontmatterValue(_0x301e97,_0x59412e){const _0x3ea9e8=a132_0x5696fa;return _0x301e97['match'](new RegExp('^'+_0x59412e+_0x3ea9e8(0xdf),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x49b8d8,_0x3422a8=_0x49b8d8){const _0x40d841=a132_0x5696fa;return readdirSync(_0x3422a8,{'withFileTypes':!![]})[_0x40d841(0xdc)](_0xa81f02=>{const _0x1bfd71=_0x40d841,_0x2f7fc0=join(_0x3422a8,_0xa81f02[_0x1bfd71(0xd8)]),_0x110555=lstatSync(_0x2f7fc0);if(_0x110555['isSymbolicLink']())throw new Error(_0x1bfd71(0xb7)+_0x2f7fc0);if(_0x110555[_0x1bfd71(0xd7)]())return listFiles(_0x49b8d8,_0x2f7fc0);if(!_0x110555[_0x1bfd71(0xb4)]())throw new Error(_0x1bfd71(0xcd)+_0x2f7fc0);return[relative(_0x49b8d8,_0x2f7fc0)[_0x1bfd71(0xb5)](sep)[_0x1bfd71(0xda)]('/')];})['sort']((_0x445bd9,_0x35ff5a)=>_0x445bd9<_0x35ff5a?-0x1:_0x445bd9>_0x35ff5a?0x1:0x0);}function a132_0x5503(){const _0x1e77fa=['skills','SKILL.md','message','Unsupported\x20Skill\x20entry:\x20','6721872wNCNMK','status','installedPath','515hByYyc','home','skillVersion','utf8','missing','hex','isDirectory','name','pipe','join','Installed\x20Skill\x20state\x20is\x20','flatMap','19056321rQCgAr','digest',':\x5cs*(.+)$','Unsafe\x20manifest\x20path:\x20','files','unknown','manifest','update','length','version_mismatch','1263PWzaUW','2266lLzeYg','includes','lovrabet.manifest.json','content_mismatch','packageVersion','isFile','split','6560958Gshrjs','Symbolic\x20link\x20is\x20not\x20allowed:\x20','9566088neYyEX','VERIFY_FAILED','absent','present','skills@latest\x20exited\x20','version','skipped','current','state','reason','16436FeRVpc','packageRoot','275418WPvpnr','parse','lovrabet\x20cli-skill\x20install','unverifiable','every','path'];a132_0x5503=function(){return _0x1e77fa;};return a132_0x5503();}function digestFiles(_0x2a1f95,_0x15d19c){const _0x45d8e5=a132_0x5696fa,_0x31e80d=createHash('sha256');for(const _0x212018 of _0x15d19c){if(_0x212018['startsWith']('/')||_0x212018[_0x45d8e5(0xb5)]('/')['includes']('..')||_0x212018[_0x45d8e5(0xb0)]('\x5c'))throw new Error(_0x45d8e5(0xe0)+_0x212018);_0x31e80d[_0x45d8e5(0xab)](_0x212018),_0x31e80d[_0x45d8e5(0xab)]('\x00'),_0x31e80d[_0x45d8e5(0xab)](readFileSync(join(_0x2a1f95,..._0x212018[_0x45d8e5(0xb5)]('/')))),_0x31e80d['update']('\x00');}return _0x31e80d[_0x45d8e5(0xde)](_0x45d8e5(0xd6));}function sameFiles(_0x535c5f,_0x20858a){const _0x2660fe=a132_0x5696fa;return _0x535c5f['length']===_0x20858a[_0x2660fe(0xac)]&&_0x535c5f[_0x2660fe(0xc8)]((_0x12e6fc,_0x2d48ca)=>_0x12e6fc===_0x20858a[_0x2d48ca]);}function readSource(_0x405402){const _0x144389=a132_0x5696fa,_0x3f8e6b=JSON[_0x144389(0xc5)](readFileSync(join(_0x405402,'package.json'),'utf8')),_0x4506a4=JSON[_0x144389(0xc5)](readFileSync(join(_0x405402,_0x144389(0xca),_0x144389(0xb1)),'utf8')),_0x2e4e4f=join(_0x405402,'skills',SKILL_NAME),_0xd2c1d1=frontmatterValue(readFileSync(join(_0x2e4e4f,_0x144389(0xcb)),_0x144389(0xd4)),_0x144389(0xbd)),_0x26504d=listFiles(_0x2e4e4f);if(_0x4506a4['schemaVersion']!==0x1||_0x4506a4[_0x144389(0xd8)]!==SKILL_NAME||!_0x3f8e6b[_0x144389(0xbd)]||_0x4506a4[_0x144389(0xb3)]!==_0x3f8e6b[_0x144389(0xbd)]||_0x4506a4[_0x144389(0xd3)]!==_0x3f8e6b[_0x144389(0xbd)]||_0xd2c1d1!==_0x3f8e6b[_0x144389(0xbd)]||!sameFiles(_0x26504d,_0x4506a4[_0x144389(0xe1)])||digestFiles(_0x2e4e4f,_0x26504d)!==_0x4506a4[_0x144389(0xde)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x3f8e6b[_0x144389(0xbd)],'skillVersion':_0xd2c1d1,'root':_0x2e4e4f,'manifest':_0x4506a4};}function installedSkillPath(_0x25139d){const _0x3ab858=a132_0x5696fa,_0x8e7682=resolveInstalledSkill(SKILL_NAME,{'home':_0x25139d});if(_0x8e7682['state']==='present')return{'state':_0x3ab858(0xbb),'path':dirname(_0x8e7682['path'])};if(_0x8e7682[_0x3ab858(0xc0)]===_0x3ab858(0xba))return{'state':'missing'};return{'state':_0x3ab858(0xc7),'reason':_0x8e7682['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x34fa35,_0x1d1134={}){const _0x16fc5d=a132_0x5696fa,_0x52eeb3=installedSkillPath(_0x1d1134[_0x16fc5d(0xd2)]??homedir());if(_0x52eeb3[_0x16fc5d(0xc0)]===_0x16fc5d(0xd5))return{'state':_0x16fc5d(0xd5),'expectedVersion':_0x34fa35,'repairCommand':REPAIR_COMMAND};if(_0x52eeb3['state']===_0x16fc5d(0xc7))return{'state':_0x16fc5d(0xc7),'expectedVersion':_0x34fa35,'reason':_0x52eeb3[_0x16fc5d(0xc1)],'repairCommand':REPAIR_COMMAND};try{const _0x52dffa=frontmatterValue(readFileSync(join(_0x52eeb3[_0x16fc5d(0xc9)],'SKILL.md'),_0x16fc5d(0xd4)),_0x16fc5d(0xbd));return{'state':_0x52dffa===_0x34fa35?'current':_0x16fc5d(0xad),'expectedVersion':_0x34fa35,'skillVersion':_0x52dffa,'installedPath':_0x52eeb3[_0x16fc5d(0xc9)],'repairCommand':REPAIR_COMMAND};}catch(_0x57e213){return{'state':_0x16fc5d(0xc7),'expectedVersion':_0x34fa35,'installedPath':_0x52eeb3[_0x16fc5d(0xc9)],'reason':_0x57e213 instanceof Error?_0x57e213[_0x16fc5d(0xcc)]:String(_0x57e213),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x1830a0={}){const _0x4c85cb=a132_0x5696fa,_0x44b291=_0x1830a0['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x5e3d01;try{_0x5e3d01=readSource(_0x44b291);}catch(_0x586498){return{'state':'unverifiable','packageVersion':_0x4c85cb(0xa9),'reason':_0x586498 instanceof Error?_0x586498[_0x4c85cb(0xcc)]:String(_0x586498),'repairCommand':REPAIR_COMMAND};}const _0x369c6e=installedSkillPath(_0x1830a0[_0x4c85cb(0xd2)]??homedir());if(_0x369c6e[_0x4c85cb(0xc0)]===_0x4c85cb(0xd5))return{'state':_0x4c85cb(0xd5),'packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'repairCommand':REPAIR_COMMAND};if(_0x369c6e[_0x4c85cb(0xc0)]===_0x4c85cb(0xc7))return{'state':'unverifiable','packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'reason':_0x369c6e[_0x4c85cb(0xc1)],'repairCommand':REPAIR_COMMAND};try{const _0x51bb9d=frontmatterValue(readFileSync(join(_0x369c6e[_0x4c85cb(0xc9)],'SKILL.md'),_0x4c85cb(0xd4)),_0x4c85cb(0xbd));if(_0x51bb9d!==_0x5e3d01['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x5e3d01['packageVersion'],'skillVersion':_0x51bb9d,'installedPath':_0x369c6e['path'],'repairCommand':REPAIR_COMMAND};const _0x4a7b14=listFiles(_0x369c6e[_0x4c85cb(0xc9)]),_0x2ef3f5=digestFiles(_0x369c6e[_0x4c85cb(0xc9)],_0x4a7b14);return{'state':sameFiles(_0x4a7b14,_0x5e3d01[_0x4c85cb(0xaa)]['files'])&&_0x2ef3f5===_0x5e3d01[_0x4c85cb(0xaa)][_0x4c85cb(0xde)]?_0x4c85cb(0xbf):_0x4c85cb(0xb2),'packageVersion':_0x5e3d01[_0x4c85cb(0xb3)],'skillVersion':_0x51bb9d,'installedPath':_0x369c6e[_0x4c85cb(0xc9)],'digest':_0x2ef3f5,'repairCommand':REPAIR_COMMAND};}catch(_0x38e753){return{'state':_0x4c85cb(0xc7),'packageVersion':_0x5e3d01['packageVersion'],'installedPath':_0x369c6e[_0x4c85cb(0xc9)],'reason':_0x38e753 instanceof Error?_0x38e753[_0x4c85cb(0xcc)]:String(_0x38e753),'repairCommand':REPAIR_COMMAND};}}function a132_0x53d0(_0x39367f,_0x5859a2){_0x39367f=_0x39367f-0xa9;const _0x5503c9=a132_0x5503();let _0x53d0f8=_0x5503c9[_0x39367f];return _0x53d0f8;}function failure(_0x12cb74,_0x2b4750,_0x512564,_0x5d9832){const _0x3050c2=a132_0x5696fa;return{'ok':![],'code':_0x12cb74,'packageVersion':_0x2b4750[_0x3050c2(0xb3)],'skillVersion':_0x2b4750[_0x3050c2(0xd3)],'installedPath':_0x5d9832,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x512564 instanceof Error?_0x512564[_0x3050c2(0xcc)]:String(_0x512564)};}export function installBuiltinSkill(_0x7b61a2={}){const _0x47201e=a132_0x5696fa,_0x3cd796=_0x7b61a2[_0x47201e(0xc3)]??DEFAULT_PACKAGE_ROOT,_0x517ad7=_0x7b61a2[_0x47201e(0xd2)]??homedir();let _0x3771e9;try{_0x3771e9=readSource(_0x3cd796);}catch(_0x5684e9){return failure('SOURCE_INVALID',{'packageVersion':'unknown','skillVersion':_0x47201e(0xa9)},_0x5684e9);}const _0xac5edf=inspectBuiltinSkill({'packageRoot':_0x3cd796,'home':_0x517ad7}),_0x51f86f=runNpxSkillsAddGlobal(_0x3cd796,_0x3771e9['root'],{'stdio':_0x7b61a2['stdio']??_0x47201e(0xd9),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x517ad7}});if(_0x51f86f[_0x47201e(0xbe)])return{'ok':!![],'packageVersion':_0x3771e9[_0x47201e(0xb3)],'skillVersion':_0x3771e9['skillVersion'],'installedPath':_0xac5edf[_0x47201e(0xd0)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x51f86f['ok'])return failure('INSTALL_FAILED',_0x3771e9,_0x51f86f['error']??_0x47201e(0xbc)+_0x51f86f[_0x47201e(0xcf)]);const _0x483dd2=inspectBuiltinSkill({'packageRoot':_0x3cd796,'home':_0x517ad7});if(_0x483dd2[_0x47201e(0xc0)]!==_0x47201e(0xbf))return failure(_0x47201e(0xb9),_0x3771e9,_0x483dd2[_0x47201e(0xc1)]??_0x47201e(0xdb)+_0x483dd2['state'],_0x483dd2[_0x47201e(0xd0)]);return{'ok':!![],'packageVersion':_0x3771e9[_0x47201e(0xb3)],'skillVersion':_0x3771e9['skillVersion'],'installedPath':_0x483dd2[_0x47201e(0xd0)],'changed':_0xac5edf[_0x47201e(0xc0)]!==_0x47201e(0xbf),'repairCommand':REPAIR_COMMAND};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x5727ce=a133_0x32ec;(function(_0x3be807,_0x29dd26){const _0x3bff49=a133_0x32ec,_0x3e0dab=_0x3be807();while(!![]){try{const _0x140dcc=-parseInt(_0x3bff49(0x158))/0x1*(-parseInt(_0x3bff49(0x153))/0x2)+parseInt(_0x3bff49(0x12e))/0x3+-parseInt(_0x3bff49(0x134))/0x4*(parseInt(_0x3bff49(0x148))/0x5)+-parseInt(_0x3bff49(0x129))/0x6*(parseInt(_0x3bff49(0x14a))/0x7)+-parseInt(_0x3bff49(0x151))/0x8+-parseInt(_0x3bff49(0x141))/0x9*(-parseInt(_0x3bff49(0x155))/0xa)+parseInt(_0x3bff49(0x154))/0xb;if(_0x140dcc===_0x29dd26)break;else _0x3e0dab['push'](_0x3e0dab['shift']());}catch(_0xf0d002){_0x3e0dab['push'](_0x3e0dab['shift']());}}}(a133_0x53b0,0xc4fd3));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a133_0x1a85da}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a133_0x32ec(_0x2a54b7,_0x2ee235){_0x2a54b7=_0x2a54b7-0x128;const _0x53b0f8=a133_0x53b0();let _0x32ece6=_0x53b0f8[_0x2a54b7];return _0x32ece6;}import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a133_0x1a85da;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a133_0x5727ce(0x12a)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG['globalSkillName'];export function resolveGlobalSkillName(_0x40673f){const _0x29c247=a133_0x5727ce;switch(_0x40673f[_0x29c247(0x14c)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}function a133_0x53b0(){const _0xc52349=['stderr','stdout','CHILD_EXIT_NONZERO','error','log','presence','50ufvCjr','exit\x20','2448803zGQNGZ','signal','trim','npx','npx\x20terminated\x20by\x20signal\x20','INSTALL_PARTIAL','EPERM','9740776HGiHFv','code','4zAlreu','18520095KKgwec','10wpJftO','stdio','filter','165730PlDlKX','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','SPAWN_FAILED','absent','\x22\x20install\x20state:\x20','12NzDdlO','internalSkillSource','reason','match','!\x20Could\x20not\x20verify\x20\x22','1985262HejUzT','npm_config_global','checked','join','EACCES','unknown','306040bmIMGX','expectedSkillName','unverifiable','skipNpxSkillsEnvSuffix','Skill\x20\x22','Installer\x20reported\x20','\x20failed\x20target(s)','CHILD_TERMINATED','status','warn','toString','state','NPX_NOT_FOUND','7311267opvoqf'];a133_0x53b0=function(){return _0xc52349;};return a133_0x53b0();}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a133_0x5727ce(0x137)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xcbb839,_0x1ea4df,_0x15e6b2){return{'ok':![],'status':_0x1ea4df,'code':_0xcbb839,'error':'['+_0xcbb839+']\x20'+_0x15e6b2};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x47c432,_0x56df7a=LOVRABET_SKILL_SOURCE,_0x47d43e){const _0x2202f0=a133_0x5727ce;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3efdb2=resolveNpmBin(_0x2202f0(0x14d)),_0x5936ce=['-y','skills@latest','add',_0x56df7a,'-g','-y'],_0x3fb37f=[_0x3efdb2,..._0x5936ce][_0x2202f0(0x131)]('\x20');console[_0x2202f0(0x146)]('*\x20'+_0x3fb37f);const _0x1af4ab={...process.env};delete _0x1af4ab[_0x2202f0(0x12f)],delete _0x1af4ab['NPM_CONFIG_GLOBAL'];const _0x1cea5a=spawnSync(_0x3efdb2,_0x5936ce,{'cwd':_0x47c432,'stdio':'pipe','env':_0x1af4ab,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x29496e=[_0x1cea5a[_0x2202f0(0x143)]?_0x1cea5a['stdout'][_0x2202f0(0x13e)]():'',_0x1cea5a[_0x2202f0(0x142)]?_0x1cea5a['stderr']['toString']():''][_0x2202f0(0x157)](Boolean)['join']('\x0a')[_0x2202f0(0x14c)]();_0x47d43e?.[_0x2202f0(0x156)]!=='pipe'&&_0x29496e&&console[_0x2202f0(0x146)](_0x29496e);if(_0x1cea5a[_0x2202f0(0x145)]){const _0x217f28=_0x1cea5a[_0x2202f0(0x145)],_0x43f4b9=_0x217f28[_0x2202f0(0x152)]==='ENOENT'?_0x2202f0(0x140):_0x217f28[_0x2202f0(0x152)]===_0x2202f0(0x150)||_0x217f28['code']===_0x2202f0(0x132)?'PERMISSION_DENIED':_0x2202f0(0x15a);return failure(_0x43f4b9,_0x1cea5a[_0x2202f0(0x13c)],_0x217f28['message']);}if(_0x1cea5a[_0x2202f0(0x14b)])return failure(_0x2202f0(0x13b),_0x1cea5a[_0x2202f0(0x13c)],_0x2202f0(0x14e)+_0x1cea5a[_0x2202f0(0x14b)]);if(_0x1cea5a[_0x2202f0(0x13c)]!==0x0)return failure(_0x2202f0(0x144),_0x1cea5a[_0x2202f0(0x13c)],_0x29496e||_0x2202f0(0x149)+(_0x1cea5a['status']??_0x2202f0(0x133)));const _0x5281ca=_0x29496e[_0x2202f0(0x12c)](/Failed to install\s+(\d+)/i);if(_0x5281ca&&Number(_0x5281ca[0x1])>0x0)return failure(_0x2202f0(0x14f),0x0,_0x2202f0(0x139)+_0x5281ca[0x1]+_0x2202f0(0x13a)+(_0x29496e?':\x0a'+_0x29496e:''));const _0x269427=_0x47d43e?.[_0x2202f0(0x135)]??resolveGlobalSkillName(_0x56df7a);if(_0x269427){const _0x3efe57=resolveInstalledSkill(_0x269427,_0x47d43e?.[_0x2202f0(0x147)]);if(_0x3efe57[_0x2202f0(0x13f)]===_0x2202f0(0x15b))return failure('SKILL_NOT_INSTALLED',0x0,_0x2202f0(0x138)+_0x269427+_0x2202f0(0x159)+_0x3efe57[_0x2202f0(0x130)][_0x2202f0(0x131)](',\x20')+')');_0x3efe57[_0x2202f0(0x13f)]===_0x2202f0(0x136)&&console[_0x2202f0(0x13d)](_0x2202f0(0x12d)+_0x269427+_0x2202f0(0x128)+_0x3efe57[_0x2202f0(0x12b)]);}return{'ok':!![],'status':0x0};}
|