@lovrabet/lovrabet-cli 2.1.22-beta.5 → 2.1.22
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/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/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/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/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1ff768,_0x2f5cf7){const _0x40e4bb=a94_0x5a4e,_0x6fc49=_0x1ff768();while(!![]){try{const _0x5abf43=parseInt(_0x40e4bb(0x1ae))/0x1+-parseInt(_0x40e4bb(0x1b5))/0x2*(-parseInt(_0x40e4bb(0x189))/0x3)+-parseInt(_0x40e4bb(0x197))/0x4*(-parseInt(_0x40e4bb(0x1a6))/0x5)+-parseInt(_0x40e4bb(0x19a))/0x6*(-parseInt(_0x40e4bb(0x19f))/0x7)+-parseInt(_0x40e4bb(0x17e))/0x8*(parseInt(_0x40e4bb(0x181))/0x9)+parseInt(_0x40e4bb(0x1ad))/0xa+-parseInt(_0x40e4bb(0x1aa))/0xb;if(_0x5abf43===_0x2f5cf7)break;else _0x6fc49['push'](_0x6fc49['shift']());}catch(_0x5b2386){_0x6fc49['push'](_0x6fc49['shift']());}}}(a94_0x4b59,0xa1e5f));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';function a94_0x5a4e(_0x15bbeb,_0x1f2393){_0x15bbeb=_0x15bbeb-0x16f;const _0x4b595f=a94_0x4b59();let _0x5a4ef6=_0x4b595f[_0x15bbeb];return _0x5a4ef6;}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';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';function a94_0x4b59(){const _0x1f0796=['1306961GMSuXH','verbose','defaultPageSize','../commands/app/remote-source.js','Unknown\x20app:\x20','requiresAppCode','has','12OJUAUR','app','riskLevel','appCode','accessKey','_notice','pretty','appCodeSource','env','High-risk\x20operation\x20`','defaultApp','resolve','Run\x20`','configMissing','appcode\x20\x22','production','string','error','ACCESS_KEY','service','4761592aViSgm','../core/api-client.js','items','9qHFvyz','newConfigFileName','currentApp','rawFlags','validation','filter','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','confirmHighRisk','370839cLDNPT','isNonInteractive','appcode','pageSize','requiresAuth','.appcode\x20to\x20','object','cancelled','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','Set\x20accessKey\x20in\x20','\x20or\x20pass\x20','execute','update','schema','112xhwIAj','apiDomain','\x20\x20To\x20proceed:\x20','1662IYuZPR','authRequired','mergedCli','includes','format','13559dhyccG','APPCODE','formatOutput','defaultVerbose','trim','catch','name','78650eGJVpC','../core/sdk-client.js','doctor','map','23068232BENYXt','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','3298180pxmFNd'];a94_0x4b59=function(){return _0x1f0796;};return a94_0x4b59();}export function resolveAuthMode(_0x20880b){return void _0x20880b,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x456b74,_0x4b8039){const _0x1a4594=a94_0x5a4e,_0x272dab=typeof _0x4b8039[_0x1a4594(0x1b6)]===_0x1a4594(0x17a)&&_0x4b8039['app'][_0x1a4594(0x1a3)]();return{'rawFlags':_0x4b8039,'appCode':_0x456b74[_0x1a4594(0x1b8)]||productEnv('APPCODE')||(_0x272dab?undefined:readAppCodeFromConfig()),'appCodeSource':_0x456b74[_0x1a4594(0x171)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x4b8039),'defaultFormat':_0x456b74[_0x1a4594(0x19e)],'defaultPageSize':_0x456b74[_0x1a4594(0x18c)],'defaultVerbose':_0x456b74[_0x1a4594(0x1af)],'riskLevel':_0x456b74[_0x1a4594(0x1b7)],'accessKey':_0x456b74[_0x1a4594(0x1b9)],'env':_0x456b74[_0x1a4594(0x172)],'mergedCli':{'defaultApp':_0x456b74[_0x1a4594(0x174)],'currentApp':_0x456b74[_0x1a4594(0x183)],'appCode':_0x456b74[_0x1a4594(0x1b8)]}};}export function createLovrabetRunnerAdapter(_0x5e5e07={}){const _0x5b423a=a94_0x5a4e,_0x1e442b={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x5b423a(0x186)](_0x2f7e4d=>PIPELINE_FLAG_NAMES[_0x5b423a(0x1b4)](_0x2f7e4d[_0x5b423a(0x1a5)]))[_0x5b423a(0x1a9)](({name:_0x32aef4,type:_0x53f04c,description:_0x431a27})=>({'name':_0x32aef4,'type':_0x53f04c,'description':_0x431a27})),'formatOutput':_0x5e5e07[_0x5b423a(0x1a1)]??formatOutput,'getCommandLabel'(_0x35bf91){const _0x1192bf=_0x5b423a;return CLI_BIN_NAME+'\x20'+_0x35bf91[_0x1192bf(0x17d)]+'\x20'+_0x35bf91[_0x1192bf(0x1ab)];},'riskPolicy':{'onViolation'(_0x2c03b4){const _0x247c52=_0x5b423a;console[_0x247c52(0x17b)](_0x2c03b4);},'createError'(_0x453541){return CliErrors['cancelled'](_0x453541);}},async 'prepare'(_0x5776aa,_0x537cda){const _0x5d253b=_0x5b423a,_0x1c16aa=resolveAuthMode(_0x537cda);if(_0x5776aa[_0x5d253b(0x18d)]!==![]){if(!_0x537cda['accessKey'])throw CliErrors[_0x5d253b(0x19b)](_0x5d253b(0x192)+PRODUCT_CONFIG[_0x5d253b(0x182)]+_0x5d253b(0x193)+productEnvName(_0x5d253b(0x17c))+'.');const {setActiveAK:_0x1e5925}=await import(_0x5d253b(0x17f));_0x1e5925(_0x537cda[_0x5d253b(0x1b9)]);}let _0x135d49='';if(_0x5776aa[_0x5d253b(0x1b3)]!==![]){_0x135d49=_0x537cda['appCode']??'',_0x135d49=await resolveExplicitAppName(_0x5776aa,_0x537cda,_0x135d49);if(!_0x135d49){await assertSelectedAppNameIsRuntimeAccessible(_0x5776aa,_0x537cda);throw CliErrors[_0x5d253b(0x177)](_0x5d253b(0x187)+PRODUCT_CONFIG[_0x5d253b(0x182)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5776aa,_0x537cda,_0x135d49);}if(_0x135d49){const {initSdkClient:_0x3c80ce}=await import('../core/sdk-client.js');_0x3c80ce({'appCode':_0x135d49,'env':_0x537cda[_0x5d253b(0x172)]??_0x5d253b(0x179),'accessKey':_0x537cda['accessKey'],'authMode':_0x1c16aa}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x537cda[_0x5d253b(0x1a2)]},'numbers':{'pagesize':_0x537cda[_0x5d253b(0x1b0)]}},'extras':{'appCode':_0x135d49,'cookie':'','apiDomain':_0x537cda[_0x5d253b(0x198)],'apiDir':'','accessKey':_0x537cda['accessKey'],'envName':_0x537cda[_0x5d253b(0x172)],'mergedCli':_0x537cda[_0x5d253b(0x19c)]}};},'confirmHighRisk':_0x5e5e07[_0x5b423a(0x188)]??(async({def:_0x454db5,env:_0x5db1a8,flags:_0x101bdd,commandLabel:_0x4de6ad})=>{const _0x4e84c9=_0x5b423a;if(_0x5db1a8[_0x4e84c9(0x18a)]){const _0x5ac662=reconstructCommandArgv(_0x454db5,_0x101bdd);throw CliErrors[_0x4e84c9(0x185)](_0x4e84c9(0x173)+_0x4de6ad+_0x4e84c9(0x191)+(_0x4e84c9(0x199)+_0x5ac662));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x454db5,_0x4de6ad,_0x101bdd),'createCancelledError':_0x1fe42f=>CliErrors[_0x4e84c9(0x190)](_0x1fe42f)});}),'mapDryRunError'(_0x485582){return mapUserFacingExecuteError(_0x485582);},'mapExecuteError'(_0x2bb26c){return mapUserFacingExecuteError(_0x2bb26c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1e442b;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x1d3d5c=a94_0x5a4e;try{if(sdkClientInitialized){const {clearSdkClient:_0x3d2e1c}=await import(_0x1d3d5c(0x1a7));_0x3d2e1c();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5cd32a}=await import(_0x1d3d5c(0x17f));_0x5cd32a();}}async function resolveExplicitAppName(_0x3cf4f8,_0x29f4c1,_0x59df3e){const _0x1d6ecd=a94_0x5a4e;if(_0x3cf4f8[_0x1d6ecd(0x1b3)]===![])return _0x59df3e;const _0x317a68=typeof _0x29f4c1[_0x1d6ecd(0x184)][_0x1d6ecd(0x1b6)]===_0x1d6ecd(0x17a)?_0x29f4c1[_0x1d6ecd(0x184)][_0x1d6ecd(0x1b6)][_0x1d6ecd(0x1a3)]():'';if(!_0x317a68)return _0x59df3e;const _0x5bf64e=typeof _0x29f4c1[_0x1d6ecd(0x184)][_0x1d6ecd(0x18b)]===_0x1d6ecd(0x17a)&&_0x29f4c1[_0x1d6ecd(0x184)]['appcode']['trim']()||productEnv(_0x1d6ecd(0x1a0));if(_0x5bf64e||_0x29f4c1[_0x1d6ecd(0x171)]==='local-alias')return _0x59df3e;const {getRemoteAppList:_0x2503e1}=await import('../commands/app/remote-source.js'),_0x3795f2=await _0x2503e1({'env':_0x29f4c1[_0x1d6ecd(0x172)]??_0x1d6ecd(0x179),'accessKey':_0x29f4c1['accessKey']}),_0x3c23b4=findAppByName(_0x3795f2[_0x1d6ecd(0x180)],_0x317a68);if(_0x3c23b4&&!isRuntimeAccessibleApp(_0x3c23b4))throw runtimeInaccessibleAppError(_0x3c23b4,'\x22'+_0x317a68+'\x22');const _0x5cd8d0=_0x3c23b4?.[_0x1d6ecd(0x1b8)]?.[_0x1d6ecd(0x1a3)]();if(_0x5cd8d0)return _0x5cd8d0;throw CliErrors[_0x1d6ecd(0x185)](_0x1d6ecd(0x1b2)+_0x317a68,_0x1d6ecd(0x176)+CLI_BIN_NAME+_0x1d6ecd(0x1ac)+_0x317a68+_0x1d6ecd(0x18e)+PRODUCT_CONFIG[_0x1d6ecd(0x182)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x3485ad,_0xf407c8){const _0x6bdf80=a94_0x5a4e;if(_0x3485ad['requiresAppCode']===![]||!_0xf407c8[_0x6bdf80(0x1b9)])return;const _0xf494bb=(typeof _0xf407c8[_0x6bdf80(0x184)]['app']===_0x6bdf80(0x17a)&&_0xf407c8[_0x6bdf80(0x184)]['app'][_0x6bdf80(0x1a3)]()?_0xf407c8[_0x6bdf80(0x184)][_0x6bdf80(0x1b6)]:_0xf407c8[_0x6bdf80(0x19c)]?.[_0x6bdf80(0x183)]??_0xf407c8[_0x6bdf80(0x19c)]?.[_0x6bdf80(0x174)])?.[_0x6bdf80(0x1a3)]();if(!_0xf494bb)return;const {getRemoteAppList:_0x296633}=await import(_0x6bdf80(0x1b1)),_0x17782f=await _0x296633({'env':_0xf407c8[_0x6bdf80(0x172)]??_0x6bdf80(0x179),'accessKey':_0xf407c8[_0x6bdf80(0x1b9)]}),_0x1e0ed6=findAppByName(_0x17782f['items'],_0xf494bb);if(_0x1e0ed6&&!isRuntimeAccessibleApp(_0x1e0ed6))throw runtimeInaccessibleAppError(_0x1e0ed6,'\x22'+_0xf494bb+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x3b2cb7,_0x46bae6,_0x57901a){const _0x357a7f=a94_0x5a4e;if(_0x3b2cb7[_0x357a7f(0x1b3)]===![]||!_0x46bae6[_0x357a7f(0x1b9)])return;const {getRemoteAppList:_0x2d9e6f}=await import(_0x357a7f(0x1b1)),_0x2a6dee=await _0x2d9e6f({'env':_0x46bae6[_0x357a7f(0x172)]??_0x357a7f(0x179),'accessKey':_0x46bae6[_0x357a7f(0x1b9)]}),_0x5f3baf=findAppByCode(_0x2a6dee[_0x357a7f(0x180)],_0x57901a);if(_0x5f3baf&&!isRuntimeAccessibleApp(_0x5f3baf))throw runtimeInaccessibleAppError(_0x5f3baf,_0x357a7f(0x178)+_0x57901a+'\x22');}export async function runCommand(_0x4ae69e,_0x38dec1,_0x4ffe02=terminalRunnerAdapter){const _0x1a83c2=a94_0x5a4e;assertKnownCommandFlags(_0x4ae69e,_0x38dec1[_0x1a83c2(0x184)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4ae69e)?withUpdateNotice(_0x4ae69e):_0x4ae69e,_0x38dec1,_0x4ffe02);}function shouldAttachUpdateNotice(_0x25bf65){const _0x500e33=a94_0x5a4e;return![_0x500e33(0x195),_0x500e33(0x196),_0x500e33(0x1a8)][_0x500e33(0x19d)](_0x25bf65[_0x500e33(0x17d)]);}function withUpdateNotice(_0x555fa7){return{..._0x555fa7,async 'execute'(_0x33d477){const _0x328a42=a94_0x5a4e,_0x48d605=shouldResolveUpdateNotice(_0x33d477)?resolveLatestUpdateNotice()[_0x328a42(0x1a4)](()=>null):Promise[_0x328a42(0x175)](null),_0x5d8f24=await _0x555fa7[_0x328a42(0x194)](_0x33d477);return attachUpdateNotice(_0x5d8f24,await _0x48d605);}};}function shouldResolveUpdateNotice(_0x1a51ea){const _0x309ca2=a94_0x5a4e;return _0x1a51ea[_0x309ca2(0x19e)]===_0x309ca2(0x170)&&!_0x1a51ea['nonInteractive'];}function attachUpdateNotice(_0x724eb6,_0x3c11ac){const _0x2de4e6=a94_0x5a4e;if(!_0x3c11ac||!_0x724eb6||typeof _0x724eb6!==_0x2de4e6(0x18f))return _0x724eb6;const _0x2766f7=_0x724eb6,_0x2f96f6=typeof _0x2766f7['_notice']==='object'&&_0x2766f7[_0x2de4e6(0x16f)]!==null?_0x2766f7['_notice']:{};return{..._0x2766f7,'_notice':{..._0x2f96f6,'update':_0x3c11ac}};}
|
|
1
|
+
function a94_0x4b62(){const _0x2f64ab=['production','newConfigFileName','verbose','string','../core/sdk-client.js','380526wDBbtG','2499040lZVOog','riskLevel','apiDomain','validation','doctor','appcode\x20\x22','3798258gVMrsm','_notice','\x20\x20To\x20proceed:\x20','service','has','formatOutput','appCode','defaultVerbose','pretty','rawFlags','ACCESS_KEY','currentApp','89878FJATGS','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','Run\x20`','nonInteractive','cancelled','accessKey','confirmHighRisk','High-risk\x20operation\x20`','ClientAk','.appcode\x20to\x20','6568eorsls','requiresAuth','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','mergedCli','error','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','defaultPageSize','15966LgayNJ','local-alias','defaultApp','Set\x20accessKey\x20in\x20','14322wpfFlu','isNonInteractive','app','Unknown\x20app:\x20','execute','requiresAppCode','trim','appCodeSource','\x20or\x20pass\x20','7ySbxoQ','3555735BPeAim','authRequired','catch','12HFgjvj','name','object','18XxnYKs','../commands/app/remote-source.js','map','29712QVXBMN','items','../core/api-client.js','format','env','appcode'];a94_0x4b62=function(){return _0x2f64ab;};return a94_0x4b62();}(function(_0x2927a0,_0x1f9c6f){const _0x1bbbb3=a94_0x1015,_0x4fce1d=_0x2927a0();while(!![]){try{const _0x3141f2=parseInt(_0x1bbbb3(0x116))/0x1*(-parseInt(_0x1bbbb3(0xf5))/0x2)+-parseInt(_0x1bbbb3(0x103))/0x3*(parseInt(_0x1bbbb3(0x138))/0x4)+-parseInt(_0x1bbbb3(0x135))/0x5+-parseInt(_0x1bbbb3(0x10a))/0x6*(-parseInt(_0x1bbbb3(0x134))/0x7)+-parseInt(_0x1bbbb3(0x120))/0x8*(parseInt(_0x1bbbb3(0x127))/0x9)+parseInt(_0x1bbbb3(0x104))/0xa+parseInt(_0x1bbbb3(0x12b))/0xb*(parseInt(_0x1bbbb3(0xf8))/0xc);if(_0x3141f2===_0x1f9c6f)break;else _0x4fce1d['push'](_0x4fce1d['shift']());}catch(_0x22780d){_0x4fce1d['push'](_0x4fce1d['shift']());}}}(a94_0x4b62,0xb7066));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';function a94_0x1015(_0x2319e2,_0x3b0d04){_0x2319e2=_0x2319e2-0xf4;const _0x4b628d=a94_0x4b62();let _0x1015fe=_0x4b628d[_0x2319e2];return _0x1015fe;}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(_0x43b615){const _0x117bf6=a94_0x1015;return void _0x43b615,AUTH_MODE[_0x117bf6(0x11e)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x322e19,_0x47f4c4){const _0x535b1b=a94_0x1015,_0x5d1cdd=typeof _0x47f4c4[_0x535b1b(0x12d)]==='string'&&_0x47f4c4[_0x535b1b(0x12d)][_0x535b1b(0x131)]();return{'rawFlags':_0x47f4c4,'appCode':_0x322e19[_0x535b1b(0x110)]||productEnv('APPCODE')||(_0x5d1cdd?undefined:readAppCodeFromConfig()),'appCodeSource':_0x322e19['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x47f4c4),'defaultFormat':_0x322e19[_0x535b1b(0xfb)],'defaultPageSize':_0x322e19['pageSize'],'defaultVerbose':_0x322e19[_0x535b1b(0x100)],'riskLevel':_0x322e19[_0x535b1b(0x105)],'accessKey':_0x322e19[_0x535b1b(0x11b)],'env':_0x322e19[_0x535b1b(0xfc)],'mergedCli':{'defaultApp':_0x322e19[_0x535b1b(0x129)],'currentApp':_0x322e19[_0x535b1b(0x115)],'appCode':_0x322e19[_0x535b1b(0x110)]}};}export function createLovrabetRunnerAdapter(_0x1b4e6a={}){const _0x7998b5=a94_0x1015,_0x33e8e5={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x35a4de=>PIPELINE_FLAG_NAMES[_0x7998b5(0x10e)](_0x35a4de[_0x7998b5(0x139)]))[_0x7998b5(0xf7)](({name:_0x3e52ed,type:_0x1138b1,description:_0x3034f1})=>({'name':_0x3e52ed,'type':_0x1138b1,'description':_0x3034f1})),'formatOutput':_0x1b4e6a[_0x7998b5(0x10f)]??formatOutput,'getCommandLabel'(_0x2a6f73){return CLI_BIN_NAME+'\x20'+_0x2a6f73['service']+'\x20'+_0x2a6f73['command'];},'riskPolicy':{'onViolation'(_0x2ebcc2){const _0x50c0ba=_0x7998b5;console[_0x50c0ba(0x124)](_0x2ebcc2);},'createError'(_0x5b9ce8){return CliErrors['cancelled'](_0x5b9ce8);}},async 'prepare'(_0x1799b7,_0x5b7532){const _0x2e074f=_0x7998b5,_0x1b88ad=resolveAuthMode(_0x5b7532);if(_0x1799b7[_0x2e074f(0x121)]!==![]){if(!_0x5b7532['accessKey'])throw CliErrors[_0x2e074f(0x136)](_0x2e074f(0x12a)+PRODUCT_CONFIG[_0x2e074f(0xff)]+_0x2e074f(0x133)+productEnvName(_0x2e074f(0x114))+'.');const {setActiveAK:_0x41f03c}=await import(_0x2e074f(0xfa));_0x41f03c(_0x5b7532[_0x2e074f(0x11b)]);}let _0x473875='';if(_0x1799b7[_0x2e074f(0x130)]!==![]){_0x473875=_0x5b7532['appCode']??'',_0x473875=await resolveExplicitAppName(_0x1799b7,_0x5b7532,_0x473875);if(!_0x473875){await assertSelectedAppNameIsRuntimeAccessible(_0x1799b7,_0x5b7532);throw CliErrors['configMissing'](_0x2e074f(0x122)+PRODUCT_CONFIG[_0x2e074f(0xff)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1799b7,_0x5b7532,_0x473875);}if(_0x473875){const {initSdkClient:_0x3f66b4}=await import(_0x2e074f(0x102));_0x3f66b4({'appCode':_0x473875,'env':_0x5b7532[_0x2e074f(0xfc)]??'production','accessKey':_0x5b7532['accessKey'],'authMode':_0x1b88ad}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5b7532[_0x2e074f(0x111)]},'numbers':{'pagesize':_0x5b7532[_0x2e074f(0x126)]}},'extras':{'appCode':_0x473875,'cookie':'','apiDomain':_0x5b7532[_0x2e074f(0x106)],'apiDir':'','accessKey':_0x5b7532['accessKey'],'envName':_0x5b7532[_0x2e074f(0xfc)],'mergedCli':_0x5b7532['mergedCli']}};},'confirmHighRisk':_0x1b4e6a[_0x7998b5(0x11c)]??(async({def:_0x546c7b,env:_0xda0e4f,flags:_0x1dd843,commandLabel:_0x1486fa})=>{const _0x4257af=_0x7998b5;if(_0xda0e4f[_0x4257af(0x12c)]){const _0x50f15c=reconstructCommandArgv(_0x546c7b,_0x1dd843);throw CliErrors[_0x4257af(0x107)](_0x4257af(0x11d)+_0x1486fa+_0x4257af(0x125)+(_0x4257af(0x10c)+_0x50f15c));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x546c7b,_0x1486fa,_0x1dd843),'createCancelledError':_0x2cb0e6=>CliErrors[_0x4257af(0x11a)](_0x2cb0e6)});}),'mapDryRunError'(_0x2fa549){return mapUserFacingExecuteError(_0x2fa549);},'mapExecuteError'(_0x12beca){return mapUserFacingExecuteError(_0x12beca);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x33e8e5;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x26afbf=a94_0x1015;try{if(sdkClientInitialized){const {clearSdkClient:_0xe4b3b7}=await import(_0x26afbf(0x102));_0xe4b3b7();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xbe438}=await import(_0x26afbf(0xfa));_0xbe438();}}async function resolveExplicitAppName(_0x968aef,_0x1b5411,_0x5cf606){const _0x197f3a=a94_0x1015;if(_0x968aef['requiresAppCode']===![])return _0x5cf606;const _0x3401ee=typeof _0x1b5411[_0x197f3a(0x113)][_0x197f3a(0x12d)]===_0x197f3a(0x101)?_0x1b5411[_0x197f3a(0x113)][_0x197f3a(0x12d)]['trim']():'';if(!_0x3401ee)return _0x5cf606;const _0x5e82ee=typeof _0x1b5411[_0x197f3a(0x113)][_0x197f3a(0xfd)]===_0x197f3a(0x101)&&_0x1b5411[_0x197f3a(0x113)][_0x197f3a(0xfd)][_0x197f3a(0x131)]()||productEnv('APPCODE');if(_0x5e82ee||_0x1b5411[_0x197f3a(0x132)]===_0x197f3a(0x128))return _0x5cf606;const {getRemoteAppList:_0x51681a}=await import(_0x197f3a(0xf6)),_0x3dd633=await _0x51681a({'env':_0x1b5411[_0x197f3a(0xfc)]??_0x197f3a(0xfe),'accessKey':_0x1b5411[_0x197f3a(0x11b)]}),_0x1be791=findAppByName(_0x3dd633[_0x197f3a(0xf9)],_0x3401ee);if(_0x1be791&&!isRuntimeAccessibleApp(_0x1be791))throw runtimeInaccessibleAppError(_0x1be791,'\x22'+_0x3401ee+'\x22');const _0x16eff9=_0x1be791?.[_0x197f3a(0x110)]?.[_0x197f3a(0x131)]();if(_0x16eff9)return _0x16eff9;throw CliErrors['validation'](_0x197f3a(0x12e)+_0x3401ee,_0x197f3a(0x118)+CLI_BIN_NAME+_0x197f3a(0x117)+_0x3401ee+_0x197f3a(0x11f)+PRODUCT_CONFIG[_0x197f3a(0xff)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x17e622,_0x53041a){const _0x24e648=a94_0x1015;if(_0x17e622[_0x24e648(0x130)]===![]||!_0x53041a[_0x24e648(0x11b)])return;const _0x59eae1=(typeof _0x53041a[_0x24e648(0x113)][_0x24e648(0x12d)]===_0x24e648(0x101)&&_0x53041a[_0x24e648(0x113)][_0x24e648(0x12d)][_0x24e648(0x131)]()?_0x53041a['rawFlags'][_0x24e648(0x12d)]:_0x53041a[_0x24e648(0x123)]?.[_0x24e648(0x115)]??_0x53041a[_0x24e648(0x123)]?.[_0x24e648(0x129)])?.[_0x24e648(0x131)]();if(!_0x59eae1)return;const {getRemoteAppList:_0x97667e}=await import(_0x24e648(0xf6)),_0x291c60=await _0x97667e({'env':_0x53041a[_0x24e648(0xfc)]??_0x24e648(0xfe),'accessKey':_0x53041a[_0x24e648(0x11b)]}),_0x2c516b=findAppByName(_0x291c60[_0x24e648(0xf9)],_0x59eae1);if(_0x2c516b&&!isRuntimeAccessibleApp(_0x2c516b))throw runtimeInaccessibleAppError(_0x2c516b,'\x22'+_0x59eae1+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x259254,_0xe578b3,_0x23d456){const _0x3ab133=a94_0x1015;if(_0x259254['requiresAppCode']===![]||!_0xe578b3[_0x3ab133(0x11b)])return;const {getRemoteAppList:_0x4febfd}=await import('../commands/app/remote-source.js'),_0x48b92b=await _0x4febfd({'env':_0xe578b3[_0x3ab133(0xfc)]??_0x3ab133(0xfe),'accessKey':_0xe578b3['accessKey']}),_0x2509ab=findAppByCode(_0x48b92b['items'],_0x23d456);if(_0x2509ab&&!isRuntimeAccessibleApp(_0x2509ab))throw runtimeInaccessibleAppError(_0x2509ab,_0x3ab133(0x109)+_0x23d456+'\x22');}export async function runCommand(_0x390de6,_0x3a3a88,_0x377f0a=terminalRunnerAdapter){const _0x508685=a94_0x1015;assertKnownCommandFlags(_0x390de6,_0x3a3a88[_0x508685(0x113)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x390de6)?withUpdateNotice(_0x390de6):_0x390de6,_0x3a3a88,_0x377f0a);}function shouldAttachUpdateNotice(_0x471bef){const _0x3a7799=a94_0x1015;return!['update','schema',_0x3a7799(0x108)]['includes'](_0x471bef[_0x3a7799(0x10d)]);}function withUpdateNotice(_0x531163){return{..._0x531163,async 'execute'(_0x58b1bc){const _0x45b0d8=a94_0x1015,_0x4acb46=shouldResolveUpdateNotice(_0x58b1bc)?resolveLatestUpdateNotice()[_0x45b0d8(0x137)](()=>null):Promise['resolve'](null),_0x51a7a1=await _0x531163[_0x45b0d8(0x12f)](_0x58b1bc);return attachUpdateNotice(_0x51a7a1,await _0x4acb46);}};}function shouldResolveUpdateNotice(_0x160059){const _0x5d043b=a94_0x1015;return _0x160059[_0x5d043b(0xfb)]===_0x5d043b(0x112)&&!_0x160059[_0x5d043b(0x119)];}function attachUpdateNotice(_0x16cbe8,_0x2e7495){const _0x8778e9=a94_0x1015;if(!_0x2e7495||!_0x16cbe8||typeof _0x16cbe8!==_0x8778e9(0xf4))return _0x16cbe8;const _0x4180dd=_0x16cbe8,_0x493ca3=typeof _0x4180dd[_0x8778e9(0x10b)]===_0x8778e9(0xf4)&&_0x4180dd[_0x8778e9(0x10b)]!==null?_0x4180dd['_notice']:{};return{..._0x4180dd,'_notice':{..._0x493ca3,'update':_0x2e7495}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c362,_0x38e538){const _0x3748cc=a95_0x32fb,_0x38d0a=_0x37c362();while(!![]){try{const _0xae34af=parseInt(_0x3748cc(0x1b6))/0x1*(-parseInt(_0x3748cc(0x1c3))/0x2)+-parseInt(_0x3748cc(0x1bf))/0x3*(-parseInt(_0x3748cc(0x1b7))/0x4)+-parseInt(_0x3748cc(0x1ad))/0x5+parseInt(_0x3748cc(0x1b0))/0x6*(-parseInt(_0x3748cc(0x1b1))/0x7)+parseInt(_0x3748cc(0x1bc))/0x8*(parseInt(_0x3748cc(0x1af))/0x9)+parseInt(_0x3748cc(0x1bd))/0xa*(parseInt(_0x3748cc(0x1c0))/0xb)+parseInt(_0x3748cc(0x1ae))/0xc;if(_0xae34af===_0x38e538)break;else _0x38d0a['push'](_0x38d0a['shift']());}catch(_0x3e4f53){_0x38d0a['push'](_0x38d0a['shift']());}}}(a95_0x8841,0xe618b));import{buildSchemaPayload as a95_0x1079d3}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a95_0x32fb(_0x21547c,_0x2861fe){_0x21547c=_0x21547c-0x1ad;const _0x884127=a95_0x8841();let _0x32fb68=_0x884127[_0x21547c];return _0x32fb68;}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 _0x2164ce=a95_0x32fb,{serviceRegistry:_0x3390a7,findDefinition:_0x2230d1}=await import(_0x2164ce(0x1c2)),_0x41027d=new Set(_0x3390a7[_0x2164ce(0x1b8)](_0x2870bf=>_0x2870bf['service'])),_0x2f0daa=listDynamicServiceEntries()[_0x2164ce(0x1b5)](_0x4e62cc=>!_0x41027d[_0x2164ce(0x1be)](_0x4e62cc[_0x2164ce(0x1c1)])),_0x2b7043=a95_0x1079d3({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3390a7,_0x2f0daa),'buildAllFlags':buildAllFlags,'findDefinition':(_0x2e9429,_0x31ade3)=>_0x2230d1(_0x2e9429,_0x31ade3)??findDynamicServiceDefinition(_0x2e9429,_0x31ade3)});return normalizeSchemaPayload(_0x2b7043);}function normalizeSchemaPayload(_0xa54bab){const _0x3442de=a95_0x32fb;return{..._0xa54bab,'schemaVersion':0x2,'services':_0xa54bab[_0x3442de(0x1bb)]['map'](_0x43e873=>({..._0x43e873,'commands':_0x43e873[_0x3442de(0x1b4)][_0x3442de(0x1b8)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x37a22e){const _0x2d7198=a95_0x32fb,_0x221ead=_0x37a22e;return{..._0x37a22e,'auth':_0x221ead[_0x2d7198(0x1b2)]??(_0x37a22e[_0x2d7198(0x1b3)]?_0x2d7198(0x1b9):_0x2d7198(0x1ba))};}function a95_0x8841(){const _0x454ed6=['has','6URLYme','314413ROAMqf','service','../commands/registry.js','6ZYGhOS','4779010SayxkW','3212436bXOvnO','9sNfloO','246612qAMQPJ','35MhWngu','auth','requiresAuth','commands','filter','619657HYNpQi','1793832IpmfMz','map','required','none','services','10951912bQivGd','500OWrVKh'];a95_0x8841=function(){return _0x454ed6;};return a95_0x8841();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a96_0xcbac(_0x124f75,_0x483696){_0x124f75=_0x124f75-0x1f0;const _0x1acaf7=a96_0x1aca();let _0xcbacf1=_0x1acaf7[_0x124f75];return _0xcbacf1;}(function(_0x41e934,_0x43aa06){const _0x15bda1=a96_0xcbac,_0x59b8a5=_0x41e934();while(!![]){try{const _0x421edf=-parseInt(_0x15bda1(0x1f9))/0x1+parseInt(_0x15bda1(0x1f5))/0x2+parseInt(_0x15bda1(0x1f7))/0x3+-parseInt(_0x15bda1(0x1f8))/0x4+-parseInt(_0x15bda1(0x1f2))/0x5+parseInt(_0x15bda1(0x1f4))/0x6*(parseInt(_0x15bda1(0x1f0))/0x7)+parseInt(_0x15bda1(0x1f6))/0x8*(parseInt(_0x15bda1(0x1f3))/0x9);if(_0x421edf===_0x43aa06)break;else _0x59b8a5['push'](_0x59b8a5['shift']());}catch(_0x580255){_0x59b8a5['push'](_0x59b8a5['shift']());}}}(a96_0x1aca,0x5e8af));export function insertDynamicServicesAfterServiceTree(_0x36b350,_0xf9f6e7){const _0x2b4c9f=a96_0xcbac;if(_0xf9f6e7['length']===0x0)return[..._0x36b350];const _0x17d8fa=_0x36b350[_0x2b4c9f(0x1f1)](_0x22f3e8=>_0x22f3e8[_0x2b4c9f(0x1fb)]==='service');if(_0x17d8fa<0x0)return[..._0x36b350,..._0xf9f6e7];return[..._0x36b350[_0x2b4c9f(0x1fa)](0x0,_0x17d8fa+0x1),..._0xf9f6e7,..._0x36b350[_0x2b4c9f(0x1fa)](_0x17d8fa+0x1)];}function a96_0x1aca(){const _0x59e2fb=['153139kvFkeH','slice','service','121443ShmXbY','findIndex','3293895wGjSvZ','7814043kNGOGo','216TruhIv','24250kudodL','8tbUycm','78588PazkWn','1327788vgTWsp'];a96_0x1aca=function(){return _0x59e2fb;};return a96_0x1aca();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a97_0x3c02(){var _0x3ec48a=['240348iPjEbI','1929444tSgiqk','236836fDRMEa','102773hYGcOL','1004792iqgSIo','12RmjKmY','20RCatjm','77SeeNgg','1545741CmyYNi','271123wkyNtP','5sGNAwQ'];a97_0x3c02=function(){return _0x3ec48a;};return a97_0x3c02();}(function(_0x3796c0,_0x3c807b){var _0x354bec=a97_0x113d,_0x1daba4=_0x3796c0();while(!![]){try{var _0x3504bf=-parseInt(_0x354bec(0x8c))/0x1+parseInt(_0x354bec(0x90))/0x2*(parseInt(_0x354bec(0x93))/0x3)+-parseInt(_0x354bec(0x8f))/0x4*(-parseInt(_0x354bec(0x8d))/0x5)+parseInt(_0x354bec(0x8e))/0x6*(-parseInt(_0x354bec(0x95))/0x7)+-parseInt(_0x354bec(0x92))/0x8+parseInt(_0x354bec(0x96))/0x9+parseInt(_0x354bec(0x94))/0xa*(-parseInt(_0x354bec(0x91))/0xb);if(_0x3504bf===_0x3c807b)break;else _0x1daba4['push'](_0x1daba4['shift']());}catch(_0x1ed88b){_0x1daba4['push'](_0x1daba4['shift']());}}}(a97_0x3c02,0x42578));function a97_0x113d(_0x579f3d,_0x238047){_0x579f3d=_0x579f3d-0x8c;var _0x3c02f8=a97_0x3c02();var _0x113d15=_0x3c02f8[_0x579f3d];return _0x113d15;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.22
|
|
2
|
-
export declare const GIT_TAG = "v2.1.22
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.1.22";
|
|
2
|
+
export declare const GIT_TAG = "v2.1.22";
|
|
3
|
+
export declare const GIT_COMMIT = "354f640";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-06T10:14:10.072Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x52c900=a98_0x46a0;function a98_0x46a0(_0x388f40,_0x3b1148){_0x388f40=_0x388f40-0x172;const _0x35ed54=a98_0x35ed();let _0x46a072=_0x35ed54[_0x388f40];return _0x46a072;}(function(_0x4371cb,_0x31fe9f){const _0x155c12=a98_0x46a0,_0x14c7ed=_0x4371cb();while(!![]){try{const _0xcbbe14=parseInt(_0x155c12(0x179))/0x1+-parseInt(_0x155c12(0x177))/0x2+parseInt(_0x155c12(0x17c))/0x3*(parseInt(_0x155c12(0x175))/0x4)+-parseInt(_0x155c12(0x173))/0x5*(parseInt(_0x155c12(0x176))/0x6)+parseInt(_0x155c12(0x17a))/0x7*(-parseInt(_0x155c12(0x174))/0x8)+parseInt(_0x155c12(0x178))/0x9+-parseInt(_0x155c12(0x172))/0xa*(-parseInt(_0x155c12(0x17b))/0xb);if(_0xcbbe14===_0x31fe9f)break;else _0x14c7ed['push'](_0x14c7ed['shift']());}catch(_0x309af3){_0x14c7ed['push'](_0x14c7ed['shift']());}}}(a98_0x35ed,0xd2533));export const VERSION='2.1.22';export const GIT_TAG='v2.1.22';export const GIT_COMMIT='354f640';export const BUILD_TIME=a98_0x52c900(0x17d);function a98_0x35ed(){const _0x26fbe0=['18664pTILYQ','12LptEDe','6zSAdsD','1714836SrlQMm','3125142NSNooh','71495bjQtbF','119OQPDPW','231aUVDZG','1182147rWgVRp','2026-08-06T10:14:10.072Z','75390GDBXus','3145ESptgZ'];a98_0x35ed=function(){return _0x26fbe0;};return a98_0x35ed();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b9883,_0x340e73){const _0x4360f7=a99_0x3647,_0x439354=_0x2b9883();while(!![]){try{const _0x8d4a10=-parseInt(_0x4360f7(0x11b))/0x1*(parseInt(_0x4360f7(0x119))/0x2)+-parseInt(_0x4360f7(0x115))/0x3*(-parseInt(_0x4360f7(0x114))/0x4)+parseInt(_0x4360f7(0x11e))/0x5*(parseInt(_0x4360f7(0x113))/0x6)+parseInt(_0x4360f7(0x117))/0x7*(parseInt(_0x4360f7(0x118))/0x8)+parseInt(_0x4360f7(0x111))/0x9+parseInt(_0x4360f7(0x11c))/0xa+-parseInt(_0x4360f7(0x110))/0xb;if(_0x8d4a10===_0x340e73)break;else _0x439354['push'](_0x439354['shift']());}catch(_0x5757f9){_0x439354['push'](_0x439354['shift']());}}}(a99_0x1909,0x9cab6));import{jsx as a99_0x3b113b,jsxs as a99_0x54dbe3}from'react/jsx-runtime';function a99_0x3647(_0x30ca4f,_0x85d5a7){_0x30ca4f=_0x30ca4f-0x110;const _0x190932=a99_0x1909();let _0x364701=_0x190932[_0x30ca4f];return _0x364701;}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a99_0x1909(){const _0x26d33c=['6VYToNa','\x20to\x20view\x20available\x20commands.','8659994gGosFH','8vfMkJv','1780MkOuqI','\x20--help','556yKBJVz','2924650LwtFUT','\x20\x20Use\x20','10dNNQTB','column','21408717HjUsNU','6602544ZVeqqb','green','83262OvbpMa','1583656slMCPq'];a99_0x1909=function(){return _0x26d33c;};return a99_0x1909();}export function Help(){const _0x109f6d=a99_0x3647,{exit:_0x5b0645}=useApp();return useEffect(()=>{_0x5b0645();},[_0x5b0645]),a99_0x54dbe3(Box,{'flexDirection':_0x109f6d(0x11f),'marginTop':0x1,'marginBottom':0x1,'children':[a99_0x3b113b(Box,{'children':a99_0x3b113b(Text,{'bold':!![],'color':_0x109f6d(0x112),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a99_0x54dbe3(Box,{'marginTop':0x1,'children':[a99_0x3b113b(Text,{'dimColor':!![],'children':_0x109f6d(0x11d)}),a99_0x3b113b(Text,{'bold':!![],'color':_0x109f6d(0x112),'children':CLI_BIN_NAME+_0x109f6d(0x11a)}),a99_0x3b113b(Text,{'dimColor':!![],'children':_0x109f6d(0x116)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4086b6,_0x3ffcf7){const _0x3f69a2=a100_0x4b2b,_0x4b2b85=_0x4086b6();while(!![]){try{const _0x3a62bf=-parseInt(_0x3f69a2(0x146))/0x1*(-parseInt(_0x3f69a2(0x148))/0x2)+parseInt(_0x3f69a2(0x140))/0x3+-parseInt(_0x3f69a2(0x139))/0x4+parseInt(_0x3f69a2(0x13a))/0x5+-parseInt(_0x3f69a2(0x142))/0x6+-parseInt(_0x3f69a2(0x143))/0x7*(parseInt(_0x3f69a2(0x147))/0x8)+parseInt(_0x3f69a2(0x13c))/0x9*(parseInt(_0x3f69a2(0x149))/0xa);if(_0x3a62bf===_0x3ffcf7)break;else _0x4b2b85['push'](_0x4b2b85['shift']());}catch(_0xd6e396){_0x4b2b85['push'](_0x4b2b85['shift']());}}}(a100_0x659c,0xa6606));function a100_0x4b2b(_0x4a634b,_0x2679af){_0x4a634b=_0x4a634b-0x139;const _0x659c64=a100_0x659c();let _0x4b2b41=_0x659c64[_0x4a634b];return _0x4b2b41;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xfe2a62,_0x3060e7,_0x21b3b4){const _0x3dde83=a100_0x4b2b,_0x21118f=normalizeText(_0xfe2a62[_0x3dde83(0x13f)],DESCRIPTION_MAX_LENGTH),_0x426bc3=normalizeText(_0xfe2a62[_0x3dde83(0x14c)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3060e7,'risk':requireWriteRisk(_0xfe2a62),'description':_0x21118f||_0x426bc3||_0x3dde83(0x13e),..._0x21b3b4?{'signal':_0x21b3b4}:{}};}function a100_0x659c(){const _0x22d316=['7414518pgWaOS','1337rXmJeQ','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','replace','1RoabSi','1936HZQXSz','1075126QEUZNH','79510JkIveO','write','trim','description','3194860pOhjBR','5335660rRrLSV','risk','153vEhAMc','high-risk-write','执行该写入操作','confirmationDescription','3066918XXqkoq','slice'];a100_0x659c=function(){return _0x22d316;};return a100_0x659c();}function requireWriteRisk(_0x3f5a94){const _0x553211=a100_0x4b2b;if(_0x3f5a94[_0x553211(0x13b)]===_0x553211(0x14a)||_0x3f5a94[_0x553211(0x13b)]===_0x553211(0x13d))return _0x3f5a94[_0x553211(0x13b)];throw new Error(_0x553211(0x144));}function normalizeText(_0xec70d,_0x48764e){const _0x319e7f=a100_0x4b2b;if(typeof _0xec70d!=='string')return'';return _0xec70d[_0x319e7f(0x145)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x319e7f(0x145)](/\s+/g,'\x20')[_0x319e7f(0x14b)]()[_0x319e7f(0x141)](0x0,_0x48764e);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a101_0x5e5d(_0x5694ef,_0x61ed39){_0x5694ef=_0x5694ef-0xc8;const _0x20c395=a101_0x20c3();let _0x5e5dd5=_0x20c395[_0x5694ef];return _0x5e5dd5;}function a101_0x20c3(){const _0x44f9ed=['679DSqbEL','split','command','95690KqpFFu','391239iCGpKf','2094453njwdiC','write','10kLWdeg','839460YSOuDs','filter','935160vMYrEx','44Loigac','48103MxwfBG','risk','trim','join','11352iWkWdd','service','writeEventSubject'];a101_0x20c3=function(){return _0x44f9ed;};return a101_0x20c3();}(function(_0x2b52f1,_0x15f454){const _0x5844ab=a101_0x5e5d,_0x3d8b30=_0x2b52f1();while(!![]){try{const _0x3fefbf=-parseInt(_0x5844ab(0xd5))/0x1*(parseInt(_0x5844ab(0xd0))/0x2)+parseInt(_0x5844ab(0xcd))/0x3+-parseInt(_0x5844ab(0xd4))/0x4*(-parseInt(_0x5844ab(0xcc))/0x5)+-parseInt(_0x5844ab(0xd3))/0x6+parseInt(_0x5844ab(0xc9))/0x7*(-parseInt(_0x5844ab(0xd9))/0x8)+parseInt(_0x5844ab(0xce))/0x9+parseInt(_0x5844ab(0xd1))/0xa;if(_0x3fefbf===_0x15f454)break;else _0x3d8b30['push'](_0x3d8b30['shift']());}catch(_0x98b0f8){_0x3d8b30['push'](_0x3d8b30['shift']());}}}(a101_0x20c3,0x1e2b8));export function canonicalLovrabetOperation(_0x32a172){const _0x313b7f=a101_0x5e5d;return[_0x32a172[_0x313b7f(0xda)],..._0x32a172[_0x313b7f(0xcb)][_0x313b7f(0xd7)]()[_0x313b7f(0xca)](/\s+/)][_0x313b7f(0xd2)](Boolean)[_0x313b7f(0xd8)]('.');}export function createLovrabetWriteMetadata(_0x3b59fa,_0x4d3694,_0x3e7df1,_0x42019d){const _0x46e4b4=a101_0x5e5d;if(_0x42019d||_0x3e7df1['ok']!==!![]||_0x3b59fa['risk']!==_0x46e4b4(0xcf)&&_0x3b59fa[_0x46e4b4(0xd6)]!=='high-risk-write')return undefined;const _0x10a5b1=_0x3b59fa[_0x46e4b4(0xc8)]?.(_0x3e7df1),_0x4739a2={'type':'lovrabet.write.completed','operation':_0x4d3694,'risk':_0x3b59fa[_0x46e4b4(0xd6)],..._0x10a5b1?{'subject':_0x10a5b1}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4739a2}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51b8f3,_0xea9db1){const _0x196b5c=a102_0x4505,_0x3c7276=_0x51b8f3();while(!![]){try{const _0x425a5f=-parseInt(_0x196b5c(0x126))/0x1*(-parseInt(_0x196b5c(0x131))/0x2)+-parseInt(_0x196b5c(0x137))/0x3*(parseInt(_0x196b5c(0x13c))/0x4)+parseInt(_0x196b5c(0x12f))/0x5*(-parseInt(_0x196b5c(0x134))/0x6)+parseInt(_0x196b5c(0x130))/0x7*(-parseInt(_0x196b5c(0x140))/0x8)+parseInt(_0x196b5c(0x132))/0x9+parseInt(_0x196b5c(0x13d))/0xa*(parseInt(_0x196b5c(0x13b))/0xb)+parseInt(_0x196b5c(0x147))/0xc*(parseInt(_0x196b5c(0x127))/0xd);if(_0x425a5f===_0xea9db1)break;else _0x3c7276['push'](_0x3c7276['shift']());}catch(_0x1aebbf){_0x3c7276['push'](_0x3c7276['shift']());}}}(a102_0x4314,0xbf822));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';function a102_0x4505(_0x4fb31e,_0x15dc7b){_0x4fb31e=_0x4fb31e-0x126;const _0x431483=a102_0x4314();let _0x4505e2=_0x431483[_0x4fb31e];return _0x4505e2;}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x3f3c44,command:_0x580313,risk:_0x164c3f,dryRun:_0x374bd5}){const _0x2d9f85=a102_0x4505;return JSON['stringify']({'ok':_0x3f3c44['ok'],'command':_0x580313,'risk':_0x164c3f,..._0x374bd5?{'dryRun':!![]}:{},..._0x3f3c44[_0x2d9f85(0x133)]!==undefined?{'data':_0x3f3c44['data']}:{},..._0x3f3c44[_0x2d9f85(0x14b)]?{'message':_0x3f3c44[_0x2d9f85(0x14b)]}:{}});}};export async function invokeLovrabet(_0x4993eb,_0x3f8745){return runSerialized(async()=>{const _0x146342=a102_0x4505;throwIfAborted(_0x3f8745[_0x146342(0x138)]);const _0x1bdd1d=await resolveLovrabetInvocation(_0x4993eb),_0x41ec5b=canonicalLovrabetOperation(_0x1bdd1d['definition']),_0x2cd220={},_0x234145=buildConfigFromFlags(_0x1bdd1d[_0x146342(0x12b)]);await initGlobalEnvironment(_0x234145);const _0x549bc4=createPipelineEnv(_0x234145,{..._0x1bdd1d['rawFlags'],'yes':_0x1bdd1d[_0x146342(0x139)][_0x146342(0x142)]===_0x146342(0x12e)?!![]:_0x1bdd1d[_0x146342(0x12b)][_0x146342(0x13f)],'nonInteractive':!![]});_0x549bc4[_0x146342(0x13e)]=_0x1bdd1d['args'],_0x549bc4[_0x146342(0x145)]=!![],_0x549bc4[_0x146342(0x146)]='high-risk-write';const _0x17cf88=withEmbeddedLifecycle(_0x1bdd1d[_0x146342(0x139)],_0x41ec5b,_0x3f8745),_0x3c6f4b=createLovrabetRunnerAdapter({'formatOutput'(_0x3ac8ff,_0x1ddf32){const _0x279b0a=_0x146342;_0x2cd220[_0x279b0a(0x12a)]=_0x3ac8ff,_0x2cd220['command']=_0x1ddf32['command'],_0x2cd220['risk']=_0x1ddf32[_0x279b0a(0x142)],_0x2cd220['format']=_0x1ddf32[_0x279b0a(0x135)],_0x2cd220[_0x279b0a(0x14a)]=_0x1ddf32[_0x279b0a(0x14a)]===!![];},async 'confirmHighRisk'(){const _0x1f47a1=_0x146342;throw new Error(_0x1f47a1(0x13a));}});try{await runCommand(_0x17cf88,_0x549bc4,_0x3c6f4b);if(!_0x2cd220[_0x146342(0x12a)]||!_0x2cd220[_0x146342(0x12c)]||!_0x2cd220[_0x146342(0x142)]||!_0x2cd220[_0x146342(0x135)])throw new Error(_0x146342(0x129));const _0x30366e=_0x3f8745['presentation']??defaultPresentation,_0x3f21d0=_0x2cd220[_0x146342(0x14a)]===!![],_0x2ed8fe={'result':_0x2cd220[_0x146342(0x12a)],'command':_0x2cd220[_0x146342(0x12c)],'operation':_0x41ec5b,'risk':_0x2cd220[_0x146342(0x142)],'format':_0x2cd220[_0x146342(0x135)],'dryRun':_0x3f21d0},_0x263794=createLovrabetWriteMetadata(_0x1bdd1d[_0x146342(0x139)],_0x41ec5b,_0x2cd220[_0x146342(0x12a)],_0x3f21d0);let _0x5c8b75;try{_0x5c8b75=await _0x30366e[_0x146342(0x149)](_0x2ed8fe);}catch(_0x39d4f3){if(!_0x263794||_0x30366e===defaultPresentation)throw _0x39d4f3;_0x5c8b75=await defaultPresentation[_0x146342(0x149)](_0x2ed8fe);}return{'operation':_0x41ec5b,'risk':_0x2cd220[_0x146342(0x142)],'mode':_0x3f21d0?_0x146342(0x136):_0x146342(0x144),'result':_0x2cd220['result'],'output':_0x5c8b75,..._0x263794?{'metadata':_0x263794}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a102_0x4314(){const _0x1b41ba=['reason','execute','isNonInteractive','riskLevel','9173148NmCHwS','confirm','present','dryRun','message','Lovrabet\x20invocation\x20aborted.','220208ISvQaK','13GtEqmj','write','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','result','rawFlags','command','aborted','high-risk-write','105085LQOjZN','56ZJGhoS','14GhMZMB','3483711gAjsZo','data','426WCamfc','format','dry-run','417TwryWh','signal','definition','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','157179WYnMzq','8128fAODYT','770lNReAt','args','yes','1234144zngGCD','AbortError','risk'];a102_0x4314=function(){return _0x1b41ba;};return a102_0x4314();}function withEmbeddedLifecycle(_0x31ce8e,_0x29b5e9,_0x5b38de){return{..._0x31ce8e,async 'execute'(_0x48a116){const _0x5a6707=a102_0x4505;return throwIfAborted(_0x5b38de[_0x5a6707(0x138)]),(_0x31ce8e[_0x5a6707(0x142)]===_0x5a6707(0x128)||_0x31ce8e[_0x5a6707(0x142)]===_0x5a6707(0x12e))&&await _0x5b38de['confirmation'][_0x5a6707(0x148)](buildLovrabetConfirmationRequest(_0x31ce8e,_0x29b5e9,_0x5b38de['signal'])),throwIfAborted(_0x5b38de[_0x5a6707(0x138)]),_0x31ce8e['execute'](_0x48a116);}};}function throwIfAborted(_0x40b696){const _0x14781e=a102_0x4505;if(_0x40b696?.[_0x14781e(0x12d)])throw _0x40b696[_0x14781e(0x143)]instanceof Error?_0x40b696[_0x14781e(0x143)]:new DOMException(_0x14781e(0x14c),_0x14781e(0x141));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0x1637a7=a103_0x49aa;(function(_0x33b36c,_0x58d205){const _0x4f4871=a103_0x49aa,_0x2965e7=_0x33b36c();while(!![]){try{const _0x2e702c=-parseInt(_0x4f4871(0xa5))/0x1*(parseInt(_0x4f4871(0xa8))/0x2)+-parseInt(_0x4f4871(0xa3))/0x3+parseInt(_0x4f4871(0xa4))/0x4*(parseInt(_0x4f4871(0xaa))/0x5)+parseInt(_0x4f4871(0x9f))/0x6+-parseInt(_0x4f4871(0xa6))/0x7*(parseInt(_0x4f4871(0xa9))/0x8)+parseInt(_0x4f4871(0xa2))/0x9*(parseInt(_0x4f4871(0xa0))/0xa)+-parseInt(_0x4f4871(0xab))/0xb;if(_0x2e702c===_0x58d205)break;else _0x2965e7['push'](_0x2965e7['shift']());}catch(_0x316d36){_0x2965e7['push'](_0x2965e7['shift']());}}}(a103_0x3d3d,0x1c19e));let tail=Promise[a103_0x1637a7(0xa7)]();function a103_0x49aa(_0x5ee941,_0x3b5b16){_0x5ee941=_0x5ee941-0x9f;const _0x3d3de0=a103_0x3d3d();let _0x49aa75=_0x3d3de0[_0x5ee941];return _0x49aa75;}export async function runSerialized(_0x83863c){const _0x51d853=a103_0x1637a7,_0x356fb2=tail;let _0x54778b;tail=new Promise(_0x2995ab=>{_0x54778b=_0x2995ab;}),await _0x356fb2[_0x51d853(0xa1)](()=>undefined);try{return await _0x83863c();}finally{_0x54778b();}}function a103_0x3d3d(){const _0x3a5582=['407847MSVgkq','8cDAgDi','124JIYNGv','61859ErxGXZ','resolve','62QuCnpi','64kMqlNY','10975HrSLVt','377102DtCDkR','779094tQrVfy','1128170wuOmdy','catch','18HFkAuN'];a103_0x3d3d=function(){return _0x3a5582;};return a103_0x3d3d();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x579197,_0x5e749c){const _0x10754c=a104_0x9e1f,_0x42537f=_0x579197();while(!![]){try{const _0x70ed04=-parseInt(_0x10754c(0xf7))/0x1+-parseInt(_0x10754c(0xfc))/0x2+parseInt(_0x10754c(0xee))/0x3*(-parseInt(_0x10754c(0xf1))/0x4)+parseInt(_0x10754c(0xfb))/0x5*(parseInt(_0x10754c(0xec))/0x6)+parseInt(_0x10754c(0xfd))/0x7+-parseInt(_0x10754c(0xf9))/0x8+-parseInt(_0x10754c(0xe9))/0x9*(parseInt(_0x10754c(0xff))/0xa);if(_0x70ed04===_0x5e749c)break;else _0x42537f['push'](_0x42537f['shift']());}catch(_0x2a03ad){_0x42537f['push'](_0x42537f['shift']());}}}(a104_0x13b6,0x6dcc9));function a104_0x13b6(){const _0x473d89=['206530VibGOS','4762737xNQGxi','assign','10rsakLn','validation','164196CrUXJA','slice','definition','4241958ubWAOf','args','2799wsIjXs','flags','../commands/registry.js','64EMCIGe','input','defaultCommand','flatMap','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','../framework/preparse.js','142097lgWXRA','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','5272904WrIQpj','unknownCommand','5GarUbr'];a104_0x13b6=function(){return _0x473d89;};return a104_0x13b6();}import a104_0x409de5 from'meow';import{findDefinition,getServiceEntry,isKnownService}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a104_0x9e1f(_0x6223c5,_0x4ece40){_0x6223c5=_0x6223c5-0xe8;const _0x13b68f=a104_0x13b6();let _0x9e1f6b=_0x13b68f[_0x6223c5];return _0x9e1f6b;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x595dd8){const _0x733e7d=a104_0x9e1f,_0xffe00c=a104_0x409de5('',{'importMeta':import.meta,'argv':_0x595dd8,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x505558=[..._0xffe00c[_0x733e7d(0xf2)]],_0x1bbdbb=_0xffe00c['flags'];await correctFlags(_0x1bbdbb);const _0x5534b2=_0x505558[0x0];if(!_0x5534b2)throw CliErrors[_0x733e7d(0xe8)](_0x733e7d(0xf8));if(!isKnownService(_0x5534b2)){const _0x3c5532=resolveDynamicServiceCommand(_0x505558,_0x1bbdbb);if(!_0x3c5532)throw CliErrors['unknownCommand'](_0x505558['join']('\x20'));return Object[_0x733e7d(0xfe)](_0x1bbdbb,_0x3c5532[_0x733e7d(0xef)]),{'definition':_0x3c5532[_0x733e7d(0xeb)],'rawFlags':_0x1bbdbb,'args':_0x3c5532[_0x733e7d(0xed)]};}const _0x49b1dd=getServiceEntry(_0x5534b2),_0x857028=_0x505558[0x1]||_0x49b1dd[_0x733e7d(0xf3)];if(!_0x857028)throw CliErrors[_0x733e7d(0xe8)](_0x733e7d(0xf5)+_0x5534b2+'\x22.');const _0x1b684a=findDefinition(_0x5534b2,_0x857028);if(!_0x1b684a)throw CliErrors[_0x733e7d(0xfa)](_0x5534b2+'\x20'+_0x857028);return{'definition':_0x1b684a,'rawFlags':_0x1bbdbb,'args':_0x505558[_0x733e7d(0xea)](0x2)};}async function correctFlags(_0x4c9e91){const _0x37c993=a104_0x9e1f;try{const {correctFlags:_0x513d58}=await import(_0x37c993(0xf6)),{getAllDefinitions:_0x19363b}=await import(_0x37c993(0xf0)),_0x28053f=_0x19363b()[_0x37c993(0xf4)](_0x4905e4=>_0x4905e4[_0x37c993(0xef)]??[]),_0x4c7dd8=_0x513d58(_0x4c9e91,_0x28053f);Object[_0x37c993(0xfe)](_0x4c9e91,_0x4c7dd8[_0x37c993(0xef)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106_0x3e724c=a106_0x40d1;(function(_0x193474,_0x528813){const _0x4a9965=a106_0x40d1,_0x423123=_0x193474();while(!![]){try{const _0x1fe258=-parseInt(_0x4a9965(0xa2))/0x1*(-parseInt(_0x4a9965(0x98))/0x2)+parseInt(_0x4a9965(0x9b))/0x3*(parseInt(_0x4a9965(0x9f))/0x4)+-parseInt(_0x4a9965(0xa4))/0x5*(parseInt(_0x4a9965(0x96))/0x6)+-parseInt(_0x4a9965(0x9a))/0x7+parseInt(_0x4a9965(0x94))/0x8+parseInt(_0x4a9965(0xab))/0x9+parseInt(_0x4a9965(0xa3))/0xa*(-parseInt(_0x4a9965(0xa6))/0xb);if(_0x1fe258===_0x528813)break;else _0x423123['push'](_0x423123['shift']());}catch(_0x2540b5){_0x423123['push'](_0x423123['shift']());}}}(a106_0x35db,0x93983));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a106_0x35db(){const _0x2230f7=['skipNpxSkillsEnvSuffix','7855839aVofKK','status','2647360GPLRSf','join','27936VFdxRK','toString','198052auyqhl','stdio','4448087YACZFY','39QBbIwW','stdout','npx','trim','42572zHpWtp','stderr','inherit','7QbqTma','8800tmLGqF','770BqnINU','unknown','979JXvCfn','exit\x20','skills','log'];a106_0x35db=function(){return _0x2230f7;};return a106_0x35db();}import{LOVRABET_SKILL_SOURCE as a106_0x1810df}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a106_0x40d1(_0x75a62a,_0x516fe6){_0x75a62a=_0x75a62a-0x93;const _0x35db1a=a106_0x35db();let _0x40d1b1=_0x35db1a[_0x75a62a];return _0x40d1b1;}export const LOVRABET_SKILL_SOURCE=a106_0x1810df;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a106_0x3e724c(0xaa)]);export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x287b6c,_0x9beac=LOVRABET_SKILL_SOURCE,_0x164586){const _0x5d72c3=a106_0x3e724c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4e6a5e=_0x164586?.[_0x5d72c3(0x99)]??_0x5d72c3(0xa1),_0xbb8483=resolveNpmBin(_0x5d72c3(0x9d)),_0x57cc28=[_0x5d72c3(0xa8),'add',_0x9beac,'-g','-y'],_0x55ca5b=[_0xbb8483,..._0x57cc28][_0x5d72c3(0x95)]('\x20');console[_0x5d72c3(0xa9)]('*\x20'+_0x55ca5b);const _0xb93dc6=spawnSync(_0xbb8483,_0x57cc28,{'cwd':_0x287b6c,'stdio':_0x4e6a5e,'env':process.env,'shell':![]});if(_0xb93dc6[_0x5d72c3(0x93)]===0x0)return{'ok':!![],'status':0x0};let _0x1395ae=_0x5d72c3(0xa7)+(_0xb93dc6[_0x5d72c3(0x93)]??_0x5d72c3(0xa5));if(_0x4e6a5e==='pipe'){const _0x23c398=_0xb93dc6[_0x5d72c3(0xa0)]?_0xb93dc6[_0x5d72c3(0xa0)][_0x5d72c3(0x97)]()[_0x5d72c3(0x9e)]():'',_0x4f5d2c=_0xb93dc6['stdout']?_0xb93dc6[_0x5d72c3(0x9c)][_0x5d72c3(0x97)]()[_0x5d72c3(0x9e)]():'';if(_0x23c398)_0x1395ae=_0x23c398;else{if(_0x4f5d2c)_0x1395ae=_0x4f5d2c;}}return{'ok':![],'status':_0xb93dc6[_0x5d72c3(0x93)]??null,'error':_0x1395ae};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x3ff452=a107_0x5680;(function(_0x218d26,_0x163410){const _0x1f6b87=a107_0x5680,_0x48f903=_0x218d26();while(!![]){try{const _0x2ac65e=parseInt(_0x1f6b87(0x1c5))/0x1*(-parseInt(_0x1f6b87(0x1c7))/0x2)+parseInt(_0x1f6b87(0x1c2))/0x3*(-parseInt(_0x1f6b87(0x1c0))/0x4)+-parseInt(_0x1f6b87(0x1c1))/0x5*(parseInt(_0x1f6b87(0x1b9))/0x6)+-parseInt(_0x1f6b87(0x1bf))/0x7+parseInt(_0x1f6b87(0x1c9))/0x8+-parseInt(_0x1f6b87(0x1c3))/0x9*(-parseInt(_0x1f6b87(0x1c4))/0xa)+parseInt(_0x1f6b87(0x1b8))/0xb;if(_0x2ac65e===_0x163410)break;else _0x48f903['push'](_0x48f903['shift']());}catch(_0x29ee37){_0x48f903['push'](_0x48f903['shift']());}}}(a107_0x3554,0x2d49e));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE='SKILL.md';function a107_0x5680(_0x12c6fa,_0x560e0b){_0x12c6fa=_0x12c6fa-0x1b6;const _0x35540b=a107_0x3554();let _0x5680d5=_0x35540b[_0x12c6fa];return _0x5680d5;}function a107_0x3554(){const _0x454430=['2oqxFpV','build','1211400liGNVS','.hg','.svn','3502598dLdkfq','30aqWwXV','coverage','node_modules','dist','.DS_Store','.git','1328943NLDrWq','16572NrqZbZ','57710fKwbXB','117QnryFQ','2451033ffTopW','10lskDbw','147542xUyPxi','.next'];a107_0x3554=function(){return _0x454430;};return a107_0x3554();}export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a107_0x3ff452(0x1bd)]);export const IGNORED_DIR_NAMES=new Set([a107_0x3ff452(0x1be),a107_0x3ff452(0x1b6),a107_0x3ff452(0x1b7),a107_0x3ff452(0x1bb),a107_0x3ff452(0x1c6),a107_0x3ff452(0x1bc),a107_0x3ff452(0x1c8),a107_0x3ff452(0x1ba),'.turbo','.cache']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x147bbb,_0x2a2595){const _0xc2793e=a108_0x471c,_0x914119=_0x147bbb();while(!![]){try{const _0x4c6c5b=-parseInt(_0xc2793e(0xbd))/0x1+-parseInt(_0xc2793e(0xb9))/0x2+parseInt(_0xc2793e(0xbb))/0x3+-parseInt(_0xc2793e(0xb1))/0x4+-parseInt(_0xc2793e(0xbc))/0x5+parseInt(_0xc2793e(0xb2))/0x6*(parseInt(_0xc2793e(0xb7))/0x7)+parseInt(_0xc2793e(0xb4))/0x8*(parseInt(_0xc2793e(0xbf))/0x9);if(_0x4c6c5b===_0x2a2595)break;else _0x914119['push'](_0x914119['shift']());}catch(_0x46c388){_0x914119['push'](_0x914119['shift']());}}}(a108_0x20e6,0x60ea9));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0xf0f6f6,_0xc178ec){const _0x420a50=a108_0x471c,_0x59b400=normalizeSkillRelativePath(_0xc178ec),_0x2e9421=realOrResolved(_0xf0f6f6),_0x187be4=resolve(_0x2e9421,..._0x59b400[_0x420a50(0xb6)]('/'));if(!isPathInside(_0x187be4,_0x2e9421))throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0xc178ec);return ensureNoSymlinkInManagedPath(_0x2e9421,_0x59b400),_0x187be4;}function a108_0x471c(_0x3505bf,_0x517543){_0x3505bf=_0x3505bf-0xb0;const _0x20e6ab=a108_0x20e6();let _0x471c6e=_0x20e6ab[_0x3505bf];return _0x471c6e;}export function ensureNoSymlinkInManagedPath(_0x4946fc,_0x46c85e){const _0x52cdd4=a108_0x471c;let _0x493bc2=_0x4946fc;for(const _0x5a06a3 of _0x46c85e['split']('/')){_0x493bc2=resolve(_0x493bc2,_0x5a06a3);const _0x83ea6a=lstatIfPresent(_0x493bc2);if(_0x83ea6a?.['isSymbolicLink']())throw CliErrors['validation'](_0x52cdd4(0xb8)+_0x46c85e);}}export function isDanglingSymlink(_0x2aac57){const _0x178662=a108_0x471c;try{return lstatSync(_0x2aac57)[_0x178662(0xb0)]();}catch{return![];}}export function resolveSymlinkTarget(_0x5003a9){const _0x2a0c02=readlinkSync(_0x5003a9);return isAbsolute(_0x2a0c02)?_0x2a0c02:resolve(dirname(_0x5003a9),_0x2a0c02);}export function isPathInside(_0x74630f,_0x410f5b){const _0x2c640d=a108_0x471c,_0xdb5430=_0x74630f[_0x2c640d(0xbe)](sep)?_0x74630f:''+_0x74630f+sep,_0x1e45d9=_0x410f5b[_0x2c640d(0xbe)](sep)?_0x410f5b:''+_0x410f5b+sep;return _0x74630f===_0x410f5b||_0xdb5430['startsWith'](_0x1e45d9);}export function realOrResolved(_0x327eda){try{return realpathSync(_0x327eda);}catch{return resolve(_0x327eda);}}function a108_0x20e6(){const _0x2606ad=['utf8','split','2316727FzqdET','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','390838tCfbiP','stringify','927495DGJviW','861455aTnceh','793704msuths','endsWith','36CCuzhY','isSymbolicLink','2610412uOQXzI','6cVlIxm','.tmp','3141720cxUSff'];a108_0x20e6=function(){return _0x2606ad;};return a108_0x20e6();}export function lstatIfPresent(_0x278d77){try{return lstatSync(_0x278d77);}catch{return undefined;}}export function writeTextAtomic(_0x1bfdab,_0x6bf5ee,_0x42166e){const _0x3c5d30=a108_0x471c;writeBytesAtomic(_0x1bfdab,Buffer['from'](_0x6bf5ee,_0x3c5d30(0xb5)),_0x42166e);}export function writeBytesAtomic(_0x4955be,_0x3b6b7e,_0x32885f){const _0x453f50=a108_0x471c,_0x1fc772=_0x4955be+_0x453f50(0xb3);try{writeFileSync(_0x1fc772,_0x3b6b7e,{'mode':_0x32885f}),renameSync(_0x1fc772,_0x4955be);}catch(_0xfe6f9b){try{rmSync(_0x1fc772,{'force':!![]});}catch{}throw _0xfe6f9b;}}export function writeJsonAtomic(_0x192bc,_0x2dfd4a){const _0x43db11=a108_0x471c;writeTextAtomic(_0x192bc,JSON[_0x43db11(0xba)](_0x2dfd4a,null,0x2)+'\x0a',0x180);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e9beb,_0x38e9f8){const _0x2de973=a109_0x1e13,_0x5aa117=_0x5e9beb();while(!![]){try{const _0x4cfefd=parseInt(_0x2de973(0xf9))/0x1*(-parseInt(_0x2de973(0xf3))/0x2)+parseInt(_0x2de973(0xf0))/0x3+-parseInt(_0x2de973(0xf8))/0x4*(parseInt(_0x2de973(0xfc))/0x5)+-parseInt(_0x2de973(0xf1))/0x6+-parseInt(_0x2de973(0xf4))/0x7+parseInt(_0x2de973(0xec))/0x8*(parseInt(_0x2de973(0xef))/0x9)+-parseInt(_0x2de973(0xf7))/0xa*(-parseInt(_0x2de973(0xf2))/0xb);if(_0x4cfefd===_0x38e9f8)break;else _0x5aa117['push'](_0x5aa117['shift']());}catch(_0x27d2ad){_0x5aa117['push'](_0x5aa117['shift']());}}}(a109_0x56b8,0xa8369));import{createHash}from'node:crypto';function a109_0x1e13(_0x4711fe,_0x78be24){_0x4711fe=_0x4711fe-0xec;const _0x56b8f9=a109_0x56b8();let _0x1e1396=_0x56b8f9[_0x4711fe];return _0x1e1396;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4961b9){const _0x45828e=a109_0x1e13;return createHash(_0x45828e(0xfa))['update'](_0x4961b9)['digest'](_0x45828e(0xed));}export function fileHash(_0x5d09b9){return bufferSha256(fileContent(_0x5d09b9));}export function bufferSha256(_0xc4cd57){const _0xed665=a109_0x1e13;return createHash(_0xed665(0xfa))[_0xed665(0xf5)](_0xc4cd57)[_0xed665(0xf6)](_0xed665(0xed));}export function fileTreeHash(_0x1f3e5b){const _0x103810=a109_0x1e13,_0x359e6d=createHash(_0x103810(0xfa));for(const _0x41ddb7 of normalizeManifestFiles(_0x1f3e5b)){_0x359e6d[_0x103810(0xf5)](_0x41ddb7[_0x103810(0xfb)]),_0x359e6d[_0x103810(0xf5)]('\x00'),_0x359e6d['update'](_0x41ddb7[_0x103810(0xfa)]),_0x359e6d[_0x103810(0xf5)]('\x00'),_0x359e6d['update'](String(_0x41ddb7[_0x103810(0xee)])),_0x359e6d[_0x103810(0xf5)]('\x00');}return _0x359e6d[_0x103810(0xf6)](_0x103810(0xed));}function a109_0x56b8(){const _0x381a5d=['325QsANDj','48FXkfFP','hex','size','871362uKMgCn','431694LzcFUD','4091040uOpdGr','1716539KkgXKQ','9956aVicKQ','8701791VzEKCF','update','digest','190AHUYZn','44452zayJLl','71pfmKaE','sha256','path'];a109_0x56b8=function(){return _0x381a5d;};return a109_0x56b8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x3ebd46=a110_0x33e9;function a110_0x2a65(){const _0x57605c=['44sUkAbi','28518216HhydUN','.agents','global','10413930UrcYMm','3824VUogEJ','6722325xsaPjK','cwd','5201430cRssKS','624147myLIyA','skills','11SXEavk','8SdBtwe','freeze','6yApoTD','33388rCphKQ','7126iZQWpY'];a110_0x2a65=function(){return _0x57605c;};return a110_0x2a65();}(function(_0x45b650,_0x57cb8a){const _0x3bfb1b=a110_0x33e9,_0x34772c=_0x45b650();while(!![]){try{const _0xce9e97=parseInt(_0x3bfb1b(0x140))/0x1*(parseInt(_0x3bfb1b(0x13e))/0x2)+-parseInt(_0x3bfb1b(0x149))/0x3*(-parseInt(_0x3bfb1b(0x14c))/0x4)+parseInt(_0x3bfb1b(0x148))/0x5*(parseInt(_0x3bfb1b(0x14e))/0x6)+parseInt(_0x3bfb1b(0x13f))/0x7*(parseInt(_0x3bfb1b(0x145))/0x8)+-parseInt(_0x3bfb1b(0x146))/0x9+parseInt(_0x3bfb1b(0x144))/0xa+parseInt(_0x3bfb1b(0x14b))/0xb*(-parseInt(_0x3bfb1b(0x141))/0xc);if(_0xce9e97===_0x57cb8a)break;else _0x34772c['push'](_0x34772c['shift']());}catch(_0x37d50f){_0x34772c['push'](_0x34772c['shift']());}}}(a110_0x2a65,0x91612));function a110_0x33e9(_0x4a01b9,_0x4fa126){_0x4a01b9=_0x4a01b9-0x13e;const _0x2a65cf=a110_0x2a65();let _0x33e945=_0x2a65cf[_0x4a01b9];return _0x33e945;}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x16cbac,_0xa08f40=a110_0x3ebd46(0x143),_0x310447={}){const _0x2d9617=a110_0x3ebd46,_0x392038=resolveSkillSyncPaths(_0x310447),_0x57e182=safePathSegment(_0x16cbac,'appCode'),_0x460fa5=_0xa08f40==='project'?[resolve(_0x310447[_0x2d9617(0x147)]??process['cwd'](),_0x2d9617(0x142),_0x2d9617(0x14a))]:runtimeAgentSkillRoots(_0x392038);return Object[_0x2d9617(0x14d)]({'scope':_0xa08f40,'appCode':_0x57e182,'skillRoots':Object[_0x2d9617(0x14d)](_0x460fa5),'managedRoot':_0x392038['managedRoot']});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111_0x431fb2=a111_0x295c;(function(_0x15a8a1,_0x386910){const _0x2cb404=a111_0x295c,_0x2260fc=_0x15a8a1();while(!![]){try{const _0x58b60e=-parseInt(_0x2cb404(0xe9))/0x1+-parseInt(_0x2cb404(0xdf))/0x2*(parseInt(_0x2cb404(0x106))/0x3)+-parseInt(_0x2cb404(0xdb))/0x4*(-parseInt(_0x2cb404(0xfb))/0x5)+-parseInt(_0x2cb404(0xda))/0x6+-parseInt(_0x2cb404(0xd8))/0x7*(-parseInt(_0x2cb404(0xee))/0x8)+-parseInt(_0x2cb404(0x105))/0x9*(-parseInt(_0x2cb404(0x100))/0xa)+-parseInt(_0x2cb404(0xd5))/0xb*(parseInt(_0x2cb404(0xf2))/0xc);if(_0x58b60e===_0x386910)break;else _0x2260fc['push'](_0x2260fc['shift']());}catch(_0x2c2297){_0x2260fc['push'](_0x2260fc['shift']());}}}(a111_0x14ff,0xd61ca));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a111_0x6a21ef from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a111_0x14ff(){const _0x1b10c1=['isDirectory','13930WTEqsd','project','4669164TmutWx','4ujAlPH','protectedLinkRoots','scope','activeSkillCodes','137446neKHKP','metadata-mismatch','company','skillRoots','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','unchanged','get','startsWith','isSymbolicLink','map','887808OyuqVI','personal','contentHash','skill','runtime-observe','5736XceAdS','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','skillCode','builtin','12BmvFYr','skipped','set','external-symlink','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','filter','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','lovrabet','created','4316810ZmwrZc','env','validation','not-managed-symlink','has','1430930TIkOJT','metadataPath','removed','pruneSkillCodes','appCode','36XCbzlf','9wTiaHT','secret-retriever','agentsSkillsDir','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','name','push','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','length','dir','1247301ZBkjLl','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'];a111_0x14ff=function(){return _0x1b10c1;};return a111_0x14ff();}function a111_0x295c(_0x5c9f4d,_0x862555){_0x5c9f4d=_0x5c9f4d-0xd1;const _0x14ff97=a111_0x14ff();let _0x295c33=_0x14ff97[_0x5c9f4d];return _0x295c33;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a111_0x6a21ef,RESERVED_PROJECT_SKILL_CODES=new Set([a111_0x431fb2(0xf9),a111_0x431fb2(0xed),a111_0x431fb2(0x107)]);export function linkEffectiveRuntimeSkills(_0x33ebb5,_0x42a4c9){const _0xdda63b=a111_0x431fb2,_0x2864cb=new Map();for(const _0x3c85e1 of _0x33ebb5){const _0x42d886=_0x3c85e1[_0xdda63b(0xec)]['skillCode'];if(!_0x42d886)continue;const _0x2497bd=_0x2864cb[_0xdda63b(0xe5)](_0x42d886);(!_0x2497bd||_0x3c85e1[_0xdda63b(0xdd)]===_0xdda63b(0xea))&&_0x2864cb[_0xdda63b(0xf4)](_0x42d886,_0x3c85e1);}const _0x65048a=[];for(const _0x27cf48 of _0x2864cb['values']()){const _0x6a8d46=requireSkillCode(_0x27cf48[_0xdda63b(0xec)]),_0x172129=readMetadataIfPresent(_0x27cf48[_0xdda63b(0x101)]);if(_0x172129?.[_0xdda63b(0x104)]!==_0x42a4c9[_0xdda63b(0x104)]||_0x172129['skillCode']!==_0x6a8d46)throw CliErrors[_0xdda63b(0xfd)](_0xdda63b(0xf6)+_0x42a4c9[_0xdda63b(0x104)]+':\x20'+_0x27cf48[_0xdda63b(0x101)]);const _0x4bb9b0=runtimeSkillLinkName(_0x42a4c9,_0x6a8d46);for(const _0x2b41e8 of _0x42a4c9[_0xdda63b(0xe2)]){_0x65048a[_0xdda63b(0xd1)](ensureManagedSymlink(resolve(_0x2b41e8,_0x4bb9b0),_0x27cf48[_0xdda63b(0xd4)],_0x42a4c9,_0x6a8d46));}}return _0x65048a;}export function pruneStaleRuntimeSkillLinks(_0x3214d8,_0x4de12f,_0x270204){const _0xb3f6e9=a111_0x431fb2,_0x578227=new Set([..._0x4de12f][_0xb3f6e9(0xe8)](_0x3345f4=>_0x3345f4['trim']())['filter'](Boolean)),_0x1431a3=_0x270204?new Set([..._0x270204][_0xb3f6e9(0xe8)](_0x5240d4=>_0x5240d4['trim']())[_0xb3f6e9(0xf7)](Boolean)):undefined,_0x58cd44=[];for(const _0x340cc6 of _0x3214d8[_0xb3f6e9(0xe2)]){for(const _0x4e8350 of managedTargetSkillLinkPaths(_0x340cc6,_0x3214d8)){const _0x4f3679=runtimeSkillCodeFromLink(_0x3214d8,_0x4e8350);if(_0x1431a3&&!_0x1431a3[_0xb3f6e9(0xff)](_0x4f3679))continue;if(_0x578227[_0xb3f6e9(0xff)](_0x4f3679))continue;_0x58cd44[_0xb3f6e9(0xd1)](removeManagedSkillLink(_0x4e8350,_0x3214d8,_0x4f3679));}}return _0x58cd44;}export function pruneStaleRuntimeSkillCache(_0x292d2d,_0x3ef3d1={}){const _0xf5b262=a111_0x431fb2,_0x3c762f=new Set([..._0x292d2d[_0xf5b262(0xde)]][_0xf5b262(0xe8)](_0x86a3c6=>_0x86a3c6['trim']())[_0xf5b262(0xf7)](Boolean)),_0x2ebcf4=_0x292d2d[_0xf5b262(0x103)]?new Set([..._0x292d2d[_0xf5b262(0x103)]][_0xf5b262(0xe8)](_0x41820c=>_0x41820c['trim']())[_0xf5b262(0xf7)](Boolean)):undefined,_0x16dae8=_0x292d2d['scopes']??[_0xf5b262(0xea),_0xf5b262(0xe1)],_0x25e163=resolve(getRuntimeSkillCacheRoot(_0x292d2d[_0xf5b262(0xfc)],_0x292d2d['accessKey'],_0x3ef3d1),safePathSegment(_0x292d2d[_0xf5b262(0x104)],'appCode')),_0x314425=[];for(const _0x57d999 of _0x16dae8){const _0x35c4f1=resolve(_0x25e163,_0x57d999);if(!existsSync(_0x35c4f1))continue;for(const _0x5bcd04 of readdirSync(_0x35c4f1,{'withFileTypes':!![]})){if(!_0x5bcd04[_0xf5b262(0xd7)]())continue;const _0x1dc1ea=_0x5bcd04['name'];if(_0x2ebcf4&&!_0x2ebcf4[_0xf5b262(0xff)](_0x1dc1ea))continue;if(_0x3c762f[_0xf5b262(0xff)](_0x1dc1ea))continue;const _0x286acb=resolve(_0x35c4f1,_0x1dc1ea),_0x426c1c=readMetadataIfPresent(resolve(_0x286acb,METADATA_FILE));if(_0x426c1c?.[_0xf5b262(0x104)]!==_0x292d2d[_0xf5b262(0x104)]||_0x426c1c['scope']!==_0x57d999||_0x426c1c[_0xf5b262(0xf0)]!==_0x1dc1ea){_0x314425[_0xf5b262(0xd1)]({'path':_0x286acb,'action':_0xf5b262(0xf3),'reason':_0xf5b262(0xe0)});continue;}if(isLinkedFromAnyRoot(_0x286acb,_0x292d2d[_0xf5b262(0xdc)]??[])){_0x314425[_0xf5b262(0xd1)]({'path':_0x286acb,'action':_0xf5b262(0xf3),'reason':'linked-from-protected-root'});continue;}removeSync(_0x286acb),_0x314425['push']({'path':_0x286acb,'action':_0xf5b262(0x102)});}}return _0x314425;}export function linkGlobalRuntimeSkills(_0x915aaa,_0x449ff0={}){const _0x2466dd=a111_0x431fb2,_0x3df526=resolveSkillSyncPaths(_0x449ff0),_0xe3d626=[];for(const _0x262119 of _0x915aaa){if(_0x262119['scope']!==_0x2466dd(0xf1))throw CliErrors[_0x2466dd(0xfd)](_0x2466dd(0xd2)+_0x262119[_0x2466dd(0xdd)]);const _0x2dbef8=requireSkillCode(_0x262119['skill']),_0x25a6ae=copyManagedSkillDirectory(_0x262119['dir'],resolve(_0x3df526[_0x2466dd(0x108)],_0x2dbef8));_0xe3d626['push']({..._0x25a6ae,'contentHash':_0x262119['contentHash']});}return _0xe3d626;}function ensureManagedSymlink(_0x5a4bf9,_0x5e4d94,_0x1de641,_0x31cc40){const _0x1bf15c=a111_0x431fb2;mkdirSync(dirname(_0x5a4bf9),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x5a4bf9)||isDanglingSymlink(_0x5a4bf9)){const _0x850dc9=lstatSync(_0x5a4bf9);if(!_0x850dc9[_0x1bf15c(0xe7)]())throw CliErrors[_0x1bf15c(0xfd)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x5a4bf9);const _0x45e40b=resolveSymlinkTarget(_0x5a4bf9);if(!isPathInside(realOrResolved(_0x45e40b),realOrResolved(_0x1de641['managedRoot'])))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x5a4bf9);if(realOrResolved(_0x45e40b)===realOrResolved(_0x5e4d94))return{'path':_0x5a4bf9,'target':_0x5e4d94,'action':_0x1bf15c(0xe4)};const _0x31567a=readMetadataIfPresent(resolve(_0x45e40b,METADATA_FILE));if(_0x1de641[_0x1bf15c(0xdd)]===_0x1bf15c(0xd9)&&(_0x31567a?.[_0x1bf15c(0x104)]!==_0x1de641[_0x1bf15c(0x104)]||_0x31567a[_0x1bf15c(0xf0)]!==_0x31cc40))throw CliErrors[_0x1bf15c(0xfd)](_0x1bf15c(0xf8)+_0x5a4bf9);return unlinkSync(_0x5a4bf9),symlinkSync(_0x5e4d94,_0x5a4bf9,'dir'),{'path':_0x5a4bf9,'target':_0x5e4d94,'action':'updated'};}return symlinkSync(_0x5e4d94,_0x5a4bf9,'dir'),{'path':_0x5a4bf9,'target':_0x5e4d94,'action':_0x1bf15c(0xfa)};}function managedTargetSkillLinkPaths(_0x29d161,_0x3aec8d){const _0x378f07=a111_0x431fb2;if(!existsSync(_0x29d161))return[];const _0x270a8c=_0x3aec8d['appCode']+'--';return readdirSync(_0x29d161,{'withFileTypes':!![]})[_0x378f07(0xf7)](_0x4adaf6=>_0x3aec8d[_0x378f07(0xdd)]==='project'||_0x4adaf6[_0x378f07(0x10a)][_0x378f07(0xe6)](_0x270a8c))[_0x378f07(0xe8)](_0x3c7f39=>resolve(_0x29d161,_0x3c7f39['name']));}function removeManagedSkillLink(_0xfb8d5f,_0x3a3819,_0x2580fd){const _0x27b937=a111_0x431fb2,_0x6e3cde=lstatIfPresent(_0xfb8d5f);if(!_0x6e3cde?.['isSymbolicLink']())return{'path':_0xfb8d5f,'action':_0x27b937(0xf3),'reason':_0x27b937(0xfe)};const _0x2d8486=resolveSymlinkTarget(_0xfb8d5f);if(!isPathInside(realOrResolved(_0x2d8486),realOrResolved(_0x3a3819['managedRoot'])))return{'path':_0xfb8d5f,'action':_0x27b937(0xf3),'reason':_0x27b937(0xf5)};const _0x2b982b=readMetadataIfPresent(resolve(_0x2d8486,METADATA_FILE));if(_0x3a3819[_0x27b937(0xdd)]==='project'&&(_0x2b982b?.[_0x27b937(0x104)]!==_0x3a3819[_0x27b937(0x104)]||_0x2b982b[_0x27b937(0xf0)]!==_0x2580fd))return{'path':_0xfb8d5f,'action':_0x27b937(0xf3),'reason':_0x27b937(0xe0)};return unlinkSync(_0xfb8d5f),{'path':_0xfb8d5f,'action':'removed'};}function isLinkedFromAnyRoot(_0x46c569,_0x4663e9){const _0x22b84f=a111_0x431fb2,_0x9e9bb9=realOrResolved(_0x46c569);for(const _0x3769fd of _0x4663e9){if(!existsSync(_0x3769fd))continue;for(const _0x105dca of readdirSync(_0x3769fd,{'withFileTypes':!![]})){if(!_0x105dca[_0x22b84f(0xe7)]())continue;const _0x316a5a=resolve(_0x3769fd,_0x105dca[_0x22b84f(0x10a)]);if(realOrResolved(resolveSymlinkTarget(_0x316a5a))===_0x9e9bb9)return!![];}}return![];}function runtimeSkillLinkName(_0x4fe883,_0x39acb6){const _0x896e0e=a111_0x431fb2,_0x4f0268=safePathSegment(_0x39acb6,_0x896e0e(0xf0));if(_0x4fe883[_0x896e0e(0xdd)]===_0x896e0e(0xd9)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x4f0268))throw CliErrors[_0x896e0e(0xfd)](_0x896e0e(0xef)+_0x4f0268);return _0x4fe883[_0x896e0e(0xdd)]===_0x896e0e(0xd9)?_0x4f0268:_0x4fe883[_0x896e0e(0x104)]+'--'+_0x4f0268;}function runtimeSkillCodeFromLink(_0x88ecd5,_0x4a5cad){const _0x94778d=a111_0x431fb2,_0x45162a=basename(_0x4a5cad);return _0x88ecd5[_0x94778d(0xdd)]==='project'?_0x45162a:_0x45162a['slice']((_0x88ecd5[_0x94778d(0x104)]+'--')[_0x94778d(0xd3)]);}export function copyManagedSkillDirectory(_0x2743a1,_0x4940d8){const _0x2c2180=a111_0x431fb2,_0x5a668d=resolve(_0x4940d8,METADATA_FILE),_0x528b87=existsSync(_0x4940d8);if(_0x528b87){const _0x9d3792=lstatSync(_0x4940d8);if(_0x9d3792['isSymbolicLink']())throw CliErrors[_0x2c2180(0xfd)](_0x2c2180(0xd6)+_0x4940d8);if(!_0x9d3792[_0x2c2180(0xd7)]())throw CliErrors['validation'](_0x2c2180(0xe3)+_0x4940d8);const _0x437b5d=readMetadataIfPresent(_0x5a668d);if(_0x437b5d?.['scope']!=='builtin')throw CliErrors[_0x2c2180(0xfd)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x4940d8);}ensureDirSync(dirname(_0x4940d8));const _0x208d26=_0x528b87?readMetadataIfPresent(_0x5a668d)?.[_0x2c2180(0xeb)]:undefined,_0x15ac46=readMetadataIfPresent(resolve(_0x2743a1,METADATA_FILE))?.['contentHash'];return _0x528b87&&removeSync(_0x4940d8),copySkillDirectory(_0x2743a1,_0x4940d8),{'path':_0x4940d8,'target':_0x2743a1,'action':!_0x528b87?'created':_0x208d26===_0x15ac46?_0x2c2180(0xe4):'updated'};}function copySkillDirectory(_0x36f38d,_0x143988){copySync(_0x36f38d,_0x143988,{'dereference':![],'overwrite':!![],'filter'(_0x9da073){const _0x7d3a58=a111_0x295c;if(lstatSync(_0x9da073)[_0x7d3a58(0xe7)]())throw CliErrors[_0x7d3a58(0xfd)](_0x7d3a58(0x109)+_0x9da073);return!![];}});}
|
|
1
|
+
const a111_0x4f2c16=a111_0x3a4b;function a111_0x48f1(){const _0xb95e75=['Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','skipped','validation','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','696enRaph','removed','skillCode','631264KPKLkE','trim','metadataPath','3044328iedShN','appCode','isDirectory','agentsSkillsDir','activeSkillCodes','linked-from-protected-root','lovrabet','project','accessKey','pruneSkillCodes','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','skill','protectedLinkRoots','values','external-symlink','metadata-mismatch','4rxRxJn','created','has','dir','isSymbolicLink','unchanged','19736343FffrRk','filter','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','map','push','updated','scopes','name','managedRoot','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','scope','slice','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','runtime-observe','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','contentHash','env','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','1091311yyDXrW','set','2053090ZmfQSp','builtin','personal','length','get','secret-retriever','1653BiXonp','6476130fDKDVo','startsWith'];a111_0x48f1=function(){return _0xb95e75;};return a111_0x48f1();}(function(_0x31b91e,_0x4de220){const _0x5ea6a6=a111_0x3a4b,_0x311963=_0x31b91e();while(!![]){try{const _0x285fa2=parseInt(_0x5ea6a6(0x117))/0x1+parseInt(_0x5ea6a6(0x126))/0x2*(-parseInt(_0x5ea6a6(0x11f))/0x3)+parseInt(_0x5ea6a6(0x13c))/0x4*(parseInt(_0x5ea6a6(0x119))/0x5)+parseInt(_0x5ea6a6(0x120))/0x6+parseInt(_0x5ea6a6(0x12c))/0x7+-parseInt(_0x5ea6a6(0x129))/0x8+-parseInt(_0x5ea6a6(0x142))/0x9;if(_0x285fa2===_0x4de220)break;else _0x311963['push'](_0x311963['shift']());}catch(_0x3bee62){_0x311963['push'](_0x311963['shift']());}}}(a111_0x48f1,0x86e9d));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a111_0x343c5c from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a111_0x3a4b(_0x5dca4e,_0x81ba10){_0x5dca4e=_0x5dca4e-0x106;const _0x48f1e1=a111_0x48f1();let _0x3a4b53=_0x48f1e1[_0x5dca4e];return _0x3a4b53;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a111_0x343c5c,RESERVED_PROJECT_SKILL_CODES=new Set([a111_0x4f2c16(0x132),a111_0x4f2c16(0x112),a111_0x4f2c16(0x11e)]);export function linkEffectiveRuntimeSkills(_0x3e8bfc,_0x3d4631){const _0x156237=a111_0x4f2c16,_0x3eb284=new Map();for(const _0x29d216 of _0x3e8bfc){const _0x3899e5=_0x29d216[_0x156237(0x137)]['skillCode'];if(!_0x3899e5)continue;const _0x146335=_0x3eb284[_0x156237(0x11d)](_0x3899e5);(!_0x146335||_0x29d216[_0x156237(0x10f)]===_0x156237(0x11b))&&_0x3eb284[_0x156237(0x118)](_0x3899e5,_0x29d216);}const _0x593f3f=[];for(const _0x493924 of _0x3eb284[_0x156237(0x139)]()){const _0x6e0653=requireSkillCode(_0x493924['skill']),_0x19e999=readMetadataIfPresent(_0x493924[_0x156237(0x12b)]);if(_0x19e999?.[_0x156237(0x12d)]!==_0x3d4631[_0x156237(0x12d)]||_0x19e999[_0x156237(0x128)]!==_0x6e0653)throw CliErrors[_0x156237(0x124)](_0x156237(0x122)+_0x3d4631[_0x156237(0x12d)]+':\x20'+_0x493924['metadataPath']);const _0x43f7af=runtimeSkillLinkName(_0x3d4631,_0x6e0653);for(const _0x4681a6 of _0x3d4631['skillRoots']){_0x593f3f[_0x156237(0x109)](ensureManagedSymlink(resolve(_0x4681a6,_0x43f7af),_0x493924[_0x156237(0x13f)],_0x3d4631,_0x6e0653));}}return _0x593f3f;}export function pruneStaleRuntimeSkillLinks(_0x451c32,_0x18a321,_0x1d75e4){const _0x261189=a111_0x4f2c16,_0x1dbde2=new Set([..._0x18a321]['map'](_0x46958b=>_0x46958b[_0x261189(0x12a)]())[_0x261189(0x106)](Boolean)),_0x23d163=_0x1d75e4?new Set([..._0x1d75e4]['map'](_0x39c5f7=>_0x39c5f7[_0x261189(0x12a)]())[_0x261189(0x106)](Boolean)):undefined,_0x5a9b0e=[];for(const _0x1dd6e0 of _0x451c32['skillRoots']){for(const _0x1a3a52 of managedTargetSkillLinkPaths(_0x1dd6e0,_0x451c32)){const _0x2011dd=runtimeSkillCodeFromLink(_0x451c32,_0x1a3a52);if(_0x23d163&&!_0x23d163[_0x261189(0x13e)](_0x2011dd))continue;if(_0x1dbde2[_0x261189(0x13e)](_0x2011dd))continue;_0x5a9b0e[_0x261189(0x109)](removeManagedSkillLink(_0x1a3a52,_0x451c32,_0x2011dd));}}return _0x5a9b0e;}export function pruneStaleRuntimeSkillCache(_0x172a34,_0x270dd3={}){const _0x4f94e7=a111_0x4f2c16,_0x7bf64d=new Set([..._0x172a34[_0x4f94e7(0x130)]][_0x4f94e7(0x108)](_0x3d2b5d=>_0x3d2b5d['trim']())[_0x4f94e7(0x106)](Boolean)),_0x170450=_0x172a34['pruneSkillCodes']?new Set([..._0x172a34[_0x4f94e7(0x135)]][_0x4f94e7(0x108)](_0x16d7fa=>_0x16d7fa[_0x4f94e7(0x12a)]())[_0x4f94e7(0x106)](Boolean)):undefined,_0x2fc0b9=_0x172a34[_0x4f94e7(0x10b)]??['personal','company'],_0x16136b=resolve(getRuntimeSkillCacheRoot(_0x172a34[_0x4f94e7(0x115)],_0x172a34[_0x4f94e7(0x134)],_0x270dd3),safePathSegment(_0x172a34['appCode'],_0x4f94e7(0x12d))),_0x523a9c=[];for(const _0x2e3e19 of _0x2fc0b9){const _0x414b2b=resolve(_0x16136b,_0x2e3e19);if(!existsSync(_0x414b2b))continue;for(const _0x512ae1 of readdirSync(_0x414b2b,{'withFileTypes':!![]})){if(!_0x512ae1[_0x4f94e7(0x12e)]())continue;const _0x12ec24=_0x512ae1['name'];if(_0x170450&&!_0x170450['has'](_0x12ec24))continue;if(_0x7bf64d[_0x4f94e7(0x13e)](_0x12ec24))continue;const _0x29a443=resolve(_0x414b2b,_0x12ec24),_0x58ddaa=readMetadataIfPresent(resolve(_0x29a443,METADATA_FILE));if(_0x58ddaa?.[_0x4f94e7(0x12d)]!==_0x172a34[_0x4f94e7(0x12d)]||_0x58ddaa['scope']!==_0x2e3e19||_0x58ddaa[_0x4f94e7(0x128)]!==_0x12ec24){_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':_0x4f94e7(0x123),'reason':_0x4f94e7(0x13b)});continue;}if(isLinkedFromAnyRoot(_0x29a443,_0x172a34[_0x4f94e7(0x138)]??[])){_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':_0x4f94e7(0x123),'reason':_0x4f94e7(0x131)});continue;}removeSync(_0x29a443),_0x523a9c[_0x4f94e7(0x109)]({'path':_0x29a443,'action':'removed'});}}return _0x523a9c;}export function linkGlobalRuntimeSkills(_0x30fd7b,_0x5db20d={}){const _0x1f352b=a111_0x4f2c16,_0x1ad368=resolveSkillSyncPaths(_0x5db20d),_0x15ba60=[];for(const _0x2a56f7 of _0x30fd7b){if(_0x2a56f7[_0x1f352b(0x10f)]!=='builtin')throw CliErrors[_0x1f352b(0x124)](_0x1f352b(0x116)+_0x2a56f7[_0x1f352b(0x10f)]);const _0xf842e3=requireSkillCode(_0x2a56f7[_0x1f352b(0x137)]),_0x16744a=copyManagedSkillDirectory(_0x2a56f7[_0x1f352b(0x13f)],resolve(_0x1ad368[_0x1f352b(0x12f)],_0xf842e3));_0x15ba60[_0x1f352b(0x109)]({..._0x16744a,'contentHash':_0x2a56f7[_0x1f352b(0x114)]});}return _0x15ba60;}function ensureManagedSymlink(_0x37bdd1,_0x566ac0,_0x695322,_0x1eb911){const _0x29062a=a111_0x4f2c16;mkdirSync(dirname(_0x37bdd1),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x37bdd1)||isDanglingSymlink(_0x37bdd1)){const _0x1ff5bd=lstatSync(_0x37bdd1);if(!_0x1ff5bd['isSymbolicLink']())throw CliErrors[_0x29062a(0x124)](_0x29062a(0x113)+_0x37bdd1);const _0x54ca04=resolveSymlinkTarget(_0x37bdd1);if(!isPathInside(realOrResolved(_0x54ca04),realOrResolved(_0x695322[_0x29062a(0x10d)])))throw CliErrors[_0x29062a(0x124)](_0x29062a(0x136)+_0x37bdd1);if(realOrResolved(_0x54ca04)===realOrResolved(_0x566ac0))return{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x141)};const _0x5be9d2=readMetadataIfPresent(resolve(_0x54ca04,METADATA_FILE));if(_0x695322[_0x29062a(0x10f)]===_0x29062a(0x133)&&(_0x5be9d2?.[_0x29062a(0x12d)]!==_0x695322[_0x29062a(0x12d)]||_0x5be9d2[_0x29062a(0x128)]!==_0x1eb911))throw CliErrors['validation'](_0x29062a(0x10e)+_0x37bdd1);return unlinkSync(_0x37bdd1),symlinkSync(_0x566ac0,_0x37bdd1,_0x29062a(0x13f)),{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x10a)};}return symlinkSync(_0x566ac0,_0x37bdd1,_0x29062a(0x13f)),{'path':_0x37bdd1,'target':_0x566ac0,'action':_0x29062a(0x13d)};}function managedTargetSkillLinkPaths(_0xb7a8d7,_0x46f390){const _0x352eb8=a111_0x4f2c16;if(!existsSync(_0xb7a8d7))return[];const _0x4f05ff=_0x46f390[_0x352eb8(0x12d)]+'--';return readdirSync(_0xb7a8d7,{'withFileTypes':!![]})[_0x352eb8(0x106)](_0x1b8122=>_0x46f390['scope']==='project'||_0x1b8122[_0x352eb8(0x10c)][_0x352eb8(0x121)](_0x4f05ff))['map'](_0xdff138=>resolve(_0xb7a8d7,_0xdff138[_0x352eb8(0x10c)]));}function removeManagedSkillLink(_0x349971,_0x1a1eba,_0x57e56e){const _0x3f1cae=a111_0x4f2c16,_0x1f851c=lstatIfPresent(_0x349971);if(!_0x1f851c?.[_0x3f1cae(0x140)]())return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':'not-managed-symlink'};const _0x308a0d=resolveSymlinkTarget(_0x349971);if(!isPathInside(realOrResolved(_0x308a0d),realOrResolved(_0x1a1eba['managedRoot'])))return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':_0x3f1cae(0x13a)};const _0x5883a2=readMetadataIfPresent(resolve(_0x308a0d,METADATA_FILE));if(_0x1a1eba['scope']==='project'&&(_0x5883a2?.[_0x3f1cae(0x12d)]!==_0x1a1eba[_0x3f1cae(0x12d)]||_0x5883a2[_0x3f1cae(0x128)]!==_0x57e56e))return{'path':_0x349971,'action':_0x3f1cae(0x123),'reason':'metadata-mismatch'};return unlinkSync(_0x349971),{'path':_0x349971,'action':_0x3f1cae(0x127)};}function isLinkedFromAnyRoot(_0x39d375,_0xeb2e9b){const _0x24be15=a111_0x4f2c16,_0x432649=realOrResolved(_0x39d375);for(const _0x31b9af of _0xeb2e9b){if(!existsSync(_0x31b9af))continue;for(const _0x12b556 of readdirSync(_0x31b9af,{'withFileTypes':!![]})){if(!_0x12b556[_0x24be15(0x140)]())continue;const _0x4fdff2=resolve(_0x31b9af,_0x12b556[_0x24be15(0x10c)]);if(realOrResolved(resolveSymlinkTarget(_0x4fdff2))===_0x432649)return!![];}}return![];}function runtimeSkillLinkName(_0x11a579,_0xadf1b9){const _0x398f52=a111_0x4f2c16,_0x154c17=safePathSegment(_0xadf1b9,_0x398f52(0x128));if(_0x11a579[_0x398f52(0x10f)]===_0x398f52(0x133)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x154c17))throw CliErrors['validation'](_0x398f52(0x125)+_0x154c17);return _0x11a579[_0x398f52(0x10f)]===_0x398f52(0x133)?_0x154c17:_0x11a579['appCode']+'--'+_0x154c17;}function runtimeSkillCodeFromLink(_0x130a62,_0x4b54a9){const _0x440b8d=a111_0x4f2c16,_0x24c360=basename(_0x4b54a9);return _0x130a62[_0x440b8d(0x10f)]===_0x440b8d(0x133)?_0x24c360:_0x24c360[_0x440b8d(0x110)]((_0x130a62[_0x440b8d(0x12d)]+'--')[_0x440b8d(0x11c)]);}export function copyManagedSkillDirectory(_0x18c076,_0x53bc72){const _0x2b65a3=a111_0x4f2c16,_0x50aa97=resolve(_0x53bc72,METADATA_FILE),_0x425094=existsSync(_0x53bc72);if(_0x425094){const _0x46e414=lstatSync(_0x53bc72);if(_0x46e414[_0x2b65a3(0x140)]())throw CliErrors[_0x2b65a3(0x124)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x53bc72);if(!_0x46e414['isDirectory']())throw CliErrors[_0x2b65a3(0x124)](_0x2b65a3(0x111)+_0x53bc72);const _0x3fec6c=readMetadataIfPresent(_0x50aa97);if(_0x3fec6c?.[_0x2b65a3(0x10f)]!==_0x2b65a3(0x11a))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x53bc72);}ensureDirSync(dirname(_0x53bc72));const _0x2c8fe1=_0x425094?readMetadataIfPresent(_0x50aa97)?.['contentHash']:undefined,_0x2906fc=readMetadataIfPresent(resolve(_0x18c076,METADATA_FILE))?.[_0x2b65a3(0x114)];return _0x425094&&removeSync(_0x53bc72),copySkillDirectory(_0x18c076,_0x53bc72),{'path':_0x53bc72,'target':_0x18c076,'action':!_0x425094?_0x2b65a3(0x13d):_0x2c8fe1===_0x2906fc?_0x2b65a3(0x141):_0x2b65a3(0x10a)};}function copySkillDirectory(_0x29d038,_0x25d097){copySync(_0x29d038,_0x25d097,{'dereference':![],'overwrite':!![],'filter'(_0x145e45){const _0x208b6b=a111_0x3a4b;if(lstatSync(_0x145e45)[_0x208b6b(0x140)]())throw CliErrors['validation'](_0x208b6b(0x107)+_0x145e45);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x421343,_0x44fdb8){const _0x1a6960=a112_0x19e5,_0x49153e=_0x421343();while(!![]){try{const _0x5adfad=-parseInt(_0x1a6960(0x14a))/0x1+parseInt(_0x1a6960(0x135))/0x2*(parseInt(_0x1a6960(0x147))/0x3)+parseInt(_0x1a6960(0x146))/0x4*(-parseInt(_0x1a6960(0x150))/0x5)+-parseInt(_0x1a6960(0x149))/0x6+-parseInt(_0x1a6960(0x140))/0x7*(parseInt(_0x1a6960(0x141))/0x8)+parseInt(_0x1a6960(0x145))/0x9+parseInt(_0x1a6960(0x14b))/0xa;if(_0x5adfad===_0x44fdb8)break;else _0x49153e['push'](_0x49153e['shift']());}catch(_0x531c9a){_0x49153e['push'](_0x49153e['shift']());}}}(a112_0x1de1,0x67bf1));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';function a112_0x19e5(_0x3d38e8,_0x222669){_0x3d38e8=_0x3d38e8-0x12f;const _0x1de153=a112_0x1de1();let _0x19e5c9=_0x1de153[_0x3d38e8];return _0x19e5c9;}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x533a4f,_0x2bdd8e,_0x394a5a={}){const _0x2829ef=a112_0x19e5,_0x23406a=safePathSegment(_0x533a4f[_0x2829ef(0x137)],_0x2829ef(0x137));if(_0x2bdd8e[_0x2829ef(0x137)]!==_0x23406a)throw CliErrors[_0x2829ef(0x132)](_0x2829ef(0x142)+_0x2bdd8e[_0x2829ef(0x137)]+'\x20!=\x20'+_0x23406a);const _0x2bd500=normalizeRuntimeSkillScopes(_0x533a4f[_0x2829ef(0x13e)]),_0x5b40b9=new Set(_0x2bd500),_0x1e7a94=_0x533a4f[_0x2829ef(0x155)]?.[_0x2829ef(0x153)](),_0x143f2b=new Map(),_0x11c7cc=resolve(getRuntimeSkillCacheRoot(_0x533a4f[_0x2829ef(0x136)],_0x533a4f[_0x2829ef(0x152)],_0x394a5a),_0x23406a);for(const _0x3504c8 of _0x2bd500){for(const _0x1d55c9 of localSkillEntryDirs(resolve(_0x11c7cc,_0x3504c8))){collectLocalRuntimeSkill(_0x143f2b,_0x1d55c9,{'appCode':_0x23406a,'scopes':_0x5b40b9,'code':_0x1e7a94,'source':'cache'});}}for(const _0x4708c7 of _0x2bdd8e[_0x2829ef(0x144)]){for(const _0xd9968c of localSkillLinkCandidates(_0x4708c7,_0x2bdd8e,_0x5b40b9)){collectLocalRuntimeSkill(_0x143f2b,_0xd9968c,{'appCode':_0x23406a,'scopes':_0x5b40b9,'code':_0x1e7a94,'source':'link','linkedPath':_0xd9968c});}}return Array['from'](_0x143f2b[_0x2829ef(0x133)]())[_0x2829ef(0x12f)](compareLocalRuntimeSkills);}function a112_0x1de1(){const _0xf9c370=['cache','sort','get','has','validation','values','startsWith','2etaKWy','env','appCode','linkedPath','skillCode','localeCompare','metadataPath','builtin','tags','scopes','name','91mUebLN','114344FHepJZ','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','isDirectory','skillRoots','5320008BIHttU','7528JWypYj','1582605FtwUDq','filter','3590238ErVGjz','519865MEyQRv','14421890OIOObP','includes','dir','project','source','2210ndXKvs','linkedPaths','accessKey','trim','push','code','isSymbolicLink','skillMdPath','isArray','scope'];a112_0x1de1=function(){return _0xf9c370;};return a112_0x1de1();}function localSkillEntryDirs(_0x176596){const _0x5d718c=a112_0x19e5;if(!existsSync(_0x176596))return[];return readdirSync(_0x176596,{'withFileTypes':!![]})[_0x5d718c(0x148)](_0x3b8b62=>_0x3b8b62['isDirectory']()||_0x3b8b62[_0x5d718c(0x156)]())['map'](_0x100fb3=>resolve(_0x176596,_0x100fb3[_0x5d718c(0x13f)]));}function localSkillLinkCandidates(_0x38a3be,_0x1d5fc2,_0x5693d5){const _0x2deaae=a112_0x19e5;if(!existsSync(_0x38a3be))return[];const _0x1d8cbd=_0x1d5fc2[_0x2deaae(0x137)]+'--';return readdirSync(_0x38a3be,{'withFileTypes':!![]})[_0x2deaae(0x148)](_0x4d7061=>_0x4d7061[_0x2deaae(0x143)]()||_0x4d7061[_0x2deaae(0x156)]())[_0x2deaae(0x148)](_0x311d22=>_0x1d5fc2[_0x2deaae(0x159)]===_0x2deaae(0x14e)||_0x311d22[_0x2deaae(0x13f)][_0x2deaae(0x134)](_0x1d8cbd)||_0x5693d5['has'](_0x2deaae(0x13c)))['map'](_0xedb5e8=>resolve(_0x38a3be,_0xedb5e8[_0x2deaae(0x13f)]));}function collectLocalRuntimeSkill(_0xa4b593,_0x121ab8,_0x3dbf13){const _0x114022=a112_0x19e5,_0x2fc9d5=resolve(_0x121ab8,METADATA_FILE),_0x5c4485=readMetadataIfPresent(_0x2fc9d5);if(!_0x5c4485)return;if(_0x5c4485['appCode']!==_0x3dbf13[_0x114022(0x137)])return;if(!isRuntimeSkillScope(_0x5c4485[_0x114022(0x159)])||!_0x3dbf13[_0x114022(0x13e)][_0x114022(0x131)](_0x5c4485[_0x114022(0x159)]))return;const _0x1d497a=_0x5c4485['skillCode']?.[_0x114022(0x153)]();if(!_0x1d497a)return;if(_0x3dbf13[_0x114022(0x155)]&&_0x1d497a!==_0x3dbf13[_0x114022(0x155)])return;const _0x3f2bc5=_0x5c4485[_0x114022(0x159)]+':'+_0x1d497a,_0x5640a8=_0x3dbf13[_0x114022(0x138)]?[_0x3dbf13[_0x114022(0x138)]]:[],_0x2ab263=_0xa4b593[_0x114022(0x130)](_0x3f2bc5);if(_0x2ab263){_0x3dbf13['source']===_0x114022(0x15a)&&(_0x2ab263[_0x114022(0x14d)]=_0x121ab8,_0x2ab263['cacheDir']=_0x121ab8,_0x2ab263[_0x114022(0x157)]=resolve(_0x121ab8,SKILL_FILE),_0x2ab263[_0x114022(0x13b)]=_0x2fc9d5);for(const _0x5089da of _0x5640a8){!_0x2ab263[_0x114022(0x151)][_0x114022(0x14c)](_0x5089da)&&_0x2ab263[_0x114022(0x151)][_0x114022(0x154)](_0x5089da);}_0x2ab263[_0x114022(0x151)][_0x114022(0x12f)]();return;}_0xa4b593['set'](_0x3f2bc5,{..._0x5c4485,'tags':Array[_0x114022(0x158)](_0x5c4485['tags'])?_0x5c4485[_0x114022(0x13d)]:[],'scope':_0x5c4485[_0x114022(0x159)],'source':'local','dir':_0x121ab8,'cacheDir':_0x3dbf13[_0x114022(0x14f)]==='cache'?_0x121ab8:undefined,'skillMdPath':resolve(_0x121ab8,SKILL_FILE),'metadataPath':_0x2fc9d5,'linkedPaths':_0x5640a8});}function compareLocalRuntimeSkills(_0x4c36e8,_0x5ba35a){const _0x9fbb81=a112_0x19e5,_0x1d48c4={'personal':0x0,'company':0x1,'builtin':0x2};return _0x1d48c4[_0x4c36e8[_0x9fbb81(0x159)]]-_0x1d48c4[_0x5ba35a['scope']]||_0x4c36e8[_0x9fbb81(0x139)][_0x9fbb81(0x13a)](_0x5ba35a[_0x9fbb81(0x139)])||_0x4c36e8['dir'][_0x9fbb81(0x13a)](_0x5ba35a[_0x9fbb81(0x14d)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55996f,_0x4d046b){const _0x3c639f=a113_0xa9ff,_0x44d50c=_0x55996f();while(!![]){try{const _0x314a67=parseInt(_0x3c639f(0xc2))/0x1*(-parseInt(_0x3c639f(0xc5))/0x2)+parseInt(_0x3c639f(0xc4))/0x3*(-parseInt(_0x3c639f(0xd9))/0x4)+-parseInt(_0x3c639f(0xcf))/0x5+parseInt(_0x3c639f(0xbb))/0x6+parseInt(_0x3c639f(0xdf))/0x7*(parseInt(_0x3c639f(0xd0))/0x8)+parseInt(_0x3c639f(0xba))/0x9*(-parseInt(_0x3c639f(0xc9))/0xa)+-parseInt(_0x3c639f(0xd5))/0xb*(-parseInt(_0x3c639f(0xce))/0xc);if(_0x314a67===_0x4d046b)break;else _0x44d50c['push'](_0x44d50c['shift']());}catch(_0x272f0e){_0x44d50c['push'](_0x44d50c['shift']());}}}(a113_0x59ab,0x96fcb));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0xf3664c){const _0x58dbff=a113_0xa9ff;return _0xf3664c[_0x58dbff(0xc0)]??Buffer[_0x58dbff(0xbf)](_0xf3664c['content']??'',_0x58dbff(0xc8));}function a113_0x59ab(){const _0x303b75=['name','16569aqxHnI','316782MNlcTP','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','includes','split','from','bytes','Skill\x20file\x20sha256\x20is\x20invalid:\x20','283uTfFoD','sha256','3lRhucq','8130OjpWxY','trim','sort','utf8','70DldiGW','object','isSafeInteger','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','Duplicate\x20Skill\x20file\x20path:\x20','2856WFypaM','5922910ZBfWtp','3376968VfxViY','replace','isDirectory','toString','content','142549kWhOMT','localeCompare','isSymbolicLink','isFile','2371412iOEGya','set','size','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','path','Skill\x20file\x20size\x20is\x20invalid:\x20','7NFXBGF','Skill\x20file\x20path\x20must\x20be\x20text.','validation','string','push','Unsafe\x20Skill\x20file\x20path:\x20','test','has','toLowerCase','length'];a113_0x59ab=function(){return _0x303b75;};return a113_0x59ab();}export function fileText(_0x374274){const _0xb2cfbd=a113_0xa9ff;return fileContent(_0x374274)[_0xb2cfbd(0xd3)](_0xb2cfbd(0xc8));}function a113_0xa9ff(_0x318050,_0x274e55){_0x318050=_0x318050-0xb9;const _0x59ab14=a113_0x59ab();let _0xa9ff5e=_0x59ab14[_0x318050];return _0xa9ff5e;}export function normalizeLocalFiles(_0x1dc17a){const _0x3c4235=a113_0xa9ff;if(!Array['isArray'](_0x1dc17a)||_0x1dc17a['length']===0x0)return[];const _0x55765e=new Map();for(const _0xf5a699 of _0x1dc17a){if(!_0xf5a699||typeof _0xf5a699!==_0x3c4235(0xca)||typeof _0xf5a699[_0x3c4235(0xdd)]!==_0x3c4235(0xe2))throw CliErrors[_0x3c4235(0xe1)](_0x3c4235(0xe0));const _0x24e232=normalizeSkillRelativePath(_0xf5a699['path']);if(_0x55765e[_0x3c4235(0xe6)](_0x24e232))throw CliErrors[_0x3c4235(0xe1)](_0x3c4235(0xcd)+_0x24e232);if(_0xf5a699[_0x3c4235(0xc0)]!==undefined&&!Buffer['isBuffer'](_0xf5a699['bytes']))throw CliErrors[_0x3c4235(0xe1)](_0x3c4235(0xdc)+_0x24e232);if(_0xf5a699['bytes']===undefined&&typeof _0xf5a699[_0x3c4235(0xd4)]!==_0x3c4235(0xe2))throw CliErrors[_0x3c4235(0xe1)](_0x3c4235(0xcc)+_0x24e232);const _0x1ab6b7=fileContent(_0xf5a699);_0x55765e[_0x3c4235(0xda)](_0x24e232,{'path':_0x24e232,'bytes':_0x1ab6b7});}return Array[_0x3c4235(0xbf)](_0x55765e['values']())[_0x3c4235(0xc7)](compareSkillFiles);}export function normalizeManifestFiles(_0x45615c){const _0x390172=a113_0xa9ff;if(!Array['isArray'](_0x45615c)||_0x45615c[_0x390172(0xe8)]===0x0)return[];const _0x1eaf21=new Map();for(const _0x2033e8 of _0x45615c){if(!_0x2033e8||typeof _0x2033e8!==_0x390172(0xca)||typeof _0x2033e8['path']!==_0x390172(0xe2))throw CliErrors[_0x390172(0xe1)](_0x390172(0xe0));const _0x521e64=normalizeSkillRelativePath(_0x2033e8[_0x390172(0xdd)]);if(_0x1eaf21[_0x390172(0xe6)](_0x521e64))throw CliErrors[_0x390172(0xe1)](_0x390172(0xcd)+_0x521e64);if(!isSha256Hex(_0x2033e8[_0x390172(0xc3)]))throw CliErrors['validation'](_0x390172(0xc1)+_0x521e64);if(!Number[_0x390172(0xcb)](_0x2033e8[_0x390172(0xdb)])||_0x2033e8[_0x390172(0xdb)]<0x0)throw CliErrors[_0x390172(0xe1)](_0x390172(0xde)+_0x521e64);_0x1eaf21[_0x390172(0xda)](_0x521e64,{'path':_0x521e64,'sha256':_0x2033e8[_0x390172(0xc3)][_0x390172(0xe7)](),'size':_0x2033e8[_0x390172(0xdb)]});}return Array[_0x390172(0xbf)](_0x1eaf21['values']())[_0x390172(0xc7)](compareSkillFiles);}export function scanSkillDirectory(_0x1afd6a){const _0x2853fd=realpathSync(_0x1afd6a),_0x1879c0=[];function _0x392e98(_0x3bd88e){const _0x11c4a6=a113_0xa9ff,_0x2f4a5e=readdirSync(_0x3bd88e,{'withFileTypes':!![]})[_0x11c4a6(0xc7)]((_0x15c013,_0x459449)=>_0x15c013[_0x11c4a6(0xb9)][_0x11c4a6(0xd6)](_0x459449['name']));for(const _0x167c8b of _0x2f4a5e){if(_0x167c8b[_0x11c4a6(0xd2)]()&&IGNORED_DIR_NAMES['has'](_0x167c8b['name']))continue;if(IGNORED_FILE_NAMES[_0x11c4a6(0xe6)](_0x167c8b[_0x11c4a6(0xb9)]))continue;const _0x3d52c9=resolve(_0x3bd88e,_0x167c8b[_0x11c4a6(0xb9)]);if(_0x167c8b[_0x11c4a6(0xd7)]())throw CliErrors[_0x11c4a6(0xe1)](_0x11c4a6(0xbc)+_0x3d52c9);const _0x2b299b=toPosixPath(relative(_0x2853fd,_0x3d52c9));if(_0x167c8b['isDirectory']()){_0x392e98(_0x3d52c9);continue;}if(!_0x167c8b[_0x11c4a6(0xd8)]())continue;validateSkillRelativePath(_0x2b299b);const _0x1c9560=readFileSync(_0x3d52c9);_0x1879c0[_0x11c4a6(0xe3)]({'path':_0x2b299b,'bytes':_0x1c9560});}}return _0x392e98(_0x2853fd),normalizeLocalFiles(_0x1879c0);}export function compareSkillFiles(_0x3da833,_0x16f7ee){const _0x1ea38b=a113_0xa9ff;if(_0x3da833[_0x1ea38b(0xdd)]===SKILL_FILE)return _0x16f7ee[_0x1ea38b(0xdd)]===SKILL_FILE?0x0:-0x1;if(_0x16f7ee[_0x1ea38b(0xdd)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer['from'](_0x3da833[_0x1ea38b(0xdd)],_0x1ea38b(0xc8)),Buffer[_0x1ea38b(0xbf)](_0x16f7ee[_0x1ea38b(0xdd)],_0x1ea38b(0xc8)));}export function normalizeSkillRelativePath(_0x1e20ea){const _0x42fd22=a113_0xa9ff,_0x4942f7=toPosixPath(_0x1e20ea[_0x42fd22(0xc6)]());return validateSkillRelativePath(_0x4942f7),_0x4942f7;}export function validateSkillRelativePath(_0x5c9161){const _0x35eda8=a113_0xa9ff;if(!_0x5c9161||_0x5c9161['startsWith']('/')||_0x5c9161[_0x35eda8(0xbd)]('//'))throw CliErrors[_0x35eda8(0xe1)](_0x35eda8(0xe4)+_0x5c9161);for(const _0x46fab3 of _0x5c9161[_0x35eda8(0xbe)]('/')){if(!_0x46fab3||_0x46fab3==='.'||_0x46fab3==='..')throw CliErrors[_0x35eda8(0xe1)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x5c9161);}}export function toPosixPath(_0x119383){const _0x292821=a113_0xa9ff;return _0x119383[_0x292821(0xd1)](/\\/g,'/');}export function isSha256Hex(_0x88bf12){const _0x140934=a113_0xa9ff;return typeof _0x88bf12===_0x140934(0xe2)&&/^[a-fA-F0-9]{64}$/[_0x140934(0xe5)](_0x88bf12);}
|