@lovrabet/lovrabet-cli 2.2.5 → 2.2.6
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/README.md +3 -3
- 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.d.ts +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.d.ts +2 -2
- 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.d.ts +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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.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.d.ts +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.d.ts +3 -3
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.d.ts +3 -3
- 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.d.ts +3 -3
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/skills/lovrabet/SKILL.md +16 -15
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +2 -2
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +7 -5
- package/skills/lovrabet/references/dataset-discovery-workflow.md +2 -2
- package/skills/lovrabet/references/lovrabet-app-config.md +1 -1
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-file-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +35 -7
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a135_0xb05b96=a135_0x165d;(function(_0x2e03d6,_0x2ad5ec){const _0x28dc11=a135_0x165d,_0x44ff10=_0x2e03d6();while(!![]){try{const _0x1b4dd3=parseInt(_0x28dc11(0xbe))/0x1+-parseInt(_0x28dc11(0xc5))/0x2*(parseInt(_0x28dc11(0x8f))/0x3)+-parseInt(_0x28dc11(0x9f))/0x4*(parseInt(_0x28dc11(0xbb))/0x5)+parseInt(_0x28dc11(0xbc))/0x6+parseInt(_0x28dc11(0xad))/0x7*(-parseInt(_0x28dc11(0x90))/0x8)+-parseInt(_0x28dc11(0x9b))/0x9*(parseInt(_0x28dc11(0xa4))/0xa)+-parseInt(_0x28dc11(0xb6))/0xb*(-parseInt(_0x28dc11(0x94))/0xc);if(_0x1b4dd3===_0x2ad5ec)break;else _0x44ff10['push'](_0x44ff10['shift']());}catch(_0x1f4650){_0x44ff10['push'](_0x44ff10['shift']());}}}(a135_0x3e26,0x8bcef));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a135_0x2eeded from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';function a135_0x3e26(){const _0x18dc76=['appCode','9mvlFJT','slice','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','4JcRsxa','scope','company','pruneSkillCodes','removed','2723010qxrgea','unchanged','agentsSkillsDir','contentHash','skill','length','filter','map','personal','1417794dkUXTm','managedRoot','set','startsWith','linked-from-protected-root','validation','get','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','isDirectory','5742erZdLd','updated','env','values','name','2600930XScfDj','174504rKODfy','created','27768yOTlhj','has','external-symlink','push','metadata-mismatch','dir','lovrabet','14GyyJuq','isSymbolicLink','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','metadataPath','protectedLinkRoots','runtime-observe','skillCode','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','278004uxJlhi','16JJZhlO','skipped','project','scopes','54300BHxAaY','accessKey','builtin','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','activeSkillCodes','trim'];a135_0x3e26=function(){return _0x18dc76;};return a135_0x3e26();}import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a135_0x2eeded,RESERVED_PROJECT_SKILL_CODES=new Set([a135_0xb05b96(0xc4),a135_0xb05b96(0x8c),'secret-retriever']);export function linkEffectiveRuntimeSkills(_0x14cfa7,_0x24c451){const _0x25fb03=a135_0xb05b96,_0xed5468=new Map();for(const _0xebd9ea of _0x14cfa7){const _0x43a4ba=_0xebd9ea[_0x25fb03(0xa8)][_0x25fb03(0x8d)];if(!_0x43a4ba)continue;const _0x1ad549=_0xed5468[_0x25fb03(0xb3)](_0x43a4ba);(!_0x1ad549||_0xebd9ea[_0x25fb03(0xa0)]===_0x25fb03(0xac))&&_0xed5468[_0x25fb03(0xaf)](_0x43a4ba,_0xebd9ea);}const _0x4d1f7d=[];for(const _0x20cb03 of _0xed5468[_0x25fb03(0xb9)]()){const _0x7c4b3f=requireSkillCode(_0x20cb03['skill']),_0x41d781=readMetadataIfPresent(_0x20cb03[_0x25fb03(0x8a)]);if(_0x41d781?.[_0x25fb03(0x9a)]!==_0x24c451['appCode']||_0x41d781[_0x25fb03(0x8d)]!==_0x7c4b3f)throw CliErrors[_0x25fb03(0xb2)](_0x25fb03(0x89)+_0x24c451[_0x25fb03(0x9a)]+':\x20'+_0x20cb03[_0x25fb03(0x8a)]);const _0x2c06a7=runtimeSkillLinkName(_0x24c451,_0x7c4b3f);for(const _0x17e95f of _0x24c451['skillRoots']){_0x4d1f7d[_0x25fb03(0xc1)](ensureManagedSymlink(resolve(_0x17e95f,_0x2c06a7),_0x20cb03['dir'],_0x24c451,_0x7c4b3f));}}return _0x4d1f7d;}export function pruneStaleRuntimeSkillLinks(_0x43f9fa,_0x18a683,_0x3ae2a6){const _0x2c6ee5=a135_0xb05b96,_0x2fa7d0=new Set([..._0x18a683]['map'](_0xe29fc7=>_0xe29fc7[_0x2c6ee5(0x99)]())[_0x2c6ee5(0xaa)](Boolean)),_0x21524f=_0x3ae2a6?new Set([..._0x3ae2a6][_0x2c6ee5(0xab)](_0x37904b=>_0x37904b[_0x2c6ee5(0x99)]())[_0x2c6ee5(0xaa)](Boolean)):undefined,_0x468e0b=[];for(const _0x264580 of _0x43f9fa['skillRoots']){for(const _0x29ddde of managedTargetSkillLinkPaths(_0x264580,_0x43f9fa)){const _0x2c70a8=runtimeSkillCodeFromLink(_0x43f9fa,_0x29ddde);if(_0x21524f&&!_0x21524f[_0x2c6ee5(0xbf)](_0x2c70a8))continue;if(_0x2fa7d0[_0x2c6ee5(0xbf)](_0x2c70a8))continue;_0x468e0b[_0x2c6ee5(0xc1)](removeManagedSkillLink(_0x29ddde,_0x43f9fa,_0x2c70a8));}}return _0x468e0b;}export function pruneStaleRuntimeSkillCache(_0x579935,_0x5c3419={}){const _0x5e7668=a135_0xb05b96,_0x1c9419=new Set([..._0x579935[_0x5e7668(0x98)]]['map'](_0x5aa4cd=>_0x5aa4cd[_0x5e7668(0x99)]())['filter'](Boolean)),_0x5350f0=_0x579935['pruneSkillCodes']?new Set([..._0x579935[_0x5e7668(0xa2)]][_0x5e7668(0xab)](_0x265dd7=>_0x265dd7[_0x5e7668(0x99)]())[_0x5e7668(0xaa)](Boolean)):undefined,_0x3904ca=_0x579935[_0x5e7668(0x93)]??[_0x5e7668(0xac),_0x5e7668(0xa1)],_0x1320e0=resolve(getRuntimeSkillCacheRoot(_0x579935[_0x5e7668(0xb8)],_0x579935[_0x5e7668(0x95)],_0x5c3419),safePathSegment(_0x579935[_0x5e7668(0x9a)],_0x5e7668(0x9a))),_0x33be22=[];for(const _0x44d373 of _0x3904ca){const _0x15bdef=resolve(_0x1320e0,_0x44d373);if(!existsSync(_0x15bdef))continue;for(const _0x1c4958 of readdirSync(_0x15bdef,{'withFileTypes':!![]})){if(!_0x1c4958[_0x5e7668(0xb5)]())continue;const _0x2d1b8c=_0x1c4958[_0x5e7668(0xba)];if(_0x5350f0&&!_0x5350f0[_0x5e7668(0xbf)](_0x2d1b8c))continue;if(_0x1c9419[_0x5e7668(0xbf)](_0x2d1b8c))continue;const _0x315316=resolve(_0x15bdef,_0x2d1b8c),_0x1ed912=readMetadataIfPresent(resolve(_0x315316,METADATA_FILE));if(_0x1ed912?.['appCode']!==_0x579935['appCode']||_0x1ed912[_0x5e7668(0xa0)]!==_0x44d373||_0x1ed912['skillCode']!==_0x2d1b8c){_0x33be22[_0x5e7668(0xc1)]({'path':_0x315316,'action':_0x5e7668(0x91),'reason':_0x5e7668(0xc2)});continue;}if(isLinkedFromAnyRoot(_0x315316,_0x579935[_0x5e7668(0x8b)]??[])){_0x33be22[_0x5e7668(0xc1)]({'path':_0x315316,'action':_0x5e7668(0x91),'reason':_0x5e7668(0xb1)});continue;}removeSync(_0x315316),_0x33be22[_0x5e7668(0xc1)]({'path':_0x315316,'action':'removed'});}}return _0x33be22;}export function linkGlobalRuntimeSkills(_0x3fdff7,_0x894f2c={}){const _0x51dc8a=a135_0xb05b96,_0x22059b=resolveSkillSyncPaths(_0x894f2c),_0x2160c8=[];for(const _0x3c731f of _0x3fdff7){if(_0x3c731f[_0x51dc8a(0xa0)]!==_0x51dc8a(0x96))throw CliErrors[_0x51dc8a(0xb2)](_0x51dc8a(0x87)+_0x3c731f[_0x51dc8a(0xa0)]);const _0x11382e=requireSkillCode(_0x3c731f[_0x51dc8a(0xa8)]),_0x76989d=copyManagedSkillDirectory(_0x3c731f['dir'],resolve(_0x22059b[_0x51dc8a(0xa6)],_0x11382e));_0x2160c8[_0x51dc8a(0xc1)]({..._0x76989d,'contentHash':_0x3c731f[_0x51dc8a(0xa7)]});}return _0x2160c8;}function a135_0x165d(_0x530487,_0x4a4aa5){_0x530487=_0x530487-0x87;const _0x3e26c3=a135_0x3e26();let _0x165db6=_0x3e26c3[_0x530487];return _0x165db6;}function ensureManagedSymlink(_0xde98ac,_0x571024,_0xcb1ecd,_0x541f6f){const _0x376418=a135_0xb05b96;mkdirSync(dirname(_0xde98ac),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xde98ac)||isDanglingSymlink(_0xde98ac)){const _0x5a2e18=lstatSync(_0xde98ac);if(!_0x5a2e18[_0x376418(0xc6)]())throw CliErrors['validation'](_0x376418(0x97)+_0xde98ac);const _0xb987b7=resolveSymlinkTarget(_0xde98ac);if(!isPathInside(realOrResolved(_0xb987b7),realOrResolved(_0xcb1ecd['managedRoot'])))throw CliErrors[_0x376418(0xb2)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0xde98ac);if(realOrResolved(_0xb987b7)===realOrResolved(_0x571024))return{'path':_0xde98ac,'target':_0x571024,'action':_0x376418(0xa5)};const _0x4b8819=readMetadataIfPresent(resolve(_0xb987b7,METADATA_FILE));if(_0xcb1ecd[_0x376418(0xa0)]===_0x376418(0x92)&&(_0x4b8819?.[_0x376418(0x9a)]!==_0xcb1ecd[_0x376418(0x9a)]||_0x4b8819['skillCode']!==_0x541f6f))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20'+_0xde98ac);return unlinkSync(_0xde98ac),symlinkSync(_0x571024,_0xde98ac,_0x376418(0xc3)),{'path':_0xde98ac,'target':_0x571024,'action':_0x376418(0xb7)};}return symlinkSync(_0x571024,_0xde98ac,'dir'),{'path':_0xde98ac,'target':_0x571024,'action':_0x376418(0xbd)};}function managedTargetSkillLinkPaths(_0x13e110,_0x3f2df2){const _0xa437b7=a135_0xb05b96;if(!existsSync(_0x13e110))return[];const _0x10bc66=_0x3f2df2[_0xa437b7(0x9a)]+'--';return readdirSync(_0x13e110,{'withFileTypes':!![]})[_0xa437b7(0xaa)](_0x62339=>_0x3f2df2[_0xa437b7(0xa0)]===_0xa437b7(0x92)||_0x62339[_0xa437b7(0xba)][_0xa437b7(0xb0)](_0x10bc66))[_0xa437b7(0xab)](_0x3c6986=>resolve(_0x13e110,_0x3c6986[_0xa437b7(0xba)]));}function removeManagedSkillLink(_0x14eb6b,_0x5b9408,_0x160440){const _0x9856e=a135_0xb05b96,_0xd6f5b6=lstatIfPresent(_0x14eb6b);if(!_0xd6f5b6?.[_0x9856e(0xc6)]())return{'path':_0x14eb6b,'action':_0x9856e(0x91),'reason':'not-managed-symlink'};const _0x63b37e=resolveSymlinkTarget(_0x14eb6b);if(!isPathInside(realOrResolved(_0x63b37e),realOrResolved(_0x5b9408[_0x9856e(0xae)])))return{'path':_0x14eb6b,'action':_0x9856e(0x91),'reason':_0x9856e(0xc0)};const _0x5bfde2=readMetadataIfPresent(resolve(_0x63b37e,METADATA_FILE));if(_0x5b9408[_0x9856e(0xa0)]===_0x9856e(0x92)&&(_0x5bfde2?.[_0x9856e(0x9a)]!==_0x5b9408[_0x9856e(0x9a)]||_0x5bfde2[_0x9856e(0x8d)]!==_0x160440))return{'path':_0x14eb6b,'action':_0x9856e(0x91),'reason':_0x9856e(0xc2)};return unlinkSync(_0x14eb6b),{'path':_0x14eb6b,'action':_0x9856e(0xa3)};}function isLinkedFromAnyRoot(_0x1da732,_0x4816f7){const _0x24757d=a135_0xb05b96,_0x559720=realOrResolved(_0x1da732);for(const _0x30828e of _0x4816f7){if(!existsSync(_0x30828e))continue;for(const _0x1d2d0e of readdirSync(_0x30828e,{'withFileTypes':!![]})){if(!_0x1d2d0e[_0x24757d(0xc6)]())continue;const _0x280b0a=resolve(_0x30828e,_0x1d2d0e[_0x24757d(0xba)]);if(realOrResolved(resolveSymlinkTarget(_0x280b0a))===_0x559720)return!![];}}return![];}function runtimeSkillLinkName(_0x574d14,_0x1b3a5a){const _0x577532=a135_0xb05b96,_0x507ac1=safePathSegment(_0x1b3a5a,_0x577532(0x8d));if(_0x574d14[_0x577532(0xa0)]===_0x577532(0x92)&&RESERVED_PROJECT_SKILL_CODES[_0x577532(0xbf)](_0x507ac1))throw CliErrors[_0x577532(0xb2)](_0x577532(0x88)+_0x507ac1);return _0x574d14[_0x577532(0xa0)]===_0x577532(0x92)?_0x507ac1:_0x574d14[_0x577532(0x9a)]+'--'+_0x507ac1;}function runtimeSkillCodeFromLink(_0x419e06,_0x55fe37){const _0x97865a=a135_0xb05b96,_0x4ea05a=basename(_0x55fe37);return _0x419e06['scope']===_0x97865a(0x92)?_0x4ea05a:_0x4ea05a[_0x97865a(0x9c)]((_0x419e06[_0x97865a(0x9a)]+'--')[_0x97865a(0xa9)]);}export function copyManagedSkillDirectory(_0x59a715,_0xe7fb11){const _0x4a7717=a135_0xb05b96,_0x6d88d7=resolve(_0xe7fb11,METADATA_FILE),_0x3ff01c=existsSync(_0xe7fb11);if(_0x3ff01c){const _0x2e15f8=lstatSync(_0xe7fb11);if(_0x2e15f8[_0x4a7717(0xc6)]())throw CliErrors[_0x4a7717(0xb2)](_0x4a7717(0xb4)+_0xe7fb11);if(!_0x2e15f8['isDirectory']())throw CliErrors[_0x4a7717(0xb2)](_0x4a7717(0x9e)+_0xe7fb11);const _0x93442c=readMetadataIfPresent(_0x6d88d7);if(_0x93442c?.['scope']!==_0x4a7717(0x96))throw CliErrors['validation'](_0x4a7717(0x8e)+_0xe7fb11);}ensureDirSync(dirname(_0xe7fb11));const _0x3616bc=_0x3ff01c?readMetadataIfPresent(_0x6d88d7)?.[_0x4a7717(0xa7)]:undefined,_0x2752ad=readMetadataIfPresent(resolve(_0x59a715,METADATA_FILE))?.[_0x4a7717(0xa7)];return _0x3ff01c&&removeSync(_0xe7fb11),copySkillDirectory(_0x59a715,_0xe7fb11),{'path':_0xe7fb11,'target':_0x59a715,'action':!_0x3ff01c?_0x4a7717(0xbd):_0x3616bc===_0x2752ad?_0x4a7717(0xa5):'updated'};}function copySkillDirectory(_0x3838f7,_0x45c32b){copySync(_0x3838f7,_0x45c32b,{'dereference':![],'overwrite':!![],'filter'(_0x113215){const _0xe30d1e=a135_0x165d;if(lstatSync(_0x113215)[_0xe30d1e(0xc6)]())throw CliErrors[_0xe30d1e(0xb2)](_0xe30d1e(0x9d)+_0x113215);return!![];}});}
|
|
1
|
+
const a135_0x33224d=a135_0x32a4;(function(_0x3a1a0f,_0x3ba26c){const _0x20d373=a135_0x32a4,_0x3f4c60=_0x3a1a0f();while(!![]){try{const _0x5e6474=parseInt(_0x20d373(0x13c))/0x1*(parseInt(_0x20d373(0x114))/0x2)+-parseInt(_0x20d373(0x10a))/0x3+-parseInt(_0x20d373(0x120))/0x4*(parseInt(_0x20d373(0x126))/0x5)+-parseInt(_0x20d373(0x111))/0x6*(-parseInt(_0x20d373(0x138))/0x7)+parseInt(_0x20d373(0x13f))/0x8+-parseInt(_0x20d373(0x119))/0x9*(-parseInt(_0x20d373(0x115))/0xa)+-parseInt(_0x20d373(0x141))/0xb*(parseInt(_0x20d373(0x123))/0xc);if(_0x5e6474===_0x3ba26c)break;else _0x3f4c60['push'](_0x3f4c60['shift']());}catch(_0x2e78db){_0x3f4c60['push'](_0x3f4c60['shift']());}}}(a135_0x5585,0xb737b));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a135_0x480ec3 from'fs-extra';function a135_0x5585(){const _0xa08b96=['skillRoots','name','isDirectory','dir','appCode','567195nOkdlg','has','created','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','removed','skillCode','6ycmuDH','managedRoot','linked-from-protected-root','494250cUwuhB','2890XKAeai','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','get','contentHash','10062cBJWTm','map','skill','startsWith','updated','filter','project','1708852KpkhnQ','runtime-observe','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','29112hANkif','protectedLinkRoots','slice','10soniOA','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','push','lovrabet','scope','pruneSkillCodes','metadata-mismatch','env','accessKey','unchanged','metadataPath','values','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','scopes','skipped','length','isSymbolicLink','1832677UcvfoD','trim','builtin','not-managed-symlink','5YSmUvV','personal','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','3882384CQmViq','secret-retriever','2321WVGNVW','company','validation'];a135_0x5585=function(){return _0xa08b96;};return a135_0x5585();}import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';function a135_0x32a4(_0x4ae82e,_0x55517c){_0x4ae82e=_0x4ae82e-0x105;const _0x55858b=a135_0x5585();let _0x32a447=_0x55858b[_0x4ae82e];return _0x32a447;}import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a135_0x480ec3,RESERVED_PROJECT_SKILL_CODES=new Set([a135_0x33224d(0x12a),a135_0x33224d(0x121),a135_0x33224d(0x140)]);export function linkEffectiveRuntimeSkills(_0xa372d6,_0xfdc7d1){const _0x3f41e6=a135_0x33224d,_0x28690d=new Map();for(const _0x679122 of _0xa372d6){const _0x13fedb=_0x679122[_0x3f41e6(0x11b)][_0x3f41e6(0x110)];if(!_0x13fedb)continue;const _0x29ff1a=_0x28690d[_0x3f41e6(0x117)](_0x13fedb);(!_0x29ff1a||_0x679122['scope']===_0x3f41e6(0x13d))&&_0x28690d['set'](_0x13fedb,_0x679122);}const _0x575724=[];for(const _0xb1b28a of _0x28690d[_0x3f41e6(0x132)]()){const _0x2c1bcc=requireSkillCode(_0xb1b28a[_0x3f41e6(0x11b)]),_0x3b21cf=readMetadataIfPresent(_0xb1b28a['metadataPath']);if(_0x3b21cf?.[_0x3f41e6(0x109)]!==_0xfdc7d1[_0x3f41e6(0x109)]||_0x3b21cf[_0x3f41e6(0x110)]!==_0x2c1bcc)throw CliErrors[_0x3f41e6(0x143)](_0x3f41e6(0x116)+_0xfdc7d1[_0x3f41e6(0x109)]+':\x20'+_0xb1b28a[_0x3f41e6(0x131)]);const _0x3d5f30=runtimeSkillLinkName(_0xfdc7d1,_0x2c1bcc);for(const _0x1bab3a of _0xfdc7d1[_0x3f41e6(0x105)]){_0x575724[_0x3f41e6(0x129)](ensureManagedSymlink(resolve(_0x1bab3a,_0x3d5f30),_0xb1b28a['dir'],_0xfdc7d1,_0x2c1bcc));}}return _0x575724;}export function pruneStaleRuntimeSkillLinks(_0x325eae,_0x662633,_0x1611f1){const _0x36fdac=a135_0x33224d,_0xd49321=new Set([..._0x662633]['map'](_0xe16f88=>_0xe16f88['trim']())['filter'](Boolean)),_0x48ba67=_0x1611f1?new Set([..._0x1611f1][_0x36fdac(0x11a)](_0x18c91e=>_0x18c91e[_0x36fdac(0x139)]())[_0x36fdac(0x11e)](Boolean)):undefined,_0x473293=[];for(const _0x5d8d11 of _0x325eae[_0x36fdac(0x105)]){for(const _0x41353e of managedTargetSkillLinkPaths(_0x5d8d11,_0x325eae)){const _0x2f9faa=runtimeSkillCodeFromLink(_0x325eae,_0x41353e);if(_0x48ba67&&!_0x48ba67['has'](_0x2f9faa))continue;if(_0xd49321['has'](_0x2f9faa))continue;_0x473293[_0x36fdac(0x129)](removeManagedSkillLink(_0x41353e,_0x325eae,_0x2f9faa));}}return _0x473293;}export function pruneStaleRuntimeSkillCache(_0x1595aa,_0x4686b3={}){const _0x408776=a135_0x33224d,_0x4c8fa6=new Set([..._0x1595aa['activeSkillCodes']][_0x408776(0x11a)](_0x323d76=>_0x323d76['trim']())[_0x408776(0x11e)](Boolean)),_0x21b266=_0x1595aa[_0x408776(0x12c)]?new Set([..._0x1595aa[_0x408776(0x12c)]][_0x408776(0x11a)](_0x422dd6=>_0x422dd6[_0x408776(0x139)]())[_0x408776(0x11e)](Boolean)):undefined,_0x54cec4=_0x1595aa[_0x408776(0x134)]??[_0x408776(0x13d),_0x408776(0x142)],_0x5a94ef=resolve(getRuntimeSkillCacheRoot(_0x1595aa[_0x408776(0x12e)],_0x1595aa[_0x408776(0x12f)],_0x4686b3),safePathSegment(_0x1595aa['appCode'],'appCode')),_0x3ed9f6=[];for(const _0x5a0e28 of _0x54cec4){const _0x1003c6=resolve(_0x5a94ef,_0x5a0e28);if(!existsSync(_0x1003c6))continue;for(const _0x436b10 of readdirSync(_0x1003c6,{'withFileTypes':!![]})){if(!_0x436b10[_0x408776(0x107)]())continue;const _0x253d04=_0x436b10['name'];if(_0x21b266&&!_0x21b266['has'](_0x253d04))continue;if(_0x4c8fa6[_0x408776(0x10b)](_0x253d04))continue;const _0x284dba=resolve(_0x1003c6,_0x253d04),_0x28a11f=readMetadataIfPresent(resolve(_0x284dba,METADATA_FILE));if(_0x28a11f?.[_0x408776(0x109)]!==_0x1595aa['appCode']||_0x28a11f[_0x408776(0x12b)]!==_0x5a0e28||_0x28a11f[_0x408776(0x110)]!==_0x253d04){_0x3ed9f6[_0x408776(0x129)]({'path':_0x284dba,'action':_0x408776(0x135),'reason':'metadata-mismatch'});continue;}if(isLinkedFromAnyRoot(_0x284dba,_0x1595aa[_0x408776(0x124)]??[])){_0x3ed9f6[_0x408776(0x129)]({'path':_0x284dba,'action':_0x408776(0x135),'reason':_0x408776(0x113)});continue;}removeSync(_0x284dba),_0x3ed9f6['push']({'path':_0x284dba,'action':'removed'});}}return _0x3ed9f6;}export function linkGlobalRuntimeSkills(_0x319ae6,_0x4aeb6e={}){const _0x1b61df=a135_0x33224d,_0x310c9c=resolveSkillSyncPaths(_0x4aeb6e),_0x3b9750=[];for(const _0x25cbd4 of _0x319ae6){if(_0x25cbd4[_0x1b61df(0x12b)]!==_0x1b61df(0x13a))throw CliErrors[_0x1b61df(0x143)](_0x1b61df(0x127)+_0x25cbd4[_0x1b61df(0x12b)]);const _0x859dad=requireSkillCode(_0x25cbd4[_0x1b61df(0x11b)]),_0x5afc4f=copyManagedSkillDirectory(_0x25cbd4[_0x1b61df(0x108)],resolve(_0x310c9c['agentsSkillsDir'],_0x859dad));_0x3b9750['push']({..._0x5afc4f,'contentHash':_0x25cbd4[_0x1b61df(0x118)]});}return _0x3b9750;}function ensureManagedSymlink(_0xe623f7,_0x37bf26,_0x52cabf,_0x26ad86){const _0x465ef0=a135_0x33224d;mkdirSync(dirname(_0xe623f7),{'recursive':!![],'mode':0x1c0});if(existsSync(_0xe623f7)||isDanglingSymlink(_0xe623f7)){const _0x3224cb=lstatSync(_0xe623f7);if(!_0x3224cb['isSymbolicLink']())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0xe623f7);const _0x33cb9d=resolveSymlinkTarget(_0xe623f7);if(!isPathInside(realOrResolved(_0x33cb9d),realOrResolved(_0x52cabf[_0x465ef0(0x112)])))throw CliErrors[_0x465ef0(0x143)](_0x465ef0(0x133)+_0xe623f7);if(realOrResolved(_0x33cb9d)===realOrResolved(_0x37bf26))return{'path':_0xe623f7,'target':_0x37bf26,'action':'unchanged'};const _0x13af5b=readMetadataIfPresent(resolve(_0x33cb9d,METADATA_FILE));if(_0x52cabf[_0x465ef0(0x12b)]===_0x465ef0(0x11f)&&(_0x13af5b?.[_0x465ef0(0x109)]!==_0x52cabf[_0x465ef0(0x109)]||_0x13af5b[_0x465ef0(0x110)]!==_0x26ad86))throw CliErrors['validation'](_0x465ef0(0x10e)+_0xe623f7);return unlinkSync(_0xe623f7),symlinkSync(_0x37bf26,_0xe623f7,'dir'),{'path':_0xe623f7,'target':_0x37bf26,'action':_0x465ef0(0x11d)};}return symlinkSync(_0x37bf26,_0xe623f7,_0x465ef0(0x108)),{'path':_0xe623f7,'target':_0x37bf26,'action':_0x465ef0(0x10c)};}function managedTargetSkillLinkPaths(_0x51fbcd,_0x3ac24f){const _0x413223=a135_0x33224d;if(!existsSync(_0x51fbcd))return[];const _0x398810=_0x3ac24f[_0x413223(0x109)]+'--';return readdirSync(_0x51fbcd,{'withFileTypes':!![]})[_0x413223(0x11e)](_0x308a02=>_0x3ac24f[_0x413223(0x12b)]===_0x413223(0x11f)||_0x308a02['name'][_0x413223(0x11c)](_0x398810))[_0x413223(0x11a)](_0x54d09a=>resolve(_0x51fbcd,_0x54d09a[_0x413223(0x106)]));}function removeManagedSkillLink(_0x2765e8,_0x2167f6,_0x174971){const _0x7c7c8f=a135_0x33224d,_0x578a31=lstatIfPresent(_0x2765e8);if(!_0x578a31?.[_0x7c7c8f(0x137)]())return{'path':_0x2765e8,'action':'skipped','reason':_0x7c7c8f(0x13b)};const _0x4f1a1d=resolveSymlinkTarget(_0x2765e8);if(!isPathInside(realOrResolved(_0x4f1a1d),realOrResolved(_0x2167f6['managedRoot'])))return{'path':_0x2765e8,'action':_0x7c7c8f(0x135),'reason':'external-symlink'};const _0x132edf=readMetadataIfPresent(resolve(_0x4f1a1d,METADATA_FILE));if(_0x2167f6[_0x7c7c8f(0x12b)]==='project'&&(_0x132edf?.[_0x7c7c8f(0x109)]!==_0x2167f6['appCode']||_0x132edf['skillCode']!==_0x174971))return{'path':_0x2765e8,'action':'skipped','reason':_0x7c7c8f(0x12d)};return unlinkSync(_0x2765e8),{'path':_0x2765e8,'action':_0x7c7c8f(0x10f)};}function isLinkedFromAnyRoot(_0x3819c3,_0x4e980b){const _0x1df640=a135_0x33224d,_0x408142=realOrResolved(_0x3819c3);for(const _0x5df03f of _0x4e980b){if(!existsSync(_0x5df03f))continue;for(const _0x4c693e of readdirSync(_0x5df03f,{'withFileTypes':!![]})){if(!_0x4c693e[_0x1df640(0x137)]())continue;const _0xfa063b=resolve(_0x5df03f,_0x4c693e['name']);if(realOrResolved(resolveSymlinkTarget(_0xfa063b))===_0x408142)return!![];}}return![];}function runtimeSkillLinkName(_0x33b94c,_0x1c607b){const _0x477ec1=a135_0x33224d,_0x54b807=safePathSegment(_0x1c607b,_0x477ec1(0x110));if(_0x33b94c['scope']==='project'&&RESERVED_PROJECT_SKILL_CODES[_0x477ec1(0x10b)](_0x54b807))throw CliErrors[_0x477ec1(0x143)](_0x477ec1(0x128)+_0x54b807);return _0x33b94c[_0x477ec1(0x12b)]===_0x477ec1(0x11f)?_0x54b807:_0x33b94c['appCode']+'--'+_0x54b807;}function runtimeSkillCodeFromLink(_0x2db720,_0x265c50){const _0x3077dd=a135_0x33224d,_0x19a55e=basename(_0x265c50);return _0x2db720[_0x3077dd(0x12b)]==='project'?_0x19a55e:_0x19a55e[_0x3077dd(0x125)]((_0x2db720[_0x3077dd(0x109)]+'--')[_0x3077dd(0x136)]);}export function copyManagedSkillDirectory(_0x4c4cad,_0x1b9c76){const _0x561a39=a135_0x33224d,_0x3695a3=resolve(_0x1b9c76,METADATA_FILE),_0x16e5b3=existsSync(_0x1b9c76);if(_0x16e5b3){const _0x12ec8a=lstatSync(_0x1b9c76);if(_0x12ec8a[_0x561a39(0x137)]())throw CliErrors[_0x561a39(0x143)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x1b9c76);if(!_0x12ec8a[_0x561a39(0x107)]())throw CliErrors['validation'](_0x561a39(0x13e)+_0x1b9c76);const _0x1b4100=readMetadataIfPresent(_0x3695a3);if(_0x1b4100?.[_0x561a39(0x12b)]!=='builtin')throw CliErrors[_0x561a39(0x143)](_0x561a39(0x122)+_0x1b9c76);}ensureDirSync(dirname(_0x1b9c76));const _0x4e4456=_0x16e5b3?readMetadataIfPresent(_0x3695a3)?.['contentHash']:undefined,_0x521e24=readMetadataIfPresent(resolve(_0x4c4cad,METADATA_FILE))?.[_0x561a39(0x118)];return _0x16e5b3&&removeSync(_0x1b9c76),copySkillDirectory(_0x4c4cad,_0x1b9c76),{'path':_0x1b9c76,'target':_0x4c4cad,'action':!_0x16e5b3?'created':_0x4e4456===_0x521e24?_0x561a39(0x130):'updated'};}function copySkillDirectory(_0x1d522b,_0xc02b14){copySync(_0x1d522b,_0xc02b14,{'dereference':![],'overwrite':!![],'filter'(_0x397264){const _0x311751=a135_0x32a4;if(lstatSync(_0x397264)[_0x311751(0x137)]())throw CliErrors['validation'](_0x311751(0x10d)+_0x397264);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a136_0x10d7(){const _0x44f5cd=['314232jWvEuQ','tags','trim','1344736wAjcMv','scope','cacheDir','isArray','values','local','appCode','linkedPath','\x20!=\x20','source','get','push','scopes','skillRoots','533265vnvYkI','7CbslbN','accessKey','320094RXGzgO','name','dir','localeCompare','skillMdPath','filter','1017798jZqTbK','898920uNybjq','skillCode','isDirectory','719852PDmaAY','set','map','project','code','has','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','from','sort','linkedPaths','cache'];a136_0x10d7=function(){return _0x44f5cd;};return a136_0x10d7();}(function(_0x3551e3,_0x1aebc2){const _0xed76bb=a136_0x7d7f,_0x4374f7=_0x3551e3();while(!![]){try{const _0x550f3b=parseInt(_0xed76bb(0xd4))/0x1+-parseInt(_0xed76bb(0xf2))/0x2+parseInt(_0xed76bb(0xee))/0x3+parseInt(_0xed76bb(0xef))/0x4+-parseInt(_0xed76bb(0xe5))/0x5+-parseInt(_0xed76bb(0xe8))/0x6+-parseInt(_0xed76bb(0xe6))/0x7*(parseInt(_0xed76bb(0xd7))/0x8);if(_0x550f3b===_0x1aebc2)break;else _0x4374f7['push'](_0x4374f7['shift']());}catch(_0x54471a){_0x4374f7['push'](_0x4374f7['shift']());}}}(a136_0x10d7,0x2e700));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0xf9efbf,_0x25c9ed,_0x1c8ce0={}){const _0x26cb61=a136_0x7d7f,_0x574916=safePathSegment(_0xf9efbf[_0x26cb61(0xdd)],_0x26cb61(0xdd));if(_0x25c9ed['appCode']!==_0x574916)throw CliErrors['validation'](_0x26cb61(0xf8)+_0x25c9ed[_0x26cb61(0xdd)]+_0x26cb61(0xdf)+_0x574916);const _0x49f283=normalizeRuntimeSkillScopes(_0xf9efbf[_0x26cb61(0xe3)]),_0x489427=new Set(_0x49f283),_0x3d4226=_0xf9efbf[_0x26cb61(0xf6)]?.[_0x26cb61(0xd6)](),_0xa64ef2=new Map(),_0x4d46ef=resolve(getRuntimeSkillCacheRoot(_0xf9efbf['env'],_0xf9efbf[_0x26cb61(0xe7)],_0x1c8ce0),_0x574916);for(const _0xb25db2 of _0x49f283){for(const _0x4f03bd of localSkillEntryDirs(resolve(_0x4d46ef,_0xb25db2))){collectLocalRuntimeSkill(_0xa64ef2,_0x4f03bd,{'appCode':_0x574916,'scopes':_0x489427,'code':_0x3d4226,'source':_0x26cb61(0xfc)});}}for(const _0x2429e0 of _0x25c9ed[_0x26cb61(0xe4)]){for(const _0x32e677 of localSkillLinkCandidates(_0x2429e0,_0x25c9ed,_0x489427)){collectLocalRuntimeSkill(_0xa64ef2,_0x32e677,{'appCode':_0x574916,'scopes':_0x489427,'code':_0x3d4226,'source':'link','linkedPath':_0x32e677});}}return Array[_0x26cb61(0xf9)](_0xa64ef2[_0x26cb61(0xdb)]())[_0x26cb61(0xfa)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x1ff789){const _0x2035ff=a136_0x7d7f;if(!existsSync(_0x1ff789))return[];return readdirSync(_0x1ff789,{'withFileTypes':!![]})['filter'](_0x126dc2=>_0x126dc2['isDirectory']()||_0x126dc2['isSymbolicLink']())[_0x2035ff(0xf4)](_0x1a51f7=>resolve(_0x1ff789,_0x1a51f7[_0x2035ff(0xe9)]));}function localSkillLinkCandidates(_0x2daf2f,_0x5d8a5b,_0x1824a1){const _0x5bbaa3=a136_0x7d7f;if(!existsSync(_0x2daf2f))return[];const _0x15ce42=_0x5d8a5b[_0x5bbaa3(0xdd)]+'--';return readdirSync(_0x2daf2f,{'withFileTypes':!![]})[_0x5bbaa3(0xed)](_0x261ee0=>_0x261ee0[_0x5bbaa3(0xf1)]()||_0x261ee0['isSymbolicLink']())[_0x5bbaa3(0xed)](_0x387135=>_0x5d8a5b[_0x5bbaa3(0xd8)]===_0x5bbaa3(0xf5)||_0x387135[_0x5bbaa3(0xe9)]['startsWith'](_0x15ce42)||_0x1824a1[_0x5bbaa3(0xf7)]('builtin'))[_0x5bbaa3(0xf4)](_0x4c9d54=>resolve(_0x2daf2f,_0x4c9d54[_0x5bbaa3(0xe9)]));}function collectLocalRuntimeSkill(_0x440afa,_0x4b2f82,_0x4424f9){const _0x516315=a136_0x7d7f,_0x301fcb=resolve(_0x4b2f82,METADATA_FILE),_0xc78e75=readMetadataIfPresent(_0x301fcb);if(!_0xc78e75)return;if(_0xc78e75[_0x516315(0xdd)]!==_0x4424f9[_0x516315(0xdd)])return;if(!isRuntimeSkillScope(_0xc78e75['scope'])||!_0x4424f9[_0x516315(0xe3)][_0x516315(0xf7)](_0xc78e75[_0x516315(0xd8)]))return;const _0x5ca75b=_0xc78e75[_0x516315(0xf0)]?.[_0x516315(0xd6)]();if(!_0x5ca75b)return;if(_0x4424f9['code']&&_0x5ca75b!==_0x4424f9[_0x516315(0xf6)])return;const _0x4f5bce=_0xc78e75[_0x516315(0xd8)]+':'+_0x5ca75b,_0x50ee4e=_0x4424f9['linkedPath']?[_0x4424f9[_0x516315(0xde)]]:[],_0x54d37b=_0x440afa[_0x516315(0xe1)](_0x4f5bce);if(_0x54d37b){_0x4424f9[_0x516315(0xe0)]==='cache'&&(_0x54d37b[_0x516315(0xea)]=_0x4b2f82,_0x54d37b[_0x516315(0xd9)]=_0x4b2f82,_0x54d37b[_0x516315(0xec)]=resolve(_0x4b2f82,SKILL_FILE),_0x54d37b['metadataPath']=_0x301fcb);for(const _0x10e823 of _0x50ee4e){!_0x54d37b['linkedPaths']['includes'](_0x10e823)&&_0x54d37b['linkedPaths'][_0x516315(0xe2)](_0x10e823);}_0x54d37b[_0x516315(0xfb)][_0x516315(0xfa)]();return;}_0x440afa[_0x516315(0xf3)](_0x4f5bce,{..._0xc78e75,'tags':Array[_0x516315(0xda)](_0xc78e75['tags'])?_0xc78e75[_0x516315(0xd5)]:[],'scope':_0xc78e75[_0x516315(0xd8)],'source':_0x516315(0xdc),'dir':_0x4b2f82,'cacheDir':_0x4424f9[_0x516315(0xe0)]==='cache'?_0x4b2f82:undefined,'skillMdPath':resolve(_0x4b2f82,SKILL_FILE),'metadataPath':_0x301fcb,'linkedPaths':_0x50ee4e});}function a136_0x7d7f(_0x4e3f59,_0xe3076a){_0x4e3f59=_0x4e3f59-0xd4;const _0x10d71e=a136_0x10d7();let _0x7d7f76=_0x10d71e[_0x4e3f59];return _0x7d7f76;}function compareLocalRuntimeSkills(_0xd2e809,_0x47aa44){const _0x3c3a28=a136_0x7d7f,_0x1aa9d6={'personal':0x0,'company':0x1,'builtin':0x2};return _0x1aa9d6[_0xd2e809[_0x3c3a28(0xd8)]]-_0x1aa9d6[_0x47aa44[_0x3c3a28(0xd8)]]||_0xd2e809[_0x3c3a28(0xf0)][_0x3c3a28(0xeb)](_0x47aa44['skillCode'])||_0xd2e809[_0x3c3a28(0xea)][_0x3c3a28(0xeb)](_0x47aa44[_0x3c3a28(0xea)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a137_0x5045(_0xd61601,_0x5a5e3a){_0xd61601=_0xd61601-0xf1;const _0xf40675=a137_0xf406();let _0x50457e=_0xf40675[_0xd61601];return _0x50457e;}(function(_0x52c8c1,_0x4db4ba){const _0x578a87=a137_0x5045,_0xf905a2=_0x52c8c1();while(!![]){try{const _0x1f85ad=-parseInt(_0x578a87(0x11b))/0x1*(parseInt(_0x578a87(0x103))/0x2)+parseInt(_0x578a87(0x105))/0x3+-parseInt(_0x578a87(0xfd))/0x4+parseInt(_0x578a87(0x102))/0x5*(-parseInt(_0x578a87(0x113))/0x6)+parseInt(_0x578a87(0xf7))/0x7*(parseInt(_0x578a87(0x10c))/0x8)+parseInt(_0x578a87(0x114))/0x9+parseInt(_0x578a87(0x104))/0xa;if(_0x1f85ad===_0x4db4ba)break;else _0xf905a2['push'](_0xf905a2['shift']());}catch(_0x4102b0){_0xf905a2['push'](_0xf905a2['shift']());}}}(a137_0xf406,0xd5a59));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';function a137_0xf406(){const _0x11197d=['size','add','3540796DPXgNu','isFile','compare','values','name','5JdlgKA','2XTKKqP','22982420RrPNWA','2675586bnGMqX','isArray','string','toString','validation','Skill\x20file\x20size\x20is\x20invalid:\x20','isSafeInteger','48jGOhQG','Skill\x20file\x20path\x20must\x20be\x20text.','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','isSymbolicLink','trim','Unsafe\x20Skill\x20file\x20path:\x20','from','5849556xaUfPB','5956767gDJnop','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','toLowerCase','content','replace','split','isDirectory','1467721FcFrGc','utf8','localeCompare','sha256','set','test','path','sort','409472WDuiqi','bytes','has','Duplicate\x20Skill\x20file\x20path:\x20'];a137_0xf406=function(){return _0x11197d;};return a137_0xf406();}export function fileContent(_0x12dea5){const _0x542579=a137_0x5045;return _0x12dea5[_0x542579(0xf8)]??Buffer[_0x542579(0x112)](_0x12dea5[_0x542579(0x117)]??'',_0x542579(0x11c));}export function fileText(_0x10448b){const _0x55e606=a137_0x5045;return fileContent(_0x10448b)[_0x55e606(0x108)](_0x55e606(0x11c));}export function normalizeLocalFiles(_0x3b989d){const _0x2e9fb8=a137_0x5045;if(!Array[_0x2e9fb8(0x106)](_0x3b989d)||_0x3b989d['length']===0x0)return[];const _0x503f34=new Map();for(const _0x41c1b7 of _0x3b989d){if(!_0x41c1b7||typeof _0x41c1b7!=='object'||typeof _0x41c1b7[_0x2e9fb8(0xf5)]!==_0x2e9fb8(0x107))throw CliErrors[_0x2e9fb8(0x109)](_0x2e9fb8(0x10d));const _0x59a928=normalizeSkillRelativePath(_0x41c1b7[_0x2e9fb8(0xf5)]);if(_0x503f34[_0x2e9fb8(0xf9)](_0x59a928))throw CliErrors[_0x2e9fb8(0x109)](_0x2e9fb8(0xfa)+_0x59a928);if(_0x41c1b7[_0x2e9fb8(0xf8)]!==undefined&&!Buffer['isBuffer'](_0x41c1b7[_0x2e9fb8(0xf8)]))throw CliErrors[_0x2e9fb8(0x109)](_0x2e9fb8(0x115)+_0x59a928);if(_0x41c1b7[_0x2e9fb8(0xf8)]===undefined&&typeof _0x41c1b7[_0x2e9fb8(0x117)]!=='string')throw CliErrors[_0x2e9fb8(0x109)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x59a928);const _0x295e35=fileContent(_0x41c1b7);_0x503f34[_0x2e9fb8(0xf3)](_0x59a928,{'path':_0x59a928,'bytes':_0x295e35});}return Array[_0x2e9fb8(0x112)](_0x503f34[_0x2e9fb8(0x100)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x57633a){const _0x121068=a137_0x5045;if(!Array[_0x121068(0x106)](_0x57633a)||_0x57633a['length']===0x0)return[];const _0x5651a4=new Map();for(const _0x410de8 of _0x57633a){if(!_0x410de8||typeof _0x410de8!=='object'||typeof _0x410de8['path']!==_0x121068(0x107))throw CliErrors[_0x121068(0x109)](_0x121068(0x10d));const _0xa6cf7=normalizeSkillRelativePath(_0x410de8[_0x121068(0xf5)]);if(_0x5651a4[_0x121068(0xf9)](_0xa6cf7))throw CliErrors[_0x121068(0x109)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0xa6cf7);if(!isSha256Hex(_0x410de8[_0x121068(0xf2)]))throw CliErrors['validation']('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0xa6cf7);if(!Number[_0x121068(0x10b)](_0x410de8[_0x121068(0xfb)])||_0x410de8[_0x121068(0xfb)]<0x0)throw CliErrors[_0x121068(0x109)](_0x121068(0x10a)+_0xa6cf7);_0x5651a4[_0x121068(0xf3)](_0xa6cf7,{'path':_0xa6cf7,'sha256':_0x410de8[_0x121068(0xf2)][_0x121068(0x116)](),'size':_0x410de8[_0x121068(0xfb)]});}return Array['from'](_0x5651a4[_0x121068(0x100)]())[_0x121068(0xf6)](compareSkillFiles);}export function scanSkillDirectory(_0x55f0fb,_0x460409={}){const _0x3e1b12=realpathSync(_0x55f0fb),_0x49b39c=canonicalExcludedFilePaths(_0x460409['excludedFilePaths']),_0x12eafb=[];function _0x44e738(_0x42e2e9){const _0xd1a58d=a137_0x5045,_0x18c71a=readdirSync(_0x42e2e9,{'withFileTypes':!![]})[_0xd1a58d(0xf6)]((_0x4893b2,_0x2b066a)=>_0x4893b2[_0xd1a58d(0x101)][_0xd1a58d(0xf1)](_0x2b066a[_0xd1a58d(0x101)]));for(const _0x336af3 of _0x18c71a){if(_0x336af3['isDirectory']()&&IGNORED_DIR_NAMES[_0xd1a58d(0xf9)](_0x336af3['name']))continue;if(IGNORED_FILE_NAMES[_0xd1a58d(0xf9)](_0x336af3[_0xd1a58d(0x101)]))continue;const _0x2bb94=resolve(_0x42e2e9,_0x336af3['name']);if(isExcludedFilePath(_0x2bb94,_0x49b39c))continue;if(_0x336af3[_0xd1a58d(0x10f)]())throw CliErrors[_0xd1a58d(0x109)](_0xd1a58d(0x10e)+_0x2bb94);const _0x13eecd=toPosixPath(relative(_0x3e1b12,_0x2bb94));if(_0x336af3[_0xd1a58d(0x11a)]()){_0x44e738(_0x2bb94);continue;}if(!_0x336af3[_0xd1a58d(0xfe)]())continue;validateSkillRelativePath(_0x13eecd);const _0x1a0e85=readFileSync(_0x2bb94);_0x12eafb['push']({'path':_0x13eecd,'bytes':_0x1a0e85});}}return _0x44e738(_0x3e1b12),normalizeLocalFiles(_0x12eafb);}function canonicalExcludedFilePaths(_0x4df0c0){const _0x417c1d=a137_0x5045,_0xc80428=new Set();for(const _0x450cc2 of _0x4df0c0??[]){const _0x717693=resolve(_0x450cc2);_0xc80428[_0x417c1d(0xfc)](_0x717693);try{_0xc80428[_0x417c1d(0xfc)](realpathSync(_0x717693));}catch{}}return _0xc80428;}function isExcludedFilePath(_0x12062c,_0x4fc833){if(_0x4fc833['has'](_0x12062c))return!![];if(_0x4fc833['size']===0x0)return![];try{return _0x4fc833['has'](realpathSync(_0x12062c));}catch{return![];}}export function compareSkillFiles(_0x2a5cd6,_0x9695c5){const _0xeed018=a137_0x5045;if(_0x2a5cd6['path']===SKILL_FILE)return _0x9695c5[_0xeed018(0xf5)]===SKILL_FILE?0x0:-0x1;if(_0x9695c5[_0xeed018(0xf5)]===SKILL_FILE)return 0x1;return Buffer[_0xeed018(0xff)](Buffer['from'](_0x2a5cd6[_0xeed018(0xf5)],_0xeed018(0x11c)),Buffer[_0xeed018(0x112)](_0x9695c5[_0xeed018(0xf5)],_0xeed018(0x11c)));}export function normalizeSkillRelativePath(_0x1ac484){const _0x46d832=a137_0x5045,_0x466a7b=toPosixPath(_0x1ac484[_0x46d832(0x110)]());return validateSkillRelativePath(_0x466a7b),_0x466a7b;}export function validateSkillRelativePath(_0x4fb2d0){const _0x3af540=a137_0x5045;if(!_0x4fb2d0||_0x4fb2d0['startsWith']('/')||_0x4fb2d0['includes']('//'))throw CliErrors[_0x3af540(0x109)](_0x3af540(0x111)+_0x4fb2d0);for(const _0x2731b0 of _0x4fb2d0[_0x3af540(0x119)]('/')){if(!_0x2731b0||_0x2731b0==='.'||_0x2731b0==='..')throw CliErrors[_0x3af540(0x109)](_0x3af540(0x111)+_0x4fb2d0);}}export function toPosixPath(_0x85af03){const _0x145c64=a137_0x5045;return _0x85af03[_0x145c64(0x118)](/\\/g,'/');}export function isSha256Hex(_0x493c20){const _0x5a2b1f=a137_0x5045;return typeof _0x493c20===_0x5a2b1f(0x107)&&/^[a-fA-F0-9]{64}$/[_0x5a2b1f(0xf4)](_0x493c20);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xee12c4,_0x53e348){const _0x46ee8b=a138_0x17d0,_0x2aaf5b=_0xee12c4();while(!![]){try{const _0x3ffad7=-parseInt(_0x46ee8b(0x218))/0x1+parseInt(_0x46ee8b(0x20d))/0x2*(-parseInt(_0x46ee8b(0x1fe))/0x3)+parseInt(_0x46ee8b(0x208))/0x4*(-parseInt(_0x46ee8b(0x1f4))/0x5)+parseInt(_0x46ee8b(0x20e))/0x6*(parseInt(_0x46ee8b(0x1ec))/0x7)+parseInt(_0x46ee8b(0x1eb))/0x8+-parseInt(_0x46ee8b(0x210))/0x9+-parseInt(_0x46ee8b(0x201))/0xa*(-parseInt(_0x46ee8b(0x1ed))/0xb);if(_0x3ffad7===_0x53e348)break;else _0x2aaf5b['push'](_0x2aaf5b['shift']());}catch(_0x3aa7e4){_0x2aaf5b['push'](_0x2aaf5b['shift']());}}}(a138_0x26ec,0x1d53f));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';function a138_0x17d0(_0x36c0b1,_0x5d051e){_0x36c0b1=_0x36c0b1-0x1e3;const _0x26ec3c=a138_0x26ec();let _0x17d096=_0x26ec3c[_0x36c0b1];return _0x17d096;}import{dirname,resolve}from'node:path';function a138_0x26ec(){const _0x2daf78=['915WvIEcg','match','test','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','description:\x20','length','flow','scope','keys','3LSzwNW','skillName','appCode','422780zFjVdb','contents','description','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','env','---\x0a','name','980GEQUCI','displayName','Runtime\x20Skill\x20package\x20is\x20missing\x20','entries','accessKey','201846CjpJmt','557958JZjSdV','version','1308024lFkXIK','name:\x20','stringify','---','displayName:\x20','delete','map','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','39589OBPrqJ','validation','Managed\x20file\x20was\x20removed\x20locally:\x20','example','pulledAt','isFile','fileHashes','trim','packageBytes','hasOwn','status','force','765696VMnpQI','14bGJikk','44QeFnKm','replace','paths','path','contentHash','has','utf8'];a138_0x26ec=function(){return _0x2daf78;};return a138_0x26ec();}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(_0x24038d,_0x3ddff0,_0x236fe8){const _0x4651a7=a138_0x17d0,_0x836d68=requireSkillCode(_0x24038d),_0x24df3d=requirePackageBytes(_0x836d68,_0x236fe8[_0x4651a7(0x1e7)]),_0x4ad2f6=extractDownloadedPackage(_0x24df3d),_0x5df29b=_0x4ad2f6['find'](_0x10b3c8=>_0x10b3c8['path']===SKILL_FILE);if(!_0x5df29b)throw CliErrors['validation'](_0x4651a7(0x20a)+SKILL_FILE+':\x20'+_0x836d68);const _0x145d5c=withMaterializedSkillFrontmatter(_0x4ad2f6,_0x24038d,_0x836d68),_0x426ebe=_0x145d5c['find'](_0x135117=>_0x135117[_0x4651a7(0x1f0)]===SKILL_FILE),_0x56abe4=fileText(_0x426ebe),_0x362355=getRuntimeSkillDir(_0x236fe8['env'],_0x236fe8[_0x4651a7(0x20c)],_0x236fe8[_0x4651a7(0x200)],_0x3ddff0,_0x836d68,_0x236fe8['paths']),_0x148132=resolve(_0x362355,SKILL_FILE),_0x2a1bce=resolve(_0x362355,METADATA_FILE),_0x468a07=contentHash(_0x56abe4),_0x48830e=readMetadataIfPresent(_0x2a1bce)?.[_0x4651a7(0x1e5)];ensurePulledFilesCanBeOverwritten(_0x362355,_0x2a1bce,_0x145d5c,_0x236fe8[_0x4651a7(0x1ea)]===!![]),mkdirSync(_0x362355,{'recursive':!![],'mode':0x1c0});const _0x3f1c7d=existsSync(_0x148132)?readFileSync(_0x148132,_0x4651a7(0x1f3)):undefined;return materializeFiles(_0x362355,_0x145d5c),removeStaleManagedFiles(_0x362355,_0x48830e,_0x145d5c),writeJsonAtomic(_0x2a1bce,buildMetadata(_0x24038d,_0x3ddff0,_0x236fe8['appCode'],_0x468a07,_0x236fe8[_0x4651a7(0x1e3)],_0x145d5c,_0x24df3d)),{'skill':_0x24038d,'scope':_0x3ddff0,'dir':_0x362355,'skillMdPath':_0x148132,'metadataPath':_0x2a1bce,'contentHash':_0x468a07,'changed':_0x3f1c7d!==_0x56abe4};}export function reuseMaterializedRuntimeSkill(_0x36df8c,_0x1d9cfa,_0x3912a5){const _0xc3c801=a138_0x17d0,_0x5db37f=_0x36df8c[_0xc3c801(0x20f)]?.[_0xc3c801(0x1e6)]();if(!_0x5db37f)return undefined;const _0x366ae5=requireSkillCode(_0x36df8c),_0x5f0b89=getRuntimeSkillDir(_0x3912a5[_0xc3c801(0x205)],_0x3912a5['accessKey'],_0x3912a5[_0xc3c801(0x200)],_0x1d9cfa,_0x366ae5,_0x3912a5[_0xc3c801(0x1ef)]),_0x4e6cc0=resolve(_0x5f0b89,SKILL_FILE),_0x4696e5=resolve(_0x5f0b89,METADATA_FILE),_0x4ef220=readMetadataIfPresent(_0x4696e5);if(!_0x4ef220||_0x4ef220['schemaVersion']!==0x2||_0x4ef220[_0xc3c801(0x200)]!==_0x3912a5['appCode']||_0x4ef220[_0xc3c801(0x1fc)]!==_0x1d9cfa||_0x4ef220['skillCode']!==_0x366ae5||_0x4ef220[_0xc3c801(0x20f)]!==_0x5db37f||_0x4ef220['id']!==_0x36df8c['id']||_0x4ef220[_0xc3c801(0x1ff)]!==_0x36df8c[_0xc3c801(0x1ff)]||_0x4ef220[_0xc3c801(0x203)]!==_0x36df8c[_0xc3c801(0x203)]||_0x4ef220[_0xc3c801(0x21b)]!==_0x36df8c[_0xc3c801(0x21b)]||_0x4ef220[_0xc3c801(0x1e9)]!==_0x36df8c['status']||!_0x4ef220[_0xc3c801(0x1f1)]||!_0x4ef220[_0xc3c801(0x1e5)]||!Object[_0xc3c801(0x1e8)](_0x4ef220[_0xc3c801(0x1e5)],SKILL_FILE))return undefined;for(const [_0x55be89,_0x214d8b]of Object[_0xc3c801(0x20b)](_0x4ef220[_0xc3c801(0x1e5)])){if(!/^[a-f0-9]{64}$/[_0xc3c801(0x1f6)](_0x214d8b))return undefined;const _0x3b61eb=resolveManagedFilePath(_0x5f0b89,_0x55be89);if(!existsSync(_0x3b61eb)||!lstatSync(_0x3b61eb)[_0xc3c801(0x1e4)]())return undefined;if(bufferSha256(readFileSync(_0x3b61eb))!==_0x214d8b)return undefined;}return{'skill':_0x36df8c,'scope':_0x1d9cfa,'dir':_0x5f0b89,'skillMdPath':_0x4e6cc0,'metadataPath':_0x4696e5,'contentHash':_0x4ef220['contentHash'],'changed':![]};}function withMaterializedSkillFrontmatter(_0x30992c,_0x123f9c,_0x10022a){const _0x31b76f=a138_0x17d0,_0xc65d86=skillDisplayName(_0x123f9c,_0x10022a),_0x320513=_0x123f9c['description']?.[_0x31b76f(0x1e6)]()||_0xc65d86||_0x10022a;return normalizeLocalFiles(_0x30992c)[_0x31b76f(0x216)](_0x961888=>{const _0x383976=_0x31b76f,_0xa874ae=fileText(_0x961888);if(_0x961888[_0x383976(0x1f0)]!==SKILL_FILE)return _0x961888;if(hasYamlFrontmatter(_0xa874ae))return{'path':_0x961888[_0x383976(0x1f0)],'content':withSyncedDisplayName(_0xa874ae,_0xc65d86)};return{'path':_0x961888[_0x383976(0x1f0)],'content':prependSkillFrontmatter(_0xa874ae,{'name':_0x10022a,'displayName':_0xc65d86,'description':_0x320513})};});}function hasYamlFrontmatter(_0x174561){const _0x583821=a138_0x17d0;return/^\uFEFF?---\s*\r?\n/[_0x583821(0x1f6)](_0x174561);}function prependSkillFrontmatter(_0x5b571a,_0x52a93a){const _0x209fce=a138_0x17d0,_0x1236ce=_0x5b571a['replace'](/^\uFEFF/,'');return[_0x209fce(0x213),_0x209fce(0x211)+yamlString(_0x52a93a[_0x209fce(0x207)]),_0x52a93a[_0x209fce(0x209)]?_0x209fce(0x214)+yamlString(_0x52a93a[_0x209fce(0x209)]):undefined,_0x209fce(0x1f9)+yamlString(_0x52a93a['description']),_0x209fce(0x213),'',_0x1236ce]['filter'](_0x16059f=>_0x16059f!==undefined)['join']('\x0a');}function yamlString(_0x420f39){const _0x1c9098=a138_0x17d0;return JSON[_0x1c9098(0x212)](_0x420f39[_0x1c9098(0x1ee)](/\r/g,'')[_0x1c9098(0x1e6)]());}function skillDisplayName(_0x520287,_0x4648bc){const _0xcb1315=a138_0x17d0,_0x59f33f=_0x520287[_0xcb1315(0x1ff)]?.[_0xcb1315(0x1e6)]();return _0x59f33f||_0x4648bc;}function withSyncedDisplayName(_0x1033ef,_0xea8cad){const _0x21ee3a=a138_0x17d0,_0x352f7f=_0x1033ef[_0x21ee3a(0x1f5)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x352f7f)return _0x1033ef;const _0x3dcea3=_0x352f7f[0x1]??'',_0x219f80=_0x352f7f[0x2]??'',_0x141b01=parseDocument(_0x219f80);if(_0x141b01['errors'][_0x21ee3a(0x1fa)]>0x0||!isMap(_0x141b01[_0x21ee3a(0x202)]))return _0x1033ef;if(_0xea8cad)_0x141b01['set']('displayName',_0xea8cad);else{if(_0x141b01[_0x21ee3a(0x1f2)](_0x21ee3a(0x209)))_0x141b01[_0x21ee3a(0x215)]('displayName');else return _0x1033ef;}forceBlockCollections(_0x141b01[_0x21ee3a(0x202)]);const _0x352add=_0x141b01['toString']({'lineWidth':0x0})['trimEnd'](),_0x4042a1=_0x1033ef['slice'](_0x352f7f[0x0]['length'])[_0x21ee3a(0x1ee)](/^\r?\n/,'');return _0x3dcea3+_0x21ee3a(0x206)+_0x352add+'\x0a---\x0a\x0a'+_0x4042a1;}function forceBlockCollections(_0x384d4a){if(!isNode(_0x384d4a))return;visit(_0x384d4a,(_0x24020d,_0x5e0cdf)=>{const _0x1b8f03=a138_0x17d0;isCollection(_0x5e0cdf)&&(_0x5e0cdf[_0x1b8f03(0x1fb)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x22a05f,_0x37a123,_0x395be8,_0x229332){const _0x3a0f40=a138_0x17d0;if(_0x229332||!existsSync(_0x37a123))return;const _0xb41989=readMetadataIfPresent(_0x37a123);if(!_0xb41989)return;const _0x17cc58=_0xb41989['fileHashes']&&Object[_0x3a0f40(0x1fd)](_0xb41989[_0x3a0f40(0x1e5)])['length']>0x0?_0xb41989['fileHashes']:undefined;if(_0x17cc58)for(const [_0x3ab654,_0x3a9a5d]of Object[_0x3a0f40(0x20b)](_0x17cc58)){const _0x277a29=resolveManagedFilePath(_0x22a05f,_0x3ab654);if(!existsSync(_0x277a29))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x22a05f,_0x3a0f40(0x21a)+_0x3ab654);const _0x4c6bbc=lstatSync(_0x277a29);if(!_0x4c6bbc[_0x3a0f40(0x1e4)]())throw CliErrors[_0x3a0f40(0x219)](_0x3a0f40(0x1f7)+_0x22a05f,_0x3a0f40(0x204)+_0x3ab654);const _0x4ecbf8=bufferSha256(readFileSync(_0x277a29));if(_0x4ecbf8!==_0x3a9a5d)throw CliErrors[_0x3a0f40(0x219)](_0x3a0f40(0x1f7)+_0x22a05f+'.\x20Changed\x20file:\x20'+_0x3ab654,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x3ab654);}else{const _0x3210d3=resolve(_0x22a05f,SKILL_FILE);if(existsSync(_0x3210d3)&&_0xb41989[_0x3a0f40(0x1f1)]){const _0x15ef2f=contentHash(readFileSync(_0x3210d3,_0x3a0f40(0x1f3)));if(_0x15ef2f!==_0xb41989['contentHash'])throw CliErrors[_0x3a0f40(0x219)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0x3210d3,_0x3a0f40(0x217));}}for(const _0x32be87 of normalizeLocalFiles(_0x395be8)){if(_0x17cc58?.[_0x32be87[_0x3a0f40(0x1f0)]])continue;if(!_0x17cc58&&_0x32be87[_0x3a0f40(0x1f0)]===SKILL_FILE)continue;const _0x178f21=resolveManagedFilePath(_0x22a05f,_0x32be87[_0x3a0f40(0x1f0)]);if(!existsSync(_0x178f21))continue;const _0x4042f4=lstatSync(_0x178f21);if(!_0x4042f4[_0x3a0f40(0x1e4)]())throw CliErrors[_0x3a0f40(0x219)](_0x3a0f40(0x1f7)+_0x22a05f,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x32be87[_0x3a0f40(0x1f0)]);const _0x19fbd6=bufferSha256(readFileSync(_0x178f21));if(_0x19fbd6!==fileHash(_0x32be87))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x22a05f,_0x3a0f40(0x1f8)+_0x32be87[_0x3a0f40(0x1f0)]);}}function materializeFiles(_0x2a8c64,_0x28b291){const _0x42be37=a138_0x17d0;for(const _0x55d599 of normalizeLocalFiles(_0x28b291)){const _0xf19e24=resolveManagedFilePath(_0x2a8c64,_0x55d599[_0x42be37(0x1f0)]);mkdirSync(dirname(_0xf19e24),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0xf19e24,fileContent(_0x55d599),0x180);}}function removeStaleManagedFiles(_0x42ad88,_0x50185f,_0x51a120){const _0x1a2767=a138_0x17d0;if(!_0x50185f)return;const _0x5b2d09=new Set(normalizeLocalFiles(_0x51a120)[_0x1a2767(0x216)](_0x423403=>_0x423403[_0x1a2767(0x1f0)]));for(const _0x47fee4 of Object[_0x1a2767(0x1fd)](_0x50185f)){if(_0x5b2d09[_0x1a2767(0x1f2)](_0x47fee4))continue;const _0x4fa37c=resolveManagedFilePath(_0x42ad88,_0x47fee4);existsSync(_0x4fa37c)&&lstatSync(_0x4fa37c)[_0x1a2767(0x1e4)]()&&rmSync(_0x4fa37c,{'force':!![]});}}
|
|
1
|
+
function a138_0x37bf(_0x133667,_0x4b4184){_0x133667=_0x133667-0x1f3;const _0x30cb7b=a138_0x30cb();let _0x37bfce=_0x30cb7b[_0x133667];return _0x37bfce;}(function(_0x1cf263,_0xf8d15d){const _0x4ad5b5=a138_0x37bf,_0x41b3fe=_0x1cf263();while(!![]){try{const _0x452393=parseInt(_0x4ad5b5(0x214))/0x1*(parseInt(_0x4ad5b5(0x1fc))/0x2)+parseInt(_0x4ad5b5(0x1f4))/0x3*(parseInt(_0x4ad5b5(0x20a))/0x4)+parseInt(_0x4ad5b5(0x21c))/0x5*(-parseInt(_0x4ad5b5(0x222))/0x6)+-parseInt(_0x4ad5b5(0x206))/0x7*(parseInt(_0x4ad5b5(0x20c))/0x8)+parseInt(_0x4ad5b5(0x21e))/0x9*(-parseInt(_0x4ad5b5(0x20e))/0xa)+-parseInt(_0x4ad5b5(0x20b))/0xb+parseInt(_0x4ad5b5(0x22a))/0xc;if(_0x452393===_0xf8d15d)break;else _0x41b3fe['push'](_0x41b3fe['shift']());}catch(_0x4fb2c6){_0x41b3fe['push'](_0x41b3fe['shift']());}}}(a138_0x30cb,0xe1622));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(_0x390dfb,_0x519e9c,_0x6d1a86){const _0x2f9e18=a138_0x37bf,_0x16fd9a=requireSkillCode(_0x390dfb),_0x493b9a=requirePackageBytes(_0x16fd9a,_0x6d1a86[_0x2f9e18(0x1f7)]),_0x27f8ab=extractDownloadedPackage(_0x493b9a),_0x522931=_0x27f8ab['find'](_0x1159b7=>_0x1159b7['path']===SKILL_FILE);if(!_0x522931)throw CliErrors[_0x2f9e18(0x1f6)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x16fd9a);const _0x88d8ee=withMaterializedSkillFrontmatter(_0x27f8ab,_0x390dfb,_0x16fd9a),_0x254ee5=_0x88d8ee[_0x2f9e18(0x21d)](_0x3fce13=>_0x3fce13['path']===SKILL_FILE),_0x3fb39f=fileText(_0x254ee5),_0x2cbf63=getRuntimeSkillDir(_0x6d1a86[_0x2f9e18(0x21a)],_0x6d1a86['accessKey'],_0x6d1a86[_0x2f9e18(0x200)],_0x519e9c,_0x16fd9a,_0x6d1a86['paths']),_0x39241c=resolve(_0x2cbf63,SKILL_FILE),_0x509b56=resolve(_0x2cbf63,METADATA_FILE),_0x35bcaa=contentHash(_0x3fb39f),_0x29c015=readMetadataIfPresent(_0x509b56)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x2cbf63,_0x509b56,_0x88d8ee,_0x6d1a86[_0x2f9e18(0x1fb)]===!![]),mkdirSync(_0x2cbf63,{'recursive':!![],'mode':0x1c0});const _0x16bd51=existsSync(_0x39241c)?readFileSync(_0x39241c,_0x2f9e18(0x207)):undefined;return materializeFiles(_0x2cbf63,_0x88d8ee),removeStaleManagedFiles(_0x2cbf63,_0x29c015,_0x88d8ee),writeJsonAtomic(_0x509b56,buildMetadata(_0x390dfb,_0x519e9c,_0x6d1a86[_0x2f9e18(0x200)],_0x35bcaa,_0x6d1a86[_0x2f9e18(0x212)],_0x88d8ee,_0x493b9a)),{'skill':_0x390dfb,'scope':_0x519e9c,'dir':_0x2cbf63,'skillMdPath':_0x39241c,'metadataPath':_0x509b56,'contentHash':_0x35bcaa,'changed':_0x16bd51!==_0x3fb39f};}export function reuseMaterializedRuntimeSkill(_0x348f26,_0x115499,_0x2429de){const _0x4e22e2=a138_0x37bf,_0x1bc3d9=_0x348f26[_0x4e22e2(0x219)]?.[_0x4e22e2(0x213)]();if(!_0x1bc3d9)return undefined;const _0x5e71a8=requireSkillCode(_0x348f26),_0x11c4e7=getRuntimeSkillDir(_0x2429de[_0x4e22e2(0x21a)],_0x2429de[_0x4e22e2(0x22b)],_0x2429de[_0x4e22e2(0x200)],_0x115499,_0x5e71a8,_0x2429de[_0x4e22e2(0x223)]),_0x8e34a6=resolve(_0x11c4e7,SKILL_FILE),_0xe0f7e5=resolve(_0x11c4e7,METADATA_FILE),_0x335ca0=readMetadataIfPresent(_0xe0f7e5);if(!_0x335ca0||_0x335ca0[_0x4e22e2(0x218)]!==0x2||_0x335ca0['appCode']!==_0x2429de[_0x4e22e2(0x200)]||_0x335ca0[_0x4e22e2(0x203)]!==_0x115499||_0x335ca0[_0x4e22e2(0x209)]!==_0x5e71a8||_0x335ca0[_0x4e22e2(0x219)]!==_0x1bc3d9||_0x335ca0['id']!==_0x348f26['id']||_0x335ca0[_0x4e22e2(0x21b)]!==_0x348f26['skillName']||_0x335ca0['description']!==_0x348f26['description']||_0x335ca0['example']!==_0x348f26['example']||_0x335ca0['status']!==_0x348f26[_0x4e22e2(0x210)]||!_0x335ca0['contentHash']||!_0x335ca0[_0x4e22e2(0x22e)]||!Object[_0x4e22e2(0x1fd)](_0x335ca0[_0x4e22e2(0x22e)],SKILL_FILE))return undefined;for(const [_0x2243b5,_0x4ad6ef]of Object['entries'](_0x335ca0[_0x4e22e2(0x22e)])){if(!/^[a-f0-9]{64}$/['test'](_0x4ad6ef))return undefined;const _0x5f10ec=resolveManagedFilePath(_0x11c4e7,_0x2243b5);if(!existsSync(_0x5f10ec)||!lstatSync(_0x5f10ec)[_0x4e22e2(0x205)]())return undefined;if(bufferSha256(readFileSync(_0x5f10ec))!==_0x4ad6ef)return undefined;}return{'skill':_0x348f26,'scope':_0x115499,'dir':_0x11c4e7,'skillMdPath':_0x8e34a6,'metadataPath':_0xe0f7e5,'contentHash':_0x335ca0['contentHash'],'changed':![]};}function withMaterializedSkillFrontmatter(_0x47479a,_0x21a193,_0x3ea19e){const _0x131c9f=a138_0x37bf,_0x3ed65c=skillDisplayName(_0x21a193,_0x3ea19e),_0x2048c0=_0x21a193[_0x131c9f(0x22d)]?.[_0x131c9f(0x213)]()||_0x3ed65c||_0x3ea19e;return normalizeLocalFiles(_0x47479a)[_0x131c9f(0x216)](_0x578f50=>{const _0x184009=_0x131c9f,_0x1bad3f=fileText(_0x578f50);if(_0x578f50[_0x184009(0x225)]!==SKILL_FILE)return _0x578f50;if(hasYamlFrontmatter(_0x1bad3f))return{'path':_0x578f50[_0x184009(0x225)],'content':withSyncedDisplayName(_0x1bad3f,_0x3ed65c)};return{'path':_0x578f50[_0x184009(0x225)],'content':prependSkillFrontmatter(_0x1bad3f,{'name':_0x3ea19e,'displayName':_0x3ed65c,'description':_0x2048c0})};});}function hasYamlFrontmatter(_0x4b8065){const _0x2b7106=a138_0x37bf;return/^\uFEFF?---\s*\r?\n/[_0x2b7106(0x228)](_0x4b8065);}function prependSkillFrontmatter(_0x4bd3b7,_0xd3cec3){const _0x408977=a138_0x37bf,_0x5ca2cc=_0x4bd3b7['replace'](/^\uFEFF/,'');return[_0x408977(0x1f8),_0x408977(0x229)+yamlString(_0xd3cec3[_0x408977(0x217)]),_0xd3cec3['displayName']?_0x408977(0x1fa)+yamlString(_0xd3cec3[_0x408977(0x204)]):undefined,_0x408977(0x226)+yamlString(_0xd3cec3[_0x408977(0x22d)]),_0x408977(0x1f8),'',_0x5ca2cc][_0x408977(0x1f9)](_0x6d09b1=>_0x6d09b1!==undefined)[_0x408977(0x1f3)]('\x0a');}function yamlString(_0x182ae6){const _0x4e31bd=a138_0x37bf;return JSON['stringify'](_0x182ae6['replace'](/\r/g,'')[_0x4e31bd(0x213)]());}function skillDisplayName(_0x12f73d,_0x3911db){const _0x4e17f2=a138_0x37bf,_0x28f338=_0x12f73d['skillName']?.[_0x4e17f2(0x213)]();return _0x28f338||_0x3911db;}function withSyncedDisplayName(_0x1bb093,_0x393bf0){const _0x1b4dc7=a138_0x37bf,_0x23a432=_0x1bb093['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x23a432)return _0x1bb093;const _0x36f6c0=_0x23a432[0x1]??'',_0x3f95af=_0x23a432[0x2]??'',_0x4a7f91=parseDocument(_0x3f95af);if(_0x4a7f91[_0x1b4dc7(0x1fe)][_0x1b4dc7(0x221)]>0x0||!isMap(_0x4a7f91[_0x1b4dc7(0x224)]))return _0x1bb093;if(_0x393bf0)_0x4a7f91['set']('displayName',_0x393bf0);else{if(_0x4a7f91['has'](_0x1b4dc7(0x204)))_0x4a7f91['delete']('displayName');else return _0x1bb093;}forceBlockCollections(_0x4a7f91[_0x1b4dc7(0x224)]);const _0x2392f3=_0x4a7f91[_0x1b4dc7(0x227)]({'lineWidth':0x0})['trimEnd'](),_0x4b15fd=_0x1bb093['slice'](_0x23a432[0x0]['length'])['replace'](/^\r?\n/,'');return _0x36f6c0+_0x1b4dc7(0x1f5)+_0x2392f3+'\x0a---\x0a\x0a'+_0x4b15fd;}function a138_0x30cb(){const _0x37f309=['entries','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','length','55962ALeWfQ','paths','contents','path','description:\x20','toString','test','name:\x20','46384728MKTLdf','accessKey','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','description','fileHashes','join','9bPmfZy','---\x0a','validation','packageBytes','---','filter','displayName:\x20','force','1132UPGqbU','hasOwn','errors','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','appCode','.\x20Changed\x20file:\x20','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','scope','displayName','isFile','119SUGuJy','utf8','has','skillCode','423052lbeksd','17926513SYCGLI','402968YyqyzL','Managed\x20file\x20was\x20removed\x20locally:\x20','50ORWNZK','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','status','contentHash','pulledAt','trim','1984toJfAJ','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','map','name','schemaVersion','version','env','skillName','630OLsqog','find','1298277QXlDDh'];a138_0x30cb=function(){return _0x37f309;};return a138_0x30cb();}function forceBlockCollections(_0x34c572){if(!isNode(_0x34c572))return;visit(_0x34c572,(_0x380494,_0x28e209)=>{isCollection(_0x28e209)&&(_0x28e209['flow']=![]);});}function ensurePulledFilesCanBeOverwritten(_0xc956c3,_0x33f28e,_0x2d07d9,_0x149fdf){const _0x9371c4=a138_0x37bf;if(_0x149fdf||!existsSync(_0x33f28e))return;const _0x152215=readMetadataIfPresent(_0x33f28e);if(!_0x152215)return;const _0x211a67=_0x152215[_0x9371c4(0x22e)]&&Object['keys'](_0x152215['fileHashes'])[_0x9371c4(0x221)]>0x0?_0x152215[_0x9371c4(0x22e)]:undefined;if(_0x211a67)for(const [_0x7c3e6,_0x169d8e]of Object[_0x9371c4(0x21f)](_0x211a67)){const _0x29c0ab=resolveManagedFilePath(_0xc956c3,_0x7c3e6);if(!existsSync(_0x29c0ab))throw CliErrors[_0x9371c4(0x1f6)](_0x9371c4(0x220)+_0xc956c3,_0x9371c4(0x20d)+_0x7c3e6);const _0xee6dd8=lstatSync(_0x29c0ab);if(!_0xee6dd8[_0x9371c4(0x205)]())throw CliErrors[_0x9371c4(0x1f6)](_0x9371c4(0x220)+_0xc956c3,_0x9371c4(0x215)+_0x7c3e6);const _0xbed603=bufferSha256(readFileSync(_0x29c0ab));if(_0xbed603!==_0x169d8e)throw CliErrors['validation'](_0x9371c4(0x220)+_0xc956c3+_0x9371c4(0x201)+_0x7c3e6,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x7c3e6);}else{const _0x3bdc35=resolve(_0xc956c3,SKILL_FILE);if(existsSync(_0x3bdc35)&&_0x152215[_0x9371c4(0x211)]){const _0x193df6=contentHash(readFileSync(_0x3bdc35,_0x9371c4(0x207)));if(_0x193df6!==_0x152215['contentHash'])throw CliErrors[_0x9371c4(0x1f6)](_0x9371c4(0x202)+_0x3bdc35,_0x9371c4(0x20f));}}for(const _0x3244c9 of normalizeLocalFiles(_0x2d07d9)){if(_0x211a67?.[_0x3244c9[_0x9371c4(0x225)]])continue;if(!_0x211a67&&_0x3244c9['path']===SKILL_FILE)continue;const _0x5849d4=resolveManagedFilePath(_0xc956c3,_0x3244c9[_0x9371c4(0x225)]);if(!existsSync(_0x5849d4))continue;const _0x4c62e1=lstatSync(_0x5849d4);if(!_0x4c62e1[_0x9371c4(0x205)]())throw CliErrors['validation'](_0x9371c4(0x220)+_0xc956c3,_0x9371c4(0x22c)+_0x3244c9[_0x9371c4(0x225)]);const _0x36658b=bufferSha256(readFileSync(_0x5849d4));if(_0x36658b!==fileHash(_0x3244c9))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0xc956c3,_0x9371c4(0x1ff)+_0x3244c9[_0x9371c4(0x225)]);}}function materializeFiles(_0x3d4ff2,_0x10d968){const _0xe250db=a138_0x37bf;for(const _0x24f593 of normalizeLocalFiles(_0x10d968)){const _0x489111=resolveManagedFilePath(_0x3d4ff2,_0x24f593[_0xe250db(0x225)]);mkdirSync(dirname(_0x489111),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x489111,fileContent(_0x24f593),0x180);}}function removeStaleManagedFiles(_0x295a9a,_0x199b95,_0x393b4c){const _0x5b2ddd=a138_0x37bf;if(!_0x199b95)return;const _0xc0845=new Set(normalizeLocalFiles(_0x393b4c)[_0x5b2ddd(0x216)](_0x527042=>_0x527042[_0x5b2ddd(0x225)]));for(const _0x492c7c of Object['keys'](_0x199b95)){if(_0xc0845[_0x5b2ddd(0x208)](_0x492c7c))continue;const _0x1c9400=resolveManagedFilePath(_0x295a9a,_0x492c7c);existsSync(_0x1c9400)&&lstatSync(_0x1c9400)[_0x5b2ddd(0x205)]()&&rmSync(_0x1c9400,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a139_0x1d6d(){const _0x36c393=['validation','zipSha256','object','utf8','8hRRxxZ','forkedFromVersion','trim','skillName','tenantCode','forkedFromSkillId','234227HWbOFY','144NkCFOa','skillCode','Runtime\x20Skill\x20is\x20missing\x20skillCode.','manifest','2dBvOPN','ossPath','fromEntries','example','tags','Invalid\x20','length','193555uaNRWq','files','1768610xuWVYp','12378dFiUsM','version','path','6465762TEgLsz','11086823hlLLof','72zbQonm','sourceSessionId','description','158219suwlYi','status','userId','map','readonly'];a139_0x1d6d=function(){return _0x36c393;};return a139_0x1d6d();}(function(_0xe23c2e,_0x2430e1){const _0x595e7d=a139_0x2dae,_0x3b15d5=_0xe23c2e();while(!![]){try{const _0x53cb69=parseInt(_0x595e7d(0xfc))/0x1+-parseInt(_0x595e7d(0xea))/0x2*(-parseInt(_0x595e7d(0xf4))/0x3)+-parseInt(_0x595e7d(0xf9))/0x4*(-parseInt(_0x595e7d(0xf1))/0x5)+parseInt(_0x595e7d(0xe6))/0x6*(-parseInt(_0x595e7d(0xe5))/0x7)+-parseInt(_0x595e7d(0x105))/0x8*(parseInt(_0x595e7d(0xf7))/0x9)+parseInt(_0x595e7d(0xf3))/0xa+parseInt(_0x595e7d(0xf8))/0xb;if(_0x53cb69===_0x2430e1)break;else _0x3b15d5['push'](_0x3b15d5['shift']());}catch(_0x2058ea){_0x3b15d5['push'](_0x3b15d5['shift']());}}}(a139_0x1d6d,0x7f8af));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';function a139_0x2dae(_0x5b5bc4,_0x413445){_0x5b5bc4=_0x5b5bc4-0xe2;const _0x1d6d25=a139_0x1d6d();let _0x2dae2c=_0x1d6d25[_0x5b5bc4];return _0x2dae2c;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x12677f,_0x36ab0c,_0x44ca21,_0xdba5d2,_0x4ca383,_0x5777f2,_0x487bce){const _0x4c840c=a139_0x2dae,_0x11ee5f=_0x5777f2?normalizeLocalFiles(_0x5777f2):[],_0xde7b02=!_0x487bce&&_0x11ee5f[_0x4c840c(0xf0)]>0x0?buildSkillPackage(_0x11ee5f):undefined,_0x2f18e2=_0x487bce?bufferSha256(_0x487bce):_0xde7b02?.[_0x4c840c(0xe9)][_0x4c840c(0x102)],_0xcb2eaf=_0x487bce?.[_0x4c840c(0xf0)]??_0xde7b02?.[_0x4c840c(0xe9)]['zipSize'],_0x5769b2=_0x11ee5f['length']>0x0?Object[_0x4c840c(0xec)](_0x11ee5f['map'](_0x34a8a9=>[_0x34a8a9[_0x4c840c(0xf6)],fileHash(_0x34a8a9)])):undefined;return{'schemaVersion':_0x11ee5f['length']>0x0?0x2:0x1,'id':_0x12677f['id'],'appCode':_0x44ca21,'skillCode':requireSkillCode(_0x12677f),'skillName':_0x12677f[_0x4c840c(0xe2)],'description':_0x12677f[_0x4c840c(0xfb)],'example':_0x12677f[_0x4c840c(0xed)],'scope':_0x36ab0c,'readonly':_0x36ab0c!=='personal'||_0x12677f[_0x4c840c(0x100)]===!![],'tenantCode':_0x12677f[_0x4c840c(0xe3)],'userId':_0x12677f[_0x4c840c(0xfe)],'version':_0x12677f[_0x4c840c(0xf5)],'status':_0x12677f[_0x4c840c(0xfd)],'tags':Array['isArray'](_0x12677f[_0x4c840c(0xee)])?_0x12677f[_0x4c840c(0xee)]:[],'hasUpstreamUpdate':_0x12677f['hasUpstreamUpdate'],'forkedFromSkillId':_0x12677f[_0x4c840c(0xe4)],'forkedFromVersion':_0x12677f[_0x4c840c(0x106)],'sourceSessionId':_0x12677f[_0x4c840c(0xfa)],'contentHash':_0xdba5d2,'fileHashes':_0x5769b2,'treeHash':_0x11ee5f[_0x4c840c(0xf0)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x11ee5f)):undefined,'ossPath':remoteManifestOssPath(_0x12677f[_0x4c840c(0xf2)]),'zipSha256':_0x2f18e2,'zipSize':_0xcb2eaf,'files':_0x11ee5f[_0x4c840c(0xf0)]>0x0?_0x11ee5f[_0x4c840c(0xff)](_0x14bab0=>({'path':_0x14bab0[_0x4c840c(0xf6)],'hash':fileHash(_0x14bab0),'size':fileContent(_0x14bab0)['length']})):undefined,'pulledAt':_0x4ca383??new Date()['toISOString']()};}export function requireSkillCode(_0x5aa715){const _0x2aa120=a139_0x2dae,_0x4b84ff=_0x5aa715[_0x2aa120(0xe7)]?.[_0x2aa120(0x107)]();if(!_0x4b84ff)throw CliErrors[_0x2aa120(0x101)](_0x2aa120(0xe8));return _0x4b84ff;}export function readMetadataIfPresent(_0x557d24){const _0x276424=a139_0x2dae;if(!existsSync(_0x557d24))return undefined;try{const _0x4dfea9=JSON['parse'](readFileSync(_0x557d24,_0x276424(0x104)));return _0x4dfea9;}catch{throw CliErrors[_0x276424(0x101)](_0x276424(0xef)+METADATA_FILE+':\x20'+_0x557d24);}}function remoteManifestOssPath(_0x1acdb5){const _0x977e48=a139_0x2dae;if(!_0x1acdb5||typeof _0x1acdb5!==_0x977e48(0x103)||Array['isArray'](_0x1acdb5))return undefined;const _0x71ac75=_0x1acdb5[_0x977e48(0xeb)];return typeof _0x71ac75==='string'&&_0x71ac75['trim']()?_0x71ac75['trim']():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a140_0x49caee=a140_0x2d6a;function a140_0x2d6a(_0x29ed1d,_0xb5478c){_0x29ed1d=_0x29ed1d-0x1a4;const _0x1b33db=a140_0x1b33();let _0x2d6a74=_0x1b33db[_0x29ed1d];return _0x2d6a74;}(function(_0xdbffca,_0x238e3){const _0x4ed9f5=a140_0x2d6a,_0x1c5109=_0xdbffca();while(!![]){try{const _0x18afc0=parseInt(_0x4ed9f5(0x1c0))/0x1*(-parseInt(_0x4ed9f5(0x1bc))/0x2)+parseInt(_0x4ed9f5(0x1b1))/0x3+-parseInt(_0x4ed9f5(0x1b4))/0x4+parseInt(_0x4ed9f5(0x1b5))/0x5*(parseInt(_0x4ed9f5(0x1ba))/0x6)+parseInt(_0x4ed9f5(0x1b2))/0x7+-parseInt(_0x4ed9f5(0x1b3))/0x8*(-parseInt(_0x4ed9f5(0x1bd))/0x9)+-parseInt(_0x4ed9f5(0x1bf))/0xa*(parseInt(_0x4ed9f5(0x1ac))/0xb);if(_0x18afc0===_0x238e3)break;else _0x1c5109['push'](_0x1c5109['shift']());}catch(_0x14a0d2){_0x1c5109['push'](_0x1c5109['shift']());}}}(a140_0x1b33,0xc254e));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';function a140_0x1b33(){const _0x1ff7d4=['SKILL_ROOT','homeDirName','claudeSkillsDir','path\x20segment','10406HQsPHO','agentsSkillsDir','filter','skills','Unsafe\x20','410364YwUIAq','3899028XIJDNT','401664NuoZse','2700436JnyFLl','5JMcQYa','.agents','\x20for\x20local\x20path:\x20','skillCode','workbuddySkillsDir','6824046YsXcsP','includes','64JuzCGJ','171rlCoYn','.claude','3650MBEnFd','30272jGghFt','appCode','cache','validation','CLAUDE_SKILL_ROOT'];a140_0x1b33=function(){return _0x1ff7d4;};return a140_0x1b33();}import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x59b194={}){const _0x983db7=a140_0x2d6a,_0x32f182=_0x59b194['homeDir']??homedir(),_0x4a9378=resolve(_0x32f182,PRODUCT_CONFIG['homeDirName'],_0x983db7(0x1a5)),_0x1aef2b=trimmedEnv(_0x983db7(0x1a8)),_0x16a003=trimmedEnv(_0x983db7(0x1a7)),_0x18dab2=resolve(_0x32f182,'.workbuddy'),_0x27b20a=_0x59b194[_0x983db7(0x1b9)]??(existsSync(_0x18dab2)?resolve(_0x18dab2,_0x983db7(0x1af)):undefined);return{'homeDir':_0x32f182,'cacheRoot':_0x4a9378,'managedRoot':resolve(_0x32f182,PRODUCT_CONFIG[_0x983db7(0x1a9)]),'agentsSkillsDir':_0x59b194[_0x983db7(0x1ad)]??_0x1aef2b??resolve(_0x32f182,_0x983db7(0x1b6),_0x983db7(0x1af)),'claudeSkillsDir':_0x59b194[_0x983db7(0x1aa)]??_0x16a003??resolve(_0x32f182,_0x983db7(0x1be),'skills'),'workbuddySkillsDir':_0x27b20a};}export function runtimeAgentSkillRoots(_0x5f30ba){const _0x4c9bd0=a140_0x2d6a;return[_0x5f30ba[_0x4c9bd0(0x1ad)],_0x5f30ba[_0x4c9bd0(0x1aa)],_0x5f30ba['workbuddySkillsDir']][_0x4c9bd0(0x1ae)](_0x52bd2e=>Boolean(_0x52bd2e));}export function getRuntimeSkillCacheRoot(_0x5a82b9,_0x67db57,_0x15d2ff={}){const _0x3438af=a140_0x2d6a,_0x44559f=resolveSkillSyncPaths(_0x15d2ff);return resolve(_0x44559f['cacheRoot'],_0x5a82b9,fingerprintAccessKey(_0x67db57),_0x3438af(0x1af));}export function getRuntimeSkillDir(_0x108ab6,_0x23a173,_0x18625b,_0x44504e,_0x4c1d8d,_0x593c3c={}){const _0x4f10c8=a140_0x2d6a;return resolve(getRuntimeSkillCacheRoot(_0x108ab6,_0x23a173,_0x593c3c),safePathSegment(_0x18625b,_0x4f10c8(0x1a4)),_0x44504e,safePathSegment(_0x4c1d8d,_0x4f10c8(0x1b8)));}export function safePathSegment(_0x1be5a5,_0x45bc32=a140_0x49caee(0x1ab)){const _0x3b4680=a140_0x49caee;if(!_0x1be5a5||_0x1be5a5['includes']('/')||_0x1be5a5[_0x3b4680(0x1bb)]('\x5c')||_0x1be5a5['includes']('..'))throw CliErrors[_0x3b4680(0x1a6)](_0x3b4680(0x1b0)+_0x45bc32+_0x3b4680(0x1b7)+_0x1be5a5);return _0x1be5a5;}function trimmedEnv(_0x225e98){const _0x25ee46=productEnv(_0x225e98)?.['trim']();return _0x25ee46?_0x25ee46:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3d5de8,_0x5a2a66){const _0x2191f5=a141_0x1619,_0x56bce9=_0x3d5de8();while(!![]){try{const _0x581919=-parseInt(_0x2191f5(0xc1))/0x1+parseInt(_0x2191f5(0xbf))/0x2*(parseInt(_0x2191f5(0x93))/0x3)+parseInt(_0x2191f5(0x94))/0x4+-parseInt(_0x2191f5(0xa5))/0x5*(-parseInt(_0x2191f5(0x9f))/0x6)+parseInt(_0x2191f5(0x91))/0x7+parseInt(_0x2191f5(0x98))/0x8*(-parseInt(_0x2191f5(0xb2))/0x9)+-parseInt(_0x2191f5(0xca))/0xa;if(_0x581919===_0x5a2a66)break;else _0x56bce9['push'](_0x56bce9['shift']());}catch(_0x578526){_0x56bce9['push'](_0x56bce9['shift']());}}}(a141_0x14eb,0xb6f8c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a141_0x4a2ac6}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a141_0x14eb(){const _0xfc5b57=['8pmATKa','name','description','files','toLowerCase','company','Skill\x20directory\x20not\x20found:\x20','202086GdQIKd','Skill\x20metadata\x20appCode\x20\x22','utf8','scope','targetScope','displayName','215GVATTv','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','\x20has\x20unsupported\x20scope\x20\x22','startsWith','tags','string','skillName','find','metadata','sourceSessionId','number','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','version','3268089FLqhpV','object','dir',',\x20or\x20directory\x20name.','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','example','match','ignoreMetadataForPayload','builtin','manifest','unknown','ignoreMetadataAppCodeMismatch','replace','409924AWZBih','\x20name\x20for\x20SkillHub\x20slug\x20generation.','1021467lrHatP','trim','some','refreshedAt','isDirectory','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','validation','Remote\x20Skill\x20','isFile','3813870AmiTsc','ignoreInvalidMetadata','appCode','path','filter','packageBase64','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','personal','Invalid\x20','pushedAt','238483DqkWgj','excludedFilePaths','6ZbcByv','2492604tTNQeF','skillCode','\x20has\x20scope=\x22','content'];a141_0x14eb=function(){return _0xfc5b57;};return a141_0x14eb();}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';function a141_0x1619(_0x58423b,_0x588f89){_0x58423b=_0x58423b-0x8b;const _0x14eb59=a141_0x14eb();let _0x1619f4=_0x14eb59[_0x58423b];return _0x1619f4;}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x50fb5a,_0x553cb4,_0x3b34ac={}){const _0xd9d34a=a141_0x1619,_0x845956=resolvePushDirectoryRoot(_0x50fb5a),_0x56d3de=readPushMetadataIfPresent(resolve(_0x845956,METADATA_FILE),{'ignoreInvalidMetadata':_0x3b34ac[_0xd9d34a(0xcb)]});if(_0x56d3de?.[_0xd9d34a(0xcc)]&&_0x56d3de[_0xd9d34a(0xcc)]!==_0x553cb4&&!_0x3b34ac['allowAppCodeRetarget']&&!_0x3b34ac[_0xd9d34a(0xbd)])throw CliErrors['validation'](_0xd9d34a(0xa0)+_0x56d3de[_0xd9d34a(0xcc)]+_0xd9d34a(0xb6)+_0x553cb4+'\x22.');const _0x1b4f30=resolvePushSkillCode(_0x845956,_0x553cb4,_0x56d3de,_0x3b34ac);if(!_0x1b4f30)throw CliErrors[_0xd9d34a(0xc7)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0xd9d34a(0xb5));return{'dir':_0x845956,'skillCode':_0x1b4f30,'metadata':_0x56d3de};}export function readPushDirectory(_0x2c9471,_0x5b9048,_0x4f010e={}){const _0x18cb76=a141_0x1619,_0x1a6b73=resolvePushDirectoryIdentity(_0x2c9471,_0x5b9048,_0x4f010e),_0x1cb903=_0x1a6b73[_0x18cb76(0xb4)],_0x30ea3d=resolve(_0x1cb903,SKILL_FILE);if(!existsSync(_0x30ea3d)||!lstatSync(_0x30ea3d)['isFile']())throw CliErrors[_0x18cb76(0xc7)]('Missing\x20'+SKILL_FILE+':\x20'+_0x30ea3d);const _0x588561=_0x1a6b73[_0x18cb76(0xad)],_0x37af1d=_0x4f010e[_0x18cb76(0xa3)]??_0x18cb76(0x8e);if(!_0x4f010e['ignoreMetadataScope']&&_0x588561?.[_0x18cb76(0xa2)]===_0x18cb76(0xba))throw CliErrors[_0x18cb76(0xc7)](_0x18cb76(0xc6)+METADATA_FILE+_0x18cb76(0x96)+_0x588561[_0x18cb76(0xa2)]+'\x22.');if(!_0x4f010e['ignoreMetadataScope']&&_0x37af1d===_0x18cb76(0x8e)&&_0x588561?.[_0x18cb76(0xa2)]&&_0x588561['scope']!==_0x18cb76(0x8e))throw CliErrors['validation'](_0x18cb76(0xb0)+METADATA_FILE+_0x18cb76(0x96)+_0x588561[_0x18cb76(0xa2)]+'\x22.',_0x18cb76(0xa6)+_0x1cb903+_0x18cb76(0x8d));const _0x141cd4=scanSkillDirectory(_0x1cb903,{'excludedFilePaths':_0x4f010e[_0x18cb76(0x92)]}),_0x32e3ee=buildSkillPackage(_0x141cd4),_0x4a39d2=readFileSync(_0x30ea3d,_0x18cb76(0xa1)),_0x2d4c2f=_0x1a6b73[_0x18cb76(0x95)],_0x253fef=_0x4f010e[_0x18cb76(0xb9)]?undefined:_0x588561,_0x186d0e=readSkillDisplayName(_0x4a39d2);return{'skillCode':_0x2d4c2f,'metadata':_0x588561,'frontmatterDisplayName':_0x186d0e,'input':{'skillCode':_0x2d4c2f,'skillName':_0x186d0e??_0x253fef?.[_0x18cb76(0xab)],'description':_0x253fef?.[_0x18cb76(0x9a)],'content':_0x4a39d2,'files':_0x32e3ee[_0x18cb76(0xbb)],'packageBase64':_0x32e3ee[_0x18cb76(0x8c)],'tags':_0x253fef?.['tags'],'version':_0x253fef?.[_0x18cb76(0xb1)],'sourceSessionId':_0x253fef?.[_0x18cb76(0xae)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x30b4f4,_0x34e4ce,_0x438ad9,_0x369c3c={}){const _0x451c47=a141_0x1619,_0x126f26=resolvePushDirectoryRoot(_0x30b4f4),_0x41a71c=readPushMetadataIfPresent(resolve(_0x126f26,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x49c4b2=requireRemoteScope(_0x34e4ce),_0x52763c=readLocalSkillContent(_0x126f26),_0x14c31c={..._0x34e4ce,'appCode':_0x34e4ce[_0x451c47(0xcc)]??_0x438ad9,'skillName':_0x34e4ce['skillName']??_0x41a71c?.[_0x451c47(0xab)],'description':_0x34e4ce[_0x451c47(0x9a)]??_0x41a71c?.['description'],'example':_0x34e4ce['example']??_0x41a71c?.[_0x451c47(0xb7)],'tags':Array['isArray'](_0x34e4ce[_0x451c47(0xa9)])?_0x34e4ce['tags']:_0x41a71c?.[_0x451c47(0xa9)],'sourceSessionId':_0x34e4ce[_0x451c47(0xae)]??_0x41a71c?.[_0x451c47(0xae)],'content':_0x34e4ce['content']??_0x52763c},_0x74e1a8=buildMetadata(_0x14c31c,_0x49c4b2,_0x438ad9,contentHash(_0x52763c),_0x369c3c[_0x451c47(0xc4)]);writeJsonAtomic(resolve(_0x126f26,METADATA_FILE),_0x74e1a8);}export function recordPushedRuntimeSkill(_0x28e5ee,_0x58d2e6,_0x4bdc3b,_0x2b74d0={}){const _0xe15ef9=a141_0x1619,_0xdd793d=resolvePushDirectoryRoot(_0x28e5ee),_0x57861b=scanSkillDirectory(_0xdd793d),_0x11a93e=_0x57861b[_0xe15ef9(0xac)](_0x5731ab=>_0x5731ab[_0xe15ef9(0xcd)]===SKILL_FILE),_0x20c96e=_0x11a93e?fileText(_0x11a93e):'',_0x301b9a=tryNormalizePackageManifest(_0x58d2e6['files']),_0x5ee25f={..._0x58d2e6,'content':_0x58d2e6[_0xe15ef9(0x97)]??_0x20c96e,'files':_0x301b9a},_0x3f3e7b=_0x301b9a?normalizeLocalFiles(_0x57861b)[_0xe15ef9(0x8b)](_0x305bae=>_0x301b9a[_0xe15ef9(0x9b)][_0xe15ef9(0xc3)](_0x12e174=>_0x12e174[_0xe15ef9(0xcd)]===_0x305bae[_0xe15ef9(0xcd)])):undefined,_0x3a5341=buildMetadata(_0x5ee25f,_0x2b74d0[_0xe15ef9(0xa2)]??'personal',_0x4bdc3b,contentHash(_0x5ee25f['content']??''),_0x2b74d0[_0xe15ef9(0x90)],_0x3f3e7b);writeJsonAtomic(resolve(_0xdd793d,METADATA_FILE),_0x3a5341);}export function deriveSkillCodeFromDirectory(_0x29a90c,_0x4784e5){const _0x1ee239=a141_0x1619,_0x55a8e5=basename(resolve(_0x29a90c)),_0x261c66=_0x4784e5+'--';return _0x55a8e5[_0x1ee239(0xa8)](_0x261c66)?_0x55a8e5['slice'](_0x261c66['length']):_0x55a8e5;}function resolvePushSkillCode(_0x331d36,_0x812402,_0x239207,_0x57e7a6){const _0x2ee7a9=a141_0x1619,_0x478b19=deriveSkillCodeFromSkillFile(_0x331d36)||deriveSkillCodeFromDirectory(_0x331d36,_0x812402);if(_0x57e7a6['ignoreMetadataSkillCode'])return _0x478b19;return _0x239207?.[_0x2ee7a9(0x95)]?.[_0x2ee7a9(0xc2)]()||_0x478b19;}function deriveSkillCodeFromSkillFile(_0x3d48bd){const _0xb8cd97=a141_0x1619,_0x367510=resolve(_0x3d48bd,SKILL_FILE);if(!existsSync(_0x367510)||!lstatSync(_0x367510)[_0xb8cd97(0xc9)]())return undefined;const _0x2ef97f=readFileSync(_0x367510,_0xb8cd97(0xa1)),_0x4f688a=_0x2ef97f['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4f688a)return undefined;const _0x516550=parseFrontmatterObject(_0x4f688a[0x1]??''),_0x523f47=scalarToString(_0x516550?.[_0xb8cd97(0x99)]);return _0x523f47?slugifySkillName(_0x523f47):undefined;}function readSkillDisplayName(_0x5c5748){const _0x5a98ad=a141_0x1619,_0x2e8260=_0x5c5748[_0x5a98ad(0xb8)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2e8260)return undefined;const _0x79a6c3=parseFrontmatterObject(_0x2e8260[0x1]??'');return scalarToString(_0x79a6c3?.[_0x5a98ad(0xa4)]);}function slugifySkillName(_0x188347){const _0x23c79a=a141_0x1619,_0x498771=_0x188347['trim']()[_0x23c79a(0x9c)]()[_0x23c79a(0xbe)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x23c79a(0xbe)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x498771)throw CliErrors['validation'](_0x23c79a(0x8f)+SKILL_FILE+_0x23c79a(0xc0));return _0x498771;}function parseFrontmatterObject(_0x58a2a9){const _0x1130d7=a141_0x1619;try{const _0x20c998=a141_0x4a2ac6(_0x58a2a9);return _0x20c998&&typeof _0x20c998===_0x1130d7(0xb3)&&!Array['isArray'](_0x20c998)?_0x20c998:undefined;}catch{return undefined;}}function scalarToString(_0x463345){const _0x2d0ce6=a141_0x1619;if(typeof _0x463345===_0x2d0ce6(0xaa))return _0x463345[_0x2d0ce6(0xc2)]();if(typeof _0x463345===_0x2d0ce6(0xaf)||typeof _0x463345==='boolean')return String(_0x463345);return undefined;}function resolvePushDirectoryRoot(_0x3a908b){const _0x4d6e36=a141_0x1619,_0x3aff8e=resolve(_0x3a908b);if(!existsSync(_0x3aff8e))throw CliErrors[_0x4d6e36(0xc7)]('Skill\x20directory\x20not\x20found:\x20'+_0x3a908b);const _0x47bf23=lstatSync(_0x3aff8e);if(_0x47bf23[_0x4d6e36(0xc5)]())return _0x3aff8e;if(_0x47bf23['isSymbolicLink']()){const _0x20a1a8=realpathSync(_0x3aff8e);if(lstatSync(_0x20a1a8)[_0x4d6e36(0xc5)]())return _0x20a1a8;}throw CliErrors['validation'](_0x4d6e36(0x9e)+_0x3a908b);}function requireRemoteScope(_0x48b507){const _0x1b3a40=a141_0x1619;if(_0x48b507[_0x1b3a40(0xa2)]===_0x1b3a40(0x8e)||_0x48b507['scope']===_0x1b3a40(0x9d)||_0x48b507[_0x1b3a40(0xa2)]===_0x1b3a40(0xba))return _0x48b507['scope'];throw CliErrors['validation'](_0x1b3a40(0xc8)+(_0x48b507[_0x1b3a40(0x95)]||'(unknown)')+_0x1b3a40(0xa7)+(_0x48b507['scope']??_0x1b3a40(0xbc))+'\x22.');}function readLocalSkillContent(_0x281de2){const _0x596de7=a141_0x1619,_0xcaa994=resolve(_0x281de2,SKILL_FILE);return existsSync(_0xcaa994)&&lstatSync(_0xcaa994)[_0x596de7(0xc9)]()?readFileSync(_0xcaa994,_0x596de7(0xa1)):'';}function readPushMetadataIfPresent(_0x377287,_0xa9e825={}){try{return readMetadataIfPresent(_0x377287);}catch(_0x33fcd7){if(_0xa9e825['ignoreInvalidMetadata'])return undefined;throw _0x33fcd7;}}
|
|
1
|
+
(function(_0x13fcca,_0x24189b){const _0x39ebf8=a141_0x35c6,_0x4439f3=_0x13fcca();while(!![]){try{const _0xbe03af=parseInt(_0x39ebf8(0xf2))/0x1+-parseInt(_0x39ebf8(0xff))/0x2*(-parseInt(_0x39ebf8(0xdd))/0x3)+-parseInt(_0x39ebf8(0xfc))/0x4+parseInt(_0x39ebf8(0x112))/0x5*(-parseInt(_0x39ebf8(0x111))/0x6)+parseInt(_0x39ebf8(0xf5))/0x7*(-parseInt(_0x39ebf8(0xf3))/0x8)+-parseInt(_0x39ebf8(0xfd))/0x9+parseInt(_0x39ebf8(0x104))/0xa;if(_0xbe03af===_0x24189b)break;else _0x4439f3['push'](_0x4439f3['shift']());}catch(_0x757efc){_0x4439f3['push'](_0x4439f3['shift']());}}}(a141_0x4d3c,0x5d9db));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a141_0x447269}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';function a141_0x4d3c(){const _0x161bff=['10157qhBkNG','(unknown)','Skill\x20directory\x20not\x20found:\x20','allowAppCodeRetarget','\x20name\x20for\x20SkillHub\x20slug\x20generation.','ignoreMetadataAppCodeMismatch','number','434240MzNVVS','1775880AZHIql','company','1602jaUDpm','match','replace','\x20has\x20unsupported\x20scope\x20\x22','Remote\x20Skill\x20','6084650KpeLno','dir','\x20has\x20scope=\x22','pushedAt','name','content','ignoreMetadataForPayload','unknown','Skill\x20metadata\x20appCode\x20\x22','refreshedAt','object','files','personal','834NLsGCX','27140QPnHUc','Missing\x20','builtin','packageBase64','string','scope','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','isFile','example','boolean','path','Unable\x20to\x20resolve\x20skillCode\x20from\x20','displayName','appCode','version','excludedFilePaths','metadata','skillCode','1314uLFsGk','manifest','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','isDirectory','isSymbolicLink',',\x20or\x20directory\x20name.','ignoreMetadataScope','length','slice','tags','toLowerCase','sourceSessionId','utf8','targetScope','ignoreInvalidMetadata','description','trim','validation','isArray','startsWith','591894zGFzeU','592dZRefr','skillName'];a141_0x4d3c=function(){return _0x161bff;};return a141_0x4d3c();}import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x5e5479,_0x26f2c2,_0x351946={}){const _0x3cf1ca=a141_0x35c6,_0xe28252=resolvePushDirectoryRoot(_0x5e5479),_0x2a9fb7=readPushMetadataIfPresent(resolve(_0xe28252,METADATA_FILE),{'ignoreInvalidMetadata':_0x351946[_0x3cf1ca(0xec)]});if(_0x2a9fb7?.[_0x3cf1ca(0xd8)]&&_0x2a9fb7[_0x3cf1ca(0xd8)]!==_0x26f2c2&&!_0x351946[_0x3cf1ca(0xf8)]&&!_0x351946[_0x3cf1ca(0xfa)])throw CliErrors[_0x3cf1ca(0xef)](_0x3cf1ca(0x10c)+_0x2a9fb7['appCode']+_0x3cf1ca(0xd1)+_0x26f2c2+'\x22.');const _0x57083e=resolvePushSkillCode(_0xe28252,_0x26f2c2,_0x2a9fb7,_0x351946);if(!_0x57083e)throw CliErrors[_0x3cf1ca(0xef)](_0x3cf1ca(0xd6)+SKILL_FILE+',\x20'+METADATA_FILE+_0x3cf1ca(0xe3));return{'dir':_0xe28252,'skillCode':_0x57083e,'metadata':_0x2a9fb7};}export function readPushDirectory(_0x217853,_0x5f3692,_0xabbd1d={}){const _0x3649c7=a141_0x35c6,_0x2879cb=resolvePushDirectoryIdentity(_0x217853,_0x5f3692,_0xabbd1d),_0x8a4ed=_0x2879cb[_0x3649c7(0x105)],_0x3f5a5e=resolve(_0x8a4ed,SKILL_FILE);if(!existsSync(_0x3f5a5e)||!lstatSync(_0x3f5a5e)[_0x3649c7(0xd2)]())throw CliErrors[_0x3649c7(0xef)](_0x3649c7(0x113)+SKILL_FILE+':\x20'+_0x3f5a5e);const _0x1042fc=_0x2879cb[_0x3649c7(0xdb)],_0x2564d3=_0xabbd1d[_0x3649c7(0xeb)]??_0x3649c7(0x110);if(!_0xabbd1d[_0x3649c7(0xe4)]&&_0x1042fc?.[_0x3649c7(0x117)]===_0x3649c7(0x114))throw CliErrors[_0x3649c7(0xef)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x3649c7(0x106)+_0x1042fc['scope']+'\x22.');if(!_0xabbd1d['ignoreMetadataScope']&&_0x2564d3===_0x3649c7(0x110)&&_0x1042fc?.[_0x3649c7(0x117)]&&_0x1042fc['scope']!=='personal')throw CliErrors['validation'](_0x3649c7(0xd0)+METADATA_FILE+_0x3649c7(0x106)+_0x1042fc[_0x3649c7(0x117)]+'\x22.',_0x3649c7(0xdf)+_0x8a4ed+_0x3649c7(0xe0));const _0x2482fa=scanSkillDirectory(_0x8a4ed,{'excludedFilePaths':_0xabbd1d[_0x3649c7(0xda)]}),_0x435ab9=buildSkillPackage(_0x2482fa),_0x566ac1=readFileSync(_0x3f5a5e,'utf8'),_0xf0c5a7=_0x2879cb[_0x3649c7(0xdc)],_0x33ed1d=_0xabbd1d[_0x3649c7(0x10a)]?undefined:_0x1042fc,_0xbadcab=readSkillDisplayName(_0x566ac1);return{'skillCode':_0xf0c5a7,'metadata':_0x1042fc,'frontmatterDisplayName':_0xbadcab,'input':{'skillCode':_0xf0c5a7,'skillName':_0xbadcab??_0x33ed1d?.[_0x3649c7(0xf4)],'description':_0x33ed1d?.['description'],'content':_0x566ac1,'files':_0x435ab9[_0x3649c7(0xde)],'packageBase64':_0x435ab9[_0x3649c7(0x115)],'tags':_0x33ed1d?.[_0x3649c7(0xe7)],'version':_0x33ed1d?.[_0x3649c7(0xd9)],'sourceSessionId':_0x33ed1d?.[_0x3649c7(0xe9)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x4f6749,_0x580eb8,_0x52a4a7,_0xfde670={}){const _0x5a65f8=a141_0x35c6,_0x1eb630=resolvePushDirectoryRoot(_0x4f6749),_0x450e38=readPushMetadataIfPresent(resolve(_0x1eb630,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x27582b=requireRemoteScope(_0x580eb8),_0x44f41e=readLocalSkillContent(_0x1eb630),_0x5be264={..._0x580eb8,'appCode':_0x580eb8[_0x5a65f8(0xd8)]??_0x52a4a7,'skillName':_0x580eb8[_0x5a65f8(0xf4)]??_0x450e38?.[_0x5a65f8(0xf4)],'description':_0x580eb8[_0x5a65f8(0xed)]??_0x450e38?.[_0x5a65f8(0xed)],'example':_0x580eb8['example']??_0x450e38?.[_0x5a65f8(0xd3)],'tags':Array[_0x5a65f8(0xf0)](_0x580eb8[_0x5a65f8(0xe7)])?_0x580eb8[_0x5a65f8(0xe7)]:_0x450e38?.[_0x5a65f8(0xe7)],'sourceSessionId':_0x580eb8[_0x5a65f8(0xe9)]??_0x450e38?.['sourceSessionId'],'content':_0x580eb8[_0x5a65f8(0x109)]??_0x44f41e},_0x3bf689=buildMetadata(_0x5be264,_0x27582b,_0x52a4a7,contentHash(_0x44f41e),_0xfde670[_0x5a65f8(0x10d)]);writeJsonAtomic(resolve(_0x1eb630,METADATA_FILE),_0x3bf689);}export function recordPushedRuntimeSkill(_0x351e2a,_0x2448de,_0x5b0337,_0x4c10ad={}){const _0x2c2f40=a141_0x35c6,_0x17cda6=resolvePushDirectoryRoot(_0x351e2a),_0x267c21=scanSkillDirectory(_0x17cda6),_0x55c7af=_0x267c21['find'](_0x5e0dd2=>_0x5e0dd2['path']===SKILL_FILE),_0x3cab51=_0x55c7af?fileText(_0x55c7af):'',_0x34e424=tryNormalizePackageManifest(_0x2448de[_0x2c2f40(0x10f)]),_0x416153={..._0x2448de,'content':_0x2448de['content']??_0x3cab51,'files':_0x34e424},_0x5286cc=_0x34e424?normalizeLocalFiles(_0x267c21)['filter'](_0x1c80c6=>_0x34e424[_0x2c2f40(0x10f)]['some'](_0x2b18c8=>_0x2b18c8[_0x2c2f40(0xd5)]===_0x1c80c6[_0x2c2f40(0xd5)])):undefined,_0x2f9bdd=buildMetadata(_0x416153,_0x4c10ad['scope']??_0x2c2f40(0x110),_0x5b0337,contentHash(_0x416153[_0x2c2f40(0x109)]??''),_0x4c10ad[_0x2c2f40(0x107)],_0x5286cc);writeJsonAtomic(resolve(_0x17cda6,METADATA_FILE),_0x2f9bdd);}export function deriveSkillCodeFromDirectory(_0x4f9c82,_0xe365c9){const _0x195fa8=a141_0x35c6,_0x4eead4=basename(resolve(_0x4f9c82)),_0x5ec2e0=_0xe365c9+'--';return _0x4eead4[_0x195fa8(0xf1)](_0x5ec2e0)?_0x4eead4[_0x195fa8(0xe6)](_0x5ec2e0[_0x195fa8(0xe5)]):_0x4eead4;}function resolvePushSkillCode(_0x32114b,_0x5839ec,_0x5802fa,_0x2fa8bd){const _0x55de5b=a141_0x35c6,_0x1ead21=deriveSkillCodeFromSkillFile(_0x32114b)||deriveSkillCodeFromDirectory(_0x32114b,_0x5839ec);if(_0x2fa8bd['ignoreMetadataSkillCode'])return _0x1ead21;return _0x5802fa?.[_0x55de5b(0xdc)]?.['trim']()||_0x1ead21;}function deriveSkillCodeFromSkillFile(_0x225359){const _0x149ce1=a141_0x35c6,_0x2dce78=resolve(_0x225359,SKILL_FILE);if(!existsSync(_0x2dce78)||!lstatSync(_0x2dce78)['isFile']())return undefined;const _0x9cb8bd=readFileSync(_0x2dce78,_0x149ce1(0xea)),_0x1d465b=_0x9cb8bd[_0x149ce1(0x100)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1d465b)return undefined;const _0x51d238=parseFrontmatterObject(_0x1d465b[0x1]??''),_0x448332=scalarToString(_0x51d238?.[_0x149ce1(0x108)]);return _0x448332?slugifySkillName(_0x448332):undefined;}function readSkillDisplayName(_0x3e098f){const _0x427a82=a141_0x35c6,_0x3280f8=_0x3e098f['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3280f8)return undefined;const _0x51c05d=parseFrontmatterObject(_0x3280f8[0x1]??'');return scalarToString(_0x51c05d?.[_0x427a82(0xd7)]);}function slugifySkillName(_0x21e33b){const _0x2b22e3=a141_0x35c6,_0x47267d=_0x21e33b[_0x2b22e3(0xee)]()[_0x2b22e3(0xe8)]()[_0x2b22e3(0x101)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x2b22e3(0x101)](/^-+/,'')['replace'](/-+$/,'')[_0x2b22e3(0x101)](/-{2,}/g,'-');if(!_0x47267d)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+_0x2b22e3(0xf9));return _0x47267d;}function parseFrontmatterObject(_0x13285f){const _0x1d2de5=a141_0x35c6;try{const _0x346a3e=a141_0x447269(_0x13285f);return _0x346a3e&&typeof _0x346a3e===_0x1d2de5(0x10e)&&!Array['isArray'](_0x346a3e)?_0x346a3e:undefined;}catch{return undefined;}}function scalarToString(_0x20e5f7){const _0x154c43=a141_0x35c6;if(typeof _0x20e5f7===_0x154c43(0x116))return _0x20e5f7[_0x154c43(0xee)]();if(typeof _0x20e5f7===_0x154c43(0xfb)||typeof _0x20e5f7===_0x154c43(0xd4))return String(_0x20e5f7);return undefined;}function resolvePushDirectoryRoot(_0x477edb){const _0x4296da=a141_0x35c6,_0x2b0d83=resolve(_0x477edb);if(!existsSync(_0x2b0d83))throw CliErrors['validation'](_0x4296da(0xf7)+_0x477edb);const _0xa96754=lstatSync(_0x2b0d83);if(_0xa96754['isDirectory']())return _0x2b0d83;if(_0xa96754[_0x4296da(0xe2)]()){const _0x30f954=realpathSync(_0x2b0d83);if(lstatSync(_0x30f954)[_0x4296da(0xe1)]())return _0x30f954;}throw CliErrors['validation'](_0x4296da(0xf7)+_0x477edb);}function requireRemoteScope(_0x2f0ebf){const _0x489983=a141_0x35c6;if(_0x2f0ebf['scope']===_0x489983(0x110)||_0x2f0ebf[_0x489983(0x117)]===_0x489983(0xfe)||_0x2f0ebf[_0x489983(0x117)]===_0x489983(0x114))return _0x2f0ebf['scope'];throw CliErrors['validation'](_0x489983(0x103)+(_0x2f0ebf[_0x489983(0xdc)]||_0x489983(0xf6))+_0x489983(0x102)+(_0x2f0ebf['scope']??_0x489983(0x10b))+'\x22.');}function readLocalSkillContent(_0x2575e5){const _0x320ee2=a141_0x35c6,_0x291452=resolve(_0x2575e5,SKILL_FILE);return existsSync(_0x291452)&&lstatSync(_0x291452)['isFile']()?readFileSync(_0x291452,_0x320ee2(0xea)):'';}function a141_0x35c6(_0x3462c2,_0x785b97){_0x3462c2=_0x3462c2-0xd0;const _0x4d3c10=a141_0x4d3c();let _0x35c6c9=_0x4d3c10[_0x3462c2];return _0x35c6c9;}function readPushMetadataIfPresent(_0x347280,_0x4ec479={}){try{return readMetadataIfPresent(_0x347280);}catch(_0x1cabaf){if(_0x4ec479['ignoreInvalidMetadata'])return undefined;throw _0x1cabaf;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x158e2b,_0x4c54e2){const _0x1c0117=a142_0x51bb,_0x4f1e18=_0x158e2b();while(!![]){try{const _0x19b994=-parseInt(_0x1c0117(0x1a9))/0x1+parseInt(_0x1c0117(0x1aa))/0x2*(-parseInt(_0x1c0117(0x1ab))/0x3)+parseInt(_0x1c0117(0x1a7))/0x4+-parseInt(_0x1c0117(0x1a3))/0x5+parseInt(_0x1c0117(0x19f))/0x6*(-parseInt(_0x1c0117(0x19b))/0x7)+-parseInt(_0x1c0117(0x19c))/0x8+-parseInt(_0x1c0117(0x1a1))/0x9*(-parseInt(_0x1c0117(0x1a0))/0xa);if(_0x19b994===_0x4c54e2)break;else _0x4f1e18['push'](_0x4f1e18['shift']());}catch(_0x5f1d2b){_0x4f1e18['push'](_0x4f1e18['shift']());}}}(a142_0x2d36,0x94463));import{CliErrors}from'../../errors.js';function a142_0x51bb(_0xc26adc,_0x4a9ee6){_0xc26adc=_0xc26adc-0x19a;const _0x2d36fc=a142_0x2d36();let _0x51bbea=_0x2d36fc[_0xc26adc];return _0x51bbea;}function a142_0x2d36(){const _0x30ef85=['personal','builtin','push','940108fdHzOi','includes','1061622ZGVrXl','1816478HWANKG','3dGTRch','Unsupported\x20runtime\x20Skill\x20scope:\x20','2359njJOJZ','9438392ZpkiBk','company','validation','3438rwQiCG','50HIpSii','8302464eWukdv','length','4487075ZlGEEq'];a142_0x2d36=function(){return _0x30ef85;};return a142_0x2d36();}export function normalizeRuntimeSkillScopes(_0x6b50aa){const _0x4a76f8=a142_0x51bb,_0x200d0f=_0x6b50aa&&_0x6b50aa[_0x4a76f8(0x1a2)]>0x0?_0x6b50aa:[_0x4a76f8(0x1a4),_0x4a76f8(0x19d),_0x4a76f8(0x1a5)],_0x1f4bca=[];for(const _0x2187ba of _0x200d0f){if(!isRuntimeSkillScope(_0x2187ba))throw CliErrors[_0x4a76f8(0x19e)](_0x4a76f8(0x19a)+_0x2187ba);!_0x1f4bca[_0x4a76f8(0x1a8)](_0x2187ba)&&_0x1f4bca[_0x4a76f8(0x1a6)](_0x2187ba);}return _0x1f4bca;}export function isRuntimeSkillScope(_0x35d471){const _0x363eab=a142_0x51bb;return _0x35d471==='personal'||_0x35d471==='company'||_0x35d471===_0x363eab(0x1a5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x5c357a=a144_0x1d97;function a144_0x1d97(_0xacd6a8,_0x1b91cd){_0xacd6a8=_0xacd6a8-0xfd;const _0x3f7129=a144_0x3f71();let _0x1d9769=_0x3f7129[_0xacd6a8];return _0x1d9769;}(function(_0x44c835,_0x2edaf6){const _0x381198=a144_0x1d97,_0x76615=_0x44c835();while(!![]){try{const _0x4b0121=parseInt(_0x381198(0x107))/0x1+-parseInt(_0x381198(0x10f))/0x2+parseInt(_0x381198(0xff))/0x3+parseInt(_0x381198(0x100))/0x4*(-parseInt(_0x381198(0x110))/0x5)+parseInt(_0x381198(0x102))/0x6+-parseInt(_0x381198(0x10d))/0x7+parseInt(_0x381198(0x103))/0x8;if(_0x4b0121===_0x2edaf6)break;else _0x76615['push'](_0x76615['shift']());}catch(_0x2a28c8){_0x76615['push'](_0x76615['shift']());}}}(a144_0x3f71,0x4115e));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a144_0x5c357a(0x112));export function createDeterministicZipPackage(_0x33524e){const _0x88ab9=a144_0x5c357a,_0x28041d={};for(const _0x113181 of normalizeLocalFiles(_0x33524e)){_0x28041d[_0x113181[_0x88ab9(0x101)]]=fileContent(_0x113181);}return Buffer[_0x88ab9(0x108)](zipSync(_0x28041d,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x1f92f9){const _0x14595d=a144_0x5c357a;if(_0x1f92f9[_0x14595d(0x111)]<0x16)throw CliErrors[_0x14595d(0x10a)](_0x14595d(0x105));let _0x393e74;try{_0x393e74=unzipSync(_0x1f92f9,{'filter'(_0x58fbd8){const _0x12c2c5=_0x14595d,_0x432b1f=normalizeSkillRelativePath(_0x58fbd8['name']);if(_0x432b1f[_0x12c2c5(0x10c)]('/'))throw CliErrors[_0x12c2c5(0x10a)](_0x12c2c5(0xfd)+_0x432b1f);return!![];}});}catch(_0x41b4b7){if(isRuntimeSkillValidationError(_0x41b4b7))throw _0x41b4b7;throw CliErrors['validation'](_0x14595d(0x105));}return Object[_0x14595d(0x106)](_0x393e74)[_0x14595d(0x10b)](([_0x3a83f6,_0x287528])=>({'path':normalizeSkillRelativePath(_0x3a83f6),'bytes':Buffer[_0x14595d(0x108)](_0x287528)}))[_0x14595d(0x109)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x4b188){const _0x4e7276=a144_0x5c357a;return typeof _0x4b188===_0x4e7276(0x104)&&_0x4b188!==null&&_0x4e7276(0xfe)in _0x4b188&&_0x4b188[_0x4e7276(0xfe)]===_0x4e7276(0x10e);}function a144_0x3f71(){const _0x312242=['2704692MCpJzA','2932968HiaoGn','object','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','entries','4108QAQtMt','from','sort','validation','map','endsWith','2811242zUXAxd','validation_error','750790jelAoB','10GihpLf','length','1980-01-01T00:00:00.000Z','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','code','1493136SprajD','551264WXGiyC','path'];a144_0x3f71=function(){return _0x312242;};return a144_0x3f71();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c29fe,_0xd7e6f2){const _0x15f8a1=a145_0x253a,_0x499cf5=_0x2c29fe();while(!![]){try{const _0x24d73d=-parseInt(_0x15f8a1(0x9c))/0x1*(parseInt(_0x15f8a1(0x92))/0x2)+-parseInt(_0x15f8a1(0x90))/0x3*(parseInt(_0x15f8a1(0x9d))/0x4)+parseInt(_0x15f8a1(0x8e))/0x5+-parseInt(_0x15f8a1(0x89))/0x6+-parseInt(_0x15f8a1(0x6f))/0x7+parseInt(_0x15f8a1(0x81))/0x8*(-parseInt(_0x15f8a1(0x8a))/0x9)+-parseInt(_0x15f8a1(0x7f))/0xa*(-parseInt(_0x15f8a1(0x94))/0xb);if(_0x24d73d===_0xd7e6f2)break;else _0x499cf5['push'](_0x499cf5['shift']());}catch(_0x2af35a){_0x499cf5['push'](_0x499cf5['shift']());}}}(a145_0x1735,0x9f7d9));import{CliErrors}from'../../errors.js';function a145_0x1735(){const _0x3fb5b7=['Missing\x20','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','requireOssPath','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','39539030jmNYvu','some','4808RcWnqi','base64','ossPath','set','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','\x20in\x20Skill\x20file\x20package.','map','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','5879412EvQEoq','5697NPcSnW','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','trim','has','930360WiHAnC','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','3231vlltFQ','Runtime\x20Skill\x20package\x20size\x20mismatch.','418vKYuGN','size','11lHdFbH','toLowerCase','treeSha256','zipSize','path','isSafeInteger','length','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','3763IMqYQH','4716CteZOv','object','bytes','490819LBxwcN','toString','zipSha256','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','isArray','Duplicate\x20Skill\x20package\x20entry:\x20','validation','files','string'];a145_0x1735=function(){return _0x3fb5b7;};return a145_0x1735();}import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a145_0x253a(_0x32986c,_0x31d453){_0x32986c=_0x32986c-0x6d;const _0x17354f=a145_0x1735();let _0x253a04=_0x17354f[_0x32986c];return _0x253a04;}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x15c2c3){const _0x5bca3d=a145_0x253a,_0x33a6e1=normalizeLocalFiles(_0x15c2c3);if(!_0x33a6e1[_0x5bca3d(0x80)](_0x27990a=>_0x27990a[_0x5bca3d(0x98)]===SKILL_FILE))throw CliErrors[_0x5bca3d(0x76)](_0x5bca3d(0x79)+SKILL_FILE+_0x5bca3d(0x86));const _0x238f10=localFilesToManifestFiles(_0x33a6e1),_0x34f9e3=createDeterministicZipPackage(_0x33a6e1);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x238f10),'zipSha256':bufferSha256(_0x34f9e3),'zipSize':_0x34f9e3['length'],'files':_0x238f10},'packageBytes':_0x34f9e3,'packageBase64':_0x34f9e3[_0x5bca3d(0x70)](_0x5bca3d(0x82))};}export function verifyRuntimeSkillPackage(_0x4fb85c,_0x19e06b){const _0x56912c=a145_0x253a,_0x2a62ba=normalizePackageManifest(_0x4fb85c,{'requireOssPath':![]});if(!_0x2a62ba)throw CliErrors[_0x56912c(0x76)](_0x56912c(0x88));return extractAndVerifyPackage(_0x2a62ba,_0x19e06b);}export function verifyRuntimeSkillBundle(_0x588664,_0x275981){const _0x27ce70=a145_0x253a,_0x2ac9d9=normalizePackageManifest(_0x588664,{'requireOssPath':![]});if(!_0x2ac9d9)throw CliErrors[_0x27ce70(0x76)](_0x27ce70(0x88));return extractAndVerifyPackageFiles(_0x2ac9d9,_0x275981);}export function tryNormalizePackageManifest(_0x354739){return normalizePackageManifest(_0x354739,{'requireOssPath':![]});}export function requirePackageBytes(_0x86cdd3,_0x25eed5){const _0x5999b8=a145_0x253a;if(!_0x25eed5||_0x25eed5[_0x5999b8(0x9a)]===0x0)throw CliErrors[_0x5999b8(0x76)](_0x5999b8(0x8b)+_0x86cdd3);return _0x25eed5;}export function extractDownloadedPackage(_0x2020fa){const _0x4fb066=a145_0x253a,_0x3b6461=parseZipPackage(_0x2020fa)[_0x4fb066(0x87)](_0x39dd5c=>({'path':_0x39dd5c[_0x4fb066(0x98)],'bytes':_0x39dd5c[_0x4fb066(0x6e)]}));if(!_0x3b6461[_0x4fb066(0x80)](_0x375a25=>_0x375a25['path']===SKILL_FILE))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+'.');return normalizeLocalFiles(_0x3b6461);}export function localFilesToManifestFiles(_0x368fc9){const _0x2bd564=a145_0x253a;return normalizeLocalFiles(_0x368fc9)[_0x2bd564(0x87)](_0x261843=>({'path':_0x261843[_0x2bd564(0x98)],'sha256':fileHash(_0x261843),'size':fileContent(_0x261843)[_0x2bd564(0x9a)]}));}function normalizePackageManifest(_0x44535d,_0x4fd048){const _0x2813b3=a145_0x253a;if(!_0x44535d||typeof _0x44535d!==_0x2813b3(0x6d)||Array[_0x2813b3(0x74)](_0x44535d))return undefined;const _0x560441=_0x44535d,_0x41611=typeof _0x560441[_0x2813b3(0x83)]===_0x2813b3(0x78)?_0x560441[_0x2813b3(0x83)][_0x2813b3(0x8c)]():undefined;if(_0x4fd048[_0x2813b3(0x7b)]&&!_0x41611)return undefined;if(!Array['isArray'](_0x560441[_0x2813b3(0x77)])||_0x560441['files'][_0x2813b3(0x9a)]===0x0)return undefined;if(!isSha256Hex(_0x560441['treeSha256']))throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x560441[_0x2813b3(0x71)]))throw CliErrors['validation'](_0x2813b3(0x7d));if(!Number[_0x2813b3(0x99)](_0x560441[_0x2813b3(0x97)])||_0x560441[_0x2813b3(0x97)]<0x0)throw CliErrors[_0x2813b3(0x76)](_0x2813b3(0x9b));const _0x2f73d4=normalizeManifestFiles(_0x560441[_0x2813b3(0x77)]);if(!_0x2f73d4[_0x2813b3(0x80)](_0x15d557=>_0x15d557['path']===SKILL_FILE))throw CliErrors[_0x2813b3(0x76)](_0x2813b3(0x72)+SKILL_FILE+'.');const _0x2b1b39=fileTreeHash(_0x2f73d4);if(_0x2b1b39!==_0x560441[_0x2813b3(0x96)][_0x2813b3(0x95)]())throw CliErrors[_0x2813b3(0x76)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x2813b3(0x99)](_0x560441[_0x2813b3(0x7c)])?_0x560441[_0x2813b3(0x7c)]:0x2,'ossPath':_0x41611,'treeSha256':_0x2b1b39,'zipSha256':_0x560441[_0x2813b3(0x71)][_0x2813b3(0x95)](),'zipSize':_0x560441[_0x2813b3(0x97)],'files':_0x2f73d4};}function extractAndVerifyPackage(_0x4910c9,_0x2d4254){const _0x410bce=a145_0x253a,_0xba8a4c=normalizePackageManifest(_0x4910c9,{'requireOssPath':![]});if(!_0xba8a4c)throw CliErrors[_0x410bce(0x76)](_0x410bce(0x88));if(_0x2d4254[_0x410bce(0x9a)]!==_0xba8a4c['zipSize'])throw CliErrors['validation'](_0x410bce(0x91));const _0x198cbb=bufferSha256(_0x2d4254);if(_0x198cbb!==_0xba8a4c['zipSha256'])throw CliErrors[_0x410bce(0x76)](_0x410bce(0x73));return extractAndVerifyPackageFiles(_0xba8a4c,_0x2d4254);}function extractAndVerifyPackageFiles(_0x184e9b,_0x4bc677){const _0x52c367=a145_0x253a,_0x32bf25=parseZipPackage(_0x4bc677);if(_0x32bf25[_0x52c367(0x9a)]!==_0x184e9b[_0x52c367(0x77)][_0x52c367(0x9a)])throw CliErrors[_0x52c367(0x76)](_0x52c367(0x7e));const _0x55ca83=new Map();for(const _0x4eeec5 of _0x32bf25){if(_0x55ca83[_0x52c367(0x8d)](_0x4eeec5[_0x52c367(0x98)]))throw CliErrors['validation'](_0x52c367(0x75)+_0x4eeec5[_0x52c367(0x98)]);_0x55ca83[_0x52c367(0x84)](_0x4eeec5[_0x52c367(0x98)],_0x4eeec5);}const _0xd7f05b=[];for(const _0x14cad5 of _0x184e9b[_0x52c367(0x77)]){const _0x39dcd3=_0x55ca83['get'](_0x14cad5[_0x52c367(0x98)]);if(!_0x39dcd3)throw CliErrors['validation'](_0x52c367(0x85)+_0x14cad5['path']);if(_0x39dcd3[_0x52c367(0x6e)][_0x52c367(0x9a)]!==_0x14cad5[_0x52c367(0x93)])throw CliErrors[_0x52c367(0x76)](_0x52c367(0x7a)+_0x14cad5[_0x52c367(0x98)]);const _0x5a98ce=bufferSha256(_0x39dcd3[_0x52c367(0x6e)]);if(_0x5a98ce!==_0x14cad5['sha256'])throw CliErrors[_0x52c367(0x76)](_0x52c367(0x8f)+_0x14cad5[_0x52c367(0x98)]);_0xd7f05b['push']({'path':_0x14cad5['path'],'bytes':_0x39dcd3['bytes']});}return normalizeLocalFiles(_0xd7f05b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46140f,_0x4d4172){var _0x4c2c0e=a146_0x46af,_0x5e9dea=_0x46140f();while(!![]){try{var _0x698655=-parseInt(_0x4c2c0e(0x186))/0x1+parseInt(_0x4c2c0e(0x185))/0x2*(parseInt(_0x4c2c0e(0x188))/0x3)+-parseInt(_0x4c2c0e(0x18d))/0x4+parseInt(_0x4c2c0e(0x187))/0x5+-parseInt(_0x4c2c0e(0x18a))/0x6+-parseInt(_0x4c2c0e(0x18b))/0x7*(parseInt(_0x4c2c0e(0x189))/0x8)+parseInt(_0x4c2c0e(0x18c))/0x9*(parseInt(_0x4c2c0e(0x18e))/0xa);if(_0x698655===_0x4d4172)break;else _0x5e9dea['push'](_0x5e9dea['shift']());}catch(_0xbaf54d){_0x5e9dea['push'](_0x5e9dea['shift']());}}}(a146_0x5d86,0x86740));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 a146_0x46af(_0x35101f,_0x47c505){_0x35101f=_0x35101f-0x185;var _0x5d864f=a146_0x5d86();var _0x46aff=_0x5d864f[_0x35101f];return _0x46aff;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill,reuseMaterializedRuntimeSkill}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';function a146_0x5d86(){var _0x5c323f=['434XllFsT','40401GYhBxr','4042392NcyeSu','4360HAqgwB','190zbSOjL','109675RtAQeh','3028605UntqSy','26385GxxGPH','91696QsmGaG','6100878DDKOJa'];a146_0x5d86=function(){return _0x5c323f;};return a146_0x5d86();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x4ea279=a147_0x1d10;function a147_0x5f09(){const _0x2790da=['5920EPMqGO','skills','\x20records\x20\x22','428455FHafqs','\x20has\x20no\x20skills\x20map','.agents','.skill-lock.json','parse','2341759RujPkC','utf8','9929mLSyEY','find','present','unverifiable','SKILL.md','reason','30yHPCof','home','60mABJXm','kind','unusable','407192QGOesv','join','globalSkillsDirs','336jZSeXP','182hcffVV','absent','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','map','number','version','includes','90RFhEHL','630784pIUPEO','message','recorded','17165148ccruta','\x20is\x20unreadable:\x20'];a147_0x5f09=function(){return _0x2790da;};return a147_0x5f09();}(function(_0x333c4f,_0x31463a){const _0x5c04fa=a147_0x1d10,_0x3daf5b=_0x333c4f();while(!![]){try{const _0x3e2aba=-parseInt(_0x5c04fa(0x16c))/0x1*(-parseInt(_0x5c04fa(0x17b))/0x2)+-parseInt(_0x5c04fa(0x17a))/0x3*(-parseInt(_0x5c04fa(0x188))/0x4)+parseInt(_0x5c04fa(0x18b))/0x5*(parseInt(_0x5c04fa(0x172))/0x6)+parseInt(_0x5c04fa(0x16a))/0x7+parseInt(_0x5c04fa(0x177))/0x8*(parseInt(_0x5c04fa(0x182))/0x9)+parseInt(_0x5c04fa(0x174))/0xa*(-parseInt(_0x5c04fa(0x183))/0xb)+-parseInt(_0x5c04fa(0x186))/0xc;if(_0x3e2aba===_0x31463a)break;else _0x3daf5b['push'](_0x3daf5b['shift']());}catch(_0x123e0b){_0x3daf5b['push'](_0x3daf5b['shift']());}}}(a147_0x5f09,0x8a604));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a147_0x4ea279(0x167),a147_0x4ea279(0x168));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a147_0x4ea279(0x189)),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x103f31,_0x575bad){const _0x3d9da4=a147_0x4ea279;if(!existsSync(_0x103f31))return{'kind':'not-recorded'};let _0x755959;try{_0x755959=JSON[_0x3d9da4(0x169)](readFileSync(_0x103f31,_0x3d9da4(0x16b)));}catch(_0xce8d61){return{'kind':_0x3d9da4(0x176),'reason':_0x103f31+_0x3d9da4(0x187)+_0xce8d61[_0x3d9da4(0x184)]};}const _0x1857d3=_0x755959;if(typeof _0x1857d3?.['version']!==_0x3d9da4(0x17f)||!SUPPORTED_LOCK_VERSIONS[_0x3d9da4(0x181)](_0x1857d3[_0x3d9da4(0x180)]))return{'kind':_0x3d9da4(0x176),'reason':_0x103f31+'\x20uses\x20unsupported\x20version\x20'+String(_0x1857d3?.[_0x3d9da4(0x180)])};if(!_0x1857d3['skills']||typeof _0x1857d3[_0x3d9da4(0x189)]!=='object')return{'kind':_0x3d9da4(0x176),'reason':_0x103f31+_0x3d9da4(0x18c)};return _0x1857d3[_0x3d9da4(0x189)][_0x575bad]?{'kind':_0x3d9da4(0x185)}:{'kind':'not-recorded'};}function a147_0x1d10(_0x5cd651,_0x21b223){_0x5cd651=_0x5cd651-0x167;const _0x5f0975=a147_0x5f09();let _0x1d1004=_0x5f0975[_0x5cd651];return _0x1d1004;}export function resolveInstalledSkill(_0x45fe5c,_0x2ea82b){const _0x4ddfbb=a147_0x4ea279,_0x5168dd=_0x2ea82b?.[_0x4ddfbb(0x173)]??homedir(),_0x55dc98=_0x2ea82b?.[_0x4ddfbb(0x179)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4ddfbb(0x17e)](_0x2106c3=>join(_0x5168dd,_0x2106c3)),_0xe23ae2=_0x2ea82b?.['lockFile']??join(_0x5168dd,SKILL_LOCK_RELATIVE_PATH),_0x39d38e=_0x55dc98[_0x4ddfbb(0x17e)](_0x52add4=>join(_0x52add4,_0x45fe5c,_0x4ddfbb(0x170))),_0x574273=_0x39d38e[_0x4ddfbb(0x16d)](_0x76eda7=>existsSync(_0x76eda7));if(_0x574273)return{'state':_0x4ddfbb(0x16e),'path':_0x574273};const _0x480627=readLockLookup(_0xe23ae2,_0x45fe5c);if(_0x480627[_0x4ddfbb(0x175)]===_0x4ddfbb(0x176))return{'state':_0x4ddfbb(0x16f),'reason':_0x480627[_0x4ddfbb(0x171)]};if(_0x480627['kind']===_0x4ddfbb(0x185))return{'state':_0x4ddfbb(0x16f),'reason':_0xe23ae2+_0x4ddfbb(0x18a)+_0x45fe5c+_0x4ddfbb(0x17d)+('('+_0x39d38e[_0x4ddfbb(0x178)](',\x20')+')')};return{'state':_0x4ddfbb(0x17c),'checked':_0x39d38e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45f22f,_0x45433e){const _0x144e64=a148_0x4782,_0xafdf53=_0x45f22f();while(!![]){try{const _0x30f9ea=parseInt(_0x144e64(0x9c))/0x1*(-parseInt(_0x144e64(0xa4))/0x2)+-parseInt(_0x144e64(0xa6))/0x3*(-parseInt(_0x144e64(0x9b))/0x4)+parseInt(_0x144e64(0x9f))/0x5+-parseInt(_0x144e64(0xa1))/0x6*(-parseInt(_0x144e64(0x9d))/0x7)+-parseInt(_0x144e64(0xa2))/0x8*(parseInt(_0x144e64(0xa5))/0x9)+-parseInt(_0x144e64(0xa7))/0xa*(parseInt(_0x144e64(0x9e))/0xb)+-parseInt(_0x144e64(0xa0))/0xc*(parseInt(_0x144e64(0xa3))/0xd);if(_0x30f9ea===_0x45433e)break;else _0xafdf53['push'](_0xafdf53['shift']());}catch(_0x59f440){_0xafdf53['push'](_0xafdf53['shift']());}}}(a148_0x13d4,0x41449));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a148_0x4782(_0x281aa9,_0x39e17b){_0x281aa9=_0x281aa9-0x9b;const _0x13d4e2=a148_0x13d4();let _0x478283=_0x13d4e2[_0x281aa9];return _0x478283;}import{CliErrors}from'../errors.js';function a148_0x13d4(){const _0x4486c5=['3PknwgB','2324870EJDrho','1776608IqiyrO','117728CRvMIp','1395590nVmbrX','11HyWdpX','2146580uveUPP','12mhYUgp','6wqzKSu','68576TnOGZl','3355690lemgbE','2ZKFxYk','207fHFCSp'];a148_0x13d4=function(){return _0x4486c5;};return a148_0x13d4();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|