@lovrabet/lovrabet-cli 2.1.8-beta.2 → 2.1.8
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/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.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/schema.js +1 -1
- package/lib/commands/service/dynamic.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/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/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/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.js +1 -1
- package/lib/help.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/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/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
|
-
const a88_0x521ff5=a88_0x8b21;(function(_0x48f39a,_0x2e1ac7){const _0x27ecc4=a88_0x8b21,_0x34cdc2=_0x48f39a();while(!![]){try{const _0x96bb6c=-parseInt(_0x27ecc4(0x1a3))/0x1*(parseInt(_0x27ecc4(0x1ad))/0x2)+parseInt(_0x27ecc4(0x1a9))/0x3+parseInt(_0x27ecc4(0x1c3))/0x4*(-parseInt(_0x27ecc4(0x1b0))/0x5)+parseInt(_0x27ecc4(0x1b5))/0x6+-parseInt(_0x27ecc4(0x1b4))/0x7*(parseInt(_0x27ecc4(0x1bf))/0x8)+parseInt(_0x27ecc4(0x191))/0x9+parseInt(_0x27ecc4(0x1ca))/0xa*(parseInt(_0x27ecc4(0x1b2))/0xb);if(_0x96bb6c===_0x2e1ac7)break;else _0x34cdc2['push'](_0x34cdc2['shift']());}catch(_0x354bdb){_0x34cdc2['push'](_0x34cdc2['shift']());}}}(a88_0x5a44,0x8b375));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 a88_0x5a44(){const _0x5e08ed=['update','defaultApp','app','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','production','isNonInteractive','APPCODE','../core/api-client.js','6370758XxhSlJ','ACCESS_KEY','command','requiresAuth','ClientAk','defaultPageSize','currentApp','execute','has','error','appcode','authRequired','Set\x20accessKey\x20in\x20','validation','string','nonInteractive','../core/sdk-client.js','newConfigFileName','34kRQSka','catch','resolve','appCode','includes','service','799359RjzAUX','format','cancelled','env','5868WRlSak','filter','pretty','50075ftDlBh','High-risk\x20operation\x20`','81169fSLhyC','appCodeSource','7CzNDTD','2140218dFpAra','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pageSize','../commands/app/remote-source.js','rawFlags','Run\x20`','doctor','accessKey','name','object','7788552ChrxTK','items','mergedCli','trim','108fBgRsM','requiresAppCode','.appcode\x20to\x20','\x20or\x20pass\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','configMissing','_notice','790lNOJaN','schema'];a88_0x5a44=function(){return _0x5e08ed;};return a88_0x5a44();}function a88_0x8b21(_0x5e6020,_0x5e79c7){_0x5e6020=_0x5e6020-0x18c;const _0x5a446e=a88_0x5a44();let _0x8b2192=_0x5a446e[_0x5e6020];return _0x8b2192;}import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xf85bf1){const _0x43a605=a88_0x8b21;return void _0xf85bf1,AUTH_MODE[_0x43a605(0x195)];}export function createPipelineEnv(_0x50c67e,_0x20f057){const _0x4e5cb3=a88_0x8b21,_0x9f4ecf=typeof _0x20f057[_0x4e5cb3(0x1ce)]===_0x4e5cb3(0x19f)&&_0x20f057[_0x4e5cb3(0x1ce)][_0x4e5cb3(0x1c2)]();return{'rawFlags':_0x20f057,'appCode':_0x50c67e['appCode']||productEnv('APPCODE')||(_0x9f4ecf?undefined:readAppCodeFromConfig()),'appCodeSource':_0x50c67e['appCodeSource'],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x20f057),'defaultFormat':_0x50c67e[_0x4e5cb3(0x1aa)],'defaultPageSize':_0x50c67e[_0x4e5cb3(0x1b7)],'defaultVerbose':_0x50c67e['verbose'],'riskLevel':_0x50c67e['riskLevel'],'accessKey':_0x50c67e[_0x4e5cb3(0x1bc)],'env':_0x50c67e[_0x4e5cb3(0x1ac)],'mergedCli':{'defaultApp':_0x50c67e[_0x4e5cb3(0x1cd)],'currentApp':_0x50c67e[_0x4e5cb3(0x197)],'appCode':_0x50c67e[_0x4e5cb3(0x1a6)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x521ff5(0x1ae)](_0x29fc67=>PIPELINE_FLAG_NAMES[a88_0x521ff5(0x199)](_0x29fc67[a88_0x521ff5(0x1bd)]))['map'](({name:_0x419008,type:_0x5e6545,description:_0x412224})=>({'name':_0x419008,'type':_0x5e6545,'description':_0x412224})),'formatOutput':formatOutput,'getCommandLabel'(_0x29c2ba){const _0x249682=a88_0x521ff5;return CLI_BIN_NAME+'\x20'+_0x29c2ba[_0x249682(0x1a8)]+'\x20'+_0x29c2ba[_0x249682(0x193)];},'riskPolicy':{'onViolation'(_0x12d5ee){const _0x4d6e79=a88_0x521ff5;console[_0x4d6e79(0x19a)](_0x12d5ee);},'createError'(_0x106512){const _0x4e1f35=a88_0x521ff5;return CliErrors[_0x4e1f35(0x1ab)](_0x106512);}},async 'prepare'(_0x394e38,_0x901fe3){const _0x1b23a3=a88_0x521ff5,_0x19d20d=resolveAuthMode(_0x901fe3);if(_0x394e38[_0x1b23a3(0x194)]!==![]){if(!_0x901fe3[_0x1b23a3(0x1bc)])throw CliErrors[_0x1b23a3(0x19c)](_0x1b23a3(0x19d)+PRODUCT_CONFIG[_0x1b23a3(0x1a2)]+_0x1b23a3(0x1c6)+productEnvName(_0x1b23a3(0x192))+'.');const {setActiveAK:_0xec9c0d}=await import(_0x1b23a3(0x190));_0xec9c0d(_0x901fe3[_0x1b23a3(0x1bc)]);}let _0x25968c='';if(_0x394e38[_0x1b23a3(0x1c4)]!==![]){_0x25968c=_0x901fe3[_0x1b23a3(0x1a6)]??'',_0x25968c=await resolveExplicitAppName(_0x394e38,_0x901fe3,_0x25968c);if(!_0x25968c){await assertSelectedAppNameIsRuntimeAccessible(_0x394e38,_0x901fe3);throw CliErrors[_0x1b23a3(0x1c8)](_0x1b23a3(0x1c7)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x394e38,_0x901fe3,_0x25968c);}if(_0x25968c){const {initSdkClient:_0x3c01c9}=await import(_0x1b23a3(0x1a1));_0x3c01c9({'appCode':_0x25968c,'env':_0x901fe3[_0x1b23a3(0x1ac)]??'production','accessKey':_0x901fe3[_0x1b23a3(0x1bc)],'authMode':_0x19d20d});}return{'defaults':{'booleans':{'verbose':_0x901fe3['defaultVerbose']},'numbers':{'pagesize':_0x901fe3[_0x1b23a3(0x196)]}},'extras':{'appCode':_0x25968c,'cookie':'','apiDomain':_0x901fe3['apiDomain'],'apiDir':'','accessKey':_0x901fe3[_0x1b23a3(0x1bc)],'envName':_0x901fe3[_0x1b23a3(0x1ac)],'mergedCli':_0x901fe3[_0x1b23a3(0x1c1)]}};},async 'confirmHighRisk'({def:_0x1db501,env:_0x18ef18,flags:_0x93a3b4,commandLabel:_0x28c7cc}){const _0x5a5ba4=a88_0x521ff5;if(_0x18ef18[_0x5a5ba4(0x18e)]){const _0x382561=reconstructCommandArgv(_0x1db501,_0x93a3b4);throw CliErrors[_0x5a5ba4(0x19e)](_0x5a5ba4(0x1b1)+_0x28c7cc+_0x5a5ba4(0x18c)+('\x20\x20To\x20proceed:\x20'+_0x382561));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1db501,_0x28c7cc,_0x93a3b4),'createCancelledError':_0x14e041=>CliErrors['cancelled'](_0x14e041)});},'mapDryRunError'(_0x101b1f){return mapUserFacingExecuteError(_0x101b1f);},'mapExecuteError'(_0xb35f9f){return mapUserFacingExecuteError(_0xb35f9f);},async 'finalize'(){const _0x1b8cf6=a88_0x521ff5,{clearActiveAK:_0x5d7e1b}=await import(_0x1b8cf6(0x190));_0x5d7e1b();}};async function resolveExplicitAppName(_0x336085,_0x2f959a,_0x198483){const _0x35e89b=a88_0x521ff5;if(_0x336085['requiresAppCode']===![])return _0x198483;const _0x123d23=typeof _0x2f959a[_0x35e89b(0x1b9)][_0x35e89b(0x1ce)]===_0x35e89b(0x19f)?_0x2f959a[_0x35e89b(0x1b9)]['app'][_0x35e89b(0x1c2)]():'';if(!_0x123d23)return _0x198483;const _0x32f3a6=typeof _0x2f959a['rawFlags']['appcode']===_0x35e89b(0x19f)&&_0x2f959a[_0x35e89b(0x1b9)][_0x35e89b(0x19b)]['trim']()||productEnv(_0x35e89b(0x18f));if(_0x32f3a6||_0x2f959a[_0x35e89b(0x1b3)]==='local-alias')return _0x198483;const {getRemoteAppList:_0x142f68}=await import(_0x35e89b(0x1b8)),_0x4b2045=await _0x142f68({'env':_0x2f959a['env']??_0x35e89b(0x18d),'accessKey':_0x2f959a[_0x35e89b(0x1bc)]}),_0x1f0de3=findAppByName(_0x4b2045['items'],_0x123d23);if(_0x1f0de3&&!isRuntimeAccessibleApp(_0x1f0de3))throw runtimeInaccessibleAppError(_0x1f0de3,'\x22'+_0x123d23+'\x22');const _0x55e655=_0x1f0de3?.['appCode']?.[_0x35e89b(0x1c2)]();if(_0x55e655)return _0x55e655;throw CliErrors[_0x35e89b(0x19e)]('Unknown\x20app:\x20'+_0x123d23,_0x35e89b(0x1ba)+CLI_BIN_NAME+_0x35e89b(0x1b6)+_0x123d23+_0x35e89b(0x1c5)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x30b8fa,_0x4fd95a){const _0x7a63f7=a88_0x521ff5;if(_0x30b8fa[_0x7a63f7(0x1c4)]===![]||!_0x4fd95a[_0x7a63f7(0x1bc)])return;const _0x106c8b=(typeof _0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)]===_0x7a63f7(0x19f)&&_0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)][_0x7a63f7(0x1c2)]()?_0x4fd95a[_0x7a63f7(0x1b9)][_0x7a63f7(0x1ce)]:_0x4fd95a[_0x7a63f7(0x1c1)]?.['currentApp']??_0x4fd95a[_0x7a63f7(0x1c1)]?.[_0x7a63f7(0x1cd)])?.[_0x7a63f7(0x1c2)]();if(!_0x106c8b)return;const {getRemoteAppList:_0x39b750}=await import(_0x7a63f7(0x1b8)),_0x4b01bb=await _0x39b750({'env':_0x4fd95a[_0x7a63f7(0x1ac)]??'production','accessKey':_0x4fd95a['accessKey']}),_0x4c3b61=findAppByName(_0x4b01bb[_0x7a63f7(0x1c0)],_0x106c8b);if(_0x4c3b61&&!isRuntimeAccessibleApp(_0x4c3b61))throw runtimeInaccessibleAppError(_0x4c3b61,'\x22'+_0x106c8b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x21ebf8,_0x2da739,_0x805347){const _0x5111c0=a88_0x521ff5;if(_0x21ebf8[_0x5111c0(0x1c4)]===![]||!_0x2da739[_0x5111c0(0x1bc)])return;const {getRemoteAppList:_0x42716f}=await import(_0x5111c0(0x1b8)),_0x3ce0be=await _0x42716f({'env':_0x2da739['env']??_0x5111c0(0x18d),'accessKey':_0x2da739['accessKey']}),_0xb5ff55=findAppByCode(_0x3ce0be['items'],_0x805347);if(_0xb5ff55&&!isRuntimeAccessibleApp(_0xb5ff55))throw runtimeInaccessibleAppError(_0xb5ff55,'appcode\x20\x22'+_0x805347+'\x22');}export async function runCommand(_0x4f15e6,_0x22be49){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f15e6)?withUpdateNotice(_0x4f15e6):_0x4f15e6,_0x22be49,runnerAdapter);}function shouldAttachUpdateNotice(_0x2404af){const _0x4b44de=a88_0x521ff5;return![_0x4b44de(0x1cc),_0x4b44de(0x1cb),_0x4b44de(0x1bb)][_0x4b44de(0x1a7)](_0x2404af[_0x4b44de(0x1a8)]);}function withUpdateNotice(_0x1dd39a){return{..._0x1dd39a,async 'execute'(_0x1c1e73){const _0x639f49=a88_0x8b21,_0x8307aa=shouldResolveUpdateNotice(_0x1c1e73)?resolveLatestUpdateNotice()[_0x639f49(0x1a4)](()=>null):Promise[_0x639f49(0x1a5)](null),_0x5c6fbf=await _0x1dd39a[_0x639f49(0x198)](_0x1c1e73);return attachUpdateNotice(_0x5c6fbf,await _0x8307aa);}};}function shouldResolveUpdateNotice(_0x3e4139){const _0x238a11=a88_0x521ff5;return _0x3e4139['format']===_0x238a11(0x1af)&&!_0x3e4139[_0x238a11(0x1a0)];}function attachUpdateNotice(_0x1204dc,_0x2cef8f){const _0x472823=a88_0x521ff5;if(!_0x2cef8f||!_0x1204dc||typeof _0x1204dc!==_0x472823(0x1be))return _0x1204dc;const _0x52ec44=_0x1204dc,_0x452b23=typeof _0x52ec44[_0x472823(0x1c9)]==='object'&&_0x52ec44[_0x472823(0x1c9)]!==null?_0x52ec44['_notice']:{};return{..._0x52ec44,'_notice':{..._0x452b23,'update':_0x2cef8f}};}
|
|
1
|
+
const a88_0x1dcf10=a88_0xde3e;(function(_0x8d26ae,_0x407ac9){const _0x2f89d2=a88_0xde3e,_0x435195=_0x8d26ae();while(!![]){try{const _0x3d9cb0=-parseInt(_0x2f89d2(0x18e))/0x1+parseInt(_0x2f89d2(0x172))/0x2*(-parseInt(_0x2f89d2(0x15b))/0x3)+-parseInt(_0x2f89d2(0x17c))/0x4*(parseInt(_0x2f89d2(0x182))/0x5)+-parseInt(_0x2f89d2(0x17a))/0x6+-parseInt(_0x2f89d2(0x186))/0x7*(-parseInt(_0x2f89d2(0x159))/0x8)+-parseInt(_0x2f89d2(0x165))/0x9+-parseInt(_0x2f89d2(0x194))/0xa*(-parseInt(_0x2f89d2(0x18b))/0xb);if(_0x3d9cb0===_0x407ac9)break;else _0x435195['push'](_0x435195['shift']());}catch(_0x1a596a){_0x435195['push'](_0x435195['shift']());}}}(a88_0x2ef9,0xea6a5));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 a88_0x2ef9(){const _0x26ada5=['isNonInteractive','.appcode\x20to\x20','execute','../core/api-client.js','service','defaultApp','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','70677NYDHZJ','schema','production','appCodeSource','ACCESS_KEY','newConfigFileName','authRequired','includes','requiresAuth','configMissing','Unknown\x20app:\x20','../core/sdk-client.js','doctor','21674yjuzDh','mergedCli','update','riskLevel','defaultPageSize','pretty','filter','High-risk\x20operation\x20`','4614474zLujbr','app','1360356InvkCG','defaultVerbose','error','appCode','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','25UBlzLd','currentApp','name','items','170975GBHuai','verbose','appcode','format','map','121XmLkNQ','accessKey','env','10238eGOSvL','cancelled','string','pageSize','apiDomain','rawFlags','3179130zsQDgR','APPCODE','_notice','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','object','requiresAppCode','local-alias','../commands/app/remote-source.js','424nNORyN','trim','372JxRKwJ','ClientAk'];a88_0x2ef9=function(){return _0x26ada5;};return a88_0x2ef9();}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a88_0xde3e(_0x5aa338,_0x4b3aa1){_0x5aa338=_0x5aa338-0x158;const _0x2ef924=a88_0x2ef9();let _0xde3e91=_0x2ef924[_0x5aa338];return _0xde3e91;}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{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x577aae){const _0x14f9b4=a88_0xde3e;return void _0x577aae,AUTH_MODE[_0x14f9b4(0x15c)];}export function createPipelineEnv(_0x3c2af2,_0x10aebc){const _0x59b4b3=a88_0xde3e,_0x789aa=typeof _0x10aebc[_0x59b4b3(0x17b)]===_0x59b4b3(0x190)&&_0x10aebc['app'][_0x59b4b3(0x15a)]();return{'rawFlags':_0x10aebc,'appCode':_0x3c2af2[_0x59b4b3(0x17f)]||productEnv(_0x59b4b3(0x195))||(_0x789aa?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3c2af2[_0x59b4b3(0x168)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x10aebc),'defaultFormat':_0x3c2af2[_0x59b4b3(0x189)],'defaultPageSize':_0x3c2af2[_0x59b4b3(0x191)],'defaultVerbose':_0x3c2af2[_0x59b4b3(0x187)],'riskLevel':_0x3c2af2[_0x59b4b3(0x175)],'accessKey':_0x3c2af2[_0x59b4b3(0x18c)],'env':_0x3c2af2['env'],'mergedCli':{'defaultApp':_0x3c2af2['defaultApp'],'currentApp':_0x3c2af2[_0x59b4b3(0x183)],'appCode':_0x3c2af2[_0x59b4b3(0x17f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x1dcf10(0x178)](_0x5de768=>PIPELINE_FLAG_NAMES['has'](_0x5de768[a88_0x1dcf10(0x184)]))[a88_0x1dcf10(0x18a)](({name:_0x1be36a,type:_0x48635c,description:_0x23a775})=>({'name':_0x1be36a,'type':_0x48635c,'description':_0x23a775})),'formatOutput':formatOutput,'getCommandLabel'(_0x428de6){const _0xe940dc=a88_0x1dcf10;return CLI_BIN_NAME+'\x20'+_0x428de6[_0xe940dc(0x161)]+'\x20'+_0x428de6['command'];},'riskPolicy':{'onViolation'(_0x40d1ca){const _0xadbd07=a88_0x1dcf10;console[_0xadbd07(0x17e)](_0x40d1ca);},'createError'(_0xbd3b12){const _0x1d092b=a88_0x1dcf10;return CliErrors[_0x1d092b(0x18f)](_0xbd3b12);}},async 'prepare'(_0x34f7bf,_0x118029){const _0x26bf06=a88_0x1dcf10,_0x4c2354=resolveAuthMode(_0x118029);if(_0x34f7bf[_0x26bf06(0x16d)]!==![]){if(!_0x118029[_0x26bf06(0x18c)])throw CliErrors[_0x26bf06(0x16b)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'\x20or\x20pass\x20'+productEnvName(_0x26bf06(0x169))+'.');const {setActiveAK:_0x5bdf0b}=await import(_0x26bf06(0x160));_0x5bdf0b(_0x118029[_0x26bf06(0x18c)]);}let _0x125099='';if(_0x34f7bf[_0x26bf06(0x199)]!==![]){_0x125099=_0x118029[_0x26bf06(0x17f)]??'',_0x125099=await resolveExplicitAppName(_0x34f7bf,_0x118029,_0x125099);if(!_0x125099){await assertSelectedAppNameIsRuntimeAccessible(_0x34f7bf,_0x118029);throw CliErrors[_0x26bf06(0x16e)](_0x26bf06(0x180)+PRODUCT_CONFIG[_0x26bf06(0x16a)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x34f7bf,_0x118029,_0x125099);}if(_0x125099){const {initSdkClient:_0x555e1a}=await import(_0x26bf06(0x170));_0x555e1a({'appCode':_0x125099,'env':_0x118029[_0x26bf06(0x18d)]??'production','accessKey':_0x118029['accessKey'],'authMode':_0x4c2354});}return{'defaults':{'booleans':{'verbose':_0x118029[_0x26bf06(0x17d)]},'numbers':{'pagesize':_0x118029[_0x26bf06(0x176)]}},'extras':{'appCode':_0x125099,'cookie':'','apiDomain':_0x118029[_0x26bf06(0x192)],'apiDir':'','accessKey':_0x118029[_0x26bf06(0x18c)],'envName':_0x118029['env'],'mergedCli':_0x118029[_0x26bf06(0x173)]}};},async 'confirmHighRisk'({def:_0x1bb2dd,env:_0x5bd980,flags:_0x27edf2,commandLabel:_0x1ccdba}){const _0x2aa2f9=a88_0x1dcf10;if(_0x5bd980[_0x2aa2f9(0x15d)]){const _0x4e17ec=reconstructCommandArgv(_0x1bb2dd,_0x27edf2);throw CliErrors[_0x2aa2f9(0x163)](_0x2aa2f9(0x179)+_0x1ccdba+_0x2aa2f9(0x164)+('\x20\x20To\x20proceed:\x20'+_0x4e17ec));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1bb2dd,_0x1ccdba,_0x27edf2),'createCancelledError':_0x2892f1=>CliErrors[_0x2aa2f9(0x18f)](_0x2892f1)});},'mapDryRunError'(_0x156ec3){return mapUserFacingExecuteError(_0x156ec3);},'mapExecuteError'(_0x366d60){return mapUserFacingExecuteError(_0x366d60);},async 'finalize'(){const _0x5e553a=a88_0x1dcf10,{clearActiveAK:_0x5a9181}=await import(_0x5e553a(0x160));_0x5a9181();}};async function resolveExplicitAppName(_0x160239,_0x83f0e1,_0x210c4f){const _0x5f3e6c=a88_0x1dcf10;if(_0x160239['requiresAppCode']===![])return _0x210c4f;const _0x594815=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x17b)]===_0x5f3e6c(0x190)?_0x83f0e1[_0x5f3e6c(0x193)]['app'][_0x5f3e6c(0x15a)]():'';if(!_0x594815)return _0x210c4f;const _0x4a6a41=typeof _0x83f0e1[_0x5f3e6c(0x193)][_0x5f3e6c(0x188)]===_0x5f3e6c(0x190)&&_0x83f0e1['rawFlags'][_0x5f3e6c(0x188)][_0x5f3e6c(0x15a)]()||productEnv(_0x5f3e6c(0x195));if(_0x4a6a41||_0x83f0e1['appCodeSource']===_0x5f3e6c(0x19a))return _0x210c4f;const {getRemoteAppList:_0x1c74dd}=await import('../commands/app/remote-source.js'),_0x37711c=await _0x1c74dd({'env':_0x83f0e1['env']??'production','accessKey':_0x83f0e1['accessKey']}),_0xf729a1=findAppByName(_0x37711c[_0x5f3e6c(0x185)],_0x594815);if(_0xf729a1&&!isRuntimeAccessibleApp(_0xf729a1))throw runtimeInaccessibleAppError(_0xf729a1,'\x22'+_0x594815+'\x22');const _0x348e9d=_0xf729a1?.[_0x5f3e6c(0x17f)]?.['trim']();if(_0x348e9d)return _0x348e9d;throw CliErrors['validation'](_0x5f3e6c(0x16f)+_0x594815,_0x5f3e6c(0x181)+CLI_BIN_NAME+_0x5f3e6c(0x197)+_0x594815+_0x5f3e6c(0x15e)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x1e25e6,_0x593685){const _0x4bca02=a88_0x1dcf10;if(_0x1e25e6[_0x4bca02(0x199)]===![]||!_0x593685[_0x4bca02(0x18c)])return;const _0x3bf0b9=(typeof _0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]==='string'&&_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)][_0x4bca02(0x15a)]()?_0x593685[_0x4bca02(0x193)][_0x4bca02(0x17b)]:_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x183)]??_0x593685[_0x4bca02(0x173)]?.[_0x4bca02(0x162)])?.['trim']();if(!_0x3bf0b9)return;const {getRemoteAppList:_0x4ed495}=await import('../commands/app/remote-source.js'),_0x118d5c=await _0x4ed495({'env':_0x593685[_0x4bca02(0x18d)]??_0x4bca02(0x167),'accessKey':_0x593685[_0x4bca02(0x18c)]}),_0x3f9f50=findAppByName(_0x118d5c[_0x4bca02(0x185)],_0x3bf0b9);if(_0x3f9f50&&!isRuntimeAccessibleApp(_0x3f9f50))throw runtimeInaccessibleAppError(_0x3f9f50,'\x22'+_0x3bf0b9+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4250c2,_0x4fa4c6,_0x566445){const _0x222d0d=a88_0x1dcf10;if(_0x4250c2['requiresAppCode']===![]||!_0x4fa4c6[_0x222d0d(0x18c)])return;const {getRemoteAppList:_0x1bc997}=await import(_0x222d0d(0x158)),_0x256ad4=await _0x1bc997({'env':_0x4fa4c6[_0x222d0d(0x18d)]??'production','accessKey':_0x4fa4c6['accessKey']}),_0x46b3b4=findAppByCode(_0x256ad4[_0x222d0d(0x185)],_0x566445);if(_0x46b3b4&&!isRuntimeAccessibleApp(_0x46b3b4))throw runtimeInaccessibleAppError(_0x46b3b4,'appcode\x20\x22'+_0x566445+'\x22');}export async function runCommand(_0x5af4e6,_0x228bd4){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5af4e6)?withUpdateNotice(_0x5af4e6):_0x5af4e6,_0x228bd4,runnerAdapter);}function shouldAttachUpdateNotice(_0xc1ad0b){const _0x492c24=a88_0x1dcf10;return![_0x492c24(0x174),_0x492c24(0x166),_0x492c24(0x171)][_0x492c24(0x16c)](_0xc1ad0b[_0x492c24(0x161)]);}function withUpdateNotice(_0x200929){return{..._0x200929,async 'execute'(_0x475dc4){const _0x59792a=a88_0xde3e,_0x4d0361=shouldResolveUpdateNotice(_0x475dc4)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x4fb196=await _0x200929[_0x59792a(0x15f)](_0x475dc4);return attachUpdateNotice(_0x4fb196,await _0x4d0361);}};}function shouldResolveUpdateNotice(_0x39521d){const _0x432ef5=a88_0x1dcf10;return _0x39521d[_0x432ef5(0x189)]===_0x432ef5(0x177)&&!_0x39521d['nonInteractive'];}function attachUpdateNotice(_0x3b3b9f,_0x45aa03){const _0x257774=a88_0x1dcf10;if(!_0x45aa03||!_0x3b3b9f||typeof _0x3b3b9f!==_0x257774(0x198))return _0x3b3b9f;const _0x3ee97f=_0x3b3b9f,_0x4866dc=typeof _0x3ee97f[_0x257774(0x196)]==='object'&&_0x3ee97f[_0x257774(0x196)]!==null?_0x3ee97f[_0x257774(0x196)]:{};return{..._0x3ee97f,'_notice':{..._0x4866dc,'update':_0x45aa03}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x451f05,_0x3d5bb1){const _0x512f49=a89_0x2cec,_0x4707f8=_0x451f05();while(!![]){try{const _0x5f65f4=-parseInt(_0x512f49(0x152))/0x1+parseInt(_0x512f49(0x15b))/0x2+-parseInt(_0x512f49(0x155))/0x3+parseInt(_0x512f49(0x160))/0x4+-parseInt(_0x512f49(0x15d))/0x5*(-parseInt(_0x512f49(0x163))/0x6)+-parseInt(_0x512f49(0x157))/0x7+parseInt(_0x512f49(0x161))/0x8*(parseInt(_0x512f49(0x15a))/0x9);if(_0x5f65f4===_0x3d5bb1)break;else _0x4707f8['push'](_0x4707f8['shift']());}catch(_0x3249b8){_0x4707f8['push'](_0x4707f8['shift']());}}}(a89_0x47df,0xcf076));import{buildSchemaPayload as a89_0xb5b2be}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a89_0x2cec(_0x3e41c7,_0x2ac143){_0x3e41c7=_0x3e41c7-0x152;const _0x47df05=a89_0x47df();let _0x2cec0f=_0x47df05[_0x3e41c7];return _0x2cec0f;}function a89_0x47df(){const _0x453908=['1884126KeRVXB','none','10997343HZqELX','auth','has','73341AqrKmD','2955760QkJmIc','map','2750645vIPCvi','requiresAuth','../commands/registry.js','2693240Utlnbr','8DrMRrr','services','18WgjPcA','commands','762645AxgLKu','required','service'];a89_0x47df=function(){return _0x453908;};return a89_0x47df();}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 _0x1a37e4=a89_0x2cec,{serviceRegistry:_0x562aa6,findDefinition:_0x1b70d7}=await import(_0x1a37e4(0x15f)),_0xa72468=new Set(_0x562aa6[_0x1a37e4(0x15c)](_0x1d28a3=>_0x1d28a3[_0x1a37e4(0x154)])),_0x551601=listDynamicServiceEntries()['filter'](_0x2455e1=>!_0xa72468[_0x1a37e4(0x159)](_0x2455e1[_0x1a37e4(0x154)])),_0x4e6bdc=a89_0xb5b2be({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x562aa6,_0x551601),'buildAllFlags':buildAllFlags,'findDefinition':(_0x1e3a70,_0x155d9b)=>_0x1b70d7(_0x1e3a70,_0x155d9b)??findDynamicServiceDefinition(_0x1e3a70,_0x155d9b)});return normalizeSchemaPayload(_0x4e6bdc);}function normalizeSchemaPayload(_0x267d52){const _0x441748=a89_0x2cec;return{..._0x267d52,'schemaVersion':0x2,'services':_0x267d52[_0x441748(0x162)][_0x441748(0x15c)](_0x45a9c5=>({..._0x45a9c5,'commands':_0x45a9c5[_0x441748(0x164)][_0x441748(0x15c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x23e6de){const _0x2a257d=a89_0x2cec,_0x47a92f=_0x23e6de;return{..._0x23e6de,'auth':_0x47a92f[_0x2a257d(0x158)]??(_0x23e6de[_0x2a257d(0x15e)]?_0x2a257d(0x153):_0x2a257d(0x156))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ed7aa,_0x2eb7c5){const _0x22650e=a90_0x5bba,_0x48996d=_0x2ed7aa();while(!![]){try{const _0x1eb1ab=-parseInt(_0x22650e(0x16f))/0x1+parseInt(_0x22650e(0x17a))/0x2*(parseInt(_0x22650e(0x173))/0x3)+-parseInt(_0x22650e(0x179))/0x4*(-parseInt(_0x22650e(0x177))/0x5)+-parseInt(_0x22650e(0x170))/0x6*(-parseInt(_0x22650e(0x176))/0x7)+-parseInt(_0x22650e(0x175))/0x8*(parseInt(_0x22650e(0x178))/0x9)+parseInt(_0x22650e(0x171))/0xa+-parseInt(_0x22650e(0x174))/0xb*(parseInt(_0x22650e(0x17c))/0xc);if(_0x1eb1ab===_0x2eb7c5)break;else _0x48996d['push'](_0x48996d['shift']());}catch(_0x2986f6){_0x48996d['push'](_0x48996d['shift']());}}}(a90_0x577a,0xd37d5));function a90_0x577a(){const _0x83f5d5=['911981ntkRxk','20XceYFm','203976BAPduF','968052XPMpFo','2GewGhJ','length','120bDMxpZ','findIndex','900744sGuSzt','12yEpNBj','15276350qMjRsl','slice','3237114XeHDWz','804221CZrJKl','472BwHtJb'];a90_0x577a=function(){return _0x83f5d5;};return a90_0x577a();}function a90_0x5bba(_0x5355c0,_0x23be15){_0x5355c0=_0x5355c0-0x16f;const _0x577a60=a90_0x577a();let _0x5bbae7=_0x577a60[_0x5355c0];return _0x5bbae7;}export function insertDynamicServicesAfterServiceTree(_0x185a1d,_0xba72c7){const _0x5716b6=a90_0x5bba;if(_0xba72c7[_0x5716b6(0x17b)]===0x0)return[..._0x185a1d];const _0x1b12fa=_0x185a1d[_0x5716b6(0x17d)](_0x33e484=>_0x33e484['service']==='service');if(_0x1b12fa<0x0)return[..._0x185a1d,..._0xba72c7];return[..._0x185a1d[_0x5716b6(0x172)](0x0,_0x1b12fa+0x1),..._0xba72c7,..._0x185a1d[_0x5716b6(0x172)](_0x1b12fa+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a91_0x57eb(){var _0x1d09fa=['8112BpQLKE','774756uduHTf','20410QgxZAE','8CRTmLE','4037zbGoPp','2072grwItN','885585hHGWmO','4572909gqypuu','2185998EyIyeJ','237826jNvUiP','6rEMSah'];a91_0x57eb=function(){return _0x1d09fa;};return a91_0x57eb();}(function(_0x5e5924,_0x3ea751){var _0x138f50=a91_0x38c2,_0x2dc0b2=_0x5e5924();while(!![]){try{var _0xd6e01f=parseInt(_0x138f50(0x157))/0x1+-parseInt(_0x138f50(0x154))/0x2*(-parseInt(_0x138f50(0x155))/0x3)+parseInt(_0x138f50(0x159))/0x4*(parseInt(_0x138f50(0x15c))/0x5)+-parseInt(_0x138f50(0x15e))/0x6+parseInt(_0x138f50(0x15b))/0x7*(-parseInt(_0x138f50(0x156))/0x8)+parseInt(_0x138f50(0x15d))/0x9+parseInt(_0x138f50(0x158))/0xa*(-parseInt(_0x138f50(0x15a))/0xb);if(_0xd6e01f===_0x3ea751)break;else _0x2dc0b2['push'](_0x2dc0b2['shift']());}catch(_0x20ee69){_0x2dc0b2['push'](_0x2dc0b2['shift']());}}}(a91_0x57eb,0x70a51));function a91_0x38c2(_0x18706c,_0x5be407){_0x18706c=_0x18706c-0x154;var _0x57eb00=a91_0x57eb();var _0x38c2a9=_0x57eb00[_0x18706c];return _0x38c2a9;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x23ed4c=a92_0x2183;(function(_0x4513a0,_0x2fd344){const _0x150d8b=a92_0x2183,_0xaec112=_0x4513a0();while(!![]){try{const _0x7bcc11=-parseInt(_0x150d8b(0x96))/0x1+-parseInt(_0x150d8b(0x99))/0x2+-parseInt(_0x150d8b(0x97))/0x3*(-parseInt(_0x150d8b(0x98))/0x4)+-parseInt(_0x150d8b(0x9b))/0x5+-parseInt(_0x150d8b(0x94))/0x6+-parseInt(_0x150d8b(0x9c))/0x7*(-parseInt(_0x150d8b(0x9a))/0x8)+-parseInt(_0x150d8b(0x93))/0x9*(-parseInt(_0x150d8b(0x95))/0xa);if(_0x7bcc11===_0x2fd344)break;else _0xaec112['push'](_0xaec112['shift']());}catch(_0x54055e){_0xaec112['push'](_0xaec112['shift']());}}}(a92_0x48ff,0x842d1));export const VERSION='2.1.8';export const GIT_TAG='v2.1.8-beta.3';function a92_0x2183(_0x4b4ed0,_0x5f4a9b){_0x4b4ed0=_0x4b4ed0-0x93;const _0x48ff8a=a92_0x48ff();let _0x21834a=_0x48ff8a[_0x4b4ed0];return _0x21834a;}export const GIT_COMMIT=a92_0x23ed4c(0x9d);function a92_0x48ff(){const _0xaa5a1f=['11973LAvTrX','740pueeeB','1965964BIbnnP','720zIDeCk','1853765vEpnOu','9905KmcIOd','18d879c','18mtUbqr','2792286PFOGLh','8179900Yhiwry','141156eSvtfE'];a92_0x48ff=function(){return _0xaa5a1f;};return a92_0x48ff();}export const BUILD_TIME='2026-07-08T06:21:25.636Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c6fc9,_0x42b12c){const _0x11e8e4=a93_0x70c8,_0x3c5876=_0x3c6fc9();while(!![]){try{const _0x7a3768=-parseInt(_0x11e8e4(0x13f))/0x1+-parseInt(_0x11e8e4(0x143))/0x2+-parseInt(_0x11e8e4(0x146))/0x3*(parseInt(_0x11e8e4(0x147))/0x4)+parseInt(_0x11e8e4(0x140))/0x5*(-parseInt(_0x11e8e4(0x141))/0x6)+parseInt(_0x11e8e4(0x13a))/0x7*(parseInt(_0x11e8e4(0x142))/0x8)+parseInt(_0x11e8e4(0x13b))/0x9*(-parseInt(_0x11e8e4(0x144))/0xa)+-parseInt(_0x11e8e4(0x145))/0xb*(-parseInt(_0x11e8e4(0x138))/0xc);if(_0x7a3768===_0x42b12c)break;else _0x3c5876['push'](_0x3c5876['shift']());}catch(_0x16b515){_0x3c5876['push'](_0x3c5876['shift']());}}}(a93_0x4f8b,0x29c16));function a93_0x4f8b(){const _0x348ef6=['42kGreUN','67492tRYUZX','16036932RLJAye','column','7bbISNe','51759fZTpaw','green','\x20to\x20view\x20available\x20commands.','\x20--help','320251nTJnbN','1664445ViOZDb','6OaivTk','109472cdTyUa','27310ILwHRE','480mcoWUH','11HtEQmd'];a93_0x4f8b=function(){return _0x348ef6;};return a93_0x4f8b();}import{jsx as a93_0xf0c6fb,jsxs as a93_0x2aa40f}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a93_0x70c8(_0x4bd139,_0x4dee9a){_0x4bd139=_0x4bd139-0x138;const _0x4f8b7e=a93_0x4f8b();let _0x70c818=_0x4f8b7e[_0x4bd139];return _0x70c818;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x247870=a93_0x70c8,{exit:_0x26cde1}=useApp();return useEffect(()=>{_0x26cde1();},[_0x26cde1]),a93_0x2aa40f(Box,{'flexDirection':_0x247870(0x139),'marginTop':0x1,'marginBottom':0x1,'children':[a93_0xf0c6fb(Box,{'children':a93_0xf0c6fb(Text,{'bold':!![],'color':_0x247870(0x13c),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a93_0x2aa40f(Box,{'marginTop':0x1,'children':[a93_0xf0c6fb(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a93_0xf0c6fb(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x247870(0x13e)}),a93_0xf0c6fb(Text,{'dimColor':!![],'children':_0x247870(0x13d)})]})]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x134a10,_0x321d09){const _0x90f2b7=a94_0x5f2a,_0x477a2f=_0x134a10();while(!![]){try{const _0x52549e=parseInt(_0x90f2b7(0xee))/0x1+parseInt(_0x90f2b7(0xe0))/0x2*(-parseInt(_0x90f2b7(0xe7))/0x3)+-parseInt(_0x90f2b7(0xed))/0x4*(parseInt(_0x90f2b7(0xdb))/0x5)+parseInt(_0x90f2b7(0xda))/0x6+-parseInt(_0x90f2b7(0xea))/0x7*(parseInt(_0x90f2b7(0xdf))/0x8)+-parseInt(_0x90f2b7(0xe1))/0x9*(parseInt(_0x90f2b7(0xf1))/0xa)+-parseInt(_0x90f2b7(0xe5))/0xb*(-parseInt(_0x90f2b7(0xe4))/0xc);if(_0x52549e===_0x321d09)break;else _0x477a2f['push'](_0x477a2f['shift']());}catch(_0x568ffa){_0x477a2f['push'](_0x477a2f['shift']());}}}(a94_0x4f1c,0x188c1));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a94_0x5f2a(_0x260262,_0x14ed47){_0x260262=_0x260262-0xda;const _0x4f1c2b=a94_0x4f1c();let _0x5f2a3e=_0x4f1c2b[_0x260262];return _0x5f2a3e;}import{LOVRABET_SKILL_SOURCE as a94_0x2a79c3}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';export const LOVRABET_SKILL_SOURCE=a94_0x2a79c3;export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG['skipNpxSkillsEnvSuffix']);function a94_0x4f1c(){const _0x3043d2=['exit\x20','add','168jGHNuA','130537AQZGem','inherit','3PaVWdF','stdout','npx','14QQppkn','toString','stderr','632TtyULT','101084taPoYF','unknown','join','10qDqHeN','pipe','924822EsWwbD','785tUpfEU','trim','status','skills','317728JyTxdJ','270626PgLjfa','731367rwBMtX'];a94_0x4f1c=function(){return _0x3043d2;};return a94_0x4f1c();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x577716,_0xc6c944=LOVRABET_SKILL_SOURCE,_0x210575){const _0x89001a=a94_0x5f2a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x9b7972=_0x210575?.['stdio']??_0x89001a(0xe6),_0x48c4bb=resolveNpmBin(_0x89001a(0xe9)),_0x579cfe=[_0x89001a(0xde),_0x89001a(0xe3),_0xc6c944,'-g','-y'],_0x1497b0=[_0x48c4bb,..._0x579cfe][_0x89001a(0xf0)]('\x20');console['log']('*\x20'+_0x1497b0);const _0x1b8815=spawnSync(_0x48c4bb,_0x579cfe,{'cwd':_0x577716,'stdio':_0x9b7972,'env':process.env,'shell':![]});if(_0x1b8815[_0x89001a(0xdd)]===0x0)return{'ok':!![],'status':0x0};let _0x2c920e=_0x89001a(0xe2)+(_0x1b8815[_0x89001a(0xdd)]??_0x89001a(0xef));if(_0x9b7972===_0x89001a(0xf2)){const _0x9590ea=_0x1b8815[_0x89001a(0xec)]?_0x1b8815['stderr']['toString']()[_0x89001a(0xdc)]():'',_0x235a2c=_0x1b8815[_0x89001a(0xe8)]?_0x1b8815[_0x89001a(0xe8)][_0x89001a(0xeb)]()[_0x89001a(0xdc)]():'';if(_0x9590ea)_0x2c920e=_0x9590ea;else{if(_0x235a2c)_0x2c920e=_0x235a2c;}}return{'ok':![],'status':_0x1b8815['status']??null,'error':_0x2c920e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a95_0x1611(_0x5b565c,_0x2c8a56){_0x5b565c=_0x5b565c-0xc8;const _0x5cfba0=a95_0x5cfb();let _0x161167=_0x5cfba0[_0x5b565c];return _0x161167;}const a95_0x421507=a95_0x1611;(function(_0x5a04ce,_0x241cd9){const _0x3fd7e7=a95_0x1611,_0x5a50a5=_0x5a04ce();while(!![]){try{const _0x31b7f1=parseInt(_0x3fd7e7(0xd1))/0x1*(-parseInt(_0x3fd7e7(0xd9))/0x2)+-parseInt(_0x3fd7e7(0xda))/0x3*(-parseInt(_0x3fd7e7(0xd2))/0x4)+-parseInt(_0x3fd7e7(0xce))/0x5*(parseInt(_0x3fd7e7(0xd4))/0x6)+parseInt(_0x3fd7e7(0xd3))/0x7*(parseInt(_0x3fd7e7(0xd5))/0x8)+-parseInt(_0x3fd7e7(0xd8))/0x9*(parseInt(_0x3fd7e7(0xc9))/0xa)+parseInt(_0x3fd7e7(0xd7))/0xb+-parseInt(_0x3fd7e7(0xcd))/0xc*(-parseInt(_0x3fd7e7(0xc8))/0xd);if(_0x31b7f1===_0x241cd9)break;else _0x5a50a5['push'](_0x5a50a5['shift']());}catch(_0x149b80){_0x5a50a5['push'](_0x5a50a5['shift']());}}}(a95_0x5cfb,0xa859c));function a95_0x5cfb(){const _0x29505c=['1257MpCkYv','.git','coverage','.hg','node_modules','SKILL.md','26wjhVrv','12106460lrrhhx','.svn','lovrabet.skill.json','.turbo','10618212MOqNSG','15qbMyhK','.cache','.next','9WqztjN','1964EXevyo','924091SJsNIJ','253884GCduLX','8IIzdrJ','dist','3492687EsbaHu','9jFJspM','88402NCKmct'];a95_0x5cfb=function(){return _0x29505c;};return a95_0x5cfb();}export const METADATA_FILE=a95_0x421507(0xcb);export const SKILL_FILE=a95_0x421507(0xdf);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);export const IGNORED_DIR_NAMES=new Set([a95_0x421507(0xdb),a95_0x421507(0xdd),a95_0x421507(0xca),a95_0x421507(0xde),a95_0x421507(0xd0),a95_0x421507(0xd6),'build',a95_0x421507(0xdc),a95_0x421507(0xcc),a95_0x421507(0xcf)]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdcdacf,_0xdcbe86){const _0x5e1c80=a96_0x3b10,_0x575a27=_0xdcdacf();while(!![]){try{const _0x10977b=parseInt(_0x5e1c80(0x123))/0x1+parseInt(_0x5e1c80(0x12c))/0x2+parseInt(_0x5e1c80(0x126))/0x3*(parseInt(_0x5e1c80(0x12d))/0x4)+-parseInt(_0x5e1c80(0x130))/0x5+-parseInt(_0x5e1c80(0x124))/0x6+-parseInt(_0x5e1c80(0x12b))/0x7*(-parseInt(_0x5e1c80(0x127))/0x8)+-parseInt(_0x5e1c80(0x131))/0x9*(parseInt(_0x5e1c80(0x120))/0xa);if(_0x10977b===_0xdcbe86)break;else _0x575a27['push'](_0x575a27['shift']());}catch(_0x544d89){_0x575a27['push'](_0x575a27['shift']());}}}(a96_0x35cf,0x73608));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(_0x23325d,_0x3d60f4){const _0x217c10=a96_0x3b10,_0x19a5d7=normalizeSkillRelativePath(_0x3d60f4),_0xc14f11=realOrResolved(_0x23325d),_0x4ff1f9=resolve(_0xc14f11,..._0x19a5d7[_0x217c10(0x132)]('/'));if(!isPathInside(_0x4ff1f9,_0xc14f11))throw CliErrors[_0x217c10(0x128)](_0x217c10(0x129)+_0x3d60f4);return ensureNoSymlinkInManagedPath(_0xc14f11,_0x19a5d7),_0x4ff1f9;}export function ensureNoSymlinkInManagedPath(_0x1763ae,_0x48137f){const _0x773494=a96_0x3b10;let _0x1038d0=_0x1763ae;for(const _0x3651fb of _0x48137f[_0x773494(0x132)]('/')){_0x1038d0=resolve(_0x1038d0,_0x3651fb);const _0x5d94aa=lstatIfPresent(_0x1038d0);if(_0x5d94aa?.['isSymbolicLink']())throw CliErrors[_0x773494(0x128)](_0x773494(0x12f)+_0x48137f);}}export function isDanglingSymlink(_0x123d4f){try{return lstatSync(_0x123d4f)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x564da7){const _0x36b8d9=readlinkSync(_0x564da7);return isAbsolute(_0x36b8d9)?_0x36b8d9:resolve(dirname(_0x564da7),_0x36b8d9);}export function isPathInside(_0x3dccee,_0x5ef511){const _0x5c1d1e=a96_0x3b10,_0x552948=_0x3dccee[_0x5c1d1e(0x125)](sep)?_0x3dccee:''+_0x3dccee+sep,_0x5ecdad=_0x5ef511['endsWith'](sep)?_0x5ef511:''+_0x5ef511+sep;return _0x3dccee===_0x5ef511||_0x552948[_0x5c1d1e(0x122)](_0x5ecdad);}function a96_0x3b10(_0x4ae4bf,_0x785434){_0x4ae4bf=_0x4ae4bf-0x120;const _0x35cf9a=a96_0x35cf();let _0x3b10f1=_0x35cf9a[_0x4ae4bf];return _0x3b10f1;}export function realOrResolved(_0x4e9331){try{return realpathSync(_0x4e9331);}catch{return resolve(_0x4e9331);}}export function lstatIfPresent(_0xe498df){try{return lstatSync(_0xe498df);}catch{return undefined;}}export function writeTextAtomic(_0x28b7af,_0x12d562,_0x3d9b7d){const _0x109c5f=a96_0x3b10;writeBytesAtomic(_0x28b7af,Buffer[_0x109c5f(0x121)](_0x12d562,_0x109c5f(0x12e)),_0x3d9b7d);}export function writeBytesAtomic(_0x364677,_0x180deb,_0xbc3cba){const _0x1a49fe=_0x364677+'.tmp';try{writeFileSync(_0x1a49fe,_0x180deb,{'mode':_0xbc3cba}),renameSync(_0x1a49fe,_0x364677);}catch(_0x57de8a){try{rmSync(_0x1a49fe,{'force':!![]});}catch{}throw _0x57de8a;}}export function writeJsonAtomic(_0x3c0157,_0x181d73){const _0x10475f=a96_0x3b10;writeTextAtomic(_0x3c0157,JSON[_0x10475f(0x12a)](_0x181d73,null,0x2)+'\x0a',0x180);}function a96_0x35cf(){const _0x4f35af=['4921992fmulxW','endsWith','1122219qJMlJu','1173704cKgcad','validation','Unsafe\x20Skill\x20file\x20path:\x20','stringify','35PTTnlk','868536xPPejm','4QvfPnm','utf8','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','1577750eyOYlX','108ZxvIrd','split','229630JvyuEU','from','startsWith','342116zWXPyk'];a96_0x35cf=function(){return _0x4f35af;};return a96_0x35cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fdf60,_0x5e9b2c){const _0x523467=a97_0x1c3a,_0x18c819=_0x2fdf60();while(!![]){try{const _0x3e830e=parseInt(_0x523467(0x73))/0x1*(parseInt(_0x523467(0x7d))/0x2)+parseInt(_0x523467(0x7b))/0x3+-parseInt(_0x523467(0x7e))/0x4*(parseInt(_0x523467(0x7c))/0x5)+-parseInt(_0x523467(0x78))/0x6+parseInt(_0x523467(0x7a))/0x7+-parseInt(_0x523467(0x75))/0x8+parseInt(_0x523467(0x7f))/0x9;if(_0x3e830e===_0x5e9b2c)break;else _0x18c819['push'](_0x18c819['shift']());}catch(_0x9fc3e2){_0x18c819['push'](_0x18c819['shift']());}}}(a97_0x599c,0x82513));function a97_0x599c(){const _0x2445b5=['7243OveRas','size','7294648RRFXCf','sha256','hex','6131400uHXJah','digest','492877yJbbDP','2986677USopKL','85FzZzwJ','4JpXsFG','50356jHFuqQ','14409603bkPzet','update'];a97_0x599c=function(){return _0x2445b5;};return a97_0x599c();}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x4765b0){const _0x3beb2b=a97_0x1c3a;return createHash(_0x3beb2b(0x76))[_0x3beb2b(0x80)](_0x4765b0)[_0x3beb2b(0x79)](_0x3beb2b(0x77));}function a97_0x1c3a(_0x5ba587,_0x112d27){_0x5ba587=_0x5ba587-0x73;const _0x599c6c=a97_0x599c();let _0x1c3a16=_0x599c6c[_0x5ba587];return _0x1c3a16;}export function fileHash(_0x1af56a){return bufferSha256(fileContent(_0x1af56a));}export function bufferSha256(_0x11ab0f){const _0x279f35=a97_0x1c3a;return createHash(_0x279f35(0x76))[_0x279f35(0x80)](_0x11ab0f)['digest']('hex');}export function fileTreeHash(_0x164258){const _0x3a4055=a97_0x1c3a,_0x1204df=createHash(_0x3a4055(0x76));for(const _0x2fb790 of normalizeManifestFiles(_0x164258)){_0x1204df[_0x3a4055(0x80)](_0x2fb790['path']),_0x1204df[_0x3a4055(0x80)]('\x00'),_0x1204df[_0x3a4055(0x80)](_0x2fb790[_0x3a4055(0x76)]),_0x1204df[_0x3a4055(0x80)]('\x00'),_0x1204df[_0x3a4055(0x80)](String(_0x2fb790[_0x3a4055(0x74)])),_0x1204df['update']('\x00');}return _0x1204df[_0x3a4055(0x79)](_0x3a4055(0x77));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d54a6,_0x20a242){const _0x25b049=a98_0x24b1,_0x351d8b=_0x4d54a6();while(!![]){try{const _0x560027=parseInt(_0x25b049(0x165))/0x1*(parseInt(_0x25b049(0x16f))/0x2)+-parseInt(_0x25b049(0x184))/0x3*(-parseInt(_0x25b049(0x174))/0x4)+-parseInt(_0x25b049(0x15b))/0x5+-parseInt(_0x25b049(0x160))/0x6*(parseInt(_0x25b049(0x166))/0x7)+-parseInt(_0x25b049(0x17f))/0x8*(-parseInt(_0x25b049(0x176))/0x9)+-parseInt(_0x25b049(0x177))/0xa+parseInt(_0x25b049(0x17d))/0xb;if(_0x560027===_0x20a242)break;else _0x351d8b['push'](_0x351d8b['shift']());}catch(_0x14c29e){_0x351d8b['push'](_0x351d8b['shift']());}}}(a98_0x292c,0xa95f3));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a98_0x44d28c from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';function a98_0x292c(){const _0x55973a=['2000270BYUPZC','trim','env','length','updated','1770HHOJgE','scope','has','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','skillCode','20549EXUkBG','28882RUGJNA','created','get','name','values','external-symlink','claudeSkillsDir','set','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','52GzgoWu','map','metadata-mismatch','removed','pruneSkillCodes','1092ZOGQyw','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','2402919GtemaY','8461120pnISBg','push','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','slice','isDirectory','accessKey','11544775uWXLgg','startsWith','40qioxEs','appCode','not-managed-symlink','skill','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','2619dQnexy','builtin','skipped','isSymbolicLink','filter','validation','unchanged','dir','agentsSkillsDir','managedRoot','contentHash','personal','activeSkillCodes','scopes'];a98_0x292c=function(){return _0x55973a;};return a98_0x292c();}import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a98_0x44d28c;export function linkEffectiveRuntimeSkills(_0x1d1311,_0x4a3dba,_0x39104e={}){const _0x4426ab=a98_0x24b1,_0x30ba70=new Map();for(const _0x154a01 of _0x1d1311){const _0x4b35e2=_0x154a01[_0x4426ab(0x182)][_0x4426ab(0x164)];if(!_0x4b35e2)continue;const _0x34d8c1=_0x30ba70[_0x4426ab(0x168)](_0x4b35e2);(!_0x34d8c1||_0x154a01['scope']==='personal')&&_0x30ba70[_0x4426ab(0x16d)](_0x4b35e2,_0x154a01);}const _0x350e90=[],_0x4a32d3=resolveSkillSyncPaths(_0x39104e);for(const _0x29b3c6 of _0x30ba70[_0x4426ab(0x16a)]()){const _0x47ebc3=requireSkillCode(_0x29b3c6[_0x4426ab(0x182)]),_0x2c971b=_0x4a3dba+'--'+_0x47ebc3;for(const _0x324a8a of[_0x4a32d3['agentsSkillsDir'],_0x4a32d3['claudeSkillsDir']]){_0x350e90['push'](ensureManagedSymlink(resolve(_0x324a8a,_0x2c971b),_0x29b3c6[_0x4426ab(0x154)],_0x4a32d3[_0x4426ab(0x156)]));}}return _0x350e90;}export function pruneStaleRuntimeSkillLinks(_0x57da9e,_0x531cbc,_0x8e8e29={},_0x4acb7c){const _0x1159bc=a98_0x24b1,_0x3bda8f=resolveSkillSyncPaths(_0x8e8e29),_0x2ba1c8=new Set([..._0x531cbc][_0x1159bc(0x170)](_0x1689ae=>_0x1689ae['trim']())[_0x1159bc(0x188)](Boolean)),_0x50f44f=_0x4acb7c?new Set([..._0x4acb7c][_0x1159bc(0x170)](_0x2a00b0=>_0x2a00b0[_0x1159bc(0x15c)]())[_0x1159bc(0x188)](Boolean)):undefined,_0x5d299d=[];for(const _0x5ba3cd of[_0x3bda8f[_0x1159bc(0x155)],_0x3bda8f[_0x1159bc(0x16c)]]){for(const _0x4ce98e of managedAppSkillLinkPaths(_0x5ba3cd,_0x57da9e)){const _0x166fc7=basename(_0x4ce98e)[_0x1159bc(0x17a)]((_0x57da9e+'--')[_0x1159bc(0x15e)]);if(_0x50f44f&&!_0x50f44f['has'](_0x166fc7))continue;if(_0x2ba1c8[_0x1159bc(0x162)](_0x166fc7))continue;_0x5d299d['push'](removeManagedSkillLink(_0x4ce98e,_0x3bda8f['managedRoot']));}}return _0x5d299d;}export function pruneStaleRuntimeSkillCache(_0x47a9a3,_0x395583={}){const _0x2c02fe=a98_0x24b1,_0x2c0ba1=new Set([..._0x47a9a3[_0x2c02fe(0x159)]][_0x2c02fe(0x170)](_0x62640c=>_0x62640c['trim']())[_0x2c02fe(0x188)](Boolean)),_0x2d919f=_0x47a9a3[_0x2c02fe(0x173)]?new Set([..._0x47a9a3['pruneSkillCodes']]['map'](_0x51e245=>_0x51e245[_0x2c02fe(0x15c)]())[_0x2c02fe(0x188)](Boolean)):undefined,_0xecd13b=_0x47a9a3[_0x2c02fe(0x15a)]??[_0x2c02fe(0x158),'company'],_0x2993f0=resolve(getRuntimeSkillCacheRoot(_0x47a9a3[_0x2c02fe(0x15d)],_0x47a9a3[_0x2c02fe(0x17c)],_0x395583),safePathSegment(_0x47a9a3[_0x2c02fe(0x180)],_0x2c02fe(0x180))),_0x2fa1a6=[];for(const _0x597cf1 of _0xecd13b){const _0x505018=resolve(_0x2993f0,_0x597cf1);if(!existsSync(_0x505018))continue;for(const _0x51ca10 of readdirSync(_0x505018,{'withFileTypes':!![]})){if(!_0x51ca10[_0x2c02fe(0x17b)]())continue;const _0x18e42d=_0x51ca10[_0x2c02fe(0x169)];if(_0x2d919f&&!_0x2d919f[_0x2c02fe(0x162)](_0x18e42d))continue;if(_0x2c0ba1[_0x2c02fe(0x162)](_0x18e42d))continue;const _0x3d5cb6=resolve(_0x505018,_0x18e42d),_0x5cc98c=readMetadataIfPresent(resolve(_0x3d5cb6,METADATA_FILE));if(_0x5cc98c?.[_0x2c02fe(0x180)]!==_0x47a9a3[_0x2c02fe(0x180)]||_0x5cc98c[_0x2c02fe(0x161)]!==_0x597cf1||_0x5cc98c[_0x2c02fe(0x164)]!==_0x18e42d){_0x2fa1a6[_0x2c02fe(0x178)]({'path':_0x3d5cb6,'action':'skipped','reason':_0x2c02fe(0x171)});continue;}removeSync(_0x3d5cb6),_0x2fa1a6['push']({'path':_0x3d5cb6,'action':_0x2c02fe(0x172)});}}return _0x2fa1a6;}export function linkGlobalRuntimeSkills(_0x5aa720,_0x575db1={}){const _0x3388c8=a98_0x24b1,_0x3103e3=resolveSkillSyncPaths(_0x575db1),_0x152510=[];for(const _0x1e5e78 of _0x5aa720){if(_0x1e5e78[_0x3388c8(0x161)]!==_0x3388c8(0x185))throw CliErrors[_0x3388c8(0x189)](_0x3388c8(0x16e)+_0x1e5e78[_0x3388c8(0x161)]);const _0x5c692b=requireSkillCode(_0x1e5e78[_0x3388c8(0x182)]),_0x5497b4=copyManagedSkillDirectory(_0x1e5e78[_0x3388c8(0x154)],resolve(_0x3103e3['agentsSkillsDir'],_0x5c692b));_0x152510['push']({..._0x5497b4,'contentHash':_0x1e5e78[_0x3388c8(0x157)]});}return _0x152510;}function ensureManagedSymlink(_0x5920e8,_0x2b34df,_0x44839c){const _0x3e9c0a=a98_0x24b1;mkdirSync(dirname(_0x5920e8),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x5920e8)||isDanglingSymlink(_0x5920e8)){const _0x557c78=lstatSync(_0x5920e8);if(!_0x557c78[_0x3e9c0a(0x187)]())throw CliErrors[_0x3e9c0a(0x189)](_0x3e9c0a(0x163)+_0x5920e8);const _0x17bd87=resolveSymlinkTarget(_0x5920e8);if(!isPathInside(realOrResolved(_0x17bd87),realOrResolved(_0x44839c)))throw CliErrors[_0x3e9c0a(0x189)](_0x3e9c0a(0x175)+_0x5920e8);if(realOrResolved(_0x17bd87)===realOrResolved(_0x2b34df))return{'path':_0x5920e8,'target':_0x2b34df,'action':_0x3e9c0a(0x18a)};return unlinkSync(_0x5920e8),symlinkSync(_0x2b34df,_0x5920e8,_0x3e9c0a(0x154)),{'path':_0x5920e8,'target':_0x2b34df,'action':_0x3e9c0a(0x15f)};}return symlinkSync(_0x2b34df,_0x5920e8,'dir'),{'path':_0x5920e8,'target':_0x2b34df,'action':'created'};}function managedAppSkillLinkPaths(_0x108e3a,_0x400618){const _0x78dfe1=a98_0x24b1;if(!existsSync(_0x108e3a))return[];const _0x47654b=_0x400618+'--';return readdirSync(_0x108e3a,{'withFileTypes':!![]})[_0x78dfe1(0x188)](_0x10c8fb=>_0x10c8fb['name'][_0x78dfe1(0x17e)](_0x47654b))[_0x78dfe1(0x170)](_0x497f5e=>resolve(_0x108e3a,_0x497f5e[_0x78dfe1(0x169)]));}function removeManagedSkillLink(_0xaafe52,_0x4472ab){const _0xc5f225=a98_0x24b1,_0x321bcb=lstatIfPresent(_0xaafe52);if(!_0x321bcb?.['isSymbolicLink']())return{'path':_0xaafe52,'action':_0xc5f225(0x186),'reason':_0xc5f225(0x181)};const _0x395961=resolveSymlinkTarget(_0xaafe52);if(!isPathInside(realOrResolved(_0x395961),realOrResolved(_0x4472ab)))return{'path':_0xaafe52,'action':_0xc5f225(0x186),'reason':_0xc5f225(0x16b)};return unlinkSync(_0xaafe52),{'path':_0xaafe52,'action':_0xc5f225(0x172)};}export function copyManagedSkillDirectory(_0x450b65,_0x3a2eb4){const _0x1ebd26=a98_0x24b1,_0x421921=resolve(_0x3a2eb4,METADATA_FILE),_0x100b92=existsSync(_0x3a2eb4);if(_0x100b92){const _0x3f1f6f=lstatSync(_0x3a2eb4);if(_0x3f1f6f[_0x1ebd26(0x187)]())throw CliErrors[_0x1ebd26(0x189)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x3a2eb4);if(!_0x3f1f6f[_0x1ebd26(0x17b)]())throw CliErrors[_0x1ebd26(0x189)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x3a2eb4);const _0x3dd10e=readMetadataIfPresent(_0x421921);if(_0x3dd10e?.[_0x1ebd26(0x161)]!==_0x1ebd26(0x185))throw CliErrors['validation'](_0x1ebd26(0x179)+_0x3a2eb4);}ensureDirSync(dirname(_0x3a2eb4));const _0x574b15=_0x100b92?readMetadataIfPresent(_0x421921)?.[_0x1ebd26(0x157)]:undefined,_0x13a086=readMetadataIfPresent(resolve(_0x450b65,METADATA_FILE))?.[_0x1ebd26(0x157)];return _0x100b92&&removeSync(_0x3a2eb4),copySkillDirectory(_0x450b65,_0x3a2eb4),{'path':_0x3a2eb4,'target':_0x450b65,'action':!_0x100b92?_0x1ebd26(0x167):_0x574b15===_0x13a086?_0x1ebd26(0x18a):_0x1ebd26(0x15f)};}function a98_0x24b1(_0x55bd9b,_0x3609ce){_0x55bd9b=_0x55bd9b-0x154;const _0x292c96=a98_0x292c();let _0x24b141=_0x292c96[_0x55bd9b];return _0x24b141;}function copySkillDirectory(_0x4652fb,_0x536fe3){copySync(_0x4652fb,_0x536fe3,{'dereference':![],'overwrite':!![],'filter'(_0x373428){const _0x211527=a98_0x24b1;if(lstatSync(_0x373428)[_0x211527(0x187)]())throw CliErrors['validation'](_0x211527(0x183)+_0x373428);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc328d8,_0x27e46a){const _0x5a4965=a99_0x2424,_0x111e53=_0xc328d8();while(!![]){try{const _0x3ec993=-parseInt(_0x5a4965(0x1bd))/0x1+parseInt(_0x5a4965(0x1b0))/0x2+parseInt(_0x5a4965(0x19e))/0x3*(-parseInt(_0x5a4965(0x1b6))/0x4)+-parseInt(_0x5a4965(0x1a3))/0x5*(parseInt(_0x5a4965(0x1a4))/0x6)+parseInt(_0x5a4965(0x1bb))/0x7*(-parseInt(_0x5a4965(0x1a6))/0x8)+parseInt(_0x5a4965(0x198))/0x9*(-parseInt(_0x5a4965(0x1a5))/0xa)+parseInt(_0x5a4965(0x19d))/0xb;if(_0x3ec993===_0x27e46a)break;else _0x111e53['push'](_0x111e53['shift']());}catch(_0x4f17c2){_0x111e53['push'](_0x111e53['shift']());}}}(a99_0x2bcb,0xb7723));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';function a99_0x2424(_0x20a067,_0x3d8ca7){_0x20a067=_0x20a067-0x193;const _0x2bcb44=a99_0x2bcb();let _0x242436=_0x2bcb44[_0x20a067];return _0x242436;}export function listLocalRuntimeSkills(_0x3e1187,_0x336c0d={}){const _0x335b82=a99_0x2424,_0x145b78=safePathSegment(_0x3e1187[_0x335b82(0x19a)],_0x335b82(0x19a)),_0x1f1e74=normalizeRuntimeSkillScopes(_0x3e1187['scopes']),_0x2fed5f=new Set(_0x1f1e74),_0x3cf04a=_0x3e1187[_0x335b82(0x1b7)]?.[_0x335b82(0x1a1)](),_0x3e34a5=new Map(),_0x317998=resolve(getRuntimeSkillCacheRoot(_0x3e1187[_0x335b82(0x1b1)],_0x3e1187[_0x335b82(0x1ba)],_0x336c0d),_0x145b78);for(const _0x32c735 of _0x1f1e74){for(const _0x28ae99 of localSkillEntryDirs(resolve(_0x317998,_0x32c735))){collectLocalRuntimeSkill(_0x3e34a5,_0x28ae99,{'appCode':_0x145b78,'scopes':_0x2fed5f,'code':_0x3cf04a,'source':_0x335b82(0x1a9)});}}const _0x791653=resolveSkillSyncPaths(_0x336c0d);for(const _0x491abe of[_0x791653[_0x335b82(0x195)],_0x791653[_0x335b82(0x1ac)]]){for(const _0x596785 of localSkillLinkCandidates(_0x491abe,_0x145b78,_0x2fed5f)){collectLocalRuntimeSkill(_0x3e34a5,_0x596785,{'appCode':_0x145b78,'scopes':_0x2fed5f,'code':_0x3cf04a,'source':_0x335b82(0x1ab),'linkedPath':_0x596785});}}return Array[_0x335b82(0x19c)](_0x3e34a5[_0x335b82(0x1be)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x4315c4){const _0xce5608=a99_0x2424;if(!existsSync(_0x4315c4))return[];return readdirSync(_0x4315c4,{'withFileTypes':!![]})[_0xce5608(0x1b5)](_0x52ab2c=>_0x52ab2c[_0xce5608(0x194)]()||_0x52ab2c[_0xce5608(0x196)]())[_0xce5608(0x19b)](_0x555c55=>resolve(_0x4315c4,_0x555c55[_0xce5608(0x1a2)]));}function a99_0x2bcb(){const _0x3bbebe=['code','startsWith','get','accessKey','7mmnWcT','scopes','852437lpVgUU','values','includes','isDirectory','agentsSkillsDir','isSymbolicLink','skillMdPath','135uxMAQw','linkedPaths','appCode','map','from','45854523suqKUF','239007GJiauK','push','set','trim','name','875395cmPaQE','12QZfQcv','911030QpOAeK','3785384jhUulq','local','dir','cache','metadataPath','link','claudeSkillsDir','linkedPath','localeCompare','tags','365596dnCQTI','env','scope','builtin','skillCode','filter','28hBBIZu'];a99_0x2bcb=function(){return _0x3bbebe;};return a99_0x2bcb();}function localSkillLinkCandidates(_0x461332,_0x5d203e,_0x2520ed){const _0x242b82=a99_0x2424;if(!existsSync(_0x461332))return[];const _0x3c2b93=_0x5d203e+'--';return readdirSync(_0x461332,{'withFileTypes':!![]})[_0x242b82(0x1b5)](_0x282c78=>_0x282c78['isDirectory']()||_0x282c78['isSymbolicLink']())[_0x242b82(0x1b5)](_0x378324=>_0x378324[_0x242b82(0x1a2)][_0x242b82(0x1b8)](_0x3c2b93)||_0x2520ed['has'](_0x242b82(0x1b3)))['map'](_0x83fd9=>resolve(_0x461332,_0x83fd9[_0x242b82(0x1a2)]));}function collectLocalRuntimeSkill(_0x597f98,_0x2ed043,_0x367dae){const _0x338f92=a99_0x2424,_0x2200e4=resolve(_0x2ed043,METADATA_FILE),_0x3474c7=readMetadataIfPresent(_0x2200e4);if(!_0x3474c7)return;if(_0x3474c7['appCode']!==_0x367dae['appCode'])return;if(!isRuntimeSkillScope(_0x3474c7[_0x338f92(0x1b2)])||!_0x367dae[_0x338f92(0x1bc)]['has'](_0x3474c7[_0x338f92(0x1b2)]))return;const _0x3bb511=_0x3474c7[_0x338f92(0x1b4)]?.['trim']();if(!_0x3bb511)return;if(_0x367dae[_0x338f92(0x1b7)]&&_0x3bb511!==_0x367dae['code'])return;const _0x13da60=_0x3474c7[_0x338f92(0x1b2)]+':'+_0x3bb511,_0x47c09a=_0x367dae[_0x338f92(0x1ad)]?[_0x367dae['linkedPath']]:[],_0x1573e0=_0x597f98[_0x338f92(0x1b9)](_0x13da60);if(_0x1573e0){_0x367dae['source']==='cache'&&(_0x1573e0['dir']=_0x2ed043,_0x1573e0['cacheDir']=_0x2ed043,_0x1573e0[_0x338f92(0x197)]=resolve(_0x2ed043,SKILL_FILE),_0x1573e0[_0x338f92(0x1aa)]=_0x2200e4);for(const _0x995324 of _0x47c09a){!_0x1573e0[_0x338f92(0x199)][_0x338f92(0x193)](_0x995324)&&_0x1573e0[_0x338f92(0x199)][_0x338f92(0x19f)](_0x995324);}_0x1573e0[_0x338f92(0x199)]['sort']();return;}_0x597f98[_0x338f92(0x1a0)](_0x13da60,{..._0x3474c7,'tags':Array['isArray'](_0x3474c7['tags'])?_0x3474c7[_0x338f92(0x1af)]:[],'scope':_0x3474c7[_0x338f92(0x1b2)],'source':_0x338f92(0x1a7),'dir':_0x2ed043,'cacheDir':_0x367dae['source']===_0x338f92(0x1a9)?_0x2ed043:undefined,'skillMdPath':resolve(_0x2ed043,SKILL_FILE),'metadataPath':_0x2200e4,'linkedPaths':_0x47c09a});}function compareLocalRuntimeSkills(_0x2ef0c9,_0xe85c27){const _0x563a30=a99_0x2424,_0x4310c3={'personal':0x0,'company':0x1,'builtin':0x2};return _0x4310c3[_0x2ef0c9['scope']]-_0x4310c3[_0xe85c27['scope']]||_0x2ef0c9[_0x563a30(0x1b4)][_0x563a30(0x1ae)](_0xe85c27[_0x563a30(0x1b4)])||_0x2ef0c9[_0x563a30(0x1a8)][_0x563a30(0x1ae)](_0xe85c27[_0x563a30(0x1a8)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3db9de,_0x378d02){const _0x40d078=a100_0x132f,_0x4532ef=_0x3db9de();while(!![]){try{const _0x4306dd=parseInt(_0x40d078(0x134))/0x1*(parseInt(_0x40d078(0x112))/0x2)+-parseInt(_0x40d078(0x113))/0x3+parseInt(_0x40d078(0x12e))/0x4+parseInt(_0x40d078(0x124))/0x5+parseInt(_0x40d078(0x123))/0x6*(parseInt(_0x40d078(0x117))/0x7)+-parseInt(_0x40d078(0x114))/0x8*(parseInt(_0x40d078(0x115))/0x9)+-parseInt(_0x40d078(0x10f))/0xa*(-parseInt(_0x40d078(0x11f))/0xb);if(_0x4306dd===_0x378d02)break;else _0x4532ef['push'](_0x4532ef['shift']());}catch(_0x4fd976){_0x4532ef['push'](_0x4532ef['shift']());}}}(a100_0x4705,0xd94d8));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(_0x25e8f7){const _0x4c4643=a100_0x132f;return _0x25e8f7[_0x4c4643(0x120)]??Buffer[_0x4c4643(0x12c)](_0x25e8f7['content']??'',_0x4c4643(0x127));}export function fileText(_0x53b211){const _0x247cfe=a100_0x132f;return fileContent(_0x53b211)[_0x247cfe(0x10e)]('utf8');}export function normalizeLocalFiles(_0x363a4d){const _0x2bae80=a100_0x132f;if(!Array[_0x2bae80(0x138)](_0x363a4d)||_0x363a4d[_0x2bae80(0x13a)]===0x0)return[];const _0x25b007=new Map();for(const _0x3bd052 of _0x363a4d){if(!_0x3bd052||typeof _0x3bd052!==_0x2bae80(0x122)||typeof _0x3bd052['path']!==_0x2bae80(0x132))throw CliErrors[_0x2bae80(0x128)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x3850a1=normalizeSkillRelativePath(_0x3bd052[_0x2bae80(0x131)]);if(_0x25b007[_0x2bae80(0x135)](_0x3850a1))throw CliErrors['validation'](_0x2bae80(0x12b)+_0x3850a1);if(_0x3bd052[_0x2bae80(0x120)]!==undefined&&!Buffer[_0x2bae80(0x11d)](_0x3bd052['bytes']))throw CliErrors[_0x2bae80(0x128)](_0x2bae80(0x110)+_0x3850a1);if(_0x3bd052['bytes']===undefined&&typeof _0x3bd052[_0x2bae80(0x139)]!=='string')throw CliErrors[_0x2bae80(0x128)](_0x2bae80(0x12d)+_0x3850a1);const _0x26d206=fileContent(_0x3bd052);_0x25b007[_0x2bae80(0x12a)](_0x3850a1,{'path':_0x3850a1,'bytes':_0x26d206});}return Array[_0x2bae80(0x12c)](_0x25b007[_0x2bae80(0x130)]())['sort'](compareSkillFiles);}function a100_0x4705(){const _0x364829=['Duplicate\x20Skill\x20file\x20path:\x20','from','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','643732BVxesm','localeCompare','values','path','string','test','1619791OpemSh','has','Skill\x20file\x20path\x20must\x20be\x20text.','includes','isArray','content','length','split','compare','toLowerCase','isDirectory','toString','3297040GrABjh','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','isSymbolicLink','2BmvrvG','3309339KePOeM','72tFalUj','1626597cxshkK','sort','7BefhCQ','size','startsWith','sha256','isSafeInteger','Skill\x20file\x20size\x20is\x20invalid:\x20','isBuffer','push','33KhzZNv','bytes','Unsafe\x20Skill\x20file\x20path:\x20','object','2885712kXMcSh','1844970DWyUHj','name','replace','utf8','validation','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','set'];a100_0x4705=function(){return _0x364829;};return a100_0x4705();}export function normalizeManifestFiles(_0x42eff4){const _0x2afb19=a100_0x132f;if(!Array['isArray'](_0x42eff4)||_0x42eff4[_0x2afb19(0x13a)]===0x0)return[];const _0x5cde7d=new Map();for(const _0x1a542e of _0x42eff4){if(!_0x1a542e||typeof _0x1a542e!==_0x2afb19(0x122)||typeof _0x1a542e['path']!==_0x2afb19(0x132))throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x136));const _0x2270ba=normalizeSkillRelativePath(_0x1a542e[_0x2afb19(0x131)]);if(_0x5cde7d[_0x2afb19(0x135)](_0x2270ba))throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x12b)+_0x2270ba);if(!isSha256Hex(_0x1a542e[_0x2afb19(0x11a)]))throw CliErrors[_0x2afb19(0x128)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x2270ba);if(!Number[_0x2afb19(0x11b)](_0x1a542e[_0x2afb19(0x118)])||_0x1a542e[_0x2afb19(0x118)]<0x0)throw CliErrors[_0x2afb19(0x128)](_0x2afb19(0x11c)+_0x2270ba);_0x5cde7d[_0x2afb19(0x12a)](_0x2270ba,{'path':_0x2270ba,'sha256':_0x1a542e[_0x2afb19(0x11a)][_0x2afb19(0x13d)](),'size':_0x1a542e[_0x2afb19(0x118)]});}return Array['from'](_0x5cde7d['values']())[_0x2afb19(0x116)](compareSkillFiles);}export function scanSkillDirectory(_0x144e27){const _0x350e00=realpathSync(_0x144e27),_0x59d327=[];function _0x28a8b9(_0x73c0d1){const _0x4029d5=a100_0x132f,_0xde56c1=readdirSync(_0x73c0d1,{'withFileTypes':!![]})[_0x4029d5(0x116)]((_0xae9e8e,_0x3ce783)=>_0xae9e8e[_0x4029d5(0x125)][_0x4029d5(0x12f)](_0x3ce783[_0x4029d5(0x125)]));for(const _0x3e2053 of _0xde56c1){if(_0x3e2053['isDirectory']()&&IGNORED_DIR_NAMES[_0x4029d5(0x135)](_0x3e2053[_0x4029d5(0x125)]))continue;if(IGNORED_FILE_NAMES[_0x4029d5(0x135)](_0x3e2053[_0x4029d5(0x125)]))continue;const _0x29f5fd=resolve(_0x73c0d1,_0x3e2053['name']);if(_0x3e2053[_0x4029d5(0x111)]())throw CliErrors[_0x4029d5(0x128)](_0x4029d5(0x129)+_0x29f5fd);const _0x41a49c=toPosixPath(relative(_0x350e00,_0x29f5fd));if(_0x3e2053[_0x4029d5(0x10d)]()){_0x28a8b9(_0x29f5fd);continue;}if(!_0x3e2053['isFile']())continue;validateSkillRelativePath(_0x41a49c);const _0x3c9193=readFileSync(_0x29f5fd);_0x59d327[_0x4029d5(0x11e)]({'path':_0x41a49c,'bytes':_0x3c9193});}}return _0x28a8b9(_0x350e00),normalizeLocalFiles(_0x59d327);}export function compareSkillFiles(_0x4867bd,_0x24421c){const _0x383d64=a100_0x132f;if(_0x4867bd[_0x383d64(0x131)]===SKILL_FILE)return _0x24421c[_0x383d64(0x131)]===SKILL_FILE?0x0:-0x1;if(_0x24421c[_0x383d64(0x131)]===SKILL_FILE)return 0x1;return Buffer[_0x383d64(0x13c)](Buffer[_0x383d64(0x12c)](_0x4867bd[_0x383d64(0x131)],_0x383d64(0x127)),Buffer[_0x383d64(0x12c)](_0x24421c[_0x383d64(0x131)],'utf8'));}function a100_0x132f(_0x1bc1b2,_0x118546){_0x1bc1b2=_0x1bc1b2-0x10d;const _0x47057c=a100_0x4705();let _0x132f11=_0x47057c[_0x1bc1b2];return _0x132f11;}export function normalizeSkillRelativePath(_0x579b44){const _0x5bc2f9=toPosixPath(_0x579b44['trim']());return validateSkillRelativePath(_0x5bc2f9),_0x5bc2f9;}export function validateSkillRelativePath(_0xb3720e){const _0x343298=a100_0x132f;if(!_0xb3720e||_0xb3720e[_0x343298(0x119)]('/')||_0xb3720e[_0x343298(0x137)]('//'))throw CliErrors[_0x343298(0x128)](_0x343298(0x121)+_0xb3720e);for(const _0x14aeb8 of _0xb3720e[_0x343298(0x13b)]('/')){if(!_0x14aeb8||_0x14aeb8==='.'||_0x14aeb8==='..')throw CliErrors['validation'](_0x343298(0x121)+_0xb3720e);}}export function toPosixPath(_0x4e9e83){const _0x58a068=a100_0x132f;return _0x4e9e83[_0x58a068(0x126)](/\\/g,'/');}export function isSha256Hex(_0x45a8d1){const _0x2a68b6=a100_0x132f;return typeof _0x45a8d1==='string'&&/^[a-fA-F0-9]{64}$/[_0x2a68b6(0x133)](_0x45a8d1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfd62c0,_0x547550){const _0x459a48=a101_0x2574,_0xc892e6=_0xfd62c0();while(!![]){try{const _0x4d6138=-parseInt(_0x459a48(0x135))/0x1*(-parseInt(_0x459a48(0x122))/0x2)+-parseInt(_0x459a48(0x146))/0x3*(parseInt(_0x459a48(0x128))/0x4)+-parseInt(_0x459a48(0x14d))/0x5*(-parseInt(_0x459a48(0x151))/0x6)+parseInt(_0x459a48(0x125))/0x7*(parseInt(_0x459a48(0x130))/0x8)+-parseInt(_0x459a48(0x138))/0x9+parseInt(_0x459a48(0x12b))/0xa+parseInt(_0x459a48(0x129))/0xb;if(_0x4d6138===_0x547550)break;else _0xc892e6['push'](_0xc892e6['shift']());}catch(_0x254cdf){_0xc892e6['push'](_0xc892e6['shift']());}}}(a101_0x4e6c,0xc45da));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isMap,parseDocument}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';function a101_0x4e6c(){const _0x5576ac=['length','test','description','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','env','map','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','39yOzkGU','entries','appCode','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','stringify','contents','displayName','365DWgUtx','---\x0a','trimEnd','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','17634ldOVhr','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','skillName','name','displayName:\x20','89428XvYYHO','force','utf8','7CZXjVm','pulledAt','Managed\x20file\x20was\x20removed\x20locally:\x20','274136pNcDWQ','8420302JEThje','Runtime\x20Skill\x20package\x20is\x20missing\x20','2456850OgBdDl','replace','trim','validation','path','3669576MaFiPi','.\x20Changed\x20file:\x20','fileHashes','isFile','keys','19ohCMfB','has','---','7548489SrrMlw','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','accessKey','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','contentHash','filter','join'];a101_0x4e6c=function(){return _0x5576ac;};return a101_0x4e6c();}import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';function a101_0x2574(_0x45ac48,_0xd008a9){_0x45ac48=_0x45ac48-0x122;const _0x4e6c47=a101_0x4e6c();let _0x2574a1=_0x4e6c47[_0x45ac48];return _0x2574a1;}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x578b3f,_0x5da9fa,_0xf7cb6){const _0x20a466=a101_0x2574,_0x3f2681=requireSkillCode(_0x578b3f),_0xebf01c=requirePackageBytes(_0x3f2681,_0xf7cb6['packageBytes']),_0x35a0c9=extractDownloadedPackage(_0xebf01c),_0xc3e2e3=_0x35a0c9['find'](_0xe9716e=>_0xe9716e[_0x20a466(0x12f)]===SKILL_FILE);if(!_0xc3e2e3)throw CliErrors[_0x20a466(0x12e)](_0x20a466(0x12a)+SKILL_FILE+':\x20'+_0x3f2681);const _0x41c142=withMaterializedSkillFrontmatter(_0x35a0c9,_0x578b3f,_0x3f2681),_0x5e645a=_0x41c142['find'](_0x12fea2=>_0x12fea2[_0x20a466(0x12f)]===SKILL_FILE),_0x2aaffc=fileText(_0x5e645a),_0x35d3fe=getRuntimeSkillDir(_0xf7cb6[_0x20a466(0x143)],_0xf7cb6[_0x20a466(0x13a)],_0xf7cb6[_0x20a466(0x148)],_0x5da9fa,_0x3f2681,_0xf7cb6['paths']),_0x4efa52=resolve(_0x35d3fe,SKILL_FILE),_0x41c741=resolve(_0x35d3fe,METADATA_FILE),_0xb56850=contentHash(_0x2aaffc),_0x14c6f3=readMetadataIfPresent(_0x41c741)?.[_0x20a466(0x132)];ensurePulledFilesCanBeOverwritten(_0x35d3fe,_0x41c741,_0x41c142,_0xf7cb6[_0x20a466(0x123)]===!![]),mkdirSync(_0x35d3fe,{'recursive':!![],'mode':0x1c0});const _0x448e0b=existsSync(_0x4efa52)?readFileSync(_0x4efa52,_0x20a466(0x124)):undefined;return materializeFiles(_0x35d3fe,_0x41c142),removeStaleManagedFiles(_0x35d3fe,_0x14c6f3,_0x41c142),writeJsonAtomic(_0x41c741,buildMetadata(_0x578b3f,_0x5da9fa,_0xf7cb6['appCode'],_0xb56850,_0xf7cb6[_0x20a466(0x126)],_0x41c142,_0xebf01c)),{'skill':_0x578b3f,'scope':_0x5da9fa,'dir':_0x35d3fe,'skillMdPath':_0x4efa52,'metadataPath':_0x41c741,'contentHash':_0xb56850,'changed':_0x448e0b!==_0x2aaffc};}function withMaterializedSkillFrontmatter(_0x94878,_0x4e753c,_0x1487f6){const _0x50ef1d=a101_0x2574,_0x3a90e8=skillDisplayName(_0x4e753c,_0x1487f6),_0xa8bcd2=_0x4e753c[_0x50ef1d(0x141)]?.[_0x50ef1d(0x12d)]()||_0x3a90e8||_0x1487f6;return normalizeLocalFiles(_0x94878)[_0x50ef1d(0x144)](_0x442413=>{const _0x236550=_0x50ef1d,_0x5f49d7=fileText(_0x442413);if(_0x442413[_0x236550(0x12f)]!==SKILL_FILE)return _0x442413;if(hasYamlFrontmatter(_0x5f49d7))return{'path':_0x442413[_0x236550(0x12f)],'content':withSyncedDisplayName(_0x5f49d7,_0x3a90e8)};return{'path':_0x442413[_0x236550(0x12f)],'content':prependSkillFrontmatter(_0x5f49d7,{'name':_0x1487f6,'displayName':_0x3a90e8,'description':_0xa8bcd2})};});}function hasYamlFrontmatter(_0x1dfe65){const _0x194c97=a101_0x2574;return/^\uFEFF?---\s*\r?\n/[_0x194c97(0x140)](_0x1dfe65);}function prependSkillFrontmatter(_0x594806,_0x29596c){const _0x420185=a101_0x2574,_0x27f504=_0x594806['replace'](/^\uFEFF/,'');return[_0x420185(0x137),'name:\x20'+yamlString(_0x29596c[_0x420185(0x154)]),_0x29596c[_0x420185(0x14c)]?_0x420185(0x155)+yamlString(_0x29596c['displayName']):undefined,'description:\x20'+yamlString(_0x29596c[_0x420185(0x141)]),_0x420185(0x137),'',_0x27f504][_0x420185(0x13d)](_0x33b628=>_0x33b628!==undefined)[_0x420185(0x13e)]('\x0a');}function yamlString(_0x210c83){const _0x10f518=a101_0x2574;return JSON[_0x10f518(0x14a)](_0x210c83[_0x10f518(0x12c)](/\r/g,'')[_0x10f518(0x12d)]());}function skillDisplayName(_0x4fb34a,_0x14e962){const _0x5395f5=a101_0x2574,_0x58e0e4=_0x4fb34a[_0x5395f5(0x153)]?.['trim']();return _0x58e0e4||_0x14e962;}function withSyncedDisplayName(_0x183e80,_0x1142af){const _0x328b53=a101_0x2574,_0x141a77=_0x183e80['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x141a77)return _0x183e80;const _0x40f9f8=_0x141a77[0x1]??'',_0x5d6ff5=_0x141a77[0x2]??'',_0x3a8209=parseDocument(_0x5d6ff5);if(_0x3a8209['errors'][_0x328b53(0x13f)]>0x0||!isMap(_0x3a8209[_0x328b53(0x14b)]))return _0x183e80;if(_0x1142af)_0x3a8209['set'](_0x328b53(0x14c),_0x1142af);else{if(_0x3a8209[_0x328b53(0x136)](_0x328b53(0x14c)))_0x3a8209['delete'](_0x328b53(0x14c));else return _0x183e80;}const _0x351611=String(_0x3a8209)[_0x328b53(0x14f)](),_0x21ef65=_0x183e80['slice'](_0x141a77[0x0][_0x328b53(0x13f)])['replace'](/^\r?\n/,'');return _0x40f9f8+_0x328b53(0x14e)+_0x351611+'\x0a---\x0a\x0a'+_0x21ef65;}function ensurePulledFilesCanBeOverwritten(_0x11d500,_0x3cd022,_0x23724e,_0x23749b){const _0x17b40e=a101_0x2574;if(_0x23749b||!existsSync(_0x3cd022))return;const _0x564942=readMetadataIfPresent(_0x3cd022);if(!_0x564942)return;const _0x15f658=_0x564942[_0x17b40e(0x132)]&&Object['keys'](_0x564942[_0x17b40e(0x132)])['length']>0x0?_0x564942[_0x17b40e(0x132)]:undefined;if(_0x15f658)for(const [_0x2d76cc,_0xa85584]of Object[_0x17b40e(0x147)](_0x15f658)){const _0x147b79=resolveManagedFilePath(_0x11d500,_0x2d76cc);if(!existsSync(_0x147b79))throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x127)+_0x2d76cc);const _0x3ba555=lstatSync(_0x147b79);if(!_0x3ba555[_0x17b40e(0x133)]())throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x149)+_0x2d76cc);const _0x1f16f0=bufferSha256(readFileSync(_0x147b79));if(_0x1f16f0!==_0xa85584)throw CliErrors[_0x17b40e(0x12e)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x11d500+_0x17b40e(0x131)+_0x2d76cc,_0x17b40e(0x139)+_0x2d76cc);}else{const _0x2d032a=resolve(_0x11d500,SKILL_FILE);if(existsSync(_0x2d032a)&&_0x564942[_0x17b40e(0x13c)]){const _0x4b15c3=contentHash(readFileSync(_0x2d032a,'utf8'));if(_0x4b15c3!==_0x564942[_0x17b40e(0x13c)])throw CliErrors['validation'](_0x17b40e(0x145)+_0x2d032a,_0x17b40e(0x152));}}for(const _0x594323 of normalizeLocalFiles(_0x23724e)){if(_0x15f658?.[_0x594323[_0x17b40e(0x12f)]])continue;if(!_0x15f658&&_0x594323[_0x17b40e(0x12f)]===SKILL_FILE)continue;const _0x595ccc=resolveManagedFilePath(_0x11d500,_0x594323['path']);if(!existsSync(_0x595ccc))continue;const _0x58d4e0=lstatSync(_0x595ccc);if(!_0x58d4e0[_0x17b40e(0x133)]())throw CliErrors[_0x17b40e(0x12e)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x11d500,_0x17b40e(0x142)+_0x594323[_0x17b40e(0x12f)]);const _0x58c9ad=bufferSha256(readFileSync(_0x595ccc));if(_0x58c9ad!==fileHash(_0x594323))throw CliErrors[_0x17b40e(0x12e)](_0x17b40e(0x150)+_0x11d500,_0x17b40e(0x13b)+_0x594323[_0x17b40e(0x12f)]);}}function materializeFiles(_0x1ff89e,_0x4448f0){const _0x393df2=a101_0x2574;for(const _0x5e6e51 of normalizeLocalFiles(_0x4448f0)){const _0x247103=resolveManagedFilePath(_0x1ff89e,_0x5e6e51[_0x393df2(0x12f)]);mkdirSync(dirname(_0x247103),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x247103,fileContent(_0x5e6e51),0x180);}}function removeStaleManagedFiles(_0xe5fc02,_0x151d6d,_0x201b0c){const _0x4dfa80=a101_0x2574;if(!_0x151d6d)return;const _0x5cfc4e=new Set(normalizeLocalFiles(_0x201b0c)[_0x4dfa80(0x144)](_0x180087=>_0x180087['path']));for(const _0x5bc467 of Object[_0x4dfa80(0x134)](_0x151d6d)){if(_0x5cfc4e[_0x4dfa80(0x136)](_0x5bc467))continue;const _0x56228a=resolveManagedFilePath(_0xe5fc02,_0x5bc467);existsSync(_0x56228a)&&lstatSync(_0x56228a)[_0x4dfa80(0x133)]()&&rmSync(_0x56228a,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55e4b5,_0x13a10e){const _0x3ed626=a102_0x692e,_0xbfc815=_0x55e4b5();while(!![]){try{const _0x2f0df1=parseInt(_0x3ed626(0x9a))/0x1+parseInt(_0x3ed626(0xa2))/0x2*(parseInt(_0x3ed626(0x94))/0x3)+parseInt(_0x3ed626(0x8f))/0x4+parseInt(_0x3ed626(0xa1))/0x5*(parseInt(_0x3ed626(0x9c))/0x6)+-parseInt(_0x3ed626(0x98))/0x7*(parseInt(_0x3ed626(0x88))/0x8)+-parseInt(_0x3ed626(0x86))/0x9*(parseInt(_0x3ed626(0x85))/0xa)+parseInt(_0x3ed626(0xa6))/0xb*(-parseInt(_0x3ed626(0x87))/0xc);if(_0x2f0df1===_0x13a10e)break;else _0xbfc815['push'](_0xbfc815['shift']());}catch(_0x129784){_0xbfc815['push'](_0xbfc815['shift']());}}}(a102_0x4a61,0x5f311));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a102_0x4a61(){const _0x23f54e=['13196kWycKd','version','Invalid\x20','map','491557YZOdrF','isArray','personal','10kVNHLM','6425883sZLqDo','108uOukgc','32rHVZLV','zipSha256','fromEntries','skillName','path','parse','sourceSessionId','2815084QSJVDe','files','string','trim','tenantCode','351JwhjXK','manifest','length','zipSize','593278wxOzIE','forkedFromSkillId','287718amhWdm','skillCode','81636FAkyww','object','utf8','status','validation','30eOaIcG'];a102_0x4a61=function(){return _0x23f54e;};return a102_0x4a61();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x464be1,_0xf1a61b,_0x439260,_0x27ddca,_0x29a842,_0x38c0e0,_0xb3d680){const _0x27fb5d=a102_0x692e,_0x4c85cf=_0x38c0e0?normalizeLocalFiles(_0x38c0e0):[],_0x2c3f45=!_0xb3d680&&_0x4c85cf[_0x27fb5d(0x96)]>0x0?buildSkillPackage(_0x4c85cf):undefined,_0x27c030=_0xb3d680?bufferSha256(_0xb3d680):_0x2c3f45?.['manifest'][_0x27fb5d(0x89)],_0x1be8ea=_0xb3d680?.[_0x27fb5d(0x96)]??_0x2c3f45?.[_0x27fb5d(0x95)][_0x27fb5d(0x97)],_0x872a4=_0x4c85cf[_0x27fb5d(0x96)]>0x0?Object[_0x27fb5d(0x8a)](_0x4c85cf[_0x27fb5d(0xa5)](_0x14d172=>[_0x14d172[_0x27fb5d(0x8c)],fileHash(_0x14d172)])):undefined;return{'schemaVersion':_0x4c85cf[_0x27fb5d(0x96)]>0x0?0x2:0x1,'id':_0x464be1['id'],'appCode':_0x439260,'skillCode':requireSkillCode(_0x464be1),'skillName':_0x464be1[_0x27fb5d(0x8b)],'description':_0x464be1['description'],'scope':_0xf1a61b,'readonly':_0xf1a61b!==_0x27fb5d(0x84)||_0x464be1['readonly']===!![],'tenantCode':_0x464be1[_0x27fb5d(0x93)],'userId':_0x464be1['userId'],'version':_0x464be1[_0x27fb5d(0xa3)],'status':_0x464be1[_0x27fb5d(0x9f)],'tags':Array['isArray'](_0x464be1['tags'])?_0x464be1['tags']:[],'hasUpstreamUpdate':_0x464be1['hasUpstreamUpdate'],'forkedFromSkillId':_0x464be1[_0x27fb5d(0x99)],'forkedFromVersion':_0x464be1['forkedFromVersion'],'sourceSessionId':_0x464be1[_0x27fb5d(0x8e)],'contentHash':_0x27ddca,'fileHashes':_0x872a4,'treeHash':_0x4c85cf[_0x27fb5d(0x96)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4c85cf)):undefined,'ossPath':remoteManifestOssPath(_0x464be1[_0x27fb5d(0x90)]),'zipSha256':_0x27c030,'zipSize':_0x1be8ea,'files':_0x4c85cf[_0x27fb5d(0x96)]>0x0?_0x4c85cf['map'](_0x1a44a4=>({'path':_0x1a44a4['path'],'hash':fileHash(_0x1a44a4),'size':fileContent(_0x1a44a4)[_0x27fb5d(0x96)]})):undefined,'pulledAt':_0x29a842??new Date()['toISOString']()};}function a102_0x692e(_0x946f24,_0x1740bd){_0x946f24=_0x946f24-0x83;const _0x4a6166=a102_0x4a61();let _0x692e16=_0x4a6166[_0x946f24];return _0x692e16;}export function requireSkillCode(_0x31cd58){const _0x31178d=a102_0x692e,_0x26852a=_0x31cd58[_0x31178d(0x9b)]?.[_0x31178d(0x92)]();if(!_0x26852a)throw CliErrors[_0x31178d(0xa0)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x26852a;}export function readMetadataIfPresent(_0x4aa514){const _0x22b2ac=a102_0x692e;if(!existsSync(_0x4aa514))return undefined;try{const _0x2b9bfc=JSON[_0x22b2ac(0x8d)](readFileSync(_0x4aa514,_0x22b2ac(0x9e)));return _0x2b9bfc;}catch{throw CliErrors['validation'](_0x22b2ac(0xa4)+METADATA_FILE+':\x20'+_0x4aa514);}}function remoteManifestOssPath(_0x1ab7f8){const _0xdd549c=a102_0x692e;if(!_0x1ab7f8||typeof _0x1ab7f8!==_0xdd549c(0x9d)||Array[_0xdd549c(0x83)](_0x1ab7f8))return undefined;const _0x337447=_0x1ab7f8['ossPath'];return typeof _0x337447===_0xdd549c(0x91)&&_0x337447[_0xdd549c(0x92)]()?_0x337447['trim']():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fd316,_0x168a56){const _0x186200=a103_0x4d0f,_0x1c4d6e=_0x2fd316();while(!![]){try{const _0x321218=-parseInt(_0x186200(0x17a))/0x1+parseInt(_0x186200(0x17b))/0x2*(-parseInt(_0x186200(0x174))/0x3)+parseInt(_0x186200(0x173))/0x4*(parseInt(_0x186200(0x179))/0x5)+-parseInt(_0x186200(0x170))/0x6*(-parseInt(_0x186200(0x163))/0x7)+parseInt(_0x186200(0x166))/0x8+parseInt(_0x186200(0x16d))/0x9+-parseInt(_0x186200(0x172))/0xa*(parseInt(_0x186200(0x167))/0xb);if(_0x321218===_0x168a56)break;else _0x1c4d6e['push'](_0x1c4d6e['shift']());}catch(_0x34f8e2){_0x1c4d6e['push'](_0x1c4d6e['shift']());}}}(a103_0xf31f,0x81add));function a103_0xf31f(){const _0x4a79ac=['claudeSkillsDir','cache','SKILL_ROOT','7777395jDibFF','homeDirName','CLAUDE_SKILL_ROOT','1032sKwERu','.agents','6369470fgppwR','6512SJvVvF','6tGqBXs','homeDir','agentsSkillsDir','appCode','cacheRoot','560yytnmt','239292nrTRcq','137726WcCnAe','Unsafe\x20','.claude','includes','5362HNdIMJ','skills','trim','2935096ouktcE','11FLLEPv','\x20for\x20local\x20path:\x20','skillCode'];a103_0xf31f=function(){return _0x4a79ac;};return a103_0xf31f();}function a103_0x4d0f(_0x23aa34,_0x2cf64e){_0x23aa34=_0x23aa34-0x160;const _0xf31f3b=a103_0xf31f();let _0x4d0fff=_0xf31f3b[_0x23aa34];return _0x4d0fff;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0xac9a05={}){const _0x233223=a103_0x4d0f,_0x140ac9=_0xac9a05[_0x233223(0x175)]??homedir(),_0x416503=resolve(_0x140ac9,PRODUCT_CONFIG[_0x233223(0x16e)],_0x233223(0x16b)),_0x1a4752=trimmedEnv(_0x233223(0x16c)),_0x2cecda=trimmedEnv(_0x233223(0x16f));return{'homeDir':_0x140ac9,'cacheRoot':_0x416503,'managedRoot':resolve(_0x140ac9,PRODUCT_CONFIG[_0x233223(0x16e)]),'agentsSkillsDir':_0xac9a05[_0x233223(0x176)]??_0x1a4752??resolve(_0x140ac9,_0x233223(0x171),_0x233223(0x164)),'claudeSkillsDir':_0xac9a05[_0x233223(0x16a)]??_0x2cecda??resolve(_0x140ac9,_0x233223(0x161),'skills')};}export function getRuntimeSkillCacheRoot(_0x36c125,_0x1121b6,_0x9c1f78={}){const _0x1f7627=a103_0x4d0f,_0x2ad41e=resolveSkillSyncPaths(_0x9c1f78);return resolve(_0x2ad41e[_0x1f7627(0x178)],_0x36c125,fingerprintAccessKey(_0x1121b6),_0x1f7627(0x164));}export function getRuntimeSkillDir(_0x426908,_0x3d65c7,_0x4eb2ce,_0x1ba61e,_0x5ca416,_0x4fba3e={}){const _0x27e98e=a103_0x4d0f;return resolve(getRuntimeSkillCacheRoot(_0x426908,_0x3d65c7,_0x4fba3e),safePathSegment(_0x4eb2ce,_0x27e98e(0x177)),_0x1ba61e,safePathSegment(_0x5ca416,_0x27e98e(0x169)));}export function safePathSegment(_0x3e59df,_0x519644='path\x20segment'){const _0x2768a7=a103_0x4d0f;if(!_0x3e59df||_0x3e59df[_0x2768a7(0x162)]('/')||_0x3e59df[_0x2768a7(0x162)]('\x5c')||_0x3e59df[_0x2768a7(0x162)]('..'))throw CliErrors['validation'](_0x2768a7(0x160)+_0x519644+_0x2768a7(0x168)+_0x3e59df);return _0x3e59df;}function trimmedEnv(_0x3bf285){const _0x186566=a103_0x4d0f,_0x507307=productEnv(_0x3bf285)?.[_0x186566(0x165)]();return _0x507307?_0x507307:undefined;}
|