@lovrabet/lovrabet-cli 2.1.21-beta.1 → 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
|
-
|
|
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
|
-
const a108_0x57cb60=a108_0x227d;function a108_0x227d(_0x42fb71,_0x3f952b){_0x42fb71=_0x42fb71-0x8b;const _0x35e423=a108_0x35e4();let _0x227d10=_0x35e423[_0x42fb71];return _0x227d10;}(function(_0x47ca9d,_0x106f95){const _0x19781e=a108_0x227d,_0x3c0674=_0x47ca9d();while(!![]){try{const _0x552857=-parseInt(_0x19781e(0x94))/0x1*(-parseInt(_0x19781e(0x9a))/0x2)+parseInt(_0x19781e(0xb9))/0x3*(-parseInt(_0x19781e(0xbf))/0x4)+parseInt(_0x19781e(0x96))/0x5*(parseInt(_0x19781e(0xae))/0x6)+parseInt(_0x19781e(0xc0))/0x7+parseInt(_0x19781e(0xa3))/0x8+parseInt(_0x19781e(0xb7))/0x9+-parseInt(_0x19781e(0xba))/0xa;if(_0x552857===_0x106f95)break;else _0x3c0674['push'](_0x3c0674['shift']());}catch(_0x4c7d75){_0x3c0674['push'](_0x3c0674['shift']());}}}(a108_0x35e4,0x8a3a5));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a108_0xa7593a from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a108_0xa7593a,RESERVED_PROJECT_SKILL_CODES=new Set([a108_0x57cb60(0xaf),a108_0x57cb60(0xa6),a108_0x57cb60(0x98)]);export function linkEffectiveRuntimeSkills(_0x53dfb4,_0xdf562d){const _0x122661=a108_0x57cb60,_0x451d87=new Map();for(const _0x3650fc of _0x53dfb4){const _0x1c96ca=_0x3650fc[_0x122661(0xc1)][_0x122661(0xb3)];if(!_0x1c96ca)continue;const _0x44548e=_0x451d87['get'](_0x1c96ca);(!_0x44548e||_0x3650fc[_0x122661(0xbb)]==='personal')&&_0x451d87[_0x122661(0xb8)](_0x1c96ca,_0x3650fc);}const _0x295b9c=[];for(const _0x3124fd of _0x451d87['values']()){const _0x2f052e=requireSkillCode(_0x3124fd[_0x122661(0xc1)]),_0x4754fb=readMetadataIfPresent(_0x3124fd[_0x122661(0xaa)]);if(_0x4754fb?.[_0x122661(0xa8)]!==_0xdf562d[_0x122661(0xa8)]||_0x4754fb[_0x122661(0xb3)]!==_0x2f052e)throw CliErrors[_0x122661(0x99)](_0x122661(0xb0)+_0xdf562d[_0x122661(0xa8)]+':\x20'+_0x3124fd['metadataPath']);const _0x2e1aae=runtimeSkillLinkName(_0xdf562d,_0x2f052e);for(const _0x83256c of _0xdf562d[_0x122661(0xad)]){_0x295b9c[_0x122661(0xac)](ensureManagedSymlink(resolve(_0x83256c,_0x2e1aae),_0x3124fd[_0x122661(0x9d)],_0xdf562d,_0x2f052e));}}return _0x295b9c;}export function pruneStaleRuntimeSkillLinks(_0x5cfa3a,_0x17a623,_0xb6d2fd){const _0x355619=a108_0x57cb60,_0x2f20ba=new Set([..._0x17a623][_0x355619(0xab)](_0x2074e9=>_0x2074e9[_0x355619(0x8e)]())['filter'](Boolean)),_0x104a22=_0xb6d2fd?new Set([..._0xb6d2fd][_0x355619(0xab)](_0x32b4c8=>_0x32b4c8['trim']())['filter'](Boolean)):undefined,_0xdb5bcf=[];for(const _0x553632 of _0x5cfa3a[_0x355619(0xad)]){for(const _0x4b8ea4 of managedTargetSkillLinkPaths(_0x553632,_0x5cfa3a)){const _0x2ef7e6=runtimeSkillCodeFromLink(_0x5cfa3a,_0x4b8ea4);if(_0x104a22&&!_0x104a22['has'](_0x2ef7e6))continue;if(_0x2f20ba[_0x355619(0xa5)](_0x2ef7e6))continue;_0xdb5bcf[_0x355619(0xac)](removeManagedSkillLink(_0x4b8ea4,_0x5cfa3a,_0x2ef7e6));}}return _0xdb5bcf;}export function pruneStaleRuntimeSkillCache(_0x59252e,_0x1dd032={}){const _0x234219=a108_0x57cb60,_0x370076=new Set([..._0x59252e[_0x234219(0x8c)]]['map'](_0x5093e9=>_0x5093e9[_0x234219(0x8e)]())[_0x234219(0xb2)](Boolean)),_0x3ed2f0=_0x59252e[_0x234219(0xb1)]?new Set([..._0x59252e['pruneSkillCodes']][_0x234219(0xab)](_0x2abc06=>_0x2abc06[_0x234219(0x8e)]())[_0x234219(0xb2)](Boolean)):undefined,_0x7df678=_0x59252e[_0x234219(0xa2)]??[_0x234219(0x8f),'company'],_0x213cfb=resolve(getRuntimeSkillCacheRoot(_0x59252e[_0x234219(0xbe)],_0x59252e[_0x234219(0x9e)],_0x1dd032),safePathSegment(_0x59252e[_0x234219(0xa8)],'appCode')),_0x532ead=[];for(const _0x5582f8 of _0x7df678){const _0x405c69=resolve(_0x213cfb,_0x5582f8);if(!existsSync(_0x405c69))continue;for(const _0x28b1fc of readdirSync(_0x405c69,{'withFileTypes':!![]})){if(!_0x28b1fc[_0x234219(0xbc)]())continue;const _0x2c1f6b=_0x28b1fc[_0x234219(0x91)];if(_0x3ed2f0&&!_0x3ed2f0[_0x234219(0xa5)](_0x2c1f6b))continue;if(_0x370076['has'](_0x2c1f6b))continue;const _0x1f8a43=resolve(_0x405c69,_0x2c1f6b),_0xee2ec4=readMetadataIfPresent(resolve(_0x1f8a43,METADATA_FILE));if(_0xee2ec4?.[_0x234219(0xa8)]!==_0x59252e[_0x234219(0xa8)]||_0xee2ec4[_0x234219(0xbb)]!==_0x5582f8||_0xee2ec4[_0x234219(0xb3)]!==_0x2c1f6b){_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xc2),'reason':'metadata-mismatch'});continue;}if(isLinkedFromAnyRoot(_0x1f8a43,_0x59252e[_0x234219(0x97)]??[])){_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xc2),'reason':_0x234219(0x8b)});continue;}removeSync(_0x1f8a43),_0x532ead[_0x234219(0xac)]({'path':_0x1f8a43,'action':_0x234219(0xbd)});}}return _0x532ead;}export function linkGlobalRuntimeSkills(_0x4f9f75,_0x3c4c98={}){const _0x1b6328=a108_0x57cb60,_0x889df0=resolveSkillSyncPaths(_0x3c4c98),_0x42a06b=[];for(const _0x259079 of _0x4f9f75){if(_0x259079[_0x1b6328(0xbb)]!==_0x1b6328(0x9c))throw CliErrors['validation']('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x259079[_0x1b6328(0xbb)]);const _0x38ba36=requireSkillCode(_0x259079[_0x1b6328(0xc1)]),_0x48f8d5=copyManagedSkillDirectory(_0x259079[_0x1b6328(0x9d)],resolve(_0x889df0[_0x1b6328(0x95)],_0x38ba36));_0x42a06b[_0x1b6328(0xac)]({..._0x48f8d5,'contentHash':_0x259079[_0x1b6328(0x90)]});}return _0x42a06b;}function ensureManagedSymlink(_0x3b4ff8,_0x292963,_0x5c276b,_0xd79e14){const _0x14afef=a108_0x57cb60;mkdirSync(dirname(_0x3b4ff8),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x3b4ff8)||isDanglingSymlink(_0x3b4ff8)){const _0x4bdc94=lstatSync(_0x3b4ff8);if(!_0x4bdc94[_0x14afef(0xa1)]())throw CliErrors[_0x14afef(0x99)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x3b4ff8);const _0x181275=resolveSymlinkTarget(_0x3b4ff8);if(!isPathInside(realOrResolved(_0x181275),realOrResolved(_0x5c276b[_0x14afef(0x92)])))throw CliErrors[_0x14afef(0x99)](_0x14afef(0xb5)+_0x3b4ff8);if(realOrResolved(_0x181275)===realOrResolved(_0x292963))return{'path':_0x3b4ff8,'target':_0x292963,'action':'unchanged'};const _0x130a24=readMetadataIfPresent(resolve(_0x181275,METADATA_FILE));if(_0x5c276b['scope']===_0x14afef(0xa4)&&(_0x130a24?.[_0x14afef(0xa8)]!==_0x5c276b[_0x14afef(0xa8)]||_0x130a24[_0x14afef(0xb3)]!==_0xd79e14))throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20'+_0x3b4ff8);return unlinkSync(_0x3b4ff8),symlinkSync(_0x292963,_0x3b4ff8,_0x14afef(0x9d)),{'path':_0x3b4ff8,'target':_0x292963,'action':'updated'};}return symlinkSync(_0x292963,_0x3b4ff8,_0x14afef(0x9d)),{'path':_0x3b4ff8,'target':_0x292963,'action':_0x14afef(0xa9)};}function managedTargetSkillLinkPaths(_0x4f4a52,_0x5cdedc){const _0x266b42=a108_0x57cb60;if(!existsSync(_0x4f4a52))return[];const _0x1e5530=_0x5cdedc[_0x266b42(0xa8)]+'--';return readdirSync(_0x4f4a52,{'withFileTypes':!![]})[_0x266b42(0xb2)](_0x4a6a0e=>_0x5cdedc[_0x266b42(0xbb)]===_0x266b42(0xa4)||_0x4a6a0e[_0x266b42(0x91)][_0x266b42(0x8d)](_0x1e5530))[_0x266b42(0xab)](_0x461e20=>resolve(_0x4f4a52,_0x461e20['name']));}function removeManagedSkillLink(_0x12b2af,_0x2a254c,_0x19876d){const _0x2408a6=a108_0x57cb60,_0x1461b9=lstatIfPresent(_0x12b2af);if(!_0x1461b9?.[_0x2408a6(0xa1)]())return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':'not-managed-symlink'};const _0x48df22=resolveSymlinkTarget(_0x12b2af);if(!isPathInside(realOrResolved(_0x48df22),realOrResolved(_0x2a254c[_0x2408a6(0x92)])))return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':_0x2408a6(0x9b)};const _0x282f0f=readMetadataIfPresent(resolve(_0x48df22,METADATA_FILE));if(_0x2a254c['scope']===_0x2408a6(0xa4)&&(_0x282f0f?.[_0x2408a6(0xa8)]!==_0x2a254c['appCode']||_0x282f0f[_0x2408a6(0xb3)]!==_0x19876d))return{'path':_0x12b2af,'action':_0x2408a6(0xc2),'reason':_0x2408a6(0x9f)};return unlinkSync(_0x12b2af),{'path':_0x12b2af,'action':_0x2408a6(0xbd)};}function isLinkedFromAnyRoot(_0x2e7c40,_0x15e616){const _0x519547=a108_0x57cb60,_0x2d7545=realOrResolved(_0x2e7c40);for(const _0x249b65 of _0x15e616){if(!existsSync(_0x249b65))continue;for(const _0x36d6d5 of readdirSync(_0x249b65,{'withFileTypes':!![]})){if(!_0x36d6d5['isSymbolicLink']())continue;const _0x3ae45f=resolve(_0x249b65,_0x36d6d5[_0x519547(0x91)]);if(realOrResolved(resolveSymlinkTarget(_0x3ae45f))===_0x2d7545)return!![];}}return![];}function a108_0x35e4(){const _0x3cf4be=['name','managedRoot','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','8sZtFaP','agentsSkillsDir','1731785hqXDre','protectedLinkRoots','secret-retriever','validation','113882BekfBc','external-symlink','builtin','dir','accessKey','metadata-mismatch','unchanged','isSymbolicLink','scopes','5373600YPaOKq','project','has','runtime-observe','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','appCode','created','metadataPath','map','push','skillRoots','18PmsIuB','lovrabet','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','pruneSkillCodes','filter','skillCode','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','updated','1855449DOOQqM','set','1721427tUsRTJ','18952900isVbHc','scope','isDirectory','removed','env','4IJFEJI','4639740alKQMK','skill','skipped','linked-from-protected-root','activeSkillCodes','startsWith','trim','personal','contentHash'];a108_0x35e4=function(){return _0x3cf4be;};return a108_0x35e4();}function runtimeSkillLinkName(_0x2ea333,_0x5361ab){const _0x4aa354=a108_0x57cb60,_0x30a73a=safePathSegment(_0x5361ab,'skillCode');if(_0x2ea333[_0x4aa354(0xbb)]===_0x4aa354(0xa4)&&RESERVED_PROJECT_SKILL_CODES[_0x4aa354(0xa5)](_0x30a73a))throw CliErrors[_0x4aa354(0x99)]('Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20'+_0x30a73a);return _0x2ea333[_0x4aa354(0xbb)]===_0x4aa354(0xa4)?_0x30a73a:_0x2ea333[_0x4aa354(0xa8)]+'--'+_0x30a73a;}function runtimeSkillCodeFromLink(_0x11c9d2,_0x139a04){const _0x2e5856=a108_0x57cb60,_0x57e36d=basename(_0x139a04);return _0x11c9d2[_0x2e5856(0xbb)]===_0x2e5856(0xa4)?_0x57e36d:_0x57e36d['slice']((_0x11c9d2[_0x2e5856(0xa8)]+'--')['length']);}export function copyManagedSkillDirectory(_0x2f67ac,_0x5c0ecf){const _0x14a7f0=a108_0x57cb60,_0x22d27f=resolve(_0x5c0ecf,METADATA_FILE),_0x153238=existsSync(_0x5c0ecf);if(_0x153238){const _0x195c86=lstatSync(_0x5c0ecf);if(_0x195c86[_0x14a7f0(0xa1)]())throw CliErrors['validation'](_0x14a7f0(0xa7)+_0x5c0ecf);if(!_0x195c86['isDirectory']())throw CliErrors[_0x14a7f0(0x99)](_0x14a7f0(0x93)+_0x5c0ecf);const _0x4c8949=readMetadataIfPresent(_0x22d27f);if(_0x4c8949?.['scope']!=='builtin')throw CliErrors[_0x14a7f0(0x99)]('Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'+_0x5c0ecf);}ensureDirSync(dirname(_0x5c0ecf));const _0x37913a=_0x153238?readMetadataIfPresent(_0x22d27f)?.[_0x14a7f0(0x90)]:undefined,_0x4d7235=readMetadataIfPresent(resolve(_0x2f67ac,METADATA_FILE))?.[_0x14a7f0(0x90)];return _0x153238&&removeSync(_0x5c0ecf),copySkillDirectory(_0x2f67ac,_0x5c0ecf),{'path':_0x5c0ecf,'target':_0x2f67ac,'action':!_0x153238?_0x14a7f0(0xa9):_0x37913a===_0x4d7235?_0x14a7f0(0xa0):_0x14a7f0(0xb6)};}function copySkillDirectory(_0x4ba578,_0x243014){copySync(_0x4ba578,_0x243014,{'dereference':![],'overwrite':!![],'filter'(_0x6585d){const _0x54e568=a108_0x227d;if(lstatSync(_0x6585d)[_0x54e568(0xa1)]())throw CliErrors[_0x54e568(0x99)](_0x54e568(0xb4)+_0x6585d);return!![];}});}
|
|
1
|
+
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 a114_0x490f(){const _0x30e48c=['ignoreMetadataAppCodeMismatch','3926645kBoqNR','isFile','pushedAt','slice','6iVStqI','\x20has\x20scope=\x22','Invalid\x20','string','isDirectory','company','path','21koTkGj','35649211mZqgwm','number','Unable\x20to\x20resolve\x20skillCode\x20from\x20','3JXnPoO','toLowerCase','tags','filter','packageBase64','Skill\x20directory\x20not\x20found:\x20','allowAppCodeRetarget','description','scope','(unknown)','builtin','skillName','ignoreMetadataScope','isSymbolicLink','boolean','replace','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','sourceSessionId','Remote\x20Skill\x20','appCode','ignoreMetadataForPayload','match','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','819699uMSSBi','5496354eOBwPv','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','validation','personal','1566632RUQtZo','dir','refreshedAt','files','\x20name\x20for\x20SkillHub\x20slug\x20generation.','151118qeNecn','4FkLocT','content','targetScope','200bPmYQO','manifest','trim','metadata','12srGkVh','Skill\x20metadata\x20appCode\x20\x22','423274EXUfAs','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','ignoreInvalidMetadata','utf8','ignoreMetadataSkillCode','displayName','startsWith','find','isArray'];a114_0x490f=function(){return _0x30e48c;};return a114_0x490f();}(function(_0x3c635b,_0x3a217a){const _0x30d8c7=a114_0x1dd2,_0x798fb2=_0x3c635b();while(!![]){try{const _0x5e5ac0=parseInt(_0x30d8c7(0x1e8))/0x1*(parseInt(_0x30d8c7(0x214))/0x2)+parseInt(_0x30d8c7(0x200))/0x3*(parseInt(_0x30d8c7(0x20b))/0x4)+-parseInt(_0x30d8c7(0x21e))/0x5*(-parseInt(_0x30d8c7(0x1dd))/0x6)+parseInt(_0x30d8c7(0x1e4))/0x7*(parseInt(_0x30d8c7(0x205))/0x8)+parseInt(_0x30d8c7(0x201))/0x9+-parseInt(_0x30d8c7(0x20e))/0xa*(-parseInt(_0x30d8c7(0x20a))/0xb)+parseInt(_0x30d8c7(0x212))/0xc*(-parseInt(_0x30d8c7(0x1e5))/0xd);if(_0x5e5ac0===_0x3a217a)break;else _0x798fb2['push'](_0x798fb2['shift']());}catch(_0x1a3f80){_0x798fb2['push'](_0x798fb2['shift']());}}}(a114_0x490f,0x678f3));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a114_0x4118e9}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x1f9901,_0x3be3fe,_0x4996ea={}){const _0x26e542=a114_0x1dd2,_0x344d6c=resolvePushDirectoryRoot(_0x1f9901),_0x6cec82=readPushMetadataIfPresent(resolve(_0x344d6c,METADATA_FILE),{'ignoreInvalidMetadata':_0x4996ea[_0x26e542(0x216)]});if(_0x6cec82?.[_0x26e542(0x1fb)]&&_0x6cec82[_0x26e542(0x1fb)]!==_0x3be3fe&&!_0x4996ea[_0x26e542(0x1ee)]&&!_0x4996ea[_0x26e542(0x21d)])throw CliErrors[_0x26e542(0x203)](_0x26e542(0x213)+_0x6cec82[_0x26e542(0x1fb)]+_0x26e542(0x202)+_0x3be3fe+'\x22.');const _0xa0ecf5=resolvePushSkillCode(_0x344d6c,_0x3be3fe,_0x6cec82,_0x4996ea);if(!_0xa0ecf5)throw CliErrors['validation'](_0x26e542(0x1e7)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x344d6c,'skillCode':_0xa0ecf5,'metadata':_0x6cec82};}export function readPushDirectory(_0x36db7a,_0x3cc0d7,_0x459b74={}){const _0x404ae9=a114_0x1dd2,_0x464b3a=resolvePushDirectoryIdentity(_0x36db7a,_0x3cc0d7,_0x459b74),_0x48c016=_0x464b3a[_0x404ae9(0x206)],_0x2a1a52=resolve(_0x48c016,SKILL_FILE);if(!existsSync(_0x2a1a52)||!lstatSync(_0x2a1a52)[_0x404ae9(0x21f)]())throw CliErrors[_0x404ae9(0x203)]('Missing\x20'+SKILL_FILE+':\x20'+_0x2a1a52);const _0x51f463=_0x464b3a[_0x404ae9(0x211)],_0x1aa80e=_0x459b74[_0x404ae9(0x20d)]??_0x404ae9(0x204);if(!_0x459b74[_0x404ae9(0x1f4)]&&_0x51f463?.[_0x404ae9(0x1f0)]===_0x404ae9(0x1f2))throw CliErrors[_0x404ae9(0x203)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x404ae9(0x1de)+_0x51f463[_0x404ae9(0x1f0)]+'\x22.');if(!_0x459b74[_0x404ae9(0x1f4)]&&_0x1aa80e===_0x404ae9(0x204)&&_0x51f463?.[_0x404ae9(0x1f0)]&&_0x51f463[_0x404ae9(0x1f0)]!==_0x404ae9(0x204))throw CliErrors[_0x404ae9(0x203)](_0x404ae9(0x1f8)+METADATA_FILE+_0x404ae9(0x1de)+_0x51f463[_0x404ae9(0x1f0)]+'\x22.',_0x404ae9(0x1ff)+_0x48c016+_0x404ae9(0x215));const _0x1d7618=scanSkillDirectory(_0x48c016),_0x4a75da=buildSkillPackage(_0x1d7618),_0x32af04=readFileSync(_0x2a1a52,_0x404ae9(0x217)),_0x5b926a=_0x464b3a['skillCode'],_0x598e59=_0x459b74[_0x404ae9(0x1fc)]?undefined:_0x51f463,_0x5b20db=readSkillDisplayName(_0x32af04);return{'skillCode':_0x5b926a,'metadata':_0x51f463,'frontmatterDisplayName':_0x5b20db,'input':{'skillCode':_0x5b926a,'skillName':_0x5b20db??_0x598e59?.[_0x404ae9(0x1f3)],'description':_0x598e59?.[_0x404ae9(0x1ef)],'content':_0x32af04,'files':_0x4a75da[_0x404ae9(0x20f)],'packageBase64':_0x4a75da[_0x404ae9(0x1ec)],'tags':_0x598e59?.[_0x404ae9(0x1ea)],'version':_0x598e59?.['version'],'sourceSessionId':_0x598e59?.[_0x404ae9(0x1f9)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x44b836,_0x456dfa,_0x4a566a,_0x1ac183={}){const _0x2f5a16=a114_0x1dd2,_0x4691a9=resolvePushDirectoryRoot(_0x44b836),_0x28f63e=readPushMetadataIfPresent(resolve(_0x4691a9,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x3aba2d=requireRemoteScope(_0x456dfa),_0x5d392c=readLocalSkillContent(_0x4691a9),_0x6be80f={..._0x456dfa,'appCode':_0x456dfa[_0x2f5a16(0x1fb)]??_0x4a566a,'skillName':_0x456dfa[_0x2f5a16(0x1f3)]??_0x28f63e?.[_0x2f5a16(0x1f3)],'description':_0x456dfa[_0x2f5a16(0x1ef)]??_0x28f63e?.[_0x2f5a16(0x1ef)],'tags':Array[_0x2f5a16(0x21c)](_0x456dfa[_0x2f5a16(0x1ea)])?_0x456dfa[_0x2f5a16(0x1ea)]:_0x28f63e?.[_0x2f5a16(0x1ea)],'sourceSessionId':_0x456dfa['sourceSessionId']??_0x28f63e?.[_0x2f5a16(0x1f9)],'content':_0x456dfa[_0x2f5a16(0x20c)]??_0x5d392c},_0x2a2d1c=buildMetadata(_0x6be80f,_0x3aba2d,_0x4a566a,contentHash(_0x5d392c),_0x1ac183[_0x2f5a16(0x207)]);writeJsonAtomic(resolve(_0x4691a9,METADATA_FILE),_0x2a2d1c);}export function recordPushedRuntimeSkill(_0x1dd541,_0x1bcdd2,_0x303875,_0x51b9ba={}){const _0x34a7e8=a114_0x1dd2,_0x5d5db2=resolvePushDirectoryRoot(_0x1dd541),_0x43a36d=scanSkillDirectory(_0x5d5db2),_0x536756=_0x43a36d[_0x34a7e8(0x21b)](_0x31ceed=>_0x31ceed[_0x34a7e8(0x1e3)]===SKILL_FILE),_0x5f17d5=_0x536756?fileText(_0x536756):'',_0x470605=tryNormalizePackageManifest(_0x1bcdd2[_0x34a7e8(0x208)]),_0x6ab69c={..._0x1bcdd2,'content':_0x1bcdd2[_0x34a7e8(0x20c)]??_0x5f17d5,'files':_0x470605},_0x55b988=_0x470605?normalizeLocalFiles(_0x43a36d)[_0x34a7e8(0x1eb)](_0x254cf8=>_0x470605[_0x34a7e8(0x208)]['some'](_0x3fc132=>_0x3fc132[_0x34a7e8(0x1e3)]===_0x254cf8[_0x34a7e8(0x1e3)])):undefined,_0x39b84a=buildMetadata(_0x6ab69c,_0x51b9ba[_0x34a7e8(0x1f0)]??'personal',_0x303875,contentHash(_0x6ab69c['content']??''),_0x51b9ba[_0x34a7e8(0x220)],_0x55b988);writeJsonAtomic(resolve(_0x5d5db2,METADATA_FILE),_0x39b84a);}export function deriveSkillCodeFromDirectory(_0x163214,_0x2a4ab4){const _0x307c95=a114_0x1dd2,_0xcdf64d=basename(resolve(_0x163214)),_0x22a6de=_0x2a4ab4+'--';return _0xcdf64d[_0x307c95(0x21a)](_0x22a6de)?_0xcdf64d[_0x307c95(0x1dc)](_0x22a6de['length']):_0xcdf64d;}function resolvePushSkillCode(_0x45b739,_0xc5a7c4,_0xa1e689,_0x17f6e6){const _0x1202a4=a114_0x1dd2,_0x391f35=deriveSkillCodeFromSkillFile(_0x45b739)||deriveSkillCodeFromDirectory(_0x45b739,_0xc5a7c4);if(_0x17f6e6[_0x1202a4(0x218)])return _0x391f35;return _0xa1e689?.[_0x1202a4(0x1fe)]?.[_0x1202a4(0x210)]()||_0x391f35;}function deriveSkillCodeFromSkillFile(_0x23268d){const _0x1ee337=a114_0x1dd2,_0x56787d=resolve(_0x23268d,SKILL_FILE);if(!existsSync(_0x56787d)||!lstatSync(_0x56787d)[_0x1ee337(0x21f)]())return undefined;const _0x4712a0=readFileSync(_0x56787d,_0x1ee337(0x217)),_0x2e7581=_0x4712a0[_0x1ee337(0x1fd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2e7581)return undefined;const _0x49dc72=parseFrontmatterObject(_0x2e7581[0x1]??''),_0x4d4433=scalarToString(_0x49dc72?.['name']);return _0x4d4433?slugifySkillName(_0x4d4433):undefined;}function readSkillDisplayName(_0x210bde){const _0x1b2770=a114_0x1dd2,_0x1d0d2a=_0x210bde[_0x1b2770(0x1fd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1d0d2a)return undefined;const _0x1527ff=parseFrontmatterObject(_0x1d0d2a[0x1]??'');return scalarToString(_0x1527ff?.[_0x1b2770(0x219)]);}function slugifySkillName(_0x5ef4cd){const _0x53dfb8=a114_0x1dd2,_0x447f30=_0x5ef4cd[_0x53dfb8(0x210)]()[_0x53dfb8(0x1e9)]()[_0x53dfb8(0x1f7)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0x53dfb8(0x1f7)](/-+$/,'')[_0x53dfb8(0x1f7)](/-{2,}/g,'-');if(!_0x447f30)throw CliErrors['validation'](_0x53dfb8(0x1df)+SKILL_FILE+_0x53dfb8(0x209));return _0x447f30;}function parseFrontmatterObject(_0x1525d8){const _0xc55459=a114_0x1dd2;try{const _0x4acddd=a114_0x4118e9(_0x1525d8);return _0x4acddd&&typeof _0x4acddd==='object'&&!Array[_0xc55459(0x21c)](_0x4acddd)?_0x4acddd:undefined;}catch{return undefined;}}function scalarToString(_0x39cf2f){const _0x171270=a114_0x1dd2;if(typeof _0x39cf2f===_0x171270(0x1e0))return _0x39cf2f[_0x171270(0x210)]();if(typeof _0x39cf2f===_0x171270(0x1e6)||typeof _0x39cf2f===_0x171270(0x1f6))return String(_0x39cf2f);return undefined;}function a114_0x1dd2(_0x18552a,_0x18889b){_0x18552a=_0x18552a-0x1dc;const _0x490f71=a114_0x490f();let _0x1dd2de=_0x490f71[_0x18552a];return _0x1dd2de;}function resolvePushDirectoryRoot(_0x2818ec){const _0xced2c9=a114_0x1dd2,_0x39cfd7=resolve(_0x2818ec);if(!existsSync(_0x39cfd7))throw CliErrors[_0xced2c9(0x203)](_0xced2c9(0x1ed)+_0x2818ec);const _0xf57bc4=lstatSync(_0x39cfd7);if(_0xf57bc4[_0xced2c9(0x1e1)]())return _0x39cfd7;if(_0xf57bc4[_0xced2c9(0x1f5)]()){const _0x52d3d5=realpathSync(_0x39cfd7);if(lstatSync(_0x52d3d5)[_0xced2c9(0x1e1)]())return _0x52d3d5;}throw CliErrors[_0xced2c9(0x203)](_0xced2c9(0x1ed)+_0x2818ec);}function requireRemoteScope(_0x393717){const _0x271080=a114_0x1dd2;if(_0x393717['scope']===_0x271080(0x204)||_0x393717[_0x271080(0x1f0)]===_0x271080(0x1e2)||_0x393717[_0x271080(0x1f0)]===_0x271080(0x1f2))return _0x393717[_0x271080(0x1f0)];throw CliErrors[_0x271080(0x203)](_0x271080(0x1fa)+(_0x393717[_0x271080(0x1fe)]||_0x271080(0x1f1))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x393717[_0x271080(0x1f0)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x8c7b5c){const _0x87fe67=resolve(_0x8c7b5c,SKILL_FILE);return existsSync(_0x87fe67)&&lstatSync(_0x87fe67)['isFile']()?readFileSync(_0x87fe67,'utf8'):'';}function readPushMetadataIfPresent(_0x4b32b0,_0x20d2d7={}){const _0x2a2e86=a114_0x1dd2;try{return readMetadataIfPresent(_0x4b32b0);}catch(_0xe4a3ea){if(_0x20d2d7[_0x2a2e86(0x216)])return undefined;throw _0xe4a3ea;}}
|
|
1
|
+
(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
|
-
(function(
|
|
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
|
-
|
|
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()});
|