@lovrabet/lovrabet-cli 2.1.21 → 2.1.22-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(_0x43678d,_0x446b2f){const _0x1be075=a106_0x2f48,_0x57923c=_0x43678d();while(!![]){try{const _0x470a5b=parseInt(_0x1be075(0x101))/0x1*(-parseInt(_0x1be075(0x104))/0x2)+-parseInt(_0x1be075(0x10b))/0x3+parseInt(_0x1be075(0x105))/0x4+-parseInt(_0x1be075(0x10c))/0x5*(parseInt(_0x1be075(0x106))/0x6)+parseInt(_0x1be075(0x10e))/0x7+parseInt(_0x1be075(0x10d))/0x8+parseInt(_0x1be075(0x102))/0x9;if(_0x470a5b===_0x446b2f)break;else _0x57923c['push'](_0x57923c['shift']());}catch(_0x2f8978){_0x57923c['push'](_0x57923c['shift']());}}}(a106_0xbfed,0xbf077));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a106_0x2f48(_0xf056f6,_0x54669e){_0xf056f6=_0xf056f6-0x100;const _0xbfed1d=a106_0xbfed();let _0x2f48fa=_0xbfed1d[_0xf056f6];return _0x2f48fa;}export function contentHash(_0x5e53a1){const _0x4b739b=a106_0x2f48;return createHash(_0x4b739b(0x109))[_0x4b739b(0x108)](_0x5e53a1)[_0x4b739b(0x100)]('hex');}export function fileHash(_0x3f6186){return bufferSha256(fileContent(_0x3f6186));}export function bufferSha256(_0x12f31e){const _0x53d21d=a106_0x2f48;return createHash('sha256')[_0x53d21d(0x108)](_0x12f31e)[_0x53d21d(0x100)](_0x53d21d(0x10a));}function a106_0xbfed(){const _0x4a954c=['48IvWqpz','3763566YmGUxW','path','57530eRyxQC','1775308PcvDjX','19032WXBUWV','size','update','sha256','hex','941151uPRIiO','2190rQjccT','12310928YeUuGG','10257527cWFUWU','digest'];a106_0xbfed=function(){return _0x4a954c;};return a106_0xbfed();}export function fileTreeHash(_0x311090){const _0x2ec4f5=a106_0x2f48,_0xf8cfe3=createHash(_0x2ec4f5(0x109));for(const _0x2aa0dd of normalizeManifestFiles(_0x311090)){_0xf8cfe3[_0x2ec4f5(0x108)](_0x2aa0dd[_0x2ec4f5(0x103)]),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00'),_0xf8cfe3[_0x2ec4f5(0x108)](_0x2aa0dd[_0x2ec4f5(0x109)]),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00'),_0xf8cfe3[_0x2ec4f5(0x108)](String(_0x2aa0dd[_0x2ec4f5(0x107)])),_0xf8cfe3[_0x2ec4f5(0x108)]('\x00');}return _0xf8cfe3[_0x2ec4f5(0x100)](_0x2ec4f5(0x10a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x2eb87a=a107_0x4f43;function a107_0x4f43(_0x127e98,_0x28d50c){_0x127e98=_0x127e98-0x13a;const _0x5488e5=a107_0x5488();let _0x4f4399=_0x5488e5[_0x127e98];return _0x4f4399;}(function(_0x53551a,_0x59b297){const _0x373994=a107_0x4f43,_0x1fa512=_0x53551a();while(!![]){try{const _0x3a06b1=-parseInt(_0x373994(0x145))/0x1*(parseInt(_0x373994(0x14b))/0x2)+-parseInt(_0x373994(0x148))/0x3*(parseInt(_0x373994(0x141))/0x4)+-parseInt(_0x373994(0x13b))/0x5*(parseInt(_0x373994(0x147))/0x6)+-parseInt(_0x373994(0x14c))/0x7+parseInt(_0x373994(0x146))/0x8*(parseInt(_0x373994(0x13f))/0x9)+-parseInt(_0x373994(0x144))/0xa+parseInt(_0x373994(0x143))/0xb;if(_0x3a06b1===_0x59b297)break;else _0x1fa512['push'](_0x1fa512['shift']());}catch(_0x4cf7a8){_0x1fa512['push'](_0x1fa512['shift']());}}}(a107_0x5488,0x3494e));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a107_0x5488(){const _0x5a3bcc=['3385650lhvyeh','112655jrRBGG','6248VZuMZh','18umQcAF','6YbWTHt','skills','project','2wCXwZT','2896054QPDyob','freeze','622855HUZKBK','.agents','global','appCode','3258CrWOHe','cwd','730024GqVbWi','managedRoot','16899509wLJoEn'];a107_0x5488=function(){return _0x5a3bcc;};return a107_0x5488();}export function resolveRuntimeSkillInstallTarget(_0x101ae6,_0x1d08cb=a107_0x2eb87a(0x13d),_0x563a4b={}){const _0x6217aa=a107_0x2eb87a,_0x430efd=resolveSkillSyncPaths(_0x563a4b),_0x104c1e=safePathSegment(_0x101ae6,_0x6217aa(0x13e)),_0x41cc97=_0x1d08cb===_0x6217aa(0x14a)?[resolve(_0x563a4b[_0x6217aa(0x140)]??process[_0x6217aa(0x140)](),_0x6217aa(0x13c),_0x6217aa(0x149))]:runtimeAgentSkillRoots(_0x430efd);return Object['freeze']({'scope':_0x1d08cb,'appCode':_0x104c1e,'skillRoots':Object[_0x6217aa(0x13a)](_0x41cc97),'managedRoot':_0x430efd[_0x6217aa(0x142)]});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108_0x2ed8b0=a108_0x4a3b;(function(_0x3ea659,_0x257b4c){const _0x12e988=a108_0x4a3b,_0x39c38c=_0x3ea659();while(!![]){try{const _0x4fb09f=-parseInt(_0x12e988(0xf9))/0x1*(parseInt(_0x12e988(0x128))/0x2)+-parseInt(_0x12e988(0x10d))/0x3+parseInt(_0x12e988(0x129))/0x4+parseInt(_0x12e988(0x101))/0x5+-parseInt(_0x12e988(0x125))/0x6+-parseInt(_0x12e988(0xff))/0x7*(-parseInt(_0x12e988(0x10c))/0x8)+parseInt(_0x12e988(0x115))/0x9*(parseInt(_0x12e988(0x105))/0xa);if(_0x4fb09f===_0x257b4c)break;else _0x39c38c['push'](_0x39c38c['shift']());}catch(_0x35034e){_0x39c38c['push'](_0x39c38c['shift']());}}}(a108_0x19d7,0x40b0a));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x20ea3e 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_0x20ea3e,RESERVED_PROJECT_SKILL_CODES=new Set([a108_0x2ed8b0(0x103),'runtime-observe',a108_0x2ed8b0(0x11d)]);export function linkEffectiveRuntimeSkills(_0x3fa37d,_0x1580b3){const _0x9565c9=a108_0x2ed8b0,_0x14d0bc=new Map();for(const _0x3874b7 of _0x3fa37d){const _0x1cc0c1=_0x3874b7[_0x9565c9(0x11f)][_0x9565c9(0x12e)];if(!_0x1cc0c1)continue;const _0x2b7373=_0x14d0bc[_0x9565c9(0x127)](_0x1cc0c1);(!_0x2b7373||_0x3874b7[_0x9565c9(0x11c)]==='personal')&&_0x14d0bc['set'](_0x1cc0c1,_0x3874b7);}const _0x5d177d=[];for(const _0x19698a of _0x14d0bc[_0x9565c9(0x12b)]()){const _0x17478a=requireSkillCode(_0x19698a[_0x9565c9(0x11f)]),_0xe9e9ed=readMetadataIfPresent(_0x19698a[_0x9565c9(0x122)]);if(_0xe9e9ed?.['appCode']!==_0x1580b3[_0x9565c9(0x10b)]||_0xe9e9ed[_0x9565c9(0x12e)]!==_0x17478a)throw CliErrors[_0x9565c9(0x111)]('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x1580b3[_0x9565c9(0x10b)]+':\x20'+_0x19698a[_0x9565c9(0x122)]);const _0x598ddf=runtimeSkillLinkName(_0x1580b3,_0x17478a);for(const _0x30d8ca of _0x1580b3[_0x9565c9(0x112)]){_0x5d177d[_0x9565c9(0xf8)](ensureManagedSymlink(resolve(_0x30d8ca,_0x598ddf),_0x19698a[_0x9565c9(0x104)],_0x1580b3,_0x17478a));}}return _0x5d177d;}export function pruneStaleRuntimeSkillLinks(_0x241292,_0x383460,_0x57c4b6){const _0x9cd2ec=a108_0x2ed8b0,_0x291151=new Set([..._0x383460][_0x9cd2ec(0x114)](_0x4819bf=>_0x4819bf[_0x9cd2ec(0x11b)]())['filter'](Boolean)),_0x8f432c=_0x57c4b6?new Set([..._0x57c4b6][_0x9cd2ec(0x114)](_0x3a1081=>_0x3a1081[_0x9cd2ec(0x11b)]())[_0x9cd2ec(0xfc)](Boolean)):undefined,_0x240fdb=[];for(const _0x213af1 of _0x241292[_0x9cd2ec(0x112)]){for(const _0x4c9df9 of managedTargetSkillLinkPaths(_0x213af1,_0x241292)){const _0x140554=runtimeSkillCodeFromLink(_0x241292,_0x4c9df9);if(_0x8f432c&&!_0x8f432c[_0x9cd2ec(0x119)](_0x140554))continue;if(_0x291151[_0x9cd2ec(0x119)](_0x140554))continue;_0x240fdb[_0x9cd2ec(0xf8)](removeManagedSkillLink(_0x4c9df9,_0x241292,_0x140554));}}return _0x240fdb;}export function pruneStaleRuntimeSkillCache(_0x15b05a,_0x13c0c8={}){const _0x581d7d=a108_0x2ed8b0,_0x15f2ea=new Set([..._0x15b05a['activeSkillCodes']][_0x581d7d(0x114)](_0x1d4064=>_0x1d4064[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)),_0x29d2c3=_0x15b05a[_0x581d7d(0x10f)]?new Set([..._0x15b05a['pruneSkillCodes']]['map'](_0x2ebe04=>_0x2ebe04[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)):undefined,_0x169cc7=_0x15b05a[_0x581d7d(0x12d)]??[_0x581d7d(0x108),_0x581d7d(0xf3)],_0x27dd17=resolve(getRuntimeSkillCacheRoot(_0x15b05a[_0x581d7d(0x12c)],_0x15b05a[_0x581d7d(0x120)],_0x13c0c8),safePathSegment(_0x15b05a[_0x581d7d(0x10b)],_0x581d7d(0x10b))),_0x3f3f1a=[];for(const _0x31fad2 of _0x169cc7){const _0x483e65=resolve(_0x27dd17,_0x31fad2);if(!existsSync(_0x483e65))continue;for(const _0xfcd05 of readdirSync(_0x483e65,{'withFileTypes':!![]})){if(!_0xfcd05[_0x581d7d(0x11e)]())continue;const _0x2dbe04=_0xfcd05[_0x581d7d(0x124)];if(_0x29d2c3&&!_0x29d2c3[_0x581d7d(0x119)](_0x2dbe04))continue;if(_0x15f2ea[_0x581d7d(0x119)](_0x2dbe04))continue;const _0x4c78b1=resolve(_0x483e65,_0x2dbe04),_0x5715be=readMetadataIfPresent(resolve(_0x4c78b1,METADATA_FILE));if(_0x5715be?.[_0x581d7d(0x10b)]!==_0x15b05a[_0x581d7d(0x10b)]||_0x5715be[_0x581d7d(0x11c)]!==_0x31fad2||_0x5715be[_0x581d7d(0x12e)]!==_0x2dbe04){_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0xf2)});continue;}if(isLinkedFromAnyRoot(_0x4c78b1,_0x15b05a[_0x581d7d(0x113)]??[])){_0x3f3f1a[_0x581d7d(0xf8)]({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0x117)});continue;}removeSync(_0x4c78b1),_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x107)});}}return _0x3f3f1a;}function a108_0x19d7(){const _0x102cbc=['unchanged','38094eekIXA','updated','2495395TzFUNR','managedRoot','lovrabet','dir','571420RgKgGI','created','removed','personal','not-managed-symlink','skipped','appCode','296MCtyoD','1260012KVLntK','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','pruneSkillCodes','builtin','validation','skillRoots','protectedLinkRoots','map','54gLZcJS','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','linked-from-protected-root','agentsSkillsDir','has','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','trim','scope','secret-retriever','isDirectory','skill','accessKey','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','metadataPath','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','name','180390xqywQX','startsWith','get','1007910WYHomN','702836iLjDtO','project','values','env','scopes','skillCode','metadata-mismatch','company','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','length','isSymbolicLink','push','1WOvwpI','slice','external-symlink','filter','contentHash'];a108_0x19d7=function(){return _0x102cbc;};return a108_0x19d7();}function a108_0x4a3b(_0xa531e4,_0x1b19c5){_0xa531e4=_0xa531e4-0xf2;const _0x19d7e3=a108_0x19d7();let _0x4a3bc3=_0x19d7e3[_0xa531e4];return _0x4a3bc3;}export function linkGlobalRuntimeSkills(_0x535552,_0x191811={}){const _0x1adcbe=a108_0x2ed8b0,_0x5cf66d=resolveSkillSyncPaths(_0x191811),_0x545de0=[];for(const _0x2b9291 of _0x535552){if(_0x2b9291[_0x1adcbe(0x11c)]!==_0x1adcbe(0x110))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x2b9291[_0x1adcbe(0x11c)]);const _0x52b9db=requireSkillCode(_0x2b9291[_0x1adcbe(0x11f)]),_0x598555=copyManagedSkillDirectory(_0x2b9291[_0x1adcbe(0x104)],resolve(_0x5cf66d[_0x1adcbe(0x118)],_0x52b9db));_0x545de0[_0x1adcbe(0xf8)]({..._0x598555,'contentHash':_0x2b9291[_0x1adcbe(0xfd)]});}return _0x545de0;}function ensureManagedSymlink(_0x23e405,_0x22bbf1,_0x388867,_0x1e4b7c){const _0x43475d=a108_0x2ed8b0;mkdirSync(dirname(_0x23e405),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x23e405)||isDanglingSymlink(_0x23e405)){const _0x536abf=lstatSync(_0x23e405);if(!_0x536abf[_0x43475d(0xf7)]())throw CliErrors['validation'](_0x43475d(0xf5)+_0x23e405);const _0x2ff349=resolveSymlinkTarget(_0x23e405);if(!isPathInside(realOrResolved(_0x2ff349),realOrResolved(_0x388867['managedRoot'])))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x10e)+_0x23e405);if(realOrResolved(_0x2ff349)===realOrResolved(_0x22bbf1))return{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0xfe)};const _0x3f3342=readMetadataIfPresent(resolve(_0x2ff349,METADATA_FILE));if(_0x388867['scope']===_0x43475d(0x12a)&&(_0x3f3342?.[_0x43475d(0x10b)]!==_0x388867[_0x43475d(0x10b)]||_0x3f3342[_0x43475d(0x12e)]!==_0x1e4b7c))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x121)+_0x23e405);return unlinkSync(_0x23e405),symlinkSync(_0x22bbf1,_0x23e405,'dir'),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x100)};}return symlinkSync(_0x22bbf1,_0x23e405,_0x43475d(0x104)),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x106)};}function managedTargetSkillLinkPaths(_0x58646c,_0x5a189f){const _0x5bc2ef=a108_0x2ed8b0;if(!existsSync(_0x58646c))return[];const _0x4da635=_0x5a189f[_0x5bc2ef(0x10b)]+'--';return readdirSync(_0x58646c,{'withFileTypes':!![]})['filter'](_0x92575c=>_0x5a189f[_0x5bc2ef(0x11c)]===_0x5bc2ef(0x12a)||_0x92575c['name'][_0x5bc2ef(0x126)](_0x4da635))[_0x5bc2ef(0x114)](_0x3b3f02=>resolve(_0x58646c,_0x3b3f02[_0x5bc2ef(0x124)]));}function removeManagedSkillLink(_0x3834db,_0x28266a,_0x5c4617){const _0x39b0bb=a108_0x2ed8b0,_0x630a8a=lstatIfPresent(_0x3834db);if(!_0x630a8a?.['isSymbolicLink']())return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0x109)};const _0x204879=resolveSymlinkTarget(_0x3834db);if(!isPathInside(realOrResolved(_0x204879),realOrResolved(_0x28266a[_0x39b0bb(0x102)])))return{'path':_0x3834db,'action':'skipped','reason':_0x39b0bb(0xfb)};const _0xa3e93b=readMetadataIfPresent(resolve(_0x204879,METADATA_FILE));if(_0x28266a[_0x39b0bb(0x11c)]===_0x39b0bb(0x12a)&&(_0xa3e93b?.[_0x39b0bb(0x10b)]!==_0x28266a[_0x39b0bb(0x10b)]||_0xa3e93b['skillCode']!==_0x5c4617))return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0xf2)};return unlinkSync(_0x3834db),{'path':_0x3834db,'action':_0x39b0bb(0x107)};}function isLinkedFromAnyRoot(_0x2c3a73,_0x57e735){const _0x138833=realOrResolved(_0x2c3a73);for(const _0x2e20b5 of _0x57e735){if(!existsSync(_0x2e20b5))continue;for(const _0x32828d of readdirSync(_0x2e20b5,{'withFileTypes':!![]})){if(!_0x32828d['isSymbolicLink']())continue;const _0x209f7a=resolve(_0x2e20b5,_0x32828d['name']);if(realOrResolved(resolveSymlinkTarget(_0x209f7a))===_0x138833)return!![];}}return![];}function runtimeSkillLinkName(_0x51c760,_0x50f7d8){const _0x5877c9=a108_0x2ed8b0,_0x216bb5=safePathSegment(_0x50f7d8,_0x5877c9(0x12e));if(_0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)&&RESERVED_PROJECT_SKILL_CODES[_0x5877c9(0x119)](_0x216bb5))throw CliErrors[_0x5877c9(0x111)](_0x5877c9(0x116)+_0x216bb5);return _0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)?_0x216bb5:_0x51c760[_0x5877c9(0x10b)]+'--'+_0x216bb5;}function runtimeSkillCodeFromLink(_0x3f8f71,_0x1ec9e7){const _0x1d6a01=a108_0x2ed8b0,_0x5e37b3=basename(_0x1ec9e7);return _0x3f8f71['scope']===_0x1d6a01(0x12a)?_0x5e37b3:_0x5e37b3[_0x1d6a01(0xfa)]((_0x3f8f71['appCode']+'--')[_0x1d6a01(0xf6)]);}export function copyManagedSkillDirectory(_0x21635d,_0x34dc4a){const _0x54adf2=a108_0x2ed8b0,_0x1c906d=resolve(_0x34dc4a,METADATA_FILE),_0x1f11df=existsSync(_0x34dc4a);if(_0x1f11df){const _0x4768c6=lstatSync(_0x34dc4a);if(_0x4768c6['isSymbolicLink']())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0xf4)+_0x34dc4a);if(!_0x4768c6[_0x54adf2(0x11e)]())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0x123)+_0x34dc4a);const _0x3703ce=readMetadataIfPresent(_0x1c906d);if(_0x3703ce?.[_0x54adf2(0x11c)]!==_0x54adf2(0x110))throw CliErrors['validation'](_0x54adf2(0x11a)+_0x34dc4a);}ensureDirSync(dirname(_0x34dc4a));const _0x31ca2a=_0x1f11df?readMetadataIfPresent(_0x1c906d)?.[_0x54adf2(0xfd)]:undefined,_0x14b2b1=readMetadataIfPresent(resolve(_0x21635d,METADATA_FILE))?.['contentHash'];return _0x1f11df&&removeSync(_0x34dc4a),copySkillDirectory(_0x21635d,_0x34dc4a),{'path':_0x34dc4a,'target':_0x21635d,'action':!_0x1f11df?_0x54adf2(0x106):_0x31ca2a===_0x14b2b1?_0x54adf2(0xfe):'updated'};}function copySkillDirectory(_0x5d3535,_0x236036){copySync(_0x5d3535,_0x236036,{'dereference':![],'overwrite':!![],'filter'(_0x4fd411){const _0x1735ab=a108_0x4a3b;if(lstatSync(_0x4fd411)[_0x1735ab(0xf7)]())throw CliErrors[_0x1735ab(0x111)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x4fd411);return!![];}});}
|
|
1
|
+
const a108_0x868413=a108_0x2745;(function(_0x16b310,_0x279096){const _0x31baec=a108_0x2745,_0x4c4b68=_0x16b310();while(!![]){try{const _0x5af11c=parseInt(_0x31baec(0x13c))/0x1+parseInt(_0x31baec(0x14e))/0x2*(-parseInt(_0x31baec(0x143))/0x3)+-parseInt(_0x31baec(0x12a))/0x4+parseInt(_0x31baec(0x155))/0x5*(parseInt(_0x31baec(0x120))/0x6)+-parseInt(_0x31baec(0x147))/0x7*(-parseInt(_0x31baec(0x150))/0x8)+-parseInt(_0x31baec(0x14a))/0x9*(-parseInt(_0x31baec(0x11c))/0xa)+parseInt(_0x31baec(0x14f))/0xb*(-parseInt(_0x31baec(0x145))/0xc);if(_0x5af11c===_0x279096)break;else _0x4c4b68['push'](_0x4c4b68['shift']());}catch(_0x1382b9){_0x4c4b68['push'](_0x4c4b68['shift']());}}}(a108_0x5a4d,0xc810b));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x298422 from'fs-extra';import{CliErrors}from'../../errors.js';function a108_0x5a4d(){const _0x499fad=['updated','name','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','runtime-observe','6437052OXSQju','dir','scope','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','length','isDirectory','trim','agentsSkillsDir','scopes','accessKey','values','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','startsWith','get','appCode','skipped','skillCode','skillRoots','253542XnUuMv','removed','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','filter','activeSkillCodes','skill','has','3pYBJqP','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','6252keRusZ','slice','553IfKcoB','metadata-mismatch','protectedLinkRoots','10034127cSRWgC','set','contentHash','isSymbolicLink','400042RAoiDf','25311TWXooV','108488nnCOXc','builtin','map','push','linked-from-protected-root','620OLXDsZ','created','managedRoot','10NrVCkX','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','metadataPath','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','67152OdmNVZ','secret-retriever','pruneSkillCodes','validation','personal','project'];a108_0x5a4d=function(){return _0x499fad;};return a108_0x5a4d();}import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a108_0x2745(_0x3e22ac,_0x5df5f9){_0x3e22ac=_0x3e22ac-0x11a;const _0x5a4dc7=a108_0x5a4d();let _0x2745d3=_0x5a4dc7[_0x3e22ac];return _0x2745d3;}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x298422,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a108_0x868413(0x129),a108_0x868413(0x121)]);export function linkEffectiveRuntimeSkills(_0x1f9cbd,_0x22f7a2){const _0x406176=a108_0x868413,_0x423ba0=new Map();for(const _0x1b3e12 of _0x1f9cbd){const _0x44e6c6=_0x1b3e12[_0x406176(0x141)][_0x406176(0x13a)];if(!_0x44e6c6)continue;const _0xceead5=_0x423ba0[_0x406176(0x137)](_0x44e6c6);(!_0xceead5||_0x1b3e12['scope']===_0x406176(0x124))&&_0x423ba0[_0x406176(0x14b)](_0x44e6c6,_0x1b3e12);}const _0xf4719b=[];for(const _0x21a5fe of _0x423ba0[_0x406176(0x134)]()){const _0x435ff6=requireSkillCode(_0x21a5fe[_0x406176(0x141)]),_0x1a21f3=readMetadataIfPresent(_0x21a5fe[_0x406176(0x11e)]);if(_0x1a21f3?.[_0x406176(0x138)]!==_0x22f7a2[_0x406176(0x138)]||_0x1a21f3[_0x406176(0x13a)]!==_0x435ff6)throw CliErrors['validation']('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x22f7a2[_0x406176(0x138)]+':\x20'+_0x21a5fe['metadataPath']);const _0x43be91=runtimeSkillLinkName(_0x22f7a2,_0x435ff6);for(const _0x5349f2 of _0x22f7a2[_0x406176(0x13b)]){_0xf4719b[_0x406176(0x153)](ensureManagedSymlink(resolve(_0x5349f2,_0x43be91),_0x21a5fe[_0x406176(0x12b)],_0x22f7a2,_0x435ff6));}}return _0xf4719b;}export function pruneStaleRuntimeSkillLinks(_0x584b27,_0x305833,_0x4bd4de){const _0x56b64c=a108_0x868413,_0x591f02=new Set([..._0x305833][_0x56b64c(0x152)](_0x55a4f6=>_0x55a4f6[_0x56b64c(0x130)]())[_0x56b64c(0x13f)](Boolean)),_0x2a3310=_0x4bd4de?new Set([..._0x4bd4de]['map'](_0x1b9d05=>_0x1b9d05[_0x56b64c(0x130)]())[_0x56b64c(0x13f)](Boolean)):undefined,_0x4162f4=[];for(const _0x577d6b of _0x584b27[_0x56b64c(0x13b)]){for(const _0xfe3852 of managedTargetSkillLinkPaths(_0x577d6b,_0x584b27)){const _0x5aa16c=runtimeSkillCodeFromLink(_0x584b27,_0xfe3852);if(_0x2a3310&&!_0x2a3310['has'](_0x5aa16c))continue;if(_0x591f02[_0x56b64c(0x142)](_0x5aa16c))continue;_0x4162f4[_0x56b64c(0x153)](removeManagedSkillLink(_0xfe3852,_0x584b27,_0x5aa16c));}}return _0x4162f4;}export function pruneStaleRuntimeSkillCache(_0x3f06f9,_0x1b04db={}){const _0x45d047=a108_0x868413,_0x2c5c02=new Set([..._0x3f06f9[_0x45d047(0x140)]]['map'](_0x23d3d9=>_0x23d3d9[_0x45d047(0x130)]())[_0x45d047(0x13f)](Boolean)),_0x94827c=_0x3f06f9['pruneSkillCodes']?new Set([..._0x3f06f9[_0x45d047(0x122)]][_0x45d047(0x152)](_0x1d943a=>_0x1d943a['trim']())[_0x45d047(0x13f)](Boolean)):undefined,_0x5425d6=_0x3f06f9[_0x45d047(0x132)]??[_0x45d047(0x124),'company'],_0x477ac4=resolve(getRuntimeSkillCacheRoot(_0x3f06f9['env'],_0x3f06f9[_0x45d047(0x133)],_0x1b04db),safePathSegment(_0x3f06f9['appCode'],'appCode')),_0x3f871c=[];for(const _0x1130b2 of _0x5425d6){const _0x33b526=resolve(_0x477ac4,_0x1130b2);if(!existsSync(_0x33b526))continue;for(const _0x2c3fc1 of readdirSync(_0x33b526,{'withFileTypes':!![]})){if(!_0x2c3fc1['isDirectory']())continue;const _0x1c1a51=_0x2c3fc1[_0x45d047(0x127)];if(_0x94827c&&!_0x94827c[_0x45d047(0x142)](_0x1c1a51))continue;if(_0x2c5c02[_0x45d047(0x142)](_0x1c1a51))continue;const _0x35169d=resolve(_0x33b526,_0x1c1a51),_0x1a4c7e=readMetadataIfPresent(resolve(_0x35169d,METADATA_FILE));if(_0x1a4c7e?.[_0x45d047(0x138)]!==_0x3f06f9['appCode']||_0x1a4c7e[_0x45d047(0x12c)]!==_0x1130b2||_0x1a4c7e['skillCode']!==_0x1c1a51){_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x139),'reason':_0x45d047(0x148)});continue;}if(isLinkedFromAnyRoot(_0x35169d,_0x3f06f9[_0x45d047(0x149)]??[])){_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x139),'reason':_0x45d047(0x154)});continue;}removeSync(_0x35169d),_0x3f871c[_0x45d047(0x153)]({'path':_0x35169d,'action':_0x45d047(0x13d)});}}return _0x3f871c;}export function linkGlobalRuntimeSkills(_0x247f08,_0x5f232b={}){const _0x4bcd61=a108_0x868413,_0x42fce2=resolveSkillSyncPaths(_0x5f232b),_0x20e49d=[];for(const _0x2dd1f1 of _0x247f08){if(_0x2dd1f1['scope']!=='builtin')throw CliErrors[_0x4bcd61(0x123)](_0x4bcd61(0x11f)+_0x2dd1f1[_0x4bcd61(0x12c)]);const _0x4c1542=requireSkillCode(_0x2dd1f1[_0x4bcd61(0x141)]),_0x107057=copyManagedSkillDirectory(_0x2dd1f1[_0x4bcd61(0x12b)],resolve(_0x42fce2[_0x4bcd61(0x131)],_0x4c1542));_0x20e49d[_0x4bcd61(0x153)]({..._0x107057,'contentHash':_0x2dd1f1[_0x4bcd61(0x14c)]});}return _0x20e49d;}function ensureManagedSymlink(_0xb81b16,_0x251719,_0x9381e2,_0x112124){const _0x2e1c04=a108_0x868413;mkdirSync(dirname(_0xb81b16),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xb81b16)||isDanglingSymlink(_0xb81b16)){const _0x5843d2=lstatSync(_0xb81b16);if(!_0x5843d2[_0x2e1c04(0x14d)]())throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x144)+_0xb81b16);const _0x802803=resolveSymlinkTarget(_0xb81b16);if(!isPathInside(realOrResolved(_0x802803),realOrResolved(_0x9381e2[_0x2e1c04(0x11b)])))throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x11d)+_0xb81b16);if(realOrResolved(_0x802803)===realOrResolved(_0x251719))return{'path':_0xb81b16,'target':_0x251719,'action':'unchanged'};const _0x49e27f=readMetadataIfPresent(resolve(_0x802803,METADATA_FILE));if(_0x9381e2[_0x2e1c04(0x12c)]===_0x2e1c04(0x125)&&(_0x49e27f?.['appCode']!==_0x9381e2[_0x2e1c04(0x138)]||_0x49e27f['skillCode']!==_0x112124))throw CliErrors[_0x2e1c04(0x123)](_0x2e1c04(0x135)+_0xb81b16);return unlinkSync(_0xb81b16),symlinkSync(_0x251719,_0xb81b16,'dir'),{'path':_0xb81b16,'target':_0x251719,'action':_0x2e1c04(0x126)};}return symlinkSync(_0x251719,_0xb81b16,_0x2e1c04(0x12b)),{'path':_0xb81b16,'target':_0x251719,'action':'created'};}function managedTargetSkillLinkPaths(_0x2b46e6,_0x4577af){const _0x553248=a108_0x868413;if(!existsSync(_0x2b46e6))return[];const _0x5f0d10=_0x4577af['appCode']+'--';return readdirSync(_0x2b46e6,{'withFileTypes':!![]})[_0x553248(0x13f)](_0x87b3c2=>_0x4577af[_0x553248(0x12c)]===_0x553248(0x125)||_0x87b3c2[_0x553248(0x127)][_0x553248(0x136)](_0x5f0d10))[_0x553248(0x152)](_0x43c06f=>resolve(_0x2b46e6,_0x43c06f[_0x553248(0x127)]));}function removeManagedSkillLink(_0x104c0d,_0x4ff4a5,_0x7e391a){const _0x4b6e18=a108_0x868413,_0x2643ac=lstatIfPresent(_0x104c0d);if(!_0x2643ac?.[_0x4b6e18(0x14d)]())return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':'not-managed-symlink'};const _0x445fa3=resolveSymlinkTarget(_0x104c0d);if(!isPathInside(realOrResolved(_0x445fa3),realOrResolved(_0x4ff4a5[_0x4b6e18(0x11b)])))return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':'external-symlink'};const _0x19f0bc=readMetadataIfPresent(resolve(_0x445fa3,METADATA_FILE));if(_0x4ff4a5[_0x4b6e18(0x12c)]===_0x4b6e18(0x125)&&(_0x19f0bc?.[_0x4b6e18(0x138)]!==_0x4ff4a5[_0x4b6e18(0x138)]||_0x19f0bc[_0x4b6e18(0x13a)]!==_0x7e391a))return{'path':_0x104c0d,'action':_0x4b6e18(0x139),'reason':_0x4b6e18(0x148)};return unlinkSync(_0x104c0d),{'path':_0x104c0d,'action':_0x4b6e18(0x13d)};}function isLinkedFromAnyRoot(_0x94b49,_0x3f662d){const _0x477d70=a108_0x868413,_0x4b21af=realOrResolved(_0x94b49);for(const _0x2f73ad of _0x3f662d){if(!existsSync(_0x2f73ad))continue;for(const _0x4738d9 of readdirSync(_0x2f73ad,{'withFileTypes':!![]})){if(!_0x4738d9[_0x477d70(0x14d)]())continue;const _0x8b660a=resolve(_0x2f73ad,_0x4738d9[_0x477d70(0x127)]);if(realOrResolved(resolveSymlinkTarget(_0x8b660a))===_0x4b21af)return!![];}}return![];}function runtimeSkillLinkName(_0x45ef08,_0x22a3f5){const _0x4a97ff=a108_0x868413,_0x4e00b6=safePathSegment(_0x22a3f5,_0x4a97ff(0x13a));if(_0x45ef08['scope']===_0x4a97ff(0x125)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x4e00b6))throw CliErrors[_0x4a97ff(0x123)](_0x4a97ff(0x12d)+_0x4e00b6);return _0x45ef08[_0x4a97ff(0x12c)]===_0x4a97ff(0x125)?_0x4e00b6:_0x45ef08[_0x4a97ff(0x138)]+'--'+_0x4e00b6;}function runtimeSkillCodeFromLink(_0x1c3d06,_0x168987){const _0x31cf02=a108_0x868413,_0x1f6f8c=basename(_0x168987);return _0x1c3d06['scope']===_0x31cf02(0x125)?_0x1f6f8c:_0x1f6f8c[_0x31cf02(0x146)]((_0x1c3d06[_0x31cf02(0x138)]+'--')[_0x31cf02(0x12e)]);}export function copyManagedSkillDirectory(_0x3375fc,_0x1ceb3e){const _0x58249a=a108_0x868413,_0x250046=resolve(_0x1ceb3e,METADATA_FILE),_0x3393bb=existsSync(_0x1ceb3e);if(_0x3393bb){const _0x59a046=lstatSync(_0x1ceb3e);if(_0x59a046[_0x58249a(0x14d)]())throw CliErrors[_0x58249a(0x123)](_0x58249a(0x13e)+_0x1ceb3e);if(!_0x59a046[_0x58249a(0x12f)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x1ceb3e);const _0x2fd507=readMetadataIfPresent(_0x250046);if(_0x2fd507?.['scope']!==_0x58249a(0x151))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x1ceb3e);}ensureDirSync(dirname(_0x1ceb3e));const _0x58deaa=_0x3393bb?readMetadataIfPresent(_0x250046)?.[_0x58249a(0x14c)]:undefined,_0x4c52fe=readMetadataIfPresent(resolve(_0x3375fc,METADATA_FILE))?.[_0x58249a(0x14c)];return _0x3393bb&&removeSync(_0x1ceb3e),copySkillDirectory(_0x3375fc,_0x1ceb3e),{'path':_0x1ceb3e,'target':_0x3375fc,'action':!_0x3393bb?_0x58249a(0x11a):_0x58deaa===_0x4c52fe?'unchanged':'updated'};}function copySkillDirectory(_0x2109d1,_0x4131d1){copySync(_0x2109d1,_0x4131d1,{'dereference':![],'overwrite':!![],'filter'(_0x3b0cff){const _0x5ed939=a108_0x2745;if(lstatSync(_0x3b0cff)[_0x5ed939(0x14d)]())throw CliErrors[_0x5ed939(0x123)](_0x5ed939(0x128)+_0x3b0cff);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a109_0x1f42(){const _0xcf6aab=['localeCompare','41714qPYwqt','\x20!=\x20','project','3012490kMELYC','50PPFEDq','cache','push','5159128RAIFej','trim','local','3486654KlCyTc','appCode','map','source','skillMdPath','includes','env','7748860mrMrpt','2286612JunmGm','isDirectory','linkedPath','name','builtin','dir','metadataPath','startsWith','code','linkedPaths','skillCode','isSymbolicLink','tags','sort','from','isArray','set','13775872CXoXAL','has','values','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','validation','filter','scope'];a109_0x1f42=function(){return _0xcf6aab;};return a109_0x1f42();}(function(_0x1b9b5e,_0x3169dc){const _0xd3affa=a109_0x382a,_0x33d202=_0x1b9b5e();while(!![]){try{const _0x37ef41=parseInt(_0xd3affa(0x12a))/0x1*(-parseInt(_0xd3affa(0x103))/0x2)+parseInt(_0xd3affa(0x109))/0x3+-parseInt(_0xd3affa(0x106))/0x4+-parseInt(_0xd3affa(0x102))/0x5+-parseInt(_0xd3affa(0x111))/0x6+parseInt(_0xd3affa(0x110))/0x7+parseInt(_0xd3affa(0x122))/0x8;if(_0x37ef41===_0x3169dc)break;else _0x33d202['push'](_0x33d202['shift']());}catch(_0x2730be){_0x33d202['push'](_0x33d202['shift']());}}}(a109_0x1f42,0xa4c86));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a109_0x382a(_0x433df9,_0x31fb9b){_0x433df9=_0x433df9-0x101;const _0x1f42e2=a109_0x1f42();let _0x382a0a=_0x1f42e2[_0x433df9];return _0x382a0a;}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';export function listLocalRuntimeSkills(_0x13b3ae,_0x2e9f9f,_0x4c6868={}){const _0x379797=a109_0x382a,_0x2e93e4=safePathSegment(_0x13b3ae[_0x379797(0x10a)],_0x379797(0x10a));if(_0x2e9f9f[_0x379797(0x10a)]!==_0x2e93e4)throw CliErrors[_0x379797(0x126)](_0x379797(0x125)+_0x2e9f9f[_0x379797(0x10a)]+_0x379797(0x12b)+_0x2e93e4);const _0x293504=normalizeRuntimeSkillScopes(_0x13b3ae['scopes']),_0x33e7c8=new Set(_0x293504),_0x24e98d=_0x13b3ae[_0x379797(0x119)]?.[_0x379797(0x107)](),_0x26588e=new Map(),_0x5c8779=resolve(getRuntimeSkillCacheRoot(_0x13b3ae[_0x379797(0x10f)],_0x13b3ae['accessKey'],_0x4c6868),_0x2e93e4);for(const _0x5136d8 of _0x293504){for(const _0x35672a of localSkillEntryDirs(resolve(_0x5c8779,_0x5136d8))){collectLocalRuntimeSkill(_0x26588e,_0x35672a,{'appCode':_0x2e93e4,'scopes':_0x33e7c8,'code':_0x24e98d,'source':_0x379797(0x104)});}}for(const _0x27d524 of _0x2e9f9f['skillRoots']){for(const _0x326ce2 of localSkillLinkCandidates(_0x27d524,_0x2e9f9f,_0x33e7c8)){collectLocalRuntimeSkill(_0x26588e,_0x326ce2,{'appCode':_0x2e93e4,'scopes':_0x33e7c8,'code':_0x24e98d,'source':'link','linkedPath':_0x326ce2});}}return Array[_0x379797(0x11f)](_0x26588e[_0x379797(0x124)]())[_0x379797(0x11e)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x41dee4){const _0x5c7c91=a109_0x382a;if(!existsSync(_0x41dee4))return[];return readdirSync(_0x41dee4,{'withFileTypes':!![]})[_0x5c7c91(0x127)](_0x10e6bd=>_0x10e6bd[_0x5c7c91(0x112)]()||_0x10e6bd['isSymbolicLink']())['map'](_0x4e1995=>resolve(_0x41dee4,_0x4e1995['name']));}function localSkillLinkCandidates(_0x56dc96,_0x1ec17,_0x40cc46){const _0x112908=a109_0x382a;if(!existsSync(_0x56dc96))return[];const _0x22b74c=_0x1ec17[_0x112908(0x10a)]+'--';return readdirSync(_0x56dc96,{'withFileTypes':!![]})['filter'](_0xfdee7=>_0xfdee7['isDirectory']()||_0xfdee7[_0x112908(0x11c)]())[_0x112908(0x127)](_0x10b3cb=>_0x1ec17[_0x112908(0x128)]===_0x112908(0x101)||_0x10b3cb[_0x112908(0x114)][_0x112908(0x118)](_0x22b74c)||_0x40cc46[_0x112908(0x123)](_0x112908(0x115)))[_0x112908(0x10b)](_0xac7852=>resolve(_0x56dc96,_0xac7852[_0x112908(0x114)]));}function collectLocalRuntimeSkill(_0x5f0393,_0x51a242,_0x116865){const _0x3f7283=a109_0x382a,_0x5a80f9=resolve(_0x51a242,METADATA_FILE),_0x5878c7=readMetadataIfPresent(_0x5a80f9);if(!_0x5878c7)return;if(_0x5878c7[_0x3f7283(0x10a)]!==_0x116865[_0x3f7283(0x10a)])return;if(!isRuntimeSkillScope(_0x5878c7[_0x3f7283(0x128)])||!_0x116865['scopes'][_0x3f7283(0x123)](_0x5878c7[_0x3f7283(0x128)]))return;const _0x69c571=_0x5878c7['skillCode']?.['trim']();if(!_0x69c571)return;if(_0x116865[_0x3f7283(0x119)]&&_0x69c571!==_0x116865[_0x3f7283(0x119)])return;const _0x42ec37=_0x5878c7[_0x3f7283(0x128)]+':'+_0x69c571,_0x52192a=_0x116865['linkedPath']?[_0x116865[_0x3f7283(0x113)]]:[],_0x199a18=_0x5f0393['get'](_0x42ec37);if(_0x199a18){_0x116865[_0x3f7283(0x10c)]===_0x3f7283(0x104)&&(_0x199a18['dir']=_0x51a242,_0x199a18['cacheDir']=_0x51a242,_0x199a18[_0x3f7283(0x10d)]=resolve(_0x51a242,SKILL_FILE),_0x199a18[_0x3f7283(0x117)]=_0x5a80f9);for(const _0x4be109 of _0x52192a){!_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x10e)](_0x4be109)&&_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x105)](_0x4be109);}_0x199a18[_0x3f7283(0x11a)][_0x3f7283(0x11e)]();return;}_0x5f0393[_0x3f7283(0x121)](_0x42ec37,{..._0x5878c7,'tags':Array[_0x3f7283(0x120)](_0x5878c7[_0x3f7283(0x11d)])?_0x5878c7[_0x3f7283(0x11d)]:[],'scope':_0x5878c7[_0x3f7283(0x128)],'source':_0x3f7283(0x108),'dir':_0x51a242,'cacheDir':_0x116865['source']===_0x3f7283(0x104)?_0x51a242:undefined,'skillMdPath':resolve(_0x51a242,SKILL_FILE),'metadataPath':_0x5a80f9,'linkedPaths':_0x52192a});}function compareLocalRuntimeSkills(_0x56aaea,_0x2f0b45){const _0x4bacde=a109_0x382a,_0x5beb5f={'personal':0x0,'company':0x1,'builtin':0x2};return _0x5beb5f[_0x56aaea[_0x4bacde(0x128)]]-_0x5beb5f[_0x2f0b45[_0x4bacde(0x128)]]||_0x56aaea[_0x4bacde(0x11b)][_0x4bacde(0x129)](_0x2f0b45[_0x4bacde(0x11b)])||_0x56aaea['dir'][_0x4bacde(0x129)](_0x2f0b45[_0x4bacde(0x116)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a8231,_0x4a757c){const _0x104a12=a110_0x395a,_0x43ccbe=_0x4a8231();while(!![]){try{const _0x4166ea=parseInt(_0x104a12(0x124))/0x1+-parseInt(_0x104a12(0x104))/0x2*(-parseInt(_0x104a12(0x10d))/0x3)+-parseInt(_0x104a12(0x106))/0x4*(-parseInt(_0x104a12(0x10e))/0x5)+-parseInt(_0x104a12(0x11b))/0x6+parseInt(_0x104a12(0x117))/0x7+parseInt(_0x104a12(0x123))/0x8*(parseInt(_0x104a12(0x101))/0x9)+-parseInt(_0x104a12(0x10c))/0xa*(parseInt(_0x104a12(0x12a))/0xb);if(_0x4166ea===_0x4a757c)break;else _0x43ccbe['push'](_0x43ccbe['shift']());}catch(_0x5e58ec){_0x43ccbe['push'](_0x43ccbe['shift']());}}}(a110_0x2d07,0x50154));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x4e666e){const _0x199936=a110_0x395a;return _0x4e666e['bytes']??Buffer[_0x199936(0x112)](_0x4e666e[_0x199936(0x10b)]??'','utf8');}export function fileText(_0x3444ee){const _0x4bfb78=a110_0x395a;return fileContent(_0x3444ee)[_0x4bfb78(0x126)](_0x4bfb78(0x110));}export function normalizeLocalFiles(_0x222502){const _0x48dc06=a110_0x395a;if(!Array[_0x48dc06(0x109)](_0x222502)||_0x222502[_0x48dc06(0x113)]===0x0)return[];const _0x4e1e21=new Map();for(const _0x5cf978 of _0x222502){if(!_0x5cf978||typeof _0x5cf978!=='object'||typeof _0x5cf978[_0x48dc06(0x11a)]!==_0x48dc06(0x119))throw CliErrors[_0x48dc06(0x10a)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x50427a=normalizeSkillRelativePath(_0x5cf978[_0x48dc06(0x11a)]);if(_0x4e1e21[_0x48dc06(0x11f)](_0x50427a))throw CliErrors[_0x48dc06(0x10a)](_0x48dc06(0x102)+_0x50427a);if(_0x5cf978[_0x48dc06(0x127)]!==undefined&&!Buffer[_0x48dc06(0x125)](_0x5cf978[_0x48dc06(0x127)]))throw CliErrors['validation'](_0x48dc06(0x10f)+_0x50427a);if(_0x5cf978['bytes']===undefined&&typeof _0x5cf978['content']!=='string')throw CliErrors['validation']('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x50427a);const _0x5112d2=fileContent(_0x5cf978);_0x4e1e21[_0x48dc06(0x103)](_0x50427a,{'path':_0x50427a,'bytes':_0x5112d2});}return Array['from'](_0x4e1e21[_0x48dc06(0x108)]())[_0x48dc06(0x115)](compareSkillFiles);}export function normalizeManifestFiles(_0x1c5d7a){const _0x390500=a110_0x395a;if(!Array[_0x390500(0x109)](_0x1c5d7a)||_0x1c5d7a['length']===0x0)return[];const _0x269384=new Map();for(const _0xd85fdf of _0x1c5d7a){if(!_0xd85fdf||typeof _0xd85fdf!=='object'||typeof _0xd85fdf[_0x390500(0x11a)]!==_0x390500(0x119))throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x98086e=normalizeSkillRelativePath(_0xd85fdf['path']);if(_0x269384[_0x390500(0x11f)](_0x98086e))throw CliErrors[_0x390500(0x10a)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x98086e);if(!isSha256Hex(_0xd85fdf[_0x390500(0x12b)]))throw CliErrors[_0x390500(0x10a)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x98086e);if(!Number[_0x390500(0x121)](_0xd85fdf['size'])||_0xd85fdf[_0x390500(0x111)]<0x0)throw CliErrors[_0x390500(0x10a)]('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x98086e);_0x269384[_0x390500(0x103)](_0x98086e,{'path':_0x98086e,'sha256':_0xd85fdf[_0x390500(0x12b)][_0x390500(0x120)](),'size':_0xd85fdf[_0x390500(0x111)]});}return Array[_0x390500(0x112)](_0x269384['values']())[_0x390500(0x115)](compareSkillFiles);}export function scanSkillDirectory(_0x4443a4){const _0x1a6588=realpathSync(_0x4443a4),_0x2f8983=[];function _0x29bea0(_0x2562f0){const _0x1f3eda=a110_0x395a,_0x28c532=readdirSync(_0x2562f0,{'withFileTypes':!![]})[_0x1f3eda(0x115)]((_0x3c768a,_0x5a0654)=>_0x3c768a[_0x1f3eda(0x105)][_0x1f3eda(0x114)](_0x5a0654[_0x1f3eda(0x105)]));for(const _0x10c1aa of _0x28c532){if(_0x10c1aa[_0x1f3eda(0x129)]()&&IGNORED_DIR_NAMES[_0x1f3eda(0x11f)](_0x10c1aa['name']))continue;if(IGNORED_FILE_NAMES[_0x1f3eda(0x11f)](_0x10c1aa['name']))continue;const _0x3f585f=resolve(_0x2562f0,_0x10c1aa[_0x1f3eda(0x105)]);if(_0x10c1aa['isSymbolicLink']())throw CliErrors[_0x1f3eda(0x10a)](_0x1f3eda(0x11c)+_0x3f585f);const _0x18cb3d=toPosixPath(relative(_0x1a6588,_0x3f585f));if(_0x10c1aa['isDirectory']()){_0x29bea0(_0x3f585f);continue;}if(!_0x10c1aa[_0x1f3eda(0x128)]())continue;validateSkillRelativePath(_0x18cb3d);const _0x2d3448=readFileSync(_0x3f585f);_0x2f8983[_0x1f3eda(0x107)]({'path':_0x18cb3d,'bytes':_0x2d3448});}}return _0x29bea0(_0x1a6588),normalizeLocalFiles(_0x2f8983);}export function compareSkillFiles(_0x44651e,_0x31b2c3){const _0x349aa2=a110_0x395a;if(_0x44651e['path']===SKILL_FILE)return _0x31b2c3[_0x349aa2(0x11a)]===SKILL_FILE?0x0:-0x1;if(_0x31b2c3[_0x349aa2(0x11a)]===SKILL_FILE)return 0x1;return Buffer[_0x349aa2(0x122)](Buffer[_0x349aa2(0x112)](_0x44651e[_0x349aa2(0x11a)],_0x349aa2(0x110)),Buffer['from'](_0x31b2c3['path'],_0x349aa2(0x110)));}export function normalizeSkillRelativePath(_0x29e3e9){const _0x2de65a=a110_0x395a,_0x24078f=toPosixPath(_0x29e3e9[_0x2de65a(0x116)]());return validateSkillRelativePath(_0x24078f),_0x24078f;}export function validateSkillRelativePath(_0x44b8a3){const _0x5006af=a110_0x395a;if(!_0x44b8a3||_0x44b8a3[_0x5006af(0x11d)]('/')||_0x44b8a3['includes']('//'))throw CliErrors[_0x5006af(0x10a)](_0x5006af(0x118)+_0x44b8a3);for(const _0x2e71c7 of _0x44b8a3['split']('/')){if(!_0x2e71c7||_0x2e71c7==='.'||_0x2e71c7==='..')throw CliErrors[_0x5006af(0x10a)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x44b8a3);}}function a110_0x395a(_0x4ab231,_0x18a558){_0x4ab231=_0x4ab231-0x101;const _0x2d0717=a110_0x2d07();let _0x395a7a=_0x2d0717[_0x4ab231];return _0x395a7a;}export function toPosixPath(_0xd8dbc3){const _0x48fa8a=a110_0x395a;return _0xd8dbc3[_0x48fa8a(0x11e)](/\\/g,'/');}function a110_0x2d07(){const _0x425f3a=['isBuffer','toString','bytes','isFile','isDirectory','5943377MlmJjJ','sha256','729klAqmY','Duplicate\x20Skill\x20file\x20path:\x20','set','92rMzVyr','name','1023904xsiYlj','push','values','isArray','validation','content','20MYRxcq','23469zQQbat','10wiCXEe','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','utf8','size','from','length','localeCompare','sort','trim','1262415xOkCpd','Unsafe\x20Skill\x20file\x20path:\x20','string','path','2458614nMZSeD','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','startsWith','replace','has','toLowerCase','isSafeInteger','compare','63664wDThVZ','121650ZKYlvK'];a110_0x2d07=function(){return _0x425f3a;};return a110_0x2d07();}export function isSha256Hex(_0x411427){const _0x47326a=a110_0x395a;return typeof _0x411427===_0x47326a(0x119)&&/^[a-fA-F0-9]{64}$/['test'](_0x411427);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e5f4a,_0x205169){const _0x2690c7=a111_0x5ed1,_0x2f07ce=_0x5e5f4a();while(!![]){try{const _0x1add1c=parseInt(_0x2690c7(0xd1))/0x1+parseInt(_0x2690c7(0xd9))/0x2+parseInt(_0x2690c7(0xdf))/0x3*(-parseInt(_0x2690c7(0xfb))/0x4)+parseInt(_0x2690c7(0xd6))/0x5+parseInt(_0x2690c7(0xf5))/0x6+-parseInt(_0x2690c7(0xd4))/0x7+parseInt(_0x2690c7(0xd7))/0x8*(-parseInt(_0x2690c7(0xe0))/0x9);if(_0x1add1c===_0x205169)break;else _0x2f07ce['push'](_0x2f07ce['shift']());}catch(_0x24fd62){_0x2f07ce['push'](_0x2f07ce['shift']());}}}(a111_0x5e60,0x3221b));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';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x3c7592,_0x221ece,_0x24cc5e){const _0x705441=a111_0x5ed1,_0x44e4c6=requireSkillCode(_0x3c7592),_0x20735f=requirePackageBytes(_0x44e4c6,_0x24cc5e[_0x705441(0xd5)]),_0x27fe9c=extractDownloadedPackage(_0x20735f),_0x5093f1=_0x27fe9c[_0x705441(0xed)](_0x3b9231=>_0x3b9231[_0x705441(0xee)]===SKILL_FILE);if(!_0x5093f1)throw CliErrors[_0x705441(0xe2)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x44e4c6);const _0x24bf51=withMaterializedSkillFrontmatter(_0x27fe9c,_0x3c7592,_0x44e4c6),_0x23b819=_0x24bf51[_0x705441(0xed)](_0x144da5=>_0x144da5[_0x705441(0xee)]===SKILL_FILE),_0xe3e375=fileText(_0x23b819),_0x376629=getRuntimeSkillDir(_0x24cc5e[_0x705441(0xda)],_0x24cc5e[_0x705441(0xf2)],_0x24cc5e['appCode'],_0x221ece,_0x44e4c6,_0x24cc5e['paths']),_0x17e480=resolve(_0x376629,SKILL_FILE),_0x5b7ac7=resolve(_0x376629,METADATA_FILE),_0x3404a2=contentHash(_0xe3e375),_0x2bc089=readMetadataIfPresent(_0x5b7ac7)?.[_0x705441(0xf6)];ensurePulledFilesCanBeOverwritten(_0x376629,_0x5b7ac7,_0x24bf51,_0x24cc5e[_0x705441(0xeb)]===!![]),mkdirSync(_0x376629,{'recursive':!![],'mode':0x1c0});const _0x17e881=existsSync(_0x17e480)?readFileSync(_0x17e480,_0x705441(0xe6)):undefined;return materializeFiles(_0x376629,_0x24bf51),removeStaleManagedFiles(_0x376629,_0x2bc089,_0x24bf51),writeJsonAtomic(_0x5b7ac7,buildMetadata(_0x3c7592,_0x221ece,_0x24cc5e['appCode'],_0x3404a2,_0x24cc5e[_0x705441(0xf9)],_0x24bf51,_0x20735f)),{'skill':_0x3c7592,'scope':_0x221ece,'dir':_0x376629,'skillMdPath':_0x17e480,'metadataPath':_0x5b7ac7,'contentHash':_0x3404a2,'changed':_0x17e881!==_0xe3e375};}function withMaterializedSkillFrontmatter(_0x4c74b1,_0x3b139a,_0x21cfa2){const _0x21b556=a111_0x5ed1,_0x54eee7=skillDisplayName(_0x3b139a,_0x21cfa2),_0x32bbfd=_0x3b139a[_0x21b556(0xf0)]?.[_0x21b556(0xe1)]()||_0x54eee7||_0x21cfa2;return normalizeLocalFiles(_0x4c74b1)[_0x21b556(0xe3)](_0xd90a97=>{const _0x4e8f8c=_0x21b556,_0x234375=fileText(_0xd90a97);if(_0xd90a97['path']!==SKILL_FILE)return _0xd90a97;if(hasYamlFrontmatter(_0x234375))return{'path':_0xd90a97['path'],'content':withSyncedDisplayName(_0x234375,_0x54eee7)};return{'path':_0xd90a97[_0x4e8f8c(0xee)],'content':prependSkillFrontmatter(_0x234375,{'name':_0x21cfa2,'displayName':_0x54eee7,'description':_0x32bbfd})};});}function hasYamlFrontmatter(_0x361711){const _0x5bf65d=a111_0x5ed1;return/^\uFEFF?---\s*\r?\n/[_0x5bf65d(0xdc)](_0x361711);}function a111_0x5ed1(_0x532f3a,_0x65ec73){_0x532f3a=_0x532f3a-0xcb;const _0x5e609f=a111_0x5e60();let _0x5ed1ab=_0x5e609f[_0x532f3a];return _0x5ed1ab;}function prependSkillFrontmatter(_0x56abf9,_0x1279f1){const _0x570ebd=a111_0x5ed1,_0x25dd5b=_0x56abf9[_0x570ebd(0xf3)](/^\uFEFF/,'');return[_0x570ebd(0xec),'name:\x20'+yamlString(_0x1279f1['name']),_0x1279f1[_0x570ebd(0xd8)]?_0x570ebd(0xf4)+yamlString(_0x1279f1[_0x570ebd(0xd8)]):undefined,_0x570ebd(0xf7)+yamlString(_0x1279f1[_0x570ebd(0xf0)]),_0x570ebd(0xec),'',_0x25dd5b][_0x570ebd(0xfd)](_0x43932a=>_0x43932a!==undefined)['join']('\x0a');}function yamlString(_0x463403){const _0x1fdf76=a111_0x5ed1;return JSON[_0x1fdf76(0xf1)](_0x463403[_0x1fdf76(0xf3)](/\r/g,'')[_0x1fdf76(0xe1)]());}function skillDisplayName(_0x10d677,_0x357cb2){const _0x4b0ed1=a111_0x5ed1,_0x3bfc81=_0x10d677[_0x4b0ed1(0x101)]?.[_0x4b0ed1(0xe1)]();return _0x3bfc81||_0x357cb2;}function withSyncedDisplayName(_0x3f4764,_0x578cb1){const _0x2678ce=a111_0x5ed1,_0x1ffd92=_0x3f4764[_0x2678ce(0xcd)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1ffd92)return _0x3f4764;const _0xc81e9a=_0x1ffd92[0x1]??'',_0x3505b9=_0x1ffd92[0x2]??'',_0x305ad5=parseDocument(_0x3505b9);if(_0x305ad5[_0x2678ce(0xea)][_0x2678ce(0xff)]>0x0||!isMap(_0x305ad5[_0x2678ce(0xde)]))return _0x3f4764;if(_0x578cb1)_0x305ad5[_0x2678ce(0xd2)](_0x2678ce(0xd8),_0x578cb1);else{if(_0x305ad5[_0x2678ce(0xd3)]('displayName'))_0x305ad5[_0x2678ce(0xcc)](_0x2678ce(0xd8));else return _0x3f4764;}forceBlockCollections(_0x305ad5[_0x2678ce(0xde)]);const _0x2ef273=_0x305ad5[_0x2678ce(0xdb)]({'lineWidth':0x0})[_0x2678ce(0xd0)](),_0x55595e=_0x3f4764[_0x2678ce(0xce)](_0x1ffd92[0x0]['length'])['replace'](/^\r?\n/,'');return _0xc81e9a+_0x2678ce(0x100)+_0x2ef273+_0x2678ce(0xe5)+_0x55595e;}function forceBlockCollections(_0x2b17d4){if(!isNode(_0x2b17d4))return;visit(_0x2b17d4,(_0x1fbbf4,_0x47b1ed)=>{const _0x5ebed0=a111_0x5ed1;isCollection(_0x47b1ed)&&(_0x47b1ed[_0x5ebed0(0xe7)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x30fe38,_0xe5ece6,_0x91a02b,_0x98edb9){const _0x4885dd=a111_0x5ed1;if(_0x98edb9||!existsSync(_0xe5ece6))return;const _0x32c069=readMetadataIfPresent(_0xe5ece6);if(!_0x32c069)return;const _0x50adb1=_0x32c069[_0x4885dd(0xf6)]&&Object[_0x4885dd(0xfe)](_0x32c069['fileHashes'])[_0x4885dd(0xff)]>0x0?_0x32c069[_0x4885dd(0xf6)]:undefined;if(_0x50adb1)for(const [_0x498407,_0x59aeb6]of Object[_0x4885dd(0xcf)](_0x50adb1)){const _0x5eba9c=resolveManagedFilePath(_0x30fe38,_0x498407);if(!existsSync(_0x5eba9c))throw CliErrors['validation'](_0x4885dd(0xf8)+_0x30fe38,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x498407);const _0x472f9e=lstatSync(_0x5eba9c);if(!_0x472f9e[_0x4885dd(0xe9)]())throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xe4)+_0x498407);const _0x8e8905=bufferSha256(readFileSync(_0x5eba9c));if(_0x8e8905!==_0x59aeb6)throw CliErrors['validation'](_0x4885dd(0xf8)+_0x30fe38+_0x4885dd(0xfa)+_0x498407,_0x4885dd(0xef)+_0x498407);}else{const _0x1745c1=resolve(_0x30fe38,SKILL_FILE);if(existsSync(_0x1745c1)&&_0x32c069[_0x4885dd(0xcb)]){const _0x19783b=contentHash(readFileSync(_0x1745c1,_0x4885dd(0xe6)));if(_0x19783b!==_0x32c069[_0x4885dd(0xcb)])throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xfc)+_0x1745c1,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0xf3cdb1 of normalizeLocalFiles(_0x91a02b)){if(_0x50adb1?.[_0xf3cdb1['path']])continue;if(!_0x50adb1&&_0xf3cdb1[_0x4885dd(0xee)]===SKILL_FILE)continue;const _0x2ed6b1=resolveManagedFilePath(_0x30fe38,_0xf3cdb1[_0x4885dd(0xee)]);if(!existsSync(_0x2ed6b1))continue;const _0x101a70=lstatSync(_0x2ed6b1);if(!_0x101a70[_0x4885dd(0xe9)]())throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xdd)+_0xf3cdb1[_0x4885dd(0xee)]);const _0x4240d0=bufferSha256(readFileSync(_0x2ed6b1));if(_0x4240d0!==fileHash(_0xf3cdb1))throw CliErrors[_0x4885dd(0xe2)](_0x4885dd(0xf8)+_0x30fe38,_0x4885dd(0xe8)+_0xf3cdb1['path']);}}function a111_0x5e60(){const _0xe3baa9=['Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','contents','3SXsUTG','246888mxsILi','trim','validation','map','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','\x0a---\x0a\x0a','utf8','flow','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','isFile','errors','force','---','find','path','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','description','stringify','accessKey','replace','displayName:\x20','953898ckvkJK','fileHashes','description:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','pulledAt','.\x20Changed\x20file:\x20','198428KwdtQO','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','filter','keys','length','---\x0a','skillName','contentHash','delete','match','slice','entries','trimEnd','138051EMwLcC','set','has','1711745EsywiA','packageBytes','674930rIjwMM','96MgVeoq','displayName','793290WzeAEl','env','toString','test'];a111_0x5e60=function(){return _0xe3baa9;};return a111_0x5e60();}function materializeFiles(_0x468f4a,_0xff60a4){const _0x1713cc=a111_0x5ed1;for(const _0x2fd334 of normalizeLocalFiles(_0xff60a4)){const _0xe5a15a=resolveManagedFilePath(_0x468f4a,_0x2fd334[_0x1713cc(0xee)]);mkdirSync(dirname(_0xe5a15a),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0xe5a15a,fileContent(_0x2fd334),0x180);}}function removeStaleManagedFiles(_0x18657e,_0x5b0f4e,_0x33b306){const _0x296bfc=a111_0x5ed1;if(!_0x5b0f4e)return;const _0x297e0c=new Set(normalizeLocalFiles(_0x33b306)[_0x296bfc(0xe3)](_0x5b555e=>_0x5b555e[_0x296bfc(0xee)]));for(const _0x44dd84 of Object[_0x296bfc(0xfe)](_0x5b0f4e)){if(_0x297e0c['has'](_0x44dd84))continue;const _0x1426ef=resolveManagedFilePath(_0x18657e,_0x44dd84);existsSync(_0x1426ef)&&lstatSync(_0x1426ef)[_0x296bfc(0xe9)]()&&rmSync(_0x1426ef,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a112_0x1f4c(_0x3fcd90,_0xc61c85){_0x3fcd90=_0x3fcd90-0x159;const _0x42b9ca=a112_0x42b9();let _0x1f4c02=_0x42b9ca[_0x3fcd90];return _0x1f4c02;}(function(_0x31f63d,_0x54282c){const _0x322ee0=a112_0x1f4c,_0x40d4c1=_0x31f63d();while(!![]){try{const _0x4bb501=-parseInt(_0x322ee0(0x173))/0x1+-parseInt(_0x322ee0(0x17e))/0x2*(-parseInt(_0x322ee0(0x165))/0x3)+parseInt(_0x322ee0(0x17c))/0x4*(parseInt(_0x322ee0(0x15c))/0x5)+parseInt(_0x322ee0(0x170))/0x6+parseInt(_0x322ee0(0x17b))/0x7*(-parseInt(_0x322ee0(0x15f))/0x8)+parseInt(_0x322ee0(0x168))/0x9*(-parseInt(_0x322ee0(0x161))/0xa)+parseInt(_0x322ee0(0x162))/0xb;if(_0x4bb501===_0x54282c)break;else _0x40d4c1['push'](_0x40d4c1['shift']());}catch(_0x5e5fde){_0x40d4c1['push'](_0x40d4c1['shift']());}}}(a112_0x42b9,0xd25b7));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_0x42b9(){const _0x495db2=['parse','538205CZuqIr','personal','readonly','object','map','skillCode','trim','description','259ZnyDDI','130124IlEMSU','isArray','2tSbZvA','fromEntries','length','forkedFromVersion','225HbjgSe','utf8','status','239048ApdKuh','skillName','52890PYLRMC','5530932hsgiED','toISOString','path','53328gMPOSp','version','sourceSessionId','1458brRNAo','Invalid\x20','zipSize','Runtime\x20Skill\x20is\x20missing\x20skillCode.','hasUpstreamUpdate','manifest','tags','zipSha256','8266560DhutSP','validation'];a112_0x42b9=function(){return _0x495db2;};return a112_0x42b9();}import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x3f0b95,_0x58c83f,_0x41398c,_0x48a11c,_0x3299ff,_0x156450,_0xe0b2e0){const _0x31c0e4=a112_0x1f4c,_0x214137=_0x156450?normalizeLocalFiles(_0x156450):[],_0x5f3e09=!_0xe0b2e0&&_0x214137['length']>0x0?buildSkillPackage(_0x214137):undefined,_0x4b85d6=_0xe0b2e0?bufferSha256(_0xe0b2e0):_0x5f3e09?.[_0x31c0e4(0x16d)][_0x31c0e4(0x16f)],_0x5e13b5=_0xe0b2e0?.[_0x31c0e4(0x15a)]??_0x5f3e09?.[_0x31c0e4(0x16d)][_0x31c0e4(0x16a)],_0x5ad909=_0x214137[_0x31c0e4(0x15a)]>0x0?Object[_0x31c0e4(0x159)](_0x214137[_0x31c0e4(0x177)](_0x4d4f4f=>[_0x4d4f4f[_0x31c0e4(0x164)],fileHash(_0x4d4f4f)])):undefined;return{'schemaVersion':_0x214137[_0x31c0e4(0x15a)]>0x0?0x2:0x1,'id':_0x3f0b95['id'],'appCode':_0x41398c,'skillCode':requireSkillCode(_0x3f0b95),'skillName':_0x3f0b95[_0x31c0e4(0x160)],'description':_0x3f0b95[_0x31c0e4(0x17a)],'scope':_0x58c83f,'readonly':_0x58c83f!==_0x31c0e4(0x174)||_0x3f0b95[_0x31c0e4(0x175)]===!![],'tenantCode':_0x3f0b95['tenantCode'],'userId':_0x3f0b95['userId'],'version':_0x3f0b95[_0x31c0e4(0x166)],'status':_0x3f0b95[_0x31c0e4(0x15e)],'tags':Array[_0x31c0e4(0x17d)](_0x3f0b95[_0x31c0e4(0x16e)])?_0x3f0b95[_0x31c0e4(0x16e)]:[],'hasUpstreamUpdate':_0x3f0b95[_0x31c0e4(0x16c)],'forkedFromSkillId':_0x3f0b95['forkedFromSkillId'],'forkedFromVersion':_0x3f0b95[_0x31c0e4(0x15b)],'sourceSessionId':_0x3f0b95[_0x31c0e4(0x167)],'contentHash':_0x48a11c,'fileHashes':_0x5ad909,'treeHash':_0x214137[_0x31c0e4(0x15a)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x214137)):undefined,'ossPath':remoteManifestOssPath(_0x3f0b95['files']),'zipSha256':_0x4b85d6,'zipSize':_0x5e13b5,'files':_0x214137[_0x31c0e4(0x15a)]>0x0?_0x214137[_0x31c0e4(0x177)](_0x1d7e60=>({'path':_0x1d7e60[_0x31c0e4(0x164)],'hash':fileHash(_0x1d7e60),'size':fileContent(_0x1d7e60)[_0x31c0e4(0x15a)]})):undefined,'pulledAt':_0x3299ff??new Date()[_0x31c0e4(0x163)]()};}export function requireSkillCode(_0x1f3ce4){const _0x3b7d47=a112_0x1f4c,_0x2cf928=_0x1f3ce4[_0x3b7d47(0x178)]?.[_0x3b7d47(0x179)]();if(!_0x2cf928)throw CliErrors[_0x3b7d47(0x171)](_0x3b7d47(0x16b));return _0x2cf928;}export function readMetadataIfPresent(_0x3521f9){const _0x1a9a93=a112_0x1f4c;if(!existsSync(_0x3521f9))return undefined;try{const _0x15835d=JSON[_0x1a9a93(0x172)](readFileSync(_0x3521f9,_0x1a9a93(0x15d)));return _0x15835d;}catch{throw CliErrors[_0x1a9a93(0x171)](_0x1a9a93(0x169)+METADATA_FILE+':\x20'+_0x3521f9);}}function remoteManifestOssPath(_0x46bd49){const _0x2431e4=a112_0x1f4c;if(!_0x46bd49||typeof _0x46bd49!==_0x2431e4(0x176)||Array[_0x2431e4(0x17d)](_0x46bd49))return undefined;const _0x345662=_0x46bd49['ossPath'];return typeof _0x345662==='string'&&_0x345662[_0x2431e4(0x179)]()?_0x345662[_0x2431e4(0x179)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x73ddff=a113_0x18ca;(function(_0x11a0bb,_0x3c87ad){const _0x481de3=a113_0x18ca,_0x887436=_0x11a0bb();while(!![]){try{const _0xfe109a=-parseInt(_0x481de3(0x12a))/0x1+-parseInt(_0x481de3(0x12c))/0x2*(parseInt(_0x481de3(0x142))/0x3)+-parseInt(_0x481de3(0x13f))/0x4+parseInt(_0x481de3(0x132))/0x5*(-parseInt(_0x481de3(0x138))/0x6)+parseInt(_0x481de3(0x12f))/0x7+-parseInt(_0x481de3(0x143))/0x8*(parseInt(_0x481de3(0x139))/0x9)+parseInt(_0x481de3(0x136))/0xa;if(_0xfe109a===_0x3c87ad)break;else _0x887436['push'](_0x887436['shift']());}catch(_0x3b6979){_0x887436['push'](_0x887436['shift']());}}}(a113_0x39ab,0x2f42b));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';export function resolveSkillSyncPaths(_0x3a8145={}){const _0x350c7e=a113_0x18ca,_0x548cdb=_0x3a8145[_0x350c7e(0x140)]??homedir(),_0x516288=resolve(_0x548cdb,PRODUCT_CONFIG['homeDirName'],_0x350c7e(0x13d)),_0x46fada=trimmedEnv(_0x350c7e(0x13c)),_0x3b5807=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x5e6ad3=resolve(_0x548cdb,_0x350c7e(0x13a)),_0x3c33c2=_0x3a8145[_0x350c7e(0x141)]??(existsSync(_0x5e6ad3)?resolve(_0x5e6ad3,_0x350c7e(0x137)):undefined);return{'homeDir':_0x548cdb,'cacheRoot':_0x516288,'managedRoot':resolve(_0x548cdb,PRODUCT_CONFIG[_0x350c7e(0x134)]),'agentsSkillsDir':_0x3a8145['agentsSkillsDir']??_0x46fada??resolve(_0x548cdb,_0x350c7e(0x133),_0x350c7e(0x137)),'claudeSkillsDir':_0x3a8145['claudeSkillsDir']??_0x3b5807??resolve(_0x548cdb,'.claude',_0x350c7e(0x137)),'workbuddySkillsDir':_0x3c33c2};}export function runtimeAgentSkillRoots(_0x2185dd){const _0x371156=a113_0x18ca;return[_0x2185dd['agentsSkillsDir'],_0x2185dd[_0x371156(0x12d)],_0x2185dd['workbuddySkillsDir']][_0x371156(0x13e)](_0x4518ad=>Boolean(_0x4518ad));}export function getRuntimeSkillCacheRoot(_0x16a2bf,_0xccd587,_0x47ca89={}){const _0x391f6e=a113_0x18ca,_0xad3600=resolveSkillSyncPaths(_0x47ca89);return resolve(_0xad3600[_0x391f6e(0x135)],_0x16a2bf,fingerprintAccessKey(_0xccd587),_0x391f6e(0x137));}export function getRuntimeSkillDir(_0x33d41c,_0x461db2,_0x3d6a75,_0xbbe70a,_0x353d1f,_0x4109b1={}){const _0x18fa0f=a113_0x18ca;return resolve(getRuntimeSkillCacheRoot(_0x33d41c,_0x461db2,_0x4109b1),safePathSegment(_0x3d6a75,'appCode'),_0xbbe70a,safePathSegment(_0x353d1f,_0x18fa0f(0x144)));}export function safePathSegment(_0x127773,_0x157a33=a113_0x73ddff(0x130)){const _0x43f76e=a113_0x73ddff;if(!_0x127773||_0x127773[_0x43f76e(0x13b)]('/')||_0x127773[_0x43f76e(0x13b)]('\x5c')||_0x127773['includes']('..'))throw CliErrors[_0x43f76e(0x131)](_0x43f76e(0x12e)+_0x157a33+_0x43f76e(0x12b)+_0x127773);return _0x127773;}function trimmedEnv(_0x273b00){const _0x5e1e7e=a113_0x73ddff,_0x15625f=productEnv(_0x273b00)?.[_0x5e1e7e(0x145)]();return _0x15625f?_0x15625f:undefined;}function a113_0x18ca(_0x58e27c,_0x4d794c){_0x58e27c=_0x58e27c-0x12a;const _0x39ab92=a113_0x39ab();let _0x18cade=_0x39ab92[_0x58e27c];return _0x18cade;}function a113_0x39ab(){const _0x2a73cc=['cacheRoot','8811710JJREAa','skills','1152VJckOu','155619lNKvZi','.workbuddy','includes','SKILL_ROOT','cache','filter','28704hHMTOJ','homeDir','workbuddySkillsDir','263481KcvyvE','32BZqgmB','skillCode','trim','311810NGCBfk','\x20for\x20local\x20path:\x20','4jEfLCd','claudeSkillsDir','Unsafe\x20','1017772BwCVOi','path\x20segment','validation','7010WPZTqq','.agents','homeDirName'];a113_0x39ab=function(){return _0x2a73cc;};return a113_0x39ab();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x51263e,_0x337de0){const _0x2e2af7=a114_0x5752,_0x5aaf83=_0x51263e();while(!![]){try{const _0x1a7756=parseInt(_0x2e2af7(0x12a))/0x1+parseInt(_0x2e2af7(0x120))/0x2+parseInt(_0x2e2af7(0x12f))/0x3+parseInt(_0x2e2af7(0x12e))/0x4*(-parseInt(_0x2e2af7(0x12b))/0x5)+parseInt(_0x2e2af7(0x123))/0x6+-parseInt(_0x2e2af7(0x11c))/0x7+parseInt(_0x2e2af7(0x130))/0x8;if(_0x1a7756===_0x337de0)break;else _0x5aaf83['push'](_0x5aaf83['shift']());}catch(_0x5160a8){_0x5aaf83['push'](_0x5aaf83['shift']());}}}(a114_0x3c97,0x19922));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x42a53a}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(_0x13dd33,_0x1940ec,_0xa3e637={}){const _0x43d9bd=a114_0x5752,_0x11c18c=resolvePushDirectoryRoot(_0x13dd33),_0x22e894=readPushMetadataIfPresent(resolve(_0x11c18c,METADATA_FILE),{'ignoreInvalidMetadata':_0xa3e637[_0x43d9bd(0x157)]});if(_0x22e894?.[_0x43d9bd(0x137)]&&_0x22e894[_0x43d9bd(0x137)]!==_0x1940ec&&!_0xa3e637[_0x43d9bd(0x13d)]&&!_0xa3e637['ignoreMetadataAppCodeMismatch'])throw CliErrors['validation'](_0x43d9bd(0x144)+_0x22e894['appCode']+_0x43d9bd(0x149)+_0x1940ec+'\x22.');const _0x31d391=resolvePushSkillCode(_0x11c18c,_0x1940ec,_0x22e894,_0xa3e637);if(!_0x31d391)throw CliErrors[_0x43d9bd(0x121)](_0x43d9bd(0x154)+SKILL_FILE+',\x20'+METADATA_FILE+_0x43d9bd(0x129));return{'dir':_0x11c18c,'skillCode':_0x31d391,'metadata':_0x22e894};}export function readPushDirectory(_0x44b154,_0x2a4652,_0x375d5d={}){const _0x393cad=a114_0x5752,_0x45a639=resolvePushDirectoryIdentity(_0x44b154,_0x2a4652,_0x375d5d),_0x2ec1a7=_0x45a639[_0x393cad(0x14a)],_0x9c9c85=resolve(_0x2ec1a7,SKILL_FILE);if(!existsSync(_0x9c9c85)||!lstatSync(_0x9c9c85)[_0x393cad(0x148)]())throw CliErrors['validation'](_0x393cad(0x14e)+SKILL_FILE+':\x20'+_0x9c9c85);const _0x4e51d2=_0x45a639['metadata'],_0x861377=_0x375d5d[_0x393cad(0x12c)]??'personal';if(!_0x375d5d[_0x393cad(0x13a)]&&_0x4e51d2?.['scope']===_0x393cad(0x142))throw CliErrors[_0x393cad(0x121)](_0x393cad(0x138)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2['scope']+'\x22.');if(!_0x375d5d[_0x393cad(0x13a)]&&_0x861377===_0x393cad(0x136)&&_0x4e51d2?.['scope']&&_0x4e51d2[_0x393cad(0x156)]!==_0x393cad(0x136))throw CliErrors['validation'](_0x393cad(0x159)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2[_0x393cad(0x156)]+'\x22.',_0x393cad(0x124)+_0x2ec1a7+_0x393cad(0x133));const _0x275e09=scanSkillDirectory(_0x2ec1a7),_0x1a7f2c=buildSkillPackage(_0x275e09),_0x1900b5=readFileSync(_0x9c9c85,'utf8'),_0x328548=_0x45a639[_0x393cad(0x131)],_0x186485=_0x375d5d[_0x393cad(0x14f)]?undefined:_0x4e51d2,_0x369218=readSkillDisplayName(_0x1900b5);return{'skillCode':_0x328548,'metadata':_0x4e51d2,'frontmatterDisplayName':_0x369218,'input':{'skillCode':_0x328548,'skillName':_0x369218??_0x186485?.[_0x393cad(0x122)],'description':_0x186485?.['description'],'content':_0x1900b5,'files':_0x1a7f2c[_0x393cad(0x145)],'packageBase64':_0x1a7f2c[_0x393cad(0x15a)],'tags':_0x186485?.['tags'],'version':_0x186485?.[_0x393cad(0x12d)],'sourceSessionId':_0x186485?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x8125ba,_0x2b43f0,_0x36b504,_0x2fb23c={}){const _0x223340=a114_0x5752,_0x30b7fb=resolvePushDirectoryRoot(_0x8125ba),_0x3dd30e=readPushMetadataIfPresent(resolve(_0x30b7fb,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5733d7=requireRemoteScope(_0x2b43f0),_0x4014d3=readLocalSkillContent(_0x30b7fb),_0x25e563={..._0x2b43f0,'appCode':_0x2b43f0[_0x223340(0x137)]??_0x36b504,'skillName':_0x2b43f0['skillName']??_0x3dd30e?.[_0x223340(0x122)],'description':_0x2b43f0[_0x223340(0x155)]??_0x3dd30e?.[_0x223340(0x155)],'tags':Array[_0x223340(0x153)](_0x2b43f0[_0x223340(0x151)])?_0x2b43f0[_0x223340(0x151)]:_0x3dd30e?.['tags'],'sourceSessionId':_0x2b43f0['sourceSessionId']??_0x3dd30e?.[_0x223340(0x13e)],'content':_0x2b43f0[_0x223340(0x14c)]??_0x4014d3},_0x398efa=buildMetadata(_0x25e563,_0x5733d7,_0x36b504,contentHash(_0x4014d3),_0x2fb23c['refreshedAt']);writeJsonAtomic(resolve(_0x30b7fb,METADATA_FILE),_0x398efa);}export function recordPushedRuntimeSkill(_0x52c7c0,_0x4bc2b9,_0x546bed,_0x2b22cc={}){const _0x2cef67=a114_0x5752,_0x51d2d0=resolvePushDirectoryRoot(_0x52c7c0),_0x1cebc7=scanSkillDirectory(_0x51d2d0),_0x54ba16=_0x1cebc7[_0x2cef67(0x128)](_0x5ae64b=>_0x5ae64b[_0x2cef67(0x150)]===SKILL_FILE),_0x16692d=_0x54ba16?fileText(_0x54ba16):'',_0x37178f=tryNormalizePackageManifest(_0x4bc2b9['files']),_0x566e19={..._0x4bc2b9,'content':_0x4bc2b9[_0x2cef67(0x14c)]??_0x16692d,'files':_0x37178f},_0x30c2bd=_0x37178f?normalizeLocalFiles(_0x1cebc7)[_0x2cef67(0x11e)](_0x4e8565=>_0x37178f['files'][_0x2cef67(0x126)](_0x146688=>_0x146688[_0x2cef67(0x150)]===_0x4e8565[_0x2cef67(0x150)])):undefined,_0x2f30ac=buildMetadata(_0x566e19,_0x2b22cc['scope']??_0x2cef67(0x136),_0x546bed,contentHash(_0x566e19[_0x2cef67(0x14c)]??''),_0x2b22cc[_0x2cef67(0x134)],_0x30c2bd);writeJsonAtomic(resolve(_0x51d2d0,METADATA_FILE),_0x2f30ac);}export function deriveSkillCodeFromDirectory(_0x3d15e7,_0x329b8a){const _0x22ad12=a114_0x5752,_0x3c9e15=basename(resolve(_0x3d15e7)),_0x86205b=_0x329b8a+'--';return _0x3c9e15[_0x22ad12(0x146)](_0x86205b)?_0x3c9e15[_0x22ad12(0x125)](_0x86205b[_0x22ad12(0x13f)]):_0x3c9e15;}function resolvePushSkillCode(_0x6d9c8b,_0x1e20af,_0x592f7d,_0x3e09c5){const _0x5211ec=a114_0x5752,_0x39a0a5=deriveSkillCodeFromSkillFile(_0x6d9c8b)||deriveSkillCodeFromDirectory(_0x6d9c8b,_0x1e20af);if(_0x3e09c5[_0x5211ec(0x147)])return _0x39a0a5;return _0x592f7d?.[_0x5211ec(0x131)]?.[_0x5211ec(0x11f)]()||_0x39a0a5;}function a114_0x3c97(){const _0x2c0460=['\x20to\x20submit\x20company\x20Skills\x20for\x20review.','pushedAt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','personal','appCode','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','boolean','ignoreMetadataScope','replace','match','allowAppCodeRetarget','sourceSessionId','length','number','Invalid\x20','builtin','Skill\x20directory\x20not\x20found:\x20','Skill\x20metadata\x20appCode\x20\x22','manifest','startsWith','ignoreMetadataSkillCode','isFile','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','dir','isSymbolicLink','content','utf8','Missing\x20','ignoreMetadataForPayload','path','tags','unknown','isArray','Unable\x20to\x20resolve\x20skillCode\x20from\x20','description','scope','ignoreInvalidMetadata','\x20has\x20unsupported\x20scope\x20\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','packageBase64','1450589xpvIXb','toLowerCase','filter','trim','58348ujTHRo','validation','skillName','103428OgNlwJ','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','slice','some','object','find',',\x20or\x20directory\x20name.','108146bwcrMr','758630igYhfU','targetScope','version','4HsjRrT','207123WacyED','1920736abgOOZ','skillCode','(unknown)'];a114_0x3c97=function(){return _0x2c0460;};return a114_0x3c97();}function deriveSkillCodeFromSkillFile(_0xbaa46){const _0x1a012d=a114_0x5752,_0x49e470=resolve(_0xbaa46,SKILL_FILE);if(!existsSync(_0x49e470)||!lstatSync(_0x49e470)['isFile']())return undefined;const _0x245095=readFileSync(_0x49e470,_0x1a012d(0x14d)),_0x441db4=_0x245095[_0x1a012d(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x441db4)return undefined;const _0x1c9712=parseFrontmatterObject(_0x441db4[0x1]??''),_0x3e6c0d=scalarToString(_0x1c9712?.['name']);return _0x3e6c0d?slugifySkillName(_0x3e6c0d):undefined;}function a114_0x5752(_0x1da12f,_0x787e4a){_0x1da12f=_0x1da12f-0x11c;const _0x3c97de=a114_0x3c97();let _0x5752d7=_0x3c97de[_0x1da12f];return _0x5752d7;}function readSkillDisplayName(_0x34ce5c){const _0x56250e=a114_0x5752,_0x46bf59=_0x34ce5c[_0x56250e(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x46bf59)return undefined;const _0x244127=parseFrontmatterObject(_0x46bf59[0x1]??'');return scalarToString(_0x244127?.['displayName']);}function slugifySkillName(_0x4e7bee){const _0x630088=a114_0x5752,_0x34f08d=_0x4e7bee['trim']()[_0x630088(0x11d)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x630088(0x13b)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x34f08d)throw CliErrors[_0x630088(0x121)](_0x630088(0x141)+SKILL_FILE+_0x630088(0x135));return _0x34f08d;}function parseFrontmatterObject(_0x130c11){const _0x4b24aa=a114_0x5752;try{const _0x2478d4=a114_0x42a53a(_0x130c11);return _0x2478d4&&typeof _0x2478d4===_0x4b24aa(0x127)&&!Array[_0x4b24aa(0x153)](_0x2478d4)?_0x2478d4:undefined;}catch{return undefined;}}function scalarToString(_0x582c72){const _0xa7f7c2=a114_0x5752;if(typeof _0x582c72==='string')return _0x582c72[_0xa7f7c2(0x11f)]();if(typeof _0x582c72===_0xa7f7c2(0x140)||typeof _0x582c72===_0xa7f7c2(0x139))return String(_0x582c72);return undefined;}function resolvePushDirectoryRoot(_0x3f42ab){const _0x2c9b6c=a114_0x5752,_0x414d0c=resolve(_0x3f42ab);if(!existsSync(_0x414d0c))throw CliErrors[_0x2c9b6c(0x121)](_0x2c9b6c(0x143)+_0x3f42ab);const _0x9c101e=lstatSync(_0x414d0c);if(_0x9c101e['isDirectory']())return _0x414d0c;if(_0x9c101e[_0x2c9b6c(0x14b)]()){const _0x5f2c14=realpathSync(_0x414d0c);if(lstatSync(_0x5f2c14)['isDirectory']())return _0x5f2c14;}throw CliErrors['validation'](_0x2c9b6c(0x143)+_0x3f42ab);}function requireRemoteScope(_0x5606ca){const _0x3c2b57=a114_0x5752;if(_0x5606ca[_0x3c2b57(0x156)]===_0x3c2b57(0x136)||_0x5606ca[_0x3c2b57(0x156)]==='company'||_0x5606ca['scope']===_0x3c2b57(0x142))return _0x5606ca[_0x3c2b57(0x156)];throw CliErrors[_0x3c2b57(0x121)]('Remote\x20Skill\x20'+(_0x5606ca['skillCode']||_0x3c2b57(0x132))+_0x3c2b57(0x158)+(_0x5606ca[_0x3c2b57(0x156)]??_0x3c2b57(0x152))+'\x22.');}function readLocalSkillContent(_0x571ff2){const _0x228256=a114_0x5752,_0x3a33bc=resolve(_0x571ff2,SKILL_FILE);return existsSync(_0x3a33bc)&&lstatSync(_0x3a33bc)[_0x228256(0x148)]()?readFileSync(_0x3a33bc,_0x228256(0x14d)):'';}function readPushMetadataIfPresent(_0x4423e2,_0x42b17f={}){try{return readMetadataIfPresent(_0x4423e2);}catch(_0x42ecb0){if(_0x42b17f['ignoreInvalidMetadata'])return undefined;throw _0x42ecb0;}}
|
|
1
|
+
(function(_0x403638,_0x2a9485){const _0x5289e5=a114_0x1f86,_0x49b307=_0x403638();while(!![]){try{const _0x45e98a=-parseInt(_0x5289e5(0x113))/0x1+-parseInt(_0x5289e5(0x142))/0x2+parseInt(_0x5289e5(0x121))/0x3+-parseInt(_0x5289e5(0x111))/0x4+parseInt(_0x5289e5(0x134))/0x5*(-parseInt(_0x5289e5(0x11a))/0x6)+parseInt(_0x5289e5(0x143))/0x7+parseInt(_0x5289e5(0x141))/0x8;if(_0x45e98a===_0x2a9485)break;else _0x49b307['push'](_0x49b307['shift']());}catch(_0x1c7766){_0x49b307['push'](_0x49b307['shift']());}}}(a114_0x4042,0x4e708));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x54f183}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(_0x3fa252,_0x77a0e6,_0x1b076a={}){const _0x439239=a114_0x1f86,_0x2ed683=resolvePushDirectoryRoot(_0x3fa252),_0x214204=readPushMetadataIfPresent(resolve(_0x2ed683,METADATA_FILE),{'ignoreInvalidMetadata':_0x1b076a['ignoreInvalidMetadata']});if(_0x214204?.['appCode']&&_0x214204[_0x439239(0x11b)]!==_0x77a0e6&&!_0x1b076a[_0x439239(0x136)]&&!_0x1b076a[_0x439239(0x129)])throw CliErrors['validation']('Skill\x20metadata\x20appCode\x20\x22'+_0x214204[_0x439239(0x11b)]+'\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22'+_0x77a0e6+'\x22.');const _0x2fc96c=resolvePushSkillCode(_0x2ed683,_0x77a0e6,_0x214204,_0x1b076a);if(!_0x2fc96c)throw CliErrors[_0x439239(0x147)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x2ed683,'skillCode':_0x2fc96c,'metadata':_0x214204};}export function readPushDirectory(_0xb0dad1,_0x9b34da,_0x48691f={}){const _0x5c7a3d=a114_0x1f86,_0x3d1321=resolvePushDirectoryIdentity(_0xb0dad1,_0x9b34da,_0x48691f),_0x5d66a6=_0x3d1321[_0x5c7a3d(0x13d)],_0x3f3a54=resolve(_0x5d66a6,SKILL_FILE);if(!existsSync(_0x3f3a54)||!lstatSync(_0x3f3a54)[_0x5c7a3d(0x10f)]())throw CliErrors['validation'](_0x5c7a3d(0x12b)+SKILL_FILE+':\x20'+_0x3f3a54);const _0x217aee=_0x3d1321[_0x5c7a3d(0x126)],_0x7c96cb=_0x48691f[_0x5c7a3d(0x112)]??_0x5c7a3d(0x13c);if(!_0x48691f[_0x5c7a3d(0x137)]&&_0x217aee?.['scope']===_0x5c7a3d(0x145))throw CliErrors[_0x5c7a3d(0x147)](_0x5c7a3d(0x131)+METADATA_FILE+_0x5c7a3d(0x116)+_0x217aee[_0x5c7a3d(0x139)]+'\x22.');if(!_0x48691f['ignoreMetadataScope']&&_0x7c96cb===_0x5c7a3d(0x13c)&&_0x217aee?.['scope']&&_0x217aee[_0x5c7a3d(0x139)]!==_0x5c7a3d(0x13c))throw CliErrors[_0x5c7a3d(0x147)](_0x5c7a3d(0x144)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x217aee[_0x5c7a3d(0x139)]+'\x22.',_0x5c7a3d(0x12f)+_0x5d66a6+_0x5c7a3d(0x127));const _0x387325=scanSkillDirectory(_0x5d66a6),_0x23e2bc=buildSkillPackage(_0x387325),_0x490ab4=readFileSync(_0x3f3a54,_0x5c7a3d(0x123)),_0xbc9c48=_0x3d1321[_0x5c7a3d(0x11f)],_0x36e555=_0x48691f[_0x5c7a3d(0x13e)]?undefined:_0x217aee,_0x4703f1=readSkillDisplayName(_0x490ab4);return{'skillCode':_0xbc9c48,'metadata':_0x217aee,'frontmatterDisplayName':_0x4703f1,'input':{'skillCode':_0xbc9c48,'skillName':_0x4703f1??_0x36e555?.[_0x5c7a3d(0x10c)],'description':_0x36e555?.[_0x5c7a3d(0x12a)],'content':_0x490ab4,'files':_0x23e2bc['manifest'],'packageBase64':_0x23e2bc[_0x5c7a3d(0x132)],'tags':_0x36e555?.[_0x5c7a3d(0x12c)],'version':_0x36e555?.[_0x5c7a3d(0x115)],'sourceSessionId':_0x36e555?.[_0x5c7a3d(0x119)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x3f9b5f,_0x5551fd,_0x51306c,_0x20568c={}){const _0x3ffe02=a114_0x1f86,_0x259997=resolvePushDirectoryRoot(_0x3f9b5f),_0x59fec4=readPushMetadataIfPresent(resolve(_0x259997,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5eec8a=requireRemoteScope(_0x5551fd),_0x59feb8=readLocalSkillContent(_0x259997),_0x7f37dc={..._0x5551fd,'appCode':_0x5551fd[_0x3ffe02(0x11b)]??_0x51306c,'skillName':_0x5551fd[_0x3ffe02(0x10c)]??_0x59fec4?.[_0x3ffe02(0x10c)],'description':_0x5551fd[_0x3ffe02(0x12a)]??_0x59fec4?.[_0x3ffe02(0x12a)],'tags':Array[_0x3ffe02(0x146)](_0x5551fd[_0x3ffe02(0x12c)])?_0x5551fd[_0x3ffe02(0x12c)]:_0x59fec4?.[_0x3ffe02(0x12c)],'sourceSessionId':_0x5551fd[_0x3ffe02(0x119)]??_0x59fec4?.[_0x3ffe02(0x119)],'content':_0x5551fd[_0x3ffe02(0x149)]??_0x59feb8},_0x52f1ad=buildMetadata(_0x7f37dc,_0x5eec8a,_0x51306c,contentHash(_0x59feb8),_0x20568c['refreshedAt']);writeJsonAtomic(resolve(_0x259997,METADATA_FILE),_0x52f1ad);}export function recordPushedRuntimeSkill(_0x10b61b,_0x51220b,_0x253025,_0x34513f={}){const _0x55e7ce=a114_0x1f86,_0x41d502=resolvePushDirectoryRoot(_0x10b61b),_0x45bfee=scanSkillDirectory(_0x41d502),_0x4392fe=_0x45bfee[_0x55e7ce(0x12e)](_0x2a8e8f=>_0x2a8e8f[_0x55e7ce(0x10d)]===SKILL_FILE),_0x813e96=_0x4392fe?fileText(_0x4392fe):'',_0x16a9fa=tryNormalizePackageManifest(_0x51220b['files']),_0x1316fb={..._0x51220b,'content':_0x51220b[_0x55e7ce(0x149)]??_0x813e96,'files':_0x16a9fa},_0xc6f1e1=_0x16a9fa?normalizeLocalFiles(_0x45bfee)[_0x55e7ce(0x122)](_0x109b1d=>_0x16a9fa[_0x55e7ce(0x114)][_0x55e7ce(0x133)](_0x2fe565=>_0x2fe565[_0x55e7ce(0x10d)]===_0x109b1d[_0x55e7ce(0x10d)])):undefined,_0x486b4d=buildMetadata(_0x1316fb,_0x34513f[_0x55e7ce(0x139)]??_0x55e7ce(0x13c),_0x253025,contentHash(_0x1316fb[_0x55e7ce(0x149)]??''),_0x34513f['pushedAt'],_0xc6f1e1);writeJsonAtomic(resolve(_0x41d502,METADATA_FILE),_0x486b4d);}export function deriveSkillCodeFromDirectory(_0x2e5867,_0x1b2651){const _0x302c6f=a114_0x1f86,_0x3f9871=basename(resolve(_0x2e5867)),_0x3f5801=_0x1b2651+'--';return _0x3f9871[_0x302c6f(0x117)](_0x3f5801)?_0x3f9871[_0x302c6f(0x128)](_0x3f5801[_0x302c6f(0x13b)]):_0x3f9871;}function resolvePushSkillCode(_0x3c7ba9,_0x58e7c9,_0x12436d,_0x3377de){const _0x5bdf78=a114_0x1f86,_0x1cc241=deriveSkillCodeFromSkillFile(_0x3c7ba9)||deriveSkillCodeFromDirectory(_0x3c7ba9,_0x58e7c9);if(_0x3377de[_0x5bdf78(0x12d)])return _0x1cc241;return _0x12436d?.['skillCode']?.[_0x5bdf78(0x124)]()||_0x1cc241;}function deriveSkillCodeFromSkillFile(_0x4cb98a){const _0x2420fe=a114_0x1f86,_0x5558f3=resolve(_0x4cb98a,SKILL_FILE);if(!existsSync(_0x5558f3)||!lstatSync(_0x5558f3)[_0x2420fe(0x10f)]())return undefined;const _0x4499b7=readFileSync(_0x5558f3,'utf8'),_0x9212e5=_0x4499b7['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x9212e5)return undefined;const _0x51eae0=parseFrontmatterObject(_0x9212e5[0x1]??''),_0x2b25ca=scalarToString(_0x51eae0?.[_0x2420fe(0x10b)]);return _0x2b25ca?slugifySkillName(_0x2b25ca):undefined;}function readSkillDisplayName(_0x589b2d){const _0x5a6acb=a114_0x1f86,_0x431a65=_0x589b2d[_0x5a6acb(0x138)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x431a65)return undefined;const _0x193acb=parseFrontmatterObject(_0x431a65[0x1]??'');return scalarToString(_0x193acb?.[_0x5a6acb(0x148)]);}function slugifySkillName(_0x4c2994){const _0x329110=a114_0x1f86,_0x4140e0=_0x4c2994['trim']()['toLowerCase']()[_0x329110(0x118)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x329110(0x118)](/^-+/,'')['replace'](/-+$/,'')[_0x329110(0x118)](/-{2,}/g,'-');if(!_0x4140e0)throw CliErrors[_0x329110(0x147)](_0x329110(0x11d)+SKILL_FILE+_0x329110(0x135));return _0x4140e0;}function a114_0x4042(){const _0x5f2e8f=['skillName','path','boolean','isFile','isDirectory','118980LAuYrL','targetScope','87540lUJChZ','files','version','\x20has\x20scope=\x22','startsWith','replace','sourceSessionId','12954hpZSNt','appCode','unknown','Invalid\x20','isSymbolicLink','skillCode','(unknown)','1624278XBwDVv','filter','utf8','trim','object','metadata','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','slice','ignoreMetadataAppCodeMismatch','description','Missing\x20','tags','ignoreMetadataSkillCode','find','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','Remote\x20Skill\x20','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','packageBase64','some','515gzuYVt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','allowAppCodeRetarget','ignoreMetadataScope','match','scope','\x20has\x20unsupported\x20scope\x20\x22','length','personal','dir','ignoreMetadataForPayload','company','Skill\x20directory\x20not\x20found:\x20','1023424OtuYSs','20298KyvQwU','12215KnWXeF','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','builtin','isArray','validation','displayName','content','name'];a114_0x4042=function(){return _0x5f2e8f;};return a114_0x4042();}function parseFrontmatterObject(_0x331d90){const _0x599c98=a114_0x1f86;try{const _0x137606=a114_0x54f183(_0x331d90);return _0x137606&&typeof _0x137606===_0x599c98(0x125)&&!Array['isArray'](_0x137606)?_0x137606:undefined;}catch{return undefined;}}function scalarToString(_0x2cf987){const _0x3a7f0f=a114_0x1f86;if(typeof _0x2cf987==='string')return _0x2cf987[_0x3a7f0f(0x124)]();if(typeof _0x2cf987==='number'||typeof _0x2cf987===_0x3a7f0f(0x10e))return String(_0x2cf987);return undefined;}function a114_0x1f86(_0x2a9d5b,_0x31257c){_0x2a9d5b=_0x2a9d5b-0x10b;const _0x4042e8=a114_0x4042();let _0x1f861a=_0x4042e8[_0x2a9d5b];return _0x1f861a;}function resolvePushDirectoryRoot(_0x189d51){const _0x865960=a114_0x1f86,_0x55aca2=resolve(_0x189d51);if(!existsSync(_0x55aca2))throw CliErrors[_0x865960(0x147)]('Skill\x20directory\x20not\x20found:\x20'+_0x189d51);const _0x444f16=lstatSync(_0x55aca2);if(_0x444f16[_0x865960(0x110)]())return _0x55aca2;if(_0x444f16[_0x865960(0x11e)]()){const _0x31f41b=realpathSync(_0x55aca2);if(lstatSync(_0x31f41b)[_0x865960(0x110)]())return _0x31f41b;}throw CliErrors['validation'](_0x865960(0x140)+_0x189d51);}function requireRemoteScope(_0x5136fc){const _0x131ce3=a114_0x1f86;if(_0x5136fc['scope']===_0x131ce3(0x13c)||_0x5136fc[_0x131ce3(0x139)]===_0x131ce3(0x13f)||_0x5136fc[_0x131ce3(0x139)]===_0x131ce3(0x145))return _0x5136fc[_0x131ce3(0x139)];throw CliErrors[_0x131ce3(0x147)](_0x131ce3(0x130)+(_0x5136fc[_0x131ce3(0x11f)]||_0x131ce3(0x120))+_0x131ce3(0x13a)+(_0x5136fc[_0x131ce3(0x139)]??_0x131ce3(0x11c))+'\x22.');}function readLocalSkillContent(_0x215fd9){const _0x411438=a114_0x1f86,_0x36b70a=resolve(_0x215fd9,SKILL_FILE);return existsSync(_0x36b70a)&&lstatSync(_0x36b70a)['isFile']()?readFileSync(_0x36b70a,_0x411438(0x123)):'';}function readPushMetadataIfPresent(_0x3db8f8,_0x592e31={}){try{return readMetadataIfPresent(_0x3db8f8);}catch(_0x1afb9b){if(_0x592e31['ignoreInvalidMetadata'])return undefined;throw _0x1afb9b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x1829(_0x3051ea,_0x2df654){_0x3051ea=_0x3051ea-0x8d;const _0x4b589d=a115_0x4b58();let _0x18291c=_0x4b589d[_0x3051ea];return _0x18291c;}(function(_0x4f2973,_0x4ac001){const _0x166a66=a115_0x1829,_0x4ba9ce=_0x4f2973();while(!![]){try{const _0x468502=-parseInt(_0x166a66(0x90))/0x1+-parseInt(_0x166a66(0x8d))/0x2*(parseInt(_0x166a66(0x96))/0x3)+-parseInt(_0x166a66(0x9c))/0x4*(parseInt(_0x166a66(0x9b))/0x5)+-parseInt(_0x166a66(0x95))/0x6+-parseInt(_0x166a66(0x8f))/0x7+parseInt(_0x166a66(0x91))/0x8+parseInt(_0x166a66(0x99))/0x9;if(_0x468502===_0x4ac001)break;else _0x4ba9ce['push'](_0x4ba9ce['shift']());}catch(_0x498b2f){_0x4ba9ce['push'](_0x4ba9ce['shift']());}}}(a115_0x4b58,0xf34ba));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x2577d9){const _0x286a92=a115_0x1829,_0x4c1bbb=_0x2577d9&&_0x2577d9[_0x286a92(0x8e)]>0x0?_0x2577d9:['personal',_0x286a92(0x9a),_0x286a92(0x92)],_0x52e6a2=[];for(const _0x79ef95 of _0x4c1bbb){if(!isRuntimeSkillScope(_0x79ef95))throw CliErrors[_0x286a92(0x94)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x79ef95);!_0x52e6a2[_0x286a92(0x98)](_0x79ef95)&&_0x52e6a2[_0x286a92(0x93)](_0x79ef95);}return _0x52e6a2;}export function isRuntimeSkillScope(_0x153272){const _0x4003cd=a115_0x1829;return _0x153272===_0x4003cd(0x97)||_0x153272==='company'||_0x153272===_0x4003cd(0x92);}function a115_0x4b58(){const _0x4e4e3f=['12eppObc','2LfBoKB','length','4411316XzcNmO','1208738BuJenz','349416vRsGTv','builtin','push','validation','11606772OheJTz','4605207SSeMDl','personal','includes','67457583sXQFJO','company','2056615tnEfwV'];a115_0x4b58=function(){return _0x4e4e3f;};return a115_0x4b58();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117_0x16ad04=a117_0xd228;(function(_0x17be80,_0x767816){const _0x17bf9a=a117_0xd228,_0x4087fd=_0x17be80();while(!![]){try{const _0x56e27b=-parseInt(_0x17bf9a(0xa7))/0x1*(parseInt(_0x17bf9a(0xa3))/0x2)+parseInt(_0x17bf9a(0xac))/0x3*(parseInt(_0x17bf9a(0xb3))/0x4)+parseInt(_0x17bf9a(0xb4))/0x5*(parseInt(_0x17bf9a(0xa1))/0x6)+-parseInt(_0x17bf9a(0xaf))/0x7+parseInt(_0x17bf9a(0xa0))/0x8+parseInt(_0x17bf9a(0xb1))/0x9*(parseInt(_0x17bf9a(0xa4))/0xa)+-parseInt(_0x17bf9a(0xb2))/0xb*(parseInt(_0x17bf9a(0x9e))/0xc);if(_0x56e27b===_0x767816)break;else _0x4087fd['push'](_0x4087fd['shift']());}catch(_0x3e5b33){_0x4087fd['push'](_0x4087fd['shift']());}}}(a117_0x2683,0x3d777));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';function a117_0xd228(_0x2e3725,_0x3c772e){_0x2e3725=_0x2e3725-0x9b;const _0x26835f=a117_0x2683();let _0xd22855=_0x26835f[_0x2e3725];return _0xd22855;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a117_0x16ad04(0x9f));export function createDeterministicZipPackage(_0x224a2b){const _0x476a13=a117_0x16ad04,_0x574992={};for(const _0x5935fb of normalizeLocalFiles(_0x224a2b)){_0x574992[_0x5935fb[_0x476a13(0xa8)]]=fileContent(_0x5935fb);}return Buffer[_0x476a13(0xad)](zipSync(_0x574992,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x570498){const _0x31dde2=a117_0x16ad04;if(_0x570498[_0x31dde2(0xaa)]<0x16)throw CliErrors[_0x31dde2(0x9c)](_0x31dde2(0x9b));let _0x2d3d80;try{_0x2d3d80=unzipSync(_0x570498,{'filter'(_0x29d829){const _0xe9e8a4=_0x31dde2,_0x32be91=normalizeSkillRelativePath(_0x29d829[_0xe9e8a4(0xa2)]);if(_0x32be91['endsWith']('/'))throw CliErrors[_0xe9e8a4(0x9c)](_0xe9e8a4(0xa5)+_0x32be91);return!![];}});}catch(_0xd24bcd){if(isRuntimeSkillValidationError(_0xd24bcd))throw _0xd24bcd;throw CliErrors[_0x31dde2(0x9c)](_0x31dde2(0x9b));}return Object[_0x31dde2(0xb0)](_0x2d3d80)[_0x31dde2(0x9d)](([_0xf6f72,_0x3684bc])=>({'path':normalizeSkillRelativePath(_0xf6f72),'bytes':Buffer['from'](_0x3684bc)}))[_0x31dde2(0xa6)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x1b0ee0){const _0x4d02ad=a117_0x16ad04;return typeof _0x1b0ee0===_0x4d02ad(0xab)&&_0x1b0ee0!==null&&'code'in _0x1b0ee0&&_0x1b0ee0[_0x4d02ad(0xae)]===_0x4d02ad(0xa9);}function a117_0x2683(){const _0x16c205=['validation','map','29004FqlmhC','1980-01-01T00:00:00.000Z','2765928cUiRQS','62508CUqpOD','name','46378SOXpyE','40ynrSlR','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','sort','5MKMkEE','path','validation_error','length','object','903MNYHHw','from','code','1860040ikOLsN','entries','160659QxAJmp','1287dZcxFM','3448buVkkU','115xofSfg','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.'];a117_0x2683=function(){return _0x16c205;};return a117_0x2683();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fa654,_0x545734){const _0x575f19=a118_0x3556,_0x463b0d=_0x3fa654();while(!![]){try{const _0x1b15e7=-parseInt(_0x575f19(0xd2))/0x1+parseInt(_0x575f19(0xd0))/0x2+parseInt(_0x575f19(0xcc))/0x3+parseInt(_0x575f19(0xc9))/0x4*(parseInt(_0x575f19(0xf2))/0x5)+parseInt(_0x575f19(0xf5))/0x6+parseInt(_0x575f19(0xd9))/0x7+parseInt(_0x575f19(0xe0))/0x8*(parseInt(_0x575f19(0xd5))/0x9);if(_0x1b15e7===_0x545734)break;else _0x463b0d['push'](_0x463b0d['shift']());}catch(_0x18ec95){_0x463b0d['push'](_0x463b0d['shift']());}}}(a118_0x2456,0x978d8));import{CliErrors}from'../../errors.js';function a118_0x3556(_0x11fa4f,_0x39e34d){_0x11fa4f=_0x11fa4f-0xc6;const _0x2456f4=a118_0x2456();let _0x3556df=_0x2456f4[_0x11fa4f];return _0x3556df;}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';export function buildSkillPackage(_0x43097d){const _0x5180e8=a118_0x3556,_0x5b22ac=normalizeLocalFiles(_0x43097d);if(!_0x5b22ac[_0x5180e8(0xde)](_0x190b34=>_0x190b34['path']===SKILL_FILE))throw CliErrors[_0x5180e8(0xc6)](_0x5180e8(0xec)+SKILL_FILE+_0x5180e8(0xe3));const _0x1f2147=localFilesToManifestFiles(_0x5b22ac),_0x1288dc=createDeterministicZipPackage(_0x5b22ac);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x1f2147),'zipSha256':bufferSha256(_0x1288dc),'zipSize':_0x1288dc[_0x5180e8(0xd3)],'files':_0x1f2147},'packageBytes':_0x1288dc,'packageBase64':_0x1288dc[_0x5180e8(0xcf)]('base64')};}export function verifyRuntimeSkillPackage(_0x3141e8,_0x4a66cc){const _0x401bea=a118_0x3556,_0xdce9e8=normalizePackageManifest(_0x3141e8,{'requireOssPath':![]});if(!_0xdce9e8)throw CliErrors[_0x401bea(0xc6)](_0x401bea(0xe1));return extractAndVerifyPackage(_0xdce9e8,_0x4a66cc);}export function verifyRuntimeSkillBundle(_0x34a128,_0x596ab2){const _0x3060e0=a118_0x3556,_0x40c270=normalizePackageManifest(_0x34a128,{'requireOssPath':![]});if(!_0x40c270)throw CliErrors[_0x3060e0(0xc6)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x40c270,_0x596ab2);}export function tryNormalizePackageManifest(_0x16944c){return normalizePackageManifest(_0x16944c,{'requireOssPath':![]});}export function requirePackageBytes(_0x493d9a,_0x32184f){const _0x187ab3=a118_0x3556;if(!_0x32184f||_0x32184f[_0x187ab3(0xd3)]===0x0)throw CliErrors['validation'](_0x187ab3(0xe8)+_0x493d9a);return _0x32184f;}export function extractDownloadedPackage(_0x3ea92b){const _0x439156=a118_0x3556,_0x3b59be=parseZipPackage(_0x3ea92b)[_0x439156(0xdf)](_0x56f3cc=>({'path':_0x56f3cc[_0x439156(0xc8)],'bytes':_0x56f3cc[_0x439156(0xf1)]}));if(!_0x3b59be[_0x439156(0xde)](_0x564ae5=>_0x564ae5[_0x439156(0xc8)]===SKILL_FILE))throw CliErrors[_0x439156(0xc6)](_0x439156(0xcd)+SKILL_FILE+'.');return normalizeLocalFiles(_0x3b59be);}export function localFilesToManifestFiles(_0x563575){const _0x18bfac=a118_0x3556;return normalizeLocalFiles(_0x563575)['map'](_0x29a069=>({'path':_0x29a069[_0x18bfac(0xc8)],'sha256':fileHash(_0x29a069),'size':fileContent(_0x29a069)[_0x18bfac(0xd3)]}));}function normalizePackageManifest(_0x537df7,_0x5f432e){const _0x381b1b=a118_0x3556;if(!_0x537df7||typeof _0x537df7!==_0x381b1b(0xf3)||Array[_0x381b1b(0xc7)](_0x537df7))return undefined;const _0x58d49c=_0x537df7,_0x3e0b63=typeof _0x58d49c['ossPath']===_0x381b1b(0xf0)?_0x58d49c[_0x381b1b(0xd1)][_0x381b1b(0xe5)]():undefined;if(_0x5f432e[_0x381b1b(0xeb)]&&!_0x3e0b63)return undefined;if(!Array[_0x381b1b(0xc7)](_0x58d49c[_0x381b1b(0xcb)])||_0x58d49c[_0x381b1b(0xcb)]['length']===0x0)return undefined;if(!isSha256Hex(_0x58d49c['treeSha256']))throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xca));if(!isSha256Hex(_0x58d49c[_0x381b1b(0xea)]))throw CliErrors['validation'](_0x381b1b(0xd8));if(!Number['isSafeInteger'](_0x58d49c['zipSize'])||_0x58d49c['zipSize']<0x0)throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xdc));const _0x1bc7d1=normalizeManifestFiles(_0x58d49c[_0x381b1b(0xcb)]);if(!_0x1bc7d1[_0x381b1b(0xde)](_0x1003bd=>_0x1003bd[_0x381b1b(0xc8)]===SKILL_FILE))throw CliErrors[_0x381b1b(0xc6)](_0x381b1b(0xe4)+SKILL_FILE+'.');const _0x13ca21=fileTreeHash(_0x1bc7d1);if(_0x13ca21!==_0x58d49c['treeSha256'][_0x381b1b(0xe2)]())throw CliErrors['validation'](_0x381b1b(0xe6));return{'schemaVersion':Number['isSafeInteger'](_0x58d49c[_0x381b1b(0xd7)])?_0x58d49c[_0x381b1b(0xd7)]:0x2,'ossPath':_0x3e0b63,'treeSha256':_0x13ca21,'zipSha256':_0x58d49c['zipSha256']['toLowerCase'](),'zipSize':_0x58d49c[_0x381b1b(0xd4)],'files':_0x1bc7d1};}function extractAndVerifyPackage(_0x3694fd,_0x41c077){const _0x1225b5=a118_0x3556,_0x3498e3=normalizePackageManifest(_0x3694fd,{'requireOssPath':![]});if(!_0x3498e3)throw CliErrors['validation'](_0x1225b5(0xe1));if(_0x41c077['length']!==_0x3498e3[_0x1225b5(0xd4)])throw CliErrors[_0x1225b5(0xc6)](_0x1225b5(0xce));const _0x2c28af=bufferSha256(_0x41c077);if(_0x2c28af!==_0x3498e3[_0x1225b5(0xea)])throw CliErrors[_0x1225b5(0xc6)](_0x1225b5(0xd6));return extractAndVerifyPackageFiles(_0x3498e3,_0x41c077);}function extractAndVerifyPackageFiles(_0x41caa2,_0x4212db){const _0x1d9948=a118_0x3556,_0x18c144=parseZipPackage(_0x4212db);if(_0x18c144[_0x1d9948(0xd3)]!==_0x41caa2[_0x1d9948(0xcb)]['length'])throw CliErrors[_0x1d9948(0xc6)](_0x1d9948(0xdb));const _0x249d98=new Map();for(const _0x268ac2 of _0x18c144){if(_0x249d98[_0x1d9948(0xef)](_0x268ac2[_0x1d9948(0xc8)]))throw CliErrors['validation'](_0x1d9948(0xf4)+_0x268ac2[_0x1d9948(0xc8)]);_0x249d98[_0x1d9948(0xe9)](_0x268ac2[_0x1d9948(0xc8)],_0x268ac2);}const _0x131598=[];for(const _0x442a06 of _0x41caa2[_0x1d9948(0xcb)]){const _0x2c6644=_0x249d98['get'](_0x442a06[_0x1d9948(0xc8)]);if(!_0x2c6644)throw CliErrors[_0x1d9948(0xc6)](_0x1d9948(0xdd)+_0x442a06[_0x1d9948(0xc8)]);if(_0x2c6644[_0x1d9948(0xf1)]['length']!==_0x442a06[_0x1d9948(0xda)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x442a06['path']);const _0x1dc4a9=bufferSha256(_0x2c6644[_0x1d9948(0xf1)]);if(_0x1dc4a9!==_0x442a06[_0x1d9948(0xed)])throw CliErrors['validation'](_0x1d9948(0xee)+_0x442a06[_0x1d9948(0xc8)]);_0x131598[_0x1d9948(0xe7)]({'path':_0x442a06[_0x1d9948(0xc8)],'bytes':_0x2c6644[_0x1d9948(0xf1)]});}return normalizeLocalFiles(_0x131598);}function a118_0x2456(){const _0x297355=['toLowerCase','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','trim','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','push','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','set','zipSha256','requireOssPath','Missing\x20','sha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','has','string','bytes','10zPXimf','object','Duplicate\x20Skill\x20package\x20entry:\x20','2419998JUDrUK','validation','isArray','path','4940gLEzBs','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','files','959652IaZElz','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20size\x20mismatch.','toString','677838sAaCBE','ossPath','1029052LJtXCb','length','zipSize','964899YWdiyi','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','344057yeiQWU','size','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','some','map','40vPzUuA','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.'];a118_0x2456=function(){return _0x297355;};return a118_0x2456();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x296602,_0x361baf){var _0x1bdf30=a119_0x5b1c,_0x3f34f5=_0x296602();while(!![]){try{var _0x142266=-parseInt(_0x1bdf30(0x136))/0x1+-parseInt(_0x1bdf30(0x13a))/0x2*(-parseInt(_0x1bdf30(0x138))/0x3)+parseInt(_0x1bdf30(0x134))/0x4*(-parseInt(_0x1bdf30(0x139))/0x5)+-parseInt(_0x1bdf30(0x13f))/0x6+parseInt(_0x1bdf30(0x13e))/0x7*(parseInt(_0x1bdf30(0x135))/0x8)+parseInt(_0x1bdf30(0x13d))/0x9*(-parseInt(_0x1bdf30(0x13b))/0xa)+parseInt(_0x1bdf30(0x137))/0xb*(parseInt(_0x1bdf30(0x13c))/0xc);if(_0x142266===_0x361baf)break;else _0x3f34f5['push'](_0x3f34f5['shift']());}catch(_0x1d3ce5){_0x3f34f5['push'](_0x3f34f5['shift']());}}}(a119_0x1a39,0x57789));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a119_0x5b1c(_0x151b48,_0x1d4e42){_0x151b48=_0x151b48-0x134;var _0x1a3945=a119_0x1a39();var _0x5b1cbd=_0x1a3945[_0x151b48];return _0x5b1cbd;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';function a119_0x1a39(){var _0x1e3619=['7809744dHLdYq','18IKGdwK','7dlIVUp','3186384neemxN','1880funRgC','5006936jgOtcM','351957TfFuvo','11kfmFpz','1012017BOfHnd','3375kqXZLr','2bxEkqF','277330KGknlq'];a119_0x1a39=function(){return _0x1e3619;};return a119_0x1a39();}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';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0xc821(){const _0x37c767=['4bPmTlA','840636WWTfTo','223447xaEpJm','2015672MBsJdp','135123IvovRa','834134VpOwBX','8NGiyMd','897174ZYfWtz','632570KmBJVb'];a120_0xc821=function(){return _0x37c767;};return a120_0xc821();}(function(_0x68d148,_0x3cc611){const _0xdb3c8e=a120_0x593a,_0x32b43c=_0x68d148();while(!![]){try{const _0xc87bf6=-parseInt(_0xdb3c8e(0xa6))/0x1+parseInt(_0xdb3c8e(0xad))/0x2*(-parseInt(_0xdb3c8e(0xa8))/0x3)+parseInt(_0xdb3c8e(0xa7))/0x4+parseInt(_0xdb3c8e(0xac))/0x5+parseInt(_0xdb3c8e(0xab))/0x6+parseInt(_0xdb3c8e(0xa9))/0x7*(-parseInt(_0xdb3c8e(0xaa))/0x8)+-parseInt(_0xdb3c8e(0xa5))/0x9;if(_0xc87bf6===_0x3cc611)break;else _0x32b43c['push'](_0x32b43c['shift']());}catch(_0x364c72){_0x32b43c['push'](_0x32b43c['shift']());}}}(a120_0xc821,0x3dfaa));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a120_0x593a(_0x2aeb11,_0x478989){_0x2aeb11=_0x2aeb11-0xa5;const _0xc821e9=a120_0xc821();let _0x593ae0=_0xc821e9[_0x2aeb11];return _0x593ae0;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|