@lovrabet/lovrabet-cli 2.2.2-beta.1 → 2.2.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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.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/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.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/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
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x24fa2b,_0x2122e5){const _0x4b02c7=a94_0x2c8a,_0x4a591c=_0x24fa2b();while(!![]){try{const _0x3641b6=parseInt(_0x4b02c7(0x17b))/0x1+parseInt(_0x4b02c7(0x18f))/0x2+-parseInt(_0x4b02c7(0x1a4))/0x3*(parseInt(_0x4b02c7(0x181))/0x4)+-parseInt(_0x4b02c7(0x194))/0x5*(parseInt(_0x4b02c7(0x180))/0x6)+parseInt(_0x4b02c7(0x1b2))/0x7+-parseInt(_0x4b02c7(0x176))/0x8*(parseInt(_0x4b02c7(0x187))/0x9)+parseInt(_0x4b02c7(0x195))/0xa*(parseInt(_0x4b02c7(0x18e))/0xb);if(_0x3641b6===_0x2122e5)break;else _0x4a591c['push'](_0x4a591c['shift']());}catch(_0x49a0ac){_0x4a591c['push'](_0x4a591c['shift']());}}}(a94_0x4860,0x3da90));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';function a94_0x4860(){const _0x565898=['trim','authRequired','production','has','716681yPMPHb','accessKey','appcode\x20\x22','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','560xqdlFX','formatOutput','execute','requiresAuth','defaultPageSize','269536vBRPcM','ACCESS_KEY','app','../core/api-client.js','validation','280362zVTMiD','1164004FGcDJE','command','rawFlags','appCodeSource','High-risk\x20operation\x20`','Run\x20`','8064pfmPzl','update','_notice','mergedCli','appCode','items','\x20or\x20pass\x20','1925JglprM','402936MhwKrp','currentApp','defaultVerbose','format','.appcode\x20to\x20','15maLvxU','9890VrVGXn','defaultApp','pageSize','map','includes','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','object','filter','env','isNonInteractive','error','riskLevel','apiDomain','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','newConfigFileName','3cxZyvT','service','../core/sdk-client.js','doctor','cancelled','resolve','requiresAppCode','../commands/app/remote-source.js','schema','name'];a94_0x4860=function(){return _0x565898;};return a94_0x4860();}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(_0x27329b){return void _0x27329b,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5c5296,_0xce8ece){const _0x1af94a=a94_0x2c8a,_0x53738f=typeof _0xce8ece[_0x1af94a(0x17d)]==='string'&&_0xce8ece[_0x1af94a(0x17d)][_0x1af94a(0x1ae)]();return{'rawFlags':_0xce8ece,'appCode':_0x5c5296[_0x1af94a(0x18b)]||productEnv('APPCODE')||(_0x53738f?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5c5296[_0x1af94a(0x184)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0xce8ece),'defaultFormat':_0x5c5296[_0x1af94a(0x192)],'defaultPageSize':_0x5c5296[_0x1af94a(0x197)],'defaultVerbose':_0x5c5296['verbose'],'riskLevel':_0x5c5296[_0x1af94a(0x1a0)],'accessKey':_0x5c5296[_0x1af94a(0x1b3)],'env':_0x5c5296[_0x1af94a(0x19d)],'mergedCli':{'defaultApp':_0x5c5296[_0x1af94a(0x196)],'currentApp':_0x5c5296[_0x1af94a(0x190)],'appCode':_0x5c5296[_0x1af94a(0x18b)]}};}export function createLovrabetRunnerAdapter(_0x485fad={}){const _0x3e1230=a94_0x2c8a,_0x29b634={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3e1230(0x19c)](_0x3d4e93=>PIPELINE_FLAG_NAMES[_0x3e1230(0x1b1)](_0x3d4e93[_0x3e1230(0x1ad)]))[_0x3e1230(0x198)](({name:_0x1749c8,type:_0x522e35,description:_0x221183})=>({'name':_0x1749c8,'type':_0x522e35,'description':_0x221183})),'formatOutput':_0x485fad[_0x3e1230(0x177)]??formatOutput,'getCommandLabel'(_0x3cd3b9){const _0x314507=_0x3e1230;return CLI_BIN_NAME+'\x20'+_0x3cd3b9[_0x314507(0x1a5)]+'\x20'+_0x3cd3b9[_0x314507(0x182)];},'riskPolicy':{'onViolation'(_0x168cd3){const _0x1a3053=_0x3e1230;console[_0x1a3053(0x19f)](_0x168cd3);},'createError'(_0x3b8a35){const _0x185af8=_0x3e1230;return CliErrors[_0x185af8(0x1a8)](_0x3b8a35);}},async 'prepare'(_0x33b379,_0x1013e7){const _0x123a7e=_0x3e1230,_0x169d49=resolveAuthMode(_0x1013e7);if(_0x33b379[_0x123a7e(0x179)]!==![]){if(!_0x1013e7['accessKey'])throw CliErrors[_0x123a7e(0x1af)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x123a7e(0x18d)+productEnvName(_0x123a7e(0x17c))+'.');const {setActiveAK:_0x3a157d}=await import(_0x123a7e(0x17e));_0x3a157d(_0x1013e7[_0x123a7e(0x1b3)]);}let _0xfcf7d9='';if(_0x33b379[_0x123a7e(0x1aa)]!==![]){_0xfcf7d9=_0x1013e7['appCode']??'',_0xfcf7d9=await resolveExplicitAppName(_0x33b379,_0x1013e7,_0xfcf7d9);if(!_0xfcf7d9){await assertSelectedAppNameIsRuntimeAccessible(_0x33b379,_0x1013e7);throw CliErrors['configMissing'](_0x123a7e(0x1a2)+PRODUCT_CONFIG[_0x123a7e(0x1a3)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x33b379,_0x1013e7,_0xfcf7d9);}if(_0xfcf7d9){const {initSdkClient:_0x17fecc}=await import('../core/sdk-client.js');_0x17fecc({'appCode':_0xfcf7d9,'env':_0x1013e7['env']??_0x123a7e(0x1b0),'accessKey':_0x1013e7[_0x123a7e(0x1b3)],'authMode':_0x169d49}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1013e7[_0x123a7e(0x191)]},'numbers':{'pagesize':_0x1013e7[_0x123a7e(0x17a)]}},'extras':{'appCode':_0xfcf7d9,'cookie':'','apiDomain':_0x1013e7[_0x123a7e(0x1a1)],'apiDir':'','accessKey':_0x1013e7[_0x123a7e(0x1b3)],'envName':_0x1013e7[_0x123a7e(0x19d)],'mergedCli':_0x1013e7[_0x123a7e(0x18a)]}};},'confirmHighRisk':_0x485fad['confirmHighRisk']??(async({def:_0xf0699f,env:_0x2879d2,flags:_0x59019b,commandLabel:_0x45434d})=>{const _0x1b4154=_0x3e1230;if(_0x2879d2[_0x1b4154(0x19e)]){const _0x4bcd41=reconstructCommandArgv(_0xf0699f,_0x59019b);throw CliErrors[_0x1b4154(0x17f)](_0x1b4154(0x185)+_0x45434d+_0x1b4154(0x19a)+('\x20\x20To\x20proceed:\x20'+_0x4bcd41));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xf0699f,_0x45434d,_0x59019b),'createCancelledError':_0x3fb85e=>CliErrors[_0x1b4154(0x1a8)](_0x3fb85e)});}),'mapDryRunError'(_0x30da8d){return mapUserFacingExecuteError(_0x30da8d);},'mapExecuteError'(_0x18e3b0){return mapUserFacingExecuteError(_0x18e3b0);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x29b634;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0xbfdb03=a94_0x2c8a;try{if(sdkClientInitialized){const {clearSdkClient:_0x1b1ffa}=await import(_0xbfdb03(0x1a6));_0x1b1ffa();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x55bf09}=await import(_0xbfdb03(0x17e));_0x55bf09();}}async function resolveExplicitAppName(_0x18d155,_0x39b6f7,_0x4b4eb1){const _0x23f263=a94_0x2c8a;if(_0x18d155['requiresAppCode']===![])return _0x4b4eb1;const _0x473f1b=typeof _0x39b6f7['rawFlags'][_0x23f263(0x17d)]==='string'?_0x39b6f7[_0x23f263(0x183)][_0x23f263(0x17d)]['trim']():'';if(!_0x473f1b)return _0x4b4eb1;const _0x41ef78=typeof _0x39b6f7[_0x23f263(0x183)]['appcode']==='string'&&_0x39b6f7[_0x23f263(0x183)]['appcode']['trim']()||productEnv('APPCODE');if(_0x41ef78||_0x39b6f7[_0x23f263(0x184)]==='local-alias')return _0x4b4eb1;const {getRemoteAppList:_0x3448c7}=await import('../commands/app/remote-source.js'),_0x42cdc9=await _0x3448c7({'env':_0x39b6f7[_0x23f263(0x19d)]??_0x23f263(0x1b0),'accessKey':_0x39b6f7['accessKey']}),_0x1b3479=findAppByName(_0x42cdc9[_0x23f263(0x18c)],_0x473f1b);if(_0x1b3479&&!isRuntimeAccessibleApp(_0x1b3479))throw runtimeInaccessibleAppError(_0x1b3479,'\x22'+_0x473f1b+'\x22');const _0x420be1=_0x1b3479?.[_0x23f263(0x18b)]?.[_0x23f263(0x1ae)]();if(_0x420be1)return _0x420be1;throw CliErrors[_0x23f263(0x17f)]('Unknown\x20app:\x20'+_0x473f1b,_0x23f263(0x186)+CLI_BIN_NAME+_0x23f263(0x175)+_0x473f1b+_0x23f263(0x193)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xf0c8f9,_0x417596){const _0x183462=a94_0x2c8a;if(_0xf0c8f9['requiresAppCode']===![]||!_0x417596[_0x183462(0x1b3)])return;const _0x5d8c2b=(typeof _0x417596[_0x183462(0x183)][_0x183462(0x17d)]==='string'&&_0x417596[_0x183462(0x183)]['app'][_0x183462(0x1ae)]()?_0x417596[_0x183462(0x183)][_0x183462(0x17d)]:_0x417596[_0x183462(0x18a)]?.[_0x183462(0x190)]??_0x417596[_0x183462(0x18a)]?.[_0x183462(0x196)])?.[_0x183462(0x1ae)]();if(!_0x5d8c2b)return;const {getRemoteAppList:_0x2fcf43}=await import(_0x183462(0x1ab)),_0x1fd170=await _0x2fcf43({'env':_0x417596[_0x183462(0x19d)]??_0x183462(0x1b0),'accessKey':_0x417596[_0x183462(0x1b3)]}),_0x335483=findAppByName(_0x1fd170[_0x183462(0x18c)],_0x5d8c2b);if(_0x335483&&!isRuntimeAccessibleApp(_0x335483))throw runtimeInaccessibleAppError(_0x335483,'\x22'+_0x5d8c2b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x11ffbe,_0x358196,_0x25d8db){const _0x3eacb1=a94_0x2c8a;if(_0x11ffbe['requiresAppCode']===![]||!_0x358196[_0x3eacb1(0x1b3)])return;const {getRemoteAppList:_0x27383f}=await import(_0x3eacb1(0x1ab)),_0x11909e=await _0x27383f({'env':_0x358196[_0x3eacb1(0x19d)]??'production','accessKey':_0x358196[_0x3eacb1(0x1b3)]}),_0x4fdbf6=findAppByCode(_0x11909e[_0x3eacb1(0x18c)],_0x25d8db);if(_0x4fdbf6&&!isRuntimeAccessibleApp(_0x4fdbf6))throw runtimeInaccessibleAppError(_0x4fdbf6,_0x3eacb1(0x1b4)+_0x25d8db+'\x22');}export async function runCommand(_0x25075b,_0x91fb49,_0x539213=terminalRunnerAdapter){const _0xcf74f3=a94_0x2c8a;assertKnownCommandFlags(_0x25075b,_0x91fb49[_0xcf74f3(0x183)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x25075b)?withUpdateNotice(_0x25075b):_0x25075b,_0x91fb49,_0x539213);}function shouldAttachUpdateNotice(_0x153ee2){const _0x1632f5=a94_0x2c8a;return![_0x1632f5(0x188),_0x1632f5(0x1ac),_0x1632f5(0x1a7)][_0x1632f5(0x199)](_0x153ee2[_0x1632f5(0x1a5)]);}function withUpdateNotice(_0x58d90d){return{..._0x58d90d,async 'execute'(_0x1eb908){const _0x287a9c=a94_0x2c8a,_0x4338c6=shouldResolveUpdateNotice(_0x1eb908)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x287a9c(0x1a9)](null),_0x4b9a82=await _0x58d90d[_0x287a9c(0x178)](_0x1eb908);return attachUpdateNotice(_0x4b9a82,await _0x4338c6);}};}function shouldResolveUpdateNotice(_0x105012){return _0x105012['format']==='pretty'&&!_0x105012['nonInteractive'];}function a94_0x2c8a(_0x2637f9,_0x540423){_0x2637f9=_0x2637f9-0x175;const _0x4860e6=a94_0x4860();let _0x2c8a20=_0x4860e6[_0x2637f9];return _0x2c8a20;}function attachUpdateNotice(_0x307aa1,_0x241e6a){const _0x2baac6=a94_0x2c8a;if(!_0x241e6a||!_0x307aa1||typeof _0x307aa1!==_0x2baac6(0x19b))return _0x307aa1;const _0x2b2641=_0x307aa1,_0x5745ee=typeof _0x2b2641['_notice']==='object'&&_0x2b2641[_0x2baac6(0x189)]!==null?_0x2b2641['_notice']:{};return{..._0x2b2641,'_notice':{..._0x5745ee,'update':_0x241e6a}};}
|
|
1
|
+
(function(_0x1402da,_0x5fd30f){const _0x5c8fb0=a94_0x2a72,_0xf3bc51=_0x1402da();while(!![]){try{const _0x2e8f34=parseInt(_0x5c8fb0(0x1dd))/0x1+parseInt(_0x5c8fb0(0x1a7))/0x2+-parseInt(_0x5c8fb0(0x1a1))/0x3+-parseInt(_0x5c8fb0(0x1a0))/0x4+-parseInt(_0x5c8fb0(0x1bd))/0x5+parseInt(_0x5c8fb0(0x1ab))/0x6*(-parseInt(_0x5c8fb0(0x1a5))/0x7)+parseInt(_0x5c8fb0(0x1d1))/0x8*(parseInt(_0x5c8fb0(0x1b4))/0x9);if(_0x2e8f34===_0x5fd30f)break;else _0xf3bc51['push'](_0xf3bc51['shift']());}catch(_0x314771){_0xf3bc51['push'](_0xf3bc51['shift']());}}}(a94_0xb52a,0x97618));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';function a94_0x2a72(_0x122db0,_0x5859bc){_0x122db0=_0x122db0-0x19d;const _0xb52a34=a94_0xb52a();let _0x2a7251=_0xb52a34[_0x122db0];return _0x2a7251;}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';import{assertKnownCommandFlags}from'../framework/raw-flags.js';function a94_0xb52a(){const _0x1e1b16=['2155362QNJOqP','app','Unknown\x20app:\x20','cancelled','8590554QVoLhM','configMissing','258698HzTtKV','formatOutput','error','defaultApp','6wTdMdA','format','APPCODE','map','apiDomain','object','newConfigFileName','production','requiresAppCode','18lqxENo','execute','appcode','riskLevel','doctor','verbose','defaultPageSize','string','command','5416675vuZifP','defaultVerbose','Set\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','authRequired','appCodeSource','schema','pretty','service','update','currentApp','validation','_notice','nonInteractive','High-risk\x20operation\x20`','rawFlags','mergedCli','ACCESS_KEY','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appCode','16448344JUqEyV','../core/api-client.js','isNonInteractive','Run\x20`','../core/sdk-client.js','filter','trim','../commands/app/remote-source.js','includes','name','\x20\x20To\x20proceed:\x20','accessKey','187668uNbvBI','pageSize','env','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','items','3120144spXhQw'];a94_0xb52a=function(){return _0x1e1b16;};return a94_0xb52a();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x198b23){return void _0x198b23,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5384b1,_0x40921d){const _0x5576db=a94_0x2a72,_0x169aa2=typeof _0x40921d[_0x5576db(0x1a2)]===_0x5576db(0x1bb)&&_0x40921d[_0x5576db(0x1a2)][_0x5576db(0x1d7)]();return{'rawFlags':_0x40921d,'appCode':_0x5384b1[_0x5576db(0x1d0)]||productEnv(_0x5576db(0x1ad))||(_0x169aa2?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5384b1[_0x5576db(0x1c2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x40921d),'defaultFormat':_0x5384b1[_0x5576db(0x1ac)],'defaultPageSize':_0x5384b1[_0x5576db(0x1de)],'defaultVerbose':_0x5384b1[_0x5576db(0x1b9)],'riskLevel':_0x5384b1[_0x5576db(0x1b7)],'accessKey':_0x5384b1[_0x5576db(0x1dc)],'env':_0x5384b1[_0x5576db(0x19d)],'mergedCli':{'defaultApp':_0x5384b1[_0x5576db(0x1aa)],'currentApp':_0x5384b1[_0x5576db(0x1c7)],'appCode':_0x5384b1['appCode']}};}export function createLovrabetRunnerAdapter(_0x4c11cf={}){const _0x115568=a94_0x2a72,_0x3fccbc={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x115568(0x1d6)](_0x7344a=>PIPELINE_FLAG_NAMES['has'](_0x7344a[_0x115568(0x1da)]))[_0x115568(0x1ae)](({name:_0x260582,type:_0xf3d8a1,description:_0xd36626})=>({'name':_0x260582,'type':_0xf3d8a1,'description':_0xd36626})),'formatOutput':_0x4c11cf[_0x115568(0x1a8)]??formatOutput,'getCommandLabel'(_0x3b2587){const _0x21d955=_0x115568;return CLI_BIN_NAME+'\x20'+_0x3b2587[_0x21d955(0x1c5)]+'\x20'+_0x3b2587[_0x21d955(0x1bc)];},'riskPolicy':{'onViolation'(_0xd39d59){const _0x4ccffa=_0x115568;console[_0x4ccffa(0x1a9)](_0xd39d59);},'createError'(_0x332617){const _0x5cac15=_0x115568;return CliErrors[_0x5cac15(0x1a4)](_0x332617);}},async 'prepare'(_0xd09997,_0x559bbe){const _0x347368=_0x115568,_0x3f1312=resolveAuthMode(_0x559bbe);if(_0xd09997['requiresAuth']!==![]){if(!_0x559bbe[_0x347368(0x1dc)])throw CliErrors[_0x347368(0x1c1)](_0x347368(0x1bf)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x347368(0x1ce))+'.');const {setActiveAK:_0x564e18}=await import(_0x347368(0x1d2));_0x564e18(_0x559bbe[_0x347368(0x1dc)]);}let _0x225f8a='';if(_0xd09997['requiresAppCode']!==![]){_0x225f8a=_0x559bbe[_0x347368(0x1d0)]??'',_0x225f8a=await resolveExplicitAppName(_0xd09997,_0x559bbe,_0x225f8a);if(!_0x225f8a){await assertSelectedAppNameIsRuntimeAccessible(_0xd09997,_0x559bbe);throw CliErrors[_0x347368(0x1a6)](_0x347368(0x1c0)+PRODUCT_CONFIG[_0x347368(0x1b1)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xd09997,_0x559bbe,_0x225f8a);}if(_0x225f8a){const {initSdkClient:_0x5e6abe}=await import(_0x347368(0x1d5));_0x5e6abe({'appCode':_0x225f8a,'env':_0x559bbe[_0x347368(0x19d)]??'production','accessKey':_0x559bbe[_0x347368(0x1dc)],'authMode':_0x3f1312}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x559bbe[_0x347368(0x1be)]},'numbers':{'pagesize':_0x559bbe[_0x347368(0x1ba)]}},'extras':{'appCode':_0x225f8a,'cookie':'','apiDomain':_0x559bbe[_0x347368(0x1af)],'apiDir':'','accessKey':_0x559bbe[_0x347368(0x1dc)],'envName':_0x559bbe[_0x347368(0x19d)],'mergedCli':_0x559bbe[_0x347368(0x1cd)]}};},'confirmHighRisk':_0x4c11cf['confirmHighRisk']??(async({def:_0x7724f1,env:_0x1c2235,flags:_0x5964d7,commandLabel:_0x46722a})=>{const _0x5d7019=_0x115568;if(_0x1c2235[_0x5d7019(0x1d3)]){const _0x4357ac=reconstructCommandArgv(_0x7724f1,_0x5964d7);throw CliErrors['validation'](_0x5d7019(0x1cb)+_0x46722a+_0x5d7019(0x19e)+(_0x5d7019(0x1db)+_0x4357ac));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x7724f1,_0x46722a,_0x5964d7),'createCancelledError':_0x3cd284=>CliErrors[_0x5d7019(0x1a4)](_0x3cd284)});}),'mapDryRunError'(_0x2befa4){return mapUserFacingExecuteError(_0x2befa4);},'mapExecuteError'(_0x241801){return mapUserFacingExecuteError(_0x241801);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x3fccbc;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x3dc73b}=await import('../core/sdk-client.js');_0x3dc73b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3a3e94}=await import('../core/api-client.js');_0x3a3e94();}}async function resolveExplicitAppName(_0x5c8f63,_0x4d4a8b,_0x524e9b){const _0x24343a=a94_0x2a72;if(_0x5c8f63['requiresAppCode']===![])return _0x524e9b;const _0x10e09c=typeof _0x4d4a8b[_0x24343a(0x1cc)][_0x24343a(0x1a2)]===_0x24343a(0x1bb)?_0x4d4a8b[_0x24343a(0x1cc)][_0x24343a(0x1a2)]['trim']():'';if(!_0x10e09c)return _0x524e9b;const _0x4abb79=typeof _0x4d4a8b[_0x24343a(0x1cc)][_0x24343a(0x1b6)]===_0x24343a(0x1bb)&&_0x4d4a8b[_0x24343a(0x1cc)][_0x24343a(0x1b6)][_0x24343a(0x1d7)]()||productEnv('APPCODE');if(_0x4abb79||_0x4d4a8b[_0x24343a(0x1c2)]==='local-alias')return _0x524e9b;const {getRemoteAppList:_0x3c8836}=await import(_0x24343a(0x1d8)),_0x59c00b=await _0x3c8836({'env':_0x4d4a8b[_0x24343a(0x19d)]??_0x24343a(0x1b2),'accessKey':_0x4d4a8b[_0x24343a(0x1dc)]}),_0x327033=findAppByName(_0x59c00b[_0x24343a(0x19f)],_0x10e09c);if(_0x327033&&!isRuntimeAccessibleApp(_0x327033))throw runtimeInaccessibleAppError(_0x327033,'\x22'+_0x10e09c+'\x22');const _0x4024a3=_0x327033?.['appCode']?.[_0x24343a(0x1d7)]();if(_0x4024a3)return _0x4024a3;throw CliErrors[_0x24343a(0x1c8)](_0x24343a(0x1a3)+_0x10e09c,_0x24343a(0x1d4)+CLI_BIN_NAME+_0x24343a(0x1cf)+_0x10e09c+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x24343a(0x1b1)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x3eed18,_0x4625ea){const _0x81acce=a94_0x2a72;if(_0x3eed18['requiresAppCode']===![]||!_0x4625ea['accessKey'])return;const _0x166019=(typeof _0x4625ea[_0x81acce(0x1cc)][_0x81acce(0x1a2)]===_0x81acce(0x1bb)&&_0x4625ea['rawFlags'][_0x81acce(0x1a2)][_0x81acce(0x1d7)]()?_0x4625ea[_0x81acce(0x1cc)][_0x81acce(0x1a2)]:_0x4625ea['mergedCli']?.[_0x81acce(0x1c7)]??_0x4625ea['mergedCli']?.[_0x81acce(0x1aa)])?.['trim']();if(!_0x166019)return;const {getRemoteAppList:_0x5b1a8a}=await import(_0x81acce(0x1d8)),_0x4cc79b=await _0x5b1a8a({'env':_0x4625ea[_0x81acce(0x19d)]??'production','accessKey':_0x4625ea[_0x81acce(0x1dc)]}),_0x48c764=findAppByName(_0x4cc79b['items'],_0x166019);if(_0x48c764&&!isRuntimeAccessibleApp(_0x48c764))throw runtimeInaccessibleAppError(_0x48c764,'\x22'+_0x166019+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1eeb34,_0x2c0bc3,_0x31b63f){const _0x1f0371=a94_0x2a72;if(_0x1eeb34[_0x1f0371(0x1b3)]===![]||!_0x2c0bc3[_0x1f0371(0x1dc)])return;const {getRemoteAppList:_0x44afb3}=await import(_0x1f0371(0x1d8)),_0x448660=await _0x44afb3({'env':_0x2c0bc3['env']??_0x1f0371(0x1b2),'accessKey':_0x2c0bc3[_0x1f0371(0x1dc)]}),_0x3f2573=findAppByCode(_0x448660[_0x1f0371(0x19f)],_0x31b63f);if(_0x3f2573&&!isRuntimeAccessibleApp(_0x3f2573))throw runtimeInaccessibleAppError(_0x3f2573,'appcode\x20\x22'+_0x31b63f+'\x22');}export async function runCommand(_0x5b873b,_0x1ef05c,_0x3617f1=terminalRunnerAdapter){const _0x2425de=a94_0x2a72;assertKnownCommandFlags(_0x5b873b,_0x1ef05c[_0x2425de(0x1cc)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5b873b)?withUpdateNotice(_0x5b873b):_0x5b873b,_0x1ef05c,_0x3617f1);}function shouldAttachUpdateNotice(_0x519145){const _0xe8c898=a94_0x2a72;return![_0xe8c898(0x1c6),_0xe8c898(0x1c3),_0xe8c898(0x1b8)][_0xe8c898(0x1d9)](_0x519145[_0xe8c898(0x1c5)]);}function withUpdateNotice(_0x241331){return{..._0x241331,async 'execute'(_0xfdde2){const _0x99d0b9=a94_0x2a72,_0x2b7508=shouldResolveUpdateNotice(_0xfdde2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x5c6a97=await _0x241331[_0x99d0b9(0x1b5)](_0xfdde2);return attachUpdateNotice(_0x5c6a97,await _0x2b7508);}};}function shouldResolveUpdateNotice(_0x764684){const _0xe90ed8=a94_0x2a72;return _0x764684['format']===_0xe90ed8(0x1c4)&&!_0x764684[_0xe90ed8(0x1ca)];}function attachUpdateNotice(_0x55ba18,_0x279fbc){const _0x2532be=a94_0x2a72;if(!_0x279fbc||!_0x55ba18||typeof _0x55ba18!==_0x2532be(0x1b0))return _0x55ba18;const _0x562439=_0x55ba18,_0x3d1fea=typeof _0x562439['_notice']===_0x2532be(0x1b0)&&_0x562439[_0x2532be(0x1c9)]!==null?_0x562439[_0x2532be(0x1c9)]:{};return{..._0x562439,'_notice':{..._0x3d1fea,'update':_0x279fbc}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25882f,_0x334c1f){const _0x3e4b5c=a95_0x306b,_0x5ca81e=_0x25882f();while(!![]){try{const _0x21aeb5=parseInt(_0x3e4b5c(0x1ea))/0x1+parseInt(_0x3e4b5c(0x1e3))/0x2+parseInt(_0x3e4b5c(0x1ef))/0x3*(-parseInt(_0x3e4b5c(0x1e8))/0x4)+-parseInt(_0x3e4b5c(0x1ec))/0x5*(parseInt(_0x3e4b5c(0x1e5))/0x6)+parseInt(_0x3e4b5c(0x1e6))/0x7+-parseInt(_0x3e4b5c(0x1e4))/0x8*(parseInt(_0x3e4b5c(0x1ee))/0x9)+-parseInt(_0x3e4b5c(0x1e9))/0xa;if(_0x21aeb5===_0x334c1f)break;else _0x5ca81e['push'](_0x5ca81e['shift']());}catch(_0x1bc7d0){_0x5ca81e['push'](_0x5ca81e['shift']());}}}(a95_0x2668,0xc315a));import{buildSchemaPayload as a95_0x21f729}from'@lovrabet/cli-framework';function a95_0x306b(_0x58b45f,_0x32052b){_0x58b45f=_0x58b45f-0x1e2;const _0x266848=a95_0x2668();let _0x306b57=_0x266848[_0x58b45f];return _0x306b57;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5dfab8=a95_0x306b,{serviceRegistry:_0x16b43e,findDefinition:_0x12637f}=await import(_0x5dfab8(0x1f3)),_0x4c5161=new Set(_0x16b43e['map'](_0x17e7a2=>_0x17e7a2[_0x5dfab8(0x1ed)])),_0xf424a0=listDynamicServiceEntries()[_0x5dfab8(0x1eb)](_0x596d3e=>!_0x4c5161['has'](_0x596d3e[_0x5dfab8(0x1ed)])),_0x24ca64=a95_0x21f729({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x16b43e,_0xf424a0),'buildAllFlags':buildAllFlags,'findDefinition':(_0x52da79,_0x25676b)=>_0x12637f(_0x52da79,_0x25676b)??findDynamicServiceDefinition(_0x52da79,_0x25676b)});return normalizeSchemaPayload(_0x24ca64);}function normalizeSchemaPayload(_0x5508a8){const _0x59b865=a95_0x306b;return{..._0x5508a8,'schemaVersion':0x2,'services':_0x5508a8[_0x59b865(0x1f2)][_0x59b865(0x1f1)](_0x13d269=>({..._0x13d269,'commands':_0x13d269[_0x59b865(0x1e2)][_0x59b865(0x1f1)](normalizeSchemaCommand)}))};}function a95_0x2668(){const _0x41d3a2=['3081626bBHbme','352jYIFzM','4995822MuSZUZ','5038068xaSJWN','none','4vlrkKW','204120KCHqIe','736574vRktJd','filter','5NXcbes','service','13293TiIqNw','3840024xxexmt','requiresAuth','map','services','../commands/registry.js','auth','commands'];a95_0x2668=function(){return _0x41d3a2;};return a95_0x2668();}function normalizeSchemaCommand(_0xe66206){const _0x3b2f4b=a95_0x306b,_0x5a31e1=_0xe66206;return{..._0xe66206,'auth':_0x5a31e1[_0x3b2f4b(0x1f4)]??(_0xe66206[_0x3b2f4b(0x1f0)]?'required':_0x3b2f4b(0x1e7))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a96_0x457b(_0x9dc084,_0x727c59){_0x9dc084=_0x9dc084-0x1d8;const _0x52a262=a96_0x52a2();let _0x457bce=_0x52a262[_0x9dc084];return _0x457bce;}(function(_0x3e5cf7,_0x14f15c){const _0x1c3b57=a96_0x457b,_0x58fd3a=_0x3e5cf7();while(!![]){try{const _0x1d802a=parseInt(_0x1c3b57(0x1db))/0x1+-parseInt(_0x1c3b57(0x1e0))/0x2+parseInt(_0x1c3b57(0x1da))/0x3*(-parseInt(_0x1c3b57(0x1d8))/0x4)+-parseInt(_0x1c3b57(0x1d9))/0x5*(parseInt(_0x1c3b57(0x1de))/0x6)+parseInt(_0x1c3b57(0x1df))/0x7*(parseInt(_0x1c3b57(0x1e1))/0x8)+-parseInt(_0x1c3b57(0x1e4))/0x9*(-parseInt(_0x1c3b57(0x1e6))/0xa)+parseInt(_0x1c3b57(0x1e5))/0xb*(-parseInt(_0x1c3b57(0x1e3))/0xc);if(_0x1d802a===_0x14f15c)break;else _0x58fd3a['push'](_0x58fd3a['shift']());}catch(_0x10e55c){_0x58fd3a['push'](_0x58fd3a['shift']());}}}(a96_0x52a2,0x36011));function a96_0x52a2(){const _0x1c19f0=['58861hXEZmA','80670XJogCh','1184hJYegD','11290mlqCjy','411YYuYEk','278633HwtOut','slice','service','564XGTpIr','210tpSKpD','36914VlxABU','344uLHgWj','findIndex','48LNprAH','261qipwFZ'];a96_0x52a2=function(){return _0x1c19f0;};return a96_0x52a2();}export function insertDynamicServicesAfterServiceTree(_0x2f25c5,_0x8c535a){const _0x2781a1=a96_0x457b;if(_0x8c535a['length']===0x0)return[..._0x2f25c5];const _0x33e376=_0x2f25c5[_0x2781a1(0x1e2)](_0x19fc3d=>_0x19fc3d['service']===_0x2781a1(0x1dd));if(_0x33e376<0x0)return[..._0x2f25c5,..._0x8c535a];return[..._0x2f25c5['slice'](0x0,_0x33e376+0x1),..._0x8c535a,..._0x2f25c5[_0x2781a1(0x1dc)](_0x33e376+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36df2b,_0xda58db){var _0x15045d=a97_0x1514,_0x2c80f1=_0x36df2b();while(!![]){try{var _0x3854a0=-parseInt(_0x15045d(0x1d2))/0x1*(parseInt(_0x15045d(0x1d6))/0x2)+-parseInt(_0x15045d(0x1d1))/0x3+parseInt(_0x15045d(0x1d7))/0x4*(parseInt(_0x15045d(0x1d0))/0x5)+parseInt(_0x15045d(0x1d8))/0x6+parseInt(_0x15045d(0x1d3))/0x7*(parseInt(_0x15045d(0x1d4))/0x8)+-parseInt(_0x15045d(0x1d9))/0x9+parseInt(_0x15045d(0x1d5))/0xa;if(_0x3854a0===_0xda58db)break;else _0x2c80f1['push'](_0x2c80f1['shift']());}catch(_0x234843){_0x2c80f1['push'](_0x2c80f1['shift']());}}}(a97_0x79b1,0x228a4));function a97_0x1514(_0x1ee25c,_0x1a9eff){_0x1ee25c=_0x1ee25c-0x1d0;var _0x79b182=a97_0x79b1();var _0x1514f6=_0x79b182[_0x1ee25c];return _0x1514f6;}function a97_0x79b1(){var _0x39afe6=['383020dxsAEn','466TFNrpx','205412nwxIfZ','950220KmlFaz','1078119ewEqPZ','20fInDgO','716991xfMPzP','43owdeoC','18473jxpzGV','328sXuXld'];a97_0x79b1=function(){return _0x39afe6;};return a97_0x79b1();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.2.2
|
|
2
|
-
export declare const GIT_TAG = "v2.2.2
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.2.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.2.2";
|
|
3
|
+
export declare const GIT_COMMIT = "569d5fa";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-13T07:14:35.488Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98_0x5b62(){const _0xf0625d=['507674UQvOXY','3245860WePWFP','2.2.2','865PNNqat','88IWazIZ','167301OcjyZZ','939OFioKf','167141UWWvof','244fYdpSw','2026-08-13T07:14:35.488Z','569d5fa','6054nucUKW','v2.2.2','148673cXeeAh'];a98_0x5b62=function(){return _0xf0625d;};return a98_0x5b62();}function a98_0x513a(_0x372244,_0x2ea94c){_0x372244=_0x372244-0x1c4;const _0x5b622f=a98_0x5b62();let _0x513acf=_0x5b622f[_0x372244];return _0x513acf;}const a98_0x5a2c86=a98_0x513a;(function(_0x46c273,_0xd32b54){const _0x253630=a98_0x513a,_0x22902b=_0x46c273();while(!![]){try{const _0x2da6b8=parseInt(_0x253630(0x1c4))/0x1+-parseInt(_0x253630(0x1cb))/0x2+parseInt(_0x253630(0x1d1))/0x3*(-parseInt(_0x253630(0x1c5))/0x4)+-parseInt(_0x253630(0x1ce))/0x5*(-parseInt(_0x253630(0x1c8))/0x6)+-parseInt(_0x253630(0x1ca))/0x7+parseInt(_0x253630(0x1cf))/0x8*(-parseInt(_0x253630(0x1d0))/0x9)+parseInt(_0x253630(0x1cc))/0xa;if(_0x2da6b8===_0xd32b54)break;else _0x22902b['push'](_0x22902b['shift']());}catch(_0x33a89f){_0x22902b['push'](_0x22902b['shift']());}}}(a98_0x5b62,0x28ed4));export const VERSION=a98_0x5a2c86(0x1cd);export const GIT_TAG=a98_0x5a2c86(0x1c9);export const GIT_COMMIT=a98_0x5a2c86(0x1c7);export const BUILD_TIME=a98_0x5a2c86(0x1c6);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3566df,_0x131315){const _0x2c703f=a99_0xc31f,_0x272bdf=_0x3566df();while(!![]){try{const _0x5f2f59=-parseInt(_0x2c703f(0x8d))/0x1*(parseInt(_0x2c703f(0x8b))/0x2)+-parseInt(_0x2c703f(0x8e))/0x3*(parseInt(_0x2c703f(0x90))/0x4)+parseInt(_0x2c703f(0x87))/0x5+-parseInt(_0x2c703f(0x85))/0x6+parseInt(_0x2c703f(0x84))/0x7*(parseInt(_0x2c703f(0x91))/0x8)+-parseInt(_0x2c703f(0x8a))/0x9*(parseInt(_0x2c703f(0x8f))/0xa)+parseInt(_0x2c703f(0x92))/0xb*(parseInt(_0x2c703f(0x89))/0xc);if(_0x5f2f59===_0x131315)break;else _0x272bdf['push'](_0x272bdf['shift']());}catch(_0x59c1b8){_0x272bdf['push'](_0x272bdf['shift']());}}}(a99_0x5a98,0x6e0da));import{jsx as a99_0x1944d4,jsxs as a99_0x322513}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a99_0x5a98(){const _0x11a62c=['86LdeAUk','80178sHiOdA','10PAKENI','52RJhEzg','13352KZZikG','5654cPJUzv','2492ozxsmX','5048886RQGbYB','green','1044360ReVULt','\x20to\x20view\x20available\x20commands.','29976nYAhoh','1816029lCrXCu','5710snrJiW','column'];a99_0x5a98=function(){return _0x11a62c;};return a99_0x5a98();}function a99_0xc31f(_0x554354,_0x4f37a5){_0x554354=_0x554354-0x84;const _0x5a9866=a99_0x5a98();let _0xc31f84=_0x5a9866[_0x554354];return _0xc31f84;}export function Help(){const _0x59b5a9=a99_0xc31f,{exit:_0xe54708}=useApp();return useEffect(()=>{_0xe54708();},[_0xe54708]),a99_0x322513(Box,{'flexDirection':_0x59b5a9(0x8c),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0x1944d4(Box,{'children':a99_0x1944d4(Text,{'bold':!![],'color':_0x59b5a9(0x86),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x322513(Box,{'marginTop':0x1,'children':[a99_0x1944d4(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a99_0x1944d4(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a99_0x1944d4(Text,{'dimColor':!![],'children':_0x59b5a9(0x88)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36bcbc,_0x98d332){const _0x3fe4c0=a100_0x1466,_0xa3b0df=_0x36bcbc();while(!![]){try{const _0xc78c2c=-parseInt(_0x3fe4c0(0x167))/0x1*(-parseInt(_0x3fe4c0(0x161))/0x2)+parseInt(_0x3fe4c0(0x169))/0x3*(-parseInt(_0x3fe4c0(0x16d))/0x4)+-parseInt(_0x3fe4c0(0x170))/0x5*(parseInt(_0x3fe4c0(0x162))/0x6)+-parseInt(_0x3fe4c0(0x166))/0x7+-parseInt(_0x3fe4c0(0x16b))/0x8+-parseInt(_0x3fe4c0(0x15e))/0x9*(-parseInt(_0x3fe4c0(0x171))/0xa)+-parseInt(_0x3fe4c0(0x165))/0xb*(-parseInt(_0x3fe4c0(0x172))/0xc);if(_0xc78c2c===_0x98d332)break;else _0xa3b0df['push'](_0xa3b0df['shift']());}catch(_0x4aaedf){_0xa3b0df['push'](_0xa3b0df['shift']());}}}(a100_0x34db,0x6869a));function a100_0x1466(_0x57c881,_0x2b2519){_0x57c881=_0x57c881-0x15c;const _0x34dbb3=a100_0x34db();let _0x14666e=_0x34dbb3[_0x57c881];return _0x14666e;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x586af3={}){const _0x6ae587=a100_0x1466,_0x177264=installBuiltinSkill(_0x586af3);if(_0x177264['ok']){const _0x3a700b=_0x177264[_0x6ae587(0x173)]?_0x6ae587(0x15d):_0x6ae587(0x16c),_0x27f3eb=_0x177264[_0x6ae587(0x16a)]?_0x6ae587(0x15f)+_0x177264[_0x6ae587(0x16a)]:'\x20via\x20skills@latest';return console[_0x6ae587(0x174)](_0x6ae587(0x168)+_0x177264['skillVersion']+'\x20'+_0x3a700b+_0x27f3eb),_0x177264;}const _0x341ada='[BUILTIN_SKILL_INSTALL_'+(_0x177264['code']??'FAILED')+']\x20'+(_0x177264[_0x6ae587(0x160)]??_0x6ae587(0x15c))+'.\x20'+('Repair\x20with:\x20'+_0x177264[_0x6ae587(0x163)]);if(_0x177264[_0x6ae587(0x16f)]===_0x6ae587(0x16e))throw new Error(_0x341ada);return console[_0x6ae587(0x164)](_0x341ada),_0x177264;}function a100_0x34db(){const _0x4fea22=['110mGlSvo','30OtckEk','12dkAfRV','changed','log','Installation\x20failed','installed','2270907wFEvVd','\x20at\x20','error','172XRzkRL','148782FHBHOo','repairCommand','warn','13158794mBlqEm','5076666OTzSVH','8839icweSf','Lovrabet\x20Built-in\x20Skill\x20','1260366KuMGnz','installedPath','1397496UYFVMU','already\x20current','8kFAMnP','SOURCE_INVALID','code'];a100_0x34db=function(){return _0x4fea22;};return a100_0x34db();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eeb5b,_0x370e09){const _0x181cc4=a101_0x1321,_0x43e3c0=_0x1eeb5b();while(!![]){try{const _0x3a869c=parseInt(_0x181cc4(0x1a7))/0x1+parseInt(_0x181cc4(0x1ad))/0x2*(parseInt(_0x181cc4(0x1ae))/0x3)+-parseInt(_0x181cc4(0x1b2))/0x4*(parseInt(_0x181cc4(0x1a2))/0x5)+parseInt(_0x181cc4(0x1a3))/0x6+-parseInt(_0x181cc4(0x1b1))/0x7*(-parseInt(_0x181cc4(0x1a4))/0x8)+parseInt(_0x181cc4(0x1af))/0x9+parseInt(_0x181cc4(0x1a5))/0xa*(-parseInt(_0x181cc4(0x1b0))/0xb);if(_0x3a869c===_0x370e09)break;else _0x43e3c0['push'](_0x43e3c0['shift']());}catch(_0x1e445f){_0x43e3c0['push'](_0x43e3c0['shift']());}}}(a101_0x18fb,0x6b0eb));function a101_0x1321(_0x58ed7b,_0x10e58e){_0x58ed7b=_0x58ed7b-0x1a1;const _0x18fbb6=a101_0x18fb();let _0x132198=_0x18fbb6[_0x58ed7b];return _0x132198;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x560dfe,_0x2b4a12,_0x2b5073){const _0x118a0c=a101_0x1321,_0x35c564=normalizeText(_0x560dfe[_0x118a0c(0x1aa)],DESCRIPTION_MAX_LENGTH),_0x3807c5=normalizeText(_0x560dfe['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x2b4a12,'risk':requireWriteRisk(_0x560dfe),'description':_0x35c564||_0x3807c5||_0x118a0c(0x1a9),..._0x2b5073?{'signal':_0x2b5073}:{}};}function requireWriteRisk(_0x2ea11c){const _0x7fce75=a101_0x1321;if(_0x2ea11c[_0x7fce75(0x1a1)]===_0x7fce75(0x1b3)||_0x2ea11c[_0x7fce75(0x1a1)]===_0x7fce75(0x1ab))return _0x2ea11c[_0x7fce75(0x1a1)];throw new Error(_0x7fce75(0x1a8));}function normalizeText(_0x1dae95,_0x4bbb13){const _0x11b08e=a101_0x1321;if(typeof _0x1dae95!==_0x11b08e(0x1b5))return'';return _0x1dae95['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x11b08e(0x1a6)](/\s+/g,'\x20')[_0x11b08e(0x1ac)]()[_0x11b08e(0x1b4)](0x0,_0x4bbb13);}function a101_0x18fb(){const _0x2f6d09=['7ObSJbx','4nZGqIq','write','slice','string','risk','1555970qUtnEr','980676ZYwpEp','5262568DloPWW','3200nFhUDZ','replace','325003vjnHCO','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','执行该写入操作','confirmationDescription','high-risk-write','trim','230726nczGcm','21dnjTlv','6059970rbuEyp','64537GKfVIS'];a101_0x18fb=function(){return _0x2f6d09;};return a101_0x18fb();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a102_0x12a9(){const _0xf723ee=['330315XKhAWw','service','7413834hCAGLY','risk','242366vPIkae','26012vrCWfu','254223BehNXn','split','547412kSxKDe','984WcaEvW','34980814ObhIag','filter','join','command','2GwHeLi','33pObdar','high-risk-write','lovrabet.write.completed','write','460OgZzhB'];a102_0x12a9=function(){return _0xf723ee;};return a102_0x12a9();}function a102_0x3406(_0xbe602e,_0x5c843d){_0xbe602e=_0xbe602e-0xf2;const _0x12a922=a102_0x12a9();let _0x340646=_0x12a922[_0xbe602e];return _0x340646;}(function(_0x3c2bca,_0x33c5f2){const _0x458c5a=a102_0x3406,_0x3e6dbc=_0x3c2bca();while(!![]){try{const _0x2d4c18=parseInt(_0x458c5a(0x103))/0x1*(-parseInt(_0x458c5a(0xf9))/0x2)+-parseInt(_0x458c5a(0xfa))/0x3*(parseInt(_0x458c5a(0xf3))/0x4)+parseInt(_0x458c5a(0xff))/0x5+parseInt(_0x458c5a(0x101))/0x6+-parseInt(_0x458c5a(0x104))/0x7*(parseInt(_0x458c5a(0xf4))/0x8)+-parseInt(_0x458c5a(0x105))/0x9*(parseInt(_0x458c5a(0xfe))/0xa)+parseInt(_0x458c5a(0xf5))/0xb;if(_0x2d4c18===_0x33c5f2)break;else _0x3e6dbc['push'](_0x3e6dbc['shift']());}catch(_0x13bece){_0x3e6dbc['push'](_0x3e6dbc['shift']());}}}(a102_0x12a9,0xeeabd));export function canonicalLovrabetOperation(_0x50c86b){const _0x2f9443=a102_0x3406;return[_0x50c86b[_0x2f9443(0x100)],..._0x50c86b[_0x2f9443(0xf8)]['trim']()[_0x2f9443(0xf2)](/\s+/)][_0x2f9443(0xf6)](Boolean)[_0x2f9443(0xf7)]('.');}export function createLovrabetWriteMetadata(_0xbc8b3f,_0x4210e7,_0x3d9b8d,_0xc52d13){const _0x383d98=a102_0x3406;if(_0xc52d13||_0x3d9b8d['ok']!==!![]||_0xbc8b3f['risk']!==_0x383d98(0xfd)&&_0xbc8b3f[_0x383d98(0x102)]!==_0x383d98(0xfb))return undefined;const _0x1e7eb3=_0xbc8b3f['writeEventSubject']?.(_0x3d9b8d),_0x36ce0e={'type':_0x383d98(0xfc),'operation':_0x4210e7,'risk':_0xbc8b3f[_0x383d98(0x102)],..._0x1e7eb3?{'subject':_0x1e7eb3}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x36ce0e}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a103_0x3541(){const _0x352ce7=['isNonInteractive','1474reLJsL','confirm','1201298AOIvnO','signal','definition','524tFoKFW','args','14675zXsavo','28nsGtFU','reason','1021272xgEcAV','data','905112LNYiyw','result','rawFlags','message','113990IYBfbG','dryRun','high-risk-write','1557204cdsHRR','risk','157528QtWOnw','format','present','confirmation','execute','AbortError','command','dry-run','yes','153QnWNCo','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.'];a103_0x3541=function(){return _0x352ce7;};return a103_0x3541();}(function(_0x50e510,_0x256d2c){const _0x3823c3=a103_0x1bfb,_0x5cfd2a=_0x50e510();while(!![]){try{const _0x7abfa3=parseInt(_0x3823c3(0xd7))/0x1+-parseInt(_0x3823c3(0xcd))/0x2+-parseInt(_0x3823c3(0xde))/0x3+parseInt(_0x3823c3(0xd0))/0x4*(-parseInt(_0x3823c3(0xd2))/0x5)+parseInt(_0x3823c3(0xd5))/0x6*(-parseInt(_0x3823c3(0xd3))/0x7)+parseInt(_0x3823c3(0xe0))/0x8*(parseInt(_0x3823c3(0xe9))/0x9)+-parseInt(_0x3823c3(0xdb))/0xa*(-parseInt(_0x3823c3(0xcb))/0xb);if(_0x7abfa3===_0x256d2c)break;else _0x5cfd2a['push'](_0x5cfd2a['shift']());}catch(_0x11ab68){_0x5cfd2a['push'](_0x5cfd2a['shift']());}}}(a103_0x3541,0x8e283));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a103_0x1bfb(_0x307859,_0xb9b92){_0x307859=_0x307859-0xc8;const _0x3541a2=a103_0x3541();let _0x1bfbfb=_0x3541a2[_0x307859];return _0x1bfbfb;}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5188f3,command:_0x54a2b8,risk:_0x5c5765,dryRun:_0x8c3692}){const _0x41e884=a103_0x1bfb;return JSON['stringify']({'ok':_0x5188f3['ok'],'command':_0x54a2b8,'risk':_0x5c5765,..._0x8c3692?{'dryRun':!![]}:{},..._0x5188f3[_0x41e884(0xd6)]!==undefined?{'data':_0x5188f3[_0x41e884(0xd6)]}:{},..._0x5188f3[_0x41e884(0xda)]?{'message':_0x5188f3[_0x41e884(0xda)]}:{}});}};export async function invokeLovrabet(_0x5e6eac,_0x2138ec){const _0x39885c=a103_0x1bfb;throwIfAborted(_0x2138ec[_0x39885c(0xce)]);const _0x59c620=await resolveLovrabetInvocation(_0x5e6eac),_0x253ea3=canonicalLovrabetOperation(_0x59c620[_0x39885c(0xcf)]);return await confirmWriteBeforeQueue(_0x59c620[_0x39885c(0xcf)],_0x59c620[_0x39885c(0xd9)],_0x253ea3,_0x2138ec),runSerialized(async()=>{const _0x97c67d=_0x39885c;throwIfAborted(_0x2138ec['signal']);const _0x444051={},_0x4715e2=buildConfigFromFlags(_0x59c620[_0x97c67d(0xd9)]);await initGlobalEnvironment(_0x4715e2);const _0x592684=createPipelineEnv(_0x4715e2,{..._0x59c620[_0x97c67d(0xd9)],'yes':_0x59c620[_0x97c67d(0xcf)]['risk']===_0x97c67d(0xdd)?!![]:_0x59c620[_0x97c67d(0xd9)][_0x97c67d(0xe8)],'nonInteractive':!![]});_0x592684[_0x97c67d(0xd1)]=_0x59c620[_0x97c67d(0xd1)],_0x592684[_0x97c67d(0xca)]=!![],_0x592684['riskLevel']=_0x97c67d(0xdd);const _0x568e06=withAbortSignal(_0x59c620[_0x97c67d(0xcf)],_0x2138ec['signal']),_0xe14a4=createLovrabetRunnerAdapter({'formatOutput'(_0x4dd9fd,_0x9653a6){const _0xc45908=_0x97c67d;_0x444051['result']=_0x4dd9fd,_0x444051[_0xc45908(0xe6)]=_0x9653a6['command'],_0x444051[_0xc45908(0xdf)]=_0x9653a6[_0xc45908(0xdf)],_0x444051[_0xc45908(0xe1)]=_0x9653a6['format'],_0x444051[_0xc45908(0xdc)]=_0x9653a6[_0xc45908(0xdc)]===!![];},async 'confirmHighRisk'(){const _0x1f1d34=_0x97c67d;throw new Error(_0x1f1d34(0xc8));}});try{await runCommand(_0x568e06,_0x592684,_0xe14a4);if(!_0x444051[_0x97c67d(0xd8)]||!_0x444051[_0x97c67d(0xe6)]||!_0x444051[_0x97c67d(0xdf)]||!_0x444051[_0x97c67d(0xe1)])throw new Error(_0x97c67d(0xc9));const _0x398677=_0x2138ec['presentation']??defaultPresentation,_0x4619dc=_0x444051[_0x97c67d(0xdc)]===!![],_0x386656={'result':_0x444051[_0x97c67d(0xd8)],'command':_0x444051[_0x97c67d(0xe6)],'operation':_0x253ea3,'risk':_0x444051[_0x97c67d(0xdf)],'format':_0x444051[_0x97c67d(0xe1)],'dryRun':_0x4619dc},_0x539d26=createLovrabetWriteMetadata(_0x59c620[_0x97c67d(0xcf)],_0x253ea3,_0x444051[_0x97c67d(0xd8)],_0x4619dc);let _0x31bf32;try{_0x31bf32=await _0x398677[_0x97c67d(0xe2)](_0x386656);}catch(_0x24398d){if(!_0x539d26||_0x398677===defaultPresentation)throw _0x24398d;_0x31bf32=await defaultPresentation[_0x97c67d(0xe2)](_0x386656);}return{'operation':_0x253ea3,'risk':_0x444051[_0x97c67d(0xdf)],'mode':_0x4619dc?_0x97c67d(0xe7):_0x97c67d(0xe4),'result':_0x444051['result'],'output':_0x31bf32,..._0x539d26?{'metadata':_0x539d26}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2717ec,_0x1a5833,_0x34850e,_0x4112dc){const _0x16b099=a103_0x1bfb;if(_0x1a5833[_0x16b099(0xdc)]===!![]||_0x2717ec[_0x16b099(0xdf)]!=='write'&&_0x2717ec[_0x16b099(0xdf)]!==_0x16b099(0xdd))return;await _0x4112dc[_0x16b099(0xe3)][_0x16b099(0xcc)](buildLovrabetConfirmationRequest(_0x2717ec,_0x34850e,_0x4112dc[_0x16b099(0xce)]));}function withAbortSignal(_0x1890a7,_0x41a56e){return{..._0x1890a7,async 'execute'(_0x831f36){return throwIfAborted(_0x41a56e),_0x1890a7['execute'](_0x831f36);}};}function throwIfAborted(_0x35e49e){const _0x354219=a103_0x1bfb;if(_0x35e49e?.['aborted'])throw _0x35e49e[_0x354219(0xd4)]instanceof Error?_0x35e49e[_0x354219(0xd4)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x354219(0xe5));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a104_0x4edf79=a104_0x551c;function a104_0x55bb(){const _0x253b4e=['34173JXEfAA','2sJZGFe','resolve','2760XdhnqR','3089811QxWviQ','1716465HmyDak','2046440Wdkhhx','1010431dRTkzy','5687339CVTPFx','1832136XAgVAC'];a104_0x55bb=function(){return _0x253b4e;};return a104_0x55bb();}(function(_0x25082b,_0x3d214f){const _0x17116f=a104_0x551c,_0x3d3103=_0x25082b();while(!![]){try{const _0x899526=-parseInt(_0x17116f(0x1ea))/0x1*(parseInt(_0x17116f(0x1ee))/0x2)+parseInt(_0x17116f(0x1e7))/0x3+-parseInt(_0x17116f(0x1e9))/0x4+parseInt(_0x17116f(0x1e8))/0x5+parseInt(_0x17116f(0x1ec))/0x6+-parseInt(_0x17116f(0x1eb))/0x7+-parseInt(_0x17116f(0x1f0))/0x8*(-parseInt(_0x17116f(0x1ed))/0x9);if(_0x899526===_0x3d214f)break;else _0x3d3103['push'](_0x3d3103['shift']());}catch(_0xc4645e){_0x3d3103['push'](_0x3d3103['shift']());}}}(a104_0x55bb,0x9fad1));function a104_0x551c(_0x46e1f9,_0x267424){_0x46e1f9=_0x46e1f9-0x1e7;const _0x55bbba=a104_0x55bb();let _0x551c4=_0x55bbba[_0x46e1f9];return _0x551c4;}let tail=Promise[a104_0x4edf79(0x1ef)]();export async function runSerialized(_0x644077){const _0x75b187=tail;let _0x2713b7;tail=new Promise(_0x489e75=>{_0x2713b7=_0x489e75;}),await _0x75b187['catch'](()=>undefined);try{return await _0x644077();}finally{_0x2713b7();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x295ff6,_0x2247f8){const _0x4c4230=a105_0xd284,_0x47d653=_0x295ff6();while(!![]){try{const _0x5e9f1c=parseInt(_0x4c4230(0xe3))/0x1*(parseInt(_0x4c4230(0xf2))/0x2)+-parseInt(_0x4c4230(0xea))/0x3*(parseInt(_0x4c4230(0xf4))/0x4)+parseInt(_0x4c4230(0xe6))/0x5*(-parseInt(_0x4c4230(0xde))/0x6)+parseInt(_0x4c4230(0xe4))/0x7+parseInt(_0x4c4230(0xee))/0x8+parseInt(_0x4c4230(0xeb))/0x9+-parseInt(_0x4c4230(0xe0))/0xa*(parseInt(_0x4c4230(0xef))/0xb);if(_0x5e9f1c===_0x2247f8)break;else _0x47d653['push'](_0x47d653['shift']());}catch(_0x274928){_0x47d653['push'](_0x47d653['shift']());}}}(a105_0x3cc5,0xa9890));function a105_0x3cc5(){const _0x3b84fd=['flags','266092mhUvGG','definition','8fkNhxg','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','422238zIWFWE','input','1934510WVQnKf','slice','assign','1UhVUuI','9523990PFqPkc','defaultCommand','5TGNPAT','../framework/preparse.js','unknownCommand','validation','2047821NYjdAQ','11417643TScsje','join','message','8870552fVKjBZ','99GoDjNP','args'];a105_0x3cc5=function(){return _0x3b84fd;};return a105_0x3cc5();}import a105_0x18fc1a from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a105_0xd284(_0x1a1734,_0xda7c4c){_0x1a1734=_0x1a1734-0xdd;const _0x3cc56f=a105_0x3cc5();let _0xd28404=_0x3cc56f[_0x1a1734];return _0xd28404;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x511efc){const _0x151bd5=a105_0xd284,_0x161a1e=a105_0x18fc1a('',{'importMeta':import.meta,'argv':_0x511efc,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x464dd8=[..._0x161a1e[_0x151bd5(0xdf)]],_0xc2ce70=_0x161a1e[_0x151bd5(0xf1)];await correctFlags(_0xc2ce70);const _0x2bba69=_0x464dd8[0x0];if(!_0x2bba69)throw CliErrors[_0x151bd5(0xe9)](_0x151bd5(0xdd));const _0x4c30e7=resolveRemovedCommand(_0x2bba69,_0x464dd8[0x1]);if(_0x4c30e7)throw CliErrors[_0x151bd5(0xe9)](_0x4c30e7[_0x151bd5(0xed)],_0x4c30e7['hint']);if(!isKnownService(_0x2bba69)){const _0x1af80c=resolveDynamicServiceCommand(_0x464dd8,_0xc2ce70);if(!_0x1af80c)throw CliErrors[_0x151bd5(0xe8)](_0x464dd8[_0x151bd5(0xec)]('\x20'));return Object[_0x151bd5(0xe2)](_0xc2ce70,_0x1af80c['flags']),{'definition':_0x1af80c[_0x151bd5(0xf3)],'rawFlags':_0xc2ce70,'args':_0x1af80c[_0x151bd5(0xf0)]};}const _0x194f45=getServiceEntry(_0x2bba69),_0x179c3e=_0x464dd8[0x1]||_0x194f45[_0x151bd5(0xe5)];if(!_0x179c3e)throw CliErrors[_0x151bd5(0xe9)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x2bba69+'\x22.');const _0x1704b0=findDefinition(_0x2bba69,_0x179c3e);if(!_0x1704b0)throw CliErrors[_0x151bd5(0xe8)](_0x2bba69+'\x20'+_0x179c3e);return{'definition':_0x1704b0,'rawFlags':_0xc2ce70,'args':_0x464dd8[_0x151bd5(0xe1)](0x2)};}async function correctFlags(_0x2d9b95){const _0x25ba16=a105_0xd284;try{const {correctFlags:_0x2cda95}=await import(_0x25ba16(0xe7)),{getAllDefinitions:_0x17c06c}=await import('../commands/registry.js'),_0x324ad1=_0x17c06c()['flatMap'](_0x18acc2=>_0x18acc2[_0x25ba16(0xf1)]??[]),_0x249670=_0x2cda95(_0x2d9b95,_0x324ad1);Object[_0x25ba16(0xe2)](_0x2d9b95,_0x249670[_0x25ba16(0xf1)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x485914=a107_0x301a;(function(_0x2f0b52,_0x1dcd9d){const _0x2841b7=a107_0x301a,_0x75ff48=_0x2f0b52();while(!![]){try{const _0x529844=-parseInt(_0x2841b7(0x1a0))/0x1+parseInt(_0x2841b7(0x18d))/0x2*(-parseInt(_0x2841b7(0x1b8))/0x3)+-parseInt(_0x2841b7(0x187))/0x4+-parseInt(_0x2841b7(0x197))/0x5+parseInt(_0x2841b7(0x194))/0x6*(parseInt(_0x2841b7(0x1aa))/0x7)+parseInt(_0x2841b7(0x1a8))/0x8*(parseInt(_0x2841b7(0x19b))/0x9)+parseInt(_0x2841b7(0x1ae))/0xa;if(_0x529844===_0x1dcd9d)break;else _0x75ff48['push'](_0x75ff48['shift']());}catch(_0x22edaf){_0x75ff48['push'](_0x75ff48['shift']());}}}(a107_0x3648,0x4c8be));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';function a107_0x301a(_0x33619d,_0x1c4e1b){_0x33619d=_0x33619d-0x187;const _0x3648b5=a107_0x3648();let _0x301a28=_0x3648b5[_0x33619d];return _0x301a28;}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=a107_0x485914(0x1af);function frontmatterValue(_0x44ab39,_0x4148d6){const _0xbf114=a107_0x485914;return _0x44ab39[_0xbf114(0x191)](new RegExp('^'+_0x4148d6+_0xbf114(0x1bd),'m'))?.[0x1]?.[_0xbf114(0x18f)]()??'';}function listFiles(_0x4546fe,_0x4509d3=_0x4546fe){return readdirSync(_0x4509d3,{'withFileTypes':!![]})['flatMap'](_0x1ed1d3=>{const _0x4ef10f=a107_0x301a,_0x5a3ad2=join(_0x4509d3,_0x1ed1d3['name']),_0x30f2c6=lstatSync(_0x5a3ad2);if(_0x30f2c6['isSymbolicLink']())throw new Error(_0x4ef10f(0x18b)+_0x5a3ad2);if(_0x30f2c6[_0x4ef10f(0x1c2)]())return listFiles(_0x4546fe,_0x5a3ad2);if(!_0x30f2c6[_0x4ef10f(0x196)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x5a3ad2);return[relative(_0x4546fe,_0x5a3ad2)[_0x4ef10f(0x18c)](sep)[_0x4ef10f(0x1a7)]('/')];})['sort']((_0x32d629,_0x5b82a5)=>_0x32d629<_0x5b82a5?-0x1:_0x32d629>_0x5b82a5?0x1:0x0);}function digestFiles(_0x45da52,_0x1bb8bb){const _0x20e656=a107_0x485914,_0x28ce02=createHash('sha256');for(const _0x6c33bb of _0x1bb8bb){if(_0x6c33bb['startsWith']('/')||_0x6c33bb[_0x20e656(0x18c)]('/')['includes']('..')||_0x6c33bb[_0x20e656(0x19a)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x6c33bb);_0x28ce02['update'](_0x6c33bb),_0x28ce02[_0x20e656(0x1b6)]('\x00'),_0x28ce02[_0x20e656(0x1b6)](readFileSync(join(_0x45da52,..._0x6c33bb[_0x20e656(0x18c)]('/')))),_0x28ce02['update']('\x00');}return _0x28ce02[_0x20e656(0x18a)](_0x20e656(0x1b1));}function sameFiles(_0x499efe,_0x197e10){const _0x2e81be=a107_0x485914;return _0x499efe[_0x2e81be(0x1a1)]===_0x197e10['length']&&_0x499efe[_0x2e81be(0x19f)]((_0x364cf6,_0x12cca9)=>_0x364cf6===_0x197e10[_0x12cca9]);}function readSource(_0x2f02d6){const _0x3d9c83=a107_0x485914,_0x38bb93=JSON[_0x3d9c83(0x190)](readFileSync(join(_0x2f02d6,_0x3d9c83(0x1a9)),_0x3d9c83(0x1c4))),_0x2a23e5=JSON[_0x3d9c83(0x190)](readFileSync(join(_0x2f02d6,_0x3d9c83(0x1ad),_0x3d9c83(0x1bc)),'utf8')),_0x48d06a=join(_0x2f02d6,_0x3d9c83(0x1ad),SKILL_NAME),_0x24e7b7=frontmatterValue(readFileSync(join(_0x48d06a,_0x3d9c83(0x189)),'utf8'),_0x3d9c83(0x19e)),_0x37872a=listFiles(_0x48d06a);if(_0x2a23e5[_0x3d9c83(0x1a6)]!==0x1||_0x2a23e5['name']!==SKILL_NAME||!_0x38bb93[_0x3d9c83(0x19e)]||_0x2a23e5[_0x3d9c83(0x195)]!==_0x38bb93[_0x3d9c83(0x19e)]||_0x2a23e5[_0x3d9c83(0x19d)]!==_0x38bb93[_0x3d9c83(0x19e)]||_0x24e7b7!==_0x38bb93[_0x3d9c83(0x19e)]||!sameFiles(_0x37872a,_0x2a23e5[_0x3d9c83(0x193)])||digestFiles(_0x48d06a,_0x37872a)!==_0x2a23e5[_0x3d9c83(0x18a)])throw new Error(_0x3d9c83(0x188));return{'packageVersion':_0x38bb93[_0x3d9c83(0x19e)],'skillVersion':_0x24e7b7,'root':_0x48d06a,'manifest':_0x2a23e5};}function installedSkillPath(_0x15b698){const _0x5db8c4=a107_0x485914,_0x4f0bf1=resolveInstalledSkill(SKILL_NAME,{'home':_0x15b698});if(_0x4f0bf1[_0x5db8c4(0x1c0)]===_0x5db8c4(0x1a5))return{'state':_0x5db8c4(0x1a5),'path':dirname(_0x4f0bf1['path'])};if(_0x4f0bf1[_0x5db8c4(0x1c0)]===_0x5db8c4(0x1a4))return{'state':_0x5db8c4(0x1b0)};return{'state':_0x5db8c4(0x1b3),'reason':_0x4f0bf1['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x44823d,_0x4149f3={}){const _0x538b74=a107_0x485914,_0x3ef6b3=installedSkillPath(_0x4149f3[_0x538b74(0x1b4)]??homedir());if(_0x3ef6b3[_0x538b74(0x1c0)]===_0x538b74(0x1b0))return{'state':'missing','expectedVersion':_0x44823d,'repairCommand':REPAIR_COMMAND};if(_0x3ef6b3[_0x538b74(0x1c0)]===_0x538b74(0x1b3))return{'state':_0x538b74(0x1b3),'expectedVersion':_0x44823d,'reason':_0x3ef6b3[_0x538b74(0x1ba)],'repairCommand':REPAIR_COMMAND};try{const _0x53bb08=frontmatterValue(readFileSync(join(_0x3ef6b3['path'],_0x538b74(0x189)),_0x538b74(0x1c4)),_0x538b74(0x19e));return{'state':_0x53bb08===_0x44823d?_0x538b74(0x192):_0x538b74(0x1a2),'expectedVersion':_0x44823d,'skillVersion':_0x53bb08,'installedPath':_0x3ef6b3[_0x538b74(0x198)],'repairCommand':REPAIR_COMMAND};}catch(_0x18ee8f){return{'state':_0x538b74(0x1b3),'expectedVersion':_0x44823d,'installedPath':_0x3ef6b3[_0x538b74(0x198)],'reason':_0x18ee8f instanceof Error?_0x18ee8f[_0x538b74(0x199)]:String(_0x18ee8f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x38cb54={}){const _0x2bf50e=a107_0x485914,_0x46a29d=_0x38cb54[_0x2bf50e(0x1b2)]??DEFAULT_PACKAGE_ROOT;let _0x9fc622;try{_0x9fc622=readSource(_0x46a29d);}catch(_0x2981ef){return{'state':_0x2bf50e(0x1b3),'packageVersion':_0x2bf50e(0x1bb),'reason':_0x2981ef instanceof Error?_0x2981ef[_0x2bf50e(0x199)]:String(_0x2981ef),'repairCommand':REPAIR_COMMAND};}const _0x3e3868=installedSkillPath(_0x38cb54[_0x2bf50e(0x1b4)]??homedir());if(_0x3e3868[_0x2bf50e(0x1c0)]===_0x2bf50e(0x1b0))return{'state':_0x2bf50e(0x1b0),'packageVersion':_0x9fc622[_0x2bf50e(0x195)],'repairCommand':REPAIR_COMMAND};if(_0x3e3868[_0x2bf50e(0x1c0)]==='unverifiable')return{'state':_0x2bf50e(0x1b3),'packageVersion':_0x9fc622['packageVersion'],'reason':_0x3e3868[_0x2bf50e(0x1ba)],'repairCommand':REPAIR_COMMAND};try{const _0xabeefc=frontmatterValue(readFileSync(join(_0x3e3868[_0x2bf50e(0x198)],_0x2bf50e(0x189)),'utf8'),'version');if(_0xabeefc!==_0x9fc622[_0x2bf50e(0x19d)])return{'state':_0x2bf50e(0x1a2),'packageVersion':_0x9fc622[_0x2bf50e(0x195)],'skillVersion':_0xabeefc,'installedPath':_0x3e3868['path'],'repairCommand':REPAIR_COMMAND};const _0x4cd610=listFiles(_0x3e3868[_0x2bf50e(0x198)]),_0x422a13=digestFiles(_0x3e3868[_0x2bf50e(0x198)],_0x4cd610);return{'state':sameFiles(_0x4cd610,_0x9fc622['manifest']['files'])&&_0x422a13===_0x9fc622[_0x2bf50e(0x1a3)][_0x2bf50e(0x18a)]?'current':_0x2bf50e(0x1be),'packageVersion':_0x9fc622[_0x2bf50e(0x195)],'skillVersion':_0xabeefc,'installedPath':_0x3e3868[_0x2bf50e(0x198)],'digest':_0x422a13,'repairCommand':REPAIR_COMMAND};}catch(_0x470efd){return{'state':'unverifiable','packageVersion':_0x9fc622[_0x2bf50e(0x195)],'installedPath':_0x3e3868[_0x2bf50e(0x198)],'reason':_0x470efd instanceof Error?_0x470efd[_0x2bf50e(0x199)]:String(_0x470efd),'repairCommand':REPAIR_COMMAND};}}function failure(_0x50e76d,_0x2c418f,_0x528b64,_0x3ed651){const _0x4f0bc9=a107_0x485914;return{'ok':![],'code':_0x50e76d,'packageVersion':_0x2c418f[_0x4f0bc9(0x195)],'skillVersion':_0x2c418f[_0x4f0bc9(0x19d)],'installedPath':_0x3ed651,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x528b64 instanceof Error?_0x528b64[_0x4f0bc9(0x199)]:String(_0x528b64)};}function a107_0x3648(){const _0x8a5601=['isDirectory','skipped','utf8','1311444hBebJf','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','SKILL.md','digest','Symbolic\x20link\x20is\x20not\x20allowed:\x20','split','4226hWNeUl','installedPath','trim','parse','match','current','files','15462bAEpNj','packageVersion','isFile','227505tOFShv','path','message','includes','3609GIrYMl','pipe','skillVersion','version','every','318884RieSrb','length','version_mismatch','manifest','absent','present','schemaVersion','join','6432fiXhKg','package.json','560rSsPKi','root','status','skills','5701880nSWHEu','lovrabet','missing','hex','packageRoot','unverifiable','home','INSTALL_FAILED','update','Installed\x20Skill\x20state\x20is\x20','132qrECze','VERIFY_FAILED','reason','unknown','lovrabet.manifest.json',':\x5cs*(.+)$','content_mismatch','SOURCE_INVALID','state','error'];a107_0x3648=function(){return _0x8a5601;};return a107_0x3648();}export function installBuiltinSkill(_0x185047={}){const _0x3abca2=a107_0x485914,_0x26deb7=_0x185047['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x169025=_0x185047[_0x3abca2(0x1b4)]??homedir();let _0x256afa;try{_0x256afa=readSource(_0x26deb7);}catch(_0x7f19ec){return failure(_0x3abca2(0x1bf),{'packageVersion':_0x3abca2(0x1bb),'skillVersion':_0x3abca2(0x1bb)},_0x7f19ec);}const _0x3bbdd4=inspectBuiltinSkill({'packageRoot':_0x26deb7,'home':_0x169025}),_0x5da4de=runNpxSkillsAddGlobal(_0x26deb7,_0x256afa[_0x3abca2(0x1ab)],{'stdio':_0x185047['stdio']??_0x3abca2(0x19c),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x169025}});if(_0x5da4de[_0x3abca2(0x1c3)])return{'ok':!![],'packageVersion':_0x256afa[_0x3abca2(0x195)],'skillVersion':_0x256afa[_0x3abca2(0x19d)],'installedPath':_0x3bbdd4[_0x3abca2(0x18e)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x5da4de['ok'])return failure(_0x3abca2(0x1b5),_0x256afa,_0x5da4de[_0x3abca2(0x1c1)]??'skills@latest\x20exited\x20'+_0x5da4de[_0x3abca2(0x1ac)]);const _0xed76cb=inspectBuiltinSkill({'packageRoot':_0x26deb7,'home':_0x169025});if(_0xed76cb['state']!==_0x3abca2(0x192))return failure(_0x3abca2(0x1b9),_0x256afa,_0xed76cb[_0x3abca2(0x1ba)]??_0x3abca2(0x1b7)+_0xed76cb[_0x3abca2(0x1c0)],_0xed76cb[_0x3abca2(0x18e)]);return{'ok':!![],'packageVersion':_0x256afa[_0x3abca2(0x195)],'skillVersion':_0x256afa[_0x3abca2(0x19d)],'installedPath':_0xed76cb['installedPath'],'changed':_0x3bbdd4['state']!==_0x3abca2(0x192),'repairCommand':REPAIR_COMMAND};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108_0x4b55da=a108_0x4bba;(function(_0x1f7311,_0x24d9a5){const _0x1c423b=a108_0x4bba,_0x3fafbf=_0x1f7311();while(!![]){try{const _0x5a69e3=parseInt(_0x1c423b(0x84))/0x1+-parseInt(_0x1c423b(0x78))/0x2*(-parseInt(_0x1c423b(0x81))/0x3)+-parseInt(_0x1c423b(0x89))/0x4*(parseInt(_0x1c423b(0x9b))/0x5)+parseInt(_0x1c423b(0x86))/0x6+-parseInt(_0x1c423b(0x9a))/0x7*(-parseInt(_0x1c423b(0x94))/0x8)+-parseInt(_0x1c423b(0x82))/0x9*(parseInt(_0x1c423b(0x9f))/0xa)+parseInt(_0x1c423b(0x87))/0xb;if(_0x5a69e3===_0x24d9a5)break;else _0x3fafbf['push'](_0x3fafbf['shift']());}catch(_0x4293b3){_0x3fafbf['push'](_0x3fafbf['shift']());}}}(a108_0x19a4,0x780d0));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a108_0x4bba(_0xdca324,_0x38f739){_0xdca324=_0xdca324-0x6e;const _0x19a442=a108_0x19a4();let _0x4bba5c=_0x19a442[_0xdca324];return _0x4bba5c;}import{LOVRABET_SKILL_SOURCE as a108_0x1b855d}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a108_0x1b855d;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a108_0x4b55da(0x73)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG['globalSkillName'];export function resolveGlobalSkillName(_0x497447){const _0x11ab06=a108_0x4b55da;switch(_0x497447[_0x11ab06(0x9d)]()){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[a108_0x4b55da(0x79)]);function a108_0x19a4(){const _0x3a5e30=['absent','189DAyNeW','7870OPblWJ','CHILD_EXIT_NONZERO','trim','code','209660AzLIXA','signal','filter','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','ENOENT','PERMISSION_DENIED','npx\x20terminated\x20by\x20signal\x20','reason','internalSkillSource','join','checked','INSTALL_PARTIAL','warn','20234ifrpeW','skipNpxSkillsEnvSuffix','SKILL_NOT_INSTALLED','stdout','\x22\x20install\x20state:\x20','stderr','npm_config_global','!\x20Could\x20not\x20verify\x20\x22','state','6kRQnTM','378IHpiFt','expectedSkillName','321918NSZMyq','presence','2174346fecOis','4081902vDaDgH','skills@latest','1256SbHIBX','Installer\x20reported\x20','exit\x20','pipe','match','log','NPX_NOT_FOUND','\x20failed\x20target(s)','unknown','message','error','234344cIIeLk','stdio','toString','unverifiable','status'];a108_0x19a4=function(){return _0x3a5e30;};return a108_0x19a4();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x502069,_0x5ed556,_0x4037e5){return{'ok':![],'status':_0x5ed556,'code':_0x502069,'error':'['+_0x502069+']\x20'+_0x4037e5};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x119bba,_0x89e88e=LOVRABET_SKILL_SOURCE,_0xef1556){const _0x56a41f=a108_0x4b55da;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xac0068=resolveNpmBin('npx'),_0x55e481=['-y',_0x56a41f(0x88),'add',_0x89e88e,'-g','-y'],_0x4f1f62=[_0xac0068,..._0x55e481]['join']('\x20');console[_0x56a41f(0x8e)]('*\x20'+_0x4f1f62);const _0x13fcfe={...process.env};delete _0x13fcfe[_0x56a41f(0x7e)],delete _0x13fcfe['NPM_CONFIG_GLOBAL'];const _0x57466b=spawnSync(_0xac0068,_0x55e481,{'cwd':_0x119bba,'stdio':_0x56a41f(0x8c),'env':_0x13fcfe,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x2e330c=[_0x57466b[_0x56a41f(0x7b)]?_0x57466b[_0x56a41f(0x7b)]['toString']():'',_0x57466b[_0x56a41f(0x7d)]?_0x57466b[_0x56a41f(0x7d)][_0x56a41f(0x96)]():''][_0x56a41f(0xa1)](Boolean)[_0x56a41f(0x74)]('\x0a')[_0x56a41f(0x9d)]();_0xef1556?.[_0x56a41f(0x95)]!==_0x56a41f(0x8c)&&_0x2e330c&&console[_0x56a41f(0x8e)](_0x2e330c);if(_0x57466b[_0x56a41f(0x93)]){const _0x154634=_0x57466b['error'],_0x487fe8=_0x154634[_0x56a41f(0x9e)]===_0x56a41f(0x6f)?_0x56a41f(0x8f):_0x154634[_0x56a41f(0x9e)]==='EPERM'||_0x154634['code']==='EACCES'?_0x56a41f(0x70):'SPAWN_FAILED';return failure(_0x487fe8,_0x57466b['status'],_0x154634[_0x56a41f(0x92)]);}if(_0x57466b[_0x56a41f(0xa0)])return failure('CHILD_TERMINATED',_0x57466b[_0x56a41f(0x98)],_0x56a41f(0x71)+_0x57466b['signal']);if(_0x57466b[_0x56a41f(0x98)]!==0x0)return failure(_0x56a41f(0x9c),_0x57466b['status'],_0x2e330c||_0x56a41f(0x8b)+(_0x57466b['status']??_0x56a41f(0x91)));const _0x496a2e=_0x2e330c[_0x56a41f(0x8d)](/Failed to install\s+(\d+)/i);if(_0x496a2e&&Number(_0x496a2e[0x1])>0x0)return failure(_0x56a41f(0x76),0x0,_0x56a41f(0x8a)+_0x496a2e[0x1]+_0x56a41f(0x90)+(_0x2e330c?':\x0a'+_0x2e330c:''));const _0x41c8f0=_0xef1556?.[_0x56a41f(0x83)]??resolveGlobalSkillName(_0x89e88e);if(_0x41c8f0){const _0x2bc5f3=resolveInstalledSkill(_0x41c8f0,_0xef1556?.[_0x56a41f(0x85)]);if(_0x2bc5f3[_0x56a41f(0x80)]===_0x56a41f(0x99))return failure(_0x56a41f(0x7a),0x0,'Skill\x20\x22'+_0x41c8f0+_0x56a41f(0x6e)+_0x2bc5f3[_0x56a41f(0x75)][_0x56a41f(0x74)](',\x20')+')');_0x2bc5f3[_0x56a41f(0x80)]===_0x56a41f(0x97)&&console[_0x56a41f(0x77)](_0x56a41f(0x7f)+_0x41c8f0+_0x56a41f(0x7c)+_0x2bc5f3[_0x56a41f(0x72)]);}return{'ok':!![],'status':0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x3514bc=a109_0x4165;(function(_0x4db651,_0x2e5bb5){const _0x20435e=a109_0x4165,_0x41bc00=_0x4db651();while(!![]){try{const _0x10e557=parseInt(_0x20435e(0x132))/0x1*(parseInt(_0x20435e(0x12a))/0x2)+-parseInt(_0x20435e(0x137))/0x3*(-parseInt(_0x20435e(0x12e))/0x4)+parseInt(_0x20435e(0x12c))/0x5*(-parseInt(_0x20435e(0x133))/0x6)+-parseInt(_0x20435e(0x136))/0x7+-parseInt(_0x20435e(0x134))/0x8+parseInt(_0x20435e(0x130))/0x9*(-parseInt(_0x20435e(0x12b))/0xa)+-parseInt(_0x20435e(0x139))/0xb*(-parseInt(_0x20435e(0x138))/0xc);if(_0x10e557===_0x2e5bb5)break;else _0x41bc00['push'](_0x41bc00['shift']());}catch(_0x4c6c5c){_0x41bc00['push'](_0x41bc00['shift']());}}}(a109_0x31f0,0x63ef6));function a109_0x31f0(){const _0x9cceb9=['36RAGiwg','lovrabet.skill.json','265773gEofkt','972186ANNeaK','1845168nlEOfs','.svn','5412484WkMfKj','30MQQQaK','312zlooiT','555973sEVbnO','.cache','dist','.hg','.turbo','.git','2BTdfOm','461970IhsQRJ','5zxJeks','build','72048ZoFcdR','SKILL.md'];a109_0x31f0=function(){return _0x9cceb9;};return a109_0x31f0();}export const METADATA_FILE=a109_0x3514bc(0x131);function a109_0x4165(_0x19a5da,_0x17e5aa){_0x19a5da=_0x19a5da-0x12a;const _0x31f03e=a109_0x31f0();let _0x416531=_0x31f03e[_0x19a5da];return _0x416531;}export const SKILL_FILE=a109_0x3514bc(0x12f);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set([a109_0x3514bc(0x13e),a109_0x3514bc(0x13c),a109_0x3514bc(0x135),'node_modules','.next',a109_0x3514bc(0x13b),a109_0x3514bc(0x12d),'coverage',a109_0x3514bc(0x13d),a109_0x3514bc(0x13a)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x84cac4,_0x105d6a){const _0x10b705=a110_0x3aa9,_0x1fa92b=_0x84cac4();while(!![]){try{const _0x36c677=-parseInt(_0x10b705(0xf9))/0x1+-parseInt(_0x10b705(0x109))/0x2*(-parseInt(_0x10b705(0x103))/0x3)+parseInt(_0x10b705(0x102))/0x4*(-parseInt(_0x10b705(0x100))/0x5)+parseInt(_0x10b705(0x107))/0x6+parseInt(_0x10b705(0xf8))/0x7*(-parseInt(_0x10b705(0xfe))/0x8)+parseInt(_0x10b705(0x101))/0x9+-parseInt(_0x10b705(0xfd))/0xa*(parseInt(_0x10b705(0x108))/0xb);if(_0x36c677===_0x105d6a)break;else _0x1fa92b['push'](_0x1fa92b['shift']());}catch(_0x3af8ac){_0x1fa92b['push'](_0x1fa92b['shift']());}}}(a110_0x5d5f,0x26638));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a110_0x3aa9(_0x37c27c,_0x43217f){_0x37c27c=_0x37c27c-0xf8;const _0x5d5fc4=a110_0x5d5f();let _0x3aa9c7=_0x5d5fc4[_0x37c27c];return _0x3aa9c7;}import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x15db31,_0x131a9b){const _0x6d3971=a110_0x3aa9,_0x23a5be=normalizeSkillRelativePath(_0x131a9b),_0x41bb50=realOrResolved(_0x15db31),_0x4056e7=resolve(_0x41bb50,..._0x23a5be[_0x6d3971(0xff)]('/'));if(!isPathInside(_0x4056e7,_0x41bb50))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x131a9b);return ensureNoSymlinkInManagedPath(_0x41bb50,_0x23a5be),_0x4056e7;}export function ensureNoSymlinkInManagedPath(_0x478711,_0x3ef55f){const _0x27b06f=a110_0x3aa9;let _0x2a769a=_0x478711;for(const _0x4d9220 of _0x3ef55f[_0x27b06f(0xff)]('/')){_0x2a769a=resolve(_0x2a769a,_0x4d9220);const _0x557159=lstatIfPresent(_0x2a769a);if(_0x557159?.[_0x27b06f(0x10a)]())throw CliErrors[_0x27b06f(0x105)](_0x27b06f(0xfc)+_0x3ef55f);}}export function isDanglingSymlink(_0x3cffe0){const _0x8b3a45=a110_0x3aa9;try{return lstatSync(_0x3cffe0)[_0x8b3a45(0x10a)]();}catch{return![];}}export function resolveSymlinkTarget(_0x14378c){const _0x539efc=readlinkSync(_0x14378c);return isAbsolute(_0x539efc)?_0x539efc:resolve(dirname(_0x14378c),_0x539efc);}function a110_0x5d5f(){const _0x529914=['2564505gPhLPB','13748hDOIqk','21QixEFo','startsWith','validation','endsWith','962904aWLOSu','1683VgpRYL','75332MhkIQK','isSymbolicLink','14917MmhPws','196221MdXLxP','from','utf8','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','15880Iwgkgc','152ECXkhP','split','105qglqBY'];a110_0x5d5f=function(){return _0x529914;};return a110_0x5d5f();}export function isPathInside(_0x6e420,_0x18ca7b){const _0x4920d4=a110_0x3aa9,_0x462eca=_0x6e420[_0x4920d4(0x106)](sep)?_0x6e420:''+_0x6e420+sep,_0x1e9c9d=_0x18ca7b[_0x4920d4(0x106)](sep)?_0x18ca7b:''+_0x18ca7b+sep;return _0x6e420===_0x18ca7b||_0x462eca[_0x4920d4(0x104)](_0x1e9c9d);}export function realOrResolved(_0xf77df0){try{return realpathSync(_0xf77df0);}catch{return resolve(_0xf77df0);}}export function lstatIfPresent(_0x40f43c){try{return lstatSync(_0x40f43c);}catch{return undefined;}}export function writeTextAtomic(_0xfcb66d,_0x5fcfc2,_0x380598){const _0x3851b9=a110_0x3aa9;writeBytesAtomic(_0xfcb66d,Buffer[_0x3851b9(0xfa)](_0x5fcfc2,_0x3851b9(0xfb)),_0x380598);}export function writeBytesAtomic(_0x387cfc,_0x3ce1d6,_0x394da3){const _0x22c259=_0x387cfc+'.tmp';try{writeFileSync(_0x22c259,_0x3ce1d6,{'mode':_0x394da3}),renameSync(_0x22c259,_0x387cfc);}catch(_0x5bd621){try{rmSync(_0x22c259,{'force':!![]});}catch{}throw _0x5bd621;}}export function writeJsonAtomic(_0x457923,_0x127306){writeTextAtomic(_0x457923,JSON['stringify'](_0x127306,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x187b60,_0x16c40e){const _0x50413f=a111_0x5413,_0x534de2=_0x187b60();while(!![]){try{const _0x18c7b6=-parseInt(_0x50413f(0x1a5))/0x1*(parseInt(_0x50413f(0x1a6))/0x2)+parseInt(_0x50413f(0x1a0))/0x3+-parseInt(_0x50413f(0x19e))/0x4*(parseInt(_0x50413f(0x199))/0x5)+parseInt(_0x50413f(0x1a4))/0x6*(-parseInt(_0x50413f(0x19a))/0x7)+-parseInt(_0x50413f(0x1a7))/0x8*(-parseInt(_0x50413f(0x19b))/0x9)+parseInt(_0x50413f(0x1a3))/0xa+parseInt(_0x50413f(0x198))/0xb*(parseInt(_0x50413f(0x19c))/0xc);if(_0x18c7b6===_0x16c40e)break;else _0x534de2['push'](_0x534de2['shift']());}catch(_0x23d227){_0x534de2['push'](_0x534de2['shift']());}}}(a111_0x3ab9,0x6cbb8));import{createHash}from'node:crypto';function a111_0x5413(_0x578975,_0x377bca){_0x578975=_0x578975-0x198;const _0x3ab9f0=a111_0x3ab9();let _0x541382=_0x3ab9f0[_0x578975];return _0x541382;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x94b48a){const _0x29138c=a111_0x5413;return createHash('sha256')['update'](_0x94b48a)[_0x29138c(0x19f)](_0x29138c(0x1a1));}export function fileHash(_0x3c1872){return bufferSha256(fileContent(_0x3c1872));}export function bufferSha256(_0x11119a){const _0x2b3363=a111_0x5413;return createHash('sha256')['update'](_0x11119a)['digest'](_0x2b3363(0x1a1));}function a111_0x3ab9(){const _0x3ff954=['768684GJMule','sha256','87212glHgae','digest','2367768TtXgjS','hex','size','3489330vfcgeW','2335092QFpmKn','1zIoYrR','1665610eXNcLu','8vAshwM','update','121pEqwFr','130YmizlU','14ZEdKyY','7025391Ifxyyx'];a111_0x3ab9=function(){return _0x3ff954;};return a111_0x3ab9();}export function fileTreeHash(_0x43019d){const _0x5d16ee=a111_0x5413,_0x8a6142=createHash(_0x5d16ee(0x19d));for(const _0x345e45 of normalizeManifestFiles(_0x43019d)){_0x8a6142[_0x5d16ee(0x1a8)](_0x345e45['path']),_0x8a6142['update']('\x00'),_0x8a6142['update'](_0x345e45[_0x5d16ee(0x19d)]),_0x8a6142['update']('\x00'),_0x8a6142[_0x5d16ee(0x1a8)](String(_0x345e45[_0x5d16ee(0x1a2)])),_0x8a6142[_0x5d16ee(0x1a8)]('\x00');}return _0x8a6142['digest'](_0x5d16ee(0x1a1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x40c2(){const _0x137fe9=['managedRoot','2901588WkSKFC','56SOfvwG','appCode','9693hzQFMo','global','15cxVWOa','cwd','682LUYIXU','6979050npiFgp','454093bNdGmL','freeze','397484SPDHWP','.agents','10255635RQyAyl','618079pUSHNn','skills'];a112_0x40c2=function(){return _0x137fe9;};return a112_0x40c2();}function a112_0x52f6(_0x1bdb7f,_0x4b1425){_0x1bdb7f=_0x1bdb7f-0xf0;const _0x40c21c=a112_0x40c2();let _0x52f6f3=_0x40c21c[_0x1bdb7f];return _0x52f6f3;}const a112_0x8a0d8d=a112_0x52f6;(function(_0x2a9953,_0x5b865c){const _0x154476=a112_0x52f6,_0x4c9060=_0x2a9953();while(!![]){try{const _0x23871e=parseInt(_0x154476(0xf9))/0x1+-parseInt(_0x154476(0xf7))/0x2*(-parseInt(_0x154476(0xf3))/0x3)+parseInt(_0x154476(0xfb))/0x4*(-parseInt(_0x154476(0xf5))/0x5)+-parseInt(_0x154476(0xf0))/0x6+parseInt(_0x154476(0xfe))/0x7*(-parseInt(_0x154476(0xf1))/0x8)+parseInt(_0x154476(0xfd))/0x9+-parseInt(_0x154476(0xf8))/0xa;if(_0x23871e===_0x5b865c)break;else _0x4c9060['push'](_0x4c9060['shift']());}catch(_0xcafb0b){_0x4c9060['push'](_0x4c9060['shift']());}}}(a112_0x40c2,0x91eb4));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x5dd76d,_0xbe9da4=a112_0x8a0d8d(0xf4),_0x195ab0={}){const _0x43d32a=a112_0x8a0d8d,_0x200eb5=resolveSkillSyncPaths(_0x195ab0),_0x26db96=safePathSegment(_0x5dd76d,_0x43d32a(0xf2)),_0x1f8a1a=_0xbe9da4==='project'?[resolve(_0x195ab0[_0x43d32a(0xf6)]??process['cwd'](),_0x43d32a(0xfc),_0x43d32a(0xff))]:runtimeAgentSkillRoots(_0x200eb5);return Object[_0x43d32a(0xfa)]({'scope':_0xbe9da4,'appCode':_0x26db96,'skillRoots':Object[_0x43d32a(0xfa)](_0x1f8a1a),'managedRoot':_0x200eb5[_0x43d32a(0x100)]});}
|