@lovrabet/lovrabet-cli 2.2.4 → 2.2.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/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/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/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.d.ts +7 -0
- 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.d.ts +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6c7ec8,_0x2d17da){const _0x69f9a3=a114_0x231e,_0x39fe95=_0x6c7ec8();while(!![]){try{const _0x271b4f=-parseInt(_0x69f9a3(0x12e))/0x1*(-parseInt(_0x69f9a3(0x13c))/0x2)+-parseInt(_0x69f9a3(0x13f))/0x3+-parseInt(_0x69f9a3(0x130))/0x4+parseInt(_0x69f9a3(0x142))/0x5*(-parseInt(_0x69f9a3(0x132))/0x6)+-parseInt(_0x69f9a3(0x139))/0x7*(-parseInt(_0x69f9a3(0x131))/0x8)+parseInt(_0x69f9a3(0x148))/0x9+-parseInt(_0x69f9a3(0x13d))/0xa*(-parseInt(_0x69f9a3(0x145))/0xb);if(_0x271b4f===_0x2d17da)break;else _0x39fe95['push'](_0x39fe95['shift']());}catch(_0x5d5c7b){_0x39fe95['push'](_0x39fe95['shift']());}}}(a114_0x16d1,0x73f29));import{CLI_BIN_NAME}from'../constant/cli.js';function a114_0x231e(_0x143048,_0x1185c6){_0x143048=_0x143048-0x128;const _0x16d148=a114_0x16d1();let _0x231ec7=_0x16d148[_0x143048];return _0x231ec7;}export function buildConfirmationLines(_0x3c5b15,_0x27dc74,_0x5e6f20){const _0x4a2dc4=a114_0x231e,_0x583d20=buildConfirmationContext(_0x3c5b15,_0x27dc74,_0x5e6f20),_0x51cda5=[_0x4a2dc4(0x149)+_0x583d20['commandLabel']];return _0x583d20[_0x4a2dc4(0x14f)]&&_0x51cda5['push'](_0x4a2dc4(0x14d)+_0x583d20[_0x4a2dc4(0x14f)]),_0x583d20[_0x4a2dc4(0x128)]&&_0x51cda5[_0x4a2dc4(0x136)]('\x20\x20\x20Affected:\x20'+_0x583d20[_0x4a2dc4(0x128)]),_0x51cda5['push'](_0x4a2dc4(0x14e)),_0x51cda5;}export function reconstructCommandArgv(_0x41164c,_0x3937db){const _0x4a77cd=a114_0x231e,_0x2a646f=[CLI_BIN_NAME,_0x41164c[_0x4a77cd(0x12d)],_0x41164c[_0x4a77cd(0x134)]];for(const [_0x5d10c0,_0x32e50e]of Object[_0x4a77cd(0x138)](_0x3937db)){if(_0x32e50e===!![])_0x2a646f[_0x4a77cd(0x136)]('--'+_0x5d10c0);else _0x32e50e!==![]&&_0x32e50e!==undefined&&_0x32e50e!==''&&_0x2a646f[_0x4a77cd(0x136)]('--'+_0x5d10c0+'\x20'+JSON[_0x4a77cd(0x137)](_0x32e50e));}return _0x2a646f[_0x4a77cd(0x136)]('--yes'),_0x2a646f[_0x4a77cd(0x12a)]('\x20');}function buildConfirmationContext(_0x30d4a0,_0x4e16c2,_0x8fc025){const _0x13ff99=extractAffectedRecords(_0x8fc025);return{'commandLabel':_0x4e16c2,'description':_0x30d4a0['description'],'affectedRecords':_0x13ff99};}function extractAffectedRecords(_0x39fde6){const _0x2ba176=a114_0x231e,_0xdc4414=[];if(_0x39fde6['code'])_0xdc4414['push'](_0x2ba176(0x144)+_0x39fde6[_0x2ba176(0x129)]);if(_0x39fde6['id'])_0xdc4414[_0x2ba176(0x136)]('id='+_0x39fde6['id']);if(_0x39fde6[_0x2ba176(0x140)])_0xdc4414['push'](_0x2ba176(0x14c)+_0x39fde6[_0x2ba176(0x140)]);if(_0x39fde6[_0x2ba176(0x14a)])_0xdc4414['push'](_0x2ba176(0x135)+_0x39fde6[_0x2ba176(0x14a)]);if(_0x39fde6[_0x2ba176(0x143)])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x12c)+_0x39fde6[_0x2ba176(0x143)]);if(_0x39fde6[_0x2ba176(0x141)])_0xdc4414['push'](_0x2ba176(0x12b)+_0x39fde6[_0x2ba176(0x141)]);if(_0x39fde6[_0x2ba176(0x146)])_0xdc4414['push'](_0x2ba176(0x13e)+_0x39fde6[_0x2ba176(0x146)]);if(_0x39fde6['scheduled-at'])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x14b)+_0x39fde6[_0x2ba176(0x13a)]);if(_0x39fde6['channel'])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x150)+_0x39fde6[_0x2ba176(0x147)]);if(_0x39fde6[_0x2ba176(0x133)])_0xdc4414[_0x2ba176(0x136)](_0x2ba176(0x13b)+_0x39fde6['params']);return _0xdc4414[_0x2ba176(0x12f)]>0x0?_0xdc4414[_0x2ba176(0x12a)](',\x20'):undefined;}function a114_0x16d1(){const _0x1eeca2=['stringify','entries','3262SkdsFm','scheduled-at','params=','1343594JYGVUJ','20PumDjf','cron=','1814697sXHAwf','schedule-id','kind','5035gLCFFV','title','code=','7391714bZqMdi','cron','channel','6063174tHVXMX','⚠\x20\x20High-risk\x20operation:\x20','name','scheduled-at=','schedule-id=','\x20\x20\x20','\x20\x20\x20Continue?\x20[y/N]\x20','description','channel=','affectedRecords','code','join','kind=','title=','service','1xGgVOQ','length','3258160BuEBFN','2480hshYCc','5598AySKLR','params','command','name=','push'];a114_0x16d1=function(){return _0x1eeca2;};return a114_0x16d1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40528f,_0x1bec64){const _0x4d0c73=a115_0x50e7,_0x5aa5ea=_0x40528f();while(!![]){try{const _0x1f3075=-parseInt(_0x4d0c73(0x1b7))/0x1+parseInt(_0x4d0c73(0x1bd))/0x2*(-parseInt(_0x4d0c73(0x1b9))/0x3)+-parseInt(_0x4d0c73(0x1bc))/0x4+parseInt(_0x4d0c73(0x1b6))/0x5+parseInt(_0x4d0c73(0x1ae))/0x6*(parseInt(_0x4d0c73(0x1ad))/0x7)+parseInt(_0x4d0c73(0x1bf))/0x8*(parseInt(_0x4d0c73(0x1af))/0x9)+-parseInt(_0x4d0c73(0x1ba))/0xa*(-parseInt(_0x4d0c73(0x1b5))/0xb);if(_0x1f3075===_0x1bec64)break;else _0x5aa5ea['push'](_0x5aa5ea['shift']());}catch(_0x439865){_0x5aa5ea['push'](_0x5aa5ea['shift']());}}}(a115_0x8dff,0x22623));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x395c61){const _0x5730f0=a115_0x50e7;if(_0x395c61 instanceof LovrabetError){const _0xca5226=userFacingLovrabetMessage(_0x395c61),_0xb94a0c=_0x395c61,_0x194d86=createRateLimitError({'status':_0xb94a0c[_0x5730f0(0x1b4)],'errorCode':_0xb94a0c['code'],'message':_0xca5226,'retryAfter':readRetryAfter(_0xb94a0c[_0x5730f0(0x1b2)]?.[_0x5730f0(0x1bb)])??readRetryAfterSeconds(_0xb94a0c['response'])});return _0x194d86??CliErrors[_0x5730f0(0x1b3)](_0xca5226);}return _0x395c61;}function userFacingLovrabetMessage(_0x57ca9d){const _0x35e268=a115_0x50e7,_0x580e65=_0x57ca9d[_0x35e268(0x1b1)];if(_0x580e65!==undefined&&_0x580e65!==null){if(typeof _0x580e65===_0x35e268(0x1b0)&&_0x580e65[_0x35e268(0x1b8)]())return _0x580e65['trim']();try{return JSON[_0x35e268(0x1be)](_0x580e65);}catch{}}return _0x57ca9d['message'];}function a115_0x50e7(_0x1af950,_0x14674a){_0x1af950=_0x1af950-0x1ad;const _0x8dff8c=a115_0x8dff();let _0x50e712=_0x8dff8c[_0x1af950];return _0x50e712;}function a115_0x8dff(){const _0x5416d6=['1226064eApSaJ','6849timDLm','string','description','response','validation','status','2890008ZGOSjg','56575pPJWND','214201EANVhE','trim','969vwhwZL','10tRmdLl','headers','996804yfcdqL','804IEwhJw','stringify','2688EzmtHM','7EUydpj'];a115_0x8dff=function(){return _0x5416d6;};return a115_0x8dff();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xf8cd34,_0x44794c){const _0x245843=a116_0x31e8,_0x57b235=_0xf8cd34();while(!![]){try{const _0x5d5b7c=-parseInt(_0x245843(0x1c0))/0x1+-parseInt(_0x245843(0x1ea))/0x2+-parseInt(_0x245843(0x1ca))/0x3*(-parseInt(_0x245843(0x1bc))/0x4)+-parseInt(_0x245843(0x1d0))/0x5+parseInt(_0x245843(0x1d6))/0x6+parseInt(_0x245843(0x1e8))/0x7*(-parseInt(_0x245843(0x1bf))/0x8)+-parseInt(_0x245843(0x1c2))/0x9*(-parseInt(_0x245843(0x1c9))/0xa);if(_0x5d5b7c===_0x44794c)break;else _0x57b235['push'](_0x57b235['shift']());}catch(_0x2c3697){_0x57b235['push'](_0x57b235['shift']());}}}(a116_0x6c21,0x8894e));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}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';function a116_0x6c21(){const _0x6b4b73=['cancelled','has','local-alias','appcode','ClientAk','trim','catch','format','ACCESS_KEY','production','newConfigFileName','object','428071CbGviC','validation','1567714CtUiUA','resolve','execute','../core/api-client.js','includes','defaultPageSize','filter','update','error','Run\x20`','nonInteractive','configMissing','appCodeSource','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','pretty','map','\x20\x20To\x20proceed:\x20','app','../core/sdk-client.js','string','env','4Bpraqq','authRequired','service','136NRiImG','784810CfrVFP','Unknown\x20app:\x20','95535fChEMv','items','_notice','APPCODE','currentApp','defaultApp','../commands/app/remote-source.js','2830Sricgc','500667weihJg','Set\x20accessKey\x20in\x20','appcode\x20\x22','appCode','pageSize','requiresAuth','4165400enRIVE','mergedCli','High-risk\x20operation\x20`','confirmHighRisk','rawFlags','verbose','4979112uXWfLD','name','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','requiresAppCode','accessKey','command'];a116_0x6c21=function(){return _0x6b4b73;};return a116_0x6c21();}function a116_0x31e8(_0xc9303a,_0x5254a2){_0xc9303a=_0xc9303a-0x1a9;const _0x6c21e8=a116_0x6c21();let _0x31e80b=_0x6c21e8[_0xc9303a];return _0x31e80b;}import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x893db8){const _0x3d0b99=a116_0x31e8;return void _0x893db8,AUTH_MODE[_0x3d0b99(0x1e0)];}let sdkClientInitialized=![];export function createPipelineEnv(_0xbd9763,_0x1be7be){const _0x4851ce=a116_0x31e8,_0x5573b1=typeof _0x1be7be[_0x4851ce(0x1b8)]==='string'&&_0x1be7be[_0x4851ce(0x1b8)][_0x4851ce(0x1e1)]();return{'rawFlags':_0x1be7be,'appCode':_0xbd9763[_0x4851ce(0x1cd)]||productEnv('APPCODE')||(_0x5573b1?undefined:readAppCodeFromConfig()),'appCodeSource':_0xbd9763[_0x4851ce(0x1b3)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1be7be),'defaultFormat':_0xbd9763[_0x4851ce(0x1e3)],'defaultPageSize':_0xbd9763[_0x4851ce(0x1ce)],'defaultVerbose':_0xbd9763[_0x4851ce(0x1d5)],'riskLevel':_0xbd9763['riskLevel'],'accessKey':_0xbd9763['accessKey'],'env':_0xbd9763[_0x4851ce(0x1bb)],'mergedCli':{'defaultApp':_0xbd9763[_0x4851ce(0x1c7)],'currentApp':_0xbd9763[_0x4851ce(0x1c6)],'appCode':_0xbd9763['appCode']}};}export function createLovrabetRunnerAdapter(_0x3e8d9b={}){const _0x236b2d=a116_0x31e8,_0x134946={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x236b2d(0x1ad)](_0x19d141=>PIPELINE_FLAG_NAMES[_0x236b2d(0x1dd)](_0x19d141[_0x236b2d(0x1d7)]))[_0x236b2d(0x1b6)](({name:_0x13c06c,type:_0x266a2d,description:_0x31b6d0})=>({'name':_0x13c06c,'type':_0x266a2d,'description':_0x31b6d0})),'formatOutput':_0x3e8d9b['formatOutput']??formatOutput,'getCommandLabel'(_0x276cf9){const _0x3bd7a2=_0x236b2d;return CLI_BIN_NAME+'\x20'+_0x276cf9['service']+'\x20'+_0x276cf9[_0x3bd7a2(0x1db)];},'riskPolicy':{'onViolation'(_0x36b7fb){const _0x20ef09=_0x236b2d;console[_0x20ef09(0x1af)](_0x36b7fb);},'createError'(_0xe64087){const _0x5babb5=_0x236b2d;return CliErrors[_0x5babb5(0x1dc)](_0xe64087);}},async 'prepare'(_0xf850f1,_0x4ee43b){const _0x4f892a=_0x236b2d,_0x540e1c=resolveAuthMode(_0x4ee43b);if(_0xf850f1[_0x4f892a(0x1cf)]!==![]){if(!_0x4ee43b[_0x4f892a(0x1da)])throw CliErrors[_0x4f892a(0x1bd)](_0x4f892a(0x1cb)+PRODUCT_CONFIG[_0x4f892a(0x1e6)]+'\x20or\x20pass\x20'+productEnvName(_0x4f892a(0x1e4))+'.');const {setActiveAK:_0x50752b}=await import(_0x4f892a(0x1aa));_0x50752b(_0x4ee43b[_0x4f892a(0x1da)]);}let _0x1a280f='';if(_0xf850f1[_0x4f892a(0x1d9)]!==![]){_0x1a280f=_0x4ee43b[_0x4f892a(0x1cd)]??'',_0x1a280f=await resolveExplicitAppName(_0xf850f1,_0x4ee43b,_0x1a280f);if(!_0x1a280f){await assertSelectedAppNameIsRuntimeAccessible(_0xf850f1,_0x4ee43b);throw CliErrors[_0x4f892a(0x1b2)](_0x4f892a(0x1b4)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xf850f1,_0x4ee43b,_0x1a280f);}if(_0x1a280f){const {initSdkClient:_0x1ddd90}=await import('../core/sdk-client.js');_0x1ddd90({'appCode':_0x1a280f,'env':_0x4ee43b[_0x4f892a(0x1bb)]??_0x4f892a(0x1e5),'accessKey':_0x4ee43b['accessKey'],'authMode':_0x540e1c}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4ee43b['defaultVerbose']},'numbers':{'pagesize':_0x4ee43b[_0x4f892a(0x1ac)]}},'extras':{'appCode':_0x1a280f,'cookie':'','apiDomain':_0x4ee43b['apiDomain'],'apiDir':'','accessKey':_0x4ee43b[_0x4f892a(0x1da)],'envName':_0x4ee43b[_0x4f892a(0x1bb)],'mergedCli':_0x4ee43b[_0x4f892a(0x1d1)]}};},'confirmHighRisk':_0x3e8d9b[_0x236b2d(0x1d3)]??(async({def:_0x2781f8,env:_0x5112d7,flags:_0x3032cd,commandLabel:_0x18a621})=>{const _0x53f948=_0x236b2d;if(_0x5112d7['isNonInteractive']){const _0x12e3eb=reconstructCommandArgv(_0x2781f8,_0x3032cd);throw CliErrors[_0x53f948(0x1e9)](_0x53f948(0x1d2)+_0x18a621+_0x53f948(0x1d8)+(_0x53f948(0x1b7)+_0x12e3eb));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2781f8,_0x18a621,_0x3032cd),'createCancelledError':_0x36fd2c=>CliErrors[_0x53f948(0x1dc)](_0x36fd2c)});}),'mapDryRunError'(_0x49e92d){return mapUserFacingExecuteError(_0x49e92d);},'mapExecuteError'(_0x302e03){return mapUserFacingExecuteError(_0x302e03);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x134946;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x56ca55=a116_0x31e8;try{if(sdkClientInitialized){const {clearSdkClient:_0x4cca83}=await import(_0x56ca55(0x1b9));_0x4cca83();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x462cf7}=await import(_0x56ca55(0x1aa));_0x462cf7();}}async function resolveExplicitAppName(_0x14e911,_0x3fecbb,_0x3a8ef5){const _0x5d7284=a116_0x31e8;if(_0x14e911[_0x5d7284(0x1d9)]===![])return _0x3a8ef5;const _0x2689d5=typeof _0x3fecbb[_0x5d7284(0x1d4)][_0x5d7284(0x1b8)]===_0x5d7284(0x1ba)?_0x3fecbb[_0x5d7284(0x1d4)][_0x5d7284(0x1b8)][_0x5d7284(0x1e1)]():'';if(!_0x2689d5)return _0x3a8ef5;const _0x1953ea=typeof _0x3fecbb['rawFlags'][_0x5d7284(0x1df)]===_0x5d7284(0x1ba)&&_0x3fecbb[_0x5d7284(0x1d4)]['appcode'][_0x5d7284(0x1e1)]()||productEnv(_0x5d7284(0x1c5));if(_0x1953ea||_0x3fecbb[_0x5d7284(0x1b3)]===_0x5d7284(0x1de))return _0x3a8ef5;const {getRemoteAppList:_0x1e57c0}=await import('../commands/app/remote-source.js'),_0x26516e=await _0x1e57c0({'env':_0x3fecbb['env']??_0x5d7284(0x1e5),'accessKey':_0x3fecbb[_0x5d7284(0x1da)]}),_0x5c505b=findAppByName(_0x26516e[_0x5d7284(0x1c3)],_0x2689d5);if(_0x5c505b&&!isRuntimeAccessibleApp(_0x5c505b))throw runtimeInaccessibleAppError(_0x5c505b,'\x22'+_0x2689d5+'\x22');const _0x3c860f=_0x5c505b?.[_0x5d7284(0x1cd)]?.['trim']();if(_0x3c860f)return _0x3c860f;throw CliErrors[_0x5d7284(0x1e9)](_0x5d7284(0x1c1)+_0x2689d5,_0x5d7284(0x1b0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2689d5+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x5d7284(0x1e6)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x2caea6,_0x5adf71){const _0x3c30dc=a116_0x31e8;if(_0x2caea6['requiresAppCode']===![]||!_0x5adf71[_0x3c30dc(0x1da)])return;const _0x1c2515=(typeof _0x5adf71[_0x3c30dc(0x1d4)][_0x3c30dc(0x1b8)]===_0x3c30dc(0x1ba)&&_0x5adf71['rawFlags'][_0x3c30dc(0x1b8)][_0x3c30dc(0x1e1)]()?_0x5adf71[_0x3c30dc(0x1d4)][_0x3c30dc(0x1b8)]:_0x5adf71['mergedCli']?.[_0x3c30dc(0x1c6)]??_0x5adf71[_0x3c30dc(0x1d1)]?.[_0x3c30dc(0x1c7)])?.[_0x3c30dc(0x1e1)]();if(!_0x1c2515)return;const {getRemoteAppList:_0xe9542}=await import(_0x3c30dc(0x1c8)),_0x138367=await _0xe9542({'env':_0x5adf71['env']??_0x3c30dc(0x1e5),'accessKey':_0x5adf71['accessKey']}),_0x1834d9=findAppByName(_0x138367[_0x3c30dc(0x1c3)],_0x1c2515);if(_0x1834d9&&!isRuntimeAccessibleApp(_0x1834d9))throw runtimeInaccessibleAppError(_0x1834d9,'\x22'+_0x1c2515+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5533ff,_0x3742bf,_0x3d00f0){const _0x17e4c9=a116_0x31e8;if(_0x5533ff['requiresAppCode']===![]||!_0x3742bf[_0x17e4c9(0x1da)])return;const {getRemoteAppList:_0x3e53b4}=await import(_0x17e4c9(0x1c8)),_0x1c64ff=await _0x3e53b4({'env':_0x3742bf[_0x17e4c9(0x1bb)]??_0x17e4c9(0x1e5),'accessKey':_0x3742bf[_0x17e4c9(0x1da)]}),_0x3517bc=findAppByCode(_0x1c64ff['items'],_0x3d00f0);if(_0x3517bc&&!isRuntimeAccessibleApp(_0x3517bc))throw runtimeInaccessibleAppError(_0x3517bc,_0x17e4c9(0x1cc)+_0x3d00f0+'\x22');}export async function runCommand(_0xaa993,_0x4079c6,_0x8a469a=terminalRunnerAdapter){const _0x16f04a=a116_0x31e8;assertKnownCommandFlags(_0xaa993,_0x4079c6[_0x16f04a(0x1d4)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xaa993)?withUpdateNotice(_0xaa993):_0xaa993,_0x4079c6,_0x8a469a);}function shouldAttachUpdateNotice(_0x565beb){const _0x6ca9d8=a116_0x31e8;return![_0x6ca9d8(0x1ae),'schema','doctor'][_0x6ca9d8(0x1ab)](_0x565beb[_0x6ca9d8(0x1be)]);}function withUpdateNotice(_0x58951e){return{..._0x58951e,async 'execute'(_0x11ba96){const _0x21455e=a116_0x31e8,_0x201f87=shouldResolveUpdateNotice(_0x11ba96)?resolveLatestUpdateNotice()[_0x21455e(0x1e2)](()=>null):Promise[_0x21455e(0x1eb)](null),_0x40ab16=await _0x58951e[_0x21455e(0x1a9)](_0x11ba96);return attachUpdateNotice(_0x40ab16,await _0x201f87);}};}function shouldResolveUpdateNotice(_0x2d01ca){const _0x44626d=a116_0x31e8;return _0x2d01ca['format']===_0x44626d(0x1b5)&&!_0x2d01ca[_0x44626d(0x1b1)];}function attachUpdateNotice(_0x459247,_0x1c996e){const _0x290664=a116_0x31e8;if(!_0x1c996e||!_0x459247||typeof _0x459247!==_0x290664(0x1e7))return _0x459247;const _0x4068ae=_0x459247,_0x74a0b2=typeof _0x4068ae[_0x290664(0x1c4)]===_0x290664(0x1e7)&&_0x4068ae['_notice']!==null?_0x4068ae[_0x290664(0x1c4)]:{};return{..._0x4068ae,'_notice':{..._0x74a0b2,'update':_0x1c996e}};}
|
|
1
|
+
(function(_0xbf78d9,_0x20fa42){const _0xce1fd3=a116_0x1848,_0x3420a5=_0xbf78d9();while(!![]){try{const _0x563849=parseInt(_0xce1fd3(0x19c))/0x1*(-parseInt(_0xce1fd3(0x17b))/0x2)+parseInt(_0xce1fd3(0x179))/0x3*(-parseInt(_0xce1fd3(0x199))/0x4)+-parseInt(_0xce1fd3(0x171))/0x5*(parseInt(_0xce1fd3(0x16c))/0x6)+-parseInt(_0xce1fd3(0x187))/0x7+parseInt(_0xce1fd3(0x1a6))/0x8*(-parseInt(_0xce1fd3(0x188))/0x9)+-parseInt(_0xce1fd3(0x1a2))/0xa+parseInt(_0xce1fd3(0x197))/0xb*(parseInt(_0xce1fd3(0x19a))/0xc);if(_0x563849===_0x20fa42)break;else _0x3420a5['push'](_0x3420a5['shift']());}catch(_0x463858){_0x3420a5['push'](_0x3420a5['shift']());}}}(a116_0x3d2a,0x2c588));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a116_0x1848(_0x1577e3,_0x894da0){_0x1577e3=_0x1577e3-0x16c;const _0x3d2a82=a116_0x3d2a();let _0x1848ee=_0x3d2a82[_0x1577e3];return _0x1848ee;}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}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{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xae2d1c){const _0x47f5c3=a116_0x1848;return void _0xae2d1c,AUTH_MODE[_0x47f5c3(0x1a9)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x11c3e3,_0x26d88a){const _0x362d5f=a116_0x1848,_0x9d0ffd=typeof _0x26d88a[_0x362d5f(0x170)]==='string'&&_0x26d88a[_0x362d5f(0x170)][_0x362d5f(0x16f)]();return{'rawFlags':_0x26d88a,'appCode':_0x11c3e3[_0x362d5f(0x1ab)]||productEnv(_0x362d5f(0x18d))||(_0x9d0ffd?undefined:readAppCodeFromConfig()),'appCodeSource':_0x11c3e3[_0x362d5f(0x18f)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x26d88a),'defaultFormat':_0x11c3e3[_0x362d5f(0x194)],'defaultPageSize':_0x11c3e3[_0x362d5f(0x1a0)],'defaultVerbose':_0x11c3e3[_0x362d5f(0x1a3)],'riskLevel':_0x11c3e3[_0x362d5f(0x174)],'accessKey':_0x11c3e3['accessKey'],'env':_0x11c3e3[_0x362d5f(0x186)],'mergedCli':{'defaultApp':_0x11c3e3['defaultApp'],'currentApp':_0x11c3e3['currentApp'],'appCode':_0x11c3e3[_0x362d5f(0x1ab)]}};}export function createLovrabetRunnerAdapter(_0x1c90a8={}){const _0x284492=a116_0x1848,_0x1867f0={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x284492(0x181)](_0x13745e=>PIPELINE_FLAG_NAMES['has'](_0x13745e[_0x284492(0x17e)]))[_0x284492(0x17c)](({name:_0x34ddaf,type:_0x5f4e9d,description:_0x1e7a00})=>({'name':_0x34ddaf,'type':_0x5f4e9d,'description':_0x1e7a00})),'formatOutput':_0x1c90a8[_0x284492(0x16d)]??formatOutput,'getCommandLabel'(_0x1c0cad){const _0x22573d=_0x284492;return CLI_BIN_NAME+'\x20'+_0x1c0cad[_0x22573d(0x18c)]+'\x20'+_0x1c0cad['command'];},'riskPolicy':{'onViolation'(_0x530ee4){console['error'](_0x530ee4);},'createError'(_0x52827d){const _0x35aced=_0x284492;return CliErrors[_0x35aced(0x178)](_0x52827d);}},async 'prepare'(_0x1667e0,_0x1a20e7){const _0x236392=_0x284492,_0x70a1e3=resolveAuthMode(_0x1a20e7);if(_0x1667e0[_0x236392(0x18b)]!==![]){if(!_0x1a20e7[_0x236392(0x17d)])throw CliErrors[_0x236392(0x172)](_0x236392(0x17a)+PRODUCT_CONFIG[_0x236392(0x1a5)]+_0x236392(0x1a4)+productEnvName(_0x236392(0x1af))+'.');const {setActiveAK:_0x38bd0e}=await import('../core/api-client.js');_0x38bd0e(_0x1a20e7['accessKey']);}let _0x50a97f='';if(_0x1667e0['requiresAppCode']!==![]){_0x50a97f=_0x1a20e7[_0x236392(0x1ab)]??'',_0x50a97f=await resolveExplicitAppName(_0x1667e0,_0x1a20e7,_0x50a97f);if(!_0x50a97f){await assertSelectedAppNameIsRuntimeAccessible(_0x1667e0,_0x1a20e7);throw CliErrors[_0x236392(0x177)](_0x236392(0x173)+PRODUCT_CONFIG[_0x236392(0x1a5)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1667e0,_0x1a20e7,_0x50a97f);}if(_0x50a97f){const {initSdkClient:_0x2b265f}=await import(_0x236392(0x19f));_0x2b265f({'appCode':_0x50a97f,'env':_0x1a20e7[_0x236392(0x186)]??_0x236392(0x1ad),'accessKey':_0x1a20e7[_0x236392(0x17d)],'authMode':_0x70a1e3}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1a20e7['defaultVerbose']},'numbers':{'pagesize':_0x1a20e7[_0x236392(0x1ac)]}},'extras':{'appCode':_0x50a97f,'cookie':'','apiDomain':_0x1a20e7[_0x236392(0x19b)],'apiDir':'','accessKey':_0x1a20e7[_0x236392(0x17d)],'envName':_0x1a20e7[_0x236392(0x186)],'mergedCli':_0x1a20e7['mergedCli']}};},'confirmHighRisk':_0x1c90a8[_0x284492(0x175)]??(async({def:_0x56deb1,env:_0x10f448,flags:_0x573d00,commandLabel:_0x2effc8})=>{const _0x556cc8=_0x284492;if(_0x10f448[_0x556cc8(0x184)]){const _0x49bb64=reconstructCommandArgv(_0x56deb1,_0x573d00);throw CliErrors['validation'](_0x556cc8(0x196)+_0x2effc8+_0x556cc8(0x180)+(_0x556cc8(0x183)+_0x49bb64));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x56deb1,_0x2effc8,_0x573d00),'createCancelledError':_0x3b57e6=>CliErrors[_0x556cc8(0x178)](_0x3b57e6)});}),'mapDryRunError'(_0x1bf1cc){return mapUserFacingExecuteError(_0x1bf1cc);},'mapExecuteError'(_0x1fb17b){return mapUserFacingExecuteError(_0x1fb17b);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1867f0;}function a116_0x3d2a(){const _0x567726=['Unknown\x20app:\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','filter','doctor','\x20\x20To\x20proceed:\x20','isNonInteractive','object','env','1298143vlFNbk','9xTXdCL','mergedCli','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','requiresAuth','service','APPCODE','_notice','appCodeSource','update','resolve','string','../core/api-client.js','format','.appcode\x20to\x20','High-risk\x20operation\x20`','11rSIDeu','nonInteractive','53900HwHeoi','13489044hRgAYC','apiDomain','4054xpqIIM','../commands/app/remote-source.js','requiresAppCode','../core/sdk-client.js','pageSize','Run\x20`','182700mhQqjn','verbose','\x20or\x20pass\x20','newConfigFileName','1121512DHhSRW','appcode','pretty','ClientAk','items','appCode','defaultPageSize','production','rawFlags','ACCESS_KEY','24oabvGc','formatOutput','catch','trim','app','392095sxecoo','authRequired','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','riskLevel','confirmHighRisk','defaultApp','configMissing','cancelled','21PLCxLL','Set\x20accessKey\x20in\x20','94aEkUfT','map','accessKey','name'];a116_0x3d2a=function(){return _0x567726;};return a116_0x3d2a();}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x3f27ed=a116_0x1848;try{if(sdkClientInitialized){const {clearSdkClient:_0x468926}=await import('../core/sdk-client.js');_0x468926();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x8e7c64}=await import(_0x3f27ed(0x193));_0x8e7c64();}}async function resolveExplicitAppName(_0x493d24,_0xbda7d0,_0xf8f80b){const _0x41bb6a=a116_0x1848;if(_0x493d24[_0x41bb6a(0x19e)]===![])return _0xf8f80b;const _0x36e2d1=typeof _0xbda7d0[_0x41bb6a(0x1ae)]['app']===_0x41bb6a(0x192)?_0xbda7d0[_0x41bb6a(0x1ae)]['app']['trim']():'';if(!_0x36e2d1)return _0xf8f80b;const _0x54e8e6=typeof _0xbda7d0[_0x41bb6a(0x1ae)][_0x41bb6a(0x1a7)]===_0x41bb6a(0x192)&&_0xbda7d0[_0x41bb6a(0x1ae)][_0x41bb6a(0x1a7)][_0x41bb6a(0x16f)]()||productEnv(_0x41bb6a(0x18d));if(_0x54e8e6||_0xbda7d0[_0x41bb6a(0x18f)]==='local-alias')return _0xf8f80b;const {getRemoteAppList:_0x58e469}=await import(_0x41bb6a(0x19d)),_0x2d786f=await _0x58e469({'env':_0xbda7d0[_0x41bb6a(0x186)]??'production','accessKey':_0xbda7d0['accessKey']}),_0x48d41c=findAppByName(_0x2d786f[_0x41bb6a(0x1aa)],_0x36e2d1);if(_0x48d41c&&!isRuntimeAccessibleApp(_0x48d41c))throw runtimeInaccessibleAppError(_0x48d41c,'\x22'+_0x36e2d1+'\x22');const _0x400d35=_0x48d41c?.['appCode']?.[_0x41bb6a(0x16f)]();if(_0x400d35)return _0x400d35;throw CliErrors['validation'](_0x41bb6a(0x17f)+_0x36e2d1,_0x41bb6a(0x1a1)+CLI_BIN_NAME+_0x41bb6a(0x18a)+_0x36e2d1+_0x41bb6a(0x195)+PRODUCT_CONFIG[_0x41bb6a(0x1a5)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1c7acb,_0x53c4c4){const _0x4788b7=a116_0x1848;if(_0x1c7acb[_0x4788b7(0x19e)]===![]||!_0x53c4c4[_0x4788b7(0x17d)])return;const _0x418c06=(typeof _0x53c4c4[_0x4788b7(0x1ae)][_0x4788b7(0x170)]===_0x4788b7(0x192)&&_0x53c4c4[_0x4788b7(0x1ae)][_0x4788b7(0x170)]['trim']()?_0x53c4c4['rawFlags'][_0x4788b7(0x170)]:_0x53c4c4[_0x4788b7(0x189)]?.['currentApp']??_0x53c4c4[_0x4788b7(0x189)]?.[_0x4788b7(0x176)])?.[_0x4788b7(0x16f)]();if(!_0x418c06)return;const {getRemoteAppList:_0x249361}=await import(_0x4788b7(0x19d)),_0x255d77=await _0x249361({'env':_0x53c4c4[_0x4788b7(0x186)]??_0x4788b7(0x1ad),'accessKey':_0x53c4c4[_0x4788b7(0x17d)]}),_0x1b0bfa=findAppByName(_0x255d77[_0x4788b7(0x1aa)],_0x418c06);if(_0x1b0bfa&&!isRuntimeAccessibleApp(_0x1b0bfa))throw runtimeInaccessibleAppError(_0x1b0bfa,'\x22'+_0x418c06+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x3f30de,_0x3861ae,_0x58252a){const _0x152683=a116_0x1848;if(_0x3f30de[_0x152683(0x19e)]===![]||!_0x3861ae['accessKey'])return;const {getRemoteAppList:_0x458293}=await import(_0x152683(0x19d)),_0x523457=await _0x458293({'env':_0x3861ae[_0x152683(0x186)]??'production','accessKey':_0x3861ae[_0x152683(0x17d)]}),_0x50cb00=findAppByCode(_0x523457[_0x152683(0x1aa)],_0x58252a);if(_0x50cb00&&!isRuntimeAccessibleApp(_0x50cb00))throw runtimeInaccessibleAppError(_0x50cb00,'appcode\x20\x22'+_0x58252a+'\x22');}export async function runCommand(_0x5c4994,_0xea8b2,_0x3bb1ad=terminalRunnerAdapter){const _0xe4d82=a116_0x1848;assertKnownCommandFlags(_0x5c4994,_0xea8b2[_0xe4d82(0x1ae)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5c4994)?withUpdateNotice(_0x5c4994):_0x5c4994,_0xea8b2,_0x3bb1ad);}function shouldAttachUpdateNotice(_0x134969){const _0x59c02c=a116_0x1848;return![_0x59c02c(0x190),'schema',_0x59c02c(0x182)]['includes'](_0x134969[_0x59c02c(0x18c)]);}function withUpdateNotice(_0x1226fb){return{..._0x1226fb,async 'execute'(_0x438d31){const _0x1ac180=a116_0x1848,_0x449a5d=shouldResolveUpdateNotice(_0x438d31)?resolveLatestUpdateNotice()[_0x1ac180(0x16e)](()=>null):Promise[_0x1ac180(0x191)](null),_0x5d8865=await _0x1226fb['execute'](_0x438d31);return attachUpdateNotice(_0x5d8865,await _0x449a5d);}};}function shouldResolveUpdateNotice(_0x4fa800){const _0x285257=a116_0x1848;return _0x4fa800[_0x285257(0x194)]===_0x285257(0x1a8)&&!_0x4fa800[_0x285257(0x198)];}function attachUpdateNotice(_0x33faee,_0x540fe7){const _0x91eeb3=a116_0x1848;if(!_0x540fe7||!_0x33faee||typeof _0x33faee!==_0x91eeb3(0x185))return _0x33faee;const _0x1e3d40=_0x33faee,_0x91faf0=typeof _0x1e3d40[_0x91eeb3(0x18e)]===_0x91eeb3(0x185)&&_0x1e3d40[_0x91eeb3(0x18e)]!==null?_0x1e3d40[_0x91eeb3(0x18e)]:{};return{..._0x1e3d40,'_notice':{..._0x91faf0,'update':_0x540fe7}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11fb84,_0x526bb5){const _0x3fdc7b=a117_0x2aee,_0x1ebaaa=_0x11fb84();while(!![]){try{const _0x1a4b42=-parseInt(_0x3fdc7b(0x86))/0x1*(parseInt(_0x3fdc7b(0x89))/0x2)+-parseInt(_0x3fdc7b(0x81))/0x3+parseInt(_0x3fdc7b(0x88))/0x4*(-parseInt(_0x3fdc7b(0x8b))/0x5)+-parseInt(_0x3fdc7b(0x87))/0x6+-parseInt(_0x3fdc7b(0x8a))/0x7*(parseInt(_0x3fdc7b(0x7a))/0x8)+-parseInt(_0x3fdc7b(0x7f))/0x9+parseInt(_0x3fdc7b(0x82))/0xa*(parseInt(_0x3fdc7b(0x8d))/0xb);if(_0x1a4b42===_0x526bb5)break;else _0x1ebaaa['push'](_0x1ebaaa['shift']());}catch(_0x3acf39){_0x1ebaaa['push'](_0x1ebaaa['shift']());}}}(a117_0x4b73,0x6dec5));import{buildSchemaPayload as a117_0x52bace}from'@lovrabet/cli-framework';function a117_0x2aee(_0x20fd92,_0x2d0014){_0x20fd92=_0x20fd92-0x7a;const _0x4b7317=a117_0x4b73();let _0x2aee0c=_0x4b7317[_0x20fd92];return _0x2aee0c;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a117_0x4b73(){const _0x3030d1=['1862182lUOdCy','635515HGJpHC','map','143durbRR','16tjCgZl','requiresAuth','service','none','filter','4989933ipzFDN','has','1539909SLSUHo','2318910JszHXu','required','../commands/registry.js','auth','1nnAixr','4843536HyQMOE','4zmIyQP','60374AdpLgE'];a117_0x4b73=function(){return _0x3030d1;};return a117_0x4b73();}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 _0x8cb7cd=a117_0x2aee,{serviceRegistry:_0x4efb9a,findDefinition:_0x58ca59}=await import(_0x8cb7cd(0x84)),_0x50ab34=new Set(_0x4efb9a[_0x8cb7cd(0x8c)](_0x3a6cad=>_0x3a6cad[_0x8cb7cd(0x7c)])),_0x275dff=listDynamicServiceEntries()[_0x8cb7cd(0x7e)](_0x1df7bb=>!_0x50ab34[_0x8cb7cd(0x80)](_0x1df7bb[_0x8cb7cd(0x7c)])),_0x4a9413=a117_0x52bace({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x4efb9a,_0x275dff),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4aff46,_0x6a95c1)=>_0x58ca59(_0x4aff46,_0x6a95c1)??findDynamicServiceDefinition(_0x4aff46,_0x6a95c1)});return normalizeSchemaPayload(_0x4a9413);}function normalizeSchemaPayload(_0xaf96b1){const _0x42e917=a117_0x2aee;return{..._0xaf96b1,'schemaVersion':0x2,'services':_0xaf96b1['services'][_0x42e917(0x8c)](_0xfaa1fc=>({..._0xfaa1fc,'commands':_0xfaa1fc['commands'][_0x42e917(0x8c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x44fc88){const _0x1e9c41=a117_0x2aee,_0x497206=_0x44fc88;return{..._0x44fc88,'auth':_0x497206[_0x1e9c41(0x85)]??(_0x44fc88[_0x1e9c41(0x7b)]?_0x1e9c41(0x83):_0x1e9c41(0x7d))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0x511e(_0x56d5cd,_0x5ba1ac){_0x56d5cd=_0x56d5cd-0x69;const _0x4d7350=a118_0x4d73();let _0x511ea9=_0x4d7350[_0x56d5cd];return _0x511ea9;}(function(_0x430b66,_0x4b8e8e){const _0x4eaae4=a118_0x511e,_0x44cd7b=_0x430b66();while(!![]){try{const _0x5106e6=-parseInt(_0x4eaae4(0x69))/0x1+-parseInt(_0x4eaae4(0x6b))/0x2*(parseInt(_0x4eaae4(0x6d))/0x3)+-parseInt(_0x4eaae4(0x70))/0x4+-parseInt(_0x4eaae4(0x72))/0x5+-parseInt(_0x4eaae4(0x71))/0x6*(parseInt(_0x4eaae4(0x6a))/0x7)+parseInt(_0x4eaae4(0x74))/0x8*(-parseInt(_0x4eaae4(0x6f))/0x9)+-parseInt(_0x4eaae4(0x73))/0xa*(-parseInt(_0x4eaae4(0x75))/0xb);if(_0x5106e6===_0x4b8e8e)break;else _0x44cd7b['push'](_0x44cd7b['shift']());}catch(_0x568f0d){_0x44cd7b['push'](_0x44cd7b['shift']());}}}(a118_0x4d73,0x4c83a));function a118_0x4d73(){const _0x278e19=['22972cnviqT','72KwsRYc','1507580mTFjDz','2454730avmsuW','1837048ZCtscq','121neKGNH','findIndex','483659eHoTdT','307167rLOrNz','110918GakWvJ','service','33dsUXkd','slice','18tBYmWa'];a118_0x4d73=function(){return _0x278e19;};return a118_0x4d73();}export function insertDynamicServicesAfterServiceTree(_0x2a2d1e,_0x23fa26){const _0x266bac=a118_0x511e;if(_0x23fa26['length']===0x0)return[..._0x2a2d1e];const _0x153b5e=_0x2a2d1e[_0x266bac(0x76)](_0x395399=>_0x395399[_0x266bac(0x6c)]===_0x266bac(0x6c));if(_0x153b5e<0x0)return[..._0x2a2d1e,..._0x23fa26];return[..._0x2a2d1e[_0x266bac(0x6e)](0x0,_0x153b5e+0x1),..._0x23fa26,..._0x2a2d1e[_0x266bac(0x6e)](_0x153b5e+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x557336,_0xf72f3c){var _0x2e8b7d=a119_0x5a91,_0x4f9412=_0x557336();while(!![]){try{var _0xb80157=parseInt(_0x2e8b7d(0x17a))/0x1*(parseInt(_0x2e8b7d(0x179))/0x2)+parseInt(_0x2e8b7d(0x175))/0x3*(-parseInt(_0x2e8b7d(0x178))/0x4)+parseInt(_0x2e8b7d(0x176))/0x5+-parseInt(_0x2e8b7d(0x17d))/0x6*(-parseInt(_0x2e8b7d(0x17c))/0x7)+-parseInt(_0x2e8b7d(0x174))/0x8+parseInt(_0x2e8b7d(0x177))/0x9+parseInt(_0x2e8b7d(0x17b))/0xa;if(_0xb80157===_0xf72f3c)break;else _0x4f9412['push'](_0x4f9412['shift']());}catch(_0x18983e){_0x4f9412['push'](_0x4f9412['shift']());}}}(a119_0x1412,0x4b9d1));function a119_0x5a91(_0x40d6b2,_0x8019cc){_0x40d6b2=_0x40d6b2-0x174;var _0x1412e1=a119_0x1412();var _0x5a91eb=_0x1412e1[_0x40d6b2];return _0x5a91eb;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a119_0x1412(){var _0xaf324d=['245KMmGio','3924660pnZnKE','21HnfAzs','608376qyMFsp','3162288NHQVYO','102gWiiWG','137855dyWpRz','2629539tseMhk','53612WkkJuw','1178ErRcbu'];a119_0x1412=function(){return _0xaf324d;};return a119_0x1412();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.2.
|
|
2
|
-
export declare const GIT_TAG = "v2.2.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.2.5-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.2.5-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "d7590af";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-19T14:29:29.738Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a120_0x3313ab=a120_0x2867;(function(_0x28a2e3,_0x3aeea3){const _0x583149=a120_0x2867,_0x5d1384=_0x28a2e3();while(!![]){try{const _0x2975cb=-parseInt(_0x583149(0xf8))/0x1+-parseInt(_0x583149(0x101))/0x2*(-parseInt(_0x583149(0xfd))/0x3)+parseInt(_0x583149(0xff))/0x4+-parseInt(_0x583149(0x100))/0x5+parseInt(_0x583149(0xfe))/0x6+-parseInt(_0x583149(0xf9))/0x7*(parseInt(_0x583149(0xfb))/0x8)+parseInt(_0x583149(0xfc))/0x9;if(_0x2975cb===_0x3aeea3)break;else _0x5d1384['push'](_0x5d1384['shift']());}catch(_0x285e58){_0x5d1384['push'](_0x5d1384['shift']());}}}(a120_0x3b4a,0x68965));export const VERSION=a120_0x3313ab(0xf7);export const GIT_TAG='v2.2.5-beta.2';export const GIT_COMMIT='d7590af';function a120_0x2867(_0x2fb206,_0x5b1d49){_0x2fb206=_0x2fb206-0xf7;const _0x3b4a84=a120_0x3b4a();let _0x28679d=_0x3b4a84[_0x2fb206];return _0x28679d;}function a120_0x3b4a(){const _0x5be249=['2Eoxvyt','2.2.5-beta.2','131689sHrzlx','727258IyGaSG','2026-08-19T14:29:29.738Z','56SalKuy','4408200RkGfXw','102156hAoRSZ','89622qfoizo','3080000QppYqX','107265OHuyOu'];a120_0x3b4a=function(){return _0x5be249;};return a120_0x3b4a();}export const BUILD_TIME=a120_0x3313ab(0xfa);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57dd66,_0x489c88){const _0xf65d0f=a121_0x997e,_0x5a0f39=_0x57dd66();while(!![]){try{const _0x3a9e23=parseInt(_0xf65d0f(0x9f))/0x1*(-parseInt(_0xf65d0f(0x9c))/0x2)+-parseInt(_0xf65d0f(0x9e))/0x3+-parseInt(_0xf65d0f(0x9b))/0x4*(-parseInt(_0xf65d0f(0xa5))/0x5)+parseInt(_0xf65d0f(0x9d))/0x6*(-parseInt(_0xf65d0f(0xa1))/0x7)+parseInt(_0xf65d0f(0xa2))/0x8+-parseInt(_0xf65d0f(0xa0))/0x9*(parseInt(_0xf65d0f(0xa7))/0xa)+parseInt(_0xf65d0f(0xa3))/0xb;if(_0x3a9e23===_0x489c88)break;else _0x5a0f39['push'](_0x5a0f39['shift']());}catch(_0x4a2020){_0x5a0f39['push'](_0x5a0f39['shift']());}}}(a121_0x2754,0xb1beb));function a121_0x2754(){const _0x5316ee=['\x20to\x20view\x20available\x20commands.','4510030XmPtlS','green','1100kxdDrw','\x20\x20Use\x20','4jHGhhk','846IpqTHF','12aZqxsU','3113781XvyznX','3121tqkaZD','41598lZkpaW','1801555VLtDWe','11307904cgLLdF','19731899gPlpyA'];a121_0x2754=function(){return _0x5316ee;};return a121_0x2754();}function a121_0x997e(_0xe3427a,_0x4fec68){_0xe3427a=_0xe3427a-0x9a;const _0x275483=a121_0x2754();let _0x997edf=_0x275483[_0xe3427a];return _0x997edf;}import{jsx as a121_0x5dcdb9,jsxs as a121_0x40a2cb}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 _0x5b2035=a121_0x997e,{exit:_0x1ba9f9}=useApp();return useEffect(()=>{_0x1ba9f9();},[_0x1ba9f9]),a121_0x40a2cb(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a121_0x5dcdb9(Box,{'children':a121_0x5dcdb9(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a121_0x40a2cb(Box,{'marginTop':0x1,'children':[a121_0x5dcdb9(Text,{'dimColor':!![],'children':_0x5b2035(0x9a)}),a121_0x5dcdb9(Text,{'bold':!![],'color':_0x5b2035(0xa6),'children':CLI_BIN_NAME+'\x20--help'}),a121_0x5dcdb9(Text,{'dimColor':!![],'children':_0x5b2035(0xa4)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x329215,_0x49f388){const _0x28851f=a122_0x5c36,_0x3bf705=_0x329215();while(!![]){try{const _0x4d4c79=-parseInt(_0x28851f(0xbe))/0x1+parseInt(_0x28851f(0xbc))/0x2+-parseInt(_0x28851f(0xca))/0x3*(-parseInt(_0x28851f(0xb7))/0x4)+-parseInt(_0x28851f(0xc0))/0x5+parseInt(_0x28851f(0xc1))/0x6*(parseInt(_0x28851f(0xbd))/0x7)+parseInt(_0x28851f(0xb4))/0x8*(parseInt(_0x28851f(0xc8))/0x9)+-parseInt(_0x28851f(0xc7))/0xa;if(_0x4d4c79===_0x49f388)break;else _0x3bf705['push'](_0x3bf705['shift']());}catch(_0x1d0e5a){_0x3bf705['push'](_0x3bf705['shift']());}}}(a122_0x2af2,0xb843b));function a122_0x2af2(){const _0x547f63=['\x20via\x20skills@latest','already\x20current','2106908rPpvTy','68733eifllR','176791QamfBO','[BUILTIN_SKILL_INSTALL_','6237215irjJnV','582noJxWm','error','\x20at\x20','Installation\x20failed','installedPath','skillVersion','4367990MAmImO','638883XMlxPk','installed','595383LMIGNE','code','changed','24dmcybk','SOURCE_INVALID','repairCommand','8oLoLJS','log','warn'];a122_0x2af2=function(){return _0x547f63;};return a122_0x2af2();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a122_0x5c36(_0x5626a0,_0x3d0eea){_0x5626a0=_0x5626a0-0xb2;const _0x2af2a0=a122_0x2af2();let _0x5c36cb=_0x2af2a0[_0x5626a0];return _0x5c36cb;}export async function runPostinstall(_0x41ae67={}){const _0x45d1c1=a122_0x5c36,_0x5208d0=installBuiltinSkill(_0x41ae67);if(_0x5208d0['ok']){const _0x39ee13=_0x5208d0[_0x45d1c1(0xb3)]?_0x45d1c1(0xc9):_0x45d1c1(0xbb),_0x4a89cf=_0x5208d0['installedPath']?_0x45d1c1(0xc3)+_0x5208d0[_0x45d1c1(0xc5)]:_0x45d1c1(0xba);return console[_0x45d1c1(0xb8)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x5208d0[_0x45d1c1(0xc6)]+'\x20'+_0x39ee13+_0x4a89cf),_0x5208d0;}const _0x2a9eb3=_0x45d1c1(0xbf)+(_0x5208d0['code']??'FAILED')+']\x20'+(_0x5208d0[_0x45d1c1(0xc2)]??_0x45d1c1(0xc4))+'.\x20'+('Repair\x20with:\x20'+_0x5208d0[_0x45d1c1(0xb6)]);if(_0x5208d0[_0x45d1c1(0xb2)]===_0x45d1c1(0xb5))throw new Error(_0x2a9eb3);return console[_0x45d1c1(0xb9)](_0x2a9eb3),_0x5208d0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3faa3b,_0x258b1e){const _0x7d61ca=a123_0x1496,_0x27e757=_0x3faa3b();while(!![]){try{const _0x208e60=-parseInt(_0x7d61ca(0x88))/0x1+-parseInt(_0x7d61ca(0x7b))/0x2+-parseInt(_0x7d61ca(0x8b))/0x3+-parseInt(_0x7d61ca(0x81))/0x4*(parseInt(_0x7d61ca(0x7f))/0x5)+-parseInt(_0x7d61ca(0x87))/0x6*(parseInt(_0x7d61ca(0x84))/0x7)+-parseInt(_0x7d61ca(0x85))/0x8*(-parseInt(_0x7d61ca(0x83))/0x9)+-parseInt(_0x7d61ca(0x86))/0xa*(-parseInt(_0x7d61ca(0x82))/0xb);if(_0x208e60===_0x258b1e)break;else _0x27e757['push'](_0x27e757['shift']());}catch(_0x37f071){_0x27e757['push'](_0x27e757['shift']());}}}(a123_0x1e3c,0xaa1ca));function a123_0x1496(_0x351add,_0x570884){_0x351add=_0x351add-0x7a;const _0x1e3c09=a123_0x1e3c();let _0x149614=_0x1e3c09[_0x351add];return _0x149614;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x2d270d,_0x5bf832,_0x389c8f){const _0x3d807b=a123_0x1496,_0x2ba4aa=normalizeText(_0x2d270d[_0x3d807b(0x7c)],DESCRIPTION_MAX_LENGTH),_0x3b6aba=normalizeText(_0x2d270d[_0x3d807b(0x89)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5bf832,'risk':requireWriteRisk(_0x2d270d),'description':_0x2ba4aa||_0x3b6aba||'执行该写入操作',..._0x389c8f?{'signal':_0x389c8f}:{}};}function requireWriteRisk(_0x14d44d){const _0x320f58=a123_0x1496;if(_0x14d44d['risk']===_0x320f58(0x80)||_0x14d44d[_0x320f58(0x7d)]==='high-risk-write')return _0x14d44d[_0x320f58(0x7d)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a123_0x1e3c(){const _0x496411=['4206zrYIzD','946455VjRnlo','description','slice','1444851aFGHVU','trim','2125522sZdjxy','confirmationDescription','risk','replace','100RGpdwt','write','235652wKYASM','11sZsRso','47457kCaiag','8365dbzvPv','424yYCDlC','49240970rsqeSH'];a123_0x1e3c=function(){return _0x496411;};return a123_0x1e3c();}function normalizeText(_0x32b39d,_0x4dce67){const _0x1e9698=a123_0x1496;if(typeof _0x32b39d!=='string')return'';return _0x32b39d[_0x1e9698(0x7e)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1e9698(0x7e)](/\s+/g,'\x20')[_0x1e9698(0x7a)]()[_0x1e9698(0x8a)](0x0,_0x4dce67);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a124_0x5acf(_0x2c2ac9,_0x58d541){_0x2c2ac9=_0x2c2ac9-0x1b5;const _0x40bf41=a124_0x40bf();let _0x5acf82=_0x40bf41[_0x2c2ac9];return _0x5acf82;}(function(_0x247410,_0x312bae){const _0x3586c8=a124_0x5acf,_0x2ec97e=_0x247410();while(!![]){try{const _0x57d183=-parseInt(_0x3586c8(0x1be))/0x1*(parseInt(_0x3586c8(0x1ba))/0x2)+-parseInt(_0x3586c8(0x1b6))/0x3+parseInt(_0x3586c8(0x1c3))/0x4+-parseInt(_0x3586c8(0x1bf))/0x5*(-parseInt(_0x3586c8(0x1b8))/0x6)+-parseInt(_0x3586c8(0x1bd))/0x7+-parseInt(_0x3586c8(0x1bc))/0x8*(-parseInt(_0x3586c8(0x1b5))/0x9)+parseInt(_0x3586c8(0x1c5))/0xa;if(_0x57d183===_0x312bae)break;else _0x2ec97e['push'](_0x2ec97e['shift']());}catch(_0x14f9a3){_0x2ec97e['push'](_0x2ec97e['shift']());}}}(a124_0x40bf,0xd9ace));export function canonicalLovrabetOperation(_0x280d2a){const _0x40f153=a124_0x5acf;return[_0x280d2a[_0x40f153(0x1c0)],..._0x280d2a[_0x40f153(0x1c2)]['trim']()[_0x40f153(0x1c6)](/\s+/)]['filter'](Boolean)[_0x40f153(0x1b7)]('.');}function a124_0x40bf(){const _0xf15760=['3742739mqIROs','60379KjrmCw','70ftmWXq','service','writeEventSubject','command','907528fJmltS','high-risk-write','23211360GBMPfY','split','1276812uIpByP','5026536hDhHzG','join','357666pfBjyG','risk','14lBUMqf','write','8pchJiD'];a124_0x40bf=function(){return _0xf15760;};return a124_0x40bf();}export function createLovrabetWriteMetadata(_0x13166e,_0x5d0e39,_0x172d1e,_0xa003d8){const _0x673161=a124_0x5acf;if(_0xa003d8||_0x172d1e['ok']!==!![]||_0x13166e[_0x673161(0x1b9)]!==_0x673161(0x1bb)&&_0x13166e['risk']!==_0x673161(0x1c4))return undefined;const _0x460dbe=_0x13166e[_0x673161(0x1c1)]?.(_0x172d1e),_0x15a7ae={'type':'lovrabet.write.completed','operation':_0x5d0e39,'risk':_0x13166e[_0x673161(0x1b9)],..._0x460dbe?{'subject':_0x460dbe}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x15a7ae}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcbc042,_0x5a2d61){const _0x42e14a=a125_0x24cc,_0x4b89f8=_0xcbc042();while(!![]){try{const _0x47954f=-parseInt(_0x42e14a(0xa5))/0x1+-parseInt(_0x42e14a(0x8e))/0x2+parseInt(_0x42e14a(0xaa))/0x3+-parseInt(_0x42e14a(0x95))/0x4*(parseInt(_0x42e14a(0xa9))/0x5)+parseInt(_0x42e14a(0xb0))/0x6+parseInt(_0x42e14a(0xa8))/0x7+-parseInt(_0x42e14a(0xab))/0x8*(-parseInt(_0x42e14a(0xa1))/0x9);if(_0x47954f===_0x5a2d61)break;else _0x4b89f8['push'](_0x4b89f8['shift']());}catch(_0x4fcfa2){_0x4b89f8['push'](_0x4b89f8['shift']());}}}(a125_0x4e9a,0x98dba));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a125_0x4e9a(){const _0x6c5b17=['high-risk-write','stringify','message','execute','format','AbortError','isNonInteractive','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','riskLevel','present','Lovrabet\x20invocation\x20aborted.','1441863UABldd','dry-run','yes','command','572326JpawWa','result','dryRun','4369281DyGRHw','95FkjxWz','1496043nSRJdo','64TZkZzs','confirm','args','risk','definition','5513472ycYhoW','1857862RQFmaN','aborted','signal','confirmation','rawFlags','reason','write','251804kEtOGw'];a125_0x4e9a=function(){return _0x6c5b17;};return a125_0x4e9a();}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:_0x297ff9,command:_0x1dc547,risk:_0x398536,dryRun:_0x34b5d7}){const _0x196068=a125_0x24cc;return JSON[_0x196068(0x97)]({'ok':_0x297ff9['ok'],'command':_0x1dc547,'risk':_0x398536,..._0x34b5d7?{'dryRun':!![]}:{},..._0x297ff9['data']!==undefined?{'data':_0x297ff9['data']}:{},..._0x297ff9['message']?{'message':_0x297ff9[_0x196068(0x98)]}:{}});}};export async function invokeLovrabet(_0x730239,_0x1e9bee){const _0x3191a9=a125_0x24cc;throwIfAborted(_0x1e9bee[_0x3191a9(0x90)]);const _0x62d773=await resolveLovrabetInvocation(_0x730239),_0x3ccb64=canonicalLovrabetOperation(_0x62d773[_0x3191a9(0xaf)]);return await confirmWriteBeforeQueue(_0x62d773[_0x3191a9(0xaf)],_0x62d773[_0x3191a9(0x92)],_0x3ccb64,_0x1e9bee),runSerialized(async()=>{const _0x18c924=_0x3191a9;throwIfAborted(_0x1e9bee[_0x18c924(0x90)]);const _0x6171ee={},_0x2b8a34=buildConfigFromFlags(_0x62d773[_0x18c924(0x92)]);await initGlobalEnvironment(_0x2b8a34);const _0x26e53d=createPipelineEnv(_0x2b8a34,{..._0x62d773[_0x18c924(0x92)],'yes':_0x62d773[_0x18c924(0xaf)][_0x18c924(0xae)]==='high-risk-write'?!![]:_0x62d773['rawFlags'][_0x18c924(0xa3)],'nonInteractive':!![]});_0x26e53d[_0x18c924(0xad)]=_0x62d773['args'],_0x26e53d[_0x18c924(0x9c)]=!![],_0x26e53d[_0x18c924(0x9e)]=_0x18c924(0x96);const _0x27383f=withAbortSignal(_0x62d773[_0x18c924(0xaf)],_0x1e9bee[_0x18c924(0x90)]),_0x205d74=createLovrabetRunnerAdapter({'formatOutput'(_0x1850e5,_0x237166){const _0xfac0f1=_0x18c924;_0x6171ee[_0xfac0f1(0xa6)]=_0x1850e5,_0x6171ee['command']=_0x237166['command'],_0x6171ee[_0xfac0f1(0xae)]=_0x237166[_0xfac0f1(0xae)],_0x6171ee[_0xfac0f1(0x9a)]=_0x237166[_0xfac0f1(0x9a)],_0x6171ee[_0xfac0f1(0xa7)]=_0x237166[_0xfac0f1(0xa7)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x27383f,_0x26e53d,_0x205d74);if(!_0x6171ee[_0x18c924(0xa6)]||!_0x6171ee['command']||!_0x6171ee[_0x18c924(0xae)]||!_0x6171ee['format'])throw new Error(_0x18c924(0x9d));const _0x2bce1=_0x1e9bee['presentation']??defaultPresentation,_0x21f045=_0x6171ee['dryRun']===!![],_0x1ec064={'result':_0x6171ee[_0x18c924(0xa6)],'command':_0x6171ee[_0x18c924(0xa4)],'operation':_0x3ccb64,'risk':_0x6171ee[_0x18c924(0xae)],'format':_0x6171ee['format'],'dryRun':_0x21f045},_0x3e2d9a=createLovrabetWriteMetadata(_0x62d773[_0x18c924(0xaf)],_0x3ccb64,_0x6171ee['result'],_0x21f045);let _0x23df5f;try{_0x23df5f=await _0x2bce1['present'](_0x1ec064);}catch(_0x8e7100){if(!_0x3e2d9a||_0x2bce1===defaultPresentation)throw _0x8e7100;_0x23df5f=await defaultPresentation[_0x18c924(0x9f)](_0x1ec064);}return{'operation':_0x3ccb64,'risk':_0x6171ee[_0x18c924(0xae)],'mode':_0x21f045?_0x18c924(0xa2):'execute','result':_0x6171ee[_0x18c924(0xa6)],'output':_0x23df5f,..._0x3e2d9a?{'metadata':_0x3e2d9a}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4cb28a,_0x1c0c81,_0x3c1e44,_0x2346c7){const _0x115893=a125_0x24cc;if(_0x1c0c81['dryRun']===!![]||_0x4cb28a[_0x115893(0xae)]!==_0x115893(0x94)&&_0x4cb28a[_0x115893(0xae)]!==_0x115893(0x96))return;await _0x2346c7[_0x115893(0x91)][_0x115893(0xac)](buildLovrabetConfirmationRequest(_0x4cb28a,_0x3c1e44,_0x2346c7['signal']));}function a125_0x24cc(_0x3fb14d,_0x44fb53){_0x3fb14d=_0x3fb14d-0x8e;const _0x4e9a1a=a125_0x4e9a();let _0x24cca1=_0x4e9a1a[_0x3fb14d];return _0x24cca1;}function withAbortSignal(_0x3ae3b0,_0xee5683){return{..._0x3ae3b0,async 'execute'(_0x51c5ed){const _0x4d0c5f=a125_0x24cc;return throwIfAborted(_0xee5683),_0x3ae3b0[_0x4d0c5f(0x99)](_0x51c5ed);}};}function throwIfAborted(_0xe2d761){const _0x1c0d39=a125_0x24cc;if(_0xe2d761?.[_0x1c0d39(0x8f)])throw _0xe2d761[_0x1c0d39(0x93)]instanceof Error?_0xe2d761['reason']:new DOMException(_0x1c0d39(0xa0),_0x1c0d39(0x9b));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x4b96(){const _0x4c645b=['887570ZBwhdR','resolve','14436LnzOWN','14673810BcwDVk','2289826aYtekd','1395ukzRrh','252wzjGYI','1598766oTEJro','19714dfBaNF','16088ulcnVN','41EzJKuF'];a126_0x4b96=function(){return _0x4c645b;};return a126_0x4b96();}const a126_0x1c34fb=a126_0x4057;(function(_0x18f905,_0x15e3a3){const _0x421a7c=a126_0x4057,_0x592b40=_0x18f905();while(!![]){try{const _0x2c7754=parseInt(_0x421a7c(0x15a))/0x1*(-parseInt(_0x421a7c(0x163))/0x2)+-parseInt(_0x421a7c(0x15d))/0x3*(parseInt(_0x421a7c(0x161))/0x4)+-parseInt(_0x421a7c(0x15b))/0x5+parseInt(_0x421a7c(0x162))/0x6+-parseInt(_0x421a7c(0x15f))/0x7+parseInt(_0x421a7c(0x159))/0x8*(-parseInt(_0x421a7c(0x160))/0x9)+parseInt(_0x421a7c(0x15e))/0xa;if(_0x2c7754===_0x15e3a3)break;else _0x592b40['push'](_0x592b40['shift']());}catch(_0x585e22){_0x592b40['push'](_0x592b40['shift']());}}}(a126_0x4b96,0x33524));function a126_0x4057(_0x3ae847,_0x157a21){_0x3ae847=_0x3ae847-0x159;const _0x4b9646=a126_0x4b96();let _0x405794=_0x4b9646[_0x3ae847];return _0x405794;}let tail=Promise[a126_0x1c34fb(0x15c)]();export async function runSerialized(_0x3d2f0c){const _0x431a04=tail;let _0x2f3d5e;tail=new Promise(_0x544292=>{_0x2f3d5e=_0x544292;}),await _0x431a04['catch'](()=>undefined);try{return await _0x3d2f0c();}finally{_0x2f3d5e();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176710,_0x529af3){const _0x414fd2=a127_0x1eca,_0x4d7946=_0x176710();while(!![]){try{const _0x4e097f=parseInt(_0x414fd2(0x12a))/0x1*(-parseInt(_0x414fd2(0x127))/0x2)+-parseInt(_0x414fd2(0x122))/0x3*(-parseInt(_0x414fd2(0x11a))/0x4)+-parseInt(_0x414fd2(0x130))/0x5*(-parseInt(_0x414fd2(0x121))/0x6)+-parseInt(_0x414fd2(0x118))/0x7*(parseInt(_0x414fd2(0x12f))/0x8)+-parseInt(_0x414fd2(0x11c))/0x9+-parseInt(_0x414fd2(0x12c))/0xa+-parseInt(_0x414fd2(0x11f))/0xb*(-parseInt(_0x414fd2(0x12b))/0xc);if(_0x4e097f===_0x529af3)break;else _0x4d7946['push'](_0x4d7946['shift']());}catch(_0xb8e671){_0x4d7946['push'](_0x4d7946['shift']());}}}(a127_0x5571,0xa7713));import a127_0x1b08b3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a127_0x1eca(_0x57a04f,_0x31900f){_0x57a04f=_0x57a04f-0x118;const _0x5571ca=a127_0x5571();let _0x1eca87=_0x5571ca[_0x57a04f];return _0x1eca87;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x10e952){const _0x1281e9=a127_0x1eca,_0x57687d=a127_0x1b08b3('',{'importMeta':import.meta,'argv':_0x10e952,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2e7625=[..._0x57687d[_0x1281e9(0x129)]],_0x4cafcb=_0x57687d[_0x1281e9(0x11d)];await correctFlags(_0x4cafcb);const _0x543801=_0x2e7625[0x0];if(!_0x543801)throw CliErrors[_0x1281e9(0x125)](_0x1281e9(0x132));const _0x4f5410=resolveRemovedCommand(_0x543801,_0x2e7625[0x1]);if(_0x4f5410)throw CliErrors[_0x1281e9(0x125)](_0x4f5410[_0x1281e9(0x123)],_0x4f5410[_0x1281e9(0x11e)]);if(!isKnownService(_0x543801)){const _0x378815=resolveDynamicServiceCommand(_0x2e7625,_0x4cafcb);if(!_0x378815)throw CliErrors[_0x1281e9(0x126)](_0x2e7625[_0x1281e9(0x120)]('\x20'));return Object['assign'](_0x4cafcb,_0x378815[_0x1281e9(0x11d)]),{'definition':_0x378815[_0x1281e9(0x131)],'rawFlags':_0x4cafcb,'args':_0x378815[_0x1281e9(0x11b)]};}const _0x376538=getServiceEntry(_0x543801),_0x35559e=_0x2e7625[0x1]||_0x376538['defaultCommand'];if(!_0x35559e)throw CliErrors[_0x1281e9(0x125)](_0x1281e9(0x128)+_0x543801+'\x22.');const _0x78a612=findDefinition(_0x543801,_0x35559e);if(!_0x78a612)throw CliErrors['unknownCommand'](_0x543801+'\x20'+_0x35559e);return{'definition':_0x78a612,'rawFlags':_0x4cafcb,'args':_0x2e7625[_0x1281e9(0x12d)](0x2)};}async function correctFlags(_0x36ca05){const _0xa85338=a127_0x1eca;try{const {correctFlags:_0x22515a}=await import(_0xa85338(0x119)),{getAllDefinitions:_0x208dd5}=await import(_0xa85338(0x124)),_0x3c791b=_0x208dd5()['flatMap'](_0x49586b=>_0x49586b[_0xa85338(0x11d)]??[]),_0x46ea20=_0x22515a(_0x36ca05,_0x3c791b);Object[_0xa85338(0x12e)](_0x36ca05,_0x46ea20[_0xa85338(0x11d)]);}catch{}}function a127_0x5571(){const _0x472306=['message','../commands/registry.js','validation','unknownCommand','30632UBOhTp','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','input','79MqAIzq','6524472WjcDbD','3237320ScnKwY','slice','assign','6353672XNqobN','20MCibxd','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','7mviPmY','../framework/preparse.js','1532NwTkdj','args','2649933pouHmr','flags','hint','33IFYpmB','join','642156RvPToY','9783dhOTjH'];a127_0x5571=function(){return _0x472306;};return a127_0x5571();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129_0x498046=a129_0x5202;(function(_0x2f08db,_0x15da65){const _0x262ba9=a129_0x5202,_0x458c5a=_0x2f08db();while(!![]){try{const _0x46ab44=parseInt(_0x262ba9(0x118))/0x1*(-parseInt(_0x262ba9(0x104))/0x2)+parseInt(_0x262ba9(0x12e))/0x3+-parseInt(_0x262ba9(0x102))/0x4*(-parseInt(_0x262ba9(0xfc))/0x5)+parseInt(_0x262ba9(0xfd))/0x6+-parseInt(_0x262ba9(0x105))/0x7*(parseInt(_0x262ba9(0x11b))/0x8)+-parseInt(_0x262ba9(0x107))/0x9*(-parseInt(_0x262ba9(0xfa))/0xa)+-parseInt(_0x262ba9(0x11d))/0xb;if(_0x46ab44===_0x15da65)break;else _0x458c5a['push'](_0x458c5a['shift']());}catch(_0x5bf6ca){_0x458c5a['push'](_0x458c5a['shift']());}}}(a129_0x3be1,0xe2609));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='lovrabet\x20cli-skill\x20install',SKILL_NAME=a129_0x498046(0x110);function frontmatterValue(_0x202d8d,_0x8bde57){const _0x4e869d=a129_0x498046;return _0x202d8d[_0x4e869d(0xf6)](new RegExp('^'+_0x8bde57+_0x4e869d(0x111),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x5b241e,_0x1f769c=_0x5b241e){const _0x3c2320=a129_0x498046;return readdirSync(_0x1f769c,{'withFileTypes':!![]})['flatMap'](_0x77c2e2=>{const _0x2ab4c2=a129_0x5202,_0x44d1c6=join(_0x1f769c,_0x77c2e2['name']),_0x5cb787=lstatSync(_0x44d1c6);if(_0x5cb787[_0x2ab4c2(0x129)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x44d1c6);if(_0x5cb787[_0x2ab4c2(0x106)]())return listFiles(_0x5b241e,_0x44d1c6);if(!_0x5cb787[_0x2ab4c2(0x128)]())throw new Error(_0x2ab4c2(0x108)+_0x44d1c6);return[relative(_0x5b241e,_0x44d1c6)['split'](sep)['join']('/')];})[_0x3c2320(0x130)]((_0x14e0b8,_0x7694ab)=>_0x14e0b8<_0x7694ab?-0x1:_0x14e0b8>_0x7694ab?0x1:0x0);}function a129_0x3be1(){const _0x497f07=['absent','message','skillVersion','version_mismatch','lovrabet',':\x5cs*(.+)$','lovrabet.manifest.json','packageRoot','split','SKILL.md','unverifiable','digest','60257VBWfMb','state','utf8','8NbyiUy','INSTALL_FAILED','32141219GkPRBL','Unsafe\x20manifest\x20path:\x20','manifest','packageVersion','stdio','unknown','schemaVersion','installedPath','every','pipe','SOURCE_INVALID','isFile','isSymbolicLink','files','present','hex','current','3384861WQniFy','error','sort','reason','VERIFY_FAILED','update','match','includes','skills','version','5494730iGCMSj','path','1843575RijjAd','2896002OsFpvY','parse','missing','Installed\x20Skill\x20state\x20is\x20','status','20yJwuMw','name','22cHsKzM','4136657KqcnDk','isDirectory','27VmUUvs','Unsupported\x20Skill\x20entry:\x20','skills@latest\x20exited\x20','home','length'];a129_0x3be1=function(){return _0x497f07;};return a129_0x3be1();}function digestFiles(_0x38b845,_0x2f5cad){const _0x5623a0=a129_0x498046,_0x3e2929=createHash('sha256');for(const _0x1f4976 of _0x2f5cad){if(_0x1f4976['startsWith']('/')||_0x1f4976['split']('/')['includes']('..')||_0x1f4976[_0x5623a0(0xf7)]('\x5c'))throw new Error(_0x5623a0(0x11e)+_0x1f4976);_0x3e2929[_0x5623a0(0xf5)](_0x1f4976),_0x3e2929['update']('\x00'),_0x3e2929['update'](readFileSync(join(_0x38b845,..._0x1f4976[_0x5623a0(0x114)]('/')))),_0x3e2929[_0x5623a0(0xf5)]('\x00');}return _0x3e2929[_0x5623a0(0x117)](_0x5623a0(0x12c));}function sameFiles(_0x442eba,_0x304557){const _0x276b40=a129_0x498046;return _0x442eba[_0x276b40(0x10b)]===_0x304557[_0x276b40(0x10b)]&&_0x442eba[_0x276b40(0x125)]((_0x53b6a9,_0x1ffd3f)=>_0x53b6a9===_0x304557[_0x1ffd3f]);}function readSource(_0xd11224){const _0xafb639=a129_0x498046,_0x5b7405=JSON[_0xafb639(0xfe)](readFileSync(join(_0xd11224,'package.json'),'utf8')),_0x2df2c2=JSON[_0xafb639(0xfe)](readFileSync(join(_0xd11224,_0xafb639(0xf8),_0xafb639(0x112)),_0xafb639(0x11a))),_0x36a855=join(_0xd11224,_0xafb639(0xf8),SKILL_NAME),_0x410ffe=frontmatterValue(readFileSync(join(_0x36a855,_0xafb639(0x115)),'utf8'),'version'),_0x54f9e0=listFiles(_0x36a855);if(_0x2df2c2[_0xafb639(0x123)]!==0x1||_0x2df2c2[_0xafb639(0x103)]!==SKILL_NAME||!_0x5b7405['version']||_0x2df2c2[_0xafb639(0x120)]!==_0x5b7405[_0xafb639(0xf9)]||_0x2df2c2[_0xafb639(0x10e)]!==_0x5b7405[_0xafb639(0xf9)]||_0x410ffe!==_0x5b7405[_0xafb639(0xf9)]||!sameFiles(_0x54f9e0,_0x2df2c2['files'])||digestFiles(_0x36a855,_0x54f9e0)!==_0x2df2c2[_0xafb639(0x117)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x5b7405['version'],'skillVersion':_0x410ffe,'root':_0x36a855,'manifest':_0x2df2c2};}function installedSkillPath(_0x202bbb){const _0x26b506=a129_0x498046,_0x140a10=resolveInstalledSkill(SKILL_NAME,{'home':_0x202bbb});if(_0x140a10[_0x26b506(0x119)]===_0x26b506(0x12b))return{'state':'present','path':dirname(_0x140a10['path'])};if(_0x140a10[_0x26b506(0x119)]===_0x26b506(0x10c))return{'state':_0x26b506(0xff)};return{'state':_0x26b506(0x116),'reason':_0x140a10[_0x26b506(0x131)]};}function a129_0x5202(_0x186cd5,_0x4a1f71){_0x186cd5=_0x186cd5-0xf4;const _0x3be198=a129_0x3be1();let _0x520207=_0x3be198[_0x186cd5];return _0x520207;}export function inspectInstalledBuiltinSkillVersion(_0x1b9298,_0x1d32b3={}){const _0x17b760=a129_0x498046,_0x3c2081=installedSkillPath(_0x1d32b3['home']??homedir());if(_0x3c2081[_0x17b760(0x119)]===_0x17b760(0xff))return{'state':_0x17b760(0xff),'expectedVersion':_0x1b9298,'repairCommand':REPAIR_COMMAND};if(_0x3c2081[_0x17b760(0x119)]===_0x17b760(0x116))return{'state':_0x17b760(0x116),'expectedVersion':_0x1b9298,'reason':_0x3c2081[_0x17b760(0x131)],'repairCommand':REPAIR_COMMAND};try{const _0xfa3652=frontmatterValue(readFileSync(join(_0x3c2081[_0x17b760(0xfb)],_0x17b760(0x115)),_0x17b760(0x11a)),_0x17b760(0xf9));return{'state':_0xfa3652===_0x1b9298?_0x17b760(0x12d):_0x17b760(0x10f),'expectedVersion':_0x1b9298,'skillVersion':_0xfa3652,'installedPath':_0x3c2081[_0x17b760(0xfb)],'repairCommand':REPAIR_COMMAND};}catch(_0x4587d1){return{'state':_0x17b760(0x116),'expectedVersion':_0x1b9298,'installedPath':_0x3c2081['path'],'reason':_0x4587d1 instanceof Error?_0x4587d1[_0x17b760(0x10d)]:String(_0x4587d1),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2aa50b={}){const _0x1cd0bc=a129_0x498046,_0x28c896=_0x2aa50b[_0x1cd0bc(0x113)]??DEFAULT_PACKAGE_ROOT;let _0x335dc8;try{_0x335dc8=readSource(_0x28c896);}catch(_0x241fa1){return{'state':_0x1cd0bc(0x116),'packageVersion':_0x1cd0bc(0x122),'reason':_0x241fa1 instanceof Error?_0x241fa1[_0x1cd0bc(0x10d)]:String(_0x241fa1),'repairCommand':REPAIR_COMMAND};}const _0x13682a=installedSkillPath(_0x2aa50b[_0x1cd0bc(0x10a)]??homedir());if(_0x13682a[_0x1cd0bc(0x119)]===_0x1cd0bc(0xff))return{'state':_0x1cd0bc(0xff),'packageVersion':_0x335dc8['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x13682a['state']===_0x1cd0bc(0x116))return{'state':_0x1cd0bc(0x116),'packageVersion':_0x335dc8[_0x1cd0bc(0x120)],'reason':_0x13682a[_0x1cd0bc(0x131)],'repairCommand':REPAIR_COMMAND};try{const _0x19a58e=frontmatterValue(readFileSync(join(_0x13682a['path'],_0x1cd0bc(0x115)),_0x1cd0bc(0x11a)),'version');if(_0x19a58e!==_0x335dc8[_0x1cd0bc(0x10e)])return{'state':'version_mismatch','packageVersion':_0x335dc8['packageVersion'],'skillVersion':_0x19a58e,'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'repairCommand':REPAIR_COMMAND};const _0x4faa5e=listFiles(_0x13682a[_0x1cd0bc(0xfb)]),_0x10016d=digestFiles(_0x13682a[_0x1cd0bc(0xfb)],_0x4faa5e);return{'state':sameFiles(_0x4faa5e,_0x335dc8[_0x1cd0bc(0x11f)][_0x1cd0bc(0x12a)])&&_0x10016d===_0x335dc8[_0x1cd0bc(0x11f)][_0x1cd0bc(0x117)]?_0x1cd0bc(0x12d):'content_mismatch','packageVersion':_0x335dc8[_0x1cd0bc(0x120)],'skillVersion':_0x19a58e,'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'digest':_0x10016d,'repairCommand':REPAIR_COMMAND};}catch(_0x140823){return{'state':_0x1cd0bc(0x116),'packageVersion':_0x335dc8['packageVersion'],'installedPath':_0x13682a[_0x1cd0bc(0xfb)],'reason':_0x140823 instanceof Error?_0x140823[_0x1cd0bc(0x10d)]:String(_0x140823),'repairCommand':REPAIR_COMMAND};}}function failure(_0x247f03,_0x332174,_0x244998,_0x167d0a){const _0x41df72=a129_0x498046;return{'ok':![],'code':_0x247f03,'packageVersion':_0x332174[_0x41df72(0x120)],'skillVersion':_0x332174[_0x41df72(0x10e)],'installedPath':_0x167d0a,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x244998 instanceof Error?_0x244998['message']:String(_0x244998)};}export function installBuiltinSkill(_0x42aafb={}){const _0x376781=a129_0x498046,_0x5a1407=_0x42aafb[_0x376781(0x113)]??DEFAULT_PACKAGE_ROOT,_0x34ddba=_0x42aafb[_0x376781(0x10a)]??homedir();let _0x53e9e6;try{_0x53e9e6=readSource(_0x5a1407);}catch(_0x46ea2a){return failure(_0x376781(0x127),{'packageVersion':'unknown','skillVersion':'unknown'},_0x46ea2a);}const _0x11ef50=inspectBuiltinSkill({'packageRoot':_0x5a1407,'home':_0x34ddba}),_0x1c8c76=runNpxSkillsAddGlobal(_0x5a1407,_0x53e9e6['root'],{'stdio':_0x42aafb[_0x376781(0x121)]??_0x376781(0x126),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x34ddba}});if(_0x1c8c76['skipped'])return{'ok':!![],'packageVersion':_0x53e9e6[_0x376781(0x120)],'skillVersion':_0x53e9e6[_0x376781(0x10e)],'installedPath':_0x11ef50['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x1c8c76['ok'])return failure(_0x376781(0x11c),_0x53e9e6,_0x1c8c76[_0x376781(0x12f)]??_0x376781(0x109)+_0x1c8c76[_0x376781(0x101)]);const _0x5113b6=inspectBuiltinSkill({'packageRoot':_0x5a1407,'home':_0x34ddba});if(_0x5113b6[_0x376781(0x119)]!==_0x376781(0x12d))return failure(_0x376781(0xf4),_0x53e9e6,_0x5113b6['reason']??_0x376781(0x100)+_0x5113b6[_0x376781(0x119)],_0x5113b6[_0x376781(0x124)]);return{'ok':!![],'packageVersion':_0x53e9e6[_0x376781(0x120)],'skillVersion':_0x53e9e6['skillVersion'],'installedPath':_0x5113b6[_0x376781(0x124)],'changed':_0x11ef50[_0x376781(0x119)]!==_0x376781(0x12d),'repairCommand':REPAIR_COMMAND};}
|
|
1
|
+
const a129_0x34b036=a129_0xfea9;(function(_0x5ee653,_0x379229){const _0x458c53=a129_0xfea9,_0x581c74=_0x5ee653();while(!![]){try{const _0x3e037a=parseInt(_0x458c53(0x9d))/0x1*(parseInt(_0x458c53(0xc4))/0x2)+-parseInt(_0x458c53(0xad))/0x3*(-parseInt(_0x458c53(0xc0))/0x4)+-parseInt(_0x458c53(0xde))/0x5*(parseInt(_0x458c53(0xd6))/0x6)+-parseInt(_0x458c53(0x9f))/0x7*(parseInt(_0x458c53(0xbd))/0x8)+-parseInt(_0x458c53(0xb3))/0x9*(parseInt(_0x458c53(0xd5))/0xa)+parseInt(_0x458c53(0x9c))/0xb*(parseInt(_0x458c53(0xa1))/0xc)+parseInt(_0x458c53(0xba))/0xd*(parseInt(_0x458c53(0xc7))/0xe);if(_0x3e037a===_0x379229)break;else _0x581c74['push'](_0x581c74['shift']());}catch(_0x3516bd){_0x581c74['push'](_0x581c74['shift']());}}}(a129_0xc35f,0xb7343));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';function a129_0xfea9(_0x390594,_0x41cac0){_0x390594=_0x390594-0x9a;const _0xc35fc0=a129_0xc35f();let _0xfea99d=_0xc35fc0[_0x390594];return _0xfea99d;}import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a129_0x34b036(0xd4),SKILL_NAME=a129_0x34b036(0xa0);function frontmatterValue(_0x34945d,_0xf84f62){const _0xc1cc35=a129_0x34b036;return _0x34945d[_0xc1cc35(0xc5)](new RegExp('^'+_0xf84f62+':\x5cs*(.+)$','m'))?.[0x1]?.[_0xc1cc35(0xb8)]()??'';}function listFiles(_0x1f2990,_0x32114b=_0x1f2990){const _0x18f2f7=a129_0x34b036;return readdirSync(_0x32114b,{'withFileTypes':!![]})['flatMap'](_0x1b593c=>{const _0x11f022=a129_0xfea9,_0x321f98=join(_0x32114b,_0x1b593c['name']),_0x1516bf=lstatSync(_0x321f98);if(_0x1516bf['isSymbolicLink']())throw new Error(_0x11f022(0xc3)+_0x321f98);if(_0x1516bf[_0x11f022(0xdb)]())return listFiles(_0x1f2990,_0x321f98);if(!_0x1516bf['isFile']())throw new Error(_0x11f022(0xb5)+_0x321f98);return[relative(_0x1f2990,_0x321f98)[_0x11f022(0xb9)](sep)[_0x11f022(0xd3)]('/')];})[_0x18f2f7(0xbb)]((_0xd2e6ec,_0x1b1ed3)=>_0xd2e6ec<_0x1b1ed3?-0x1:_0xd2e6ec>_0x1b1ed3?0x1:0x0);}function digestFiles(_0x477131,_0xe5d443){const _0xaacf6e=a129_0x34b036,_0x31f672=createHash(_0xaacf6e(0xd8));for(const _0x2a744c of _0xe5d443){if(_0x2a744c[_0xaacf6e(0xac)]('/')||_0x2a744c[_0xaacf6e(0xb9)]('/')[_0xaacf6e(0xcd)]('..')||_0x2a744c[_0xaacf6e(0xcd)]('\x5c'))throw new Error(_0xaacf6e(0xa3)+_0x2a744c);_0x31f672[_0xaacf6e(0x9b)](_0x2a744c),_0x31f672[_0xaacf6e(0x9b)]('\x00'),_0x31f672[_0xaacf6e(0x9b)](readFileSync(join(_0x477131,..._0x2a744c[_0xaacf6e(0xb9)]('/')))),_0x31f672['update']('\x00');}return _0x31f672['digest'](_0xaacf6e(0xda));}function sameFiles(_0x55dba8,_0x4141c7){const _0x38d283=a129_0x34b036;return _0x55dba8['length']===_0x4141c7[_0x38d283(0xb0)]&&_0x55dba8['every']((_0x146d74,_0x333323)=>_0x146d74===_0x4141c7[_0x333323]);}function readSource(_0x50d23a){const _0x1d80c1=a129_0x34b036,_0x23d84b=JSON['parse'](readFileSync(join(_0x50d23a,_0x1d80c1(0xcc)),_0x1d80c1(0xb1))),_0x294ceb=JSON[_0x1d80c1(0xb6)](readFileSync(join(_0x50d23a,'skills',_0x1d80c1(0xd7)),_0x1d80c1(0xb1))),_0x51d6c1=join(_0x50d23a,_0x1d80c1(0xb2),SKILL_NAME),_0x511d05=frontmatterValue(readFileSync(join(_0x51d6c1,_0x1d80c1(0xb4)),_0x1d80c1(0xb1)),_0x1d80c1(0xa6)),_0x4b0b5c=listFiles(_0x51d6c1);if(_0x294ceb[_0x1d80c1(0xca)]!==0x1||_0x294ceb[_0x1d80c1(0xcb)]!==SKILL_NAME||!_0x23d84b['version']||_0x294ceb[_0x1d80c1(0xcf)]!==_0x23d84b[_0x1d80c1(0xa6)]||_0x294ceb[_0x1d80c1(0xa8)]!==_0x23d84b['version']||_0x511d05!==_0x23d84b[_0x1d80c1(0xa6)]||!sameFiles(_0x4b0b5c,_0x294ceb[_0x1d80c1(0xdd)])||digestFiles(_0x51d6c1,_0x4b0b5c)!==_0x294ceb[_0x1d80c1(0xaa)])throw new Error(_0x1d80c1(0xae));return{'packageVersion':_0x23d84b[_0x1d80c1(0xa6)],'skillVersion':_0x511d05,'root':_0x51d6c1,'manifest':_0x294ceb};}function installedSkillPath(_0x93b8cf){const _0x288773=a129_0x34b036,_0x5e832d=resolveInstalledSkill(SKILL_NAME,{'home':_0x93b8cf});if(_0x5e832d[_0x288773(0xd0)]===_0x288773(0xc2))return{'state':_0x288773(0xc2),'path':dirname(_0x5e832d[_0x288773(0x9e)])};if(_0x5e832d[_0x288773(0xd0)]===_0x288773(0xc8))return{'state':'missing'};return{'state':_0x288773(0xd2),'reason':_0x5e832d[_0x288773(0xdc)]};}export function inspectInstalledBuiltinSkillVersion(_0x5b412a,_0x5aaef0={}){const _0x5e036e=a129_0x34b036,_0x5a12a6=installedSkillPath(_0x5aaef0[_0x5e036e(0xd9)]??homedir());if(_0x5a12a6[_0x5e036e(0xd0)]===_0x5e036e(0xbf))return{'state':_0x5e036e(0xbf),'expectedVersion':_0x5b412a,'repairCommand':REPAIR_COMMAND};if(_0x5a12a6[_0x5e036e(0xd0)]===_0x5e036e(0xd2))return{'state':_0x5e036e(0xd2),'expectedVersion':_0x5b412a,'reason':_0x5a12a6[_0x5e036e(0xdc)],'repairCommand':REPAIR_COMMAND};try{const _0x4b29ec=frontmatterValue(readFileSync(join(_0x5a12a6[_0x5e036e(0x9e)],_0x5e036e(0xb4)),_0x5e036e(0xb1)),_0x5e036e(0xa6));return{'state':_0x4b29ec===_0x5b412a?_0x5e036e(0xa2):'version_mismatch','expectedVersion':_0x5b412a,'skillVersion':_0x4b29ec,'installedPath':_0x5a12a6[_0x5e036e(0x9e)],'repairCommand':REPAIR_COMMAND};}catch(_0x326649){return{'state':'unverifiable','expectedVersion':_0x5b412a,'installedPath':_0x5a12a6[_0x5e036e(0x9e)],'reason':_0x326649 instanceof Error?_0x326649[_0x5e036e(0x9a)]:String(_0x326649),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x544dfe={}){const _0x40d37c=a129_0x34b036,_0x5e573f=_0x544dfe['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x4e4394;try{_0x4e4394=readSource(_0x5e573f);}catch(_0x55d0dc){return{'state':'unverifiable','packageVersion':_0x40d37c(0xd1),'reason':_0x55d0dc instanceof Error?_0x55d0dc['message']:String(_0x55d0dc),'repairCommand':REPAIR_COMMAND};}const _0x59dd5c=installedSkillPath(_0x544dfe[_0x40d37c(0xd9)]??homedir());if(_0x59dd5c[_0x40d37c(0xd0)]===_0x40d37c(0xbf))return{'state':_0x40d37c(0xbf),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'repairCommand':REPAIR_COMMAND};if(_0x59dd5c[_0x40d37c(0xd0)]===_0x40d37c(0xd2))return{'state':'unverifiable','packageVersion':_0x4e4394['packageVersion'],'reason':_0x59dd5c[_0x40d37c(0xdc)],'repairCommand':REPAIR_COMMAND};try{const _0x4882f5=frontmatterValue(readFileSync(join(_0x59dd5c['path'],_0x40d37c(0xb4)),_0x40d37c(0xb1)),'version');if(_0x4882f5!==_0x4e4394['skillVersion'])return{'state':_0x40d37c(0xaf),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'skillVersion':_0x4882f5,'installedPath':_0x59dd5c[_0x40d37c(0x9e)],'repairCommand':REPAIR_COMMAND};const _0x4bd4b8=listFiles(_0x59dd5c[_0x40d37c(0x9e)]),_0x157e06=digestFiles(_0x59dd5c[_0x40d37c(0x9e)],_0x4bd4b8);return{'state':sameFiles(_0x4bd4b8,_0x4e4394[_0x40d37c(0xbe)]['files'])&&_0x157e06===_0x4e4394[_0x40d37c(0xbe)][_0x40d37c(0xaa)]?'current':_0x40d37c(0xab),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'skillVersion':_0x4882f5,'installedPath':_0x59dd5c[_0x40d37c(0x9e)],'digest':_0x157e06,'repairCommand':REPAIR_COMMAND};}catch(_0x29932d){return{'state':_0x40d37c(0xd2),'packageVersion':_0x4e4394[_0x40d37c(0xcf)],'installedPath':_0x59dd5c['path'],'reason':_0x29932d instanceof Error?_0x29932d[_0x40d37c(0x9a)]:String(_0x29932d),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2b233f,_0x1e97f0,_0x5e9d05,_0x192bea){const _0x35728d=a129_0x34b036;return{'ok':![],'code':_0x2b233f,'packageVersion':_0x1e97f0[_0x35728d(0xcf)],'skillVersion':_0x1e97f0[_0x35728d(0xa8)],'installedPath':_0x192bea,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5e9d05 instanceof Error?_0x5e9d05['message']:String(_0x5e9d05)};}export function installBuiltinSkill(_0x45c464={}){const _0xe5417=a129_0x34b036,_0x5ad521=_0x45c464[_0xe5417(0xb7)]??DEFAULT_PACKAGE_ROOT,_0x185852=_0x45c464[_0xe5417(0xd9)]??homedir();let _0x1f8bcd;try{_0x1f8bcd=readSource(_0x5ad521);}catch(_0x2bdf96){return failure(_0xe5417(0xce),{'packageVersion':'unknown','skillVersion':_0xe5417(0xd1)},_0x2bdf96);}const _0x50e2b2=inspectBuiltinSkill({'packageRoot':_0x5ad521,'home':_0x185852}),_0x4fc223=runNpxSkillsAddGlobal(_0x5ad521,_0x1f8bcd[_0xe5417(0xa5)],{'stdio':_0x45c464['stdio']??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x185852}});if(_0x4fc223['skipped'])return{'ok':!![],'packageVersion':_0x1f8bcd[_0xe5417(0xcf)],'skillVersion':_0x1f8bcd[_0xe5417(0xa8)],'installedPath':_0x50e2b2['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x4fc223['ok'])return failure(_0xe5417(0xbc),_0x1f8bcd,_0x4fc223[_0xe5417(0xa9)]??_0xe5417(0xc6)+_0x4fc223[_0xe5417(0xa7)]);const _0x5ec0fd=inspectBuiltinSkill({'packageRoot':_0x5ad521,'home':_0x185852});if(_0x5ec0fd[_0xe5417(0xd0)]!==_0xe5417(0xa2))return failure(_0xe5417(0xc9),_0x1f8bcd,_0x5ec0fd['reason']??_0xe5417(0xa4)+_0x5ec0fd['state'],_0x5ec0fd[_0xe5417(0xc1)]);return{'ok':!![],'packageVersion':_0x1f8bcd['packageVersion'],'skillVersion':_0x1f8bcd[_0xe5417(0xa8)],'installedPath':_0x5ec0fd[_0xe5417(0xc1)],'changed':_0x50e2b2[_0xe5417(0xd0)]!==_0xe5417(0xa2),'repairCommand':REPAIR_COMMAND};}function a129_0xc35f(){const _0x215805=['VERIFY_FAILED','schemaVersion','name','package.json','includes','SOURCE_INVALID','packageVersion','state','unknown','unverifiable','join','lovrabet\x20cli-skill\x20install','530tdOJPv','117696KhQqNO','lovrabet.manifest.json','sha256','home','hex','isDirectory','reason','files','50rnnuaa','message','update','913BzsxrD','679oiZsmh','path','8491uhsQCe','lovrabet','552owutxL','current','Unsafe\x20manifest\x20path:\x20','Installed\x20Skill\x20state\x20is\x20','root','version','status','skillVersion','error','digest','content_mismatch','startsWith','82563lctvev','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','version_mismatch','length','utf8','skills','121275pAslWE','SKILL.md','Unsupported\x20Skill\x20entry:\x20','parse','packageRoot','trim','split','78hMccyG','sort','INSTALL_FAILED','3336lAvLTd','manifest','missing','12OzBtSM','installedPath','present','Symbolic\x20link\x20is\x20not\x20allowed:\x20','1432FVcrzN','match','skills@latest\x20exited\x20','3719366wVLkRY','absent'];a129_0xc35f=function(){return _0x215805;};return a129_0xc35f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x4281e5=a130_0x3c38;(function(_0x4c7375,_0x800212){const _0x3f0930=a130_0x3c38,_0xa09088=_0x4c7375();while(!![]){try{const _0x345be6=-parseInt(_0x3f0930(0x10a))/0x1+parseInt(_0x3f0930(0x105))/0x2*(-parseInt(_0x3f0930(0xe7))/0x3)+-parseInt(_0x3f0930(0xe9))/0x4*(-parseInt(_0x3f0930(0x114))/0x5)+-parseInt(_0x3f0930(0x104))/0x6+-parseInt(_0x3f0930(0xee))/0x7*(-parseInt(_0x3f0930(0xe3))/0x8)+-parseInt(_0x3f0930(0xfa))/0x9*(-parseInt(_0x3f0930(0x110))/0xa)+-parseInt(_0x3f0930(0x100))/0xb;if(_0x345be6===_0x800212)break;else _0xa09088['push'](_0xa09088['shift']());}catch(_0x58c691){_0xa09088['push'](_0xa09088['shift']());}}}(a130_0x40d2,0x9065a));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a130_0x56d038}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a130_0x56d038;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a130_0x4281e5(0xe8)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a130_0x4281e5(0xf2)];export function resolveGlobalSkillName(_0x5c0c18){const _0x5738a8=a130_0x4281e5;switch(_0x5c0c18[_0x5738a8(0x10e)]()){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[a130_0x4281e5(0xfb)]);function a130_0x3c38(_0x400730,_0x5c0fc5){_0x400730=_0x400730-0xe0;const _0x40d2b4=a130_0x40d2();let _0x3c3883=_0x40d2b4[_0x400730];return _0x3c3883;}function a130_0x40d2(){const _0x55139c=['join','10DChgJo','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','!\x20Could\x20not\x20verify\x20\x22','absent','match','signal','248TiCQdF','skills@latest','presence','SPAWN_FAILED','1341TNgXSx','internalSkillSource','2190524JPbard','ENOENT','Skill\x20\x22','toString','unknown','113722eyGNRW','Installer\x20reported\x20','EPERM','\x20failed\x20target(s)','globalSkillName','\x22\x20install\x20state:\x20','state','PERMISSION_DENIED','stderr','INSTALL_PARTIAL','checked','EACCES','171Gmchmo','skipNpxSkillsEnvSuffix','stdout','warn','pipe','npx\x20terminated\x20by\x20signal\x20','5586988pakvlX','npm_config_global','SKILL_NOT_INSTALLED','error','1994448PMpACx','2102UQJKXL','status','unverifiable','expectedSkillName','NPM_CONFIG_GLOBAL','39648Sfwnmz','log','npx','NPX_NOT_FOUND','trim','CHILD_EXIT_NONZERO','180170aNkIPq','code','reason'];a130_0x40d2=function(){return _0x55139c;};return a130_0x40d2();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2fd4d4,_0xd4ea78,_0x292242){return{'ok':![],'status':_0xd4ea78,'code':_0x2fd4d4,'error':'['+_0x2fd4d4+']\x20'+_0x292242};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x3f35b0,_0x2fc488=LOVRABET_SKILL_SOURCE,_0x22d2eb){const _0x417133=a130_0x4281e5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23a40b=resolveNpmBin(_0x417133(0x10c)),_0x5312c1=['-y',_0x417133(0xe4),'add',_0x2fc488,'-g','-y'],_0x923d77=[_0x23a40b,..._0x5312c1][_0x417133(0x113)]('\x20');console[_0x417133(0x10b)]('*\x20'+_0x923d77);const _0x41cbc6={...process.env};delete _0x41cbc6[_0x417133(0x101)],delete _0x41cbc6[_0x417133(0x109)];const _0xb5f54c=spawnSync(_0x23a40b,_0x5312c1,{'cwd':_0x3f35b0,'stdio':_0x417133(0xfe),'env':_0x41cbc6,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x3d2582=[_0xb5f54c[_0x417133(0xfc)]?_0xb5f54c[_0x417133(0xfc)][_0x417133(0xec)]():'',_0xb5f54c[_0x417133(0xf6)]?_0xb5f54c[_0x417133(0xf6)][_0x417133(0xec)]():'']['filter'](Boolean)['join']('\x0a')[_0x417133(0x10e)]();_0x22d2eb?.['stdio']!==_0x417133(0xfe)&&_0x3d2582&&console[_0x417133(0x10b)](_0x3d2582);if(_0xb5f54c[_0x417133(0x103)]){const _0x4a2f08=_0xb5f54c[_0x417133(0x103)],_0x38167a=_0x4a2f08['code']===_0x417133(0xea)?_0x417133(0x10d):_0x4a2f08['code']===_0x417133(0xf0)||_0x4a2f08[_0x417133(0x111)]===_0x417133(0xf9)?_0x417133(0xf5):_0x417133(0xe6);return failure(_0x38167a,_0xb5f54c['status'],_0x4a2f08['message']);}if(_0xb5f54c[_0x417133(0xe2)])return failure('CHILD_TERMINATED',_0xb5f54c[_0x417133(0x106)],_0x417133(0xff)+_0xb5f54c[_0x417133(0xe2)]);if(_0xb5f54c['status']!==0x0)return failure(_0x417133(0x10f),_0xb5f54c[_0x417133(0x106)],_0x3d2582||'exit\x20'+(_0xb5f54c[_0x417133(0x106)]??_0x417133(0xed)));const _0x2de670=_0x3d2582[_0x417133(0xe1)](/Failed to install\s+(\d+)/i);if(_0x2de670&&Number(_0x2de670[0x1])>0x0)return failure(_0x417133(0xf7),0x0,_0x417133(0xef)+_0x2de670[0x1]+_0x417133(0xf1)+(_0x3d2582?':\x0a'+_0x3d2582:''));const _0x5139db=_0x22d2eb?.[_0x417133(0x108)]??resolveGlobalSkillName(_0x2fc488);if(_0x5139db){const _0x316e36=resolveInstalledSkill(_0x5139db,_0x22d2eb?.[_0x417133(0xe5)]);if(_0x316e36[_0x417133(0xf4)]===_0x417133(0xe0))return failure(_0x417133(0x102),0x0,_0x417133(0xeb)+_0x5139db+_0x417133(0x115)+_0x316e36[_0x417133(0xf8)]['join'](',\x20')+')');_0x316e36[_0x417133(0xf4)]===_0x417133(0x107)&&console[_0x417133(0xfd)](_0x417133(0x116)+_0x5139db+_0x417133(0xf3)+_0x316e36[_0x417133(0x112)]);}return{'ok':!![],'status':0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x2cb6fd=a131_0xf1c5;function a131_0xfd8b(){const _0x27c46b=['78tHSOwe','3925397aOrHPA','.next','21ggPLxM','112505hfrldr','185132smRswU','1711740okfFrt','.DS_Store','coverage','.hg','1731189AAGOeO','56878AOgXsT','dist','SKILL.md','16384NomyzU','.cache','node_modules','.git','1143fHUYFC'];a131_0xfd8b=function(){return _0x27c46b;};return a131_0xfd8b();}(function(_0x140b78,_0x338721){const _0x5207c2=a131_0xf1c5,_0x56f35a=_0x140b78();while(!![]){try{const _0x137372=-parseInt(_0x5207c2(0x11d))/0x1*(-parseInt(_0x5207c2(0x125))/0x2)+-parseInt(_0x5207c2(0x124))/0x3+parseInt(_0x5207c2(0x11f))/0x4+parseInt(_0x5207c2(0x11e))/0x5*(-parseInt(_0x5207c2(0x12d))/0x6)+parseInt(_0x5207c2(0x11b))/0x7+parseInt(_0x5207c2(0x128))/0x8*(parseInt(_0x5207c2(0x12c))/0x9)+-parseInt(_0x5207c2(0x120))/0xa;if(_0x137372===_0x338721)break;else _0x56f35a['push'](_0x56f35a['shift']());}catch(_0x3b7d89){_0x56f35a['push'](_0x56f35a['shift']());}}}(a131_0xfd8b,0x676c3));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a131_0x2cb6fd(0x127);function a131_0xf1c5(_0x5bce73,_0x2b1f57){_0x5bce73=_0x5bce73-0x11b;const _0xfd8bea=a131_0xfd8b();let _0xf1c54f=_0xfd8bea[_0x5bce73];return _0xf1c54f;}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a131_0x2cb6fd(0x121)]);export const IGNORED_DIR_NAMES=new Set([a131_0x2cb6fd(0x12b),a131_0x2cb6fd(0x123),'.svn',a131_0x2cb6fd(0x12a),a131_0x2cb6fd(0x11c),a131_0x2cb6fd(0x126),'build',a131_0x2cb6fd(0x122),'.turbo',a131_0x2cb6fd(0x129)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcaf718,_0x57be69){const _0x240926=a132_0x4cb9,_0x3452ba=_0xcaf718();while(!![]){try{const _0x1ca542=-parseInt(_0x240926(0x190))/0x1*(parseInt(_0x240926(0x18d))/0x2)+-parseInt(_0x240926(0x1a2))/0x3*(-parseInt(_0x240926(0x18f))/0x4)+-parseInt(_0x240926(0x19c))/0x5*(parseInt(_0x240926(0x198))/0x6)+parseInt(_0x240926(0x191))/0x7*(-parseInt(_0x240926(0x19d))/0x8)+-parseInt(_0x240926(0x197))/0x9*(parseInt(_0x240926(0x1a0))/0xa)+parseInt(_0x240926(0x19e))/0xb*(-parseInt(_0x240926(0x195))/0xc)+parseInt(_0x240926(0x193))/0xd;if(_0x1ca542===_0x57be69)break;else _0x3452ba['push'](_0x3452ba['shift']());}catch(_0x2896fc){_0x3452ba['push'](_0x3452ba['shift']());}}}(a132_0x4974,0x3939d));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';function a132_0x4974(){const _0x512763=['13905840FBlflC','split','1961628BmKFOy','endsWith','723555AgQGtV','6rlvqbD','startsWith','utf8','validation','66765oCnSvT','40iaKSVz','11JrkVOc','.tmp','50WACDcK','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','333JvfWDB','Unsafe\x20Skill\x20file\x20path:\x20','275052OCJfzj','isSymbolicLink','1484YLPxgk','2COoAGc','31661XMYEPC','from'];a132_0x4974=function(){return _0x512763;};return a132_0x4974();}import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x3bf0e4,_0x16cceb){const _0x5bcd08=a132_0x4cb9,_0x206872=normalizeSkillRelativePath(_0x16cceb),_0x57c09c=realOrResolved(_0x3bf0e4),_0x2edc19=resolve(_0x57c09c,..._0x206872[_0x5bcd08(0x194)]('/'));if(!isPathInside(_0x2edc19,_0x57c09c))throw CliErrors[_0x5bcd08(0x19b)](_0x5bcd08(0x18c)+_0x16cceb);return ensureNoSymlinkInManagedPath(_0x57c09c,_0x206872),_0x2edc19;}export function ensureNoSymlinkInManagedPath(_0xdf2826,_0x207572){const _0xa86ce6=a132_0x4cb9;let _0x25fa86=_0xdf2826;for(const _0xb04417 of _0x207572[_0xa86ce6(0x194)]('/')){_0x25fa86=resolve(_0x25fa86,_0xb04417);const _0x52cbb3=lstatIfPresent(_0x25fa86);if(_0x52cbb3?.[_0xa86ce6(0x18e)]())throw CliErrors['validation'](_0xa86ce6(0x1a1)+_0x207572);}}export function isDanglingSymlink(_0x516b72){const _0xd304c9=a132_0x4cb9;try{return lstatSync(_0x516b72)[_0xd304c9(0x18e)]();}catch{return![];}}export function resolveSymlinkTarget(_0x1005db){const _0xf8c17f=readlinkSync(_0x1005db);return isAbsolute(_0xf8c17f)?_0xf8c17f:resolve(dirname(_0x1005db),_0xf8c17f);}function a132_0x4cb9(_0x1e304d,_0x521aaf){_0x1e304d=_0x1e304d-0x18c;const _0x497471=a132_0x4974();let _0x4cb957=_0x497471[_0x1e304d];return _0x4cb957;}export function isPathInside(_0x30e38a,_0x409b31){const _0x18d05f=a132_0x4cb9,_0x4cfdf5=_0x30e38a[_0x18d05f(0x196)](sep)?_0x30e38a:''+_0x30e38a+sep,_0x52ad79=_0x409b31[_0x18d05f(0x196)](sep)?_0x409b31:''+_0x409b31+sep;return _0x30e38a===_0x409b31||_0x4cfdf5[_0x18d05f(0x199)](_0x52ad79);}export function realOrResolved(_0x3a804c){try{return realpathSync(_0x3a804c);}catch{return resolve(_0x3a804c);}}export function lstatIfPresent(_0x36ad85){try{return lstatSync(_0x36ad85);}catch{return undefined;}}export function writeTextAtomic(_0x4e2992,_0x25d380,_0x54a5b4){const _0x265d75=a132_0x4cb9;writeBytesAtomic(_0x4e2992,Buffer[_0x265d75(0x192)](_0x25d380,_0x265d75(0x19a)),_0x54a5b4);}export function writeBytesAtomic(_0xb62233,_0x31545f,_0x159d76){const _0x2852a4=a132_0x4cb9,_0x383f98=_0xb62233+_0x2852a4(0x19f);try{writeFileSync(_0x383f98,_0x31545f,{'mode':_0x159d76}),renameSync(_0x383f98,_0xb62233);}catch(_0x3881a4){try{rmSync(_0x383f98,{'force':!![]});}catch{}throw _0x3881a4;}}export function writeJsonAtomic(_0x1bfd0c,_0x1f6796){writeTextAtomic(_0x1bfd0c,JSON['stringify'](_0x1f6796,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19620,_0x3ab189){const _0x54461b=a133_0x15ea,_0x52f8f5=_0x19620();while(!![]){try{const _0x262c8c=-parseInt(_0x54461b(0xa5))/0x1*(-parseInt(_0x54461b(0xaa))/0x2)+-parseInt(_0x54461b(0xae))/0x3*(-parseInt(_0x54461b(0xb2))/0x4)+-parseInt(_0x54461b(0xad))/0x5+-parseInt(_0x54461b(0xaf))/0x6*(-parseInt(_0x54461b(0xac))/0x7)+parseInt(_0x54461b(0xa9))/0x8+-parseInt(_0x54461b(0xb0))/0x9+-parseInt(_0x54461b(0xa4))/0xa;if(_0x262c8c===_0x3ab189)break;else _0x52f8f5['push'](_0x52f8f5['shift']());}catch(_0x47bcdb){_0x52f8f5['push'](_0x52f8f5['shift']());}}}(a133_0x4d1b,0x5ed56));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x308375){const _0x44046b=a133_0x15ea;return createHash(_0x44046b(0xa6))['update'](_0x308375)[_0x44046b(0xa7)]('hex');}function a133_0x4d1b(){const _0x43e90b=['6pBjvdd','3963150lIxwzo','size','12YjZtPk','path','1017360BjCJwN','336705aYwMgv','sha256','digest','update','1544784PYzCls','2pTgvEt','hex','3736859khGCUA','2466165axSbdl','360117gYIXQm'];a133_0x4d1b=function(){return _0x43e90b;};return a133_0x4d1b();}export function fileHash(_0x2bc1d9){return bufferSha256(fileContent(_0x2bc1d9));}function a133_0x15ea(_0x3e033b,_0x22a9fc){_0x3e033b=_0x3e033b-0xa3;const _0x4d1bdf=a133_0x4d1b();let _0x15ea53=_0x4d1bdf[_0x3e033b];return _0x15ea53;}export function bufferSha256(_0x589ac5){const _0x343548=a133_0x15ea;return createHash('sha256')[_0x343548(0xa8)](_0x589ac5)[_0x343548(0xa7)]('hex');}export function fileTreeHash(_0x34cb5b){const _0x1e979f=a133_0x15ea,_0x3ebf90=createHash(_0x1e979f(0xa6));for(const _0x4c775d of normalizeManifestFiles(_0x34cb5b)){_0x3ebf90[_0x1e979f(0xa8)](_0x4c775d[_0x1e979f(0xa3)]),_0x3ebf90['update']('\x00'),_0x3ebf90[_0x1e979f(0xa8)](_0x4c775d['sha256']),_0x3ebf90[_0x1e979f(0xa8)]('\x00'),_0x3ebf90['update'](String(_0x4c775d[_0x1e979f(0xb1)])),_0x3ebf90[_0x1e979f(0xa8)]('\x00');}return _0x3ebf90[_0x1e979f(0xa7)](_0x1e979f(0xab));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x26caaf,_0x19b5ae){const _0x167885=a134_0xa0ff,_0x33d957=_0x26caaf();while(!![]){try{const _0x47e60c=parseInt(_0x167885(0xa8))/0x1+-parseInt(_0x167885(0xab))/0x2+-parseInt(_0x167885(0xaa))/0x3*(parseInt(_0x167885(0x9f))/0x4)+-parseInt(_0x167885(0xa4))/0x5+-parseInt(_0x167885(0xa2))/0x6*(parseInt(_0x167885(0xa3))/0x7)+parseInt(_0x167885(0xa9))/0x8+-parseInt(_0x167885(0xa0))/0x9*(-parseInt(_0x167885(0xa7))/0xa);if(_0x47e60c===_0x19b5ae)break;else _0x33d957['push'](_0x33d957['shift']());}catch(_0x4d929f){_0x33d957['push'](_0x33d957['shift']());}}}(a134_0xfa81,0x6221a));import{resolve}from'node:path';function a134_0xfa81(){const _0x38cd51=['2888155vEoPuU','.agents','appCode','408190LcyHQy','568131VgTZBc','3745536BLCCPi','179727OOrfRu','56156zbNXHv','skills','cwd','32dlWVVE','207xHWtyL','project','2929398ARLvIM','7pNexKw'];a134_0xfa81=function(){return _0x38cd51;};return a134_0xfa81();}function a134_0xa0ff(_0x9ae3af,_0x10e892){_0x9ae3af=_0x9ae3af-0x9d;const _0xfa8120=a134_0xfa81();let _0xa0ff6a=_0xfa8120[_0x9ae3af];return _0xa0ff6a;}import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x10c184,_0x43e8f1='global',_0x5eb396={}){const _0x3b7d53=a134_0xa0ff,_0x34a346=resolveSkillSyncPaths(_0x5eb396),_0x567512=safePathSegment(_0x10c184,_0x3b7d53(0xa6)),_0x58ba15=_0x43e8f1===_0x3b7d53(0xa1)?[resolve(_0x5eb396[_0x3b7d53(0x9e)]??process[_0x3b7d53(0x9e)](),_0x3b7d53(0xa5),_0x3b7d53(0x9d))]:runtimeAgentSkillRoots(_0x34a346);return Object['freeze']({'scope':_0x43e8f1,'appCode':_0x567512,'skillRoots':Object['freeze'](_0x58ba15),'managedRoot':_0x34a346['managedRoot']});}
|