@lovrabet/lovrabet-cli 2.1.20 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e2810,_0x3a153f){const _0x5a2e89=a106_0x4e3d,_0xcc4154=_0x1e2810();while(!![]){try{const _0xb8f771=-parseInt(_0x5a2e89(0xaa))/0x1*(parseInt(_0x5a2e89(0xa5))/0x2)+parseInt(_0x5a2e89(0xa6))/0x3+parseInt(_0x5a2e89(0xb0))/0x4+-parseInt(_0x5a2e89(0xa2))/0x5*(parseInt(_0x5a2e89(0xad))/0x6)+-parseInt(_0x5a2e89(0xa9))/0x7*(parseInt(_0x5a2e89(0xb2))/0x8)+-parseInt(_0x5a2e89(0xa8))/0x9*(-parseInt(_0x5a2e89(0xa7))/0xa)+-parseInt(_0x5a2e89(0xa4))/0xb*(-parseInt(_0x5a2e89(0xa1))/0xc);if(_0xb8f771===_0x3a153f)break;else _0xcc4154['push'](_0xcc4154['shift']());}catch(_0x4ce15f){_0xcc4154['push'](_0xcc4154['shift']());}}}(a106_0xf407,0x6389e));import{createHash}from'node:crypto';function a106_0x4e3d(_0x17b9ee,_0x5a01c3){_0x17b9ee=_0x17b9ee-0xa1;const _0xf407d4=a106_0xf407();let _0x4e3d82=_0xf407d4[_0x17b9ee];return _0x4e3d82;}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x200704){const _0x43b31c=a106_0x4e3d;return createHash(_0x43b31c(0xa3))[_0x43b31c(0xaf)](_0x200704)[_0x43b31c(0xab)](_0x43b31c(0xb1));}export function fileHash(_0x5068ca){return bufferSha256(fileContent(_0x5068ca));}export function bufferSha256(_0x1ea168){const _0xcd2330=a106_0x4e3d;return createHash(_0xcd2330(0xa3))[_0xcd2330(0xaf)](_0x1ea168)[_0xcd2330(0xab)](_0xcd2330(0xb1));}function a106_0xf407(){const _0x18d06f=['size','update','374992jGnTwd','hex','2664echYRI','719592FAboag','840xGCqma','sha256','253CkMMBM','14468BKCJQY','267537IXxIMK','889890ZDdKdO','36hOyFfI','6909SfMAWH','68iFBJmM','digest','path','24636MMLUHq'];a106_0xf407=function(){return _0x18d06f;};return a106_0xf407();}export function fileTreeHash(_0xd3b76a){const _0x5df2ab=a106_0x4e3d,_0x28db3d=createHash(_0x5df2ab(0xa3));for(const _0x104c3c of normalizeManifestFiles(_0xd3b76a)){_0x28db3d[_0x5df2ab(0xaf)](_0x104c3c[_0x5df2ab(0xac)]),_0x28db3d['update']('\x00'),_0x28db3d[_0x5df2ab(0xaf)](_0x104c3c[_0x5df2ab(0xa3)]),_0x28db3d[_0x5df2ab(0xaf)]('\x00'),_0x28db3d['update'](String(_0x104c3c[_0x5df2ab(0xae)])),_0x28db3d['update']('\x00');}return _0x28db3d[_0x5df2ab(0xab)](_0x5df2ab(0xb1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x5a2802=a107_0xbae3;(function(_0x5bda26,_0x541445){const _0x293840=a107_0xbae3,_0x99e513=_0x5bda26();while(!![]){try{const _0x2c7393=-parseInt(_0x293840(0x164))/0x1+parseInt(_0x293840(0x15e))/0x2+-parseInt(_0x293840(0x162))/0x3*(parseInt(_0x293840(0x167))/0x4)+parseInt(_0x293840(0x161))/0x5+-parseInt(_0x293840(0x15c))/0x6*(-parseInt(_0x293840(0x15b))/0x7)+parseInt(_0x293840(0x168))/0x8+parseInt(_0x293840(0x160))/0x9;if(_0x2c7393===_0x541445)break;else _0x99e513['push'](_0x99e513['shift']());}catch(_0x5e351e){_0x99e513['push'](_0x99e513['shift']());}}}(a107_0x368f,0x4dd14));function a107_0xbae3(_0x4c2e58,_0x49415e){_0x4c2e58=_0x4c2e58-0x15b;const _0x368f01=a107_0x368f();let _0xbae358=_0x368f01[_0x4c2e58];return _0xbae358;}import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x3d563d,_0x52e885=a107_0x5a2802(0x166),_0x58b8cc={}){const _0x3ee8f0=a107_0x5a2802,_0x426e73=resolveSkillSyncPaths(_0x58b8cc),_0x77a580=safePathSegment(_0x3d563d,_0x3ee8f0(0x169)),_0x439b87=_0x52e885===_0x3ee8f0(0x15d)?[resolve(_0x58b8cc[_0x3ee8f0(0x165)]??process[_0x3ee8f0(0x165)](),'.agents',_0x3ee8f0(0x163))]:runtimeAgentSkillRoots(_0x426e73);return Object['freeze']({'scope':_0x52e885,'appCode':_0x77a580,'skillRoots':Object[_0x3ee8f0(0x15f)](_0x439b87),'managedRoot':_0x426e73['managedRoot']});}function a107_0x368f(){const _0x26169f=['1198280YLWXSF','appCode','88774AxJdmp','174BFgqDh','project','576354laZZsJ','freeze','619092pcczpc','425135dsCmvO','39hfRDxY','skills','84506vkZBfS','cwd','global','171172fFZjVZ'];a107_0x368f=function(){return _0x26169f;};return a107_0x368f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a108_0x1d72(){const _0x46cb6d=['personal','name','trim','values','appCode','not-managed-symlink','env','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','skill','external-symlink','unchanged','set','filter','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','length','pruneSkillCodes','4863312OzFspi','push','3044812XfROko','project','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','isSymbolicLink','metadataPath','removed','524670RlVtWe','4iXizRI','72Mmevnp','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','created','isDirectory','agentsSkillsDir','protectedLinkRoots','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','1641564ktxNiX','scope','1723257cGnjBu','20LmXaSn','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','activeSkillCodes','dir','validation','linked-from-protected-root','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','get','managedRoot','accessKey','map','skillCode','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','updated','skipped','7977032gqWNfr','6933472BABpir','startsWith','slice','metadata-mismatch','contentHash','runtime-observe','has'];a108_0x1d72=function(){return _0x46cb6d;};return a108_0x1d72();}const a108_0x9f839b=a108_0x17ac;(function(_0x1a3aed,_0x138b00){const _0x5d9fc8=a108_0x17ac,_0x2e5e40=_0x1a3aed();while(!![]){try{const _0x52fe5d=-parseInt(_0x5d9fc8(0x10f))/0x1+parseInt(_0x5d9fc8(0x100))/0x2+-parseInt(_0x5d9fc8(0x111))/0x3*(-parseInt(_0x5d9fc8(0x107))/0x4)+-parseInt(_0x5d9fc8(0x106))/0x5*(-parseInt(_0x5d9fc8(0x108))/0x6)+parseInt(_0x5d9fc8(0x121))/0x7+-parseInt(_0x5d9fc8(0x122))/0x8+parseInt(_0x5d9fc8(0xfe))/0x9*(-parseInt(_0x5d9fc8(0x112))/0xa);if(_0x52fe5d===_0x138b00)break;else _0x2e5e40['push'](_0x2e5e40['shift']());}catch(_0x45a6e1){_0x2e5e40['push'](_0x2e5e40['shift']());}}}(a108_0x1d72,0xdd581));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x17bbcb from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x17bbcb,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a108_0x9f839b(0xec),'secret-retriever']);export function linkEffectiveRuntimeSkills(_0x3e19e1,_0x4dd9ad){const _0x4816f7=a108_0x9f839b,_0x1c3d9f=new Map();for(const _0x15da28 of _0x3e19e1){const _0x4a4bcf=_0x15da28['skill'][_0x4816f7(0x11d)];if(!_0x4a4bcf)continue;const _0x4c5847=_0x1c3d9f[_0x4816f7(0x119)](_0x4a4bcf);(!_0x4c5847||_0x15da28[_0x4816f7(0x110)]==='personal')&&_0x1c3d9f[_0x4816f7(0xf9)](_0x4a4bcf,_0x15da28);}const _0x253d04=[];for(const _0x3ab587 of _0x1c3d9f[_0x4816f7(0xf1)]()){const _0x2c7fa8=requireSkillCode(_0x3ab587[_0x4816f7(0xf6)]),_0xae8250=readMetadataIfPresent(_0x3ab587[_0x4816f7(0x104)]);if(_0xae8250?.[_0x4816f7(0xf2)]!==_0x4dd9ad['appCode']||_0xae8250[_0x4816f7(0x11d)]!==_0x2c7fa8)throw CliErrors[_0x4816f7(0x116)](_0x4816f7(0x113)+_0x4dd9ad[_0x4816f7(0xf2)]+':\x20'+_0x3ab587['metadataPath']);const _0x269130=runtimeSkillLinkName(_0x4dd9ad,_0x2c7fa8);for(const _0x49b7e4 of _0x4dd9ad['skillRoots']){_0x253d04[_0x4816f7(0xff)](ensureManagedSymlink(resolve(_0x49b7e4,_0x269130),_0x3ab587['dir'],_0x4dd9ad,_0x2c7fa8));}}return _0x253d04;}export function pruneStaleRuntimeSkillLinks(_0xcffc80,_0x350b1b,_0x22b61f){const _0x2c60a8=a108_0x9f839b,_0x5afd62=new Set([..._0x350b1b][_0x2c60a8(0x11c)](_0x31f946=>_0x31f946[_0x2c60a8(0xf0)]())[_0x2c60a8(0xfa)](Boolean)),_0x5e6fb1=_0x22b61f?new Set([..._0x22b61f][_0x2c60a8(0x11c)](_0x310622=>_0x310622[_0x2c60a8(0xf0)]())['filter'](Boolean)):undefined,_0x126ed0=[];for(const _0x2ec975 of _0xcffc80['skillRoots']){for(const _0x3f624e of managedTargetSkillLinkPaths(_0x2ec975,_0xcffc80)){const _0x2ca8e8=runtimeSkillCodeFromLink(_0xcffc80,_0x3f624e);if(_0x5e6fb1&&!_0x5e6fb1['has'](_0x2ca8e8))continue;if(_0x5afd62[_0x2c60a8(0xed)](_0x2ca8e8))continue;_0x126ed0['push'](removeManagedSkillLink(_0x3f624e,_0xcffc80,_0x2ca8e8));}}return _0x126ed0;}export function pruneStaleRuntimeSkillCache(_0x7385e6,_0x310096={}){const _0x23f376=a108_0x9f839b,_0x1bc55e=new Set([..._0x7385e6[_0x23f376(0x114)]][_0x23f376(0x11c)](_0x34798d=>_0x34798d['trim']())[_0x23f376(0xfa)](Boolean)),_0x2cbdb0=_0x7385e6[_0x23f376(0xfd)]?new Set([..._0x7385e6['pruneSkillCodes']][_0x23f376(0x11c)](_0x2668ab=>_0x2668ab[_0x23f376(0xf0)]())[_0x23f376(0xfa)](Boolean)):undefined,_0xda0b1b=_0x7385e6['scopes']??[_0x23f376(0xee),'company'],_0x1ccb47=resolve(getRuntimeSkillCacheRoot(_0x7385e6[_0x23f376(0xf4)],_0x7385e6[_0x23f376(0x11b)],_0x310096),safePathSegment(_0x7385e6['appCode'],_0x23f376(0xf2))),_0x51908a=[];for(const _0x3f2126 of _0xda0b1b){const _0x1cfc51=resolve(_0x1ccb47,_0x3f2126);if(!existsSync(_0x1cfc51))continue;for(const _0x590cf4 of readdirSync(_0x1cfc51,{'withFileTypes':!![]})){if(!_0x590cf4[_0x23f376(0x10b)]())continue;const _0x453366=_0x590cf4[_0x23f376(0xef)];if(_0x2cbdb0&&!_0x2cbdb0[_0x23f376(0xed)](_0x453366))continue;if(_0x1bc55e[_0x23f376(0xed)](_0x453366))continue;const _0x5a2053=resolve(_0x1cfc51,_0x453366),_0x3ae7e0=readMetadataIfPresent(resolve(_0x5a2053,METADATA_FILE));if(_0x3ae7e0?.[_0x23f376(0xf2)]!==_0x7385e6['appCode']||_0x3ae7e0['scope']!==_0x3f2126||_0x3ae7e0['skillCode']!==_0x453366){_0x51908a[_0x23f376(0xff)]({'path':_0x5a2053,'action':'skipped','reason':_0x23f376(0xea)});continue;}if(isLinkedFromAnyRoot(_0x5a2053,_0x7385e6[_0x23f376(0x10d)]??[])){_0x51908a['push']({'path':_0x5a2053,'action':_0x23f376(0x120),'reason':_0x23f376(0x117)});continue;}removeSync(_0x5a2053),_0x51908a[_0x23f376(0xff)]({'path':_0x5a2053,'action':_0x23f376(0x105)});}}return _0x51908a;}export function linkGlobalRuntimeSkills(_0x52d77b,_0x570f1b={}){const _0x3dd1e1=a108_0x9f839b,_0xb3f27=resolveSkillSyncPaths(_0x570f1b),_0x58f949=[];for(const _0x3d4b6b of _0x52d77b){if(_0x3d4b6b[_0x3dd1e1(0x110)]!=='builtin')throw CliErrors[_0x3dd1e1(0x116)](_0x3dd1e1(0x102)+_0x3d4b6b['scope']);const _0x12cf3b=requireSkillCode(_0x3d4b6b['skill']),_0x1875c3=copyManagedSkillDirectory(_0x3d4b6b[_0x3dd1e1(0x115)],resolve(_0xb3f27[_0x3dd1e1(0x10c)],_0x12cf3b));_0x58f949[_0x3dd1e1(0xff)]({..._0x1875c3,'contentHash':_0x3d4b6b[_0x3dd1e1(0xeb)]});}return _0x58f949;}function a108_0x17ac(_0x32942d,_0x57cfd1){_0x32942d=_0x32942d-0xe8;const _0x1d7268=a108_0x1d72();let _0x17ac7b=_0x1d7268[_0x32942d];return _0x17ac7b;}function ensureManagedSymlink(_0x1e3be4,_0x57e87b,_0x57a55a,_0x58ec5d){const _0x129160=a108_0x9f839b;mkdirSync(dirname(_0x1e3be4),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1e3be4)||isDanglingSymlink(_0x1e3be4)){const _0x3e1a31=lstatSync(_0x1e3be4);if(!_0x3e1a31[_0x129160(0x103)]())throw CliErrors[_0x129160(0x116)](_0x129160(0x11e)+_0x1e3be4);const _0x164fbf=resolveSymlinkTarget(_0x1e3be4);if(!isPathInside(realOrResolved(_0x164fbf),realOrResolved(_0x57a55a['managedRoot'])))throw CliErrors[_0x129160(0x116)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x1e3be4);if(realOrResolved(_0x164fbf)===realOrResolved(_0x57e87b))return{'path':_0x1e3be4,'target':_0x57e87b,'action':_0x129160(0xf8)};const _0x3e7d4a=readMetadataIfPresent(resolve(_0x164fbf,METADATA_FILE));if(_0x57a55a['scope']===_0x129160(0x101)&&(_0x3e7d4a?.[_0x129160(0xf2)]!==_0x57a55a[_0x129160(0xf2)]||_0x3e7d4a[_0x129160(0x11d)]!==_0x58ec5d))throw CliErrors[_0x129160(0x116)](_0x129160(0xfb)+_0x1e3be4);return unlinkSync(_0x1e3be4),symlinkSync(_0x57e87b,_0x1e3be4,_0x129160(0x115)),{'path':_0x1e3be4,'target':_0x57e87b,'action':_0x129160(0x11f)};}return symlinkSync(_0x57e87b,_0x1e3be4,_0x129160(0x115)),{'path':_0x1e3be4,'target':_0x57e87b,'action':'created'};}function managedTargetSkillLinkPaths(_0x59a210,_0x16a874){const _0x7dc22b=a108_0x9f839b;if(!existsSync(_0x59a210))return[];const _0x440bba=_0x16a874['appCode']+'--';return readdirSync(_0x59a210,{'withFileTypes':!![]})['filter'](_0xf038b6=>_0x16a874[_0x7dc22b(0x110)]==='project'||_0xf038b6['name'][_0x7dc22b(0xe8)](_0x440bba))[_0x7dc22b(0x11c)](_0x4592ed=>resolve(_0x59a210,_0x4592ed[_0x7dc22b(0xef)]));}function removeManagedSkillLink(_0x261ffb,_0x414339,_0xee1d3f){const _0x598656=a108_0x9f839b,_0x273ef2=lstatIfPresent(_0x261ffb);if(!_0x273ef2?.[_0x598656(0x103)]())return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':_0x598656(0xf3)};const _0x4f978c=resolveSymlinkTarget(_0x261ffb);if(!isPathInside(realOrResolved(_0x4f978c),realOrResolved(_0x414339[_0x598656(0x11a)])))return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':_0x598656(0xf7)};const _0x4fc0e1=readMetadataIfPresent(resolve(_0x4f978c,METADATA_FILE));if(_0x414339[_0x598656(0x110)]==='project'&&(_0x4fc0e1?.[_0x598656(0xf2)]!==_0x414339[_0x598656(0xf2)]||_0x4fc0e1[_0x598656(0x11d)]!==_0xee1d3f))return{'path':_0x261ffb,'action':_0x598656(0x120),'reason':'metadata-mismatch'};return unlinkSync(_0x261ffb),{'path':_0x261ffb,'action':_0x598656(0x105)};}function isLinkedFromAnyRoot(_0x5c079e,_0xcaaa95){const _0x164ffa=a108_0x9f839b,_0x51e33b=realOrResolved(_0x5c079e);for(const _0x1468e0 of _0xcaaa95){if(!existsSync(_0x1468e0))continue;for(const _0x1e428 of readdirSync(_0x1468e0,{'withFileTypes':!![]})){if(!_0x1e428[_0x164ffa(0x103)]())continue;const _0x4b0d10=resolve(_0x1468e0,_0x1e428['name']);if(realOrResolved(resolveSymlinkTarget(_0x4b0d10))===_0x51e33b)return!![];}}return![];}function runtimeSkillLinkName(_0x495ffc,_0x3bcbc1){const _0x1cf147=a108_0x9f839b,_0x113e00=safePathSegment(_0x3bcbc1,_0x1cf147(0x11d));if(_0x495ffc['scope']===_0x1cf147(0x101)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x113e00))throw CliErrors[_0x1cf147(0x116)](_0x1cf147(0xf5)+_0x113e00);return _0x495ffc[_0x1cf147(0x110)]===_0x1cf147(0x101)?_0x113e00:_0x495ffc['appCode']+'--'+_0x113e00;}function runtimeSkillCodeFromLink(_0x1ed09a,_0x4bce61){const _0x2e8faf=a108_0x9f839b,_0x4040aa=basename(_0x4bce61);return _0x1ed09a[_0x2e8faf(0x110)]===_0x2e8faf(0x101)?_0x4040aa:_0x4040aa[_0x2e8faf(0xe9)]((_0x1ed09a[_0x2e8faf(0xf2)]+'--')[_0x2e8faf(0xfc)]);}export function copyManagedSkillDirectory(_0x1b29c6,_0x27a8f2){const _0x3e4dd2=a108_0x9f839b,_0x3008e8=resolve(_0x27a8f2,METADATA_FILE),_0x4e059f=existsSync(_0x27a8f2);if(_0x4e059f){const _0xd13285=lstatSync(_0x27a8f2);if(_0xd13285['isSymbolicLink']())throw CliErrors[_0x3e4dd2(0x116)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x27a8f2);if(!_0xd13285[_0x3e4dd2(0x10b)]())throw CliErrors[_0x3e4dd2(0x116)](_0x3e4dd2(0x109)+_0x27a8f2);const _0x329600=readMetadataIfPresent(_0x3008e8);if(_0x329600?.['scope']!=='builtin')throw CliErrors['validation'](_0x3e4dd2(0x118)+_0x27a8f2);}ensureDirSync(dirname(_0x27a8f2));const _0x17596b=_0x4e059f?readMetadataIfPresent(_0x3008e8)?.[_0x3e4dd2(0xeb)]:undefined,_0x7c9b16=readMetadataIfPresent(resolve(_0x1b29c6,METADATA_FILE))?.[_0x3e4dd2(0xeb)];return _0x4e059f&&removeSync(_0x27a8f2),copySkillDirectory(_0x1b29c6,_0x27a8f2),{'path':_0x27a8f2,'target':_0x1b29c6,'action':!_0x4e059f?_0x3e4dd2(0x10a):_0x17596b===_0x7c9b16?_0x3e4dd2(0xf8):_0x3e4dd2(0x11f)};}function copySkillDirectory(_0x2c8209,_0x273896){copySync(_0x2c8209,_0x273896,{'dereference':![],'overwrite':!![],'filter'(_0x3646ec){const _0x53474a=a108_0x17ac;if(lstatSync(_0x3646ec)[_0x53474a(0x103)]())throw CliErrors[_0x53474a(0x116)](_0x53474a(0x10e)+_0x3646ec);return!![];}});}
|
|
1
|
+
const a108_0x2ed8b0=a108_0x4a3b;(function(_0x3ea659,_0x257b4c){const _0x12e988=a108_0x4a3b,_0x39c38c=_0x3ea659();while(!![]){try{const _0x4fb09f=-parseInt(_0x12e988(0xf9))/0x1*(parseInt(_0x12e988(0x128))/0x2)+-parseInt(_0x12e988(0x10d))/0x3+parseInt(_0x12e988(0x129))/0x4+parseInt(_0x12e988(0x101))/0x5+-parseInt(_0x12e988(0x125))/0x6+-parseInt(_0x12e988(0xff))/0x7*(-parseInt(_0x12e988(0x10c))/0x8)+parseInt(_0x12e988(0x115))/0x9*(parseInt(_0x12e988(0x105))/0xa);if(_0x4fb09f===_0x257b4c)break;else _0x39c38c['push'](_0x39c38c['shift']());}catch(_0x35034e){_0x39c38c['push'](_0x39c38c['shift']());}}}(a108_0x19d7,0x40b0a));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0x20ea3e from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0x20ea3e,RESERVED_PROJECT_SKILL_CODES=new Set([a108_0x2ed8b0(0x103),'runtime-observe',a108_0x2ed8b0(0x11d)]);export function linkEffectiveRuntimeSkills(_0x3fa37d,_0x1580b3){const _0x9565c9=a108_0x2ed8b0,_0x14d0bc=new Map();for(const _0x3874b7 of _0x3fa37d){const _0x1cc0c1=_0x3874b7[_0x9565c9(0x11f)][_0x9565c9(0x12e)];if(!_0x1cc0c1)continue;const _0x2b7373=_0x14d0bc[_0x9565c9(0x127)](_0x1cc0c1);(!_0x2b7373||_0x3874b7[_0x9565c9(0x11c)]==='personal')&&_0x14d0bc['set'](_0x1cc0c1,_0x3874b7);}const _0x5d177d=[];for(const _0x19698a of _0x14d0bc[_0x9565c9(0x12b)]()){const _0x17478a=requireSkillCode(_0x19698a[_0x9565c9(0x11f)]),_0xe9e9ed=readMetadataIfPresent(_0x19698a[_0x9565c9(0x122)]);if(_0xe9e9ed?.['appCode']!==_0x1580b3[_0x9565c9(0x10b)]||_0xe9e9ed[_0x9565c9(0x12e)]!==_0x17478a)throw CliErrors[_0x9565c9(0x111)]('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x1580b3[_0x9565c9(0x10b)]+':\x20'+_0x19698a[_0x9565c9(0x122)]);const _0x598ddf=runtimeSkillLinkName(_0x1580b3,_0x17478a);for(const _0x30d8ca of _0x1580b3[_0x9565c9(0x112)]){_0x5d177d[_0x9565c9(0xf8)](ensureManagedSymlink(resolve(_0x30d8ca,_0x598ddf),_0x19698a[_0x9565c9(0x104)],_0x1580b3,_0x17478a));}}return _0x5d177d;}export function pruneStaleRuntimeSkillLinks(_0x241292,_0x383460,_0x57c4b6){const _0x9cd2ec=a108_0x2ed8b0,_0x291151=new Set([..._0x383460][_0x9cd2ec(0x114)](_0x4819bf=>_0x4819bf[_0x9cd2ec(0x11b)]())['filter'](Boolean)),_0x8f432c=_0x57c4b6?new Set([..._0x57c4b6][_0x9cd2ec(0x114)](_0x3a1081=>_0x3a1081[_0x9cd2ec(0x11b)]())[_0x9cd2ec(0xfc)](Boolean)):undefined,_0x240fdb=[];for(const _0x213af1 of _0x241292[_0x9cd2ec(0x112)]){for(const _0x4c9df9 of managedTargetSkillLinkPaths(_0x213af1,_0x241292)){const _0x140554=runtimeSkillCodeFromLink(_0x241292,_0x4c9df9);if(_0x8f432c&&!_0x8f432c[_0x9cd2ec(0x119)](_0x140554))continue;if(_0x291151[_0x9cd2ec(0x119)](_0x140554))continue;_0x240fdb[_0x9cd2ec(0xf8)](removeManagedSkillLink(_0x4c9df9,_0x241292,_0x140554));}}return _0x240fdb;}export function pruneStaleRuntimeSkillCache(_0x15b05a,_0x13c0c8={}){const _0x581d7d=a108_0x2ed8b0,_0x15f2ea=new Set([..._0x15b05a['activeSkillCodes']][_0x581d7d(0x114)](_0x1d4064=>_0x1d4064[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)),_0x29d2c3=_0x15b05a[_0x581d7d(0x10f)]?new Set([..._0x15b05a['pruneSkillCodes']]['map'](_0x2ebe04=>_0x2ebe04[_0x581d7d(0x11b)]())[_0x581d7d(0xfc)](Boolean)):undefined,_0x169cc7=_0x15b05a[_0x581d7d(0x12d)]??[_0x581d7d(0x108),_0x581d7d(0xf3)],_0x27dd17=resolve(getRuntimeSkillCacheRoot(_0x15b05a[_0x581d7d(0x12c)],_0x15b05a[_0x581d7d(0x120)],_0x13c0c8),safePathSegment(_0x15b05a[_0x581d7d(0x10b)],_0x581d7d(0x10b))),_0x3f3f1a=[];for(const _0x31fad2 of _0x169cc7){const _0x483e65=resolve(_0x27dd17,_0x31fad2);if(!existsSync(_0x483e65))continue;for(const _0xfcd05 of readdirSync(_0x483e65,{'withFileTypes':!![]})){if(!_0xfcd05[_0x581d7d(0x11e)]())continue;const _0x2dbe04=_0xfcd05[_0x581d7d(0x124)];if(_0x29d2c3&&!_0x29d2c3[_0x581d7d(0x119)](_0x2dbe04))continue;if(_0x15f2ea[_0x581d7d(0x119)](_0x2dbe04))continue;const _0x4c78b1=resolve(_0x483e65,_0x2dbe04),_0x5715be=readMetadataIfPresent(resolve(_0x4c78b1,METADATA_FILE));if(_0x5715be?.[_0x581d7d(0x10b)]!==_0x15b05a[_0x581d7d(0x10b)]||_0x5715be[_0x581d7d(0x11c)]!==_0x31fad2||_0x5715be[_0x581d7d(0x12e)]!==_0x2dbe04){_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0xf2)});continue;}if(isLinkedFromAnyRoot(_0x4c78b1,_0x15b05a[_0x581d7d(0x113)]??[])){_0x3f3f1a[_0x581d7d(0xf8)]({'path':_0x4c78b1,'action':_0x581d7d(0x10a),'reason':_0x581d7d(0x117)});continue;}removeSync(_0x4c78b1),_0x3f3f1a['push']({'path':_0x4c78b1,'action':_0x581d7d(0x107)});}}return _0x3f3f1a;}function a108_0x19d7(){const _0x102cbc=['unchanged','38094eekIXA','updated','2495395TzFUNR','managedRoot','lovrabet','dir','571420RgKgGI','created','removed','personal','not-managed-symlink','skipped','appCode','296MCtyoD','1260012KVLntK','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','pruneSkillCodes','builtin','validation','skillRoots','protectedLinkRoots','map','54gLZcJS','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','linked-from-protected-root','agentsSkillsDir','has','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','trim','scope','secret-retriever','isDirectory','skill','accessKey','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','metadataPath','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','name','180390xqywQX','startsWith','get','1007910WYHomN','702836iLjDtO','project','values','env','scopes','skillCode','metadata-mismatch','company','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','length','isSymbolicLink','push','1WOvwpI','slice','external-symlink','filter','contentHash'];a108_0x19d7=function(){return _0x102cbc;};return a108_0x19d7();}function a108_0x4a3b(_0xa531e4,_0x1b19c5){_0xa531e4=_0xa531e4-0xf2;const _0x19d7e3=a108_0x19d7();let _0x4a3bc3=_0x19d7e3[_0xa531e4];return _0x4a3bc3;}export function linkGlobalRuntimeSkills(_0x535552,_0x191811={}){const _0x1adcbe=a108_0x2ed8b0,_0x5cf66d=resolveSkillSyncPaths(_0x191811),_0x545de0=[];for(const _0x2b9291 of _0x535552){if(_0x2b9291[_0x1adcbe(0x11c)]!==_0x1adcbe(0x110))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x2b9291[_0x1adcbe(0x11c)]);const _0x52b9db=requireSkillCode(_0x2b9291[_0x1adcbe(0x11f)]),_0x598555=copyManagedSkillDirectory(_0x2b9291[_0x1adcbe(0x104)],resolve(_0x5cf66d[_0x1adcbe(0x118)],_0x52b9db));_0x545de0[_0x1adcbe(0xf8)]({..._0x598555,'contentHash':_0x2b9291[_0x1adcbe(0xfd)]});}return _0x545de0;}function ensureManagedSymlink(_0x23e405,_0x22bbf1,_0x388867,_0x1e4b7c){const _0x43475d=a108_0x2ed8b0;mkdirSync(dirname(_0x23e405),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x23e405)||isDanglingSymlink(_0x23e405)){const _0x536abf=lstatSync(_0x23e405);if(!_0x536abf[_0x43475d(0xf7)]())throw CliErrors['validation'](_0x43475d(0xf5)+_0x23e405);const _0x2ff349=resolveSymlinkTarget(_0x23e405);if(!isPathInside(realOrResolved(_0x2ff349),realOrResolved(_0x388867['managedRoot'])))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x10e)+_0x23e405);if(realOrResolved(_0x2ff349)===realOrResolved(_0x22bbf1))return{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0xfe)};const _0x3f3342=readMetadataIfPresent(resolve(_0x2ff349,METADATA_FILE));if(_0x388867['scope']===_0x43475d(0x12a)&&(_0x3f3342?.[_0x43475d(0x10b)]!==_0x388867[_0x43475d(0x10b)]||_0x3f3342[_0x43475d(0x12e)]!==_0x1e4b7c))throw CliErrors[_0x43475d(0x111)](_0x43475d(0x121)+_0x23e405);return unlinkSync(_0x23e405),symlinkSync(_0x22bbf1,_0x23e405,'dir'),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x100)};}return symlinkSync(_0x22bbf1,_0x23e405,_0x43475d(0x104)),{'path':_0x23e405,'target':_0x22bbf1,'action':_0x43475d(0x106)};}function managedTargetSkillLinkPaths(_0x58646c,_0x5a189f){const _0x5bc2ef=a108_0x2ed8b0;if(!existsSync(_0x58646c))return[];const _0x4da635=_0x5a189f[_0x5bc2ef(0x10b)]+'--';return readdirSync(_0x58646c,{'withFileTypes':!![]})['filter'](_0x92575c=>_0x5a189f[_0x5bc2ef(0x11c)]===_0x5bc2ef(0x12a)||_0x92575c['name'][_0x5bc2ef(0x126)](_0x4da635))[_0x5bc2ef(0x114)](_0x3b3f02=>resolve(_0x58646c,_0x3b3f02[_0x5bc2ef(0x124)]));}function removeManagedSkillLink(_0x3834db,_0x28266a,_0x5c4617){const _0x39b0bb=a108_0x2ed8b0,_0x630a8a=lstatIfPresent(_0x3834db);if(!_0x630a8a?.['isSymbolicLink']())return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0x109)};const _0x204879=resolveSymlinkTarget(_0x3834db);if(!isPathInside(realOrResolved(_0x204879),realOrResolved(_0x28266a[_0x39b0bb(0x102)])))return{'path':_0x3834db,'action':'skipped','reason':_0x39b0bb(0xfb)};const _0xa3e93b=readMetadataIfPresent(resolve(_0x204879,METADATA_FILE));if(_0x28266a[_0x39b0bb(0x11c)]===_0x39b0bb(0x12a)&&(_0xa3e93b?.[_0x39b0bb(0x10b)]!==_0x28266a[_0x39b0bb(0x10b)]||_0xa3e93b['skillCode']!==_0x5c4617))return{'path':_0x3834db,'action':_0x39b0bb(0x10a),'reason':_0x39b0bb(0xf2)};return unlinkSync(_0x3834db),{'path':_0x3834db,'action':_0x39b0bb(0x107)};}function isLinkedFromAnyRoot(_0x2c3a73,_0x57e735){const _0x138833=realOrResolved(_0x2c3a73);for(const _0x2e20b5 of _0x57e735){if(!existsSync(_0x2e20b5))continue;for(const _0x32828d of readdirSync(_0x2e20b5,{'withFileTypes':!![]})){if(!_0x32828d['isSymbolicLink']())continue;const _0x209f7a=resolve(_0x2e20b5,_0x32828d['name']);if(realOrResolved(resolveSymlinkTarget(_0x209f7a))===_0x138833)return!![];}}return![];}function runtimeSkillLinkName(_0x51c760,_0x50f7d8){const _0x5877c9=a108_0x2ed8b0,_0x216bb5=safePathSegment(_0x50f7d8,_0x5877c9(0x12e));if(_0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)&&RESERVED_PROJECT_SKILL_CODES[_0x5877c9(0x119)](_0x216bb5))throw CliErrors[_0x5877c9(0x111)](_0x5877c9(0x116)+_0x216bb5);return _0x51c760[_0x5877c9(0x11c)]===_0x5877c9(0x12a)?_0x216bb5:_0x51c760[_0x5877c9(0x10b)]+'--'+_0x216bb5;}function runtimeSkillCodeFromLink(_0x3f8f71,_0x1ec9e7){const _0x1d6a01=a108_0x2ed8b0,_0x5e37b3=basename(_0x1ec9e7);return _0x3f8f71['scope']===_0x1d6a01(0x12a)?_0x5e37b3:_0x5e37b3[_0x1d6a01(0xfa)]((_0x3f8f71['appCode']+'--')[_0x1d6a01(0xf6)]);}export function copyManagedSkillDirectory(_0x21635d,_0x34dc4a){const _0x54adf2=a108_0x2ed8b0,_0x1c906d=resolve(_0x34dc4a,METADATA_FILE),_0x1f11df=existsSync(_0x34dc4a);if(_0x1f11df){const _0x4768c6=lstatSync(_0x34dc4a);if(_0x4768c6['isSymbolicLink']())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0xf4)+_0x34dc4a);if(!_0x4768c6[_0x54adf2(0x11e)]())throw CliErrors[_0x54adf2(0x111)](_0x54adf2(0x123)+_0x34dc4a);const _0x3703ce=readMetadataIfPresent(_0x1c906d);if(_0x3703ce?.[_0x54adf2(0x11c)]!==_0x54adf2(0x110))throw CliErrors['validation'](_0x54adf2(0x11a)+_0x34dc4a);}ensureDirSync(dirname(_0x34dc4a));const _0x31ca2a=_0x1f11df?readMetadataIfPresent(_0x1c906d)?.[_0x54adf2(0xfd)]:undefined,_0x14b2b1=readMetadataIfPresent(resolve(_0x21635d,METADATA_FILE))?.['contentHash'];return _0x1f11df&&removeSync(_0x34dc4a),copySkillDirectory(_0x21635d,_0x34dc4a),{'path':_0x34dc4a,'target':_0x21635d,'action':!_0x1f11df?_0x54adf2(0x106):_0x31ca2a===_0x14b2b1?_0x54adf2(0xfe):'updated'};}function copySkillDirectory(_0x5d3535,_0x236036){copySync(_0x5d3535,_0x236036,{'dereference':![],'overwrite':!![],'filter'(_0x4fd411){const _0x1735ab=a108_0x4a3b;if(lstatSync(_0x4fd411)[_0x1735ab(0xf7)]())throw CliErrors[_0x1735ab(0x111)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x4fd411);return!![];}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11cc93,_0x351e93){const _0x357c01=a109_0x1dc9,_0xc1f56e=_0x11cc93();while(!![]){try{const _0x5612ae=parseInt(_0x357c01(0x185))/0x1*(parseInt(_0x357c01(0x165))/0x2)+-parseInt(_0x357c01(0x182))/0x3*(parseInt(_0x357c01(0x17f))/0x4)+-parseInt(_0x357c01(0x176))/0x5+parseInt(_0x357c01(0x169))/0x6*(-parseInt(_0x357c01(0x17a))/0x7)+-parseInt(_0x357c01(0x18a))/0x8+-parseInt(_0x357c01(0x183))/0x9*(parseInt(_0x357c01(0x172))/0xa)+parseInt(_0x357c01(0x17c))/0xb*(parseInt(_0x357c01(0x168))/0xc);if(_0x5612ae===_0x351e93)break;else _0xc1f56e['push'](_0xc1f56e['shift']());}catch(_0x596130){_0xc1f56e['push'](_0xc1f56e['shift']());}}}(a109_0x6c77,0x5e1d9));function a109_0x1dc9(_0x48337d,_0x5e1ebb){_0x48337d=_0x48337d-0x162;const _0x6c775a=a109_0x6c77();let _0x1dc9e5=_0x6c775a[_0x48337d];return _0x1dc9e5;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';function a109_0x6c77(){const _0x1869bd=['618170NPszsL','trim','skillMdPath','includes','3673455eFJpon','get','metadataPath','cache','3662260tYZwWW','source','77TiIsoA','name','skillCode','1453612QwtEYV','values','has','3PqdHBM','45ywdLZA','validation','39373LGopoK','isSymbolicLink','sort','scope','accessKey','3105736AmEVZt','linkedPaths','linkedPath','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','localeCompare','\x20!=\x20','link','map','local','push','34wUNRCW','builtin','tags','3488112TxTuWF','6ZPxsMY','isDirectory','filter','scopes','code','env','dir','cacheDir','appCode'];a109_0x6c77=function(){return _0x1869bd;};return a109_0x6c77();}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x4385e2,_0x2c19ea,_0x577469={}){const _0x5c8969=a109_0x1dc9,_0x515ef4=safePathSegment(_0x4385e2[_0x5c8969(0x171)],'appCode');if(_0x2c19ea[_0x5c8969(0x171)]!==_0x515ef4)throw CliErrors[_0x5c8969(0x184)](_0x5c8969(0x18d)+_0x2c19ea[_0x5c8969(0x171)]+_0x5c8969(0x18f)+_0x515ef4);const _0x405512=normalizeRuntimeSkillScopes(_0x4385e2[_0x5c8969(0x16c)]),_0x14ad8e=new Set(_0x405512),_0x4b556c=_0x4385e2[_0x5c8969(0x16d)]?.[_0x5c8969(0x173)](),_0x435f2c=new Map(),_0x1e7f03=resolve(getRuntimeSkillCacheRoot(_0x4385e2[_0x5c8969(0x16e)],_0x4385e2[_0x5c8969(0x189)],_0x577469),_0x515ef4);for(const _0x531d83 of _0x405512){for(const _0x41fb13 of localSkillEntryDirs(resolve(_0x1e7f03,_0x531d83))){collectLocalRuntimeSkill(_0x435f2c,_0x41fb13,{'appCode':_0x515ef4,'scopes':_0x14ad8e,'code':_0x4b556c,'source':_0x5c8969(0x179)});}}for(const _0x3f9afd of _0x2c19ea['skillRoots']){for(const _0x999f27 of localSkillLinkCandidates(_0x3f9afd,_0x2c19ea,_0x14ad8e)){collectLocalRuntimeSkill(_0x435f2c,_0x999f27,{'appCode':_0x515ef4,'scopes':_0x14ad8e,'code':_0x4b556c,'source':_0x5c8969(0x190),'linkedPath':_0x999f27});}}return Array['from'](_0x435f2c[_0x5c8969(0x180)]())[_0x5c8969(0x187)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x5e5e2d){const _0x5ced62=a109_0x1dc9;if(!existsSync(_0x5e5e2d))return[];return readdirSync(_0x5e5e2d,{'withFileTypes':!![]})[_0x5ced62(0x16b)](_0x57b6a9=>_0x57b6a9[_0x5ced62(0x16a)]()||_0x57b6a9[_0x5ced62(0x186)]())[_0x5ced62(0x162)](_0x362d92=>resolve(_0x5e5e2d,_0x362d92[_0x5ced62(0x17d)]));}function localSkillLinkCandidates(_0x2b38a4,_0x173873,_0x1331c9){const _0x5f47f9=a109_0x1dc9;if(!existsSync(_0x2b38a4))return[];const _0x26c21e=_0x173873[_0x5f47f9(0x171)]+'--';return readdirSync(_0x2b38a4,{'withFileTypes':!![]})[_0x5f47f9(0x16b)](_0x492337=>_0x492337[_0x5f47f9(0x16a)]()||_0x492337[_0x5f47f9(0x186)]())[_0x5f47f9(0x16b)](_0x2136d7=>_0x173873[_0x5f47f9(0x188)]==='project'||_0x2136d7[_0x5f47f9(0x17d)]['startsWith'](_0x26c21e)||_0x1331c9[_0x5f47f9(0x181)](_0x5f47f9(0x166)))[_0x5f47f9(0x162)](_0x54b527=>resolve(_0x2b38a4,_0x54b527[_0x5f47f9(0x17d)]));}function collectLocalRuntimeSkill(_0x30ca11,_0x29dafb,_0x2b9240){const _0x42a1c2=a109_0x1dc9,_0x35b5ad=resolve(_0x29dafb,METADATA_FILE),_0x155df1=readMetadataIfPresent(_0x35b5ad);if(!_0x155df1)return;if(_0x155df1[_0x42a1c2(0x171)]!==_0x2b9240['appCode'])return;if(!isRuntimeSkillScope(_0x155df1[_0x42a1c2(0x188)])||!_0x2b9240[_0x42a1c2(0x16c)][_0x42a1c2(0x181)](_0x155df1[_0x42a1c2(0x188)]))return;const _0x41f24b=_0x155df1['skillCode']?.[_0x42a1c2(0x173)]();if(!_0x41f24b)return;if(_0x2b9240[_0x42a1c2(0x16d)]&&_0x41f24b!==_0x2b9240[_0x42a1c2(0x16d)])return;const _0x414689=_0x155df1[_0x42a1c2(0x188)]+':'+_0x41f24b,_0x117934=_0x2b9240[_0x42a1c2(0x18c)]?[_0x2b9240[_0x42a1c2(0x18c)]]:[],_0x2959b7=_0x30ca11[_0x42a1c2(0x177)](_0x414689);if(_0x2959b7){_0x2b9240[_0x42a1c2(0x17b)]===_0x42a1c2(0x179)&&(_0x2959b7[_0x42a1c2(0x16f)]=_0x29dafb,_0x2959b7[_0x42a1c2(0x170)]=_0x29dafb,_0x2959b7[_0x42a1c2(0x174)]=resolve(_0x29dafb,SKILL_FILE),_0x2959b7[_0x42a1c2(0x178)]=_0x35b5ad);for(const _0x2bdb2d of _0x117934){!_0x2959b7[_0x42a1c2(0x18b)][_0x42a1c2(0x175)](_0x2bdb2d)&&_0x2959b7['linkedPaths'][_0x42a1c2(0x164)](_0x2bdb2d);}_0x2959b7['linkedPaths']['sort']();return;}_0x30ca11['set'](_0x414689,{..._0x155df1,'tags':Array['isArray'](_0x155df1[_0x42a1c2(0x167)])?_0x155df1[_0x42a1c2(0x167)]:[],'scope':_0x155df1['scope'],'source':_0x42a1c2(0x163),'dir':_0x29dafb,'cacheDir':_0x2b9240[_0x42a1c2(0x17b)]===_0x42a1c2(0x179)?_0x29dafb:undefined,'skillMdPath':resolve(_0x29dafb,SKILL_FILE),'metadataPath':_0x35b5ad,'linkedPaths':_0x117934});}function compareLocalRuntimeSkills(_0x4ad976,_0x295f57){const _0x132902=a109_0x1dc9,_0x34a7b7={'personal':0x0,'company':0x1,'builtin':0x2};return _0x34a7b7[_0x4ad976[_0x132902(0x188)]]-_0x34a7b7[_0x295f57[_0x132902(0x188)]]||_0x4ad976[_0x132902(0x17e)]['localeCompare'](_0x295f57[_0x132902(0x17e)])||_0x4ad976['dir'][_0x132902(0x18e)](_0x295f57['dir']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ecabf,_0x252546){const _0x581456=a110_0x2fe2,_0x1514b4=_0x4ecabf();while(!![]){try{const _0x11dccf=parseInt(_0x581456(0x108))/0x1+-parseInt(_0x581456(0xe9))/0x2+-parseInt(_0x581456(0x113))/0x3*(-parseInt(_0x581456(0xf7))/0x4)+-parseInt(_0x581456(0x10e))/0x5+parseInt(_0x581456(0x112))/0x6*(-parseInt(_0x581456(0xf9))/0x7)+-parseInt(_0x581456(0xf3))/0x8+parseInt(_0x581456(0xea))/0x9;if(_0x11dccf===_0x252546)break;else _0x1514b4['push'](_0x1514b4['shift']());}catch(_0x48b6da){_0x1514b4['push'](_0x1514b4['shift']());}}}(a110_0x9c66,0x969be));import{readFileSync,readdirSync,realpathSync}from'node:fs';import{relative,resolve}from'node:path';import{CliErrors}from'../../errors.js';import{IGNORED_DIR_NAMES,IGNORED_FILE_NAMES,SKILL_FILE}from'./constants.js';export function fileContent(_0x306a4){const _0x8b9d59=a110_0x2fe2;return _0x306a4['bytes']??Buffer['from'](_0x306a4[_0x8b9d59(0xef)]??'',_0x8b9d59(0xf0));}export function fileText(_0x26a4db){const _0x199476=a110_0x2fe2;return fileContent(_0x26a4db)[_0x199476(0x106)](_0x199476(0xf0));}export function normalizeLocalFiles(_0x10ba7a){const _0x29f7e0=a110_0x2fe2;if(!Array['isArray'](_0x10ba7a)||_0x10ba7a[_0x29f7e0(0x10c)]===0x0)return[];const _0x50f22c=new Map();for(const _0x225f2d of _0x10ba7a){if(!_0x225f2d||typeof _0x225f2d!==_0x29f7e0(0xec)||typeof _0x225f2d[_0x29f7e0(0x10b)]!=='string')throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x2a7efb=normalizeSkillRelativePath(_0x225f2d['path']);if(_0x50f22c[_0x29f7e0(0xf8)](_0x2a7efb))throw CliErrors[_0x29f7e0(0x10f)](_0x29f7e0(0xf2)+_0x2a7efb);if(_0x225f2d[_0x29f7e0(0x104)]!==undefined&&!Buffer[_0x29f7e0(0xeb)](_0x225f2d['bytes']))throw CliErrors['validation'](_0x29f7e0(0x107)+_0x2a7efb);if(_0x225f2d[_0x29f7e0(0x104)]===undefined&&typeof _0x225f2d['content']!=='string')throw CliErrors[_0x29f7e0(0x10f)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x2a7efb);const _0x36997b=fileContent(_0x225f2d);_0x50f22c[_0x29f7e0(0x105)](_0x2a7efb,{'path':_0x2a7efb,'bytes':_0x36997b});}return Array[_0x29f7e0(0x101)](_0x50f22c[_0x29f7e0(0x10d)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x7bdfc6){const _0x24979f=a110_0x2fe2;if(!Array[_0x24979f(0x102)](_0x7bdfc6)||_0x7bdfc6[_0x24979f(0x10c)]===0x0)return[];const _0x219edb=new Map();for(const _0x27cdbf of _0x7bdfc6){if(!_0x27cdbf||typeof _0x27cdbf!==_0x24979f(0xec)||typeof _0x27cdbf['path']!=='string')throw CliErrors[_0x24979f(0x10f)](_0x24979f(0xfe));const _0x2b1434=normalizeSkillRelativePath(_0x27cdbf[_0x24979f(0x10b)]);if(_0x219edb[_0x24979f(0xf8)](_0x2b1434))throw CliErrors[_0x24979f(0x10f)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x2b1434);if(!isSha256Hex(_0x27cdbf['sha256']))throw CliErrors[_0x24979f(0x10f)](_0x24979f(0x103)+_0x2b1434);if(!Number[_0x24979f(0xfa)](_0x27cdbf[_0x24979f(0x115)])||_0x27cdbf[_0x24979f(0x115)]<0x0)throw CliErrors[_0x24979f(0x10f)](_0x24979f(0x100)+_0x2b1434);_0x219edb['set'](_0x2b1434,{'path':_0x2b1434,'sha256':_0x27cdbf['sha256'][_0x24979f(0xf4)](),'size':_0x27cdbf[_0x24979f(0x115)]});}return Array[_0x24979f(0x101)](_0x219edb[_0x24979f(0x10d)]())[_0x24979f(0x10a)](compareSkillFiles);}export function scanSkillDirectory(_0x1cc43e){const _0x578db1=realpathSync(_0x1cc43e),_0x452c04=[];function _0x9a4c98(_0x10fc7d){const _0x14cfa6=a110_0x2fe2,_0x10ef9c=readdirSync(_0x10fc7d,{'withFileTypes':!![]})[_0x14cfa6(0x10a)]((_0x4d3fb9,_0x16eeb7)=>_0x4d3fb9['name']['localeCompare'](_0x16eeb7[_0x14cfa6(0x110)]));for(const _0x170d8b of _0x10ef9c){if(_0x170d8b[_0x14cfa6(0xfb)]()&&IGNORED_DIR_NAMES[_0x14cfa6(0xf8)](_0x170d8b[_0x14cfa6(0x110)]))continue;if(IGNORED_FILE_NAMES['has'](_0x170d8b[_0x14cfa6(0x110)]))continue;const _0x48462b=resolve(_0x10fc7d,_0x170d8b['name']);if(_0x170d8b[_0x14cfa6(0xf1)]())throw CliErrors[_0x14cfa6(0x10f)](_0x14cfa6(0xf5)+_0x48462b);const _0x38456a=toPosixPath(relative(_0x578db1,_0x48462b));if(_0x170d8b[_0x14cfa6(0xfb)]()){_0x9a4c98(_0x48462b);continue;}if(!_0x170d8b[_0x14cfa6(0xff)]())continue;validateSkillRelativePath(_0x38456a);const _0x170c2c=readFileSync(_0x48462b);_0x452c04['push']({'path':_0x38456a,'bytes':_0x170c2c});}}return _0x9a4c98(_0x578db1),normalizeLocalFiles(_0x452c04);}function a110_0x9c66(){const _0x376f05=['5921010UDwFTa','isBuffer','object','split','replace','content','utf8','isSymbolicLink','Duplicate\x20Skill\x20file\x20path:\x20','2146264ZMViuS','toLowerCase','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','test','4303844ifhQbq','has','70427LCEqIq','isSafeInteger','isDirectory','compare','string','Skill\x20file\x20path\x20must\x20be\x20text.','isFile','Skill\x20file\x20size\x20is\x20invalid:\x20','from','isArray','Skill\x20file\x20sha256\x20is\x20invalid:\x20','bytes','set','toString','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','734242CWxAib','Unsafe\x20Skill\x20file\x20path:\x20','sort','path','length','values','4100275aHwOBL','validation','name','includes','132ULXhgN','3pEcheZ','startsWith','size','1083038abAYxe'];a110_0x9c66=function(){return _0x376f05;};return a110_0x9c66();}function a110_0x2fe2(_0x3c84c6,_0x48ce29){_0x3c84c6=_0x3c84c6-0xe9;const _0x9c666e=a110_0x9c66();let _0x2fe2ba=_0x9c666e[_0x3c84c6];return _0x2fe2ba;}export function compareSkillFiles(_0x38599d,_0x2ff687){const _0x28015a=a110_0x2fe2;if(_0x38599d[_0x28015a(0x10b)]===SKILL_FILE)return _0x2ff687['path']===SKILL_FILE?0x0:-0x1;if(_0x2ff687['path']===SKILL_FILE)return 0x1;return Buffer[_0x28015a(0xfc)](Buffer[_0x28015a(0x101)](_0x38599d['path'],_0x28015a(0xf0)),Buffer[_0x28015a(0x101)](_0x2ff687[_0x28015a(0x10b)],_0x28015a(0xf0)));}export function normalizeSkillRelativePath(_0x48b51b){const _0x5de143=toPosixPath(_0x48b51b['trim']());return validateSkillRelativePath(_0x5de143),_0x5de143;}export function validateSkillRelativePath(_0x3c778a){const _0x2c44ec=a110_0x2fe2;if(!_0x3c778a||_0x3c778a[_0x2c44ec(0x114)]('/')||_0x3c778a[_0x2c44ec(0x111)]('//'))throw CliErrors[_0x2c44ec(0x10f)](_0x2c44ec(0x109)+_0x3c778a);for(const _0x1019cb of _0x3c778a[_0x2c44ec(0xed)]('/')){if(!_0x1019cb||_0x1019cb==='.'||_0x1019cb==='..')throw CliErrors['validation'](_0x2c44ec(0x109)+_0x3c778a);}}export function toPosixPath(_0x45f96e){const _0x5ced13=a110_0x2fe2;return _0x45f96e[_0x5ced13(0xee)](/\\/g,'/');}export function isSha256Hex(_0x4b71bb){const _0xcc3157=a110_0x2fe2;return typeof _0x4b71bb===_0xcc3157(0xfd)&&/^[a-fA-F0-9]{64}$/[_0xcc3157(0xf6)](_0x4b71bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38d9d9,_0x1aa32c){const _0x355979=a111_0x825e,_0x3a6fc6=_0x38d9d9();while(!![]){try{const _0xcf60cb=-parseInt(_0x355979(0x190))/0x1+parseInt(_0x355979(0x170))/0x2*(-parseInt(_0x355979(0x17d))/0x3)+parseInt(_0x355979(0x174))/0x4+-parseInt(_0x355979(0x18e))/0x5+parseInt(_0x355979(0x16d))/0x6*(parseInt(_0x355979(0x182))/0x7)+parseInt(_0x355979(0x162))/0x8*(-parseInt(_0x355979(0x173))/0x9)+-parseInt(_0x355979(0x166))/0xa*(-parseInt(_0x355979(0x193))/0xb);if(_0xcf60cb===_0x1aa32c)break;else _0x3a6fc6['push'](_0x3a6fc6['shift']());}catch(_0x1c7e58){_0x3a6fc6['push'](_0x3a6fc6['shift']());}}}(a111_0x534d,0x7d8e9));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';function a111_0x534d(){const _0xf520cd=['384830HGwrKr','test','path','9229mnMZBe','skillName','map','---','trimEnd','85944bkymjn','match','find','fileHashes','18840jaFrze','contentHash','entries','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','set','pulledAt','contents','12KpfoWI','toString','.\x20Changed\x20file:\x20','88YqINSl','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','513qEQhYi','1964652zEILwU','paths','trim','keys','delete','packageBytes','has','description','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','46977nMeLTq','filter','---\x0a','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','utf8','953001cdrpfW','name:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','replace','displayName','env','length','displayName:\x20','isFile','name','description:\x20','validation','718335kfPEND','appCode'];a111_0x534d=function(){return _0xf520cd;};return a111_0x534d();}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';function a111_0x825e(_0x440167,_0x3c91e3){_0x440167=_0x440167-0x162;const _0x534def=a111_0x534d();let _0x825e31=_0x534def[_0x440167];return _0x825e31;}export function materializeRuntimeSkill(_0x2f5f2a,_0x17cf67,_0x483328){const _0x1f103b=a111_0x825e,_0x1366e1=requireSkillCode(_0x2f5f2a),_0x188cf6=requirePackageBytes(_0x1366e1,_0x483328[_0x1f103b(0x179)]),_0x477956=extractDownloadedPackage(_0x188cf6),_0x214ef8=_0x477956[_0x1f103b(0x164)](_0x50a1e7=>_0x50a1e7['path']===SKILL_FILE);if(!_0x214ef8)throw CliErrors[_0x1f103b(0x18d)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x1366e1);const _0x397f3c=withMaterializedSkillFrontmatter(_0x477956,_0x2f5f2a,_0x1366e1),_0x56bbcc=_0x397f3c[_0x1f103b(0x164)](_0x2588ab=>_0x2588ab[_0x1f103b(0x192)]===SKILL_FILE),_0x38cc72=fileText(_0x56bbcc),_0x504088=getRuntimeSkillDir(_0x483328[_0x1f103b(0x187)],_0x483328['accessKey'],_0x483328['appCode'],_0x17cf67,_0x1366e1,_0x483328[_0x1f103b(0x175)]),_0x48524a=resolve(_0x504088,SKILL_FILE),_0x2dae0a=resolve(_0x504088,METADATA_FILE),_0x36aae0=contentHash(_0x38cc72),_0x23cff2=readMetadataIfPresent(_0x2dae0a)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x504088,_0x2dae0a,_0x397f3c,_0x483328['force']===!![]),mkdirSync(_0x504088,{'recursive':!![],'mode':0x1c0});const _0x3fd829=existsSync(_0x48524a)?readFileSync(_0x48524a,_0x1f103b(0x181)):undefined;return materializeFiles(_0x504088,_0x397f3c),removeStaleManagedFiles(_0x504088,_0x23cff2,_0x397f3c),writeJsonAtomic(_0x2dae0a,buildMetadata(_0x2f5f2a,_0x17cf67,_0x483328[_0x1f103b(0x18f)],_0x36aae0,_0x483328[_0x1f103b(0x16b)],_0x397f3c,_0x188cf6)),{'skill':_0x2f5f2a,'scope':_0x17cf67,'dir':_0x504088,'skillMdPath':_0x48524a,'metadataPath':_0x2dae0a,'contentHash':_0x36aae0,'changed':_0x3fd829!==_0x38cc72};}function withMaterializedSkillFrontmatter(_0x508ac4,_0x4318b9,_0x1eb65c){const _0x10f4e4=a111_0x825e,_0x10d469=skillDisplayName(_0x4318b9,_0x1eb65c),_0x33538a=_0x4318b9[_0x10f4e4(0x17b)]?.[_0x10f4e4(0x176)]()||_0x10d469||_0x1eb65c;return normalizeLocalFiles(_0x508ac4)[_0x10f4e4(0x195)](_0x1f22f3=>{const _0x5defa7=_0x10f4e4,_0x5cd944=fileText(_0x1f22f3);if(_0x1f22f3['path']!==SKILL_FILE)return _0x1f22f3;if(hasYamlFrontmatter(_0x5cd944))return{'path':_0x1f22f3[_0x5defa7(0x192)],'content':withSyncedDisplayName(_0x5cd944,_0x10d469)};return{'path':_0x1f22f3['path'],'content':prependSkillFrontmatter(_0x5cd944,{'name':_0x1eb65c,'displayName':_0x10d469,'description':_0x33538a})};});}function hasYamlFrontmatter(_0x5a05b2){const _0x9763b9=a111_0x825e;return/^\uFEFF?---\s*\r?\n/[_0x9763b9(0x191)](_0x5a05b2);}function prependSkillFrontmatter(_0x5092dc,_0x2870f9){const _0x39ec37=a111_0x825e,_0x620da4=_0x5092dc[_0x39ec37(0x185)](/^\uFEFF/,'');return[_0x39ec37(0x196),_0x39ec37(0x183)+yamlString(_0x2870f9[_0x39ec37(0x18b)]),_0x2870f9[_0x39ec37(0x186)]?_0x39ec37(0x189)+yamlString(_0x2870f9['displayName']):undefined,_0x39ec37(0x18c)+yamlString(_0x2870f9[_0x39ec37(0x17b)]),_0x39ec37(0x196),'',_0x620da4][_0x39ec37(0x17e)](_0x20267c=>_0x20267c!==undefined)['join']('\x0a');}function yamlString(_0x26ce30){const _0x26c660=a111_0x825e;return JSON['stringify'](_0x26ce30['replace'](/\r/g,'')[_0x26c660(0x176)]());}function skillDisplayName(_0x57334d,_0x5bac6f){const _0x3a9fe0=a111_0x825e,_0x1a4e3d=_0x57334d[_0x3a9fe0(0x194)]?.[_0x3a9fe0(0x176)]();return _0x1a4e3d||_0x5bac6f;}function withSyncedDisplayName(_0x177a87,_0x58db36){const _0x230afc=a111_0x825e,_0x182034=_0x177a87[_0x230afc(0x163)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x182034)return _0x177a87;const _0x140b6d=_0x182034[0x1]??'',_0x149406=_0x182034[0x2]??'',_0x4b7f04=parseDocument(_0x149406);if(_0x4b7f04['errors']['length']>0x0||!isMap(_0x4b7f04[_0x230afc(0x16c)]))return _0x177a87;if(_0x58db36)_0x4b7f04[_0x230afc(0x16a)](_0x230afc(0x186),_0x58db36);else{if(_0x4b7f04[_0x230afc(0x17a)](_0x230afc(0x186)))_0x4b7f04[_0x230afc(0x178)](_0x230afc(0x186));else return _0x177a87;}forceBlockCollections(_0x4b7f04['contents']);const _0x4cf2f6=_0x4b7f04[_0x230afc(0x16e)]({'lineWidth':0x0})[_0x230afc(0x197)](),_0x4406c6=_0x177a87['slice'](_0x182034[0x0][_0x230afc(0x188)])[_0x230afc(0x185)](/^\r?\n/,'');return _0x140b6d+_0x230afc(0x17f)+_0x4cf2f6+'\x0a---\x0a\x0a'+_0x4406c6;}function forceBlockCollections(_0x8d3b08){if(!isNode(_0x8d3b08))return;visit(_0x8d3b08,(_0xd53725,_0x483ea7)=>{isCollection(_0x483ea7)&&(_0x483ea7['flow']=![]);});}function ensurePulledFilesCanBeOverwritten(_0x4c351a,_0x5e3e0f,_0x5cf0f1,_0x2683c2){const _0x444631=a111_0x825e;if(_0x2683c2||!existsSync(_0x5e3e0f))return;const _0x6ecc77=readMetadataIfPresent(_0x5e3e0f);if(!_0x6ecc77)return;const _0x1dc0d9=_0x6ecc77[_0x444631(0x165)]&&Object['keys'](_0x6ecc77[_0x444631(0x165)])[_0x444631(0x188)]>0x0?_0x6ecc77[_0x444631(0x165)]:undefined;if(_0x1dc0d9)for(const [_0x4f15bc,_0x5b21f0]of Object[_0x444631(0x168)](_0x1dc0d9)){const _0x45c017=resolveManagedFilePath(_0x4c351a,_0x4f15bc);if(!existsSync(_0x45c017))throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,_0x444631(0x184)+_0x4f15bc);const _0x3bd482=lstatSync(_0x45c017);if(!_0x3bd482[_0x444631(0x18a)]())throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,'Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20'+_0x4f15bc);const _0x1467b7=bufferSha256(readFileSync(_0x45c017));if(_0x1467b7!==_0x5b21f0)throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a+_0x444631(0x16f)+_0x4f15bc,_0x444631(0x17c)+_0x4f15bc);}else{const _0x12d540=resolve(_0x4c351a,SKILL_FILE);if(existsSync(_0x12d540)&&_0x6ecc77[_0x444631(0x167)]){const _0x3619ab=contentHash(readFileSync(_0x12d540,_0x444631(0x181)));if(_0x3619ab!==_0x6ecc77[_0x444631(0x167)])throw CliErrors['validation'](_0x444631(0x180)+_0x12d540,_0x444631(0x171));}}for(const _0x4aae5d of normalizeLocalFiles(_0x5cf0f1)){if(_0x1dc0d9?.[_0x4aae5d[_0x444631(0x192)]])continue;if(!_0x1dc0d9&&_0x4aae5d[_0x444631(0x192)]===SKILL_FILE)continue;const _0x2b30b5=resolveManagedFilePath(_0x4c351a,_0x4aae5d['path']);if(!existsSync(_0x2b30b5))continue;const _0x5d6381=lstatSync(_0x2b30b5);if(!_0x5d6381['isFile']())throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,_0x444631(0x172)+_0x4aae5d['path']);const _0x108f00=bufferSha256(readFileSync(_0x2b30b5));if(_0x108f00!==fileHash(_0x4aae5d))throw CliErrors[_0x444631(0x18d)](_0x444631(0x169)+_0x4c351a,'Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20'+_0x4aae5d['path']);}}function materializeFiles(_0x18038f,_0x45ddee){for(const _0x12e797 of normalizeLocalFiles(_0x45ddee)){const _0x54a790=resolveManagedFilePath(_0x18038f,_0x12e797['path']);mkdirSync(dirname(_0x54a790),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x54a790,fileContent(_0x12e797),0x180);}}function removeStaleManagedFiles(_0x310f2f,_0x550597,_0x302216){const _0x54cad1=a111_0x825e;if(!_0x550597)return;const _0x166584=new Set(normalizeLocalFiles(_0x302216)[_0x54cad1(0x195)](_0x42f019=>_0x42f019['path']));for(const _0x164e64 of Object[_0x54cad1(0x177)](_0x550597)){if(_0x166584[_0x54cad1(0x17a)](_0x164e64))continue;const _0xcb1d73=resolveManagedFilePath(_0x310f2f,_0x164e64);existsSync(_0xcb1d73)&&lstatSync(_0xcb1d73)[_0x54cad1(0x18a)]()&&rmSync(_0xcb1d73,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x321663,_0x2a55e3){const _0x5cc6be=a112_0x10a0,_0x9a75e3=_0x321663();while(!![]){try{const _0x5ea8db=-parseInt(_0x5cc6be(0x8a))/0x1+-parseInt(_0x5cc6be(0x78))/0x2+parseInt(_0x5cc6be(0x85))/0x3*(parseInt(_0x5cc6be(0x77))/0x4)+parseInt(_0x5cc6be(0x93))/0x5*(-parseInt(_0x5cc6be(0x88))/0x6)+parseInt(_0x5cc6be(0x94))/0x7*(-parseInt(_0x5cc6be(0x96))/0x8)+parseInt(_0x5cc6be(0x8c))/0x9+-parseInt(_0x5cc6be(0x82))/0xa*(-parseInt(_0x5cc6be(0x86))/0xb);if(_0x5ea8db===_0x2a55e3)break;else _0x9a75e3['push'](_0x9a75e3['shift']());}catch(_0xe90486){_0x9a75e3['push'](_0x9a75e3['shift']());}}}(a112_0x117e,0x4a558));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';function a112_0x10a0(_0xd64a94,_0x3608c3){_0xd64a94=_0xd64a94-0x72;const _0x117e4d=a112_0x117e();let _0x10a0a3=_0x117e4d[_0xd64a94];return _0x10a0a3;}import{METADATA_FILE}from'./constants.js';function a112_0x117e(){const _0x33953a=['fromEntries','personal','string','hasUpstreamUpdate','forkedFromVersion','10imUUAZ','371ZaupuZ','userId','18472Bwduie','status','tenantCode','forkedFromSkillId','validation','skillName','parse','2421592fQNrrc','429960SliQIt','manifest','isArray','Runtime\x20Skill\x20is\x20missing\x20skillCode.','skillCode','zipSize','zipSha256','object','path','map','20SONhbi','length','description','3dHDtLO','3634642bStDXy','utf8','1536258nKInIe','files','520940SSsPFJ','version','3677517eeDNpe','trim'];a112_0x117e=function(){return _0x33953a;};return a112_0x117e();}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x17e4df,_0x8be5a7,_0x2f2876,_0x276906,_0x478582,_0x287a15,_0x17f990){const _0x5cc3c7=a112_0x10a0,_0x4e1f13=_0x287a15?normalizeLocalFiles(_0x287a15):[],_0x33ebcd=!_0x17f990&&_0x4e1f13[_0x5cc3c7(0x83)]>0x0?buildSkillPackage(_0x4e1f13):undefined,_0x269927=_0x17f990?bufferSha256(_0x17f990):_0x33ebcd?.['manifest'][_0x5cc3c7(0x7e)],_0xcab8e3=_0x17f990?.[_0x5cc3c7(0x83)]??_0x33ebcd?.[_0x5cc3c7(0x79)][_0x5cc3c7(0x7d)],_0x596317=_0x4e1f13[_0x5cc3c7(0x83)]>0x0?Object[_0x5cc3c7(0x8e)](_0x4e1f13[_0x5cc3c7(0x81)](_0x3082c4=>[_0x3082c4[_0x5cc3c7(0x80)],fileHash(_0x3082c4)])):undefined;return{'schemaVersion':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?0x2:0x1,'id':_0x17e4df['id'],'appCode':_0x2f2876,'skillCode':requireSkillCode(_0x17e4df),'skillName':_0x17e4df[_0x5cc3c7(0x75)],'description':_0x17e4df[_0x5cc3c7(0x84)],'scope':_0x8be5a7,'readonly':_0x8be5a7!==_0x5cc3c7(0x8f)||_0x17e4df['readonly']===!![],'tenantCode':_0x17e4df[_0x5cc3c7(0x72)],'userId':_0x17e4df[_0x5cc3c7(0x95)],'version':_0x17e4df[_0x5cc3c7(0x8b)],'status':_0x17e4df[_0x5cc3c7(0x97)],'tags':Array[_0x5cc3c7(0x7a)](_0x17e4df['tags'])?_0x17e4df['tags']:[],'hasUpstreamUpdate':_0x17e4df[_0x5cc3c7(0x91)],'forkedFromSkillId':_0x17e4df[_0x5cc3c7(0x73)],'forkedFromVersion':_0x17e4df[_0x5cc3c7(0x92)],'sourceSessionId':_0x17e4df['sourceSessionId'],'contentHash':_0x276906,'fileHashes':_0x596317,'treeHash':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4e1f13)):undefined,'ossPath':remoteManifestOssPath(_0x17e4df[_0x5cc3c7(0x89)]),'zipSha256':_0x269927,'zipSize':_0xcab8e3,'files':_0x4e1f13[_0x5cc3c7(0x83)]>0x0?_0x4e1f13[_0x5cc3c7(0x81)](_0x16dda1=>({'path':_0x16dda1[_0x5cc3c7(0x80)],'hash':fileHash(_0x16dda1),'size':fileContent(_0x16dda1)[_0x5cc3c7(0x83)]})):undefined,'pulledAt':_0x478582??new Date()['toISOString']()};}export function requireSkillCode(_0x3114d3){const _0x1eba05=a112_0x10a0,_0x57e32e=_0x3114d3[_0x1eba05(0x7c)]?.[_0x1eba05(0x8d)]();if(!_0x57e32e)throw CliErrors[_0x1eba05(0x74)](_0x1eba05(0x7b));return _0x57e32e;}export function readMetadataIfPresent(_0x4056d5){const _0x3056c9=a112_0x10a0;if(!existsSync(_0x4056d5))return undefined;try{const _0x2b5050=JSON[_0x3056c9(0x76)](readFileSync(_0x4056d5,_0x3056c9(0x87)));return _0x2b5050;}catch{throw CliErrors[_0x3056c9(0x74)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x4056d5);}}function remoteManifestOssPath(_0x4339ac){const _0x27aedb=a112_0x10a0;if(!_0x4339ac||typeof _0x4339ac!==_0x27aedb(0x7f)||Array[_0x27aedb(0x7a)](_0x4339ac))return undefined;const _0x59014d=_0x4339ac['ossPath'];return typeof _0x59014d===_0x27aedb(0x90)&&_0x59014d[_0x27aedb(0x8d)]()?_0x59014d['trim']():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a113_0x7c33b6=a113_0x352e;(function(_0x5e3772,_0x26afcf){const _0xcd3e5a=a113_0x352e,_0x41ba42=_0x5e3772();while(!![]){try{const _0x2ba14a=-parseInt(_0xcd3e5a(0x20d))/0x1*(parseInt(_0xcd3e5a(0x1f2))/0x2)+parseInt(_0xcd3e5a(0x202))/0x3+parseInt(_0xcd3e5a(0x201))/0x4+-parseInt(_0xcd3e5a(0x206))/0x5+parseInt(_0xcd3e5a(0x20b))/0x6+-parseInt(_0xcd3e5a(0x204))/0x7*(-parseInt(_0xcd3e5a(0x205))/0x8)+-parseInt(_0xcd3e5a(0x1f1))/0x9;if(_0x2ba14a===_0x26afcf)break;else _0x41ba42['push'](_0x41ba42['shift']());}catch(_0x137368){_0x41ba42['push'](_0x41ba42['shift']());}}}(a113_0x192c,0x60807));import{existsSync}from'node:fs';import{homedir}from'node:os';function a113_0x192c(){const _0x1d4e6b=['includes','trim','validation','cacheRoot','CLAUDE_SKILL_ROOT','3134232XjbODG','648078ODOQWF','homeDirName','322FZxDMU','48088lNDZqw','2606245fgnolC','\x20for\x20local\x20path:\x20','skills','homeDir','.workbuddy','3390042tpMTxY','cache','437449RUXGnG','4384152grkXPs','2KBDvcv','claudeSkillsDir','.agents','Unsafe\x20','workbuddySkillsDir','agentsSkillsDir','skillCode','appCode','path\x20segment','filter'];a113_0x192c=function(){return _0x1d4e6b;};return a113_0x192c();}import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x19298b={}){const _0x559738=a113_0x352e,_0xf60af9=_0x19298b[_0x559738(0x209)]??homedir(),_0xf110a1=resolve(_0xf60af9,PRODUCT_CONFIG[_0x559738(0x203)],_0x559738(0x20c)),_0x2df224=trimmedEnv('SKILL_ROOT'),_0x5468b5=trimmedEnv(_0x559738(0x200)),_0x5b2e3f=resolve(_0xf60af9,_0x559738(0x20a)),_0x93de2b=_0x19298b['workbuddySkillsDir']??(existsSync(_0x5b2e3f)?resolve(_0x5b2e3f,'skills'):undefined);return{'homeDir':_0xf60af9,'cacheRoot':_0xf110a1,'managedRoot':resolve(_0xf60af9,PRODUCT_CONFIG[_0x559738(0x203)]),'agentsSkillsDir':_0x19298b[_0x559738(0x1f7)]??_0x2df224??resolve(_0xf60af9,_0x559738(0x1f4),_0x559738(0x208)),'claudeSkillsDir':_0x19298b[_0x559738(0x1f3)]??_0x5468b5??resolve(_0xf60af9,'.claude',_0x559738(0x208)),'workbuddySkillsDir':_0x93de2b};}export function runtimeAgentSkillRoots(_0x14431a){const _0x1121f9=a113_0x352e;return[_0x14431a[_0x1121f9(0x1f7)],_0x14431a[_0x1121f9(0x1f3)],_0x14431a[_0x1121f9(0x1f6)]][_0x1121f9(0x1fb)](_0x3151d8=>Boolean(_0x3151d8));}export function getRuntimeSkillCacheRoot(_0xd4f7d4,_0x326428,_0x16065f={}){const _0x2cbf10=a113_0x352e,_0x5c04af=resolveSkillSyncPaths(_0x16065f);return resolve(_0x5c04af[_0x2cbf10(0x1ff)],_0xd4f7d4,fingerprintAccessKey(_0x326428),_0x2cbf10(0x208));}function a113_0x352e(_0x30b1f0,_0x3efd18){_0x30b1f0=_0x30b1f0-0x1f1;const _0x192cca=a113_0x192c();let _0x352e8f=_0x192cca[_0x30b1f0];return _0x352e8f;}export function getRuntimeSkillDir(_0x4792ba,_0x40d374,_0x20d780,_0x3369f7,_0x115bc9,_0x512c4a={}){const _0x4f8fc8=a113_0x352e;return resolve(getRuntimeSkillCacheRoot(_0x4792ba,_0x40d374,_0x512c4a),safePathSegment(_0x20d780,_0x4f8fc8(0x1f9)),_0x3369f7,safePathSegment(_0x115bc9,_0x4f8fc8(0x1f8)));}export function safePathSegment(_0x43b544,_0x15fc60=a113_0x7c33b6(0x1fa)){const _0x456d49=a113_0x7c33b6;if(!_0x43b544||_0x43b544[_0x456d49(0x1fc)]('/')||_0x43b544[_0x456d49(0x1fc)]('\x5c')||_0x43b544[_0x456d49(0x1fc)]('..'))throw CliErrors[_0x456d49(0x1fe)](_0x456d49(0x1f5)+_0x15fc60+_0x456d49(0x207)+_0x43b544);return _0x43b544;}function trimmedEnv(_0x412d16){const _0x99f728=a113_0x7c33b6,_0x1a5a25=productEnv(_0x412d16)?.[_0x99f728(0x1fd)]();return _0x1a5a25?_0x1a5a25:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1df5ae,_0x34e0a8){const _0xc24c0=a114_0x5750,_0x5e18ea=_0x1df5ae();while(!![]){try{const _0x9f69be=parseInt(_0xc24c0(0xc8))/0x1+-parseInt(_0xc24c0(0xf0))/0x2+-parseInt(_0xc24c0(0xe7))/0x3+-parseInt(_0xc24c0(0xfb))/0x4*(parseInt(_0xc24c0(0xee))/0x5)+-parseInt(_0xc24c0(0xf6))/0x6*(parseInt(_0xc24c0(0xed))/0x7)+-parseInt(_0xc24c0(0xcb))/0x8+parseInt(_0xc24c0(0xf5))/0x9;if(_0x9f69be===_0x34e0a8)break;else _0x5e18ea['push'](_0x5e18ea['shift']());}catch(_0x2698f2){_0x5e18ea['push'](_0x5e18ea['shift']());}}}(a114_0x2ed1,0xf1c51));function a114_0x2ed1(){const _0x25f516=['\x20has\x20unsupported\x20scope\x20\x22','manifest','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','isArray','skillCode','refreshedAt','3282357jcEEwI','scope','packageBase64','replace','utf8','ignoreMetadataScope','1237397kHvcfN','215CIWoFG','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','3885930jcEbLd','builtin','ignoreMetadataSkillCode','Skill\x20metadata\x20appCode\x20\x22','validation','41778288XzFxUD','18GVRkYt','Skill\x20directory\x20not\x20found:\x20','path','content','sourceSessionId','73556tGKMVG','files','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20has\x20scope=\x22','string','trim','boolean','Remote\x20Skill\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','851975VBHVHI','appCode','Invalid\x20','1164752hNtClF','allowAppCodeRetarget','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','skillName','personal','isFile','ignoreMetadataAppCodeMismatch','length','ignoreInvalidMetadata','(unknown)','description','Missing\x20','find','name','some','object','startsWith','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','number','match','isDirectory','tags'];a114_0x2ed1=function(){return _0x25f516;};return a114_0x2ed1();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x2db972}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x2bf414,_0x1ad48c,_0x3031c0={}){const _0x3f3fa5=a114_0x5750,_0x394fe6=resolvePushDirectoryRoot(_0x2bf414),_0x395768=readPushMetadataIfPresent(resolve(_0x394fe6,METADATA_FILE),{'ignoreInvalidMetadata':_0x3031c0[_0x3f3fa5(0xd3)]});if(_0x395768?.['appCode']&&_0x395768[_0x3f3fa5(0xc9)]!==_0x1ad48c&&!_0x3031c0[_0x3f3fa5(0xcc)]&&!_0x3031c0[_0x3f3fa5(0xd1)])throw CliErrors[_0x3f3fa5(0xf4)](_0x3f3fa5(0xf3)+_0x395768[_0x3f3fa5(0xc9)]+_0x3f3fa5(0xe3)+_0x1ad48c+'\x22.');const _0x1d5043=resolvePushSkillCode(_0x394fe6,_0x1ad48c,_0x395768,_0x3031c0);if(!_0x1d5043)throw CliErrors[_0x3f3fa5(0xf4)](_0x3f3fa5(0xc1)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x394fe6,'skillCode':_0x1d5043,'metadata':_0x395768};}export function readPushDirectory(_0x2c81cf,_0x414c89,_0x5a42b8={}){const _0x4ab906=a114_0x5750,_0x374c84=resolvePushDirectoryIdentity(_0x2c81cf,_0x414c89,_0x5a42b8),_0x2122fb=_0x374c84['dir'],_0x357959=resolve(_0x2122fb,SKILL_FILE);if(!existsSync(_0x357959)||!lstatSync(_0x357959)[_0x4ab906(0xd0)]())throw CliErrors['validation'](_0x4ab906(0xd6)+SKILL_FILE+':\x20'+_0x357959);const _0x461e7d=_0x374c84['metadata'],_0x6e94ef=_0x5a42b8['targetScope']??_0x4ab906(0xcf);if(!_0x5a42b8['ignoreMetadataScope']&&_0x461e7d?.[_0x4ab906(0xe8)]==='builtin')throw CliErrors['validation'](_0x4ab906(0xdc)+METADATA_FILE+_0x4ab906(0xc2)+_0x461e7d[_0x4ab906(0xe8)]+'\x22.');if(!_0x5a42b8[_0x4ab906(0xec)]&&_0x6e94ef==='personal'&&_0x461e7d?.[_0x4ab906(0xe8)]&&_0x461e7d[_0x4ab906(0xe8)]!=='personal')throw CliErrors[_0x4ab906(0xf4)](_0x4ab906(0xcd)+METADATA_FILE+_0x4ab906(0xc2)+_0x461e7d[_0x4ab906(0xe8)]+'\x22.',_0x4ab906(0xef)+_0x2122fb+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x1c72bb=scanSkillDirectory(_0x2122fb),_0x4860e0=buildSkillPackage(_0x1c72bb),_0x5113a0=readFileSync(_0x357959,'utf8'),_0x55a1ca=_0x374c84[_0x4ab906(0xe5)],_0xa9ec28=_0x5a42b8['ignoreMetadataForPayload']?undefined:_0x461e7d,_0x4bf56e=readSkillDisplayName(_0x5113a0);return{'skillCode':_0x55a1ca,'metadata':_0x461e7d,'frontmatterDisplayName':_0x4bf56e,'input':{'skillCode':_0x55a1ca,'skillName':_0x4bf56e??_0xa9ec28?.[_0x4ab906(0xce)],'description':_0xa9ec28?.[_0x4ab906(0xd5)],'content':_0x5113a0,'files':_0x4860e0[_0x4ab906(0xe2)],'packageBase64':_0x4860e0[_0x4ab906(0xe9)],'tags':_0xa9ec28?.[_0x4ab906(0xe0)],'version':_0xa9ec28?.['version'],'sourceSessionId':_0xa9ec28?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x32275f,_0x415602,_0x522cba,_0x52d046={}){const _0x4bef67=a114_0x5750,_0x5353d5=resolvePushDirectoryRoot(_0x32275f),_0x791b89=readPushMetadataIfPresent(resolve(_0x5353d5,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x388bac=requireRemoteScope(_0x415602),_0x59b854=readLocalSkillContent(_0x5353d5),_0x38b1fb={..._0x415602,'appCode':_0x415602[_0x4bef67(0xc9)]??_0x522cba,'skillName':_0x415602[_0x4bef67(0xce)]??_0x791b89?.['skillName'],'description':_0x415602[_0x4bef67(0xd5)]??_0x791b89?.[_0x4bef67(0xd5)],'tags':Array['isArray'](_0x415602[_0x4bef67(0xe0)])?_0x415602[_0x4bef67(0xe0)]:_0x791b89?.[_0x4bef67(0xe0)],'sourceSessionId':_0x415602['sourceSessionId']??_0x791b89?.[_0x4bef67(0xfa)],'content':_0x415602[_0x4bef67(0xf9)]??_0x59b854},_0x27ad14=buildMetadata(_0x38b1fb,_0x388bac,_0x522cba,contentHash(_0x59b854),_0x52d046[_0x4bef67(0xe6)]);writeJsonAtomic(resolve(_0x5353d5,METADATA_FILE),_0x27ad14);}export function recordPushedRuntimeSkill(_0x23b655,_0x3eaaf5,_0x13a110,_0x17b177={}){const _0x216e10=a114_0x5750,_0x5b40bb=resolvePushDirectoryRoot(_0x23b655),_0x465715=scanSkillDirectory(_0x5b40bb),_0xb453e=_0x465715[_0x216e10(0xd7)](_0x5a2ae7=>_0x5a2ae7['path']===SKILL_FILE),_0x262ecf=_0xb453e?fileText(_0xb453e):'',_0x4d20c5=tryNormalizePackageManifest(_0x3eaaf5[_0x216e10(0xc0)]),_0x221e22={..._0x3eaaf5,'content':_0x3eaaf5[_0x216e10(0xf9)]??_0x262ecf,'files':_0x4d20c5},_0x40fbf7=_0x4d20c5?normalizeLocalFiles(_0x465715)['filter'](_0xfaea0c=>_0x4d20c5[_0x216e10(0xc0)][_0x216e10(0xd9)](_0x170aa4=>_0x170aa4[_0x216e10(0xf8)]===_0xfaea0c['path'])):undefined,_0x4477cc=buildMetadata(_0x221e22,_0x17b177[_0x216e10(0xe8)]??_0x216e10(0xcf),_0x13a110,contentHash(_0x221e22[_0x216e10(0xf9)]??''),_0x17b177['pushedAt'],_0x40fbf7);writeJsonAtomic(resolve(_0x5b40bb,METADATA_FILE),_0x4477cc);}function a114_0x5750(_0x2aa6d6,_0x2c24c9){_0x2aa6d6=_0x2aa6d6-0xc0;const _0x2ed1d9=a114_0x2ed1();let _0x5750b5=_0x2ed1d9[_0x2aa6d6];return _0x5750b5;}export function deriveSkillCodeFromDirectory(_0x5513d1,_0x23772d){const _0x5e8ed5=a114_0x5750,_0x52df26=basename(resolve(_0x5513d1)),_0x429172=_0x23772d+'--';return _0x52df26[_0x5e8ed5(0xdb)](_0x429172)?_0x52df26['slice'](_0x429172[_0x5e8ed5(0xd2)]):_0x52df26;}function resolvePushSkillCode(_0x34c59b,_0x1501a4,_0x8498ae,_0x37941c){const _0x2dfb22=a114_0x5750,_0x21da94=deriveSkillCodeFromSkillFile(_0x34c59b)||deriveSkillCodeFromDirectory(_0x34c59b,_0x1501a4);if(_0x37941c[_0x2dfb22(0xf2)])return _0x21da94;return _0x8498ae?.['skillCode']?.[_0x2dfb22(0xc4)]()||_0x21da94;}function deriveSkillCodeFromSkillFile(_0x4b7b95){const _0x2e8d67=a114_0x5750,_0x15983a=resolve(_0x4b7b95,SKILL_FILE);if(!existsSync(_0x15983a)||!lstatSync(_0x15983a)['isFile']())return undefined;const _0x2a907e=readFileSync(_0x15983a,_0x2e8d67(0xeb)),_0x467dfa=_0x2a907e[_0x2e8d67(0xde)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x467dfa)return undefined;const _0xb9943a=parseFrontmatterObject(_0x467dfa[0x1]??''),_0x31cef0=scalarToString(_0xb9943a?.[_0x2e8d67(0xd8)]);return _0x31cef0?slugifySkillName(_0x31cef0):undefined;}function readSkillDisplayName(_0x206491){const _0x4c9410=a114_0x5750,_0x201238=_0x206491[_0x4c9410(0xde)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x201238)return undefined;const _0x1681fa=parseFrontmatterObject(_0x201238[0x1]??'');return scalarToString(_0x1681fa?.['displayName']);}function slugifySkillName(_0x3cf4db){const _0x1a3070=a114_0x5750,_0x555648=_0x3cf4db['trim']()['toLowerCase']()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x1a3070(0xea)](/^-+/,'')['replace'](/-+$/,'')[_0x1a3070(0xea)](/-{2,}/g,'-');if(!_0x555648)throw CliErrors[_0x1a3070(0xf4)](_0x1a3070(0xca)+SKILL_FILE+_0x1a3070(0xc7));return _0x555648;}function parseFrontmatterObject(_0x269fe){const _0x4f923e=a114_0x5750;try{const _0x52beee=a114_0x2db972(_0x269fe);return _0x52beee&&typeof _0x52beee===_0x4f923e(0xda)&&!Array[_0x4f923e(0xe4)](_0x52beee)?_0x52beee:undefined;}catch{return undefined;}}function scalarToString(_0x59d0a6){const _0x5256c4=a114_0x5750;if(typeof _0x59d0a6===_0x5256c4(0xc3))return _0x59d0a6[_0x5256c4(0xc4)]();if(typeof _0x59d0a6===_0x5256c4(0xdd)||typeof _0x59d0a6===_0x5256c4(0xc5))return String(_0x59d0a6);return undefined;}function resolvePushDirectoryRoot(_0x972d8b){const _0x2ca585=a114_0x5750,_0x371eff=resolve(_0x972d8b);if(!existsSync(_0x371eff))throw CliErrors[_0x2ca585(0xf4)](_0x2ca585(0xf7)+_0x972d8b);const _0x7213ea=lstatSync(_0x371eff);if(_0x7213ea[_0x2ca585(0xdf)]())return _0x371eff;if(_0x7213ea['isSymbolicLink']()){const _0x3a306d=realpathSync(_0x371eff);if(lstatSync(_0x3a306d)[_0x2ca585(0xdf)]())return _0x3a306d;}throw CliErrors['validation'](_0x2ca585(0xf7)+_0x972d8b);}function requireRemoteScope(_0x76dba6){const _0x13d7f1=a114_0x5750;if(_0x76dba6[_0x13d7f1(0xe8)]===_0x13d7f1(0xcf)||_0x76dba6[_0x13d7f1(0xe8)]==='company'||_0x76dba6[_0x13d7f1(0xe8)]===_0x13d7f1(0xf1))return _0x76dba6[_0x13d7f1(0xe8)];throw CliErrors[_0x13d7f1(0xf4)](_0x13d7f1(0xc6)+(_0x76dba6['skillCode']||_0x13d7f1(0xd4))+_0x13d7f1(0xe1)+(_0x76dba6['scope']??'unknown')+'\x22.');}function readLocalSkillContent(_0x1cbdd2){const _0x9cc167=a114_0x5750,_0x38d5a7=resolve(_0x1cbdd2,SKILL_FILE);return existsSync(_0x38d5a7)&&lstatSync(_0x38d5a7)['isFile']()?readFileSync(_0x38d5a7,_0x9cc167(0xeb)):'';}function readPushMetadataIfPresent(_0x3705d5,_0x40f5b1={}){try{return readMetadataIfPresent(_0x3705d5);}catch(_0x3bddbe){if(_0x40f5b1['ignoreInvalidMetadata'])return undefined;throw _0x3bddbe;}}
|
|
1
|
+
(function(_0x51263e,_0x337de0){const _0x2e2af7=a114_0x5752,_0x5aaf83=_0x51263e();while(!![]){try{const _0x1a7756=parseInt(_0x2e2af7(0x12a))/0x1+parseInt(_0x2e2af7(0x120))/0x2+parseInt(_0x2e2af7(0x12f))/0x3+parseInt(_0x2e2af7(0x12e))/0x4*(-parseInt(_0x2e2af7(0x12b))/0x5)+parseInt(_0x2e2af7(0x123))/0x6+-parseInt(_0x2e2af7(0x11c))/0x7+parseInt(_0x2e2af7(0x130))/0x8;if(_0x1a7756===_0x337de0)break;else _0x5aaf83['push'](_0x5aaf83['shift']());}catch(_0x5160a8){_0x5aaf83['push'](_0x5aaf83['shift']());}}}(a114_0x3c97,0x19922));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x42a53a}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x13dd33,_0x1940ec,_0xa3e637={}){const _0x43d9bd=a114_0x5752,_0x11c18c=resolvePushDirectoryRoot(_0x13dd33),_0x22e894=readPushMetadataIfPresent(resolve(_0x11c18c,METADATA_FILE),{'ignoreInvalidMetadata':_0xa3e637[_0x43d9bd(0x157)]});if(_0x22e894?.[_0x43d9bd(0x137)]&&_0x22e894[_0x43d9bd(0x137)]!==_0x1940ec&&!_0xa3e637[_0x43d9bd(0x13d)]&&!_0xa3e637['ignoreMetadataAppCodeMismatch'])throw CliErrors['validation'](_0x43d9bd(0x144)+_0x22e894['appCode']+_0x43d9bd(0x149)+_0x1940ec+'\x22.');const _0x31d391=resolvePushSkillCode(_0x11c18c,_0x1940ec,_0x22e894,_0xa3e637);if(!_0x31d391)throw CliErrors[_0x43d9bd(0x121)](_0x43d9bd(0x154)+SKILL_FILE+',\x20'+METADATA_FILE+_0x43d9bd(0x129));return{'dir':_0x11c18c,'skillCode':_0x31d391,'metadata':_0x22e894};}export function readPushDirectory(_0x44b154,_0x2a4652,_0x375d5d={}){const _0x393cad=a114_0x5752,_0x45a639=resolvePushDirectoryIdentity(_0x44b154,_0x2a4652,_0x375d5d),_0x2ec1a7=_0x45a639[_0x393cad(0x14a)],_0x9c9c85=resolve(_0x2ec1a7,SKILL_FILE);if(!existsSync(_0x9c9c85)||!lstatSync(_0x9c9c85)[_0x393cad(0x148)]())throw CliErrors['validation'](_0x393cad(0x14e)+SKILL_FILE+':\x20'+_0x9c9c85);const _0x4e51d2=_0x45a639['metadata'],_0x861377=_0x375d5d[_0x393cad(0x12c)]??'personal';if(!_0x375d5d[_0x393cad(0x13a)]&&_0x4e51d2?.['scope']===_0x393cad(0x142))throw CliErrors[_0x393cad(0x121)](_0x393cad(0x138)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2['scope']+'\x22.');if(!_0x375d5d[_0x393cad(0x13a)]&&_0x861377===_0x393cad(0x136)&&_0x4e51d2?.['scope']&&_0x4e51d2[_0x393cad(0x156)]!==_0x393cad(0x136))throw CliErrors['validation'](_0x393cad(0x159)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x4e51d2[_0x393cad(0x156)]+'\x22.',_0x393cad(0x124)+_0x2ec1a7+_0x393cad(0x133));const _0x275e09=scanSkillDirectory(_0x2ec1a7),_0x1a7f2c=buildSkillPackage(_0x275e09),_0x1900b5=readFileSync(_0x9c9c85,'utf8'),_0x328548=_0x45a639[_0x393cad(0x131)],_0x186485=_0x375d5d[_0x393cad(0x14f)]?undefined:_0x4e51d2,_0x369218=readSkillDisplayName(_0x1900b5);return{'skillCode':_0x328548,'metadata':_0x4e51d2,'frontmatterDisplayName':_0x369218,'input':{'skillCode':_0x328548,'skillName':_0x369218??_0x186485?.[_0x393cad(0x122)],'description':_0x186485?.['description'],'content':_0x1900b5,'files':_0x1a7f2c[_0x393cad(0x145)],'packageBase64':_0x1a7f2c[_0x393cad(0x15a)],'tags':_0x186485?.['tags'],'version':_0x186485?.[_0x393cad(0x12d)],'sourceSessionId':_0x186485?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x8125ba,_0x2b43f0,_0x36b504,_0x2fb23c={}){const _0x223340=a114_0x5752,_0x30b7fb=resolvePushDirectoryRoot(_0x8125ba),_0x3dd30e=readPushMetadataIfPresent(resolve(_0x30b7fb,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5733d7=requireRemoteScope(_0x2b43f0),_0x4014d3=readLocalSkillContent(_0x30b7fb),_0x25e563={..._0x2b43f0,'appCode':_0x2b43f0[_0x223340(0x137)]??_0x36b504,'skillName':_0x2b43f0['skillName']??_0x3dd30e?.[_0x223340(0x122)],'description':_0x2b43f0[_0x223340(0x155)]??_0x3dd30e?.[_0x223340(0x155)],'tags':Array[_0x223340(0x153)](_0x2b43f0[_0x223340(0x151)])?_0x2b43f0[_0x223340(0x151)]:_0x3dd30e?.['tags'],'sourceSessionId':_0x2b43f0['sourceSessionId']??_0x3dd30e?.[_0x223340(0x13e)],'content':_0x2b43f0[_0x223340(0x14c)]??_0x4014d3},_0x398efa=buildMetadata(_0x25e563,_0x5733d7,_0x36b504,contentHash(_0x4014d3),_0x2fb23c['refreshedAt']);writeJsonAtomic(resolve(_0x30b7fb,METADATA_FILE),_0x398efa);}export function recordPushedRuntimeSkill(_0x52c7c0,_0x4bc2b9,_0x546bed,_0x2b22cc={}){const _0x2cef67=a114_0x5752,_0x51d2d0=resolvePushDirectoryRoot(_0x52c7c0),_0x1cebc7=scanSkillDirectory(_0x51d2d0),_0x54ba16=_0x1cebc7[_0x2cef67(0x128)](_0x5ae64b=>_0x5ae64b[_0x2cef67(0x150)]===SKILL_FILE),_0x16692d=_0x54ba16?fileText(_0x54ba16):'',_0x37178f=tryNormalizePackageManifest(_0x4bc2b9['files']),_0x566e19={..._0x4bc2b9,'content':_0x4bc2b9[_0x2cef67(0x14c)]??_0x16692d,'files':_0x37178f},_0x30c2bd=_0x37178f?normalizeLocalFiles(_0x1cebc7)[_0x2cef67(0x11e)](_0x4e8565=>_0x37178f['files'][_0x2cef67(0x126)](_0x146688=>_0x146688[_0x2cef67(0x150)]===_0x4e8565[_0x2cef67(0x150)])):undefined,_0x2f30ac=buildMetadata(_0x566e19,_0x2b22cc['scope']??_0x2cef67(0x136),_0x546bed,contentHash(_0x566e19[_0x2cef67(0x14c)]??''),_0x2b22cc[_0x2cef67(0x134)],_0x30c2bd);writeJsonAtomic(resolve(_0x51d2d0,METADATA_FILE),_0x2f30ac);}export function deriveSkillCodeFromDirectory(_0x3d15e7,_0x329b8a){const _0x22ad12=a114_0x5752,_0x3c9e15=basename(resolve(_0x3d15e7)),_0x86205b=_0x329b8a+'--';return _0x3c9e15[_0x22ad12(0x146)](_0x86205b)?_0x3c9e15[_0x22ad12(0x125)](_0x86205b[_0x22ad12(0x13f)]):_0x3c9e15;}function resolvePushSkillCode(_0x6d9c8b,_0x1e20af,_0x592f7d,_0x3e09c5){const _0x5211ec=a114_0x5752,_0x39a0a5=deriveSkillCodeFromSkillFile(_0x6d9c8b)||deriveSkillCodeFromDirectory(_0x6d9c8b,_0x1e20af);if(_0x3e09c5[_0x5211ec(0x147)])return _0x39a0a5;return _0x592f7d?.[_0x5211ec(0x131)]?.[_0x5211ec(0x11f)]()||_0x39a0a5;}function a114_0x3c97(){const _0x2c0460=['\x20to\x20submit\x20company\x20Skills\x20for\x20review.','pushedAt','\x20name\x20for\x20SkillHub\x20slug\x20generation.','personal','appCode','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','boolean','ignoreMetadataScope','replace','match','allowAppCodeRetarget','sourceSessionId','length','number','Invalid\x20','builtin','Skill\x20directory\x20not\x20found:\x20','Skill\x20metadata\x20appCode\x20\x22','manifest','startsWith','ignoreMetadataSkillCode','isFile','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','dir','isSymbolicLink','content','utf8','Missing\x20','ignoreMetadataForPayload','path','tags','unknown','isArray','Unable\x20to\x20resolve\x20skillCode\x20from\x20','description','scope','ignoreInvalidMetadata','\x20has\x20unsupported\x20scope\x20\x22','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','packageBase64','1450589xpvIXb','toLowerCase','filter','trim','58348ujTHRo','validation','skillName','103428OgNlwJ','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','slice','some','object','find',',\x20or\x20directory\x20name.','108146bwcrMr','758630igYhfU','targetScope','version','4HsjRrT','207123WacyED','1920736abgOOZ','skillCode','(unknown)'];a114_0x3c97=function(){return _0x2c0460;};return a114_0x3c97();}function deriveSkillCodeFromSkillFile(_0xbaa46){const _0x1a012d=a114_0x5752,_0x49e470=resolve(_0xbaa46,SKILL_FILE);if(!existsSync(_0x49e470)||!lstatSync(_0x49e470)['isFile']())return undefined;const _0x245095=readFileSync(_0x49e470,_0x1a012d(0x14d)),_0x441db4=_0x245095[_0x1a012d(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x441db4)return undefined;const _0x1c9712=parseFrontmatterObject(_0x441db4[0x1]??''),_0x3e6c0d=scalarToString(_0x1c9712?.['name']);return _0x3e6c0d?slugifySkillName(_0x3e6c0d):undefined;}function a114_0x5752(_0x1da12f,_0x787e4a){_0x1da12f=_0x1da12f-0x11c;const _0x3c97de=a114_0x3c97();let _0x5752d7=_0x3c97de[_0x1da12f];return _0x5752d7;}function readSkillDisplayName(_0x34ce5c){const _0x56250e=a114_0x5752,_0x46bf59=_0x34ce5c[_0x56250e(0x13c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x46bf59)return undefined;const _0x244127=parseFrontmatterObject(_0x46bf59[0x1]??'');return scalarToString(_0x244127?.['displayName']);}function slugifySkillName(_0x4e7bee){const _0x630088=a114_0x5752,_0x34f08d=_0x4e7bee['trim']()[_0x630088(0x11d)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x630088(0x13b)](/^-+/,'')['replace'](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x34f08d)throw CliErrors[_0x630088(0x121)](_0x630088(0x141)+SKILL_FILE+_0x630088(0x135));return _0x34f08d;}function parseFrontmatterObject(_0x130c11){const _0x4b24aa=a114_0x5752;try{const _0x2478d4=a114_0x42a53a(_0x130c11);return _0x2478d4&&typeof _0x2478d4===_0x4b24aa(0x127)&&!Array[_0x4b24aa(0x153)](_0x2478d4)?_0x2478d4:undefined;}catch{return undefined;}}function scalarToString(_0x582c72){const _0xa7f7c2=a114_0x5752;if(typeof _0x582c72==='string')return _0x582c72[_0xa7f7c2(0x11f)]();if(typeof _0x582c72===_0xa7f7c2(0x140)||typeof _0x582c72===_0xa7f7c2(0x139))return String(_0x582c72);return undefined;}function resolvePushDirectoryRoot(_0x3f42ab){const _0x2c9b6c=a114_0x5752,_0x414d0c=resolve(_0x3f42ab);if(!existsSync(_0x414d0c))throw CliErrors[_0x2c9b6c(0x121)](_0x2c9b6c(0x143)+_0x3f42ab);const _0x9c101e=lstatSync(_0x414d0c);if(_0x9c101e['isDirectory']())return _0x414d0c;if(_0x9c101e[_0x2c9b6c(0x14b)]()){const _0x5f2c14=realpathSync(_0x414d0c);if(lstatSync(_0x5f2c14)['isDirectory']())return _0x5f2c14;}throw CliErrors['validation'](_0x2c9b6c(0x143)+_0x3f42ab);}function requireRemoteScope(_0x5606ca){const _0x3c2b57=a114_0x5752;if(_0x5606ca[_0x3c2b57(0x156)]===_0x3c2b57(0x136)||_0x5606ca[_0x3c2b57(0x156)]==='company'||_0x5606ca['scope']===_0x3c2b57(0x142))return _0x5606ca[_0x3c2b57(0x156)];throw CliErrors[_0x3c2b57(0x121)]('Remote\x20Skill\x20'+(_0x5606ca['skillCode']||_0x3c2b57(0x132))+_0x3c2b57(0x158)+(_0x5606ca[_0x3c2b57(0x156)]??_0x3c2b57(0x152))+'\x22.');}function readLocalSkillContent(_0x571ff2){const _0x228256=a114_0x5752,_0x3a33bc=resolve(_0x571ff2,SKILL_FILE);return existsSync(_0x3a33bc)&&lstatSync(_0x3a33bc)[_0x228256(0x148)]()?readFileSync(_0x3a33bc,_0x228256(0x14d)):'';}function readPushMetadataIfPresent(_0x4423e2,_0x42b17f={}){try{return readMetadataIfPresent(_0x4423e2);}catch(_0x42ecb0){if(_0x42b17f['ignoreInvalidMetadata'])return undefined;throw _0x42ecb0;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57d0a5,_0x45b9c2){const _0x5a2887=a115_0x4f87,_0x3db9b2=_0x57d0a5();while(!![]){try{const _0x15a624=-parseInt(_0x5a2887(0x101))/0x1+-parseInt(_0x5a2887(0xfc))/0x2*(parseInt(_0x5a2887(0xfa))/0x3)+-parseInt(_0x5a2887(0xf5))/0x4+-parseInt(_0x5a2887(0xf9))/0x5+-parseInt(_0x5a2887(0xfe))/0x6+-parseInt(_0x5a2887(0xfd))/0x7*(-parseInt(_0x5a2887(0x100))/0x8)+-parseInt(_0x5a2887(0x102))/0x9*(-parseInt(_0x5a2887(0xff))/0xa);if(_0x15a624===_0x45b9c2)break;else _0x3db9b2['push'](_0x3db9b2['shift']());}catch(_0x4927ef){_0x3db9b2['push'](_0x3db9b2['shift']());}}}(a115_0x93e1,0xb45a5));import{CliErrors}from'../../errors.js';function a115_0x4f87(_0x1e6290,_0x2658dd){_0x1e6290=_0x1e6290-0xf3;const _0x93e10f=a115_0x93e1();let _0x4f8710=_0x93e10f[_0x1e6290];return _0x4f8710;}function a115_0x93e1(){const _0x1909f2=['includes','validation','3702860ALXsHX','168393MIfOKU','company','28ekeNBK','331751gPaHXM','5314584otXZYx','15975460WmKTRH','152kDDGAo','488083HTcZAN','18GxUNAV','personal','builtin','1826324LeqVgE','Unsupported\x20runtime\x20Skill\x20scope:\x20'];a115_0x93e1=function(){return _0x1909f2;};return a115_0x93e1();}export function normalizeRuntimeSkillScopes(_0x1cd30e){const _0x34690c=a115_0x4f87,_0x3f963e=_0x1cd30e&&_0x1cd30e['length']>0x0?_0x1cd30e:[_0x34690c(0xf3),_0x34690c(0xfb),'builtin'],_0x5bff7a=[];for(const _0x5dca72 of _0x3f963e){if(!isRuntimeSkillScope(_0x5dca72))throw CliErrors[_0x34690c(0xf8)](_0x34690c(0xf6)+_0x5dca72);!_0x5bff7a[_0x34690c(0xf7)](_0x5dca72)&&_0x5bff7a['push'](_0x5dca72);}return _0x5bff7a;}export function isRuntimeSkillScope(_0x1b0eda){const _0x14b637=a115_0x4f87;return _0x1b0eda===_0x14b637(0xf3)||_0x1b0eda===_0x14b637(0xfb)||_0x1b0eda===_0x14b637(0xf4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117_0x2007(_0x37a128,_0x58b4d0){_0x37a128=_0x37a128-0xec;const _0x36d45e=a117_0x36d4();let _0x200765=_0x36d45e[_0x37a128];return _0x200765;}const a117_0x43c987=a117_0x2007;(function(_0x23a227,_0x52e536){const _0x16f353=a117_0x2007,_0x36307a=_0x23a227();while(!![]){try{const _0x46a8d5=parseInt(_0x16f353(0xf4))/0x1*(-parseInt(_0x16f353(0xed))/0x2)+-parseInt(_0x16f353(0xf3))/0x3+parseInt(_0x16f353(0xef))/0x4+-parseInt(_0x16f353(0xff))/0x5*(-parseInt(_0x16f353(0xf2))/0x6)+parseInt(_0x16f353(0xfa))/0x7+-parseInt(_0x16f353(0xfb))/0x8*(-parseInt(_0x16f353(0xf9))/0x9)+-parseInt(_0x16f353(0xf5))/0xa;if(_0x46a8d5===_0x52e536)break;else _0x36307a['push'](_0x36307a['shift']());}catch(_0x58f92d){_0x36307a['push'](_0x36307a['shift']());}}}(a117_0x36d4,0x5261f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a117_0x43c987(0xec));export function createDeterministicZipPackage(_0x58ed5e){const _0x1a4b8a=a117_0x43c987,_0x77e3d9={};for(const _0x5b2bcd of normalizeLocalFiles(_0x58ed5e)){_0x77e3d9[_0x5b2bcd[_0x1a4b8a(0x100)]]=fileContent(_0x5b2bcd);}return Buffer[_0x1a4b8a(0xfc)](zipSync(_0x77e3d9,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x4c258b){const _0x5b5caf=a117_0x43c987;if(_0x4c258b[_0x5b5caf(0xf0)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x17da61;try{_0x17da61=unzipSync(_0x4c258b,{'filter'(_0xfacaee){const _0x1b797c=_0x5b5caf,_0x357df0=normalizeSkillRelativePath(_0xfacaee[_0x1b797c(0xf8)]);if(_0x357df0['endsWith']('/'))throw CliErrors[_0x1b797c(0xf1)](_0x1b797c(0x102)+_0x357df0);return!![];}});}catch(_0x152cf1){if(isRuntimeSkillValidationError(_0x152cf1))throw _0x152cf1;throw CliErrors[_0x5b5caf(0xf1)](_0x5b5caf(0xfd));}return Object[_0x5b5caf(0xfe)](_0x17da61)[_0x5b5caf(0xee)](([_0x41d881,_0x55c3fd])=>({'path':normalizeSkillRelativePath(_0x41d881),'bytes':Buffer[_0x5b5caf(0xfc)](_0x55c3fd)}))[_0x5b5caf(0xf6)](compareSkillFiles);}function a117_0x36d4(){const _0x2a845c=['3206154ulwdpZ','16HRAMGP','from','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','entries','30ZdXpiD','path','validation_error','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','1980-01-01T00:00:00.000Z','88uZViIK','map','701716ejOcpi','length','validation','435606xSTquG','608196JQhOSM','15003QeNThY','2794320QnaWsa','sort','code','name','1848051QcymWb'];a117_0x36d4=function(){return _0x2a845c;};return a117_0x36d4();}function isRuntimeSkillValidationError(_0x380d6e){const _0x39bd18=a117_0x43c987;return typeof _0x380d6e==='object'&&_0x380d6e!==null&&_0x39bd18(0xf7)in _0x380d6e&&_0x380d6e[_0x39bd18(0xf7)]===_0x39bd18(0x101);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x570228,_0x3f1239){const _0x31c422=a118_0x5e98,_0x995f8=_0x570228();while(!![]){try{const _0x423b80=-parseInt(_0x31c422(0x118))/0x1+parseInt(_0x31c422(0x104))/0x2*(parseInt(_0x31c422(0x120))/0x3)+parseInt(_0x31c422(0x119))/0x4*(parseInt(_0x31c422(0xf6))/0x5)+parseInt(_0x31c422(0x103))/0x6+parseInt(_0x31c422(0x112))/0x7*(-parseInt(_0x31c422(0x10a))/0x8)+-parseInt(_0x31c422(0x109))/0x9+-parseInt(_0x31c422(0x10e))/0xa*(-parseInt(_0x31c422(0xfc))/0xb);if(_0x423b80===_0x3f1239)break;else _0x995f8['push'](_0x995f8['shift']());}catch(_0x3ac9c5){_0x995f8['push'](_0x995f8['shift']());}}}(a118_0x4c59,0xdb2b5));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x34b38e){const _0x2eb2e0=a118_0x5e98,_0x189d6b=normalizeLocalFiles(_0x34b38e);if(!_0x189d6b[_0x2eb2e0(0x125)](_0x1057c5=>_0x1057c5['path']===SKILL_FILE))throw CliErrors[_0x2eb2e0(0x102)](_0x2eb2e0(0x121)+SKILL_FILE+_0x2eb2e0(0x101));const _0x296ddb=localFilesToManifestFiles(_0x189d6b),_0x2a9af3=createDeterministicZipPackage(_0x189d6b);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x296ddb),'zipSha256':bufferSha256(_0x2a9af3),'zipSize':_0x2a9af3[_0x2eb2e0(0xfb)],'files':_0x296ddb},'packageBytes':_0x2a9af3,'packageBase64':_0x2a9af3[_0x2eb2e0(0x107)](_0x2eb2e0(0xfa))};}function a118_0x4c59(){const _0xa3376=['path','isArray','zipSize','\x20in\x20Skill\x20file\x20package.','validation','7262262FlCsIH','26erVjvp','get','treeSha256','toString','ossPath','5726061rzXiGh','1709064BSFfZR','map','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','40vCTQrC','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','isSafeInteger','has','28HqPpNo','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','bytes','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','set','schemaVersion','627169rjtpwR','4QYCrII','sha256','push','toLowerCase','Duplicate\x20Skill\x20package\x20entry:\x20','trim','Runtime\x20Skill\x20package\x20size\x20mismatch.','200133WeAHfG','Missing\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','files','some','size','506355IduDGt','zipSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','object','base64','length','2301079aBHivU','requireOssPath'];a118_0x4c59=function(){return _0xa3376;};return a118_0x4c59();}export function verifyRuntimeSkillPackage(_0x30869d,_0xc30575){const _0x1ff40d=a118_0x5e98,_0x403269=normalizePackageManifest(_0x30869d,{'requireOssPath':![]});if(!_0x403269)throw CliErrors[_0x1ff40d(0x102)](_0x1ff40d(0x122));return extractAndVerifyPackage(_0x403269,_0xc30575);}export function verifyRuntimeSkillBundle(_0x4133a7,_0x12f1c4){const _0x5f26ff=normalizePackageManifest(_0x4133a7,{'requireOssPath':![]});if(!_0x5f26ff)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x5f26ff,_0x12f1c4);}export function tryNormalizePackageManifest(_0x456ed9){return normalizePackageManifest(_0x456ed9,{'requireOssPath':![]});}export function requirePackageBytes(_0x5accc0,_0x3e0be2){const _0x33c8a0=a118_0x5e98;if(!_0x3e0be2||_0x3e0be2[_0x33c8a0(0xfb)]===0x0)throw CliErrors['validation'](_0x33c8a0(0x115)+_0x5accc0);return _0x3e0be2;}export function extractDownloadedPackage(_0x5935af){const _0x49f980=a118_0x5e98,_0x522829=parseZipPackage(_0x5935af)[_0x49f980(0x10b)](_0x5abbbe=>({'path':_0x5abbbe[_0x49f980(0xfe)],'bytes':_0x5abbbe[_0x49f980(0x114)]}));if(!_0x522829[_0x49f980(0x125)](_0x1add85=>_0x1add85[_0x49f980(0xfe)]===SKILL_FILE))throw CliErrors[_0x49f980(0x102)](_0x49f980(0x10c)+SKILL_FILE+'.');return normalizeLocalFiles(_0x522829);}export function localFilesToManifestFiles(_0x2b381e){const _0x543b04=a118_0x5e98;return normalizeLocalFiles(_0x2b381e)[_0x543b04(0x10b)](_0x5a6772=>({'path':_0x5a6772[_0x543b04(0xfe)],'sha256':fileHash(_0x5a6772),'size':fileContent(_0x5a6772)[_0x543b04(0xfb)]}));}function a118_0x5e98(_0x26002e,_0x3e99f3){_0x26002e=_0x26002e-0xf6;const _0x4c59a0=a118_0x4c59();let _0x5e98d6=_0x4c59a0[_0x26002e];return _0x5e98d6;}function normalizePackageManifest(_0x5417b9,_0x322220){const _0x17c02c=a118_0x5e98;if(!_0x5417b9||typeof _0x5417b9!==_0x17c02c(0xf9)||Array[_0x17c02c(0xff)](_0x5417b9))return undefined;const _0x5359bf=_0x5417b9,_0x114f84=typeof _0x5359bf[_0x17c02c(0x108)]==='string'?_0x5359bf['ossPath'][_0x17c02c(0x11e)]():undefined;if(_0x322220[_0x17c02c(0xfd)]&&!_0x114f84)return undefined;if(!Array['isArray'](_0x5359bf[_0x17c02c(0x124)])||_0x5359bf[_0x17c02c(0x124)][_0x17c02c(0xfb)]===0x0)return undefined;if(!isSha256Hex(_0x5359bf[_0x17c02c(0x106)]))throw CliErrors[_0x17c02c(0x102)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x5359bf['zipSha256']))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x5359bf[_0x17c02c(0x100)])||_0x5359bf[_0x17c02c(0x100)]<0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x6adc89=normalizeManifestFiles(_0x5359bf[_0x17c02c(0x124)]);if(!_0x6adc89['some'](_0xf135fd=>_0xf135fd[_0x17c02c(0xfe)]===SKILL_FILE))throw CliErrors[_0x17c02c(0x102)](_0x17c02c(0x10f)+SKILL_FILE+'.');const _0x7f6af1=fileTreeHash(_0x6adc89);if(_0x7f6af1!==_0x5359bf[_0x17c02c(0x106)][_0x17c02c(0x11c)]())throw CliErrors[_0x17c02c(0x102)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x17c02c(0x110)](_0x5359bf['schemaVersion'])?_0x5359bf[_0x17c02c(0x117)]:0x2,'ossPath':_0x114f84,'treeSha256':_0x7f6af1,'zipSha256':_0x5359bf[_0x17c02c(0xf7)][_0x17c02c(0x11c)](),'zipSize':_0x5359bf[_0x17c02c(0x100)],'files':_0x6adc89};}function extractAndVerifyPackage(_0x2d2870,_0x4db615){const _0x4dcf1f=a118_0x5e98,_0x466626=normalizePackageManifest(_0x2d2870,{'requireOssPath':![]});if(!_0x466626)throw CliErrors[_0x4dcf1f(0x102)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x4db615[_0x4dcf1f(0xfb)]!==_0x466626[_0x4dcf1f(0x100)])throw CliErrors[_0x4dcf1f(0x102)](_0x4dcf1f(0x11f));const _0x24ed8a=bufferSha256(_0x4db615);if(_0x24ed8a!==_0x466626['zipSha256'])throw CliErrors[_0x4dcf1f(0x102)](_0x4dcf1f(0x123));return extractAndVerifyPackageFiles(_0x466626,_0x4db615);}function extractAndVerifyPackageFiles(_0x195e88,_0x152815){const _0x2483c7=a118_0x5e98,_0x189fb3=parseZipPackage(_0x152815);if(_0x189fb3[_0x2483c7(0xfb)]!==_0x195e88[_0x2483c7(0x124)][_0x2483c7(0xfb)])throw CliErrors['validation'](_0x2483c7(0x113));const _0x269ef1=new Map();for(const _0x59dfdf of _0x189fb3){if(_0x269ef1[_0x2483c7(0x111)](_0x59dfdf['path']))throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0x11d)+_0x59dfdf[_0x2483c7(0xfe)]);_0x269ef1[_0x2483c7(0x116)](_0x59dfdf['path'],_0x59dfdf);}const _0x27dd0e=[];for(const _0x5ee2f4 of _0x195e88[_0x2483c7(0x124)]){const _0x2dc5cf=_0x269ef1[_0x2483c7(0x105)](_0x5ee2f4[_0x2483c7(0xfe)]);if(!_0x2dc5cf)throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0x10d)+_0x5ee2f4[_0x2483c7(0xfe)]);if(_0x2dc5cf[_0x2483c7(0x114)][_0x2483c7(0xfb)]!==_0x5ee2f4[_0x2483c7(0x126)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x5ee2f4['path']);const _0x30aa1d=bufferSha256(_0x2dc5cf[_0x2483c7(0x114)]);if(_0x30aa1d!==_0x5ee2f4[_0x2483c7(0x11a)])throw CliErrors[_0x2483c7(0x102)](_0x2483c7(0xf8)+_0x5ee2f4[_0x2483c7(0xfe)]);_0x27dd0e[_0x2483c7(0x11b)]({'path':_0x5ee2f4[_0x2483c7(0xfe)],'bytes':_0x2dc5cf[_0x2483c7(0x114)]});}return normalizeLocalFiles(_0x27dd0e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18356a,_0x2a1cd1){var _0x3f7445=a119_0x53e1,_0x586d28=_0x18356a();while(!![]){try{var _0x517f17=-parseInt(_0x3f7445(0x9b))/0x1+-parseInt(_0x3f7445(0x98))/0x2+parseInt(_0x3f7445(0x99))/0x3+-parseInt(_0x3f7445(0x9f))/0x4+parseInt(_0x3f7445(0x9a))/0x5*(-parseInt(_0x3f7445(0x97))/0x6)+-parseInt(_0x3f7445(0x9d))/0x7*(-parseInt(_0x3f7445(0x9e))/0x8)+-parseInt(_0x3f7445(0x9c))/0x9*(parseInt(_0x3f7445(0xa0))/0xa);if(_0x517f17===_0x2a1cd1)break;else _0x586d28['push'](_0x586d28['shift']());}catch(_0x464879){_0x586d28['push'](_0x586d28['shift']());}}}(a119_0x1277,0x5004d));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';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a119_0x53e1(_0x5a0df5,_0x5b6969){_0x5a0df5=_0x5a0df5-0x97;var _0x1277a9=a119_0x1277();var _0x53e141=_0x1277a9[_0x5a0df5];return _0x53e141;}function a119_0x1277(){var _0x496567=['134985ZSEZAx','62520vXuHIy','234918pqrYnV','378xXsPlg','95632MgTNNC','1192888mvdtdQ','70kmUXai','48lqsNZA','168576JcAmai','1577883AySSBF'];a119_0x1277=function(){return _0x496567;};return a119_0x1277();}export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34603f,_0x4500a7){const _0x3e2ffd=a120_0x5167,_0x5307de=_0x34603f();while(!![]){try{const _0x22935d=-parseInt(_0x3e2ffd(0x123))/0x1*(parseInt(_0x3e2ffd(0x125))/0x2)+-parseInt(_0x3e2ffd(0x12b))/0x3+-parseInt(_0x3e2ffd(0x126))/0x4*(-parseInt(_0x3e2ffd(0x12d))/0x5)+parseInt(_0x3e2ffd(0x129))/0x6*(parseInt(_0x3e2ffd(0x128))/0x7)+-parseInt(_0x3e2ffd(0x12c))/0x8*(-parseInt(_0x3e2ffd(0x127))/0x9)+-parseInt(_0x3e2ffd(0x124))/0xa+parseInt(_0x3e2ffd(0x12a))/0xb;if(_0x22935d===_0x4500a7)break;else _0x5307de['push'](_0x5307de['shift']());}catch(_0x45c6c2){_0x5307de['push'](_0x5307de['shift']());}}}(a120_0x4fea,0xb6d5e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a120_0x4fea(){const _0x4114a5=['14161210KJgqCE','210QJVbMf','731732bKsJJS','9hAACEA','53137ZljvSk','288XprJQY','7018066NafeQU','714084NaLWlT','9525272ZHnisB','25koXmLo','6711kTVCwV'];a120_0x4fea=function(){return _0x4114a5;};return a120_0x4fea();}import{CliErrors}from'../errors.js';function a120_0x5167(_0x334f7d,_0x220da0){_0x334f7d=_0x334f7d-0x123;const _0x4fea20=a120_0x4fea();let _0x5167e5=_0x4fea20[_0x334f7d];return _0x5167e5;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|