@lovrabet/lovrabet-cli 2.1.20 → 2.1.21-beta.1
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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29aff9,_0x5040bc){const _0x2bd116=a106_0x3b31,_0x12ecab=_0x29aff9();while(!![]){try{const _0xfc826a=-parseInt(_0x2bd116(0x1bd))/0x1*(-parseInt(_0x2bd116(0x1bf))/0x2)+-parseInt(_0x2bd116(0x1be))/0x3*(-parseInt(_0x2bd116(0x1c2))/0x4)+parseInt(_0x2bd116(0x1bc))/0x5+-parseInt(_0x2bd116(0x1c0))/0x6*(parseInt(_0x2bd116(0x1c4))/0x7)+parseInt(_0x2bd116(0x1cd))/0x8*(-parseInt(_0x2bd116(0x1cc))/0x9)+parseInt(_0x2bd116(0x1c8))/0xa+-parseInt(_0x2bd116(0x1ca))/0xb*(parseInt(_0x2bd116(0x1cb))/0xc);if(_0xfc826a===_0x5040bc)break;else _0x12ecab['push'](_0x12ecab['shift']());}catch(_0x24d270){_0x12ecab['push'](_0x12ecab['shift']());}}}(a106_0x8e8a,0x5754b));function a106_0x3b31(_0x579363,_0x5c6e77){_0x579363=_0x579363-0x1bc;const _0x8e8a91=a106_0x8e8a();let _0x3b31e4=_0x8e8a91[_0x579363];return _0x3b31e4;}import{createHash}from'node:crypto';function a106_0x8e8a(){const _0xc7b8e5=['path','44tvqEkQ','2875296ZpkDdG','348849tBOglx','24XynzVl','945060UBedBp','449ReGWVg','408dtRitr','3102GcAydo','1518xrqMdO','update','5368JUdfAe','hex','1960AHHKiH','digest','size','sha256','4353390JBXacp'];a106_0x8e8a=function(){return _0xc7b8e5;};return a106_0x8e8a();}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x2a3d8d){const _0x412dcd=a106_0x3b31;return createHash(_0x412dcd(0x1c7))[_0x412dcd(0x1c1)](_0x2a3d8d)['digest'](_0x412dcd(0x1c3));}export function fileHash(_0x595e21){return bufferSha256(fileContent(_0x595e21));}export function bufferSha256(_0x56eaa3){const _0x56fa65=a106_0x3b31;return createHash('sha256')['update'](_0x56eaa3)[_0x56fa65(0x1c5)]('hex');}export function fileTreeHash(_0x41170a){const _0x12c5d7=a106_0x3b31,_0x4e33df=createHash(_0x12c5d7(0x1c7));for(const _0x5c5b39 of normalizeManifestFiles(_0x41170a)){_0x4e33df[_0x12c5d7(0x1c1)](_0x5c5b39[_0x12c5d7(0x1c9)]),_0x4e33df[_0x12c5d7(0x1c1)]('\x00'),_0x4e33df[_0x12c5d7(0x1c1)](_0x5c5b39[_0x12c5d7(0x1c7)]),_0x4e33df['update']('\x00'),_0x4e33df[_0x12c5d7(0x1c1)](String(_0x5c5b39[_0x12c5d7(0x1c6)])),_0x4e33df['update']('\x00');}return _0x4e33df[_0x12c5d7(0x1c5)](_0x12c5d7(0x1c3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a107_0x130a(){const _0x505300=['112002VUCbTo','1302072lYEtzu','4sElqCc','23101770xaNzMB','global','cwd','project','skills','7472315zGFHDj','.agents','freeze','76CtPVOG','56322MaShqI','4952430EUDCzG','344wtbtbl','2160423vmwWCy'];a107_0x130a=function(){return _0x505300;};return a107_0x130a();}const a107_0x5866c6=a107_0x8b7c;(function(_0x5158aa,_0x1e8850){const _0x2f0def=a107_0x8b7c,_0x33b00f=_0x5158aa();while(!![]){try{const _0x20c0ee=-parseInt(_0x2f0def(0x108))/0x1+parseInt(_0x2f0def(0x102))/0x2*(-parseInt(_0x2f0def(0x107))/0x3)+parseInt(_0x2f0def(0x109))/0x4*(parseInt(_0x2f0def(0xff))/0x5)+-parseInt(_0x2f0def(0x104))/0x6+parseInt(_0x2f0def(0x103))/0x7*(parseInt(_0x2f0def(0x105))/0x8)+parseInt(_0x2f0def(0x106))/0x9+parseInt(_0x2f0def(0x10a))/0xa;if(_0x20c0ee===_0x1e8850)break;else _0x33b00f['push'](_0x33b00f['shift']());}catch(_0x5b079c){_0x33b00f['push'](_0x33b00f['shift']());}}}(a107_0x130a,0xce2d0));function a107_0x8b7c(_0x55e30d,_0x190d6c){_0x55e30d=_0x55e30d-0xfe;const _0x130a75=a107_0x130a();let _0x8b7ce1=_0x130a75[_0x55e30d];return _0x8b7ce1;}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x30aaa7,_0x50a7c5=a107_0x5866c6(0x10b),_0x3f0d16={}){const _0x106fb0=a107_0x5866c6,_0x54e6cd=resolveSkillSyncPaths(_0x3f0d16),_0x15b17b=safePathSegment(_0x30aaa7,'appCode'),_0x23a1da=_0x50a7c5===_0x106fb0(0x10d)?[resolve(_0x3f0d16['cwd']??process[_0x106fb0(0x10c)](),_0x106fb0(0x100),_0x106fb0(0xfe))]:runtimeAgentSkillRoots(_0x54e6cd);return Object[_0x106fb0(0x101)]({'scope':_0x50a7c5,'appCode':_0x15b17b,'skillRoots':Object[_0x106fb0(0x101)](_0x23a1da),'managedRoot':_0x54e6cd['managedRoot']});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108_0x1d72(){const _0x46cb6d=['personal','name','trim','values','appCode','not-managed-symlink','env','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','skill','external-symlink','unchanged','set','filter','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','length','pruneSkillCodes','4863312OzFspi','push','3044812XfROko','project','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','isSymbolicLink','metadataPath','removed','524670RlVtWe','4iXizRI','72Mmevnp','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','created','isDirectory','agentsSkillsDir','protectedLinkRoots','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','1641564ktxNiX','scope','1723257cGnjBu','20LmXaSn','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','activeSkillCodes','dir','validation','linked-from-protected-root','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','get','managedRoot','accessKey','map','skillCode','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','updated','skipped','7977032gqWNfr','6933472BABpir','startsWith','slice','metadata-mismatch','contentHash','runtime-observe','has'];a108_0x1d72=function(){return _0x46cb6d;};return a108_0x1d72();}const a108_0x9f839b=a108_0x17ac;(function(_0x1a3aed,_0x138b00){const _0x5d9fc8=a108_0x17ac,_0x2e5e40=_0x1a3aed();while(!![]){try{const _0x52fe5d=-parseInt(_0x5d9fc8(0x10f))/0x1+parseInt(_0x5d9fc8(0x100))/0x2+-parseInt(_0x5d9fc8(0x111))/0x3*(-parseInt(_0x5d9fc8(0x107))/0x4)+-parseInt(_0x5d9fc8(0x106))/0x5*(-parseInt(_0x5d9fc8(0x108))/0x6)+parseInt(_0x5d9fc8(0x121))/0x7+-parseInt(_0x5d9fc8(0x122))/0x8+parseInt(_0x5d9fc8(0xfe))/0x9*(-parseInt(_0x5d9fc8(0x112))/0xa);if(_0x52fe5d===_0x138b00)break;else _0x2e5e40['push'](_0x2e5e40['shift']());}catch(_0x45a6e1){_0x2e5e40['push'](_0x2e5e40['shift']());}}}(a108_0x1d72,0xdd581));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x17bbcb 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';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x17bbcb,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a108_0x9f839b(0xec),'secret-retriever']);export function linkEffectiveRuntimeSkills(_0x3e19e1,_0x4dd9ad){const _0x4816f7=a108_0x9f839b,_0x1c3d9f=new Map();for(const _0x15da28 of _0x3e19e1){const _0x4a4bcf=_0x15da28['skill'][_0x4816f7(0x11d)];if(!_0x4a4bcf)continue;const _0x4c5847=_0x1c3d9f[_0x4816f7(0x119)](_0x4a4bcf);(!_0x4c5847||_0x15da28[_0x4816f7(0x110)]==='personal')&&_0x1c3d9f[_0x4816f7(0xf9)](_0x4a4bcf,_0x15da28);}const _0x253d04=[];for(const _0x3ab587 of _0x1c3d9f[_0x4816f7(0xf1)]()){const _0x2c7fa8=requireSkillCode(_0x3ab587[_0x4816f7(0xf6)]),_0xae8250=readMetadataIfPresent(_0x3ab587[_0x4816f7(0x104)]);if(_0xae8250?.[_0x4816f7(0xf2)]!==_0x4dd9ad['appCode']||_0xae8250[_0x4816f7(0x11d)]!==_0x2c7fa8)throw CliErrors[_0x4816f7(0x116)](_0x4816f7(0x113)+_0x4dd9ad[_0x4816f7(0xf2)]+':\x20'+_0x3ab587['metadataPath']);const _0x269130=runtimeSkillLinkName(_0x4dd9ad,_0x2c7fa8);for(const _0x49b7e4 of _0x4dd9ad['skillRoots']){_0x253d04[_0x4816f7(0xff)](ensureManagedSymlink(resolve(_0x49b7e4,_0x269130),_0x3ab587['dir'],_0x4dd9ad,_0x2c7fa8));}}return _0x253d04;}export function pruneStaleRuntimeSkillLinks(_0xcffc80,_0x350b1b,_0x22b61f){const _0x2c60a8=a108_0x9f839b,_0x5afd62=new Set([..._0x350b1b][_0x2c60a8(0x11c)](_0x31f946=>_0x31f946[_0x2c60a8(0xf0)]())[_0x2c60a8(0xfa)](Boolean)),_0x5e6fb1=_0x22b61f?new Set([..._0x22b61f][_0x2c60a8(0x11c)](_0x310622=>_0x310622[_0x2c60a8(0xf0)]())['filter'](Boolean)):undefined,_0x126ed0=[];for(const _0x2ec975 of _0xcffc80['skillRoots']){for(const _0x3f624e of managedTargetSkillLinkPaths(_0x2ec975,_0xcffc80)){const _0x2ca8e8=runtimeSkillCodeFromLink(_0xcffc80,_0x3f624e);if(_0x5e6fb1&&!_0x5e6fb1['has'](_0x2ca8e8))continue;if(_0x5afd62[_0x2c60a8(0xed)](_0x2ca8e8))continue;_0x126ed0['push'](removeManagedSkillLink(_0x3f624e,_0xcffc80,_0x2ca8e8));}}return _0x126ed0;}export function pruneStaleRuntimeSkillCache(_0x7385e6,_0x310096={}){const _0x23f376=a108_0x9f839b,_0x1bc55e=new Set([..._0x7385e6[_0x23f376(0x114)]][_0x23f376(0x11c)](_0x34798d=>_0x34798d['trim']())[_0x23f376(0xfa)](Boolean)),_0x2cbdb0=_0x7385e6[_0x23f376(0xfd)]?new Set([..._0x7385e6['pruneSkillCodes']][_0x23f376(0x11c)](_0x2668ab=>_0x2668ab[_0x23f376(0xf0)]())[_0x23f376(0xfa)](Boolean)):undefined,_0xda0b1b=_0x7385e6['scopes']??[_0x23f376(0xee),'company'],_0x1ccb47=resolve(getRuntimeSkillCacheRoot(_0x7385e6[_0x23f376(0xf4)],_0x7385e6[_0x23f376(0x11b)],_0x310096),safePathSegment(_0x7385e6['appCode'],_0x23f376(0xf2))),_0x51908a=[];for(const _0x3f2126 of _0xda0b1b){const _0x1cfc51=resolve(_0x1ccb47,_0x3f2126);if(!existsSync(_0x1cfc51))continue;for(const _0x590cf4 of readdirSync(_0x1cfc51,{'withFileTypes':!![]})){if(!_0x590cf4[_0x23f376(0x10b)]())continue;const _0x453366=_0x590cf4[_0x23f376(0xef)];if(_0x2cbdb0&&!_0x2cbdb0[_0x23f376(0xed)](_0x453366))continue;if(_0x1bc55e[_0x23f376(0xed)](_0x453366))continue;const _0x5a2053=resolve(_0x1cfc51,_0x453366),_0x3ae7e0=readMetadataIfPresent(resolve(_0x5a2053,METADATA_FILE));if(_0x3ae7e0?.[_0x23f376(0xf2)]!==_0x7385e6['appCode']||_0x3ae7e0['scope']!==_0x3f2126||_0x3ae7e0['skillCode']!==_0x453366){_0x51908a[_0x23f376(0xff)]({'path':_0x5a2053,'action':'skipped','reason':_0x23f376(0xea)});continue;}if(isLinkedFromAnyRoot(_0x5a2053,_0x7385e6[_0x23f376(0x10d)]??[])){_0x51908a['push']({'path':_0x5a2053,'action':_0x23f376(0x120),'reason':_0x23f376(0x117)});continue;}removeSync(_0x5a2053),_0x51908a[_0x23f376(0xff)]({'path':_0x5a2053,'action':_0x23f376(0x105)});}}return _0x51908a;}export function linkGlobalRuntimeSkills(_0x52d77b,_0x570f1b={}){const _0x3dd1e1=a108_0x9f839b,_0xb3f27=resolveSkillSyncPaths(_0x570f1b),_0x58f949=[];for(const _0x3d4b6b of _0x52d77b){if(_0x3d4b6b[_0x3dd1e1(0x110)]!=='builtin')throw CliErrors[_0x3dd1e1(0x116)](_0x3dd1e1(0x102)+_0x3d4b6b['scope']);const _0x12cf3b=requireSkillCode(_0x3d4b6b['skill']),_0x1875c3=copyManagedSkillDirectory(_0x3d4b6b[_0x3dd1e1(0x115)],resolve(_0xb3f27[_0x3dd1e1(0x10c)],_0x12cf3b));_0x58f949[_0x3dd1e1(0xff)]({..._0x1875c3,'contentHash':_0x3d4b6b[_0x3dd1e1(0xeb)]});}return _0x58f949;}function a108_0x17ac(_0x32942d,_0x57cfd1){_0x32942d=_0x32942d-0xe8;const _0x1d7268=a108_0x1d72();let _0x17ac7b=_0x1d7268[_0x32942d];return _0x17ac7b;}function ensureManagedSymlink(_0x1e3be4,_0x57e87b,_0x57a55a,_0x58ec5d){const _0x129160=a108_0x9f839b;mkdirSync(dirname(_0x1e3be4),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1e3be4)||isDanglingSymlink(_0x1e3be4)){const _0x3e1a31=lstatSync(_0x1e3be4);if(!_0x3e1a31[_0x129160(0x103)]())throw CliErrors[_0x129160(0x116)](_0x129160(0x11e)+_0x1e3be4);const _0x164fbf=resolveSymlinkTarget(_0x1e3be4);if(!isPathInside(realOrResolved(_0x164fbf),realOrResolved(_0x57a55a['managedRoot'])))throw CliErrors[_0x129160(0x116)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x1e3be4);if(realOrResolved(_0x164fbf)===realOrResolved(_0x57e87b))return{'path':_0x1e3be4,'target':_0x57e87b,'action':_0x129160(0xf8)};const _0x3e7d4a=readMetadataIfPresent(resolve(_0x164fbf,METADATA_FILE));if(_0x57a55a['scope']===_0x129160(0x101)&&(_0x3e7d4a?.[_0x129160(0xf2)]!==_0x57a55a[_0x129160(0xf2)]||_0x3e7d4a[_0x129160(0x11d)]!==_0x58ec5d))throw CliErrors[_0x129160(0x116)](_0x129160(0xfb)+_0x1e3be4);return unlinkSync(_0x1e3be4),symlinkSync(_0x57e87b,_0x1e3be4,_0x129160(0x115)),{'path':_0x1e3be4,'target':_0x57e87b,'action':_0x129160(0x11f)};}return symlinkSync(_0x57e87b,_0x1e3be4,_0x129160(0x115)),{'path':_0x1e3be4,'target':_0x57e87b,'action':'created'};}function managedTargetSkillLinkPaths(_0x59a210,_0x16a874){const _0x7dc22b=a108_0x9f839b;if(!existsSync(_0x59a210))return[];const _0x440bba=_0x16a874['appCode']+'--';return readdirSync(_0x59a210,{'withFileTypes':!![]})['filter'](_0xf038b6=>_0x16a874[_0x7dc22b(0x110)]==='project'||_0xf038b6['name'][_0x7dc22b(0xe8)](_0x440bba))[_0x7dc22b(0x11c)](_0x4592ed=>resolve(_0x59a210,_0x4592ed[_0x7dc22b(0xef)]));}function removeManagedSkillLink(_0x261ffb,_0x414339,_0xee1d3f){const _0x598656=a108_0x9f839b,_0x273ef2=lstatIfPresent(_0x261ffb);if(!_0x273ef2?.[_0x598656(0x103)]())return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':_0x598656(0xf3)};const _0x4f978c=resolveSymlinkTarget(_0x261ffb);if(!isPathInside(realOrResolved(_0x4f978c),realOrResolved(_0x414339[_0x598656(0x11a)])))return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':_0x598656(0xf7)};const _0x4fc0e1=readMetadataIfPresent(resolve(_0x4f978c,METADATA_FILE));if(_0x414339[_0x598656(0x110)]==='project'&&(_0x4fc0e1?.[_0x598656(0xf2)]!==_0x414339[_0x598656(0xf2)]||_0x4fc0e1[_0x598656(0x11d)]!==_0xee1d3f))return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':'metadata-mismatch'};return unlinkSync(_0x261ffb),{'path':_0x261ffb,'action':_0x598656(0x105)};}function isLinkedFromAnyRoot(_0x5c079e,_0xcaaa95){const _0x164ffa=a108_0x9f839b,_0x51e33b=realOrResolved(_0x5c079e);for(const _0x1468e0 of _0xcaaa95){if(!existsSync(_0x1468e0))continue;for(const _0x1e428 of readdirSync(_0x1468e0,{'withFileTypes':!![]})){if(!_0x1e428[_0x164ffa(0x103)]())continue;const _0x4b0d10=resolve(_0x1468e0,_0x1e428['name']);if(realOrResolved(resolveSymlinkTarget(_0x4b0d10))===_0x51e33b)return!![];}}return![];}function runtimeSkillLinkName(_0x495ffc,_0x3bcbc1){const _0x1cf147=a108_0x9f839b,_0x113e00=safePathSegment(_0x3bcbc1,_0x1cf147(0x11d));if(_0x495ffc['scope']===_0x1cf147(0x101)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x113e00))throw CliErrors[_0x1cf147(0x116)](_0x1cf147(0xf5)+_0x113e00);return _0x495ffc[_0x1cf147(0x110)]===_0x1cf147(0x101)?_0x113e00:_0x495ffc['appCode']+'--'+_0x113e00;}function runtimeSkillCodeFromLink(_0x1ed09a,_0x4bce61){const _0x2e8faf=a108_0x9f839b,_0x4040aa=basename(_0x4bce61);return _0x1ed09a[_0x2e8faf(0x110)]===_0x2e8faf(0x101)?_0x4040aa:_0x4040aa[_0x2e8faf(0xe9)]((_0x1ed09a[_0x2e8faf(0xf2)]+'--')[_0x2e8faf(0xfc)]);}export function copyManagedSkillDirectory(_0x1b29c6,_0x27a8f2){const _0x3e4dd2=a108_0x9f839b,_0x3008e8=resolve(_0x27a8f2,METADATA_FILE),_0x4e059f=existsSync(_0x27a8f2);if(_0x4e059f){const _0xd13285=lstatSync(_0x27a8f2);if(_0xd13285['isSymbolicLink']())throw CliErrors[_0x3e4dd2(0x116)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x27a8f2);if(!_0xd13285[_0x3e4dd2(0x10b)]())throw CliErrors[_0x3e4dd2(0x116)](_0x3e4dd2(0x109)+_0x27a8f2);const _0x329600=readMetadataIfPresent(_0x3008e8);if(_0x329600?.['scope']!=='builtin')throw CliErrors['validation'](_0x3e4dd2(0x118)+_0x27a8f2);}ensureDirSync(dirname(_0x27a8f2));const _0x17596b=_0x4e059f?readMetadataIfPresent(_0x3008e8)?.[_0x3e4dd2(0xeb)]:undefined,_0x7c9b16=readMetadataIfPresent(resolve(_0x1b29c6,METADATA_FILE))?.[_0x3e4dd2(0xeb)];return _0x4e059f&&removeSync(_0x27a8f2),copySkillDirectory(_0x1b29c6,_0x27a8f2),{'path':_0x27a8f2,'target':_0x1b29c6,'action':!_0x4e059f?_0x3e4dd2(0x10a):_0x17596b===_0x7c9b16?_0x3e4dd2(0xf8):_0x3e4dd2(0x11f)};}function copySkillDirectory(_0x2c8209,_0x273896){copySync(_0x2c8209,_0x273896,{'dereference':![],'overwrite':!![],'filter'(_0x3646ec){const _0x53474a=a108_0x17ac;if(lstatSync(_0x3646ec)[_0x53474a(0x103)]())throw CliErrors[_0x53474a(0x116)](_0x53474a(0x10e)+_0x3646ec);return!![];}});}
|
|
1
|
+
const a108_0x57cb60=a108_0x227d;function a108_0x227d(_0x42fb71,_0x3f952b){_0x42fb71=_0x42fb71-0x8b;const _0x35e423=a108_0x35e4();let _0x227d10=_0x35e423[_0x42fb71];return _0x227d10;}(function(_0x47ca9d,_0x106f95){const _0x19781e=a108_0x227d,_0x3c0674=_0x47ca9d();while(!![]){try{const _0x552857=-parseInt(_0x19781e(0x94))/0x1*(-parseInt(_0x19781e(0x9a))/0x2)+parseInt(_0x19781e(0xb9))/0x3*(-parseInt(_0x19781e(0xbf))/0x4)+parseInt(_0x19781e(0x96))/0x5*(parseInt(_0x19781e(0xae))/0x6)+parseInt(_0x19781e(0xc0))/0x7+parseInt(_0x19781e(0xa3))/0x8+parseInt(_0x19781e(0xb7))/0x9+-parseInt(_0x19781e(0xba))/0xa;if(_0x552857===_0x106f95)break;else _0x3c0674['push'](_0x3c0674['shift']());}catch(_0x4c7d75){_0x3c0674['push'](_0x3c0674['shift']());}}}(a108_0x35e4,0x8a3a5));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0xa7593a 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';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0xa7593a,RESERVED_PROJECT_SKILL_CODES=new Set([a108_0x57cb60(0xaf),a108_0x57cb60(0xa6),a108_0x57cb60(0x98)]);export function linkEffectiveRuntimeSkills(_0x53dfb4,_0xdf562d){const _0x122661=a108_0x57cb60,_0x451d87=new Map();for(const _0x3650fc of _0x53dfb4){const _0x1c96ca=_0x3650fc[_0x122661(0xc1)][_0x122661(0xb3)];if(!_0x1c96ca)continue;const _0x44548e=_0x451d87['get'](_0x1c96ca);(!_0x44548e||_0x3650fc[_0x122661(0xbb)]==='personal')&&_0x451d87[_0x122661(0xb8)](_0x1c96ca,_0x3650fc);}const _0x295b9c=[];for(const _0x3124fd of _0x451d87['values']()){const _0x2f052e=requireSkillCode(_0x3124fd[_0x122661(0xc1)]),_0x4754fb=readMetadataIfPresent(_0x3124fd[_0x122661(0xaa)]);if(_0x4754fb?.[_0x122661(0xa8)]!==_0xdf562d[_0x122661(0xa8)]||_0x4754fb[_0x122661(0xb3)]!==_0x2f052e)throw CliErrors[_0x122661(0x99)](_0x122661(0xb0)+_0xdf562d[_0x122661(0xa8)]+':\x20'+_0x3124fd['metadataPath']);const _0x2e1aae=runtimeSkillLinkName(_0xdf562d,_0x2f052e);for(const _0x83256c of _0xdf562d[_0x122661(0xad)]){_0x295b9c[_0x122661(0xac)](ensureManagedSymlink(resolve(_0x83256c,_0x2e1aae),_0x3124fd[_0x122661(0x9d)],_0xdf562d,_0x2f052e));}}return _0x295b9c;}export function pruneStaleRuntimeSkillLinks(_0x5cfa3a,_0x17a623,_0xb6d2fd){const _0x355619=a108_0x57cb60,_0x2f20ba=new Set([..._0x17a623][_0x355619(0xab)](_0x2074e9=>_0x2074e9[_0x355619(0x8e)]())['filter'](Boolean)),_0x104a22=_0xb6d2fd?new Set([..._0xb6d2fd][_0x355619(0xab)](_0x32b4c8=>_0x32b4c8['trim']())['filter'](Boolean)):undefined,_0xdb5bcf=[];for(const _0x553632 of _0x5cfa3a[_0x355619(0xad)]){for(const _0x4b8ea4 of managedTargetSkillLinkPaths(_0x553632,_0x5cfa3a)){const _0x2ef7e6=runtimeSkillCodeFromLink(_0x5cfa3a,_0x4b8ea4);if(_0x104a22&&!_0x104a22['has'](_0x2ef7e6))continue;if(_0x2f20ba[_0x355619(0xa5)](_0x2ef7e6))continue;_0xdb5bcf[_0x355619(0xac)](removeManagedSkillLink(_0x4b8ea4,_0x5cfa3a,_0x2ef7e6));}}return _0xdb5bcf;}export function pruneStaleRuntimeSkillCache(_0x59252e,_0x1dd032={}){const _0x234219=a108_0x57cb60,_0x370076=new Set([..._0x59252e[_0x234219(0x8c)]]['map'](_0x5093e9=>_0x5093e9[_0x234219(0x8e)]())[_0x234219(0xb2)](Boolean)),_0x3ed2f0=_0x59252e[_0x234219(0xb1)]?new Set([..._0x59252e['pruneSkillCodes']][_0x234219(0xab)](_0x2abc06=>_0x2abc06[_0x234219(0x8e)]())[_0x234219(0xb2)](Boolean)):undefined,_0x7df678=_0x59252e[_0x234219(0xa2)]??[_0x234219(0x8f),'company'],_0x213cfb=resolve(getRuntimeSkillCacheRoot(_0x59252e[_0x234219(0xbe)],_0x59252e[_0x234219(0x9e)],_0x1dd032),safePathSegment(_0x59252e[_0x234219(0xa8)],'appCode')),_0x532ead=[];for(const _0x5582f8 of _0x7df678){const _0x405c69=resolve(_0x213cfb,_0x5582f8);if(!existsSync(_0x405c69))continue;for(const _0x28b1fc of readdirSync(_0x405c69,{'withFileTypes':!![]})){if(!_0x28b1fc[_0x234219(0xbc)]())continue;const _0x2c1f6b=_0x28b1fc[_0x234219(0x91)];if(_0x3ed2f0&&!_0x3ed2f0[_0x234219(0xa5)](_0x2c1f6b))continue;if(_0x370076['has'](_0x2c1f6b))continue;const _0x1f8a43=resolve(_0x405c69,_0x2c1f6b),_0xee2ec4=readMetadataIfPresent(resolve(_0x1f8a43,METADATA_FILE));if(_0xee2ec4?.[_0x234219(0xa8)]!==_0x59252e[_0x234219(0xa8)]||_0xee2ec4[_0x234219(0xbb)]!==_0x5582f8||_0xee2ec4[_0x234219(0xb3)]!==_0x2c1f6b){_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xc2),'reason':'metadata-mismatch'});continue;}if(isLinkedFromAnyRoot(_0x1f8a43,_0x59252e[_0x234219(0x97)]??[])){_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xc2),'reason':_0x234219(0x8b)});continue;}removeSync(_0x1f8a43),_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xbd)});}}return _0x532ead;}export function linkGlobalRuntimeSkills(_0x4f9f75,_0x3c4c98={}){const _0x1b6328=a108_0x57cb60,_0x889df0=resolveSkillSyncPaths(_0x3c4c98),_0x42a06b=[];for(const _0x259079 of _0x4f9f75){if(_0x259079[_0x1b6328(0xbb)]!==_0x1b6328(0x9c))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x259079[_0x1b6328(0xbb)]);const _0x38ba36=requireSkillCode(_0x259079[_0x1b6328(0xc1)]),_0x48f8d5=copyManagedSkillDirectory(_0x259079[_0x1b6328(0x9d)],resolve(_0x889df0[_0x1b6328(0x95)],_0x38ba36));_0x42a06b[_0x1b6328(0xac)]({..._0x48f8d5,'contentHash':_0x259079[_0x1b6328(0x90)]});}return _0x42a06b;}function ensureManagedSymlink(_0x3b4ff8,_0x292963,_0x5c276b,_0xd79e14){const _0x14afef=a108_0x57cb60;mkdirSync(dirname(_0x3b4ff8),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x3b4ff8)||isDanglingSymlink(_0x3b4ff8)){const _0x4bdc94=lstatSync(_0x3b4ff8);if(!_0x4bdc94[_0x14afef(0xa1)]())throw CliErrors[_0x14afef(0x99)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x3b4ff8);const _0x181275=resolveSymlinkTarget(_0x3b4ff8);if(!isPathInside(realOrResolved(_0x181275),realOrResolved(_0x5c276b[_0x14afef(0x92)])))throw CliErrors[_0x14afef(0x99)](_0x14afef(0xb5)+_0x3b4ff8);if(realOrResolved(_0x181275)===realOrResolved(_0x292963))return{'path':_0x3b4ff8,'target':_0x292963,'action':'unchanged'};const _0x130a24=readMetadataIfPresent(resolve(_0x181275,METADATA_FILE));if(_0x5c276b['scope']===_0x14afef(0xa4)&&(_0x130a24?.[_0x14afef(0xa8)]!==_0x5c276b[_0x14afef(0xa8)]||_0x130a24[_0x14afef(0xb3)]!==_0xd79e14))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20'+_0x3b4ff8);return unlinkSync(_0x3b4ff8),symlinkSync(_0x292963,_0x3b4ff8,_0x14afef(0x9d)),{'path':_0x3b4ff8,'target':_0x292963,'action':'updated'};}return symlinkSync(_0x292963,_0x3b4ff8,_0x14afef(0x9d)),{'path':_0x3b4ff8,'target':_0x292963,'action':_0x14afef(0xa9)};}function managedTargetSkillLinkPaths(_0x4f4a52,_0x5cdedc){const _0x266b42=a108_0x57cb60;if(!existsSync(_0x4f4a52))return[];const _0x1e5530=_0x5cdedc[_0x266b42(0xa8)]+'--';return readdirSync(_0x4f4a52,{'withFileTypes':!![]})[_0x266b42(0xb2)](_0x4a6a0e=>_0x5cdedc[_0x266b42(0xbb)]===_0x266b42(0xa4)||_0x4a6a0e[_0x266b42(0x91)][_0x266b42(0x8d)](_0x1e5530))[_0x266b42(0xab)](_0x461e20=>resolve(_0x4f4a52,_0x461e20['name']));}function removeManagedSkillLink(_0x12b2af,_0x2a254c,_0x19876d){const _0x2408a6=a108_0x57cb60,_0x1461b9=lstatIfPresent(_0x12b2af);if(!_0x1461b9?.[_0x2408a6(0xa1)]())return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':'not-managed-symlink'};const _0x48df22=resolveSymlinkTarget(_0x12b2af);if(!isPathInside(realOrResolved(_0x48df22),realOrResolved(_0x2a254c[_0x2408a6(0x92)])))return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':_0x2408a6(0x9b)};const _0x282f0f=readMetadataIfPresent(resolve(_0x48df22,METADATA_FILE));if(_0x2a254c['scope']===_0x2408a6(0xa4)&&(_0x282f0f?.[_0x2408a6(0xa8)]!==_0x2a254c['appCode']||_0x282f0f[_0x2408a6(0xb3)]!==_0x19876d))return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':_0x2408a6(0x9f)};return unlinkSync(_0x12b2af),{'path':_0x12b2af,'action':_0x2408a6(0xbd)};}function isLinkedFromAnyRoot(_0x2e7c40,_0x15e616){const _0x519547=a108_0x57cb60,_0x2d7545=realOrResolved(_0x2e7c40);for(const _0x249b65 of _0x15e616){if(!existsSync(_0x249b65))continue;for(const _0x36d6d5 of readdirSync(_0x249b65,{'withFileTypes':!![]})){if(!_0x36d6d5['isSymbolicLink']())continue;const _0x3ae45f=resolve(_0x249b65,_0x36d6d5[_0x519547(0x91)]);if(realOrResolved(resolveSymlinkTarget(_0x3ae45f))===_0x2d7545)return!![];}}return![];}function a108_0x35e4(){const _0x3cf4be=['name','managedRoot','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','8sZtFaP','agentsSkillsDir','1731785hqXDre','protectedLinkRoots','secret-retriever','validation','113882BekfBc','external-symlink','builtin','dir','accessKey','metadata-mismatch','unchanged','isSymbolicLink','scopes','5373600YPaOKq','project','has','runtime-observe','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','appCode','created','metadataPath','map','push','skillRoots','18PmsIuB','lovrabet','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','pruneSkillCodes','filter','skillCode','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','updated','1855449DOOQqM','set','1721427tUsRTJ','18952900isVbHc','scope','isDirectory','removed','env','4IJFEJI','4639740alKQMK','skill','skipped','linked-from-protected-root','activeSkillCodes','startsWith','trim','personal','contentHash'];a108_0x35e4=function(){return _0x3cf4be;};return a108_0x35e4();}function runtimeSkillLinkName(_0x2ea333,_0x5361ab){const _0x4aa354=a108_0x57cb60,_0x30a73a=safePathSegment(_0x5361ab,'skillCode');if(_0x2ea333[_0x4aa354(0xbb)]===_0x4aa354(0xa4)&&RESERVED_PROJECT_SKILL_CODES[_0x4aa354(0xa5)](_0x30a73a))throw CliErrors[_0x4aa354(0x99)]('Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20'+_0x30a73a);return _0x2ea333[_0x4aa354(0xbb)]===_0x4aa354(0xa4)?_0x30a73a:_0x2ea333[_0x4aa354(0xa8)]+'--'+_0x30a73a;}function runtimeSkillCodeFromLink(_0x11c9d2,_0x139a04){const _0x2e5856=a108_0x57cb60,_0x57e36d=basename(_0x139a04);return _0x11c9d2[_0x2e5856(0xbb)]===_0x2e5856(0xa4)?_0x57e36d:_0x57e36d['slice']((_0x11c9d2[_0x2e5856(0xa8)]+'--')['length']);}export function copyManagedSkillDirectory(_0x2f67ac,_0x5c0ecf){const _0x14a7f0=a108_0x57cb60,_0x22d27f=resolve(_0x5c0ecf,METADATA_FILE),_0x153238=existsSync(_0x5c0ecf);if(_0x153238){const _0x195c86=lstatSync(_0x5c0ecf);if(_0x195c86[_0x14a7f0(0xa1)]())throw CliErrors['validation'](_0x14a7f0(0xa7)+_0x5c0ecf);if(!_0x195c86['isDirectory']())throw CliErrors[_0x14a7f0(0x99)](_0x14a7f0(0x93)+_0x5c0ecf);const _0x4c8949=readMetadataIfPresent(_0x22d27f);if(_0x4c8949?.['scope']!=='builtin')throw CliErrors[_0x14a7f0(0x99)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x5c0ecf);}ensureDirSync(dirname(_0x5c0ecf));const _0x37913a=_0x153238?readMetadataIfPresent(_0x22d27f)?.[_0x14a7f0(0x90)]:undefined,_0x4d7235=readMetadataIfPresent(resolve(_0x2f67ac,METADATA_FILE))?.[_0x14a7f0(0x90)];return _0x153238&&removeSync(_0x5c0ecf),copySkillDirectory(_0x2f67ac,_0x5c0ecf),{'path':_0x5c0ecf,'target':_0x2f67ac,'action':!_0x153238?_0x14a7f0(0xa9):_0x37913a===_0x4d7235?_0x14a7f0(0xa0):_0x14a7f0(0xb6)};}function copySkillDirectory(_0x4ba578,_0x243014){copySync(_0x4ba578,_0x243014,{'dereference':![],'overwrite':!![],'filter'(_0x6585d){const _0x54e568=a108_0x227d;if(lstatSync(_0x6585d)[_0x54e568(0xa1)]())throw CliErrors[_0x54e568(0x99)](_0x54e568(0xb4)+_0x6585d);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13c372,_0x1b7051){const _0x3484c9=a109_0x5bf5,_0x10793d=_0x13c372();while(!![]){try{const _0x6e9408=parseInt(_0x3484c9(0xe8))/0x1+-parseInt(_0x3484c9(0xf7))/0x2*(-parseInt(_0x3484c9(0x101))/0x3)+-parseInt(_0x3484c9(0xdc))/0x4+-parseInt(_0x3484c9(0xef))/0x5+parseInt(_0x3484c9(0xee))/0x6+-parseInt(_0x3484c9(0xe3))/0x7*(parseInt(_0x3484c9(0xe9))/0x8)+parseInt(_0x3484c9(0xe6))/0x9;if(_0x6e9408===_0x1b7051)break;else _0x10793d['push'](_0x10793d['shift']());}catch(_0xe2d381){_0x10793d['push'](_0x10793d['shift']());}}}(a109_0x2ddd,0x3b6e1));import{existsSync,readdirSync}from'node:fs';function a109_0x5bf5(_0x21ab9c,_0x545941){_0x21ab9c=_0x21ab9c-0xd8;const _0x2ddd24=a109_0x2ddd();let _0x5bf50d=_0x2ddd24[_0x21ab9c];return _0x5bf50d;}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';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';function a109_0x2ddd(){const _0x49c439=['from','282768FZficI','168XxUDmH','code','set','isArray','cache','5844KvsCyp','942715yCwfVX','scope','accessKey','has','skillCode','source','appCode','validation','86fSdZSj','project','isDirectory','localeCompare','values','isSymbolicLink','builtin','sort','filter','map','26007pztgzQ','includes','linkedPaths','tags','scopes','362868qKkABu','startsWith','linkedPath','link','trim','env','dir','54551ckctFY','name','skillMdPath','268461vAHhab'];a109_0x2ddd=function(){return _0x49c439;};return a109_0x2ddd();}export function listLocalRuntimeSkills(_0x12697b,_0x49c432,_0x6368ac={}){const _0x47ecdd=a109_0x5bf5,_0x2404d3=safePathSegment(_0x12697b['appCode'],_0x47ecdd(0xf5));if(_0x49c432[_0x47ecdd(0xf5)]!==_0x2404d3)throw CliErrors[_0x47ecdd(0xf6)]('Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20'+_0x49c432[_0x47ecdd(0xf5)]+'\x20!=\x20'+_0x2404d3);const _0x4c1053=normalizeRuntimeSkillScopes(_0x12697b[_0x47ecdd(0xdb)]),_0x3b4e7e=new Set(_0x4c1053),_0x4dbcd7=_0x12697b[_0x47ecdd(0xea)]?.[_0x47ecdd(0xe0)](),_0x3cbe1a=new Map(),_0x21a9bc=resolve(getRuntimeSkillCacheRoot(_0x12697b[_0x47ecdd(0xe1)],_0x12697b[_0x47ecdd(0xf1)],_0x6368ac),_0x2404d3);for(const _0x2cca05 of _0x4c1053){for(const _0x43655e of localSkillEntryDirs(resolve(_0x21a9bc,_0x2cca05))){collectLocalRuntimeSkill(_0x3cbe1a,_0x43655e,{'appCode':_0x2404d3,'scopes':_0x3b4e7e,'code':_0x4dbcd7,'source':_0x47ecdd(0xed)});}}for(const _0x2a4e25 of _0x49c432['skillRoots']){for(const _0x11bfb6 of localSkillLinkCandidates(_0x2a4e25,_0x49c432,_0x3b4e7e)){collectLocalRuntimeSkill(_0x3cbe1a,_0x11bfb6,{'appCode':_0x2404d3,'scopes':_0x3b4e7e,'code':_0x4dbcd7,'source':_0x47ecdd(0xdf),'linkedPath':_0x11bfb6});}}return Array[_0x47ecdd(0xe7)](_0x3cbe1a[_0x47ecdd(0xfb)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x1fa704){const _0x49f637=a109_0x5bf5;if(!existsSync(_0x1fa704))return[];return readdirSync(_0x1fa704,{'withFileTypes':!![]})[_0x49f637(0xff)](_0x5c83d4=>_0x5c83d4[_0x49f637(0xf9)]()||_0x5c83d4[_0x49f637(0xfc)]())[_0x49f637(0x100)](_0xa22270=>resolve(_0x1fa704,_0xa22270[_0x49f637(0xe4)]));}function localSkillLinkCandidates(_0x3a3a0d,_0xbcd705,_0x15026e){const _0x2de04c=a109_0x5bf5;if(!existsSync(_0x3a3a0d))return[];const _0x277ec7=_0xbcd705[_0x2de04c(0xf5)]+'--';return readdirSync(_0x3a3a0d,{'withFileTypes':!![]})[_0x2de04c(0xff)](_0x437b80=>_0x437b80[_0x2de04c(0xf9)]()||_0x437b80['isSymbolicLink']())['filter'](_0x18b97a=>_0xbcd705[_0x2de04c(0xf0)]===_0x2de04c(0xf8)||_0x18b97a[_0x2de04c(0xe4)][_0x2de04c(0xdd)](_0x277ec7)||_0x15026e['has'](_0x2de04c(0xfd)))[_0x2de04c(0x100)](_0x59896=>resolve(_0x3a3a0d,_0x59896['name']));}function collectLocalRuntimeSkill(_0x2bcd40,_0x39f42c,_0x17537d){const _0x2f4c24=a109_0x5bf5,_0x1c8fb2=resolve(_0x39f42c,METADATA_FILE),_0x15708c=readMetadataIfPresent(_0x1c8fb2);if(!_0x15708c)return;if(_0x15708c[_0x2f4c24(0xf5)]!==_0x17537d[_0x2f4c24(0xf5)])return;if(!isRuntimeSkillScope(_0x15708c[_0x2f4c24(0xf0)])||!_0x17537d['scopes'][_0x2f4c24(0xf2)](_0x15708c[_0x2f4c24(0xf0)]))return;const _0xb6be01=_0x15708c[_0x2f4c24(0xf3)]?.[_0x2f4c24(0xe0)]();if(!_0xb6be01)return;if(_0x17537d[_0x2f4c24(0xea)]&&_0xb6be01!==_0x17537d['code'])return;const _0x58a2da=_0x15708c[_0x2f4c24(0xf0)]+':'+_0xb6be01,_0x5d2ffa=_0x17537d[_0x2f4c24(0xde)]?[_0x17537d['linkedPath']]:[],_0x9c9b50=_0x2bcd40['get'](_0x58a2da);if(_0x9c9b50){_0x17537d[_0x2f4c24(0xf4)]===_0x2f4c24(0xed)&&(_0x9c9b50[_0x2f4c24(0xe2)]=_0x39f42c,_0x9c9b50['cacheDir']=_0x39f42c,_0x9c9b50[_0x2f4c24(0xe5)]=resolve(_0x39f42c,SKILL_FILE),_0x9c9b50['metadataPath']=_0x1c8fb2);for(const _0x239d7c of _0x5d2ffa){!_0x9c9b50[_0x2f4c24(0xd9)][_0x2f4c24(0xd8)](_0x239d7c)&&_0x9c9b50['linkedPaths']['push'](_0x239d7c);}_0x9c9b50[_0x2f4c24(0xd9)][_0x2f4c24(0xfe)]();return;}_0x2bcd40[_0x2f4c24(0xeb)](_0x58a2da,{..._0x15708c,'tags':Array[_0x2f4c24(0xec)](_0x15708c[_0x2f4c24(0xda)])?_0x15708c[_0x2f4c24(0xda)]:[],'scope':_0x15708c[_0x2f4c24(0xf0)],'source':'local','dir':_0x39f42c,'cacheDir':_0x17537d[_0x2f4c24(0xf4)]==='cache'?_0x39f42c:undefined,'skillMdPath':resolve(_0x39f42c,SKILL_FILE),'metadataPath':_0x1c8fb2,'linkedPaths':_0x5d2ffa});}function compareLocalRuntimeSkills(_0x14bea6,_0x2df195){const _0x4ab7f9=a109_0x5bf5,_0x4ec7ac={'personal':0x0,'company':0x1,'builtin':0x2};return _0x4ec7ac[_0x14bea6[_0x4ab7f9(0xf0)]]-_0x4ec7ac[_0x2df195[_0x4ab7f9(0xf0)]]||_0x14bea6['skillCode']['localeCompare'](_0x2df195[_0x4ab7f9(0xf3)])||_0x14bea6[_0x4ab7f9(0xe2)][_0x4ab7f9(0xfa)](_0x2df195[_0x4ab7f9(0xe2)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x316661,_0x203cd6){const _0x3c5a08=a110_0x58b2,_0x4a14a8=_0x316661();while(!![]){try{const _0x5b4012=-parseInt(_0x3c5a08(0x13c))/0x1+parseInt(_0x3c5a08(0x152))/0x2*(-parseInt(_0x3c5a08(0x15b))/0x3)+-parseInt(_0x3c5a08(0x14e))/0x4+-parseInt(_0x3c5a08(0x13f))/0x5+-parseInt(_0x3c5a08(0x15e))/0x6+-parseInt(_0x3c5a08(0x14c))/0x7*(-parseInt(_0x3c5a08(0x142))/0x8)+parseInt(_0x3c5a08(0x137))/0x9*(parseInt(_0x3c5a08(0x157))/0xa);if(_0x5b4012===_0x203cd6)break;else _0x4a14a8['push'](_0x4a14a8['shift']());}catch(_0x411c88){_0x4a14a8['push'](_0x4a14a8['shift']());}}}(a110_0x5016,0xb5a38));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';function a110_0x5016(){const _0x2b4e3f=['isDirectory','replace','1988844DfJecv','test','isSafeInteger','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','compare','31403079PpHOcp','has','object','Skill\x20file\x20sha256\x20is\x20invalid:\x20','name','1430430mYxtwG','bytes','length','6655245kdqjWN','size','from','2920ZcfYfB','set','values','sort','toLowerCase','path','isFile','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','isArray','localeCompare','24815aSLAfS','isSymbolicLink','1268224pVSPgw','Duplicate\x20Skill\x20file\x20path:\x20','utf8','includes','290oRTxKi','validation','sha256','trim','Skill\x20file\x20size\x20is\x20invalid:\x20','10ITCckX','isBuffer','string','Unsafe\x20Skill\x20file\x20path:\x20','13017hHdNym'];a110_0x5016=function(){return _0x2b4e3f;};return a110_0x5016();}function a110_0x58b2(_0x191073,_0x44d4b7){_0x191073=_0x191073-0x137;const _0x5016c1=a110_0x5016();let _0x58b21d=_0x5016c1[_0x191073];return _0x58b21d;}export function fileContent(_0x593c23){const _0x2cc1fe=a110_0x58b2;return _0x593c23[_0x2cc1fe(0x13d)]??Buffer[_0x2cc1fe(0x141)](_0x593c23['content']??'','utf8');}export function fileText(_0x2eb033){return fileContent(_0x2eb033)['toString']('utf8');}export function normalizeLocalFiles(_0x36558d){const _0x16c8a9=a110_0x58b2;if(!Array[_0x16c8a9(0x14a)](_0x36558d)||_0x36558d[_0x16c8a9(0x13e)]===0x0)return[];const _0x2efe1b=new Map();for(const _0x2daaa6 of _0x36558d){if(!_0x2daaa6||typeof _0x2daaa6!==_0x16c8a9(0x139)||typeof _0x2daaa6[_0x16c8a9(0x147)]!==_0x16c8a9(0x159))throw CliErrors[_0x16c8a9(0x153)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x33228a=normalizeSkillRelativePath(_0x2daaa6[_0x16c8a9(0x147)]);if(_0x2efe1b[_0x16c8a9(0x138)](_0x33228a))throw CliErrors[_0x16c8a9(0x153)](_0x16c8a9(0x14f)+_0x33228a);if(_0x2daaa6[_0x16c8a9(0x13d)]!==undefined&&!Buffer[_0x16c8a9(0x158)](_0x2daaa6[_0x16c8a9(0x13d)]))throw CliErrors[_0x16c8a9(0x153)](_0x16c8a9(0x161)+_0x33228a);if(_0x2daaa6[_0x16c8a9(0x13d)]===undefined&&typeof _0x2daaa6['content']!==_0x16c8a9(0x159))throw CliErrors['validation'](_0x16c8a9(0x149)+_0x33228a);const _0x5912c8=fileContent(_0x2daaa6);_0x2efe1b[_0x16c8a9(0x143)](_0x33228a,{'path':_0x33228a,'bytes':_0x5912c8});}return Array[_0x16c8a9(0x141)](_0x2efe1b[_0x16c8a9(0x144)]())[_0x16c8a9(0x145)](compareSkillFiles);}export function normalizeManifestFiles(_0x5adfb6){const _0x68c362=a110_0x58b2;if(!Array[_0x68c362(0x14a)](_0x5adfb6)||_0x5adfb6['length']===0x0)return[];const _0x16d05e=new Map();for(const _0x504163 of _0x5adfb6){if(!_0x504163||typeof _0x504163!=='object'||typeof _0x504163[_0x68c362(0x147)]!==_0x68c362(0x159))throw CliErrors[_0x68c362(0x153)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x2e834b=normalizeSkillRelativePath(_0x504163['path']);if(_0x16d05e['has'](_0x2e834b))throw CliErrors[_0x68c362(0x153)](_0x68c362(0x14f)+_0x2e834b);if(!isSha256Hex(_0x504163[_0x68c362(0x154)]))throw CliErrors[_0x68c362(0x153)](_0x68c362(0x13a)+_0x2e834b);if(!Number[_0x68c362(0x160)](_0x504163[_0x68c362(0x140)])||_0x504163[_0x68c362(0x140)]<0x0)throw CliErrors[_0x68c362(0x153)](_0x68c362(0x156)+_0x2e834b);_0x16d05e['set'](_0x2e834b,{'path':_0x2e834b,'sha256':_0x504163[_0x68c362(0x154)][_0x68c362(0x146)](),'size':_0x504163[_0x68c362(0x140)]});}return Array['from'](_0x16d05e[_0x68c362(0x144)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x210356){const _0x1ac890=realpathSync(_0x210356),_0x1cf5fc=[];function _0x43f3db(_0x5805f3){const _0x4f3d68=a110_0x58b2,_0x1c1d86=readdirSync(_0x5805f3,{'withFileTypes':!![]})[_0x4f3d68(0x145)]((_0x55f5f3,_0x3f2f18)=>_0x55f5f3[_0x4f3d68(0x13b)][_0x4f3d68(0x14b)](_0x3f2f18['name']));for(const _0xbe28cd of _0x1c1d86){if(_0xbe28cd[_0x4f3d68(0x15c)]()&&IGNORED_DIR_NAMES[_0x4f3d68(0x138)](_0xbe28cd[_0x4f3d68(0x13b)]))continue;if(IGNORED_FILE_NAMES[_0x4f3d68(0x138)](_0xbe28cd[_0x4f3d68(0x13b)]))continue;const _0x1ebd35=resolve(_0x5805f3,_0xbe28cd[_0x4f3d68(0x13b)]);if(_0xbe28cd[_0x4f3d68(0x14d)]())throw CliErrors[_0x4f3d68(0x153)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x1ebd35);const _0x52d02a=toPosixPath(relative(_0x1ac890,_0x1ebd35));if(_0xbe28cd[_0x4f3d68(0x15c)]()){_0x43f3db(_0x1ebd35);continue;}if(!_0xbe28cd[_0x4f3d68(0x148)]())continue;validateSkillRelativePath(_0x52d02a);const _0x3092fb=readFileSync(_0x1ebd35);_0x1cf5fc['push']({'path':_0x52d02a,'bytes':_0x3092fb});}}return _0x43f3db(_0x1ac890),normalizeLocalFiles(_0x1cf5fc);}export function compareSkillFiles(_0x3843bd,_0x36c0c6){const _0x21ba72=a110_0x58b2;if(_0x3843bd[_0x21ba72(0x147)]===SKILL_FILE)return _0x36c0c6[_0x21ba72(0x147)]===SKILL_FILE?0x0:-0x1;if(_0x36c0c6['path']===SKILL_FILE)return 0x1;return Buffer[_0x21ba72(0x162)](Buffer[_0x21ba72(0x141)](_0x3843bd[_0x21ba72(0x147)],'utf8'),Buffer['from'](_0x36c0c6[_0x21ba72(0x147)],_0x21ba72(0x150)));}export function normalizeSkillRelativePath(_0x35bec5){const _0x1ef043=a110_0x58b2,_0x3afb5e=toPosixPath(_0x35bec5[_0x1ef043(0x155)]());return validateSkillRelativePath(_0x3afb5e),_0x3afb5e;}export function validateSkillRelativePath(_0x4843f2){const _0x3db62b=a110_0x58b2;if(!_0x4843f2||_0x4843f2['startsWith']('/')||_0x4843f2[_0x3db62b(0x151)]('//'))throw CliErrors[_0x3db62b(0x153)](_0x3db62b(0x15a)+_0x4843f2);for(const _0x21de2b of _0x4843f2['split']('/')){if(!_0x21de2b||_0x21de2b==='.'||_0x21de2b==='..')throw CliErrors[_0x3db62b(0x153)](_0x3db62b(0x15a)+_0x4843f2);}}export function toPosixPath(_0x299d40){const _0x3f8bcf=a110_0x58b2;return _0x299d40[_0x3f8bcf(0x15d)](/\\/g,'/');}export function isSha256Hex(_0x440a59){const _0x3dd24b=a110_0x58b2;return typeof _0x440a59==='string'&&/^[a-fA-F0-9]{64}$/[_0x3dd24b(0x15f)](_0x440a59);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x378f98,_0x209e54){const _0x38069b=a111_0x57d6,_0xc716a9=_0x378f98();while(!![]){try{const _0x4611d3=-parseInt(_0x38069b(0x1ba))/0x1*(parseInt(_0x38069b(0x1b9))/0x2)+parseInt(_0x38069b(0x1b8))/0x3*(parseInt(_0x38069b(0x1ec))/0x4)+-parseInt(_0x38069b(0x1db))/0x5+-parseInt(_0x38069b(0x1cb))/0x6+-parseInt(_0x38069b(0x1d1))/0x7+-parseInt(_0x38069b(0x1d3))/0x8*(-parseInt(_0x38069b(0x1cf))/0x9)+parseInt(_0x38069b(0x1e9))/0xa;if(_0x4611d3===_0x209e54)break;else _0xc716a9['push'](_0xc716a9['shift']());}catch(_0x34e128){_0xc716a9['push'](_0xc716a9['shift']());}}}(a111_0x3d8c,0xa7144));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';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 a111_0x57d6(_0x44b60e,_0x112094){_0x44b60e=_0x44b60e-0x1b7;const _0x3d8c6f=a111_0x3d8c();let _0x57d6d1=_0x3d8c6f[_0x44b60e];return _0x57d6d1;}function a111_0x3d8c(){const _0x59fb04=['validation','27qjNYXi','length','2317301YiUdbK','displayName','871256vRhsRp','.\x20Changed\x20file:\x20','fileHashes','contents','trimEnd','utf8','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','6320930OZRGKY','entries','isFile','flow','pulledAt','filter','contentHash','stringify','displayName:\x20','env','---\x0a','Runtime\x20Skill\x20package\x20is\x20missing\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','\x0a---\x0a\x0a','24624940WosaYV','---','find','11608BikIcj','packageBytes','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','paths','keys','1032iNIsHB','44pwcDXm','20737vhncaC','accessKey','description:\x20','delete','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','appCode','map','join','replace','has','skillName','set','force','toString','description','trim','path','6310224gGytaD','errors','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'];a111_0x3d8c=function(){return _0x59fb04;};return a111_0x3d8c();}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x20b474,_0x513e33,_0x35b48e){const _0x41a96d=a111_0x57d6,_0x600133=requireSkillCode(_0x20b474),_0x16d4e7=requirePackageBytes(_0x600133,_0x35b48e[_0x41a96d(0x1ed)]),_0x4c9e83=extractDownloadedPackage(_0x16d4e7),_0x31b5de=_0x4c9e83[_0x41a96d(0x1eb)](_0x205d15=>_0x205d15[_0x41a96d(0x1ca)]===SKILL_FILE);if(!_0x31b5de)throw CliErrors[_0x41a96d(0x1ce)](_0x41a96d(0x1e6)+SKILL_FILE+':\x20'+_0x600133);const _0x91ca7d=withMaterializedSkillFrontmatter(_0x4c9e83,_0x20b474,_0x600133),_0x5fe0a9=_0x91ca7d[_0x41a96d(0x1eb)](_0xb5df0b=>_0xb5df0b['path']===SKILL_FILE),_0x2bc791=fileText(_0x5fe0a9),_0x3b6c91=getRuntimeSkillDir(_0x35b48e[_0x41a96d(0x1e4)],_0x35b48e[_0x41a96d(0x1bb)],_0x35b48e[_0x41a96d(0x1bf)],_0x513e33,_0x600133,_0x35b48e[_0x41a96d(0x1f1)]),_0x2d4754=resolve(_0x3b6c91,SKILL_FILE),_0x421744=resolve(_0x3b6c91,METADATA_FILE),_0xb652ac=contentHash(_0x2bc791),_0x729a1b=readMetadataIfPresent(_0x421744)?.[_0x41a96d(0x1d5)];ensurePulledFilesCanBeOverwritten(_0x3b6c91,_0x421744,_0x91ca7d,_0x35b48e[_0x41a96d(0x1c6)]===!![]),mkdirSync(_0x3b6c91,{'recursive':!![],'mode':0x1c0});const _0x457579=existsSync(_0x2d4754)?readFileSync(_0x2d4754,_0x41a96d(0x1d8)):undefined;return materializeFiles(_0x3b6c91,_0x91ca7d),removeStaleManagedFiles(_0x3b6c91,_0x729a1b,_0x91ca7d),writeJsonAtomic(_0x421744,buildMetadata(_0x20b474,_0x513e33,_0x35b48e[_0x41a96d(0x1bf)],_0xb652ac,_0x35b48e[_0x41a96d(0x1df)],_0x91ca7d,_0x16d4e7)),{'skill':_0x20b474,'scope':_0x513e33,'dir':_0x3b6c91,'skillMdPath':_0x2d4754,'metadataPath':_0x421744,'contentHash':_0xb652ac,'changed':_0x457579!==_0x2bc791};}function withMaterializedSkillFrontmatter(_0x5ec1cc,_0x397279,_0x9c8276){const _0xa25ffc=a111_0x57d6,_0x538252=skillDisplayName(_0x397279,_0x9c8276),_0x10269a=_0x397279[_0xa25ffc(0x1c8)]?.[_0xa25ffc(0x1c9)]()||_0x538252||_0x9c8276;return normalizeLocalFiles(_0x5ec1cc)[_0xa25ffc(0x1c0)](_0x4ebf9c=>{const _0x2e24ba=_0xa25ffc,_0x27712f=fileText(_0x4ebf9c);if(_0x4ebf9c[_0x2e24ba(0x1ca)]!==SKILL_FILE)return _0x4ebf9c;if(hasYamlFrontmatter(_0x27712f))return{'path':_0x4ebf9c[_0x2e24ba(0x1ca)],'content':withSyncedDisplayName(_0x27712f,_0x538252)};return{'path':_0x4ebf9c[_0x2e24ba(0x1ca)],'content':prependSkillFrontmatter(_0x27712f,{'name':_0x9c8276,'displayName':_0x538252,'description':_0x10269a})};});}function hasYamlFrontmatter(_0xfacdca){return/^\uFEFF?---\s*\r?\n/['test'](_0xfacdca);}function prependSkillFrontmatter(_0x47191c,_0x21ff91){const _0x45646c=a111_0x57d6,_0x4c95c1=_0x47191c[_0x45646c(0x1c2)](/^\uFEFF/,'');return[_0x45646c(0x1ea),'name:\x20'+yamlString(_0x21ff91['name']),_0x21ff91[_0x45646c(0x1d2)]?_0x45646c(0x1e3)+yamlString(_0x21ff91[_0x45646c(0x1d2)]):undefined,_0x45646c(0x1bc)+yamlString(_0x21ff91[_0x45646c(0x1c8)]),'---','',_0x4c95c1][_0x45646c(0x1e0)](_0x5a0468=>_0x5a0468!==undefined)[_0x45646c(0x1c1)]('\x0a');}function yamlString(_0x7bf151){const _0x4f633c=a111_0x57d6;return JSON[_0x4f633c(0x1e2)](_0x7bf151[_0x4f633c(0x1c2)](/\r/g,'')['trim']());}function skillDisplayName(_0x3512e3,_0x3a2ebe){const _0x22a585=a111_0x57d6,_0x47a974=_0x3512e3[_0x22a585(0x1c4)]?.[_0x22a585(0x1c9)]();return _0x47a974||_0x3a2ebe;}function withSyncedDisplayName(_0xe87930,_0x40b83e){const _0x52dee9=a111_0x57d6,_0x24374c=_0xe87930['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x24374c)return _0xe87930;const _0x473bfa=_0x24374c[0x1]??'',_0x58d5be=_0x24374c[0x2]??'',_0x3ced5c=parseDocument(_0x58d5be);if(_0x3ced5c[_0x52dee9(0x1cc)][_0x52dee9(0x1d0)]>0x0||!isMap(_0x3ced5c['contents']))return _0xe87930;if(_0x40b83e)_0x3ced5c[_0x52dee9(0x1c5)](_0x52dee9(0x1d2),_0x40b83e);else{if(_0x3ced5c[_0x52dee9(0x1c3)](_0x52dee9(0x1d2)))_0x3ced5c[_0x52dee9(0x1bd)](_0x52dee9(0x1d2));else return _0xe87930;}forceBlockCollections(_0x3ced5c[_0x52dee9(0x1d6)]);const _0x46ede0=_0x3ced5c[_0x52dee9(0x1c7)]({'lineWidth':0x0})[_0x52dee9(0x1d7)](),_0x410ebc=_0xe87930['slice'](_0x24374c[0x0][_0x52dee9(0x1d0)])[_0x52dee9(0x1c2)](/^\r?\n/,'');return _0x473bfa+_0x52dee9(0x1e5)+_0x46ede0+_0x52dee9(0x1e8)+_0x410ebc;}function forceBlockCollections(_0x54781e){if(!isNode(_0x54781e))return;visit(_0x54781e,(_0x408644,_0x1b4863)=>{const _0x5f7f5=a111_0x57d6;isCollection(_0x1b4863)&&(_0x1b4863[_0x5f7f5(0x1de)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x235751,_0x4d4517,_0x42f699,_0x6744a2){const _0x5a85ec=a111_0x57d6;if(_0x6744a2||!existsSync(_0x4d4517))return;const _0x513fc8=readMetadataIfPresent(_0x4d4517);if(!_0x513fc8)return;const _0x5f22e0=_0x513fc8[_0x5a85ec(0x1d5)]&&Object[_0x5a85ec(0x1b7)](_0x513fc8[_0x5a85ec(0x1d5)])['length']>0x0?_0x513fc8[_0x5a85ec(0x1d5)]:undefined;if(_0x5f22e0)for(const [_0x31be3b,_0x4acba3]of Object[_0x5a85ec(0x1dc)](_0x5f22e0)){const _0x1595f2=resolveManagedFilePath(_0x235751,_0x31be3b);if(!existsSync(_0x1595f2))throw CliErrors[_0x5a85ec(0x1ce)](_0x5a85ec(0x1f0)+_0x235751,_0x5a85ec(0x1e7)+_0x31be3b);const _0x222d15=lstatSync(_0x1595f2);if(!_0x222d15['isFile']())throw CliErrors[_0x5a85ec(0x1ce)](_0x5a85ec(0x1f0)+_0x235751,_0x5a85ec(0x1cd)+_0x31be3b);const _0x3f0300=bufferSha256(readFileSync(_0x1595f2));if(_0x3f0300!==_0x4acba3)throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x235751+_0x5a85ec(0x1d4)+_0x31be3b,_0x5a85ec(0x1be)+_0x31be3b);}else{const _0x29801f=resolve(_0x235751,SKILL_FILE);if(existsSync(_0x29801f)&&_0x513fc8[_0x5a85ec(0x1e1)]){const _0x177d09=contentHash(readFileSync(_0x29801f,'utf8'));if(_0x177d09!==_0x513fc8['contentHash'])throw CliErrors[_0x5a85ec(0x1ce)](_0x5a85ec(0x1ee)+_0x29801f,_0x5a85ec(0x1d9));}}for(const _0x558026 of normalizeLocalFiles(_0x42f699)){if(_0x5f22e0?.[_0x558026[_0x5a85ec(0x1ca)]])continue;if(!_0x5f22e0&&_0x558026['path']===SKILL_FILE)continue;const _0x5cae2f=resolveManagedFilePath(_0x235751,_0x558026[_0x5a85ec(0x1ca)]);if(!existsSync(_0x5cae2f))continue;const _0x52c55f=lstatSync(_0x5cae2f);if(!_0x52c55f[_0x5a85ec(0x1dd)]())throw CliErrors['validation'](_0x5a85ec(0x1f0)+_0x235751,_0x5a85ec(0x1ef)+_0x558026[_0x5a85ec(0x1ca)]);const _0x26df96=bufferSha256(readFileSync(_0x5cae2f));if(_0x26df96!==fileHash(_0x558026))throw CliErrors[_0x5a85ec(0x1ce)](_0x5a85ec(0x1f0)+_0x235751,_0x5a85ec(0x1da)+_0x558026[_0x5a85ec(0x1ca)]);}}function materializeFiles(_0x2a9649,_0x4a2f81){const _0x292b7f=a111_0x57d6;for(const _0x315a00 of normalizeLocalFiles(_0x4a2f81)){const _0x15da3d=resolveManagedFilePath(_0x2a9649,_0x315a00[_0x292b7f(0x1ca)]);mkdirSync(dirname(_0x15da3d),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x15da3d,fileContent(_0x315a00),0x180);}}function removeStaleManagedFiles(_0x2f70cb,_0x5cd301,_0x514282){const _0x341a3c=a111_0x57d6;if(!_0x5cd301)return;const _0x308522=new Set(normalizeLocalFiles(_0x514282)[_0x341a3c(0x1c0)](_0x4a3ac3=>_0x4a3ac3[_0x341a3c(0x1ca)]));for(const _0x1b27f5 of Object['keys'](_0x5cd301)){if(_0x308522[_0x341a3c(0x1c3)](_0x1b27f5))continue;const _0x2b7a87=resolveManagedFilePath(_0x2f70cb,_0x1b27f5);existsSync(_0x2b7a87)&&lstatSync(_0x2b7a87)[_0x341a3c(0x1dd)]()&&rmSync(_0x2b7a87,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a4667,_0x1049cc){const _0x5deb43=a112_0x50fa,_0x3d74c5=_0x4a4667();while(!![]){try{const _0x2b3b99=parseInt(_0x5deb43(0x1b4))/0x1+parseInt(_0x5deb43(0x1c6))/0x2+-parseInt(_0x5deb43(0x1b3))/0x3*(-parseInt(_0x5deb43(0x1c8))/0x4)+-parseInt(_0x5deb43(0x1af))/0x5*(-parseInt(_0x5deb43(0x1c5))/0x6)+parseInt(_0x5deb43(0x1c2))/0x7+parseInt(_0x5deb43(0x1bb))/0x8+-parseInt(_0x5deb43(0x1b1))/0x9;if(_0x2b3b99===_0x1049cc)break;else _0x3d74c5['push'](_0x3d74c5['shift']());}catch(_0x154373){_0x3d74c5['push'](_0x3d74c5['shift']());}}}(a112_0x37d2,0xf2bab));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 a112_0x50fa(_0x5926ea,_0x2863e2){_0x5926ea=_0x5926ea-0x1a7;const _0x37d226=a112_0x37d2();let _0x50fa5=_0x37d226[_0x5926ea];return _0x50fa5;}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x4ef7c1,_0x3da365,_0x62af67,_0x9b11e8,_0x36730a,_0x3eb3e4,_0x392bfb){const _0x246851=a112_0x50fa,_0x470427=_0x3eb3e4?normalizeLocalFiles(_0x3eb3e4):[],_0x22d34b=!_0x392bfb&&_0x470427['length']>0x0?buildSkillPackage(_0x470427):undefined,_0x2fa45c=_0x392bfb?bufferSha256(_0x392bfb):_0x22d34b?.[_0x246851(0x1ad)]['zipSha256'],_0x5d6fd4=_0x392bfb?.[_0x246851(0x1ca)]??_0x22d34b?.[_0x246851(0x1ad)][_0x246851(0x1a9)],_0x3f553f=_0x470427[_0x246851(0x1ca)]>0x0?Object[_0x246851(0x1b7)](_0x470427[_0x246851(0x1bd)](_0x4da04d=>[_0x4da04d[_0x246851(0x1c3)],fileHash(_0x4da04d)])):undefined;return{'schemaVersion':_0x470427[_0x246851(0x1ca)]>0x0?0x2:0x1,'id':_0x4ef7c1['id'],'appCode':_0x62af67,'skillCode':requireSkillCode(_0x4ef7c1),'skillName':_0x4ef7c1[_0x246851(0x1ab)],'description':_0x4ef7c1[_0x246851(0x1b0)],'scope':_0x3da365,'readonly':_0x3da365!=='personal'||_0x4ef7c1[_0x246851(0x1b8)]===!![],'tenantCode':_0x4ef7c1[_0x246851(0x1a7)],'userId':_0x4ef7c1[_0x246851(0x1ac)],'version':_0x4ef7c1['version'],'status':_0x4ef7c1[_0x246851(0x1b2)],'tags':Array['isArray'](_0x4ef7c1[_0x246851(0x1ba)])?_0x4ef7c1[_0x246851(0x1ba)]:[],'hasUpstreamUpdate':_0x4ef7c1['hasUpstreamUpdate'],'forkedFromSkillId':_0x4ef7c1['forkedFromSkillId'],'forkedFromVersion':_0x4ef7c1[_0x246851(0x1b6)],'sourceSessionId':_0x4ef7c1[_0x246851(0x1b9)],'contentHash':_0x9b11e8,'fileHashes':_0x3f553f,'treeHash':_0x470427[_0x246851(0x1ca)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x470427)):undefined,'ossPath':remoteManifestOssPath(_0x4ef7c1[_0x246851(0x1c1)]),'zipSha256':_0x2fa45c,'zipSize':_0x5d6fd4,'files':_0x470427[_0x246851(0x1ca)]>0x0?_0x470427[_0x246851(0x1bd)](_0x564224=>({'path':_0x564224[_0x246851(0x1c3)],'hash':fileHash(_0x564224),'size':fileContent(_0x564224)[_0x246851(0x1ca)]})):undefined,'pulledAt':_0x36730a??new Date()[_0x246851(0x1bf)]()};}function a112_0x37d2(){const _0x3e176d=['zipSize','Runtime\x20Skill\x20is\x20missing\x20skillCode.','skillName','userId','manifest','ossPath','10DexqLY','description','41893074gOYCNw','status','3odhKvA','1023648uuIzCB','skillCode','forkedFromVersion','fromEntries','readonly','sourceSessionId','tags','10372640MAEIFk','trim','map','string','toISOString','Invalid\x20','files','1182461CwljRr','path','utf8','3752796CeHYLo','1586418abfKUd','parse','4462852JLBZXv','validation','length','tenantCode','isArray'];a112_0x37d2=function(){return _0x3e176d;};return a112_0x37d2();}export function requireSkillCode(_0xf42b40){const _0xc68278=a112_0x50fa,_0x4e949d=_0xf42b40[_0xc68278(0x1b5)]?.[_0xc68278(0x1bc)]();if(!_0x4e949d)throw CliErrors[_0xc68278(0x1c9)](_0xc68278(0x1aa));return _0x4e949d;}export function readMetadataIfPresent(_0x125ea0){const _0x3328a2=a112_0x50fa;if(!existsSync(_0x125ea0))return undefined;try{const _0x3d30a9=JSON[_0x3328a2(0x1c7)](readFileSync(_0x125ea0,_0x3328a2(0x1c4)));return _0x3d30a9;}catch{throw CliErrors['validation'](_0x3328a2(0x1c0)+METADATA_FILE+':\x20'+_0x125ea0);}}function remoteManifestOssPath(_0xb6a223){const _0x30fd96=a112_0x50fa;if(!_0xb6a223||typeof _0xb6a223!=='object'||Array[_0x30fd96(0x1a8)](_0xb6a223))return undefined;const _0x3783dd=_0xb6a223[_0x30fd96(0x1ae)];return typeof _0x3783dd===_0x30fd96(0x1be)&&_0x3783dd[_0x30fd96(0x1bc)]()?_0x3783dd[_0x30fd96(0x1bc)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c50ee,_0x2ebc9f){const _0x27d286=a113_0x4279,_0x292245=_0x5c50ee();while(!![]){try{const _0x5334dc=parseInt(_0x27d286(0x1cd))/0x1+-parseInt(_0x27d286(0x1c7))/0x2+parseInt(_0x27d286(0x1be))/0x3+parseInt(_0x27d286(0x1bc))/0x4*(parseInt(_0x27d286(0x1cb))/0x5)+parseInt(_0x27d286(0x1c4))/0x6*(parseInt(_0x27d286(0x1bd))/0x7)+-parseInt(_0x27d286(0x1c5))/0x8+parseInt(_0x27d286(0x1c2))/0x9;if(_0x5334dc===_0x2ebc9f)break;else _0x292245['push'](_0x292245['shift']());}catch(_0x4ddeed){_0x292245['push'](_0x292245['shift']());}}}(a113_0x3b68,0x80ae4));import{existsSync}from'node:fs';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';function a113_0x4279(_0x3955e3,_0x565e70){_0x3955e3=_0x3955e3-0x1b4;const _0x3b6877=a113_0x3b68();let _0x427923=_0x3b6877[_0x3955e3];return _0x427923;}export function resolveSkillSyncPaths(_0xb92f94={}){const _0x5cf6eb=a113_0x4279,_0x293169=_0xb92f94[_0x5cf6eb(0x1b4)]??homedir(),_0x5be521=resolve(_0x293169,PRODUCT_CONFIG[_0x5cf6eb(0x1ba)],_0x5cf6eb(0x1b8)),_0x2f1aae=trimmedEnv(_0x5cf6eb(0x1cc)),_0x3ec773=trimmedEnv(_0x5cf6eb(0x1c6)),_0x2daa47=resolve(_0x293169,_0x5cf6eb(0x1c3)),_0x388615=_0xb92f94[_0x5cf6eb(0x1b5)]??(existsSync(_0x2daa47)?resolve(_0x2daa47,'skills'):undefined);return{'homeDir':_0x293169,'cacheRoot':_0x5be521,'managedRoot':resolve(_0x293169,PRODUCT_CONFIG[_0x5cf6eb(0x1ba)]),'agentsSkillsDir':_0xb92f94[_0x5cf6eb(0x1c9)]??_0x2f1aae??resolve(_0x293169,_0x5cf6eb(0x1c0),_0x5cf6eb(0x1b7)),'claudeSkillsDir':_0xb92f94['claudeSkillsDir']??_0x3ec773??resolve(_0x293169,_0x5cf6eb(0x1ca),_0x5cf6eb(0x1b7)),'workbuddySkillsDir':_0x388615};}export function runtimeAgentSkillRoots(_0x23810c){const _0x14a133=a113_0x4279;return[_0x23810c[_0x14a133(0x1c9)],_0x23810c['claudeSkillsDir'],_0x23810c[_0x14a133(0x1b5)]][_0x14a133(0x1b9)](_0x4b4016=>Boolean(_0x4b4016));}export function getRuntimeSkillCacheRoot(_0x7ab588,_0x5c5e06,_0x363c57={}){const _0x2b88f3=a113_0x4279,_0x393e32=resolveSkillSyncPaths(_0x363c57);return resolve(_0x393e32[_0x2b88f3(0x1bf)],_0x7ab588,fingerprintAccessKey(_0x5c5e06),_0x2b88f3(0x1b7));}function a113_0x3b68(){const _0xf73beb=['homeDir','workbuddySkillsDir','appCode','skills','cache','filter','homeDirName','trim','68hmoZoL','7CjtOgg','1010496SubTUk','cacheRoot','.agents','validation','5810949WPxGsA','.workbuddy','1453962fsJgKZ','2515712AJLGlB','CLAUDE_SKILL_ROOT','1781652XcWtgY','\x20for\x20local\x20path:\x20','agentsSkillsDir','.claude','108905DhxrCG','SKILL_ROOT','137269XkLvIu','skillCode','includes'];a113_0x3b68=function(){return _0xf73beb;};return a113_0x3b68();}export function getRuntimeSkillDir(_0x5d236f,_0x3c9770,_0x49c9a6,_0x29b537,_0x14feb2,_0x36a24a={}){const _0x360a95=a113_0x4279;return resolve(getRuntimeSkillCacheRoot(_0x5d236f,_0x3c9770,_0x36a24a),safePathSegment(_0x49c9a6,_0x360a95(0x1b6)),_0x29b537,safePathSegment(_0x14feb2,_0x360a95(0x1ce)));}export function safePathSegment(_0x166f10,_0x47381e='path\x20segment'){const _0xa75a30=a113_0x4279;if(!_0x166f10||_0x166f10[_0xa75a30(0x1cf)]('/')||_0x166f10[_0xa75a30(0x1cf)]('\x5c')||_0x166f10[_0xa75a30(0x1cf)]('..'))throw CliErrors[_0xa75a30(0x1c1)]('Unsafe\x20'+_0x47381e+_0xa75a30(0x1c8)+_0x166f10);return _0x166f10;}function trimmedEnv(_0x49dded){const _0x92c434=a113_0x4279,_0x4616a5=productEnv(_0x49dded)?.[_0x92c434(0x1bb)]();return _0x4616a5?_0x4616a5:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1df5ae,_0x34e0a8){const _0xc24c0=a114_0x5750,_0x5e18ea=_0x1df5ae();while(!![]){try{const _0x9f69be=parseInt(_0xc24c0(0xc8))/0x1+-parseInt(_0xc24c0(0xf0))/0x2+-parseInt(_0xc24c0(0xe7))/0x3+-parseInt(_0xc24c0(0xfb))/0x4*(parseInt(_0xc24c0(0xee))/0x5)+-parseInt(_0xc24c0(0xf6))/0x6*(parseInt(_0xc24c0(0xed))/0x7)+-parseInt(_0xc24c0(0xcb))/0x8+parseInt(_0xc24c0(0xf5))/0x9;if(_0x9f69be===_0x34e0a8)break;else _0x5e18ea['push'](_0x5e18ea['shift']());}catch(_0x2698f2){_0x5e18ea['push'](_0x5e18ea['shift']());}}}(a114_0x2ed1,0xf1c51));function a114_0x2ed1(){const _0x25f516=['\x20has\x20unsupported\x20scope\x20\x22','manifest','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','isArray','skillCode','refreshedAt','3282357jcEEwI','scope','packageBase64','replace','utf8','ignoreMetadataScope','1237397kHvcfN','215CIWoFG','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','3885930jcEbLd','builtin','ignoreMetadataSkillCode','Skill\x20metadata\x20appCode\x20\x22','validation','41778288XzFxUD','18GVRkYt','Skill\x20directory\x20not\x20found:\x20','path','content','sourceSessionId','73556tGKMVG','files','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','string','trim','boolean','Remote\x20Skill\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','851975VBHVHI','appCode','Invalid\x20','1164752hNtClF','allowAppCodeRetarget','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','skillName','personal','isFile','ignoreMetadataAppCodeMismatch','length','ignoreInvalidMetadata','(unknown)','description','Missing\x20','find','name','some','object','startsWith','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','number','match','isDirectory','tags'];a114_0x2ed1=function(){return _0x25f516;};return a114_0x2ed1();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x2db972}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x2bf414,_0x1ad48c,_0x3031c0={}){const _0x3f3fa5=a114_0x5750,_0x394fe6=resolvePushDirectoryRoot(_0x2bf414),_0x395768=readPushMetadataIfPresent(resolve(_0x394fe6,METADATA_FILE),{'ignoreInvalidMetadata':_0x3031c0[_0x3f3fa5(0xd3)]});if(_0x395768?.['appCode']&&_0x395768[_0x3f3fa5(0xc9)]!==_0x1ad48c&&!_0x3031c0[_0x3f3fa5(0xcc)]&&!_0x3031c0[_0x3f3fa5(0xd1)])throw CliErrors[_0x3f3fa5(0xf4)](_0x3f3fa5(0xf3)+_0x395768[_0x3f3fa5(0xc9)]+_0x3f3fa5(0xe3)+_0x1ad48c+'\x22.');const _0x1d5043=resolvePushSkillCode(_0x394fe6,_0x1ad48c,_0x395768,_0x3031c0);if(!_0x1d5043)throw CliErrors[_0x3f3fa5(0xf4)](_0x3f3fa5(0xc1)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x394fe6,'skillCode':_0x1d5043,'metadata':_0x395768};}export function readPushDirectory(_0x2c81cf,_0x414c89,_0x5a42b8={}){const _0x4ab906=a114_0x5750,_0x374c84=resolvePushDirectoryIdentity(_0x2c81cf,_0x414c89,_0x5a42b8),_0x2122fb=_0x374c84['dir'],_0x357959=resolve(_0x2122fb,SKILL_FILE);if(!existsSync(_0x357959)||!lstatSync(_0x357959)[_0x4ab906(0xd0)]())throw CliErrors['validation'](_0x4ab906(0xd6)+SKILL_FILE+':\x20'+_0x357959);const _0x461e7d=_0x374c84['metadata'],_0x6e94ef=_0x5a42b8['targetScope']??_0x4ab906(0xcf);if(!_0x5a42b8['ignoreMetadataScope']&&_0x461e7d?.[_0x4ab906(0xe8)]==='builtin')throw CliErrors['validation'](_0x4ab906(0xdc)+METADATA_FILE+_0x4ab906(0xc2)+_0x461e7d[_0x4ab906(0xe8)]+'\x22.');if(!_0x5a42b8[_0x4ab906(0xec)]&&_0x6e94ef==='personal'&&_0x461e7d?.[_0x4ab906(0xe8)]&&_0x461e7d[_0x4ab906(0xe8)]!=='personal')throw CliErrors[_0x4ab906(0xf4)](_0x4ab906(0xcd)+METADATA_FILE+_0x4ab906(0xc2)+_0x461e7d[_0x4ab906(0xe8)]+'\x22.',_0x4ab906(0xef)+_0x2122fb+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x1c72bb=scanSkillDirectory(_0x2122fb),_0x4860e0=buildSkillPackage(_0x1c72bb),_0x5113a0=readFileSync(_0x357959,'utf8'),_0x55a1ca=_0x374c84[_0x4ab906(0xe5)],_0xa9ec28=_0x5a42b8['ignoreMetadataForPayload']?undefined:_0x461e7d,_0x4bf56e=readSkillDisplayName(_0x5113a0);return{'skillCode':_0x55a1ca,'metadata':_0x461e7d,'frontmatterDisplayName':_0x4bf56e,'input':{'skillCode':_0x55a1ca,'skillName':_0x4bf56e??_0xa9ec28?.[_0x4ab906(0xce)],'description':_0xa9ec28?.[_0x4ab906(0xd5)],'content':_0x5113a0,'files':_0x4860e0[_0x4ab906(0xe2)],'packageBase64':_0x4860e0[_0x4ab906(0xe9)],'tags':_0xa9ec28?.[_0x4ab906(0xe0)],'version':_0xa9ec28?.['version'],'sourceSessionId':_0xa9ec28?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x32275f,_0x415602,_0x522cba,_0x52d046={}){const _0x4bef67=a114_0x5750,_0x5353d5=resolvePushDirectoryRoot(_0x32275f),_0x791b89=readPushMetadataIfPresent(resolve(_0x5353d5,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x388bac=requireRemoteScope(_0x415602),_0x59b854=readLocalSkillContent(_0x5353d5),_0x38b1fb={..._0x415602,'appCode':_0x415602[_0x4bef67(0xc9)]??_0x522cba,'skillName':_0x415602[_0x4bef67(0xce)]??_0x791b89?.['skillName'],'description':_0x415602[_0x4bef67(0xd5)]??_0x791b89?.[_0x4bef67(0xd5)],'tags':Array['isArray'](_0x415602[_0x4bef67(0xe0)])?_0x415602[_0x4bef67(0xe0)]:_0x791b89?.[_0x4bef67(0xe0)],'sourceSessionId':_0x415602['sourceSessionId']??_0x791b89?.[_0x4bef67(0xfa)],'content':_0x415602[_0x4bef67(0xf9)]??_0x59b854},_0x27ad14=buildMetadata(_0x38b1fb,_0x388bac,_0x522cba,contentHash(_0x59b854),_0x52d046[_0x4bef67(0xe6)]);writeJsonAtomic(resolve(_0x5353d5,METADATA_FILE),_0x27ad14);}export function recordPushedRuntimeSkill(_0x23b655,_0x3eaaf5,_0x13a110,_0x17b177={}){const _0x216e10=a114_0x5750,_0x5b40bb=resolvePushDirectoryRoot(_0x23b655),_0x465715=scanSkillDirectory(_0x5b40bb),_0xb453e=_0x465715[_0x216e10(0xd7)](_0x5a2ae7=>_0x5a2ae7['path']===SKILL_FILE),_0x262ecf=_0xb453e?fileText(_0xb453e):'',_0x4d20c5=tryNormalizePackageManifest(_0x3eaaf5[_0x216e10(0xc0)]),_0x221e22={..._0x3eaaf5,'content':_0x3eaaf5[_0x216e10(0xf9)]??_0x262ecf,'files':_0x4d20c5},_0x40fbf7=_0x4d20c5?normalizeLocalFiles(_0x465715)['filter'](_0xfaea0c=>_0x4d20c5[_0x216e10(0xc0)][_0x216e10(0xd9)](_0x170aa4=>_0x170aa4[_0x216e10(0xf8)]===_0xfaea0c['path'])):undefined,_0x4477cc=buildMetadata(_0x221e22,_0x17b177[_0x216e10(0xe8)]??_0x216e10(0xcf),_0x13a110,contentHash(_0x221e22[_0x216e10(0xf9)]??''),_0x17b177['pushedAt'],_0x40fbf7);writeJsonAtomic(resolve(_0x5b40bb,METADATA_FILE),_0x4477cc);}function a114_0x5750(_0x2aa6d6,_0x2c24c9){_0x2aa6d6=_0x2aa6d6-0xc0;const _0x2ed1d9=a114_0x2ed1();let _0x5750b5=_0x2ed1d9[_0x2aa6d6];return _0x5750b5;}export function deriveSkillCodeFromDirectory(_0x5513d1,_0x23772d){const _0x5e8ed5=a114_0x5750,_0x52df26=basename(resolve(_0x5513d1)),_0x429172=_0x23772d+'--';return _0x52df26[_0x5e8ed5(0xdb)](_0x429172)?_0x52df26['slice'](_0x429172[_0x5e8ed5(0xd2)]):_0x52df26;}function resolvePushSkillCode(_0x34c59b,_0x1501a4,_0x8498ae,_0x37941c){const _0x2dfb22=a114_0x5750,_0x21da94=deriveSkillCodeFromSkillFile(_0x34c59b)||deriveSkillCodeFromDirectory(_0x34c59b,_0x1501a4);if(_0x37941c[_0x2dfb22(0xf2)])return _0x21da94;return _0x8498ae?.['skillCode']?.[_0x2dfb22(0xc4)]()||_0x21da94;}function deriveSkillCodeFromSkillFile(_0x4b7b95){const _0x2e8d67=a114_0x5750,_0x15983a=resolve(_0x4b7b95,SKILL_FILE);if(!existsSync(_0x15983a)||!lstatSync(_0x15983a)['isFile']())return undefined;const _0x2a907e=readFileSync(_0x15983a,_0x2e8d67(0xeb)),_0x467dfa=_0x2a907e[_0x2e8d67(0xde)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x467dfa)return undefined;const _0xb9943a=parseFrontmatterObject(_0x467dfa[0x1]??''),_0x31cef0=scalarToString(_0xb9943a?.[_0x2e8d67(0xd8)]);return _0x31cef0?slugifySkillName(_0x31cef0):undefined;}function readSkillDisplayName(_0x206491){const _0x4c9410=a114_0x5750,_0x201238=_0x206491[_0x4c9410(0xde)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x201238)return undefined;const _0x1681fa=parseFrontmatterObject(_0x201238[0x1]??'');return scalarToString(_0x1681fa?.['displayName']);}function slugifySkillName(_0x3cf4db){const _0x1a3070=a114_0x5750,_0x555648=_0x3cf4db['trim']()['toLowerCase']()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x1a3070(0xea)](/^-+/,'')['replace'](/-+$/,'')[_0x1a3070(0xea)](/-{2,}/g,'-');if(!_0x555648)throw CliErrors[_0x1a3070(0xf4)](_0x1a3070(0xca)+SKILL_FILE+_0x1a3070(0xc7));return _0x555648;}function parseFrontmatterObject(_0x269fe){const _0x4f923e=a114_0x5750;try{const _0x52beee=a114_0x2db972(_0x269fe);return _0x52beee&&typeof _0x52beee===_0x4f923e(0xda)&&!Array[_0x4f923e(0xe4)](_0x52beee)?_0x52beee:undefined;}catch{return undefined;}}function scalarToString(_0x59d0a6){const _0x5256c4=a114_0x5750;if(typeof _0x59d0a6===_0x5256c4(0xc3))return _0x59d0a6[_0x5256c4(0xc4)]();if(typeof _0x59d0a6===_0x5256c4(0xdd)||typeof _0x59d0a6===_0x5256c4(0xc5))return String(_0x59d0a6);return undefined;}function resolvePushDirectoryRoot(_0x972d8b){const _0x2ca585=a114_0x5750,_0x371eff=resolve(_0x972d8b);if(!existsSync(_0x371eff))throw CliErrors[_0x2ca585(0xf4)](_0x2ca585(0xf7)+_0x972d8b);const _0x7213ea=lstatSync(_0x371eff);if(_0x7213ea[_0x2ca585(0xdf)]())return _0x371eff;if(_0x7213ea['isSymbolicLink']()){const _0x3a306d=realpathSync(_0x371eff);if(lstatSync(_0x3a306d)[_0x2ca585(0xdf)]())return _0x3a306d;}throw CliErrors['validation'](_0x2ca585(0xf7)+_0x972d8b);}function requireRemoteScope(_0x76dba6){const _0x13d7f1=a114_0x5750;if(_0x76dba6[_0x13d7f1(0xe8)]===_0x13d7f1(0xcf)||_0x76dba6[_0x13d7f1(0xe8)]==='company'||_0x76dba6[_0x13d7f1(0xe8)]===_0x13d7f1(0xf1))return _0x76dba6[_0x13d7f1(0xe8)];throw CliErrors[_0x13d7f1(0xf4)](_0x13d7f1(0xc6)+(_0x76dba6['skillCode']||_0x13d7f1(0xd4))+_0x13d7f1(0xe1)+(_0x76dba6['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x1cbdd2){const _0x9cc167=a114_0x5750,_0x38d5a7=resolve(_0x1cbdd2,SKILL_FILE);return existsSync(_0x38d5a7)&&lstatSync(_0x38d5a7)['isFile']()?readFileSync(_0x38d5a7,_0x9cc167(0xeb)):'';}function readPushMetadataIfPresent(_0x3705d5,_0x40f5b1={}){try{return readMetadataIfPresent(_0x3705d5);}catch(_0x3bddbe){if(_0x40f5b1['ignoreInvalidMetadata'])return undefined;throw _0x3bddbe;}}
|
|
1
|
+
function a114_0x490f(){const _0x30e48c=['ignoreMetadataAppCodeMismatch','3926645kBoqNR','isFile','pushedAt','slice','6iVStqI','\x20has\x20scope=\x22','Invalid\x20','string','isDirectory','company','path','21koTkGj','35649211mZqgwm','number','Unable\x20to\x20resolve\x20skillCode\x20from\x20','3JXnPoO','toLowerCase','tags','filter','packageBase64','Skill\x20directory\x20not\x20found:\x20','allowAppCodeRetarget','description','scope','(unknown)','builtin','skillName','ignoreMetadataScope','isSymbolicLink','boolean','replace','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','sourceSessionId','Remote\x20Skill\x20','appCode','ignoreMetadataForPayload','match','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','819699uMSSBi','5496354eOBwPv','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','validation','personal','1566632RUQtZo','dir','refreshedAt','files','\x20name\x20for\x20SkillHub\x20slug\x20generation.','151118qeNecn','4FkLocT','content','targetScope','200bPmYQO','manifest','trim','metadata','12srGkVh','Skill\x20metadata\x20appCode\x20\x22','423274EXUfAs','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','ignoreInvalidMetadata','utf8','ignoreMetadataSkillCode','displayName','startsWith','find','isArray'];a114_0x490f=function(){return _0x30e48c;};return a114_0x490f();}(function(_0x3c635b,_0x3a217a){const _0x30d8c7=a114_0x1dd2,_0x798fb2=_0x3c635b();while(!![]){try{const _0x5e5ac0=parseInt(_0x30d8c7(0x1e8))/0x1*(parseInt(_0x30d8c7(0x214))/0x2)+parseInt(_0x30d8c7(0x200))/0x3*(parseInt(_0x30d8c7(0x20b))/0x4)+-parseInt(_0x30d8c7(0x21e))/0x5*(-parseInt(_0x30d8c7(0x1dd))/0x6)+parseInt(_0x30d8c7(0x1e4))/0x7*(parseInt(_0x30d8c7(0x205))/0x8)+parseInt(_0x30d8c7(0x201))/0x9+-parseInt(_0x30d8c7(0x20e))/0xa*(-parseInt(_0x30d8c7(0x20a))/0xb)+parseInt(_0x30d8c7(0x212))/0xc*(-parseInt(_0x30d8c7(0x1e5))/0xd);if(_0x5e5ac0===_0x3a217a)break;else _0x798fb2['push'](_0x798fb2['shift']());}catch(_0x1a3f80){_0x798fb2['push'](_0x798fb2['shift']());}}}(a114_0x490f,0x678f3));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x4118e9}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x1f9901,_0x3be3fe,_0x4996ea={}){const _0x26e542=a114_0x1dd2,_0x344d6c=resolvePushDirectoryRoot(_0x1f9901),_0x6cec82=readPushMetadataIfPresent(resolve(_0x344d6c,METADATA_FILE),{'ignoreInvalidMetadata':_0x4996ea[_0x26e542(0x216)]});if(_0x6cec82?.[_0x26e542(0x1fb)]&&_0x6cec82[_0x26e542(0x1fb)]!==_0x3be3fe&&!_0x4996ea[_0x26e542(0x1ee)]&&!_0x4996ea[_0x26e542(0x21d)])throw CliErrors[_0x26e542(0x203)](_0x26e542(0x213)+_0x6cec82[_0x26e542(0x1fb)]+_0x26e542(0x202)+_0x3be3fe+'\x22.');const _0xa0ecf5=resolvePushSkillCode(_0x344d6c,_0x3be3fe,_0x6cec82,_0x4996ea);if(!_0xa0ecf5)throw CliErrors['validation'](_0x26e542(0x1e7)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x344d6c,'skillCode':_0xa0ecf5,'metadata':_0x6cec82};}export function readPushDirectory(_0x36db7a,_0x3cc0d7,_0x459b74={}){const _0x404ae9=a114_0x1dd2,_0x464b3a=resolvePushDirectoryIdentity(_0x36db7a,_0x3cc0d7,_0x459b74),_0x48c016=_0x464b3a[_0x404ae9(0x206)],_0x2a1a52=resolve(_0x48c016,SKILL_FILE);if(!existsSync(_0x2a1a52)||!lstatSync(_0x2a1a52)[_0x404ae9(0x21f)]())throw CliErrors[_0x404ae9(0x203)]('Missing\x20'+SKILL_FILE+':\x20'+_0x2a1a52);const _0x51f463=_0x464b3a[_0x404ae9(0x211)],_0x1aa80e=_0x459b74[_0x404ae9(0x20d)]??_0x404ae9(0x204);if(!_0x459b74[_0x404ae9(0x1f4)]&&_0x51f463?.[_0x404ae9(0x1f0)]===_0x404ae9(0x1f2))throw CliErrors[_0x404ae9(0x203)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x404ae9(0x1de)+_0x51f463[_0x404ae9(0x1f0)]+'\x22.');if(!_0x459b74[_0x404ae9(0x1f4)]&&_0x1aa80e===_0x404ae9(0x204)&&_0x51f463?.[_0x404ae9(0x1f0)]&&_0x51f463[_0x404ae9(0x1f0)]!==_0x404ae9(0x204))throw CliErrors[_0x404ae9(0x203)](_0x404ae9(0x1f8)+METADATA_FILE+_0x404ae9(0x1de)+_0x51f463[_0x404ae9(0x1f0)]+'\x22.',_0x404ae9(0x1ff)+_0x48c016+_0x404ae9(0x215));const _0x1d7618=scanSkillDirectory(_0x48c016),_0x4a75da=buildSkillPackage(_0x1d7618),_0x32af04=readFileSync(_0x2a1a52,_0x404ae9(0x217)),_0x5b926a=_0x464b3a['skillCode'],_0x598e59=_0x459b74[_0x404ae9(0x1fc)]?undefined:_0x51f463,_0x5b20db=readSkillDisplayName(_0x32af04);return{'skillCode':_0x5b926a,'metadata':_0x51f463,'frontmatterDisplayName':_0x5b20db,'input':{'skillCode':_0x5b926a,'skillName':_0x5b20db??_0x598e59?.[_0x404ae9(0x1f3)],'description':_0x598e59?.[_0x404ae9(0x1ef)],'content':_0x32af04,'files':_0x4a75da[_0x404ae9(0x20f)],'packageBase64':_0x4a75da[_0x404ae9(0x1ec)],'tags':_0x598e59?.[_0x404ae9(0x1ea)],'version':_0x598e59?.['version'],'sourceSessionId':_0x598e59?.[_0x404ae9(0x1f9)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x44b836,_0x456dfa,_0x4a566a,_0x1ac183={}){const _0x2f5a16=a114_0x1dd2,_0x4691a9=resolvePushDirectoryRoot(_0x44b836),_0x28f63e=readPushMetadataIfPresent(resolve(_0x4691a9,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3aba2d=requireRemoteScope(_0x456dfa),_0x5d392c=readLocalSkillContent(_0x4691a9),_0x6be80f={..._0x456dfa,'appCode':_0x456dfa[_0x2f5a16(0x1fb)]??_0x4a566a,'skillName':_0x456dfa[_0x2f5a16(0x1f3)]??_0x28f63e?.[_0x2f5a16(0x1f3)],'description':_0x456dfa[_0x2f5a16(0x1ef)]??_0x28f63e?.[_0x2f5a16(0x1ef)],'tags':Array[_0x2f5a16(0x21c)](_0x456dfa[_0x2f5a16(0x1ea)])?_0x456dfa[_0x2f5a16(0x1ea)]:_0x28f63e?.[_0x2f5a16(0x1ea)],'sourceSessionId':_0x456dfa['sourceSessionId']??_0x28f63e?.[_0x2f5a16(0x1f9)],'content':_0x456dfa[_0x2f5a16(0x20c)]??_0x5d392c},_0x2a2d1c=buildMetadata(_0x6be80f,_0x3aba2d,_0x4a566a,contentHash(_0x5d392c),_0x1ac183[_0x2f5a16(0x207)]);writeJsonAtomic(resolve(_0x4691a9,METADATA_FILE),_0x2a2d1c);}export function recordPushedRuntimeSkill(_0x1dd541,_0x1bcdd2,_0x303875,_0x51b9ba={}){const _0x34a7e8=a114_0x1dd2,_0x5d5db2=resolvePushDirectoryRoot(_0x1dd541),_0x43a36d=scanSkillDirectory(_0x5d5db2),_0x536756=_0x43a36d[_0x34a7e8(0x21b)](_0x31ceed=>_0x31ceed[_0x34a7e8(0x1e3)]===SKILL_FILE),_0x5f17d5=_0x536756?fileText(_0x536756):'',_0x470605=tryNormalizePackageManifest(_0x1bcdd2[_0x34a7e8(0x208)]),_0x6ab69c={..._0x1bcdd2,'content':_0x1bcdd2[_0x34a7e8(0x20c)]??_0x5f17d5,'files':_0x470605},_0x55b988=_0x470605?normalizeLocalFiles(_0x43a36d)[_0x34a7e8(0x1eb)](_0x254cf8=>_0x470605[_0x34a7e8(0x208)]['some'](_0x3fc132=>_0x3fc132[_0x34a7e8(0x1e3)]===_0x254cf8[_0x34a7e8(0x1e3)])):undefined,_0x39b84a=buildMetadata(_0x6ab69c,_0x51b9ba[_0x34a7e8(0x1f0)]??'personal',_0x303875,contentHash(_0x6ab69c['content']??''),_0x51b9ba[_0x34a7e8(0x220)],_0x55b988);writeJsonAtomic(resolve(_0x5d5db2,METADATA_FILE),_0x39b84a);}export function deriveSkillCodeFromDirectory(_0x163214,_0x2a4ab4){const _0x307c95=a114_0x1dd2,_0xcdf64d=basename(resolve(_0x163214)),_0x22a6de=_0x2a4ab4+'--';return _0xcdf64d[_0x307c95(0x21a)](_0x22a6de)?_0xcdf64d[_0x307c95(0x1dc)](_0x22a6de['length']):_0xcdf64d;}function resolvePushSkillCode(_0x45b739,_0xc5a7c4,_0xa1e689,_0x17f6e6){const _0x1202a4=a114_0x1dd2,_0x391f35=deriveSkillCodeFromSkillFile(_0x45b739)||deriveSkillCodeFromDirectory(_0x45b739,_0xc5a7c4);if(_0x17f6e6[_0x1202a4(0x218)])return _0x391f35;return _0xa1e689?.[_0x1202a4(0x1fe)]?.[_0x1202a4(0x210)]()||_0x391f35;}function deriveSkillCodeFromSkillFile(_0x23268d){const _0x1ee337=a114_0x1dd2,_0x56787d=resolve(_0x23268d,SKILL_FILE);if(!existsSync(_0x56787d)||!lstatSync(_0x56787d)[_0x1ee337(0x21f)]())return undefined;const _0x4712a0=readFileSync(_0x56787d,_0x1ee337(0x217)),_0x2e7581=_0x4712a0[_0x1ee337(0x1fd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2e7581)return undefined;const _0x49dc72=parseFrontmatterObject(_0x2e7581[0x1]??''),_0x4d4433=scalarToString(_0x49dc72?.['name']);return _0x4d4433?slugifySkillName(_0x4d4433):undefined;}function readSkillDisplayName(_0x210bde){const _0x1b2770=a114_0x1dd2,_0x1d0d2a=_0x210bde[_0x1b2770(0x1fd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1d0d2a)return undefined;const _0x1527ff=parseFrontmatterObject(_0x1d0d2a[0x1]??'');return scalarToString(_0x1527ff?.[_0x1b2770(0x219)]);}function slugifySkillName(_0x5ef4cd){const _0x53dfb8=a114_0x1dd2,_0x447f30=_0x5ef4cd[_0x53dfb8(0x210)]()[_0x53dfb8(0x1e9)]()[_0x53dfb8(0x1f7)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x53dfb8(0x1f7)](/-+$/,'')[_0x53dfb8(0x1f7)](/-{2,}/g,'-');if(!_0x447f30)throw CliErrors['validation'](_0x53dfb8(0x1df)+SKILL_FILE+_0x53dfb8(0x209));return _0x447f30;}function parseFrontmatterObject(_0x1525d8){const _0xc55459=a114_0x1dd2;try{const _0x4acddd=a114_0x4118e9(_0x1525d8);return _0x4acddd&&typeof _0x4acddd==='object'&&!Array[_0xc55459(0x21c)](_0x4acddd)?_0x4acddd:undefined;}catch{return undefined;}}function scalarToString(_0x39cf2f){const _0x171270=a114_0x1dd2;if(typeof _0x39cf2f===_0x171270(0x1e0))return _0x39cf2f[_0x171270(0x210)]();if(typeof _0x39cf2f===_0x171270(0x1e6)||typeof _0x39cf2f===_0x171270(0x1f6))return String(_0x39cf2f);return undefined;}function a114_0x1dd2(_0x18552a,_0x18889b){_0x18552a=_0x18552a-0x1dc;const _0x490f71=a114_0x490f();let _0x1dd2de=_0x490f71[_0x18552a];return _0x1dd2de;}function resolvePushDirectoryRoot(_0x2818ec){const _0xced2c9=a114_0x1dd2,_0x39cfd7=resolve(_0x2818ec);if(!existsSync(_0x39cfd7))throw CliErrors[_0xced2c9(0x203)](_0xced2c9(0x1ed)+_0x2818ec);const _0xf57bc4=lstatSync(_0x39cfd7);if(_0xf57bc4[_0xced2c9(0x1e1)]())return _0x39cfd7;if(_0xf57bc4[_0xced2c9(0x1f5)]()){const _0x52d3d5=realpathSync(_0x39cfd7);if(lstatSync(_0x52d3d5)[_0xced2c9(0x1e1)]())return _0x52d3d5;}throw CliErrors[_0xced2c9(0x203)](_0xced2c9(0x1ed)+_0x2818ec);}function requireRemoteScope(_0x393717){const _0x271080=a114_0x1dd2;if(_0x393717['scope']===_0x271080(0x204)||_0x393717[_0x271080(0x1f0)]===_0x271080(0x1e2)||_0x393717[_0x271080(0x1f0)]===_0x271080(0x1f2))return _0x393717[_0x271080(0x1f0)];throw CliErrors[_0x271080(0x203)](_0x271080(0x1fa)+(_0x393717[_0x271080(0x1fe)]||_0x271080(0x1f1))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x393717[_0x271080(0x1f0)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x8c7b5c){const _0x87fe67=resolve(_0x8c7b5c,SKILL_FILE);return existsSync(_0x87fe67)&&lstatSync(_0x87fe67)['isFile']()?readFileSync(_0x87fe67,'utf8'):'';}function readPushMetadataIfPresent(_0x4b32b0,_0x20d2d7={}){const _0x2a2e86=a114_0x1dd2;try{return readMetadataIfPresent(_0x4b32b0);}catch(_0xe4a3ea){if(_0x20d2d7[_0x2a2e86(0x216)])return undefined;throw _0xe4a3ea;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2dc0b1,_0x4081d8){const _0x386755=a115_0x4b8b,_0x195eaf=_0x2dc0b1();while(!![]){try{const _0x1c4c30=-parseInt(_0x386755(0x101))/0x1*(-parseInt(_0x386755(0x100))/0x2)+-parseInt(_0x386755(0x105))/0x3*(-parseInt(_0x386755(0xff))/0x4)+-parseInt(_0x386755(0x109))/0x5*(-parseInt(_0x386755(0xfa))/0x6)+-parseInt(_0x386755(0xfd))/0x7+-parseInt(_0x386755(0xfc))/0x8*(-parseInt(_0x386755(0xfe))/0x9)+parseInt(_0x386755(0x102))/0xa+-parseInt(_0x386755(0xf8))/0xb;if(_0x1c4c30===_0x4081d8)break;else _0x195eaf['push'](_0x195eaf['shift']());}catch(_0x591d80){_0x195eaf['push'](_0x195eaf['shift']());}}}(a115_0x25d2,0x517ee));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x5d0fcc){const _0x3f968d=a115_0x4b8b,_0x385d86=_0x5d0fcc&&_0x5d0fcc[_0x3f968d(0x103)]>0x0?_0x5d0fcc:['personal','company',_0x3f968d(0x104)],_0x2218fa=[];for(const _0xd3ce1c of _0x385d86){if(!isRuntimeSkillScope(_0xd3ce1c))throw CliErrors[_0x3f968d(0x107)](_0x3f968d(0x106)+_0xd3ce1c);!_0x2218fa[_0x3f968d(0xf9)](_0xd3ce1c)&&_0x2218fa[_0x3f968d(0x108)](_0xd3ce1c);}return _0x2218fa;}export function isRuntimeSkillScope(_0x4b0ae5){const _0x312aff=a115_0x4b8b;return _0x4b0ae5===_0x312aff(0xfb)||_0x4b0ae5==='company'||_0x4b0ae5===_0x312aff(0x104);}function a115_0x4b8b(_0x1f83bd,_0x38451e){_0x1f83bd=_0x1f83bd-0xf8;const _0x25d2c3=a115_0x25d2();let _0x4b8bdc=_0x25d2c3[_0x1f83bd];return _0x4b8bdc;}function a115_0x25d2(){const _0x22ea47=['validation','push','155UnzODI','9899439NbHaxk','includes','26436xIdPxJ','personal','20216UhXNbi','734769AGaOmQ','1008XBmMZw','5448UscJiF','436048WmSaVR','1DYLpVH','4654620BDyYvc','length','builtin','519BIfsAE','Unsupported\x20runtime\x20Skill\x20scope:\x20'];a115_0x25d2=function(){return _0x22ea47;};return a115_0x25d2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a117_0x4b0acd=a117_0x409a;function a117_0x409a(_0x4368a4,_0xa223b7){_0x4368a4=_0x4368a4-0xef;const _0x565ace=a117_0x565a();let _0x409a80=_0x565ace[_0x4368a4];return _0x409a80;}(function(_0x90891a,_0x50a025){const _0x1f4f4f=a117_0x409a,_0x11ab26=_0x90891a();while(!![]){try{const _0x3d41f6=-parseInt(_0x1f4f4f(0xf0))/0x1*(parseInt(_0x1f4f4f(0xff))/0x2)+parseInt(_0x1f4f4f(0xf1))/0x3*(parseInt(_0x1f4f4f(0xfb))/0x4)+parseInt(_0x1f4f4f(0xf2))/0x5*(-parseInt(_0x1f4f4f(0xf6))/0x6)+-parseInt(_0x1f4f4f(0xf9))/0x7*(-parseInt(_0x1f4f4f(0xef))/0x8)+parseInt(_0x1f4f4f(0xfc))/0x9+parseInt(_0x1f4f4f(0xf8))/0xa*(-parseInt(_0x1f4f4f(0x103))/0xb)+parseInt(_0x1f4f4f(0xfa))/0xc;if(_0x3d41f6===_0x50a025)break;else _0x11ab26['push'](_0x11ab26['shift']());}catch(_0x32064a){_0x11ab26['push'](_0x11ab26['shift']());}}}(a117_0x565a,0x572f0));function a117_0x565a(){const _0x125455=['map','5676Smhxos','validation_error','code','endsWith','2974352VwZFJh','194HHyzmm','3SaMdtt','80iKfVGn','1980-01-01T00:00:00.000Z','name','object','164184NJFyIK','length','9770tzLMdI','7ndgNTM','7278228SErMpc','1273992eefTuJ','3196215gqcmjW','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','validation','3638QzEOLU','from','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'];a117_0x565a=function(){return _0x125455;};return a117_0x565a();}import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a117_0x4b0acd(0xf3));export function createDeterministicZipPackage(_0x4ba167){const _0x2bfdc7=a117_0x4b0acd,_0x452479={};for(const _0xc202a2 of normalizeLocalFiles(_0x4ba167)){_0x452479[_0xc202a2['path']]=fileContent(_0xc202a2);}return Buffer[_0x2bfdc7(0x100)](zipSync(_0x452479,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x406922){const _0x146d8c=a117_0x4b0acd;if(_0x406922[_0x146d8c(0xf7)]<0x16)throw CliErrors[_0x146d8c(0xfe)](_0x146d8c(0xfd));let _0x4ce4f6;try{_0x4ce4f6=unzipSync(_0x406922,{'filter'(_0x3cc12b){const _0xc90006=_0x146d8c,_0x3f306a=normalizeSkillRelativePath(_0x3cc12b[_0xc90006(0xf4)]);if(_0x3f306a[_0xc90006(0x106)]('/'))throw CliErrors['validation'](_0xc90006(0x101)+_0x3f306a);return!![];}});}catch(_0x210172){if(isRuntimeSkillValidationError(_0x210172))throw _0x210172;throw CliErrors[_0x146d8c(0xfe)](_0x146d8c(0xfd));}return Object['entries'](_0x4ce4f6)[_0x146d8c(0x102)](([_0x3b61ad,_0x4e6dab])=>({'path':normalizeSkillRelativePath(_0x3b61ad),'bytes':Buffer[_0x146d8c(0x100)](_0x4e6dab)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0xaf8701){const _0x1c93dc=a117_0x4b0acd;return typeof _0xaf8701===_0x1c93dc(0xf5)&&_0xaf8701!==null&&_0x1c93dc(0x105)in _0xaf8701&&_0xaf8701[_0x1c93dc(0x105)]===_0x1c93dc(0x104);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x124386,_0x12c1ef){const _0x55a9a8=a118_0x487f,_0x1f72ec=_0x124386();while(!![]){try{const _0x3eae59=parseInt(_0x55a9a8(0x1ae))/0x1*(parseInt(_0x55a9a8(0x1c7))/0x2)+parseInt(_0x55a9a8(0x1b7))/0x3+parseInt(_0x55a9a8(0x1a9))/0x4*(-parseInt(_0x55a9a8(0x1bb))/0x5)+-parseInt(_0x55a9a8(0x1a6))/0x6*(parseInt(_0x55a9a8(0x1b2))/0x7)+parseInt(_0x55a9a8(0x1c8))/0x8*(parseInt(_0x55a9a8(0x1b3))/0x9)+-parseInt(_0x55a9a8(0x1a4))/0xa*(-parseInt(_0x55a9a8(0x1a0))/0xb)+-parseInt(_0x55a9a8(0x19a))/0xc*(parseInt(_0x55a9a8(0x19c))/0xd);if(_0x3eae59===_0x12c1ef)break;else _0x1f72ec['push'](_0x1f72ec['shift']());}catch(_0x60f21b){_0x1f72ec['push'](_0x1f72ec['shift']());}}}(a118_0x2406,0x4ace1));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';function a118_0x2406(){const _0x40eb0d=['trim','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','15mLuMCP','push','Runtime\x20Skill\x20package\x20size\x20mismatch.','set','treeSha256','bytes','requireOssPath','toLowerCase','isArray','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','sha256','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','1210728GxjSQg','40RzmoWC','size','996RWuBWR','length','176124DDQQUb','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','get','files','915662NflxDt','string','some','zipSha256','50aETOkY','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','179070iiJQDq','zipSize','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','9812ItitwS','path','Duplicate\x20Skill\x20package\x20entry:\x20','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','1BEXrxg','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20','base64','119sVtYFU','1008927vxazbF','Missing\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','object','1090560ADzByi','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.'];a118_0x2406=function(){return _0x40eb0d;};return a118_0x2406();}export function buildSkillPackage(_0x1aa4a3){const _0x33ed7f=a118_0x487f,_0x65ab23=normalizeLocalFiles(_0x1aa4a3);if(!_0x65ab23['some'](_0x35c3dc=>_0x35c3dc[_0x33ed7f(0x1aa)]===SKILL_FILE))throw CliErrors[_0x33ed7f(0x1ac)](_0x33ed7f(0x1b4)+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x13788b=localFilesToManifestFiles(_0x65ab23),_0x50fdfb=createDeterministicZipPackage(_0x65ab23);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x13788b),'zipSha256':bufferSha256(_0x50fdfb),'zipSize':_0x50fdfb[_0x33ed7f(0x19b)],'files':_0x13788b},'packageBytes':_0x50fdfb,'packageBase64':_0x50fdfb['toString'](_0x33ed7f(0x1b1))};}export function verifyRuntimeSkillPackage(_0x4219a7,_0xd5bdce){const _0x562411=a118_0x487f,_0x5ce3f4=normalizePackageManifest(_0x4219a7,{'requireOssPath':![]});if(!_0x5ce3f4)throw CliErrors[_0x562411(0x1ac)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x5ce3f4,_0xd5bdce);}export function verifyRuntimeSkillBundle(_0x4ac29c,_0x57f0d1){const _0x479686=a118_0x487f,_0x575fe1=normalizePackageManifest(_0x4ac29c,{'requireOssPath':![]});if(!_0x575fe1)throw CliErrors[_0x479686(0x1ac)](_0x479686(0x1b8));return extractAndVerifyPackageFiles(_0x575fe1,_0x57f0d1);}export function tryNormalizePackageManifest(_0x2c1219){return normalizePackageManifest(_0x2c1219,{'requireOssPath':![]});}export function requirePackageBytes(_0x33e10d,_0x16e742){const _0x25bece=a118_0x487f;if(!_0x16e742||_0x16e742[_0x25bece(0x19b)]===0x0)throw CliErrors['validation'](_0x25bece(0x1af)+_0x33e10d);return _0x16e742;}export function extractDownloadedPackage(_0x4e88bb){const _0x30af32=a118_0x487f,_0x12d56a=parseZipPackage(_0x4e88bb)['map'](_0x4d7886=>({'path':_0x4d7886[_0x30af32(0x1aa)],'bytes':_0x4d7886[_0x30af32(0x1c0)]}));if(!_0x12d56a[_0x30af32(0x1a2)](_0x612ccf=>_0x612ccf[_0x30af32(0x1aa)]===SKILL_FILE))throw CliErrors['validation'](_0x30af32(0x1b0)+SKILL_FILE+'.');return normalizeLocalFiles(_0x12d56a);}function a118_0x487f(_0x180596,_0x32aec2){_0x180596=_0x180596-0x19a;const _0x240681=a118_0x2406();let _0x487f71=_0x240681[_0x180596];return _0x487f71;}export function localFilesToManifestFiles(_0x3bf04b){const _0x495232=a118_0x487f;return normalizeLocalFiles(_0x3bf04b)['map'](_0x38af2d=>({'path':_0x38af2d[_0x495232(0x1aa)],'sha256':fileHash(_0x38af2d),'size':fileContent(_0x38af2d)[_0x495232(0x19b)]}));}function normalizePackageManifest(_0x2c006e,_0x394832){const _0x7d2203=a118_0x487f;if(!_0x2c006e||typeof _0x2c006e!==_0x7d2203(0x1b6)||Array[_0x7d2203(0x1c3)](_0x2c006e))return undefined;const _0x5a1024=_0x2c006e,_0x51e142=typeof _0x5a1024['ossPath']===_0x7d2203(0x1a1)?_0x5a1024['ossPath'][_0x7d2203(0x1b9)]():undefined;if(_0x394832[_0x7d2203(0x1c1)]&&!_0x51e142)return undefined;if(!Array[_0x7d2203(0x1c3)](_0x5a1024[_0x7d2203(0x19f)])||_0x5a1024[_0x7d2203(0x19f)]['length']===0x0)return undefined;if(!isSha256Hex(_0x5a1024[_0x7d2203(0x1bf)]))throw CliErrors[_0x7d2203(0x1ac)](_0x7d2203(0x1ad));if(!isSha256Hex(_0x5a1024[_0x7d2203(0x1a3)]))throw CliErrors[_0x7d2203(0x1ac)](_0x7d2203(0x1a8));if(!Number['isSafeInteger'](_0x5a1024[_0x7d2203(0x1a7)])||_0x5a1024[_0x7d2203(0x1a7)]<0x0)throw CliErrors['validation'](_0x7d2203(0x1b5));const _0x2e048a=normalizeManifestFiles(_0x5a1024[_0x7d2203(0x19f)]);if(!_0x2e048a[_0x7d2203(0x1a2)](_0x407c57=>_0x407c57['path']===SKILL_FILE))throw CliErrors[_0x7d2203(0x1ac)](_0x7d2203(0x19d)+SKILL_FILE+'.');const _0x588e65=fileTreeHash(_0x2e048a);if(_0x588e65!==_0x5a1024[_0x7d2203(0x1bf)][_0x7d2203(0x1c2)]())throw CliErrors[_0x7d2203(0x1ac)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x5a1024['schemaVersion'])?_0x5a1024['schemaVersion']:0x2,'ossPath':_0x51e142,'treeSha256':_0x588e65,'zipSha256':_0x5a1024[_0x7d2203(0x1a3)][_0x7d2203(0x1c2)](),'zipSize':_0x5a1024['zipSize'],'files':_0x2e048a};}function extractAndVerifyPackage(_0x42c6ea,_0x14c0c4){const _0x319ab6=a118_0x487f,_0x210c35=normalizePackageManifest(_0x42c6ea,{'requireOssPath':![]});if(!_0x210c35)throw CliErrors[_0x319ab6(0x1ac)](_0x319ab6(0x1b8));if(_0x14c0c4[_0x319ab6(0x19b)]!==_0x210c35[_0x319ab6(0x1a7)])throw CliErrors[_0x319ab6(0x1ac)](_0x319ab6(0x1bd));const _0x9fbdc1=bufferSha256(_0x14c0c4);if(_0x9fbdc1!==_0x210c35[_0x319ab6(0x1a3)])throw CliErrors[_0x319ab6(0x1ac)](_0x319ab6(0x1c4));return extractAndVerifyPackageFiles(_0x210c35,_0x14c0c4);}function extractAndVerifyPackageFiles(_0x3ef56f,_0x39849a){const _0x1fee86=a118_0x487f,_0x59d894=parseZipPackage(_0x39849a);if(_0x59d894[_0x1fee86(0x19b)]!==_0x3ef56f[_0x1fee86(0x19f)][_0x1fee86(0x19b)])throw CliErrors[_0x1fee86(0x1ac)](_0x1fee86(0x1c6));const _0x465b6f=new Map();for(const _0x3cbb74 of _0x59d894){if(_0x465b6f['has'](_0x3cbb74['path']))throw CliErrors['validation'](_0x1fee86(0x1ab)+_0x3cbb74[_0x1fee86(0x1aa)]);_0x465b6f[_0x1fee86(0x1be)](_0x3cbb74[_0x1fee86(0x1aa)],_0x3cbb74);}const _0x1bf473=[];for(const _0x5d31c2 of _0x3ef56f['files']){const _0x2668bd=_0x465b6f[_0x1fee86(0x19e)](_0x5d31c2[_0x1fee86(0x1aa)]);if(!_0x2668bd)throw CliErrors[_0x1fee86(0x1ac)](_0x1fee86(0x1ba)+_0x5d31c2[_0x1fee86(0x1aa)]);if(_0x2668bd[_0x1fee86(0x1c0)][_0x1fee86(0x19b)]!==_0x5d31c2[_0x1fee86(0x1c9)])throw CliErrors[_0x1fee86(0x1ac)](_0x1fee86(0x1a5)+_0x5d31c2['path']);const _0x2ce64f=bufferSha256(_0x2668bd[_0x1fee86(0x1c0)]);if(_0x2ce64f!==_0x5d31c2[_0x1fee86(0x1c5)])throw CliErrors[_0x1fee86(0x1ac)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x5d31c2[_0x1fee86(0x1aa)]);_0x1bf473[_0x1fee86(0x1bc)]({'path':_0x5d31c2['path'],'bytes':_0x2668bd['bytes']});}return normalizeLocalFiles(_0x1bf473);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x329225,_0x11ded6){var _0x55c70b=a119_0x528f,_0x214cb0=_0x329225();while(!![]){try{var _0x4fad0d=parseInt(_0x55c70b(0x83))/0x1*(parseInt(_0x55c70b(0x85))/0x2)+parseInt(_0x55c70b(0x80))/0x3*(parseInt(_0x55c70b(0x84))/0x4)+-parseInt(_0x55c70b(0x81))/0x5*(parseInt(_0x55c70b(0x86))/0x6)+parseInt(_0x55c70b(0x8a))/0x7+-parseInt(_0x55c70b(0x82))/0x8+-parseInt(_0x55c70b(0x87))/0x9*(-parseInt(_0x55c70b(0x88))/0xa)+-parseInt(_0x55c70b(0x89))/0xb;if(_0x4fad0d===_0x11ded6)break;else _0x214cb0['push'](_0x214cb0['shift']());}catch(_0xe54fa7){_0x214cb0['push'](_0x214cb0['shift']());}}}(a119_0x12ad,0xdfec9));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a119_0x12ad(){var _0x17a996=['36842GKcYwt','6ANDHrc','3267459IeaQVa','10DzYgqS','27168460hwnFdT','11644640Hhdqhj','3NSIgEV','221945QMPFGV','7720848VuNEAc','65nDBoDv','4690448tANRVr'];a119_0x12ad=function(){return _0x17a996;};return a119_0x12ad();}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a119_0x528f(_0x533046,_0x24d17c){_0x533046=_0x533046-0x80;var _0x12adf8=a119_0x12ad();var _0x528f9e=_0x12adf8[_0x533046];return _0x528f9e;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28c257,_0x268e1e){const _0xaf3a65=a120_0xd975,_0x56f878=_0x28c257();while(!![]){try{const _0x5ab924=parseInt(_0xaf3a65(0x1c7))/0x1*(parseInt(_0xaf3a65(0x1c4))/0x2)+parseInt(_0xaf3a65(0x1c8))/0x3+parseInt(_0xaf3a65(0x1c6))/0x4+parseInt(_0xaf3a65(0x1c5))/0x5*(-parseInt(_0xaf3a65(0x1c2))/0x6)+parseInt(_0xaf3a65(0x1c0))/0x7+parseInt(_0xaf3a65(0x1c1))/0x8*(parseInt(_0xaf3a65(0x1c3))/0x9)+-parseInt(_0xaf3a65(0x1bf))/0xa;if(_0x5ab924===_0x268e1e)break;else _0x56f878['push'](_0x56f878['shift']());}catch(_0x460d0b){_0x56f878['push'](_0x56f878['shift']());}}}(a120_0xce7d,0xc89a0));function a120_0xce7d(){const _0x5053fe=['2429560QvoXOW','12pfJhPa','27BhPkaR','17758EKruHT','2945300dVNBZj','3036516WnMqEI','109AKZhID','1384368FlaOnq','24539140AZlUoo','9479519FPYCBH'];a120_0xce7d=function(){return _0x5053fe;};return a120_0xce7d();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a120_0xd975(_0x1f28a9,_0x1911bc){_0x1f28a9=_0x1f28a9-0x1bf;const _0xce7dd1=a120_0xce7d();let _0xd97552=_0xce7dd1[_0x1f28a9];return _0xd97552;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|