@lovrabet/lovrabet-cli 2.3.0-beta.2 → 2.3.0-beta.4
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
|
+
function a114_0x4bac(){const _0x4d319e=['9OCEAtg','retryAfter','entries','1131XkwmNL','status','string','\x20seconds\x20before\x20retrying.','3221364ThFVaR','245SMbXtt','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','isArray','toLowerCase','message','853448tXrPMj','get','toUpperCase','rateLimited','function','Retry\x20after\x20','460615IiRNMR','EXCEED_MAX_QPS_LIMIT','retryAfterSeconds','call','5132323vVuhmk','Wait\x20','retry-after','17118470soiTiT','has','318ejzWNQ','object','isInteger','test','trim','errorCode','146532tWdKYp','Retry\x20after\x20a\x20short\x20delay.','Retry-After','Request\x20rate\x20limit\x20exceeded.','number'];a114_0x4bac=function(){return _0x4d319e;};return a114_0x4bac();}const a114_0x56901e=a114_0xb53b;(function(_0x5e93ea,_0x57902a){const _0x42bf5c=a114_0xb53b,_0x2af746=_0x5e93ea();while(!![]){try{const _0x5ee881=parseInt(_0x42bf5c(0x197))/0x1+-parseInt(_0x42bf5c(0x1a0))/0x2*(parseInt(_0x42bf5c(0x187))/0x3)+parseInt(_0x42bf5c(0x18b))/0x4+-parseInt(_0x42bf5c(0x18c))/0x5*(parseInt(_0x42bf5c(0x1a6))/0x6)+-parseInt(_0x42bf5c(0x19b))/0x7+parseInt(_0x42bf5c(0x191))/0x8*(-parseInt(_0x42bf5c(0x184))/0x9)+parseInt(_0x42bf5c(0x19e))/0xa;if(_0x5ee881===_0x57902a)break;else _0x2af746['push'](_0x2af746['shift']());}catch(_0x482aae){_0x2af746['push'](_0x2af746['shift']());}}}(a114_0x4bac,0xd72a0));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a114_0x56901e(0x198),'MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0xb9c954){const _0x418331=a114_0x56901e;if(typeof _0xb9c954!==_0x418331(0x189))return undefined;const _0x564085=_0xb9c954[_0x418331(0x1a4)]();return _0x564085||undefined;}function a114_0xb53b(_0x3c521a,_0x432242){_0x3c521a=_0x3c521a-0x181;const _0x4baccf=a114_0x4bac();let _0xb53b85=_0x4baccf[_0x3c521a];return _0xb53b85;}function buildRetryHint(_0x5033be){const _0x35bce6=a114_0x56901e,_0x227f14=nonEmptyString(_0x5033be),_0xef818d=_0x227f14?/^\d+$/['test'](_0x227f14)?_0x35bce6(0x19c)+_0x227f14+_0x35bce6(0x18a):_0x35bce6(0x196)+_0x227f14+'.':_0x35bce6(0x1a7);return _0xef818d+_0x35bce6(0x18d);}export function createRateLimitError(_0x1ec948){const _0x581a05=a114_0x56901e,_0x4452dd=nonEmptyString(_0x1ec948[_0x581a05(0x1a5)])?.[_0x581a05(0x193)](),_0x48227c=Number(_0x1ec948[_0x581a05(0x188)])===0x1ad||_0x4452dd!==undefined&&RATE_LIMIT_ERROR_CODES[_0x581a05(0x19f)](_0x4452dd);if(!_0x48227c)return undefined;return CliErrors[_0x581a05(0x194)](nonEmptyString(_0x1ec948[_0x581a05(0x190)])??_0x581a05(0x182),buildRetryHint(_0x1ec948[_0x581a05(0x185)]));}export function readRetryAfter(_0x1e4df9){const _0x36e5d2=a114_0x56901e;if(!_0x1e4df9||typeof _0x1e4df9!==_0x36e5d2(0x1a1))return undefined;const _0xf01c47=_0x1e4df9[_0x36e5d2(0x192)];if(typeof _0xf01c47===_0x36e5d2(0x195)){const _0x37a609=_0xf01c47[_0x36e5d2(0x19a)](_0x1e4df9,_0x36e5d2(0x181))??_0xf01c47[_0x36e5d2(0x19a)](_0x1e4df9,_0x36e5d2(0x19d));return nonEmptyString(_0x37a609);}for(const [_0x59dc6e,_0x442e99]of Object[_0x36e5d2(0x186)](_0x1e4df9)){if(_0x59dc6e[_0x36e5d2(0x18f)]()===_0x36e5d2(0x19d))return nonEmptyString(_0x442e99)??(typeof _0x442e99===_0x36e5d2(0x183)?String(_0x442e99):undefined);}return undefined;}export function readRetryAfterSeconds(_0x328a31){const _0x222fdc=a114_0x56901e;if(!_0x328a31||typeof _0x328a31!==_0x222fdc(0x1a1)||Array[_0x222fdc(0x18e)](_0x328a31))return undefined;const _0x193d62=_0x328a31[_0x222fdc(0x199)];if(typeof _0x193d62===_0x222fdc(0x183))return Number[_0x222fdc(0x1a2)](_0x193d62)&&_0x193d62>=0x0?String(_0x193d62):undefined;const _0x3cb197=nonEmptyString(_0x193d62);return _0x3cb197&&/^\d+$/[_0x222fdc(0x1a3)](_0x3cb197)?_0x3cb197:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a115_0x36600f=a115_0x21bb;function a115_0x1afe(){const _0x465294=['18peKOOO','Run\x20`','where','798076lZsVgf','asc','\x20--help`\x20to\x20see\x20accepted\x20flags.','add','204keBqXh','entries','command','no-','pagesize','flags','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','9586136JbzIyy','Unknown\x20flag\x20--','page-size','28097310AGqWHr','3005009MiYbLj','filter','34420ihkOzT','validation','name','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','data','order-by','has','active','1992845DCZurt','\x20for\x20`','meowKey','currentpage','4105278IglcYY','2VyijKR','service','orderby','stringify','page'];a115_0x1afe=function(){return _0x465294;};return a115_0x1afe();}(function(_0x50f7d8,_0x30df9e){const _0x37c4e8=a115_0x21bb,_0x15cea5=_0x50f7d8();while(!![]){try{const _0x517b92=-parseInt(_0x37c4e8(0x1aa))/0x1*(-parseInt(_0x37c4e8(0x1b2))/0x2)+-parseInt(_0x37c4e8(0x1b6))/0x3*(parseInt(_0x37c4e8(0x19d))/0x4)+parseInt(_0x37c4e8(0x1a5))/0x5*(-parseInt(_0x37c4e8(0x1af))/0x6)+-parseInt(_0x37c4e8(0x19b))/0x7+-parseInt(_0x37c4e8(0x197))/0x8+parseInt(_0x37c4e8(0x1a9))/0x9+parseInt(_0x37c4e8(0x19a))/0xa;if(_0x517b92===_0x30df9e)break;else _0x15cea5['push'](_0x15cea5['shift']());}catch(_0x2c89c4){_0x15cea5['push'](_0x15cea5['shift']());}}}(a115_0x1afe,0xa00bc));import{CliErrors}from'../errors.js';function a115_0x21bb(_0x4aceca,_0x3180b2){_0x4aceca=_0x4aceca-0x192;const _0x1afe45=a115_0x1afe();let _0x21bb55=_0x1afe45[_0x4aceca];return _0x21bb55;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a115_0x36600f(0x1b1),'select',a115_0x36600f(0x1a2),a115_0x36600f(0x1ac),'current-page',a115_0x36600f(0x1a8),a115_0x36600f(0x1ae),a115_0x36600f(0x199),a115_0x36600f(0x194)]);export function assertKnownCommandFlags(_0x55aa70,_0x9145cd){const _0x1b9deb=a115_0x36600f,_0x249d39=new Set(['version']);for(const _0x583eee of GLOBAL_FLAGS){_0x249d39[_0x1b9deb(0x1b5)](_0x583eee[_0x1b9deb(0x19f)]),_0x249d39[_0x1b9deb(0x1b5)](toKebab(_0x583eee[_0x1b9deb(0x1a7)]));}for(const _0x1059c9 of _0x55aa70[_0x1b9deb(0x195)]??[]){_0x249d39['add'](_0x1059c9['name']);}for(const [_0x1e1c55,_0x25d3ca]of Object[_0x1b9deb(0x1b7)](_0x9145cd)){const _0x881fa2=toKebab(_0x1e1c55);if(_0x249d39[_0x1b9deb(0x1a3)](_0x881fa2))continue;if(_0x25d3ca===![]&&_0x249d39[_0x1b9deb(0x1a3)](_0x1b9deb(0x193)+_0x881fa2))continue;if(_0x55aa70[_0x1b9deb(0x1ab)]===_0x1b9deb(0x1a1)&&_0x55aa70[_0x1b9deb(0x192)]===_0x1b9deb(0x19c)&&FILTER_BODY_FIELDS[_0x1b9deb(0x1a3)](_0x881fa2))throw CliErrors[_0x1b9deb(0x19e)]('--'+_0x881fa2+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.',_0x1b9deb(0x1a0)+('Example:\x20'+CLI_BIN_NAME+_0x1b9deb(0x196))+('\x27'+JSON[_0x1b9deb(0x1ad)]({'where':{'status':{'$eq':_0x1b9deb(0x1a4)}},'orderBy':[{'id':_0x1b9deb(0x1b3)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x1b9deb(0x19e)](_0x1b9deb(0x198)+_0x881fa2+_0x1b9deb(0x1a6)+CLI_BIN_NAME+'\x20'+_0x55aa70[_0x1b9deb(0x1ab)]+'\x20'+_0x55aa70[_0x1b9deb(0x192)]+'`.',_0x1b9deb(0x1b0)+CLI_BIN_NAME+'\x20'+_0x55aa70[_0x1b9deb(0x1ab)]+'\x20'+_0x55aa70[_0x1b9deb(0x192)]+_0x1b9deb(0x1b4));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a116_0x59a5(_0x4f8e1b,_0x1ae1ff){_0x4f8e1b=_0x4f8e1b-0x1cf;var _0x2071fb=a116_0x2071();var _0x59a5b6=_0x2071fb[_0x4f8e1b];return _0x59a5b6;}(function(_0x3e5fba,_0x2d8b2e){var _0x20d254=a116_0x59a5,_0x2b8c21=_0x3e5fba();while(!![]){try{var _0x17a6d5=parseInt(_0x20d254(0x1d7))/0x1*(parseInt(_0x20d254(0x1d1))/0x2)+-parseInt(_0x20d254(0x1d5))/0x3*(-parseInt(_0x20d254(0x1d9))/0x4)+-parseInt(_0x20d254(0x1da))/0x5*(-parseInt(_0x20d254(0x1cf))/0x6)+-parseInt(_0x20d254(0x1db))/0x7*(parseInt(_0x20d254(0x1d4))/0x8)+-parseInt(_0x20d254(0x1d3))/0x9*(parseInt(_0x20d254(0x1d8))/0xa)+-parseInt(_0x20d254(0x1dc))/0xb*(parseInt(_0x20d254(0x1d0))/0xc)+parseInt(_0x20d254(0x1d6))/0xd*(-parseInt(_0x20d254(0x1d2))/0xe);if(_0x17a6d5===_0x2d8b2e)break;else _0x2b8c21['push'](_0x2b8c21['shift']());}catch(_0x1261ec){_0x2b8c21['push'](_0x2b8c21['shift']());}}}(a116_0x2071,0x5eaab));function a116_0x2071(){var _0x4422d3=['6450TKffiE','1062838dutQYM','1657701Muruwh','9752NZiEmC','1307739WFaaRJ','13XrGMJR','191METnRs','30pImCNK','4dLZqCs','1268675IfXTnE','1365ukpxye','70697NEKYHI','18qoynqY','1044sunTxQ'];a116_0x2071=function(){return _0x4422d3;};return a116_0x2071();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x261457,_0x220daf){const _0x4fba12=a117_0xa33c,_0x1b6774=_0x261457();while(!![]){try{const _0x2982ba=-parseInt(_0x4fba12(0x1e7))/0x1+-parseInt(_0x4fba12(0x1e1))/0x2*(-parseInt(_0x4fba12(0x1e8))/0x3)+parseInt(_0x4fba12(0x1ee))/0x4+-parseInt(_0x4fba12(0x1f5))/0x5+-parseInt(_0x4fba12(0x1d2))/0x6+-parseInt(_0x4fba12(0x1ec))/0x7+-parseInt(_0x4fba12(0x1da))/0x8*(-parseInt(_0x4fba12(0x1d7))/0x9);if(_0x2982ba===_0x220daf)break;else _0x1b6774['push'](_0x1b6774['shift']());}catch(_0x90c15a){_0x1b6774['push'](_0x1b6774['shift']());}}}(a117_0x2cd6,0xc47df));function a117_0x2cd6(){const _0xd4cfe5=['scheduled-at','entries','description','title=','3640ACjXuE','length','\x20\x20\x20Continue?\x20[y/N]\x20','push','\x20\x20\x20','params=','730606TEnuUe','1707qYcvwp','id=','join','command','4361259oJlcfh','channel=','1276372wLRAqG','channel','commandLabel','affectedRecords','scheduled-at=','code','service','7372670iGxMCM','cron=','name=','schedule-id','stringify','1413666TaAgAM','name','code=','cron','params','207rWOBWe','schedule-id=','title','874416WmmgSP','\x20\x20\x20Affected:\x20','--yes'];a117_0x2cd6=function(){return _0xd4cfe5;};return a117_0x2cd6();}import{CLI_BIN_NAME}from'../constant/cli.js';function a117_0xa33c(_0x32ea6a,_0x16985d){_0x32ea6a=_0x32ea6a-0x1d0;const _0x2cd66e=a117_0x2cd6();let _0xa33ccc=_0x2cd66e[_0x32ea6a];return _0xa33ccc;}export function buildConfirmationLines(_0x467269,_0x4127e9,_0x19259f){const _0x5bc6c7=a117_0xa33c,_0x5432cb=buildConfirmationContext(_0x467269,_0x4127e9,_0x19259f),_0x51d019=['⚠\x20\x20High-risk\x20operation:\x20'+_0x5432cb[_0x5bc6c7(0x1f0)]];return _0x5432cb[_0x5bc6c7(0x1df)]&&_0x51d019[_0x5bc6c7(0x1e4)](_0x5bc6c7(0x1e5)+_0x5432cb['description']),_0x5432cb[_0x5bc6c7(0x1f1)]&&_0x51d019[_0x5bc6c7(0x1e4)](_0x5bc6c7(0x1db)+_0x5432cb[_0x5bc6c7(0x1f1)]),_0x51d019['push'](_0x5bc6c7(0x1e3)),_0x51d019;}export function reconstructCommandArgv(_0x4abd84,_0x42466f){const _0x16754a=a117_0xa33c,_0x4b8c9a=[CLI_BIN_NAME,_0x4abd84[_0x16754a(0x1f4)],_0x4abd84[_0x16754a(0x1eb)]];for(const [_0x542994,_0x420892]of Object[_0x16754a(0x1de)](_0x42466f)){if(_0x420892===!![])_0x4b8c9a[_0x16754a(0x1e4)]('--'+_0x542994);else _0x420892!==![]&&_0x420892!==undefined&&_0x420892!==''&&_0x4b8c9a[_0x16754a(0x1e4)]('--'+_0x542994+'\x20'+JSON[_0x16754a(0x1d1)](_0x420892));}return _0x4b8c9a['push'](_0x16754a(0x1dc)),_0x4b8c9a['join']('\x20');}function buildConfirmationContext(_0x296c25,_0x1d9f2a,_0x118f36){const _0x14ca56=a117_0xa33c,_0x3274b6=extractAffectedRecords(_0x118f36);return{'commandLabel':_0x1d9f2a,'description':_0x296c25[_0x14ca56(0x1df)],'affectedRecords':_0x3274b6};}function extractAffectedRecords(_0x479f98){const _0x540c94=a117_0xa33c,_0x5578d8=[];if(_0x479f98['code'])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1d4)+_0x479f98[_0x540c94(0x1f3)]);if(_0x479f98['id'])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1e9)+_0x479f98['id']);if(_0x479f98['schedule-id'])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1d8)+_0x479f98[_0x540c94(0x1d0)]);if(_0x479f98[_0x540c94(0x1d3)])_0x5578d8['push'](_0x540c94(0x1f7)+_0x479f98[_0x540c94(0x1d3)]);if(_0x479f98['title'])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1e0)+_0x479f98[_0x540c94(0x1d9)]);if(_0x479f98['kind'])_0x5578d8[_0x540c94(0x1e4)]('kind='+_0x479f98['kind']);if(_0x479f98[_0x540c94(0x1d5)])_0x5578d8['push'](_0x540c94(0x1f6)+_0x479f98[_0x540c94(0x1d5)]);if(_0x479f98[_0x540c94(0x1dd)])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1f2)+_0x479f98['scheduled-at']);if(_0x479f98['channel'])_0x5578d8[_0x540c94(0x1e4)](_0x540c94(0x1ed)+_0x479f98[_0x540c94(0x1ef)]);if(_0x479f98['params'])_0x5578d8['push'](_0x540c94(0x1e6)+_0x479f98[_0x540c94(0x1d6)]);return _0x5578d8[_0x540c94(0x1e2)]>0x0?_0x5578d8[_0x540c94(0x1ea)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a3677,_0x159237){const _0x1dd0f4=a118_0x55a9,_0x47494=_0x4a3677();while(!![]){try{const _0x301da2=-parseInt(_0x1dd0f4(0x196))/0x1*(parseInt(_0x1dd0f4(0x19d))/0x2)+parseInt(_0x1dd0f4(0x19a))/0x3*(parseInt(_0x1dd0f4(0x190))/0x4)+parseInt(_0x1dd0f4(0x19b))/0x5*(-parseInt(_0x1dd0f4(0x18b))/0x6)+parseInt(_0x1dd0f4(0x194))/0x7+parseInt(_0x1dd0f4(0x19c))/0x8*(parseInt(_0x1dd0f4(0x198))/0x9)+-parseInt(_0x1dd0f4(0x191))/0xa+parseInt(_0x1dd0f4(0x199))/0xb*(parseInt(_0x1dd0f4(0x18c))/0xc);if(_0x301da2===_0x159237)break;else _0x47494['push'](_0x47494['shift']());}catch(_0x5329b4){_0x47494['push'](_0x47494['shift']());}}}(a118_0x3c18,0x4a98a));function a118_0x55a9(_0x38fee8,_0x592a2e){_0x38fee8=_0x38fee8-0x18b;const _0x3c1821=a118_0x3c18();let _0x55a948=_0x3c1821[_0x38fee8];return _0x55a948;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0xe4a8f4){const _0x11f0ff=a118_0x55a9;if(_0xe4a8f4 instanceof LovrabetError){const _0x2b48d4=userFacingLovrabetMessage(_0xe4a8f4),_0x18aafd=_0xe4a8f4,_0x50a739=createRateLimitError({'status':_0x18aafd['status'],'errorCode':_0x18aafd[_0x11f0ff(0x195)],'message':_0x2b48d4,'retryAfter':readRetryAfter(_0x18aafd[_0x11f0ff(0x18f)]?.['headers'])??readRetryAfterSeconds(_0x18aafd['response'])});return _0x50a739??CliErrors[_0x11f0ff(0x18d)](_0x2b48d4);}return _0xe4a8f4;}function userFacingLovrabetMessage(_0x467f25){const _0x412b6c=a118_0x55a9,_0x30a76d=_0x467f25[_0x412b6c(0x18e)];if(_0x30a76d!==undefined&&_0x30a76d!==null){if(typeof _0x30a76d===_0x412b6c(0x193)&&_0x30a76d[_0x412b6c(0x192)]())return _0x30a76d[_0x412b6c(0x192)]();try{return JSON['stringify'](_0x30a76d);}catch{}}return _0x467f25[_0x412b6c(0x197)];}function a118_0x3c18(){const _0x453cc0=['658856PCdfMv','1068384nbotmg','1420255MDPWlX','64iqbaMX','22934KyJMTq','12PTfWuo','96jjVWJa','validation','description','response','4qmFhhH','4949460kNUYKL','trim','string','4208918uBrTHf','code','16vrjOkR','message','129933gmOAUN'];a118_0x3c18=function(){return _0x453cc0;};return a118_0x3c18();}
|
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(_0x2203c7,_0x581603){const _0x2b72a7=a119_0x2388,_0x5294c9=_0x2203c7();while(!![]){try{const _0x4475c9=-parseInt(_0x2b72a7(0x9d))/0x1*(-parseInt(_0x2b72a7(0x90))/0x2)+-parseInt(_0x2b72a7(0x8c))/0x3+parseInt(_0x2b72a7(0x85))/0x4+parseInt(_0x2b72a7(0xab))/0x5*(-parseInt(_0x2b72a7(0x9b))/0x6)+parseInt(_0x2b72a7(0xb9))/0x7+-parseInt(_0x2b72a7(0x98))/0x8+-parseInt(_0x2b72a7(0xa4))/0x9*(-parseInt(_0x2b72a7(0xa3))/0xa);if(_0x4475c9===_0x581603)break;else _0x5294c9['push'](_0x5294c9['shift']());}catch(_0x3376d4){_0x5294c9['push'](_0x5294c9['shift']());}}}(a119_0x5d5d,0x29f46));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(_0x13147b){const _0x4bb170=a119_0x2388;return void _0x13147b,AUTH_MODE[_0x4bb170(0xb5)];}let sdkClientInitialized=![];export function createPipelineEnv(_0xd9c85b,_0xd1ed24){const _0x56dba1=a119_0x2388,_0x388a7f=typeof _0xd1ed24[_0x56dba1(0x84)]===_0x56dba1(0x8d)&&_0xd1ed24[_0x56dba1(0x84)][_0x56dba1(0x81)]();return{'rawFlags':_0xd1ed24,'appCode':_0xd9c85b[_0x56dba1(0xa7)]||productEnv(_0x56dba1(0x86))||(_0x388a7f?undefined:readAppCodeFromConfig()),'appCodeSource':_0xd9c85b['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0xd1ed24),'defaultFormat':_0xd9c85b[_0x56dba1(0xb8)],'defaultPageSize':_0xd9c85b['pageSize'],'defaultVerbose':_0xd9c85b[_0x56dba1(0x8f)],'riskLevel':_0xd9c85b[_0x56dba1(0x7f)],'accessKey':_0xd9c85b[_0x56dba1(0xac)],'env':_0xd9c85b[_0x56dba1(0x8e)],'mergedCli':{'defaultApp':_0xd9c85b[_0x56dba1(0x9c)],'currentApp':_0xd9c85b[_0x56dba1(0xbc)],'appCode':_0xd9c85b[_0x56dba1(0xa7)]}};}function a119_0x2388(_0x3b1192,_0x75d69d){_0x3b1192=_0x3b1192-0x7d;const _0x5d5d37=a119_0x5d5d();let _0x238897=_0x5d5d37[_0x3b1192];return _0x238897;}export function createLovrabetRunnerAdapter(_0x4de3ad={}){const _0x46a260=a119_0x2388,_0x441a5d={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x46a260(0x8b)](_0x4d2911=>PIPELINE_FLAG_NAMES[_0x46a260(0x7d)](_0x4d2911[_0x46a260(0x80)]))['map'](({name:_0x118866,type:_0x3d9ca2,description:_0x3af14e})=>({'name':_0x118866,'type':_0x3d9ca2,'description':_0x3af14e})),'formatOutput':_0x4de3ad[_0x46a260(0xaa)]??formatOutput,'getCommandLabel'(_0x35a886){const _0x5ef8cd=_0x46a260;return CLI_BIN_NAME+'\x20'+_0x35a886['service']+'\x20'+_0x35a886[_0x5ef8cd(0x99)];},'riskPolicy':{'onViolation'(_0x471f63){console['error'](_0x471f63);},'createError'(_0x14317e){const _0x2ec1d9=_0x46a260;return CliErrors[_0x2ec1d9(0x82)](_0x14317e);}},async 'prepare'(_0x2d5882,_0x5863a5){const _0x2667d3=_0x46a260,_0x37087c=resolveAuthMode(_0x5863a5);if(_0x2d5882[_0x2667d3(0xa1)]!==![]){if(!_0x5863a5[_0x2667d3(0xac)])throw CliErrors[_0x2667d3(0xa9)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x2667d3(0xb7)+productEnvName(_0x2667d3(0x93))+'.');const {setActiveAK:_0x524850}=await import(_0x2667d3(0xb3));_0x524850(_0x5863a5['accessKey']);}let _0x573263='';if(_0x2d5882[_0x2667d3(0x97)]!==![]){_0x573263=_0x5863a5['appCode']??'',_0x573263=await resolveExplicitAppName(_0x2d5882,_0x5863a5,_0x573263);if(!_0x573263){await assertSelectedAppNameIsRuntimeAccessible(_0x2d5882,_0x5863a5);throw CliErrors[_0x2667d3(0xbd)](_0x2667d3(0xbb)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x2d5882,_0x5863a5,_0x573263);}if(_0x573263){const {initSdkClient:_0xf152a9}=await import('../core/sdk-client.js');_0xf152a9({'appCode':_0x573263,'env':_0x5863a5[_0x2667d3(0x8e)]??'production','runtimeDomain':_0x5863a5[_0x2667d3(0xb6)],'accessKey':_0x5863a5[_0x2667d3(0xac)],'authMode':_0x37087c}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5863a5[_0x2667d3(0xaf)]},'numbers':{'pagesize':_0x5863a5[_0x2667d3(0x8a)]}},'extras':{'appCode':_0x573263,'cookie':'','apiDomain':_0x5863a5[_0x2667d3(0xb2)],'apiDir':'','accessKey':_0x5863a5[_0x2667d3(0xac)],'envName':_0x5863a5[_0x2667d3(0x8e)],'mergedCli':_0x5863a5[_0x2667d3(0xb4)]}};},'confirmHighRisk':_0x4de3ad[_0x46a260(0x92)]??(async({def:_0x535b0b,env:_0x493924,flags:_0x42f485,commandLabel:_0x4a6500})=>{const _0x4dffab=_0x46a260;if(_0x493924[_0x4dffab(0xbf)]){const _0x5dfc7a=reconstructCommandArgv(_0x535b0b,_0x42f485);throw CliErrors[_0x4dffab(0x9f)]('High-risk\x20operation\x20`'+_0x4a6500+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x4dffab(0xb1)+_0x5dfc7a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x535b0b,_0x4a6500,_0x42f485),'createCancelledError':_0x2af315=>CliErrors['cancelled'](_0x2af315)});}),'mapDryRunError'(_0x1e225e){return mapUserFacingExecuteError(_0x1e225e);},'mapExecuteError'(_0x14fc2d){return mapUserFacingExecuteError(_0x14fc2d);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x441a5d;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x7e8ddb=a119_0x2388;try{if(sdkClientInitialized){const {clearSdkClient:_0x2fb209}=await import(_0x7e8ddb(0x87));_0x2fb209();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5e0a06}=await import(_0x7e8ddb(0xb3));_0x5e0a06();}}async function resolveExplicitAppName(_0x220d19,_0x22c96d,_0x167be1){const _0x4a77f8=a119_0x2388;if(_0x220d19[_0x4a77f8(0x97)]===![])return _0x167be1;const _0x34c35e=typeof _0x22c96d['rawFlags'][_0x4a77f8(0x84)]==='string'?_0x22c96d[_0x4a77f8(0xa0)]['app'][_0x4a77f8(0x81)]():'';if(!_0x34c35e)return _0x167be1;const _0x5a5642=typeof _0x22c96d['rawFlags'][_0x4a77f8(0x94)]===_0x4a77f8(0x8d)&&_0x22c96d[_0x4a77f8(0xa0)][_0x4a77f8(0x94)][_0x4a77f8(0x81)]()||productEnv(_0x4a77f8(0x86));if(_0x5a5642||_0x22c96d[_0x4a77f8(0xbe)]==='local-alias')return _0x167be1;const {getRemoteAppList:_0x31541b}=await import('../commands/app/remote-source.js'),_0x1734f3=await _0x31541b({'env':_0x22c96d[_0x4a77f8(0x8e)]??_0x4a77f8(0xa8),'accessKey':_0x22c96d[_0x4a77f8(0xac)]}),_0x1a0f69=findAppByName(_0x1734f3['items'],_0x34c35e);if(_0x1a0f69&&!isRuntimeAccessibleApp(_0x1a0f69))throw runtimeInaccessibleAppError(_0x1a0f69,'\x22'+_0x34c35e+'\x22');const _0x40f3e8=_0x1a0f69?.[_0x4a77f8(0xa7)]?.[_0x4a77f8(0x81)]();if(_0x40f3e8)return _0x40f3e8;throw CliErrors[_0x4a77f8(0x9f)](_0x4a77f8(0x96)+_0x34c35e,_0x4a77f8(0xa6)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x34c35e+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x3f92d6,_0x4c45ea){const _0x2aafce=a119_0x2388;if(_0x3f92d6[_0x2aafce(0x97)]===![]||!_0x4c45ea[_0x2aafce(0xac)])return;const _0x57a8f5=(typeof _0x4c45ea['rawFlags']['app']===_0x2aafce(0x8d)&&_0x4c45ea[_0x2aafce(0xa0)][_0x2aafce(0x84)][_0x2aafce(0x81)]()?_0x4c45ea[_0x2aafce(0xa0)][_0x2aafce(0x84)]:_0x4c45ea['mergedCli']?.[_0x2aafce(0xbc)]??_0x4c45ea[_0x2aafce(0xb4)]?.[_0x2aafce(0x9c)])?.[_0x2aafce(0x81)]();if(!_0x57a8f5)return;const {getRemoteAppList:_0xff8024}=await import(_0x2aafce(0x9e)),_0x1d562a=await _0xff8024({'env':_0x4c45ea[_0x2aafce(0x8e)]??_0x2aafce(0xa8),'accessKey':_0x4c45ea[_0x2aafce(0xac)]}),_0x36bcbd=findAppByName(_0x1d562a['items'],_0x57a8f5);if(_0x36bcbd&&!isRuntimeAccessibleApp(_0x36bcbd))throw runtimeInaccessibleAppError(_0x36bcbd,'\x22'+_0x57a8f5+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x15a2a9,_0x114c79,_0x1d476e){const _0x21c65a=a119_0x2388;if(_0x15a2a9[_0x21c65a(0x97)]===![]||!_0x114c79['accessKey'])return;const {getRemoteAppList:_0x2bb792}=await import(_0x21c65a(0x9e)),_0x21835a=await _0x2bb792({'env':_0x114c79[_0x21c65a(0x8e)]??_0x21c65a(0xa8),'accessKey':_0x114c79[_0x21c65a(0xac)]}),_0x36e795=findAppByCode(_0x21835a[_0x21c65a(0xa2)],_0x1d476e);if(_0x36e795&&!isRuntimeAccessibleApp(_0x36e795))throw runtimeInaccessibleAppError(_0x36e795,_0x21c65a(0x91)+_0x1d476e+'\x22');}export async function runCommand(_0x159b08,_0x58e2f0,_0x29950c=terminalRunnerAdapter){assertKnownCommandFlags(_0x159b08,_0x58e2f0['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x159b08)?withVersionPolicy(_0x159b08):_0x159b08,_0x58e2f0,_0x29950c);}function shouldApplyVersionPolicy(_0x5c2b11){const _0x14280a=a119_0x2388;if([_0x14280a(0x9a),_0x14280a(0x89),'doctor'][_0x14280a(0xa5)](_0x5c2b11[_0x14280a(0xba)]))return![];return!(_0x5c2b11[_0x14280a(0xba)]===_0x14280a(0xb0)&&_0x5c2b11[_0x14280a(0x99)]===_0x14280a(0x83));}function withVersionPolicy(_0x2390c3){return{..._0x2390c3,async 'execute'(_0x3a8b8f){const _0x33d6a1=a119_0x2388,_0x4d1e51=await checkCliVersion();assertCliVersionSupported(_0x4d1e51);const _0x27ca54=shouldResolveUpdateNotice(_0x3a8b8f)?resolveLatestUpdateNotice(_0x4d1e51)[_0x33d6a1(0xae)](()=>null):Promise[_0x33d6a1(0x7e)](null),_0x4ba8b7=await _0x2390c3[_0x33d6a1(0x88)](_0x3a8b8f);return attachUpdateNotice(_0x4ba8b7,await _0x27ca54);}};}function shouldResolveUpdateNotice(_0x358e7b){const _0x2da322=a119_0x2388;return _0x358e7b[_0x2da322(0xb8)]==='pretty'&&!_0x358e7b['nonInteractive'];}function a119_0x5d5d(){const _0x162dd2=['cli-skill','\x20\x20To\x20proceed:\x20','apiDomain','../core/api-client.js','mergedCli','ClientAk','runtimeDomain','\x20or\x20pass\x20','format','1412271ETBvxy','service','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','currentApp','configMissing','appCodeSource','isNonInteractive','has','resolve','riskLevel','name','trim','cancelled','install','app','419648VDIsTw','APPCODE','../core/sdk-client.js','execute','schema','defaultPageSize','filter','184101stotNb','string','env','verbose','52yvzuNK','appcode\x20\x22','confirmHighRisk','ACCESS_KEY','appcode','_notice','Unknown\x20app:\x20','requiresAppCode','1817744zqmEhQ','command','update','960lORPim','defaultApp','8338YdqatV','../commands/app/remote-source.js','validation','rawFlags','requiresAuth','items','32590fyZGYF','198Kszowe','includes','Run\x20`','appCode','production','authRequired','formatOutput','4210YrijnX','accessKey','object','catch','defaultVerbose'];a119_0x5d5d=function(){return _0x162dd2;};return a119_0x5d5d();}function attachUpdateNotice(_0x47492f,_0x33a7f4){const _0x1dc4e7=a119_0x2388;if(!_0x33a7f4||!_0x47492f||typeof _0x47492f!==_0x1dc4e7(0xad))return _0x47492f;const _0x691a60=_0x47492f,_0x433499=typeof _0x691a60[_0x1dc4e7(0x95)]===_0x1dc4e7(0xad)&&_0x691a60[_0x1dc4e7(0x95)]!==null?_0x691a60[_0x1dc4e7(0x95)]:{};return{..._0x691a60,'_notice':{..._0x433499,'update':_0x33a7f4}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57c403,_0xd6ca19){const _0x54af16=a120_0x5462,_0x26edce=_0x57c403();while(!![]){try{const _0xa906ea=-parseInt(_0x54af16(0x111))/0x1+-parseInt(_0x54af16(0x119))/0x2*(-parseInt(_0x54af16(0x10e))/0x3)+-parseInt(_0x54af16(0x113))/0x4*(-parseInt(_0x54af16(0x11a))/0x5)+parseInt(_0x54af16(0x11c))/0x6*(parseInt(_0x54af16(0x116))/0x7)+-parseInt(_0x54af16(0x118))/0x8*(parseInt(_0x54af16(0x10f))/0x9)+-parseInt(_0x54af16(0x11b))/0xa+-parseInt(_0x54af16(0x110))/0xb;if(_0xa906ea===_0xd6ca19)break;else _0x26edce['push'](_0x26edce['shift']());}catch(_0x62b8c2){_0x26edce['push'](_0x26edce['shift']());}}}(a120_0x2a3a,0x9ad67));function a120_0x2a3a(){const _0x52461b=['none','114640EjfZPp','62neJQAD','20CuShdv','6674990aXFyBD','19806rixToR','services','auth','map','requiresAuth','commands','103893RNOnim','207xYIUfl','347182BqYYcY','679506PHqkXy','required','295016oECesY','../commands/registry.js','service','2065welmth'];a120_0x2a3a=function(){return _0x52461b;};return a120_0x2a3a();}import{buildSchemaPayload as a120_0x45e116}from'@lovrabet/cli-framework';function a120_0x5462(_0x14c2c2,_0x6cc6cb){_0x14c2c2=_0x14c2c2-0x10e;const _0x2a3abc=a120_0x2a3a();let _0x546253=_0x2a3abc[_0x14c2c2];return _0x546253;}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 _0x480349=a120_0x5462,{serviceRegistry:_0x5d5df0,findDefinition:_0x404d71}=await import(_0x480349(0x114)),_0x12b23f=new Set(_0x5d5df0[_0x480349(0x11f)](_0x2ed64a=>_0x2ed64a[_0x480349(0x115)])),_0x29bb4f=listDynamicServiceEntries()['filter'](_0x13d93d=>!_0x12b23f['has'](_0x13d93d['service'])),_0xdc19b8=a120_0x45e116({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x5d5df0,_0x29bb4f),'buildAllFlags':buildAllFlags,'findDefinition':(_0x45d390,_0xe81d5a)=>_0x404d71(_0x45d390,_0xe81d5a)??findDynamicServiceDefinition(_0x45d390,_0xe81d5a)});return normalizeSchemaPayload(_0xdc19b8);}function normalizeSchemaPayload(_0x415c6d){const _0x4dbd46=a120_0x5462;return{..._0x415c6d,'schemaVersion':0x2,'services':_0x415c6d[_0x4dbd46(0x11d)][_0x4dbd46(0x11f)](_0xed5458=>({..._0xed5458,'commands':_0xed5458[_0x4dbd46(0x121)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x1f8f44){const _0x27fcf7=a120_0x5462,_0x317656=_0x1f8f44;return{..._0x1f8f44,'auth':_0x317656[_0x27fcf7(0x11e)]??(_0x1f8f44[_0x27fcf7(0x120)]?_0x27fcf7(0x112):_0x27fcf7(0x117))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x501dab,_0x25e618){const _0x2512bb=a121_0x2515,_0x212132=_0x501dab();while(!![]){try{const _0x26e840=-parseInt(_0x2512bb(0x6e))/0x1*(parseInt(_0x2512bb(0x6b))/0x2)+parseInt(_0x2512bb(0x68))/0x3+-parseInt(_0x2512bb(0x70))/0x4*(parseInt(_0x2512bb(0x6f))/0x5)+-parseInt(_0x2512bb(0x73))/0x6*(-parseInt(_0x2512bb(0x71))/0x7)+parseInt(_0x2512bb(0x67))/0x8+-parseInt(_0x2512bb(0x72))/0x9+parseInt(_0x2512bb(0x74))/0xa;if(_0x26e840===_0x25e618)break;else _0x212132['push'](_0x212132['shift']());}catch(_0x32a137){_0x212132['push'](_0x212132['shift']());}}}(a121_0x666a,0x88afe));function a121_0x2515(_0x24b9b7,_0x5597bd){_0x24b9b7=_0x24b9b7-0x67;const _0x666ab0=a121_0x666a();let _0x2515b1=_0x666ab0[_0x24b9b7];return _0x2515b1;}function a121_0x666a(){const _0x2e4864=['952kHYypZ','826038nozrsl','26826kXjzAk','4937560CIPNlA','5991752chmbWd','2137155ovGmPE','slice','findIndex','1786GAGrcz','service','length','1013ZkBXCu','335635sySTDa','60PRmOfb'];a121_0x666a=function(){return _0x2e4864;};return a121_0x666a();}export function insertDynamicServicesAfterServiceTree(_0x2a8a5f,_0x31560d){const _0xa6306c=a121_0x2515;if(_0x31560d[_0xa6306c(0x6d)]===0x0)return[..._0x2a8a5f];const _0x129e56=_0x2a8a5f[_0xa6306c(0x6a)](_0x4b6b6e=>_0x4b6b6e[_0xa6306c(0x6c)]===_0xa6306c(0x6c));if(_0x129e56<0x0)return[..._0x2a8a5f,..._0x31560d];return[..._0x2a8a5f[_0xa6306c(0x69)](0x0,_0x129e56+0x1),..._0x31560d,..._0x2a8a5f[_0xa6306c(0x69)](_0x129e56+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x5291(){var _0x2df4ec=['369391zSrcVf','5918166ZrOQXN','38hGoABK','4JkihNW','1188756yFxaPu','22010SySjtK','1753692eUsnoz','210SBQKKJ','15584jBaQGm','406pMLoAk','4712580RxaUgu'];a122_0x5291=function(){return _0x2df4ec;};return a122_0x5291();}function a122_0xa4d5(_0x177c93,_0x54319d){_0x177c93=_0x177c93-0x186;var _0x529100=a122_0x5291();var _0xa4d5d2=_0x529100[_0x177c93];return _0xa4d5d2;}(function(_0x498bd0,_0x499b27){var _0x30bbfa=a122_0xa4d5,_0x5db33f=_0x498bd0();while(!![]){try{var _0x4b37a2=parseInt(_0x30bbfa(0x18d))/0x1*(parseInt(_0x30bbfa(0x190))/0x2)+parseInt(_0x30bbfa(0x186))/0x3+-parseInt(_0x30bbfa(0x18e))/0x4*(parseInt(_0x30bbfa(0x18a))/0x5)+parseInt(_0x30bbfa(0x18c))/0x6+-parseInt(_0x30bbfa(0x189))/0x7*(-parseInt(_0x30bbfa(0x188))/0x8)+parseInt(_0x30bbfa(0x18f))/0x9+parseInt(_0x30bbfa(0x187))/0xa*(-parseInt(_0x30bbfa(0x18b))/0xb);if(_0x4b37a2===_0x499b27)break;else _0x5db33f['push'](_0x5db33f['shift']());}catch(_0x25c79f){_0x5db33f['push'](_0x5db33f['shift']());}}}(a122_0x5291,0x8f2e2));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.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.0-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "b4db7d1";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-22T11:04:51.099Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x548353=a123_0x2181;(function(_0x51c886,_0x20d09b){const _0x4d78ea=a123_0x2181,_0x1401e5=_0x51c886();while(!![]){try{const _0x398b17=parseInt(_0x4d78ea(0x193))/0x1+-parseInt(_0x4d78ea(0x196))/0x2*(-parseInt(_0x4d78ea(0x19d))/0x3)+-parseInt(_0x4d78ea(0x19e))/0x4+-parseInt(_0x4d78ea(0x192))/0x5*(parseInt(_0x4d78ea(0x199))/0x6)+parseInt(_0x4d78ea(0x194))/0x7*(-parseInt(_0x4d78ea(0x19b))/0x8)+-parseInt(_0x4d78ea(0x19c))/0x9+parseInt(_0x4d78ea(0x19f))/0xa*(parseInt(_0x4d78ea(0x19a))/0xb);if(_0x398b17===_0x20d09b)break;else _0x1401e5['push'](_0x1401e5['shift']());}catch(_0x55e8f6){_0x1401e5['push'](_0x1401e5['shift']());}}}(a123_0x2a70,0x7ca4e));export const VERSION=a123_0x548353(0x198);function a123_0x2a70(){const _0x545dbc=['2026-08-22T11:04:51.099Z','2.3.0-beta.4','83142NQWMGO','1915639WmwxRO','552gPBiTr','6623802pHNGrD','822GRFeTV','3547008GlhOkf','110PCfOWT','115eyMmbj','869621usKbIc','77063nNJAKE','v2.3.0-beta.4','3112LmkVEP'];a123_0x2a70=function(){return _0x545dbc;};return a123_0x2a70();}export const GIT_TAG=a123_0x548353(0x195);function a123_0x2181(_0x41c600,_0x1817ad){_0x41c600=_0x41c600-0x192;const _0x2a70ab=a123_0x2a70();let _0x2181dd=_0x2a70ab[_0x41c600];return _0x2181dd;}export const GIT_COMMIT='b4db7d1';export const BUILD_TIME=a123_0x548353(0x197);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a124_0x4e46(){const _0xae99f5=['green','88GHafWo','1690176VvwZsR','7658712lRBINv','836156YaFQPj','1086ewJXKd','5086sWzVIR','\x20\x20Use\x20','\x20--help','375TtFozH','118489jZyTdz','256641zmNBNY','column'];a124_0x4e46=function(){return _0xae99f5;};return a124_0x4e46();}function a124_0x2803(_0x209a19,_0xa16c5a){_0x209a19=_0x209a19-0x116;const _0x4e46a4=a124_0x4e46();let _0x2803be=_0x4e46a4[_0x209a19];return _0x2803be;}(function(_0x294331,_0x3fc421){const _0x1fad30=a124_0x2803,_0x4af371=_0x294331();while(!![]){try{const _0x11a9dd=-parseInt(_0x1fad30(0x116))/0x1*(parseInt(_0x1fad30(0x11e))/0x2)+-parseInt(_0x1fad30(0x11b))/0x3+-parseInt(_0x1fad30(0x121))/0x4+-parseInt(_0x1fad30(0x119))/0x5*(parseInt(_0x1fad30(0x122))/0x6)+parseInt(_0x1fad30(0x11a))/0x7+-parseInt(_0x1fad30(0x11f))/0x8+parseInt(_0x1fad30(0x120))/0x9;if(_0x11a9dd===_0x3fc421)break;else _0x4af371['push'](_0x4af371['shift']());}catch(_0x1849c4){_0x4af371['push'](_0x4af371['shift']());}}}(a124_0x4e46,0x1e706));import{jsx as a124_0x299e40,jsxs as a124_0x22a2b3}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';export function Help(){const _0x1e3fcd=a124_0x2803,{exit:_0x4bcf0b}=useApp();return useEffect(()=>{_0x4bcf0b();},[_0x4bcf0b]),a124_0x22a2b3(Box,{'flexDirection':_0x1e3fcd(0x11c),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x299e40(Box,{'children':a124_0x299e40(Text,{'bold':!![],'color':_0x1e3fcd(0x11d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x22a2b3(Box,{'marginTop':0x1,'children':[a124_0x299e40(Text,{'dimColor':!![],'children':_0x1e3fcd(0x117)}),a124_0x299e40(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x1e3fcd(0x118)}),a124_0x299e40(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x13e2(){const _0x54b253=['1133529cEbhHW','1720050RdGfzo','installedPath','changed','3251328yLaInX','log','1256128sFWtOS','Lovrabet\x20Built-in\x20Skill\x20','\x20at\x20','already\x20current','Repair\x20with:\x20','11176900ZAmcYG','skillVersion','360302skTHsH','SOURCE_INVALID','warn','code','3532134iSWwkl','error','repairCommand','\x20via\x20skills@latest'];a125_0x13e2=function(){return _0x54b253;};return a125_0x13e2();}function a125_0x1926(_0x55979b,_0x1f56d6){_0x55979b=_0x55979b-0xc3;const _0x13e2c1=a125_0x13e2();let _0x19267a=_0x13e2c1[_0x55979b];return _0x19267a;}(function(_0x44ba2e,_0x279f1f){const _0x3e7c45=a125_0x1926,_0x403039=_0x44ba2e();while(!![]){try{const _0x55ce43=parseInt(_0x3e7c45(0xc7))/0x1+parseInt(_0x3e7c45(0xd5))/0x2+-parseInt(_0x3e7c45(0xcf))/0x3+-parseInt(_0x3e7c45(0xd3))/0x4+-parseInt(_0x3e7c45(0xd0))/0x5+-parseInt(_0x3e7c45(0xcb))/0x6+parseInt(_0x3e7c45(0xc5))/0x7;if(_0x55ce43===_0x279f1f)break;else _0x403039['push'](_0x403039['shift']());}catch(_0x251a47){_0x403039['push'](_0x403039['shift']());}}}(a125_0x13e2,0x70b7c));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x34028d={}){const _0x319a38=a125_0x1926,_0x38623f=installBuiltinSkill(_0x34028d);if(_0x38623f['ok']){const _0x152046=_0x38623f[_0x319a38(0xd2)]?'installed':_0x319a38(0xc3),_0x2db8f0=_0x38623f[_0x319a38(0xd1)]?_0x319a38(0xd7)+_0x38623f[_0x319a38(0xd1)]:_0x319a38(0xce);return console[_0x319a38(0xd4)](_0x319a38(0xd6)+_0x38623f[_0x319a38(0xc6)]+'\x20'+_0x152046+_0x2db8f0),_0x38623f;}const _0x2d130d='[BUILTIN_SKILL_INSTALL_'+(_0x38623f[_0x319a38(0xca)]??'FAILED')+']\x20'+(_0x38623f[_0x319a38(0xcc)]??'Installation\x20failed')+'.\x20'+(_0x319a38(0xc4)+_0x38623f[_0x319a38(0xcd)]);if(_0x38623f[_0x319a38(0xca)]===_0x319a38(0xc8))throw new Error(_0x2d130d);return console[_0x319a38(0xc9)](_0x2d130d),_0x38623f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3baa1a,_0x3754f3){const _0xe61b08=a126_0x4646,_0x4c01cc=_0x3baa1a();while(!![]){try{const _0x20d5f9=-parseInt(_0xe61b08(0x147))/0x1+-parseInt(_0xe61b08(0x14c))/0x2+-parseInt(_0xe61b08(0x144))/0x3+-parseInt(_0xe61b08(0x14d))/0x4+parseInt(_0xe61b08(0x142))/0x5+parseInt(_0xe61b08(0x145))/0x6+parseInt(_0xe61b08(0x141))/0x7;if(_0x20d5f9===_0x3754f3)break;else _0x4c01cc['push'](_0x4c01cc['shift']());}catch(_0x588b66){_0x4c01cc['push'](_0x4c01cc['shift']());}}}(a126_0x2f65,0x86cc3));const DESCRIPTION_MAX_LENGTH=0x1f4;function a126_0x2f65(){const _0x1bfbc0=['872852YZcKYU','1504288qERovH','replace','write','confirmationDescription','13537209ymvtVI','585665BecIEX','trim','2284455WrEjgm','6203904NSFoFn','slice','958890pWzMBK','string','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','description'];a126_0x2f65=function(){return _0x1bfbc0;};return a126_0x2f65();}export function buildLovrabetConfirmationRequest(_0x11fbd8,_0x124b4b,_0x4c875d){const _0x1e192d=a126_0x4646,_0x2b98c7=normalizeText(_0x11fbd8[_0x1e192d(0x150)],DESCRIPTION_MAX_LENGTH),_0xc80a14=normalizeText(_0x11fbd8[_0x1e192d(0x14b)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x124b4b,'risk':requireWriteRisk(_0x11fbd8),'description':_0x2b98c7||_0xc80a14||'Run\x20this\x20write\x20operation',..._0x4c875d?{'signal':_0x4c875d}:{}};}function requireWriteRisk(_0x10ceb2){const _0x427074=a126_0x4646;if(_0x10ceb2[_0x427074(0x14a)]===_0x427074(0x14f)||_0x10ceb2[_0x427074(0x14a)]==='high-risk-write')return _0x10ceb2[_0x427074(0x14a)];throw new Error(_0x427074(0x149));}function a126_0x4646(_0x972734,_0x1f137a){_0x972734=_0x972734-0x141;const _0x2f65fc=a126_0x2f65();let _0x4646e7=_0x2f65fc[_0x972734];return _0x4646e7;}function normalizeText(_0x179781,_0x525688){const _0x1d0302=a126_0x4646;if(typeof _0x179781!==_0x1d0302(0x148))return'';return _0x179781[_0x1d0302(0x14e)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1d0302(0x14e)](/\s+/g,'\x20')[_0x1d0302(0x143)]()[_0x1d0302(0x146)](0x0,_0x525688);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x3c24(_0x3b975a,_0x248d08){_0x3b975a=_0x3b975a-0x81;const _0x224252=a127_0x2242();let _0x3c2438=_0x224252[_0x3b975a];return _0x3c2438;}(function(_0x5830e1,_0x51ad20){const _0x2c4381=a127_0x3c24,_0x3a5fd5=_0x5830e1();while(!![]){try{const _0xbc6027=parseInt(_0x2c4381(0x82))/0x1*(parseInt(_0x2c4381(0x8b))/0x2)+parseInt(_0x2c4381(0x90))/0x3+parseInt(_0x2c4381(0x89))/0x4+parseInt(_0x2c4381(0x86))/0x5+-parseInt(_0x2c4381(0x8a))/0x6+parseInt(_0x2c4381(0x8e))/0x7+parseInt(_0x2c4381(0x84))/0x8*(-parseInt(_0x2c4381(0x85))/0x9);if(_0xbc6027===_0x51ad20)break;else _0x3a5fd5['push'](_0x3a5fd5['shift']());}catch(_0x269d78){_0x3a5fd5['push'](_0x3a5fd5['shift']());}}}(a127_0x2242,0x27b8c));export function canonicalLovrabetOperation(_0x4134ac){const _0x360749=a127_0x3c24;return[_0x4134ac[_0x360749(0x8f)],..._0x4134ac['command']['trim']()[_0x360749(0x88)](/\s+/)][_0x360749(0x87)](Boolean)[_0x360749(0x91)]('.');}function a127_0x2242(){const _0x4a20ac=['1794300vbeZZy','886anbXcV','writeEventSubject','risk','2127545hCoFSr','service','524013gjiOPe','join','high-risk-write','lovrabet.write.completed','86AwLxFY','write','1205872uWgGqU','27FbUgIj','1297935KzQgQp','filter','split','550644qOEsAS'];a127_0x2242=function(){return _0x4a20ac;};return a127_0x2242();}export function createLovrabetWriteMetadata(_0x19d0c6,_0x5daa4c,_0x4b62ef,_0x2eff2b){const _0x2199cf=a127_0x3c24;if(_0x2eff2b||_0x4b62ef['ok']!==!![]||_0x19d0c6[_0x2199cf(0x8d)]!==_0x2199cf(0x83)&&_0x19d0c6[_0x2199cf(0x8d)]!==_0x2199cf(0x92))return undefined;const _0x2ef836=_0x19d0c6[_0x2199cf(0x8c)]?.(_0x4b62ef),_0x4271b7={'type':_0x2199cf(0x81),'operation':_0x5daa4c,'risk':_0x19d0c6[_0x2199cf(0x8d)],..._0x2ef836?{'subject':_0x2ef836}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4271b7}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x86e23f,_0x17b94c){const _0x302457=a128_0x1b8d,_0x44509b=_0x86e23f();while(!![]){try{const _0x30495e=parseInt(_0x302457(0x1bf))/0x1*(-parseInt(_0x302457(0x1bd))/0x2)+-parseInt(_0x302457(0x1b1))/0x3*(parseInt(_0x302457(0x1bc))/0x4)+-parseInt(_0x302457(0x1ba))/0x5+parseInt(_0x302457(0x1a7))/0x6*(parseInt(_0x302457(0x19d))/0x7)+-parseInt(_0x302457(0x1b5))/0x8+parseInt(_0x302457(0x1a3))/0x9+parseInt(_0x302457(0x1b7))/0xa;if(_0x30495e===_0x17b94c)break;else _0x44509b['push'](_0x44509b['shift']());}catch(_0x4928fa){_0x44509b['push'](_0x44509b['shift']());}}}(a128_0x40a5,0xe4245));function a128_0x40a5(){const _0x20c761=['high-risk-write','100fcfnti','1598QIRqjI','command','1863nQmjBb','Lovrabet\x20invocation\x20aborted.','result','7fXflkZ','isNonInteractive','dryRun','data','aborted','present','7726086oqsGgV','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','signal','confirmation','9475344feuBSh','write','format','stringify','execute','message','yes','args','reason','rawFlags','191271RnuqCP','riskLevel','AbortError','risk','6358888oYOMig','definition','30939800RdwWEn','presentation','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','3599330eAxzNd'];a128_0x40a5=function(){return _0x20c761;};return a128_0x40a5();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a128_0x1b8d(_0x3d21b1,_0x56f7e3){_0x3d21b1=_0x3d21b1-0x19c;const _0x40a503=a128_0x40a5();let _0x1b8dde=_0x40a503[_0x3d21b1];return _0x1b8dde;}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x250058,command:_0x5ee89c,risk:_0x2c5126,dryRun:_0x20fb02}){const _0xcd2cd0=a128_0x1b8d;return JSON[_0xcd2cd0(0x1aa)]({'ok':_0x250058['ok'],'command':_0x5ee89c,'risk':_0x2c5126,..._0x20fb02?{'dryRun':!![]}:{},..._0x250058[_0xcd2cd0(0x1a0)]!==undefined?{'data':_0x250058[_0xcd2cd0(0x1a0)]}:{},..._0x250058[_0xcd2cd0(0x1ac)]?{'message':_0x250058[_0xcd2cd0(0x1ac)]}:{}});}};export async function invokeLovrabet(_0x5d62a8,_0x13819a){const _0x2ee3a8=a128_0x1b8d;throwIfAborted(_0x13819a[_0x2ee3a8(0x1a5)]);const _0x436436=await resolveLovrabetInvocation(_0x5d62a8),_0xdbb755=canonicalLovrabetOperation(_0x436436['definition']);return await confirmWriteBeforeQueue(_0x436436[_0x2ee3a8(0x1b6)],_0x436436[_0x2ee3a8(0x1b0)],_0xdbb755,_0x13819a),runSerialized(async()=>{const _0x3b6461=_0x2ee3a8;throwIfAborted(_0x13819a[_0x3b6461(0x1a5)]);const _0x4b94e7={},_0x90b141=buildConfigFromFlags(_0x436436[_0x3b6461(0x1b0)]);await initGlobalEnvironment(_0x90b141);const _0xac52be=createPipelineEnv(_0x90b141,{..._0x436436['rawFlags'],'yes':_0x436436[_0x3b6461(0x1b6)][_0x3b6461(0x1b4)]===_0x3b6461(0x1bb)?!![]:_0x436436['rawFlags'][_0x3b6461(0x1ad)],'nonInteractive':!![]});_0xac52be[_0x3b6461(0x1ae)]=_0x436436[_0x3b6461(0x1ae)],_0xac52be[_0x3b6461(0x19e)]=!![],_0xac52be[_0x3b6461(0x1b2)]='high-risk-write';const _0x1254d3=withAbortSignal(_0x436436[_0x3b6461(0x1b6)],_0x13819a[_0x3b6461(0x1a5)]),_0x1003d0=createLovrabetRunnerAdapter({'formatOutput'(_0x546fd4,_0x5653b1){const _0x5baf03=_0x3b6461;_0x4b94e7[_0x5baf03(0x19c)]=_0x546fd4,_0x4b94e7[_0x5baf03(0x1be)]=_0x5653b1[_0x5baf03(0x1be)],_0x4b94e7[_0x5baf03(0x1b4)]=_0x5653b1['risk'],_0x4b94e7[_0x5baf03(0x1a9)]=_0x5653b1[_0x5baf03(0x1a9)],_0x4b94e7['dryRun']=_0x5653b1['dryRun']===!![];},async 'confirmHighRisk'(){const _0x3ac5b1=_0x3b6461;throw new Error(_0x3ac5b1(0x1a4));}});try{await runCommand(_0x1254d3,_0xac52be,_0x1003d0);if(!_0x4b94e7[_0x3b6461(0x19c)]||!_0x4b94e7[_0x3b6461(0x1be)]||!_0x4b94e7[_0x3b6461(0x1b4)]||!_0x4b94e7['format'])throw new Error(_0x3b6461(0x1b9));const _0x385c25=_0x13819a[_0x3b6461(0x1b8)]??defaultPresentation,_0x2ee79a=_0x4b94e7[_0x3b6461(0x19f)]===!![],_0x22db10={'result':_0x4b94e7[_0x3b6461(0x19c)],'command':_0x4b94e7['command'],'operation':_0xdbb755,'risk':_0x4b94e7[_0x3b6461(0x1b4)],'format':_0x4b94e7[_0x3b6461(0x1a9)],'dryRun':_0x2ee79a},_0x44930d=createLovrabetWriteMetadata(_0x436436['definition'],_0xdbb755,_0x4b94e7[_0x3b6461(0x19c)],_0x2ee79a);let _0x59bc1e;try{_0x59bc1e=await _0x385c25[_0x3b6461(0x1a2)](_0x22db10);}catch(_0x30f0d1){if(!_0x44930d||_0x385c25===defaultPresentation)throw _0x30f0d1;_0x59bc1e=await defaultPresentation[_0x3b6461(0x1a2)](_0x22db10);}return{'operation':_0xdbb755,'risk':_0x4b94e7['risk'],'mode':_0x2ee79a?'dry-run':_0x3b6461(0x1ab),'result':_0x4b94e7[_0x3b6461(0x19c)],'output':_0x59bc1e,..._0x44930d?{'metadata':_0x44930d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5f7f72,_0x5ebd34,_0xe6c8c4,_0x5c976d){const _0x1e7cac=a128_0x1b8d;if(_0x5ebd34[_0x1e7cac(0x19f)]===!![]||_0x5f7f72['risk']!==_0x1e7cac(0x1a8)&&_0x5f7f72[_0x1e7cac(0x1b4)]!==_0x1e7cac(0x1bb))return;await _0x5c976d[_0x1e7cac(0x1a6)]['confirm'](buildLovrabetConfirmationRequest(_0x5f7f72,_0xe6c8c4,_0x5c976d['signal']));}function withAbortSignal(_0x39ff8,_0x2ac2d4){return{..._0x39ff8,async 'execute'(_0x333fd1){const _0x36ab6e=a128_0x1b8d;return throwIfAborted(_0x2ac2d4),_0x39ff8[_0x36ab6e(0x1ab)](_0x333fd1);}};}function throwIfAborted(_0x1c726a){const _0x2880d1=a128_0x1b8d;if(_0x1c726a?.[_0x2880d1(0x1a1)])throw _0x1c726a[_0x2880d1(0x1af)]instanceof Error?_0x1c726a[_0x2880d1(0x1af)]:new DOMException(_0x2880d1(0x1c0),_0x2880d1(0x1b3));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a129_0x5e55(){const _0x5bea4e=['722848iDmndA','21457uiIDGT','1084985iIKWCD','375489akWfLu','756994jiDNLQ','4UVBIxO','6BlTLLe','catch','470068DBzzZv','2690PkGkBA','7416HGHjIh'];a129_0x5e55=function(){return _0x5bea4e;};return a129_0x5e55();}(function(_0x278777,_0x4efb89){const _0x35e777=a129_0x2a5d,_0x501448=_0x278777();while(!![]){try{const _0x5e86af=parseInt(_0x35e777(0x120))/0x1+parseInt(_0x35e777(0x11c))/0x2+-parseInt(_0x35e777(0x122))/0x3+-parseInt(_0x35e777(0x119))/0x4*(parseInt(_0x35e777(0x121))/0x5)+parseInt(_0x35e777(0x11a))/0x6*(-parseInt(_0x35e777(0x123))/0x7)+parseInt(_0x35e777(0x11f))/0x8+-parseInt(_0x35e777(0x11e))/0x9*(-parseInt(_0x35e777(0x11d))/0xa);if(_0x5e86af===_0x4efb89)break;else _0x501448['push'](_0x501448['shift']());}catch(_0x52cd27){_0x501448['push'](_0x501448['shift']());}}}(a129_0x5e55,0x1cdb9));function a129_0x2a5d(_0x2b4543,_0x5216db){_0x2b4543=_0x2b4543-0x119;const _0x5e55cb=a129_0x5e55();let _0x2a5d5d=_0x5e55cb[_0x2b4543];return _0x2a5d5d;}let tail=Promise['resolve']();export async function runSerialized(_0x5d788f){const _0x1b045a=a129_0x2a5d,_0x3951ec=tail;let _0x5b0e10;tail=new Promise(_0x57d6c5=>{_0x5b0e10=_0x57d6c5;}),await _0x3951ec[_0x1b045a(0x11b)](()=>undefined);try{return await _0x5d788f();}finally{_0x5b0e10();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3aeb6d,_0x132d4c){const _0x2a85d7=a130_0x4ad5,_0x11a128=_0x3aeb6d();while(!![]){try{const _0x3f11e0=parseInt(_0x2a85d7(0x1f2))/0x1*(-parseInt(_0x2a85d7(0x1f4))/0x2)+-parseInt(_0x2a85d7(0x1e3))/0x3+-parseInt(_0x2a85d7(0x1e5))/0x4*(-parseInt(_0x2a85d7(0x1f6))/0x5)+parseInt(_0x2a85d7(0x1e1))/0x6*(parseInt(_0x2a85d7(0x1e8))/0x7)+-parseInt(_0x2a85d7(0x1ef))/0x8*(-parseInt(_0x2a85d7(0x1ec))/0x9)+parseInt(_0x2a85d7(0x1de))/0xa+-parseInt(_0x2a85d7(0x1e2))/0xb*(parseInt(_0x2a85d7(0x1ed))/0xc);if(_0x3f11e0===_0x132d4c)break;else _0x11a128['push'](_0x11a128['shift']());}catch(_0x47cc25){_0x11a128['push'](_0x11a128['shift']());}}}(a130_0xc650,0xe0d12));import a130_0x1231bc from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a130_0x4ad5(_0x1c1f91,_0x1b4b81){_0x1c1f91=_0x1c1f91-0x1dc;const _0xc65002=a130_0xc650();let _0x4ad5b5=_0xc65002[_0x1c1f91];return _0x4ad5b5;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a130_0xc650(){const _0x655256=['flatMap','flags','hint','1586844GakAcn','216SoQqlA','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','48ZtufqY','assign','input','418dDgkTP','message','18BudySe','join','929635khAlAb','validation','args','10084590Zutzri','../commands/registry.js','definition','2364gEqTPh','753148pIQTZy','3039798tZuXJe','unknownCommand','4dMRvTj','../framework/preparse.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','16310PGOzvl'];a130_0xc650=function(){return _0x655256;};return a130_0xc650();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x425169){const _0x576811=a130_0x4ad5,_0x185a3d=a130_0x1231bc('',{'importMeta':import.meta,'argv':_0x425169,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x428c10=[..._0x185a3d[_0x576811(0x1f1)]],_0x34bc26=_0x185a3d[_0x576811(0x1ea)];await correctFlags(_0x34bc26);const _0x54774b=_0x428c10[0x0];if(!_0x54774b)throw CliErrors['validation'](_0x576811(0x1ee));const _0x33487f=resolveRemovedCommand(_0x54774b,_0x428c10[0x1]);if(_0x33487f)throw CliErrors[_0x576811(0x1dc)](_0x33487f[_0x576811(0x1f3)],_0x33487f[_0x576811(0x1eb)]);if(!isKnownService(_0x54774b)){const _0x4e28f7=resolveDynamicServiceCommand(_0x428c10,_0x34bc26);if(!_0x4e28f7)throw CliErrors[_0x576811(0x1e4)](_0x428c10[_0x576811(0x1f5)]('\x20'));return Object[_0x576811(0x1f0)](_0x34bc26,_0x4e28f7[_0x576811(0x1ea)]),{'definition':_0x4e28f7[_0x576811(0x1e0)],'rawFlags':_0x34bc26,'args':_0x4e28f7[_0x576811(0x1dd)]};}const _0x57e7b2=getServiceEntry(_0x54774b),_0x55bd82=_0x428c10[0x1]||_0x57e7b2['defaultCommand'];if(!_0x55bd82)throw CliErrors['validation'](_0x576811(0x1e7)+_0x54774b+'\x22.');const _0x3aff1a=findDefinition(_0x54774b,_0x55bd82);if(!_0x3aff1a)throw CliErrors[_0x576811(0x1e4)](_0x54774b+'\x20'+_0x55bd82);return{'definition':_0x3aff1a,'rawFlags':_0x34bc26,'args':_0x428c10['slice'](0x2)};}async function correctFlags(_0x2cccd2){const _0x56346c=a130_0x4ad5;try{const {correctFlags:_0x337144}=await import(_0x56346c(0x1e6)),{getAllDefinitions:_0x4ab87b}=await import(_0x56346c(0x1df)),_0x4d4bcd=_0x4ab87b()[_0x56346c(0x1e9)](_0x2c26d7=>_0x2c26d7['flags']??[]),_0x5266bc=_0x337144(_0x2cccd2,_0x4d4bcd);Object['assign'](_0x2cccd2,_0x5266bc[_0x56346c(0x1ea)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5f1bd6,_0x22f3fd){const _0x88d4f5=a132_0x21a1,_0x3bb7a4=_0x5f1bd6();while(!![]){try{const _0x206e45=-parseInt(_0x88d4f5(0x1bb))/0x1+parseInt(_0x88d4f5(0x1d3))/0x2*(parseInt(_0x88d4f5(0x1be))/0x3)+parseInt(_0x88d4f5(0x1a8))/0x4*(-parseInt(_0x88d4f5(0x1aa))/0x5)+parseInt(_0x88d4f5(0x1ce))/0x6*(-parseInt(_0x88d4f5(0x1bc))/0x7)+-parseInt(_0x88d4f5(0x1c4))/0x8*(parseInt(_0x88d4f5(0x1b1))/0x9)+parseInt(_0x88d4f5(0x1ab))/0xa+-parseInt(_0x88d4f5(0x1d9))/0xb*(-parseInt(_0x88d4f5(0x1b6))/0xc);if(_0x206e45===_0x22f3fd)break;else _0x3bb7a4['push'](_0x3bb7a4['shift']());}catch(_0x1c9919){_0x3bb7a4['push'](_0x3bb7a4['shift']());}}}(a132_0x7177,0xd7e8a));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';function a132_0x21a1(_0x54a203,_0x43fe02){_0x54a203=_0x54a203-0x19d;const _0x7177cc=a132_0x7177();let _0x21a1ee=_0x7177cc[_0x54a203];return _0x21a1ee;}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='lovrabet\x20cli-skill\x20install',SKILL_NAME='lovrabet';function frontmatterValue(_0x348581,_0x3efd3d){const _0x4b2b20=a132_0x21a1;return _0x348581[_0x4b2b20(0x1b9)](new RegExp('^'+_0x3efd3d+_0x4b2b20(0x1ad),'m'))?.[0x1]?.[_0x4b2b20(0x1a3)]()??'';}function listFiles(_0x17c85b,_0x18d521=_0x17c85b){const _0x5c8293=a132_0x21a1;return readdirSync(_0x18d521,{'withFileTypes':!![]})[_0x5c8293(0x1c3)](_0x4229bc=>{const _0x3f8ce9=_0x5c8293,_0x5827c4=join(_0x18d521,_0x4229bc[_0x3f8ce9(0x19d)]),_0x4a8e6d=lstatSync(_0x5827c4);if(_0x4a8e6d[_0x3f8ce9(0x1a1)]())throw new Error(_0x3f8ce9(0x19e)+_0x5827c4);if(_0x4a8e6d['isDirectory']())return listFiles(_0x17c85b,_0x5827c4);if(!_0x4a8e6d['isFile']())throw new Error(_0x3f8ce9(0x1d2)+_0x5827c4);return[relative(_0x17c85b,_0x5827c4)[_0x3f8ce9(0x1d5)](sep)['join']('/')];})[_0x5c8293(0x1af)]((_0x221d7d,_0x262a04)=>_0x221d7d<_0x262a04?-0x1:_0x221d7d>_0x262a04?0x1:0x0);}function digestFiles(_0x15b1cb,_0x581dec){const _0x17651f=a132_0x21a1,_0x2157e2=createHash(_0x17651f(0x1c7));for(const _0xdfb07a of _0x581dec){if(_0xdfb07a[_0x17651f(0x1ba)]('/')||_0xdfb07a[_0x17651f(0x1d5)]('/')[_0x17651f(0x1a7)]('..')||_0xdfb07a[_0x17651f(0x1a7)]('\x5c'))throw new Error(_0x17651f(0x1bd)+_0xdfb07a);_0x2157e2[_0x17651f(0x1ac)](_0xdfb07a),_0x2157e2[_0x17651f(0x1ac)]('\x00'),_0x2157e2[_0x17651f(0x1ac)](readFileSync(join(_0x15b1cb,..._0xdfb07a[_0x17651f(0x1d5)]('/')))),_0x2157e2[_0x17651f(0x1ac)]('\x00');}return _0x2157e2['digest']('hex');}function sameFiles(_0x21e0ce,_0x583a15){const _0x4cfed8=a132_0x21a1;return _0x21e0ce[_0x4cfed8(0x1c9)]===_0x583a15[_0x4cfed8(0x1c9)]&&_0x21e0ce[_0x4cfed8(0x1d0)]((_0x16c057,_0x180746)=>_0x16c057===_0x583a15[_0x180746]);}function readSource(_0x4ea7be){const _0x204369=a132_0x21a1,_0x1f7f40=JSON['parse'](readFileSync(join(_0x4ea7be,_0x204369(0x1d8)),_0x204369(0x19f))),_0x3fa1fc=JSON['parse'](readFileSync(join(_0x4ea7be,_0x204369(0x1c0),_0x204369(0x1c2)),'utf8')),_0x5dcf67=join(_0x4ea7be,'skills',SKILL_NAME),_0x210d50=frontmatterValue(readFileSync(join(_0x5dcf67,_0x204369(0x1bf)),_0x204369(0x19f)),_0x204369(0x1c1)),_0x356861=listFiles(_0x5dcf67);if(_0x3fa1fc['schemaVersion']!==0x1||_0x3fa1fc['name']!==SKILL_NAME||!_0x1f7f40['version']||_0x3fa1fc[_0x204369(0x1d6)]!==_0x1f7f40['version']||_0x3fa1fc[_0x204369(0x1b0)]!==_0x1f7f40[_0x204369(0x1c1)]||_0x210d50!==_0x1f7f40[_0x204369(0x1c1)]||!sameFiles(_0x356861,_0x3fa1fc[_0x204369(0x1c8)])||digestFiles(_0x5dcf67,_0x356861)!==_0x3fa1fc[_0x204369(0x1cc)])throw new Error(_0x204369(0x1d7));return{'packageVersion':_0x1f7f40[_0x204369(0x1c1)],'skillVersion':_0x210d50,'root':_0x5dcf67,'manifest':_0x3fa1fc};}function installedSkillPath(_0x1ee8f0){const _0x34e665=a132_0x21a1,_0x358633=resolveInstalledSkill(SKILL_NAME,{'home':_0x1ee8f0});if(_0x358633['state']==='present')return{'state':_0x34e665(0x1c6),'path':dirname(_0x358633[_0x34e665(0x1cf)])};if(_0x358633['state']===_0x34e665(0x1da))return{'state':'missing'};return{'state':_0x34e665(0x1a4),'reason':_0x358633[_0x34e665(0x1ae)]};}export function inspectInstalledBuiltinSkillVersion(_0x93efa4,_0x5876d9={}){const _0x2493a9=a132_0x21a1,_0x3ab79f=installedSkillPath(_0x5876d9[_0x2493a9(0x1a5)]??homedir());if(_0x3ab79f[_0x2493a9(0x1b3)]===_0x2493a9(0x1c5))return{'state':_0x2493a9(0x1c5),'expectedVersion':_0x93efa4,'repairCommand':REPAIR_COMMAND};if(_0x3ab79f['state']===_0x2493a9(0x1a4))return{'state':'unverifiable','expectedVersion':_0x93efa4,'reason':_0x3ab79f[_0x2493a9(0x1ae)],'repairCommand':REPAIR_COMMAND};try{const _0x52e977=frontmatterValue(readFileSync(join(_0x3ab79f[_0x2493a9(0x1cf)],_0x2493a9(0x1bf)),_0x2493a9(0x19f)),_0x2493a9(0x1c1));return{'state':_0x52e977===_0x93efa4?_0x2493a9(0x1a6):_0x2493a9(0x1b8),'expectedVersion':_0x93efa4,'skillVersion':_0x52e977,'installedPath':_0x3ab79f[_0x2493a9(0x1cf)],'repairCommand':REPAIR_COMMAND};}catch(_0x5c9996){return{'state':_0x2493a9(0x1a4),'expectedVersion':_0x93efa4,'installedPath':_0x3ab79f[_0x2493a9(0x1cf)],'reason':_0x5c9996 instanceof Error?_0x5c9996[_0x2493a9(0x1a9)]:String(_0x5c9996),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x543a6e={}){const _0x1032be=a132_0x21a1,_0x5247bc=_0x543a6e[_0x1032be(0x1cd)]??DEFAULT_PACKAGE_ROOT;let _0x14291e;try{_0x14291e=readSource(_0x5247bc);}catch(_0x3ce96e){return{'state':_0x1032be(0x1a4),'packageVersion':_0x1032be(0x1a0),'reason':_0x3ce96e instanceof Error?_0x3ce96e[_0x1032be(0x1a9)]:String(_0x3ce96e),'repairCommand':REPAIR_COMMAND};}const _0x4c7575=installedSkillPath(_0x543a6e['home']??homedir());if(_0x4c7575[_0x1032be(0x1b3)]==='missing')return{'state':_0x1032be(0x1c5),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'repairCommand':REPAIR_COMMAND};if(_0x4c7575[_0x1032be(0x1b3)]===_0x1032be(0x1a4))return{'state':_0x1032be(0x1a4),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'reason':_0x4c7575['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x2564e9=frontmatterValue(readFileSync(join(_0x4c7575[_0x1032be(0x1cf)],_0x1032be(0x1bf)),_0x1032be(0x19f)),_0x1032be(0x1c1));if(_0x2564e9!==_0x14291e[_0x1032be(0x1b0)])return{'state':_0x1032be(0x1b8),'packageVersion':_0x14291e[_0x1032be(0x1d6)],'skillVersion':_0x2564e9,'installedPath':_0x4c7575[_0x1032be(0x1cf)],'repairCommand':REPAIR_COMMAND};const _0x1b533a=listFiles(_0x4c7575[_0x1032be(0x1cf)]),_0x55e26a=digestFiles(_0x4c7575[_0x1032be(0x1cf)],_0x1b533a);return{'state':sameFiles(_0x1b533a,_0x14291e[_0x1032be(0x1a2)]['files'])&&_0x55e26a===_0x14291e['manifest']['digest']?_0x1032be(0x1a6):'content_mismatch','packageVersion':_0x14291e[_0x1032be(0x1d6)],'skillVersion':_0x2564e9,'installedPath':_0x4c7575[_0x1032be(0x1cf)],'digest':_0x55e26a,'repairCommand':REPAIR_COMMAND};}catch(_0x570ed6){return{'state':_0x1032be(0x1a4),'packageVersion':_0x14291e['packageVersion'],'installedPath':_0x4c7575[_0x1032be(0x1cf)],'reason':_0x570ed6 instanceof Error?_0x570ed6[_0x1032be(0x1a9)]:String(_0x570ed6),'repairCommand':REPAIR_COMMAND};}}function failure(_0x3f0d4c,_0x23c867,_0x36cd2c,_0x598f09){const _0x5d56e9=a132_0x21a1;return{'ok':![],'code':_0x3f0d4c,'packageVersion':_0x23c867[_0x5d56e9(0x1d6)],'skillVersion':_0x23c867[_0x5d56e9(0x1b0)],'installedPath':_0x598f09,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x36cd2c instanceof Error?_0x36cd2c[_0x5d56e9(0x1a9)]:String(_0x36cd2c)};}function a132_0x7177(){const _0x5e5a9f=['935613TlxRST','SKILL.md','skills','version','lovrabet.manifest.json','flatMap','8saAxwp','missing','present','sha256','files','length','SOURCE_INVALID','status','digest','packageRoot','6WUQBIH','path','every','error','Unsupported\x20Skill\x20entry:\x20','2erZIxL','stdio','split','packageVersion','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','package.json','20278357RTabXs','absent','name','Symbolic\x20link\x20is\x20not\x20allowed:\x20','utf8','unknown','isSymbolicLink','manifest','trim','unverifiable','home','current','includes','389476DyVQsC','message','5ZIixCS','7526100ZeFtaV','update',':\x5cs*(.+)$','reason','sort','skillVersion','3791808GHWXsP','skipped','state','installedPath','pipe','12HqrYWg','Installed\x20Skill\x20state\x20is\x20','version_mismatch','match','startsWith','185954WhRFns','9232797NFVoeZ','Unsafe\x20manifest\x20path:\x20'];a132_0x7177=function(){return _0x5e5a9f;};return a132_0x7177();}export function installBuiltinSkill(_0x1948c0={}){const _0x444a6c=a132_0x21a1,_0x432d65=_0x1948c0['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x290b2c=_0x1948c0[_0x444a6c(0x1a5)]??homedir();let _0x262ec5;try{_0x262ec5=readSource(_0x432d65);}catch(_0x11a648){return failure(_0x444a6c(0x1ca),{'packageVersion':_0x444a6c(0x1a0),'skillVersion':'unknown'},_0x11a648);}const _0x192646=inspectBuiltinSkill({'packageRoot':_0x432d65,'home':_0x290b2c}),_0x27b07e=runNpxSkillsAddGlobal(_0x432d65,_0x262ec5['root'],{'stdio':_0x1948c0[_0x444a6c(0x1d4)]??_0x444a6c(0x1b5),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x290b2c}});if(_0x27b07e[_0x444a6c(0x1b2)])return{'ok':!![],'packageVersion':_0x262ec5[_0x444a6c(0x1d6)],'skillVersion':_0x262ec5[_0x444a6c(0x1b0)],'installedPath':_0x192646[_0x444a6c(0x1b4)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x27b07e['ok'])return failure('INSTALL_FAILED',_0x262ec5,_0x27b07e[_0x444a6c(0x1d1)]??'skills@latest\x20exited\x20'+_0x27b07e[_0x444a6c(0x1cb)]);const _0x273ffb=inspectBuiltinSkill({'packageRoot':_0x432d65,'home':_0x290b2c});if(_0x273ffb['state']!==_0x444a6c(0x1a6))return failure('VERIFY_FAILED',_0x262ec5,_0x273ffb['reason']??_0x444a6c(0x1b7)+_0x273ffb[_0x444a6c(0x1b3)],_0x273ffb[_0x444a6c(0x1b4)]);return{'ok':!![],'packageVersion':_0x262ec5[_0x444a6c(0x1d6)],'skillVersion':_0x262ec5[_0x444a6c(0x1b0)],'installedPath':_0x273ffb[_0x444a6c(0x1b4)],'changed':_0x192646['state']!==_0x444a6c(0x1a6),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a132_0x1e5f50=a132_0x225f;(function(_0xf4bd7c,_0x4bbd7c){const _0x3829c9=a132_0x225f,_0xa7b9a7=_0xf4bd7c();while(!![]){try{const _0x170e2f=-parseInt(_0x3829c9(0xc0))/0x1*(-parseInt(_0x3829c9(0xc8))/0x2)+parseInt(_0x3829c9(0xc9))/0x3*(parseInt(_0x3829c9(0xae))/0x4)+-parseInt(_0x3829c9(0xd5))/0x5*(-parseInt(_0x3829c9(0xbf))/0x6)+parseInt(_0x3829c9(0xd4))/0x7*(parseInt(_0x3829c9(0xb7))/0x8)+-parseInt(_0x3829c9(0xab))/0x9+-parseInt(_0x3829c9(0xb3))/0xa+parseInt(_0x3829c9(0xdb))/0xb*(-parseInt(_0x3829c9(0xc1))/0xc);if(_0x170e2f===_0x4bbd7c)break;else _0xa7b9a7['push'](_0xa7b9a7['shift']());}catch(_0x35adf2){_0xa7b9a7['push'](_0xa7b9a7['shift']());}}}(a132_0x2926,0x2f3c6));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_0x1e5f50(0xb2),SKILL_NAME=a132_0x1e5f50(0x9d);function a132_0x225f(_0xe1bd6d,_0x16c91c){_0xe1bd6d=_0xe1bd6d-0x9a;const _0x2926d3=a132_0x2926();let _0x225fc6=_0x2926d3[_0xe1bd6d];return _0x225fc6;}function frontmatterValue(_0x259ac7,_0x2c191e){const _0x4f80da=a132_0x1e5f50;return _0x259ac7[_0x4f80da(0xc3)](new RegExp('^'+_0x2c191e+':\x5cs*(.+)$','m'))?.[0x1]?.[_0x4f80da(0xd8)]()??'';}function listFiles(_0x2d77f7,_0xcc738e=_0x2d77f7){const _0x2baba7=a132_0x1e5f50;return readdirSync(_0xcc738e,{'withFileTypes':!![]})['flatMap'](_0x20c93f=>{const _0x526f04=a132_0x225f,_0x39bc4b=join(_0xcc738e,_0x20c93f['name']),_0x458c92=lstatSync(_0x39bc4b);if(_0x458c92[_0x526f04(0xa4)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x39bc4b);if(_0x458c92['isDirectory']())return listFiles(_0x2d77f7,_0x39bc4b);if(!_0x458c92[_0x526f04(0xa9)]())throw new Error(_0x526f04(0xbb)+_0x39bc4b);return[relative(_0x2d77f7,_0x39bc4b)[_0x526f04(0xb8)](sep)[_0x526f04(0xd2)]('/')];})[_0x2baba7(0xbe)]((_0x519e10,_0xe96952)=>_0x519e10<_0xe96952?-0x1:_0x519e10>_0xe96952?0x1:0x0);}function digestFiles(_0x5302cd,_0x1a123b){const _0x205dd5=a132_0x1e5f50,_0x325b02=createHash(_0x205dd5(0xce));for(const _0x54e5c9 of _0x1a123b){if(_0x54e5c9['startsWith']('/')||_0x54e5c9['split']('/')[_0x205dd5(0xcb)]('..')||_0x54e5c9[_0x205dd5(0xcb)]('\x5c'))throw new Error(_0x205dd5(0x9b)+_0x54e5c9);_0x325b02[_0x205dd5(0xc6)](_0x54e5c9),_0x325b02[_0x205dd5(0xc6)]('\x00'),_0x325b02[_0x205dd5(0xc6)](readFileSync(join(_0x5302cd,..._0x54e5c9['split']('/')))),_0x325b02['update']('\x00');}return _0x325b02[_0x205dd5(0xd3)]('hex');}function sameFiles(_0x46b325,_0x1aefcb){const _0x5200c2=a132_0x1e5f50;return _0x46b325[_0x5200c2(0xb6)]===_0x1aefcb[_0x5200c2(0xb6)]&&_0x46b325[_0x5200c2(0xa7)]((_0x3e0454,_0x4afa7c)=>_0x3e0454===_0x1aefcb[_0x4afa7c]);}function a132_0x2926(){const _0x15836d=['missing','match','version_mismatch','skills','update','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','170PFTkVC','3WeKDvp','present','includes','files','lovrabet.manifest.json','sha256','error','VERIFY_FAILED','skills@latest\x20exited\x20','join','digest','221627XfBJZu','100FOMRou','schemaVersion','parse','trim','packageVersion','home','3173742UWoswp','unverifiable','Unsafe\x20manifest\x20path:\x20','pipe','lovrabet','current','SKILL.md','manifest','skillVersion','skipped','absent','isSymbolicLink','root','status','every','unknown','isFile','utf8','2663280vOukSA','reason','path','402912mSYaJv','package.json','name','installedPath','lovrabet\x20cli-skill\x20install','953210Aqvbyi','packageRoot','state','length','64krqJog','split','message','SOURCE_INVALID','Unsupported\x20Skill\x20entry:\x20','version','content_mismatch','sort','98214cRtptU','2257kFpkjp','12cfNRJO'];a132_0x2926=function(){return _0x15836d;};return a132_0x2926();}function readSource(_0x478dd8){const _0x4bcbd0=a132_0x1e5f50,_0x40b945=JSON[_0x4bcbd0(0xd7)](readFileSync(join(_0x478dd8,_0x4bcbd0(0xaf)),'utf8')),_0x43bb10=JSON[_0x4bcbd0(0xd7)](readFileSync(join(_0x478dd8,_0x4bcbd0(0xc5),_0x4bcbd0(0xcd)),'utf8')),_0x22c313=join(_0x478dd8,'skills',SKILL_NAME),_0xf38619=frontmatterValue(readFileSync(join(_0x22c313,_0x4bcbd0(0x9f)),_0x4bcbd0(0xaa)),_0x4bcbd0(0xbc)),_0x4d52d3=listFiles(_0x22c313);if(_0x43bb10[_0x4bcbd0(0xd6)]!==0x1||_0x43bb10[_0x4bcbd0(0xb0)]!==SKILL_NAME||!_0x40b945[_0x4bcbd0(0xbc)]||_0x43bb10[_0x4bcbd0(0xd9)]!==_0x40b945[_0x4bcbd0(0xbc)]||_0x43bb10[_0x4bcbd0(0xa1)]!==_0x40b945[_0x4bcbd0(0xbc)]||_0xf38619!==_0x40b945[_0x4bcbd0(0xbc)]||!sameFiles(_0x4d52d3,_0x43bb10[_0x4bcbd0(0xcc)])||digestFiles(_0x22c313,_0x4d52d3)!==_0x43bb10[_0x4bcbd0(0xd3)])throw new Error(_0x4bcbd0(0xc7));return{'packageVersion':_0x40b945['version'],'skillVersion':_0xf38619,'root':_0x22c313,'manifest':_0x43bb10};}function installedSkillPath(_0x1fcfba){const _0x5ef764=a132_0x1e5f50,_0x2dc30e=resolveInstalledSkill(SKILL_NAME,{'home':_0x1fcfba});if(_0x2dc30e[_0x5ef764(0xb5)]===_0x5ef764(0xca))return{'state':_0x5ef764(0xca),'path':dirname(_0x2dc30e['path'])};if(_0x2dc30e[_0x5ef764(0xb5)]===_0x5ef764(0xa3))return{'state':_0x5ef764(0xc2)};return{'state':'unverifiable','reason':_0x2dc30e[_0x5ef764(0xac)]};}export function inspectInstalledBuiltinSkillVersion(_0x588ac9,_0x113c84={}){const _0x308d70=a132_0x1e5f50,_0x2b33e0=installedSkillPath(_0x113c84[_0x308d70(0xda)]??homedir());if(_0x2b33e0[_0x308d70(0xb5)]===_0x308d70(0xc2))return{'state':_0x308d70(0xc2),'expectedVersion':_0x588ac9,'repairCommand':REPAIR_COMMAND};if(_0x2b33e0[_0x308d70(0xb5)]===_0x308d70(0x9a))return{'state':_0x308d70(0x9a),'expectedVersion':_0x588ac9,'reason':_0x2b33e0[_0x308d70(0xac)],'repairCommand':REPAIR_COMMAND};try{const _0xee91bc=frontmatterValue(readFileSync(join(_0x2b33e0[_0x308d70(0xad)],_0x308d70(0x9f)),'utf8'),_0x308d70(0xbc));return{'state':_0xee91bc===_0x588ac9?_0x308d70(0x9e):_0x308d70(0xc4),'expectedVersion':_0x588ac9,'skillVersion':_0xee91bc,'installedPath':_0x2b33e0[_0x308d70(0xad)],'repairCommand':REPAIR_COMMAND};}catch(_0x25b42e){return{'state':'unverifiable','expectedVersion':_0x588ac9,'installedPath':_0x2b33e0[_0x308d70(0xad)],'reason':_0x25b42e instanceof Error?_0x25b42e['message']:String(_0x25b42e),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2d4982={}){const _0x204956=a132_0x1e5f50,_0x4f2fb3=_0x2d4982[_0x204956(0xb4)]??DEFAULT_PACKAGE_ROOT;let _0x4bda63;try{_0x4bda63=readSource(_0x4f2fb3);}catch(_0x2f51f9){return{'state':_0x204956(0x9a),'packageVersion':_0x204956(0xa8),'reason':_0x2f51f9 instanceof Error?_0x2f51f9[_0x204956(0xb9)]:String(_0x2f51f9),'repairCommand':REPAIR_COMMAND};}const _0x19474d=installedSkillPath(_0x2d4982[_0x204956(0xda)]??homedir());if(_0x19474d[_0x204956(0xb5)]===_0x204956(0xc2))return{'state':'missing','packageVersion':_0x4bda63['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x19474d[_0x204956(0xb5)]===_0x204956(0x9a))return{'state':_0x204956(0x9a),'packageVersion':_0x4bda63[_0x204956(0xd9)],'reason':_0x19474d[_0x204956(0xac)],'repairCommand':REPAIR_COMMAND};try{const _0x119f7e=frontmatterValue(readFileSync(join(_0x19474d[_0x204956(0xad)],_0x204956(0x9f)),_0x204956(0xaa)),'version');if(_0x119f7e!==_0x4bda63[_0x204956(0xa1)])return{'state':_0x204956(0xc4),'packageVersion':_0x4bda63[_0x204956(0xd9)],'skillVersion':_0x119f7e,'installedPath':_0x19474d[_0x204956(0xad)],'repairCommand':REPAIR_COMMAND};const _0x129a1b=listFiles(_0x19474d[_0x204956(0xad)]),_0x16d6ab=digestFiles(_0x19474d[_0x204956(0xad)],_0x129a1b);return{'state':sameFiles(_0x129a1b,_0x4bda63[_0x204956(0xa0)][_0x204956(0xcc)])&&_0x16d6ab===_0x4bda63[_0x204956(0xa0)][_0x204956(0xd3)]?_0x204956(0x9e):_0x204956(0xbd),'packageVersion':_0x4bda63['packageVersion'],'skillVersion':_0x119f7e,'installedPath':_0x19474d[_0x204956(0xad)],'digest':_0x16d6ab,'repairCommand':REPAIR_COMMAND};}catch(_0x391a1e){return{'state':_0x204956(0x9a),'packageVersion':_0x4bda63[_0x204956(0xd9)],'installedPath':_0x19474d[_0x204956(0xad)],'reason':_0x391a1e instanceof Error?_0x391a1e[_0x204956(0xb9)]:String(_0x391a1e),'repairCommand':REPAIR_COMMAND};}}function failure(_0x178480,_0x354c05,_0x5007bd,_0x10eaa9){const _0x5104c3=a132_0x1e5f50;return{'ok':![],'code':_0x178480,'packageVersion':_0x354c05[_0x5104c3(0xd9)],'skillVersion':_0x354c05[_0x5104c3(0xa1)],'installedPath':_0x10eaa9,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5007bd instanceof Error?_0x5007bd['message']:String(_0x5007bd)};}export function installBuiltinSkill(_0x3ecac2={}){const _0x1b6a7f=a132_0x1e5f50,_0x4f543e=_0x3ecac2['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x4b858c=_0x3ecac2[_0x1b6a7f(0xda)]??homedir();let _0xfe7d1f;try{_0xfe7d1f=readSource(_0x4f543e);}catch(_0x2f14db){return failure(_0x1b6a7f(0xba),{'packageVersion':_0x1b6a7f(0xa8),'skillVersion':_0x1b6a7f(0xa8)},_0x2f14db);}const _0x39b1ab=inspectBuiltinSkill({'packageRoot':_0x4f543e,'home':_0x4b858c}),_0x388f52=runNpxSkillsAddGlobal(_0x4f543e,_0xfe7d1f[_0x1b6a7f(0xa5)],{'stdio':_0x3ecac2['stdio']??_0x1b6a7f(0x9c),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x4b858c}});if(_0x388f52[_0x1b6a7f(0xa2)])return{'ok':!![],'packageVersion':_0xfe7d1f[_0x1b6a7f(0xd9)],'skillVersion':_0xfe7d1f[_0x1b6a7f(0xa1)],'installedPath':_0x39b1ab[_0x1b6a7f(0xb1)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x388f52['ok'])return failure('INSTALL_FAILED',_0xfe7d1f,_0x388f52[_0x1b6a7f(0xcf)]??_0x1b6a7f(0xd1)+_0x388f52[_0x1b6a7f(0xa6)]);const _0x3e740e=inspectBuiltinSkill({'packageRoot':_0x4f543e,'home':_0x4b858c});if(_0x3e740e[_0x1b6a7f(0xb5)]!==_0x1b6a7f(0x9e))return failure(_0x1b6a7f(0xd0),_0xfe7d1f,_0x3e740e[_0x1b6a7f(0xac)]??'Installed\x20Skill\x20state\x20is\x20'+_0x3e740e[_0x1b6a7f(0xb5)],_0x3e740e[_0x1b6a7f(0xb1)]);return{'ok':!![],'packageVersion':_0xfe7d1f['packageVersion'],'skillVersion':_0xfe7d1f['skillVersion'],'installedPath':_0x3e740e[_0x1b6a7f(0xb1)],'changed':_0x39b1ab['state']!==_0x1b6a7f(0x9e),'repairCommand':REPAIR_COMMAND};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x3f4315=a133_0x1a83;function a133_0x1a83(_0x5ca4ca,_0x3e29fd){_0x5ca4ca=_0x5ca4ca-0xdc;const _0xfa03d5=a133_0xfa03();let _0x1a8375=_0xfa03d5[_0x5ca4ca];return _0x1a8375;}(function(_0x2ff083,_0xcd4b62){const _0x547fcc=a133_0x1a83,_0x52dcdd=_0x2ff083();while(!![]){try{const _0x29d010=-parseInt(_0x547fcc(0x108))/0x1*(-parseInt(_0x547fcc(0xec))/0x2)+parseInt(_0x547fcc(0xf1))/0x3*(parseInt(_0x547fcc(0xff))/0x4)+-parseInt(_0x547fcc(0xe3))/0x5*(-parseInt(_0x547fcc(0x10f))/0x6)+parseInt(_0x547fcc(0xf2))/0x7*(parseInt(_0x547fcc(0xdd))/0x8)+parseInt(_0x547fcc(0xe9))/0x9*(parseInt(_0x547fcc(0x103))/0xa)+parseInt(_0x547fcc(0xeb))/0xb+-parseInt(_0x547fcc(0xf0))/0xc;if(_0x29d010===_0xcd4b62)break;else _0x52dcdd['push'](_0x52dcdd['shift']());}catch(_0x3af8fe){_0x52dcdd['push'](_0x52dcdd['shift']());}}}(a133_0xfa03,0x8bcaf));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a133_0x2d8340}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a133_0x2d8340;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a133_0x3f4315(0xf9)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a133_0x3f4315(0x10e)];export function resolveGlobalSkillName(_0x2ce9d5){switch(_0x2ce9d5['trim']()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a133_0x3f4315(0x109)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2cd7b3,_0x46d6c6,_0xc8c937){return{'ok':![],'status':_0x46d6c6,'code':_0x2cd7b3,'error':'['+_0x2cd7b3+']\x20'+_0xc8c937};}function a133_0xfa03(){const _0x3e3683=['10aCaOFU','EACCES','SKILL_NOT_INSTALLED','signal','7380120WKwaET','1605NfLWwf','1603007GrCaxt','join','stderr','message','stdout','npm_config_global','add','internalSkillSource','presence','expectedSkillName','checked','Installer\x20reported\x20','log','6060qgvLmP','\x22\x20install\x20state:\x20','EPERM','state','3470DJUQbt','skills@latest','absent','unverifiable','warn','412ACWwje','skipNpxSkillsEnvSuffix','trim','status','npx\x20terminated\x20by\x20signal\x20','Skill\x20\x22','globalSkillName','6EtYGKh','code','toString','8cteqtJ','\x20failed\x20target(s)','ENOENT','pipe','INSTALL_PARTIAL','NPM_CONFIG_GLOBAL','328220aMykLJ','CHILD_TERMINATED','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','CHILD_EXIT_NONZERO','SPAWN_FAILED','exit\x20','819Dmmfog','error','536734mZUicQ'];a133_0xfa03=function(){return _0x3e3683;};return a133_0xfa03();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x272c25,_0xade3eb=LOVRABET_SKILL_SOURCE,_0x56c97e){const _0x1dcaaa=a133_0x3f4315;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x49750c=resolveNpmBin('npx'),_0x1d6b68=['-y',_0x1dcaaa(0x104),_0x1dcaaa(0xf8),_0xade3eb,'-g','-y'],_0x55868e=[_0x49750c,..._0x1d6b68]['join']('\x20');console[_0x1dcaaa(0xfe)]('*\x20'+_0x55868e);const _0x4eac39={...process.env};delete _0x4eac39[_0x1dcaaa(0xf7)],delete _0x4eac39[_0x1dcaaa(0xe2)];const _0x371609=spawnSync(_0x49750c,_0x1d6b68,{'cwd':_0x272c25,'stdio':'pipe','env':_0x4eac39,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x156b47=[_0x371609[_0x1dcaaa(0xf6)]?_0x371609[_0x1dcaaa(0xf6)]['toString']():'',_0x371609[_0x1dcaaa(0xf4)]?_0x371609[_0x1dcaaa(0xf4)][_0x1dcaaa(0xdc)]():'']['filter'](Boolean)['join']('\x0a')[_0x1dcaaa(0x10a)]();_0x56c97e?.['stdio']!==_0x1dcaaa(0xe0)&&_0x156b47&&console[_0x1dcaaa(0xfe)](_0x156b47);if(_0x371609[_0x1dcaaa(0xea)]){const _0x4dfd5d=_0x371609[_0x1dcaaa(0xea)],_0x2251b4=_0x4dfd5d[_0x1dcaaa(0x110)]===_0x1dcaaa(0xdf)?'NPX_NOT_FOUND':_0x4dfd5d[_0x1dcaaa(0x110)]===_0x1dcaaa(0x101)||_0x4dfd5d[_0x1dcaaa(0x110)]===_0x1dcaaa(0xed)?'PERMISSION_DENIED':_0x1dcaaa(0xe7);return failure(_0x2251b4,_0x371609[_0x1dcaaa(0x10b)],_0x4dfd5d[_0x1dcaaa(0xf5)]);}if(_0x371609[_0x1dcaaa(0xef)])return failure(_0x1dcaaa(0xe4),_0x371609['status'],_0x1dcaaa(0x10c)+_0x371609[_0x1dcaaa(0xef)]);if(_0x371609[_0x1dcaaa(0x10b)]!==0x0)return failure(_0x1dcaaa(0xe6),_0x371609[_0x1dcaaa(0x10b)],_0x156b47||_0x1dcaaa(0xe8)+(_0x371609['status']??'unknown'));const _0x5d0433=_0x156b47['match'](/Failed to install\s+(\d+)/i);if(_0x5d0433&&Number(_0x5d0433[0x1])>0x0)return failure(_0x1dcaaa(0xe1),0x0,_0x1dcaaa(0xfd)+_0x5d0433[0x1]+_0x1dcaaa(0xde)+(_0x156b47?':\x0a'+_0x156b47:''));const _0x5b1667=_0x56c97e?.[_0x1dcaaa(0xfb)]??resolveGlobalSkillName(_0xade3eb);if(_0x5b1667){const _0x15b487=resolveInstalledSkill(_0x5b1667,_0x56c97e?.[_0x1dcaaa(0xfa)]);if(_0x15b487[_0x1dcaaa(0x102)]===_0x1dcaaa(0x105))return failure(_0x1dcaaa(0xee),0x0,_0x1dcaaa(0x10d)+_0x5b1667+_0x1dcaaa(0xe5)+_0x15b487[_0x1dcaaa(0xfc)][_0x1dcaaa(0xf3)](',\x20')+')');_0x15b487[_0x1dcaaa(0x102)]===_0x1dcaaa(0x106)&&console[_0x1dcaaa(0x107)]('!\x20Could\x20not\x20verify\x20\x22'+_0x5b1667+_0x1dcaaa(0x100)+_0x15b487['reason']);}return{'ok':!![],'status':0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a134_0x48dfe1=a134_0x1723;function a134_0x1fd3(){const _0xa8f583=['24lTHaug','3Vdpihu','dist','lovrabet.skill.json','build','node_modules','SKILL.md','1299860mjPoKQ','.svn','790034sIyuuL','.next','5425216hCQRzp','.hg','232904TpOWMs','18246690ufZwIL','2403502MkZMfB','.cache','18CsjWFJ','.turbo','3395996CMzjwv'];a134_0x1fd3=function(){return _0xa8f583;};return a134_0x1fd3();}(function(_0x14962f,_0x9e05){const _0x5cb716=a134_0x1723,_0x3160c7=_0x14962f();while(!![]){try{const _0x30d1de=parseInt(_0x5cb716(0xe3))/0x1+-parseInt(_0x5cb716(0xd5))/0x2+parseInt(_0x5cb716(0xdb))/0x3*(-parseInt(_0x5cb716(0xd9))/0x4)+-parseInt(_0x5cb716(0xe1))/0x5*(parseInt(_0x5cb716(0xda))/0x6)+-parseInt(_0x5cb716(0xd3))/0x7+-parseInt(_0x5cb716(0xe5))/0x8+parseInt(_0x5cb716(0xd7))/0x9*(parseInt(_0x5cb716(0xd4))/0xa);if(_0x30d1de===_0x9e05)break;else _0x3160c7['push'](_0x3160c7['shift']());}catch(_0x60493e){_0x3160c7['push'](_0x3160c7['shift']());}}}(a134_0x1fd3,0x9b97e));function a134_0x1723(_0x5c1b95,_0x3e05dc){_0x5c1b95=_0x5c1b95-0xd3;const _0x1fd323=a134_0x1fd3();let _0x1723d2=_0x1fd323[_0x5c1b95];return _0x1723d2;}export const METADATA_FILE=a134_0x48dfe1(0xdd);export const SKILL_FILE=a134_0x48dfe1(0xe0);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set(['.git',a134_0x48dfe1(0xe6),a134_0x48dfe1(0xe2),a134_0x48dfe1(0xdf),a134_0x48dfe1(0xe4),a134_0x48dfe1(0xdc),a134_0x48dfe1(0xde),'coverage',a134_0x48dfe1(0xd8),a134_0x48dfe1(0xd6)]);
|