@lovrabet/lovrabet-cli 2.1.22 → 2.1.23-beta.2
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.d.ts +4 -8
- 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.d.ts +1 -16
- 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.d.ts +2 -2
- 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.d.ts +4 -8
- 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.d.ts +6 -24
- 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.d.ts +7 -0
- 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/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/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.d.ts +5 -5
- 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/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.d.ts +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.d.ts +2 -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(_0x4ccdc4,_0x2b09de){const _0x13c190=a113_0x1e3e,_0x20abd4=_0x4ccdc4();while(!![]){try{const _0x5677db=-parseInt(_0x13c190(0x144))/0x1+-parseInt(_0x13c190(0x160))/0x2*(parseInt(_0x13c190(0x149))/0x3)+parseInt(_0x13c190(0x14f))/0x4+-parseInt(_0x13c190(0x13a))/0x5+parseInt(_0x13c190(0x15c))/0x6*(parseInt(_0x13c190(0x166))/0x7)+parseInt(_0x13c190(0x13b))/0x8*(parseInt(_0x13c190(0x15a))/0x9)+parseInt(_0x13c190(0x15b))/0xa*(-parseInt(_0x13c190(0x146))/0xb);if(_0x5677db===_0x2b09de)break;else _0x20abd4['push'](_0x20abd4['shift']());}catch(_0x417164){_0x20abd4['push'](_0x20abd4['shift']());}}}(a113_0x1adb,0xc8808));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(_0xc577f8){const _0x56ff62=a113_0x1e3e;return _0xc577f8['bytes']??Buffer['from'](_0xc577f8[_0x56ff62(0x13e)]??'',_0x56ff62(0x154));}function a113_0x1adb(){const _0x5c7b41=['split','isArray','size','isDirectory','98624erDaPY','isSymbolicLink','803GDcdnC','test','length','89703BwmQfc','set','toLowerCase','from','Duplicate\x20Skill\x20file\x20path:\x20','isSafeInteger','2428016ZoZKCW','compare','sort','push','object','utf8','has','bytes','path','trim','isBuffer','621TZAaWJ','24820mSZhDB','12wrWgZy','startsWith','string','validation','14ZKoluC','toString','isFile','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','name','values','2768339JzfPpK','Unsafe\x20Skill\x20file\x20path:\x20','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','7344480hevurV','160152WlvSvy','replace','Skill\x20file\x20path\x20must\x20be\x20text.','content','includes'];a113_0x1adb=function(){return _0x5c7b41;};return a113_0x1adb();}export function fileText(_0x5f3884){const _0x30808d=a113_0x1e3e;return fileContent(_0x5f3884)[_0x30808d(0x161)](_0x30808d(0x154));}function a113_0x1e3e(_0x197953,_0x381b28){_0x197953=_0x197953-0x13a;const _0x1adb48=a113_0x1adb();let _0x1e3ef1=_0x1adb48[_0x197953];return _0x1e3ef1;}export function normalizeLocalFiles(_0x23d2f0){const _0xcf875f=a113_0x1e3e;if(!Array[_0xcf875f(0x141)](_0x23d2f0)||_0x23d2f0[_0xcf875f(0x148)]===0x0)return[];const _0x196736=new Map();for(const _0x27a24f of _0x23d2f0){if(!_0x27a24f||typeof _0x27a24f!==_0xcf875f(0x153)||typeof _0x27a24f[_0xcf875f(0x157)]!==_0xcf875f(0x15e))throw CliErrors[_0xcf875f(0x15f)](_0xcf875f(0x13d));const _0x51b0a4=normalizeSkillRelativePath(_0x27a24f[_0xcf875f(0x157)]);if(_0x196736[_0xcf875f(0x155)](_0x51b0a4))throw CliErrors[_0xcf875f(0x15f)](_0xcf875f(0x14d)+_0x51b0a4);if(_0x27a24f[_0xcf875f(0x156)]!==undefined&&!Buffer[_0xcf875f(0x159)](_0x27a24f[_0xcf875f(0x156)]))throw CliErrors[_0xcf875f(0x15f)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x51b0a4);if(_0x27a24f[_0xcf875f(0x156)]===undefined&&typeof _0x27a24f['content']!==_0xcf875f(0x15e))throw CliErrors['validation'](_0xcf875f(0x168)+_0x51b0a4);const _0x1b6581=fileContent(_0x27a24f);_0x196736[_0xcf875f(0x14a)](_0x51b0a4,{'path':_0x51b0a4,'bytes':_0x1b6581});}return Array[_0xcf875f(0x14c)](_0x196736[_0xcf875f(0x165)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x5668a5){const _0x574e91=a113_0x1e3e;if(!Array[_0x574e91(0x141)](_0x5668a5)||_0x5668a5[_0x574e91(0x148)]===0x0)return[];const _0x1f6032=new Map();for(const _0x14a66e of _0x5668a5){if(!_0x14a66e||typeof _0x14a66e!==_0x574e91(0x153)||typeof _0x14a66e['path']!==_0x574e91(0x15e))throw CliErrors[_0x574e91(0x15f)](_0x574e91(0x13d));const _0x4fe50c=normalizeSkillRelativePath(_0x14a66e[_0x574e91(0x157)]);if(_0x1f6032[_0x574e91(0x155)](_0x4fe50c))throw CliErrors[_0x574e91(0x15f)](_0x574e91(0x14d)+_0x4fe50c);if(!isSha256Hex(_0x14a66e['sha256']))throw CliErrors[_0x574e91(0x15f)]('Skill\x20file\x20sha256\x20is\x20invalid:\x20'+_0x4fe50c);if(!Number[_0x574e91(0x14e)](_0x14a66e[_0x574e91(0x142)])||_0x14a66e[_0x574e91(0x142)]<0x0)throw CliErrors['validation']('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x4fe50c);_0x1f6032['set'](_0x4fe50c,{'path':_0x4fe50c,'sha256':_0x14a66e['sha256'][_0x574e91(0x14b)](),'size':_0x14a66e[_0x574e91(0x142)]});}return Array[_0x574e91(0x14c)](_0x1f6032[_0x574e91(0x165)]())[_0x574e91(0x151)](compareSkillFiles);}export function scanSkillDirectory(_0x53276e){const _0x1b1578=realpathSync(_0x53276e),_0x5e16af=[];function _0x50e0c1(_0x1ddea8){const _0xa657a9=a113_0x1e3e,_0x53b302=readdirSync(_0x1ddea8,{'withFileTypes':!![]})[_0xa657a9(0x151)]((_0x1bea69,_0x2e4e3b)=>_0x1bea69[_0xa657a9(0x164)]['localeCompare'](_0x2e4e3b[_0xa657a9(0x164)]));for(const _0xe94968 of _0x53b302){if(_0xe94968[_0xa657a9(0x143)]()&&IGNORED_DIR_NAMES[_0xa657a9(0x155)](_0xe94968[_0xa657a9(0x164)]))continue;if(IGNORED_FILE_NAMES['has'](_0xe94968['name']))continue;const _0x522e41=resolve(_0x1ddea8,_0xe94968[_0xa657a9(0x164)]);if(_0xe94968[_0xa657a9(0x145)]())throw CliErrors[_0xa657a9(0x15f)](_0xa657a9(0x163)+_0x522e41);const _0xc4146b=toPosixPath(relative(_0x1b1578,_0x522e41));if(_0xe94968[_0xa657a9(0x143)]()){_0x50e0c1(_0x522e41);continue;}if(!_0xe94968[_0xa657a9(0x162)]())continue;validateSkillRelativePath(_0xc4146b);const _0x5912f6=readFileSync(_0x522e41);_0x5e16af[_0xa657a9(0x152)]({'path':_0xc4146b,'bytes':_0x5912f6});}}return _0x50e0c1(_0x1b1578),normalizeLocalFiles(_0x5e16af);}export function compareSkillFiles(_0x2800f4,_0x50b437){const _0x5bbbd4=a113_0x1e3e;if(_0x2800f4[_0x5bbbd4(0x157)]===SKILL_FILE)return _0x50b437['path']===SKILL_FILE?0x0:-0x1;if(_0x50b437[_0x5bbbd4(0x157)]===SKILL_FILE)return 0x1;return Buffer[_0x5bbbd4(0x150)](Buffer[_0x5bbbd4(0x14c)](_0x2800f4[_0x5bbbd4(0x157)],_0x5bbbd4(0x154)),Buffer[_0x5bbbd4(0x14c)](_0x50b437[_0x5bbbd4(0x157)],_0x5bbbd4(0x154)));}export function normalizeSkillRelativePath(_0x39c470){const _0x56d6c8=a113_0x1e3e,_0x4f8638=toPosixPath(_0x39c470[_0x56d6c8(0x158)]());return validateSkillRelativePath(_0x4f8638),_0x4f8638;}export function validateSkillRelativePath(_0x4ee745){const _0x56f696=a113_0x1e3e;if(!_0x4ee745||_0x4ee745[_0x56f696(0x15d)]('/')||_0x4ee745[_0x56f696(0x13f)]('//'))throw CliErrors[_0x56f696(0x15f)](_0x56f696(0x167)+_0x4ee745);for(const _0x258a89 of _0x4ee745[_0x56f696(0x140)]('/')){if(!_0x258a89||_0x258a89==='.'||_0x258a89==='..')throw CliErrors['validation']('Unsafe\x20Skill\x20file\x20path:\x20'+_0x4ee745);}}export function toPosixPath(_0x173870){const _0xb0940c=a113_0x1e3e;return _0x173870[_0xb0940c(0x13c)](/\\/g,'/');}export function isSha256Hex(_0x34a0ae){const _0x40df63=a113_0x1e3e;return typeof _0x34a0ae==='string'&&/^[a-fA-F0-9]{64}$/[_0x40df63(0x147)](_0x34a0ae);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2286ce,_0x2fc36a){const _0x433f9e=a114_0x355b,_0x60d088=_0x2286ce();while(!![]){try{const _0x58ec7c=parseInt(_0x433f9e(0x16d))/0x1*(-parseInt(_0x433f9e(0x151))/0x2)+parseInt(_0x433f9e(0x13d))/0x3*(parseInt(_0x433f9e(0x16a))/0x4)+parseInt(_0x433f9e(0x15c))/0x5+parseInt(_0x433f9e(0x16f))/0x6+-parseInt(_0x433f9e(0x13b))/0x7+parseInt(_0x433f9e(0x140))/0x8+-parseInt(_0x433f9e(0x16e))/0x9;if(_0x58ec7c===_0x2fc36a)break;else _0x60d088['push'](_0x60d088['shift']());}catch(_0x19f77f){_0x60d088['push'](_0x60d088['shift']());}}}(a114_0x3d4f,0x608c0));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x251e87,_0x5666bb,_0x29311e){const _0x3eb5fa=a114_0x355b,_0xd83eb5=requireSkillCode(_0x251e87),_0x2d3b3e=requirePackageBytes(_0xd83eb5,_0x29311e[_0x3eb5fa(0x146)]),_0x4c9b37=extractDownloadedPackage(_0x2d3b3e),_0x1c090f=_0x4c9b37[_0x3eb5fa(0x15f)](_0x375dad=>_0x375dad['path']===SKILL_FILE);if(!_0x1c090f)throw CliErrors['validation'](_0x3eb5fa(0x15d)+SKILL_FILE+':\x20'+_0xd83eb5);const _0xbfba7a=withMaterializedSkillFrontmatter(_0x4c9b37,_0x251e87,_0xd83eb5),_0x481538=_0xbfba7a[_0x3eb5fa(0x15f)](_0x530e6a=>_0x530e6a[_0x3eb5fa(0x168)]===SKILL_FILE),_0x433b2f=fileText(_0x481538),_0x30de54=getRuntimeSkillDir(_0x29311e['env'],_0x29311e[_0x3eb5fa(0x148)],_0x29311e[_0x3eb5fa(0x144)],_0x5666bb,_0xd83eb5,_0x29311e[_0x3eb5fa(0x166)]),_0x3fbc39=resolve(_0x30de54,SKILL_FILE),_0x458299=resolve(_0x30de54,METADATA_FILE),_0xcca2ab=contentHash(_0x433b2f),_0x4d6e3b=readMetadataIfPresent(_0x458299)?.[_0x3eb5fa(0x155)];ensurePulledFilesCanBeOverwritten(_0x30de54,_0x458299,_0xbfba7a,_0x29311e[_0x3eb5fa(0x159)]===!![]),mkdirSync(_0x30de54,{'recursive':!![],'mode':0x1c0});const _0x522e4b=existsSync(_0x3fbc39)?readFileSync(_0x3fbc39,_0x3eb5fa(0x14e)):undefined;return materializeFiles(_0x30de54,_0xbfba7a),removeStaleManagedFiles(_0x30de54,_0x4d6e3b,_0xbfba7a),writeJsonAtomic(_0x458299,buildMetadata(_0x251e87,_0x5666bb,_0x29311e[_0x3eb5fa(0x144)],_0xcca2ab,_0x29311e[_0x3eb5fa(0x14f)],_0xbfba7a,_0x2d3b3e)),{'skill':_0x251e87,'scope':_0x5666bb,'dir':_0x30de54,'skillMdPath':_0x3fbc39,'metadataPath':_0x458299,'contentHash':_0xcca2ab,'changed':_0x522e4b!==_0x433b2f};}function withMaterializedSkillFrontmatter(_0x5fd946,_0x5d7fb7,_0x385c66){const _0x371c18=a114_0x355b,_0x5302c5=skillDisplayName(_0x5d7fb7,_0x385c66),_0x3126ca=_0x5d7fb7[_0x371c18(0x169)]?.['trim']()||_0x5302c5||_0x385c66;return normalizeLocalFiles(_0x5fd946)[_0x371c18(0x154)](_0x568901=>{const _0x1a2a85=_0x371c18,_0x137a9b=fileText(_0x568901);if(_0x568901['path']!==SKILL_FILE)return _0x568901;if(hasYamlFrontmatter(_0x137a9b))return{'path':_0x568901[_0x1a2a85(0x168)],'content':withSyncedDisplayName(_0x137a9b,_0x5302c5)};return{'path':_0x568901['path'],'content':prependSkillFrontmatter(_0x137a9b,{'name':_0x385c66,'displayName':_0x5302c5,'description':_0x3126ca})};});}function hasYamlFrontmatter(_0x2f4753){const _0x3a201c=a114_0x355b;return/^\uFEFF?---\s*\r?\n/[_0x3a201c(0x160)](_0x2f4753);}function a114_0x355b(_0x1202f2,_0x1a5d60){_0x1202f2=_0x1202f2-0x13b;const _0x3d4fdf=a114_0x3d4f();let _0x355b97=_0x3d4fdf[_0x1202f2];return _0x355b97;}function prependSkillFrontmatter(_0x9a0d86,_0x5d069c){const _0x59834a=a114_0x355b,_0xb20360=_0x9a0d86['replace'](/^\uFEFF/,'');return[_0x59834a(0x14b),'name:\x20'+yamlString(_0x5d069c[_0x59834a(0x156)]),_0x5d069c[_0x59834a(0x152)]?_0x59834a(0x13c)+yamlString(_0x5d069c[_0x59834a(0x152)]):undefined,_0x59834a(0x147)+yamlString(_0x5d069c['description']),_0x59834a(0x14b),'',_0xb20360][_0x59834a(0x15e)](_0x6de432=>_0x6de432!==undefined)[_0x59834a(0x143)]('\x0a');}function a114_0x3d4f(){const _0x108f11=['3034157zhIRQT','displayName:\x20','510171MukEje','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','validation','6211968eWhrQv','.\x20Changed\x20file:\x20','slice','join','appCode','length','packageBytes','description:\x20','accessKey','match','contentHash','---','errors','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','utf8','pulledAt','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','230pqadIu','displayName','contents','map','fileHashes','name','flow','replace','force','trimEnd','keys','3491655QhYCCO','Runtime\x20Skill\x20package\x20is\x20missing\x20','filter','find','test','has','trim','isFile','stringify','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','paths','\x0a---\x0a\x0a','path','description','8UmRWum','entries','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','2449QfEElD','13178466VUEaDA','4559250LFyyes'];a114_0x3d4f=function(){return _0x108f11;};return a114_0x3d4f();}function yamlString(_0x3d9689){const _0x2898a9=a114_0x355b;return JSON[_0x2898a9(0x164)](_0x3d9689[_0x2898a9(0x158)](/\r/g,'')[_0x2898a9(0x162)]());}function skillDisplayName(_0x11b901,_0x28e273){const _0x338c1b=a114_0x355b,_0x4c928c=_0x11b901['skillName']?.[_0x338c1b(0x162)]();return _0x4c928c||_0x28e273;}function withSyncedDisplayName(_0x566a36,_0x5c11fc){const _0x176cbe=a114_0x355b,_0x3052b1=_0x566a36[_0x176cbe(0x149)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3052b1)return _0x566a36;const _0x1d8a7c=_0x3052b1[0x1]??'',_0x48e7e7=_0x3052b1[0x2]??'',_0xb2490a=parseDocument(_0x48e7e7);if(_0xb2490a[_0x176cbe(0x14c)][_0x176cbe(0x145)]>0x0||!isMap(_0xb2490a[_0x176cbe(0x153)]))return _0x566a36;if(_0x5c11fc)_0xb2490a['set']('displayName',_0x5c11fc);else{if(_0xb2490a[_0x176cbe(0x161)](_0x176cbe(0x152)))_0xb2490a['delete'](_0x176cbe(0x152));else return _0x566a36;}forceBlockCollections(_0xb2490a[_0x176cbe(0x153)]);const _0x2d178e=_0xb2490a['toString']({'lineWidth':0x0})[_0x176cbe(0x15a)](),_0x591d75=_0x566a36[_0x176cbe(0x142)](_0x3052b1[0x0][_0x176cbe(0x145)])[_0x176cbe(0x158)](/^\r?\n/,'');return _0x1d8a7c+'---\x0a'+_0x2d178e+_0x176cbe(0x167)+_0x591d75;}function forceBlockCollections(_0x102868){if(!isNode(_0x102868))return;visit(_0x102868,(_0xd0b7c3,_0x59621d)=>{const _0x37bcd4=a114_0x355b;isCollection(_0x59621d)&&(_0x59621d[_0x37bcd4(0x157)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x337ed4,_0x2ec649,_0x252ca9,_0x2d3344){const _0x130b4c=a114_0x355b;if(_0x2d3344||!existsSync(_0x2ec649))return;const _0x55151f=readMetadataIfPresent(_0x2ec649);if(!_0x55151f)return;const _0x30958a=_0x55151f[_0x130b4c(0x155)]&&Object['keys'](_0x55151f[_0x130b4c(0x155)])[_0x130b4c(0x145)]>0x0?_0x55151f[_0x130b4c(0x155)]:undefined;if(_0x30958a)for(const [_0x59f424,_0x2e2545]of Object[_0x130b4c(0x16b)](_0x30958a)){const _0xd26362=resolveManagedFilePath(_0x337ed4,_0x59f424);if(!existsSync(_0xd26362))throw CliErrors[_0x130b4c(0x13f)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x337ed4,'Managed\x20file\x20was\x20removed\x20locally:\x20'+_0x59f424);const _0x31086e=lstatSync(_0xd26362);if(!_0x31086e[_0x130b4c(0x163)]())throw CliErrors[_0x130b4c(0x13f)](_0x130b4c(0x14d)+_0x337ed4,_0x130b4c(0x13e)+_0x59f424);const _0xa1c8b3=bufferSha256(readFileSync(_0xd26362));if(_0xa1c8b3!==_0x2e2545)throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x337ed4+_0x130b4c(0x141)+_0x59f424,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x59f424);}else{const _0x4c8c02=resolve(_0x337ed4,SKILL_FILE);if(existsSync(_0x4c8c02)&&_0x55151f[_0x130b4c(0x14a)]){const _0x36453c=contentHash(readFileSync(_0x4c8c02,'utf8'));if(_0x36453c!==_0x55151f[_0x130b4c(0x14a)])throw CliErrors[_0x130b4c(0x13f)](_0x130b4c(0x16c)+_0x4c8c02,_0x130b4c(0x150));}}for(const _0x379773 of normalizeLocalFiles(_0x252ca9)){if(_0x30958a?.[_0x379773['path']])continue;if(!_0x30958a&&_0x379773[_0x130b4c(0x168)]===SKILL_FILE)continue;const _0x143ecb=resolveManagedFilePath(_0x337ed4,_0x379773[_0x130b4c(0x168)]);if(!existsSync(_0x143ecb))continue;const _0x48218d=lstatSync(_0x143ecb);if(!_0x48218d[_0x130b4c(0x163)]())throw CliErrors['validation'](_0x130b4c(0x14d)+_0x337ed4,'Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20'+_0x379773[_0x130b4c(0x168)]);const _0x4f9557=bufferSha256(readFileSync(_0x143ecb));if(_0x4f9557!==fileHash(_0x379773))throw CliErrors[_0x130b4c(0x13f)](_0x130b4c(0x14d)+_0x337ed4,_0x130b4c(0x165)+_0x379773['path']);}}function materializeFiles(_0x9176fc,_0x26565f){const _0x94064=a114_0x355b;for(const _0xe82021 of normalizeLocalFiles(_0x26565f)){const _0x1a2b69=resolveManagedFilePath(_0x9176fc,_0xe82021[_0x94064(0x168)]);mkdirSync(dirname(_0x1a2b69),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x1a2b69,fileContent(_0xe82021),0x180);}}function removeStaleManagedFiles(_0x352bdd,_0x8ec83e,_0x59ded6){const _0x225757=a114_0x355b;if(!_0x8ec83e)return;const _0x1e8091=new Set(normalizeLocalFiles(_0x59ded6)[_0x225757(0x154)](_0x191933=>_0x191933['path']));for(const _0x328907 of Object[_0x225757(0x15b)](_0x8ec83e)){if(_0x1e8091[_0x225757(0x161)](_0x328907))continue;const _0x5c7cec=resolveManagedFilePath(_0x352bdd,_0x328907);existsSync(_0x5c7cec)&&lstatSync(_0x5c7cec)[_0x225757(0x163)]()&&rmSync(_0x5c7cec,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc5077d,_0x146d15){const _0x92cae6=a115_0x20cd,_0x14a6e7=_0xc5077d();while(!![]){try{const _0x482565=-parseInt(_0x92cae6(0xe9))/0x1+-parseInt(_0x92cae6(0xcc))/0x2*(parseInt(_0x92cae6(0xd2))/0x3)+-parseInt(_0x92cae6(0xe5))/0x4+-parseInt(_0x92cae6(0xd4))/0x5*(parseInt(_0x92cae6(0xd3))/0x6)+parseInt(_0x92cae6(0xda))/0x7+-parseInt(_0x92cae6(0xcd))/0x8*(-parseInt(_0x92cae6(0xce))/0x9)+-parseInt(_0x92cae6(0xc9))/0xa*(-parseInt(_0x92cae6(0xd9))/0xb);if(_0x482565===_0x146d15)break;else _0x14a6e7['push'](_0x14a6e7['shift']());}catch(_0x1fa890){_0x14a6e7['push'](_0x14a6e7['shift']());}}}(a115_0x8f7a,0xdf115));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';function a115_0x8f7a(){const _0x4844db=['zipSha256','userId','isArray','hasUpstreamUpdate','string','2190468kcmZxN','Runtime\x20Skill\x20is\x20missing\x20skillCode.','object','Invalid\x20','1141604BRCZta','zipSize','manifest','ossPath','skillCode','220BHwbGy','skillName','tags','2BbnrhQ','756696lKRWBn','54vurRwt','length','sourceSessionId','map','2073021AjBBUF','18wnKpbg','2418835Ixklmr','personal','trim','utf8','tenantCode','1268597kXqfHO','11483486sEAFmi','files','forkedFromVersion','fromEntries','readonly','parse'];a115_0x8f7a=function(){return _0x4844db;};return a115_0x8f7a();}import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';function a115_0x20cd(_0x5110c9,_0x504abd){_0x5110c9=_0x5110c9-0xc8;const _0x8f7a9d=a115_0x8f7a();let _0x20cda7=_0x8f7a9d[_0x5110c9];return _0x20cda7;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x1a5432,_0x272411,_0x4b2df1,_0x45e84a,_0x1bada5,_0x125203,_0x4cbc61){const _0x234ca5=a115_0x20cd,_0x2be9e7=_0x125203?normalizeLocalFiles(_0x125203):[],_0x1dadf4=!_0x4cbc61&&_0x2be9e7[_0x234ca5(0xcf)]>0x0?buildSkillPackage(_0x2be9e7):undefined,_0x405465=_0x4cbc61?bufferSha256(_0x4cbc61):_0x1dadf4?.['manifest'][_0x234ca5(0xe0)],_0x30e1b3=_0x4cbc61?.[_0x234ca5(0xcf)]??_0x1dadf4?.[_0x234ca5(0xeb)][_0x234ca5(0xea)],_0x201311=_0x2be9e7[_0x234ca5(0xcf)]>0x0?Object[_0x234ca5(0xdd)](_0x2be9e7[_0x234ca5(0xd1)](_0x445b67=>[_0x445b67['path'],fileHash(_0x445b67)])):undefined;return{'schemaVersion':_0x2be9e7[_0x234ca5(0xcf)]>0x0?0x2:0x1,'id':_0x1a5432['id'],'appCode':_0x4b2df1,'skillCode':requireSkillCode(_0x1a5432),'skillName':_0x1a5432[_0x234ca5(0xca)],'description':_0x1a5432['description'],'scope':_0x272411,'readonly':_0x272411!==_0x234ca5(0xd5)||_0x1a5432[_0x234ca5(0xde)]===!![],'tenantCode':_0x1a5432[_0x234ca5(0xd8)],'userId':_0x1a5432[_0x234ca5(0xe1)],'version':_0x1a5432['version'],'status':_0x1a5432['status'],'tags':Array[_0x234ca5(0xe2)](_0x1a5432[_0x234ca5(0xcb)])?_0x1a5432[_0x234ca5(0xcb)]:[],'hasUpstreamUpdate':_0x1a5432[_0x234ca5(0xe3)],'forkedFromSkillId':_0x1a5432['forkedFromSkillId'],'forkedFromVersion':_0x1a5432[_0x234ca5(0xdc)],'sourceSessionId':_0x1a5432[_0x234ca5(0xd0)],'contentHash':_0x45e84a,'fileHashes':_0x201311,'treeHash':_0x2be9e7[_0x234ca5(0xcf)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x2be9e7)):undefined,'ossPath':remoteManifestOssPath(_0x1a5432[_0x234ca5(0xdb)]),'zipSha256':_0x405465,'zipSize':_0x30e1b3,'files':_0x2be9e7[_0x234ca5(0xcf)]>0x0?_0x2be9e7[_0x234ca5(0xd1)](_0x213cdc=>({'path':_0x213cdc['path'],'hash':fileHash(_0x213cdc),'size':fileContent(_0x213cdc)['length']})):undefined,'pulledAt':_0x1bada5??new Date()['toISOString']()};}export function requireSkillCode(_0x28cafa){const _0xee2dd0=a115_0x20cd,_0x47e193=_0x28cafa[_0xee2dd0(0xc8)]?.['trim']();if(!_0x47e193)throw CliErrors['validation'](_0xee2dd0(0xe6));return _0x47e193;}export function readMetadataIfPresent(_0x36d64a){const _0x5b4956=a115_0x20cd;if(!existsSync(_0x36d64a))return undefined;try{const _0x1681c5=JSON[_0x5b4956(0xdf)](readFileSync(_0x36d64a,_0x5b4956(0xd7)));return _0x1681c5;}catch{throw CliErrors['validation'](_0x5b4956(0xe8)+METADATA_FILE+':\x20'+_0x36d64a);}}function remoteManifestOssPath(_0x2ff472){const _0x2a4da6=a115_0x20cd;if(!_0x2ff472||typeof _0x2ff472!==_0x2a4da6(0xe7)||Array[_0x2a4da6(0xe2)](_0x2ff472))return undefined;const _0x2534cd=_0x2ff472[_0x2a4da6(0xec)];return typeof _0x2534cd===_0x2a4da6(0xe4)&&_0x2534cd[_0x2a4da6(0xd6)]()?_0x2534cd[_0x2a4da6(0xd6)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x15ae89=a116_0x4c70;(function(_0x1dab00,_0x465d3f){const _0x20a6b5=a116_0x4c70,_0x31cff6=_0x1dab00();while(!![]){try{const _0x23a6d6=parseInt(_0x20a6b5(0xff))/0x1+-parseInt(_0x20a6b5(0xea))/0x2+-parseInt(_0x20a6b5(0x103))/0x3+-parseInt(_0x20a6b5(0xf5))/0x4+parseInt(_0x20a6b5(0xfa))/0x5*(parseInt(_0x20a6b5(0xfd))/0x6)+parseInt(_0x20a6b5(0xeb))/0x7+parseInt(_0x20a6b5(0xf1))/0x8;if(_0x23a6d6===_0x465d3f)break;else _0x31cff6['push'](_0x31cff6['shift']());}catch(_0x4dfb71){_0x31cff6['push'](_0x31cff6['shift']());}}}(a116_0x5152,0xd575b));import{existsSync}from'node:fs';function a116_0x4c70(_0x4fa889,_0x1bea9f){_0x4fa889=_0x4fa889-0xea;const _0x515276=a116_0x5152();let _0x4c70f8=_0x515276[_0x4fa889];return _0x4c70f8;}import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x4107f9={}){const _0x3dbab5=a116_0x4c70,_0x5a6f2e=_0x4107f9[_0x3dbab5(0xfb)]??homedir(),_0x545165=resolve(_0x5a6f2e,PRODUCT_CONFIG[_0x3dbab5(0x105)],_0x3dbab5(0x106)),_0x5cac10=trimmedEnv(_0x3dbab5(0xf0)),_0x576355=trimmedEnv(_0x3dbab5(0xfc)),_0x42a72f=resolve(_0x5a6f2e,'.workbuddy'),_0x100e74=_0x4107f9[_0x3dbab5(0x101)]??(existsSync(_0x42a72f)?resolve(_0x42a72f,'skills'):undefined);return{'homeDir':_0x5a6f2e,'cacheRoot':_0x545165,'managedRoot':resolve(_0x5a6f2e,PRODUCT_CONFIG[_0x3dbab5(0x105)]),'agentsSkillsDir':_0x4107f9['agentsSkillsDir']??_0x5cac10??resolve(_0x5a6f2e,_0x3dbab5(0xf6),_0x3dbab5(0xec)),'claudeSkillsDir':_0x4107f9[_0x3dbab5(0xf2)]??_0x576355??resolve(_0x5a6f2e,_0x3dbab5(0x102),'skills'),'workbuddySkillsDir':_0x100e74};}export function runtimeAgentSkillRoots(_0xc33117){const _0x319451=a116_0x4c70;return[_0xc33117[_0x319451(0x100)],_0xc33117[_0x319451(0xf2)],_0xc33117[_0x319451(0x101)]][_0x319451(0xf7)](_0x317e9b=>Boolean(_0x317e9b));}export function getRuntimeSkillCacheRoot(_0x1d9d21,_0x55c98e,_0x5066d5={}){const _0x801095=a116_0x4c70,_0x473d63=resolveSkillSyncPaths(_0x5066d5);return resolve(_0x473d63[_0x801095(0xf9)],_0x1d9d21,fingerprintAccessKey(_0x55c98e),'skills');}export function getRuntimeSkillDir(_0x5eabff,_0x2e8ecc,_0x35a6d5,_0x5effe7,_0x1ef17c,_0x503315={}){const _0x5083b3=a116_0x4c70;return resolve(getRuntimeSkillCacheRoot(_0x5eabff,_0x2e8ecc,_0x503315),safePathSegment(_0x35a6d5,_0x5083b3(0xef)),_0x5effe7,safePathSegment(_0x1ef17c,_0x5083b3(0xfe)));}function a116_0x5152(){const _0x2660f4=['22355120jvDpKR','claudeSkillsDir','trim','includes','4020848fOUvyW','.agents','filter','path\x20segment','cacheRoot','105bdDpJM','homeDir','CLAUDE_SKILL_ROOT','62166MtcXqP','skillCode','716960KjPUyU','agentsSkillsDir','workbuddySkillsDir','.claude','5211360iFxFLx','Unsafe\x20','homeDirName','cache','2527824jsiYHZ','8061508NnbUVq','skills','validation','\x20for\x20local\x20path:\x20','appCode','SKILL_ROOT'];a116_0x5152=function(){return _0x2660f4;};return a116_0x5152();}export function safePathSegment(_0x3d716b,_0x373914=a116_0x15ae89(0xf8)){const _0x4d4e5d=a116_0x15ae89;if(!_0x3d716b||_0x3d716b[_0x4d4e5d(0xf4)]('/')||_0x3d716b[_0x4d4e5d(0xf4)]('\x5c')||_0x3d716b['includes']('..'))throw CliErrors[_0x4d4e5d(0xed)](_0x4d4e5d(0x104)+_0x373914+_0x4d4e5d(0xee)+_0x3d716b);return _0x3d716b;}function trimmedEnv(_0x270627){const _0xf450d5=a116_0x15ae89,_0xb638bf=productEnv(_0x270627)?.[_0xf450d5(0xf3)]();return _0xb638bf?_0xb638bf:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x17a216,_0xe99d5){const _0x20ed3e=a117_0x10a2,_0x13fc24=_0x17a216();while(!![]){try{const _0x4b7a43=-parseInt(_0x20ed3e(0x1c8))/0x1+-parseInt(_0x20ed3e(0x1bd))/0x2*(parseInt(_0x20ed3e(0x1c3))/0x3)+parseInt(_0x20ed3e(0x1f6))/0x4*(-parseInt(_0x20ed3e(0x1ea))/0x5)+-parseInt(_0x20ed3e(0x1ee))/0x6+-parseInt(_0x20ed3e(0x1ca))/0x7*(-parseInt(_0x20ed3e(0x1da))/0x8)+-parseInt(_0x20ed3e(0x1e4))/0x9*(-parseInt(_0x20ed3e(0x1cc))/0xa)+-parseInt(_0x20ed3e(0x1ce))/0xb*(-parseInt(_0x20ed3e(0x1c2))/0xc);if(_0x4b7a43===_0xe99d5)break;else _0x13fc24['push'](_0x13fc24['shift']());}catch(_0x1bd8a8){_0x13fc24['push'](_0x13fc24['shift']());}}}(a117_0x4221,0xc1092));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';function a117_0x10a2(_0x424dfa,_0x2ca434){_0x424dfa=_0x424dfa-0x1b6;const _0x422147=a117_0x4221();let _0x10a297=_0x422147[_0x424dfa];return _0x10a297;}import{parse as a117_0x9fcf95}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(_0x324efd,_0x5a0e6f,_0x559d2c={}){const _0x4b1054=a117_0x10a2,_0x1707ed=resolvePushDirectoryRoot(_0x324efd),_0x1843e6=readPushMetadataIfPresent(resolve(_0x1707ed,METADATA_FILE),{'ignoreInvalidMetadata':_0x559d2c[_0x4b1054(0x1cb)]});if(_0x1843e6?.['appCode']&&_0x1843e6[_0x4b1054(0x1f7)]!==_0x5a0e6f&&!_0x559d2c['allowAppCodeRetarget']&&!_0x559d2c[_0x4b1054(0x1cd)])throw CliErrors[_0x4b1054(0x1d4)](_0x4b1054(0x1ba)+_0x1843e6[_0x4b1054(0x1f7)]+_0x4b1054(0x1db)+_0x5a0e6f+'\x22.');const _0x4ec79a=resolvePushSkillCode(_0x1707ed,_0x5a0e6f,_0x1843e6,_0x559d2c);if(!_0x4ec79a)throw CliErrors[_0x4b1054(0x1d4)](_0x4b1054(0x1d3)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x1707ed,'skillCode':_0x4ec79a,'metadata':_0x1843e6};}export function readPushDirectory(_0x26324f,_0x4a8d8b,_0x2d67a6={}){const _0x26b4ee=a117_0x10a2,_0x288c40=resolvePushDirectoryIdentity(_0x26324f,_0x4a8d8b,_0x2d67a6),_0x53c3b8=_0x288c40[_0x26b4ee(0x1de)],_0x36da70=resolve(_0x53c3b8,SKILL_FILE);if(!existsSync(_0x36da70)||!lstatSync(_0x36da70)[_0x26b4ee(0x1f0)]())throw CliErrors['validation'](_0x26b4ee(0x1d2)+SKILL_FILE+':\x20'+_0x36da70);const _0x3171ad=_0x288c40[_0x26b4ee(0x1f1)],_0x54bf5f=_0x2d67a6[_0x26b4ee(0x1f3)]??_0x26b4ee(0x1b9);if(!_0x2d67a6[_0x26b4ee(0x1c9)]&&_0x3171ad?.['scope']===_0x26b4ee(0x1e8))throw CliErrors[_0x26b4ee(0x1d4)](_0x26b4ee(0x1e3)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x3171ad['scope']+'\x22.');if(!_0x2d67a6[_0x26b4ee(0x1c9)]&&_0x54bf5f===_0x26b4ee(0x1b9)&&_0x3171ad?.[_0x26b4ee(0x1f2)]&&_0x3171ad['scope']!==_0x26b4ee(0x1b9))throw CliErrors[_0x26b4ee(0x1d4)](_0x26b4ee(0x1c6)+METADATA_FILE+_0x26b4ee(0x1f8)+_0x3171ad[_0x26b4ee(0x1f2)]+'\x22.',_0x26b4ee(0x1e6)+_0x53c3b8+_0x26b4ee(0x1d6));const _0x3e57a0=scanSkillDirectory(_0x53c3b8),_0x1cad68=buildSkillPackage(_0x3e57a0),_0x1c3251=readFileSync(_0x36da70,_0x26b4ee(0x1be)),_0x1fc412=_0x288c40[_0x26b4ee(0x1d7)],_0x436222=_0x2d67a6['ignoreMetadataForPayload']?undefined:_0x3171ad,_0x52fbf0=readSkillDisplayName(_0x1c3251);return{'skillCode':_0x1fc412,'metadata':_0x3171ad,'frontmatterDisplayName':_0x52fbf0,'input':{'skillCode':_0x1fc412,'skillName':_0x52fbf0??_0x436222?.[_0x26b4ee(0x1bc)],'description':_0x436222?.[_0x26b4ee(0x1ef)],'content':_0x1c3251,'files':_0x1cad68[_0x26b4ee(0x1d8)],'packageBase64':_0x1cad68['packageBase64'],'tags':_0x436222?.[_0x26b4ee(0x1eb)],'version':_0x436222?.[_0x26b4ee(0x1e1)],'sourceSessionId':_0x436222?.[_0x26b4ee(0x1ec)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x428670,_0x53d8c7,_0x5838e0,_0x36d0f6={}){const _0x10a1bb=a117_0x10a2,_0x456744=resolvePushDirectoryRoot(_0x428670),_0x6f921c=readPushMetadataIfPresent(resolve(_0x456744,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5b06c8=requireRemoteScope(_0x53d8c7),_0x6dc2aa=readLocalSkillContent(_0x456744),_0x192303={..._0x53d8c7,'appCode':_0x53d8c7[_0x10a1bb(0x1f7)]??_0x5838e0,'skillName':_0x53d8c7[_0x10a1bb(0x1bc)]??_0x6f921c?.[_0x10a1bb(0x1bc)],'description':_0x53d8c7[_0x10a1bb(0x1ef)]??_0x6f921c?.[_0x10a1bb(0x1ef)],'tags':Array[_0x10a1bb(0x1c1)](_0x53d8c7[_0x10a1bb(0x1eb)])?_0x53d8c7['tags']:_0x6f921c?.[_0x10a1bb(0x1eb)],'sourceSessionId':_0x53d8c7['sourceSessionId']??_0x6f921c?.[_0x10a1bb(0x1ec)],'content':_0x53d8c7[_0x10a1bb(0x1e0)]??_0x6dc2aa},_0x179195=buildMetadata(_0x192303,_0x5b06c8,_0x5838e0,contentHash(_0x6dc2aa),_0x36d0f6['refreshedAt']);writeJsonAtomic(resolve(_0x456744,METADATA_FILE),_0x179195);}export function recordPushedRuntimeSkill(_0x3c2c31,_0x3863c2,_0xcc7fb7,_0x4d3ae6={}){const _0x523c59=a117_0x10a2,_0x2bc7be=resolvePushDirectoryRoot(_0x3c2c31),_0x200ef5=scanSkillDirectory(_0x2bc7be),_0x5502bf=_0x200ef5[_0x523c59(0x1bb)](_0x37091d=>_0x37091d['path']===SKILL_FILE),_0x1bd5fc=_0x5502bf?fileText(_0x5502bf):'',_0x1a4e5d=tryNormalizePackageManifest(_0x3863c2[_0x523c59(0x1d9)]),_0x165549={..._0x3863c2,'content':_0x3863c2['content']??_0x1bd5fc,'files':_0x1a4e5d},_0x286f9d=_0x1a4e5d?normalizeLocalFiles(_0x200ef5)['filter'](_0x314772=>_0x1a4e5d[_0x523c59(0x1d9)][_0x523c59(0x1cf)](_0x59f780=>_0x59f780[_0x523c59(0x1bf)]===_0x314772[_0x523c59(0x1bf)])):undefined,_0x359baa=buildMetadata(_0x165549,_0x4d3ae6['scope']??_0x523c59(0x1b9),_0xcc7fb7,contentHash(_0x165549[_0x523c59(0x1e0)]??''),_0x4d3ae6[_0x523c59(0x1dc)],_0x286f9d);writeJsonAtomic(resolve(_0x2bc7be,METADATA_FILE),_0x359baa);}export function deriveSkillCodeFromDirectory(_0x1d35bc,_0x2be9ba){const _0x14f4a2=a117_0x10a2,_0x844de5=basename(resolve(_0x1d35bc)),_0x426484=_0x2be9ba+'--';return _0x844de5[_0x14f4a2(0x1d1)](_0x426484)?_0x844de5['slice'](_0x426484[_0x14f4a2(0x1e5)]):_0x844de5;}function resolvePushSkillCode(_0x1f716d,_0x5c8810,_0x415361,_0x273b99){const _0x1d95d2=a117_0x10a2,_0x50d6e1=deriveSkillCodeFromSkillFile(_0x1f716d)||deriveSkillCodeFromDirectory(_0x1f716d,_0x5c8810);if(_0x273b99[_0x1d95d2(0x1f4)])return _0x50d6e1;return _0x415361?.['skillCode']?.['trim']()||_0x50d6e1;}function deriveSkillCodeFromSkillFile(_0x363402){const _0xbaffa5=a117_0x10a2,_0x356da7=resolve(_0x363402,SKILL_FILE);if(!existsSync(_0x356da7)||!lstatSync(_0x356da7)[_0xbaffa5(0x1f0)]())return undefined;const _0x4be62e=readFileSync(_0x356da7,_0xbaffa5(0x1be)),_0x3da972=_0x4be62e['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3da972)return undefined;const _0x59f5d4=parseFrontmatterObject(_0x3da972[0x1]??''),_0x2d332c=scalarToString(_0x59f5d4?.['name']);return _0x2d332c?slugifySkillName(_0x2d332c):undefined;}function readSkillDisplayName(_0x144f22){const _0x16bde6=a117_0x10a2,_0x43b590=_0x144f22[_0x16bde6(0x1e2)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x43b590)return undefined;const _0x195d99=parseFrontmatterObject(_0x43b590[0x1]??'');return scalarToString(_0x195d99?.[_0x16bde6(0x1e9)]);}function slugifySkillName(_0x3ce29a){const _0x5d2d41=a117_0x10a2,_0x5b0a23=_0x3ce29a[_0x5d2d41(0x1c4)]()[_0x5d2d41(0x1c0)]()[_0x5d2d41(0x1d0)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x5d2d41(0x1d0)](/^-+/,'')[_0x5d2d41(0x1d0)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x5b0a23)throw CliErrors['validation'](_0x5d2d41(0x1b7)+SKILL_FILE+_0x5d2d41(0x1ed));return _0x5b0a23;}function parseFrontmatterObject(_0x52cf0a){const _0x2451af=a117_0x10a2;try{const _0x5ef9a0=a117_0x9fcf95(_0x52cf0a);return _0x5ef9a0&&typeof _0x5ef9a0===_0x2451af(0x1b8)&&!Array['isArray'](_0x5ef9a0)?_0x5ef9a0:undefined;}catch{return undefined;}}function scalarToString(_0xd3f061){const _0xb078b8=a117_0x10a2;if(typeof _0xd3f061==='string')return _0xd3f061['trim']();if(typeof _0xd3f061===_0xb078b8(0x1df)||typeof _0xd3f061===_0xb078b8(0x1dd))return String(_0xd3f061);return undefined;}function resolvePushDirectoryRoot(_0x4b6f83){const _0x59038d=a117_0x10a2,_0x128d4c=resolve(_0x4b6f83);if(!existsSync(_0x128d4c))throw CliErrors[_0x59038d(0x1d4)](_0x59038d(0x1c5)+_0x4b6f83);const _0x28deff=lstatSync(_0x128d4c);if(_0x28deff[_0x59038d(0x1d5)]())return _0x128d4c;if(_0x28deff['isSymbolicLink']()){const _0x2555aa=realpathSync(_0x128d4c);if(lstatSync(_0x2555aa)[_0x59038d(0x1d5)]())return _0x2555aa;}throw CliErrors[_0x59038d(0x1d4)]('Skill\x20directory\x20not\x20found:\x20'+_0x4b6f83);}function requireRemoteScope(_0x3a70fc){const _0x564535=a117_0x10a2;if(_0x3a70fc[_0x564535(0x1f2)]===_0x564535(0x1b9)||_0x3a70fc['scope']===_0x564535(0x1b6)||_0x3a70fc['scope']===_0x564535(0x1e8))return _0x3a70fc[_0x564535(0x1f2)];throw CliErrors[_0x564535(0x1d4)](_0x564535(0x1f5)+(_0x3a70fc[_0x564535(0x1d7)]||'(unknown)')+_0x564535(0x1e7)+(_0x3a70fc[_0x564535(0x1f2)]??_0x564535(0x1c7))+'\x22.');}function readLocalSkillContent(_0xb804a){const _0x47b7b7=a117_0x10a2,_0x2e1ddd=resolve(_0xb804a,SKILL_FILE);return existsSync(_0x2e1ddd)&&lstatSync(_0x2e1ddd)['isFile']()?readFileSync(_0x2e1ddd,_0x47b7b7(0x1be)):'';}function a117_0x4221(){const _0x3b30bc=['validation','isDirectory','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','skillCode','manifest','files','67928ClErNr','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','pushedAt','boolean','dir','number','content','version','match','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','3357pPHQzJ','length','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','\x20has\x20unsupported\x20scope\x20\x22','builtin','displayName','5WWBZUf','tags','sourceSessionId','\x20name\x20for\x20SkillHub\x20slug\x20generation.','6678642comAVT','description','isFile','metadata','scope','targetScope','ignoreMetadataSkillCode','Remote\x20Skill\x20','3932468UZSlbY','appCode','\x20has\x20scope=\x22','company','Invalid\x20','object','personal','Skill\x20metadata\x20appCode\x20\x22','find','skillName','4YRDZnf','utf8','path','toLowerCase','isArray','12pZWmIQ','2348169bErqek','trim','Skill\x20directory\x20not\x20found:\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','unknown','605891DxmtQj','ignoreMetadataScope','791MMITks','ignoreInvalidMetadata','14730reyDsU','ignoreMetadataAppCodeMismatch','39042553hCRsqI','some','replace','startsWith','Missing\x20','Unable\x20to\x20resolve\x20skillCode\x20from\x20'];a117_0x4221=function(){return _0x3b30bc;};return a117_0x4221();}function readPushMetadataIfPresent(_0x5e9e88,_0x15f384={}){const _0x49eae0=a117_0x10a2;try{return readMetadataIfPresent(_0x5e9e88);}catch(_0x24f4ab){if(_0x15f384[_0x49eae0(0x1cb)])return undefined;throw _0x24f4ab;}}
|
|
1
|
+
(function(_0x1080a7,_0x513623){const _0xcce7b9=a117_0x2db5,_0xeaee8a=_0x1080a7();while(!![]){try{const _0x4ac1f5=parseInt(_0xcce7b9(0x80))/0x1*(parseInt(_0xcce7b9(0x9f))/0x2)+-parseInt(_0xcce7b9(0x73))/0x3+-parseInt(_0xcce7b9(0x7d))/0x4+parseInt(_0xcce7b9(0x7b))/0x5+-parseInt(_0xcce7b9(0x78))/0x6*(-parseInt(_0xcce7b9(0xa4))/0x7)+parseInt(_0xcce7b9(0x9a))/0x8+-parseInt(_0xcce7b9(0x7e))/0x9*(parseInt(_0xcce7b9(0x7c))/0xa);if(_0x4ac1f5===_0x513623)break;else _0xeaee8a['push'](_0xeaee8a['shift']());}catch(_0x48e1aa){_0xeaee8a['push'](_0xeaee8a['shift']());}}}(a117_0xacfe,0xa94a2));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a117_0x437ab2}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(_0x57aea9,_0x287bac,_0x105c8a={}){const _0x49d45e=a117_0x2db5,_0x2c69a1=resolvePushDirectoryRoot(_0x57aea9),_0x1fff91=readPushMetadataIfPresent(resolve(_0x2c69a1,METADATA_FILE),{'ignoreInvalidMetadata':_0x105c8a[_0x49d45e(0xa7)]});if(_0x1fff91?.[_0x49d45e(0x84)]&&_0x1fff91[_0x49d45e(0x84)]!==_0x287bac&&!_0x105c8a[_0x49d45e(0xa1)]&&!_0x105c8a[_0x49d45e(0x95)])throw CliErrors[_0x49d45e(0x71)](_0x49d45e(0x70)+_0x1fff91[_0x49d45e(0x84)]+_0x49d45e(0x8e)+_0x287bac+'\x22.');const _0x32d44e=resolvePushSkillCode(_0x2c69a1,_0x287bac,_0x1fff91,_0x105c8a);if(!_0x32d44e)throw CliErrors[_0x49d45e(0x71)](_0x49d45e(0x83)+SKILL_FILE+',\x20'+METADATA_FILE+_0x49d45e(0x8a));return{'dir':_0x2c69a1,'skillCode':_0x32d44e,'metadata':_0x1fff91};}export function readPushDirectory(_0x2fd77e,_0x3e8c05,_0x227151={}){const _0x1fcc80=a117_0x2db5,_0x47d4f1=resolvePushDirectoryIdentity(_0x2fd77e,_0x3e8c05,_0x227151),_0x567f78=_0x47d4f1['dir'],_0x131f00=resolve(_0x567f78,SKILL_FILE);if(!existsSync(_0x131f00)||!lstatSync(_0x131f00)['isFile']())throw CliErrors['validation'](_0x1fcc80(0xab)+SKILL_FILE+':\x20'+_0x131f00);const _0x18b4f6=_0x47d4f1['metadata'],_0x94cdc=_0x227151[_0x1fcc80(0x89)]??_0x1fcc80(0x72);if(!_0x227151[_0x1fcc80(0xaf)]&&_0x18b4f6?.[_0x1fcc80(0x7f)]===_0x1fcc80(0x6d))throw CliErrors[_0x1fcc80(0x71)](_0x1fcc80(0x9b)+METADATA_FILE+_0x1fcc80(0xa2)+_0x18b4f6[_0x1fcc80(0x7f)]+'\x22.');if(!_0x227151[_0x1fcc80(0xaf)]&&_0x94cdc==='personal'&&_0x18b4f6?.[_0x1fcc80(0x7f)]&&_0x18b4f6['scope']!=='personal')throw CliErrors[_0x1fcc80(0x71)](_0x1fcc80(0xae)+METADATA_FILE+_0x1fcc80(0xa2)+_0x18b4f6[_0x1fcc80(0x7f)]+'\x22.',_0x1fcc80(0x93)+_0x567f78+_0x1fcc80(0x87));const _0x25c87d=scanSkillDirectory(_0x567f78),_0x1da097=buildSkillPackage(_0x25c87d),_0x5b082e=readFileSync(_0x131f00,_0x1fcc80(0xa5)),_0x5289e7=_0x47d4f1[_0x1fcc80(0x92)],_0x1d9073=_0x227151['ignoreMetadataForPayload']?undefined:_0x18b4f6,_0x32e457=readSkillDisplayName(_0x5b082e);return{'skillCode':_0x5289e7,'metadata':_0x18b4f6,'frontmatterDisplayName':_0x32e457,'input':{'skillCode':_0x5289e7,'skillName':_0x32e457??_0x1d9073?.[_0x1fcc80(0x97)],'description':_0x1d9073?.[_0x1fcc80(0x75)],'content':_0x5b082e,'files':_0x1da097[_0x1fcc80(0x8f)],'packageBase64':_0x1da097[_0x1fcc80(0x8c)],'tags':_0x1d9073?.['tags'],'version':_0x1d9073?.['version'],'sourceSessionId':_0x1d9073?.[_0x1fcc80(0x90)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x1ace7f,_0x490613,_0x313574,_0x30ff73={}){const _0x4bff4a=a117_0x2db5,_0x29ab58=resolvePushDirectoryRoot(_0x1ace7f),_0x35ba49=readPushMetadataIfPresent(resolve(_0x29ab58,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x562e70=requireRemoteScope(_0x490613),_0x3bcfb6=readLocalSkillContent(_0x29ab58),_0x2d838b={..._0x490613,'appCode':_0x490613[_0x4bff4a(0x84)]??_0x313574,'skillName':_0x490613['skillName']??_0x35ba49?.[_0x4bff4a(0x97)],'description':_0x490613[_0x4bff4a(0x75)]??_0x35ba49?.[_0x4bff4a(0x75)],'tags':Array[_0x4bff4a(0x86)](_0x490613[_0x4bff4a(0x6e)])?_0x490613[_0x4bff4a(0x6e)]:_0x35ba49?.[_0x4bff4a(0x6e)],'sourceSessionId':_0x490613['sourceSessionId']??_0x35ba49?.[_0x4bff4a(0x90)],'content':_0x490613['content']??_0x3bcfb6},_0x3dabf2=buildMetadata(_0x2d838b,_0x562e70,_0x313574,contentHash(_0x3bcfb6),_0x30ff73[_0x4bff4a(0x85)]);writeJsonAtomic(resolve(_0x29ab58,METADATA_FILE),_0x3dabf2);}export function recordPushedRuntimeSkill(_0x43742f,_0x19b1ff,_0x62fd28,_0x33b1a6={}){const _0x30fe49=a117_0x2db5,_0x509bbe=resolvePushDirectoryRoot(_0x43742f),_0x59fdd8=scanSkillDirectory(_0x509bbe),_0x4c9c3d=_0x59fdd8['find'](_0x4b8d72=>_0x4b8d72['path']===SKILL_FILE),_0xe3da7b=_0x4c9c3d?fileText(_0x4c9c3d):'',_0x1c36e5=tryNormalizePackageManifest(_0x19b1ff[_0x30fe49(0xa8)]),_0x1092a2={..._0x19b1ff,'content':_0x19b1ff[_0x30fe49(0xaa)]??_0xe3da7b,'files':_0x1c36e5},_0x55e758=_0x1c36e5?normalizeLocalFiles(_0x59fdd8)[_0x30fe49(0x8d)](_0x4d51d9=>_0x1c36e5['files'][_0x30fe49(0x96)](_0x4ad26b=>_0x4ad26b['path']===_0x4d51d9['path'])):undefined,_0x2fbf48=buildMetadata(_0x1092a2,_0x33b1a6[_0x30fe49(0x7f)]??_0x30fe49(0x72),_0x62fd28,contentHash(_0x1092a2[_0x30fe49(0xaa)]??''),_0x33b1a6['pushedAt'],_0x55e758);writeJsonAtomic(resolve(_0x509bbe,METADATA_FILE),_0x2fbf48);}export function deriveSkillCodeFromDirectory(_0x1ad926,_0x49984d){const _0x10b058=a117_0x2db5,_0x22cc0e=basename(resolve(_0x1ad926)),_0x4b5390=_0x49984d+'--';return _0x22cc0e[_0x10b058(0xa0)](_0x4b5390)?_0x22cc0e[_0x10b058(0x94)](_0x4b5390[_0x10b058(0x6c)]):_0x22cc0e;}function resolvePushSkillCode(_0xd45499,_0x288718,_0x10f137,_0x6b14b8){const _0x3f8822=a117_0x2db5,_0x202cab=deriveSkillCodeFromSkillFile(_0xd45499)||deriveSkillCodeFromDirectory(_0xd45499,_0x288718);if(_0x6b14b8[_0x3f8822(0x9c)])return _0x202cab;return _0x10f137?.[_0x3f8822(0x92)]?.['trim']()||_0x202cab;}function deriveSkillCodeFromSkillFile(_0x16326b){const _0x112b77=a117_0x2db5,_0x4868b8=resolve(_0x16326b,SKILL_FILE);if(!existsSync(_0x4868b8)||!lstatSync(_0x4868b8)[_0x112b77(0x79)]())return undefined;const _0x304ef2=readFileSync(_0x4868b8,_0x112b77(0xa5)),_0x273a10=_0x304ef2['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x273a10)return undefined;const _0x3e2f64=parseFrontmatterObject(_0x273a10[0x1]??''),_0x2e0012=scalarToString(_0x3e2f64?.[_0x112b77(0x88)]);return _0x2e0012?slugifySkillName(_0x2e0012):undefined;}function readSkillDisplayName(_0x281954){const _0xe5489c=a117_0x2db5,_0x300ba8=_0x281954[_0xe5489c(0x8b)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x300ba8)return undefined;const _0x3c1bc5=parseFrontmatterObject(_0x300ba8[0x1]??'');return scalarToString(_0x3c1bc5?.[_0xe5489c(0xa6)]);}function slugifySkillName(_0x4d573a){const _0x4dac6c=a117_0x2db5,_0x732bd4=_0x4d573a['trim']()[_0x4dac6c(0xa9)]()[_0x4dac6c(0x91)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x4dac6c(0x91)](/^-+/,'')[_0x4dac6c(0x91)](/-+$/,'')[_0x4dac6c(0x91)](/-{2,}/g,'-');if(!_0x732bd4)throw CliErrors[_0x4dac6c(0x71)](_0x4dac6c(0x77)+SKILL_FILE+_0x4dac6c(0x9d));return _0x732bd4;}function parseFrontmatterObject(_0x5dfe4a){const _0x2f011f=a117_0x2db5;try{const _0x15a438=a117_0x437ab2(_0x5dfe4a);return _0x15a438&&typeof _0x15a438===_0x2f011f(0x74)&&!Array[_0x2f011f(0x86)](_0x15a438)?_0x15a438:undefined;}catch{return undefined;}}function scalarToString(_0x2a5d9c){const _0x59934b=a117_0x2db5;if(typeof _0x2a5d9c===_0x59934b(0x98))return _0x2a5d9c[_0x59934b(0x81)]();if(typeof _0x2a5d9c===_0x59934b(0x99)||typeof _0x2a5d9c===_0x59934b(0x9e))return String(_0x2a5d9c);return undefined;}function resolvePushDirectoryRoot(_0x42f93a){const _0x34da09=a117_0x2db5,_0x550f78=resolve(_0x42f93a);if(!existsSync(_0x550f78))throw CliErrors[_0x34da09(0x71)](_0x34da09(0xa3)+_0x42f93a);const _0xb8a182=lstatSync(_0x550f78);if(_0xb8a182['isDirectory']())return _0x550f78;if(_0xb8a182[_0x34da09(0xac)]()){const _0x5b0dbf=realpathSync(_0x550f78);if(lstatSync(_0x5b0dbf)[_0x34da09(0x6f)]())return _0x5b0dbf;}throw CliErrors['validation'](_0x34da09(0xa3)+_0x42f93a);}function a117_0x2db5(_0x2af7f8,_0x34d9a0){_0x2af7f8=_0x2af7f8-0x6c;const _0xacfeed=a117_0xacfe();let _0x2db53c=_0xacfeed[_0x2af7f8];return _0x2db53c;}function requireRemoteScope(_0x3a067){const _0x59cdea=a117_0x2db5;if(_0x3a067[_0x59cdea(0x7f)]==='personal'||_0x3a067['scope']===_0x59cdea(0x82)||_0x3a067[_0x59cdea(0x7f)]===_0x59cdea(0x6d))return _0x3a067['scope'];throw CliErrors[_0x59cdea(0x71)]('Remote\x20Skill\x20'+(_0x3a067[_0x59cdea(0x92)]||_0x59cdea(0x76))+_0x59cdea(0x7a)+(_0x3a067[_0x59cdea(0x7f)]??_0x59cdea(0xad))+'\x22.');}function readLocalSkillContent(_0x2e66be){const _0x4a9c9e=a117_0x2db5,_0xa4cc5c=resolve(_0x2e66be,SKILL_FILE);return existsSync(_0xa4cc5c)&&lstatSync(_0xa4cc5c)[_0x4a9c9e(0x79)]()?readFileSync(_0xa4cc5c,_0x4a9c9e(0xa5)):'';}function a117_0xacfe(){const _0x3224c4=['appCode','refreshedAt','isArray','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','name','targetScope',',\x20or\x20directory\x20name.','match','packageBase64','filter','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','manifest','sourceSessionId','replace','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','slice','ignoreMetadataAppCodeMismatch','some','skillName','string','number','9790520nNnpiS','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','ignoreMetadataSkillCode','\x20name\x20for\x20SkillHub\x20slug\x20generation.','boolean','334744Bqpwwf','startsWith','allowAppCodeRetarget','\x20has\x20scope=\x22','Skill\x20directory\x20not\x20found:\x20','2821931VBotpl','utf8','displayName','ignoreInvalidMetadata','files','toLowerCase','content','Missing\x20','isSymbolicLink','unknown','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','ignoreMetadataScope','length','builtin','tags','isDirectory','Skill\x20metadata\x20appCode\x20\x22','validation','personal','1699905Otggvt','object','description','(unknown)','Invalid\x20','18udFjwi','isFile','\x20has\x20unsupported\x20scope\x20\x22','320040zFHczo','933390NreQqf','3300836vJgMpY','72HirmWQ','scope','2DUdORP','trim','company','Unable\x20to\x20resolve\x20skillCode\x20from\x20'];a117_0xacfe=function(){return _0x3224c4;};return a117_0xacfe();}function readPushMetadataIfPresent(_0xb331d5,_0x2f8486={}){const _0x95bcc6=a117_0x2db5;try{return readMetadataIfPresent(_0xb331d5);}catch(_0x32b008){if(_0x2f8486[_0x95bcc6(0xa7)])return undefined;throw _0x32b008;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x1a9d(){const _0x213221=['10809qzDewi','1140926MeLbai','4gwaeXZ','includes','6203930bRrOGa','7093752ITfxik','personal','length','9449341IhxoPD','company','Unsupported\x20runtime\x20Skill\x20scope:\x20','validation','21VzcDeF','builtin','1887108WVnrmj','3940yWJzeF','354654oPaKyW','1VunvGB'];a118_0x1a9d=function(){return _0x213221;};return a118_0x1a9d();}(function(_0x5740a0,_0x580b57){const _0x1cd412=a118_0x34df,_0x213acf=_0x5740a0();while(!![]){try{const _0x27c8f7=parseInt(_0x1cd412(0x18c))/0x1*(parseInt(_0x1cd412(0x18e))/0x2)+-parseInt(_0x1cd412(0x189))/0x3+parseInt(_0x1cd412(0x18f))/0x4*(parseInt(_0x1cd412(0x191))/0x5)+-parseInt(_0x1cd412(0x18b))/0x6*(-parseInt(_0x1cd412(0x187))/0x7)+parseInt(_0x1cd412(0x180))/0x8+parseInt(_0x1cd412(0x18d))/0x9*(-parseInt(_0x1cd412(0x18a))/0xa)+-parseInt(_0x1cd412(0x183))/0xb;if(_0x27c8f7===_0x580b57)break;else _0x213acf['push'](_0x213acf['shift']());}catch(_0x574847){_0x213acf['push'](_0x213acf['shift']());}}}(a118_0x1a9d,0xdf272));function a118_0x34df(_0x24a0fe,_0x54f819){_0x24a0fe=_0x24a0fe-0x180;const _0x1a9dfc=a118_0x1a9d();let _0x34df0e=_0x1a9dfc[_0x24a0fe];return _0x34df0e;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x4e4844){const _0x5a8e54=a118_0x34df,_0xace53b=_0x4e4844&&_0x4e4844[_0x5a8e54(0x182)]>0x0?_0x4e4844:[_0x5a8e54(0x181),'company',_0x5a8e54(0x188)],_0x1a9157=[];for(const _0x1913ca of _0xace53b){if(!isRuntimeSkillScope(_0x1913ca))throw CliErrors[_0x5a8e54(0x186)](_0x5a8e54(0x185)+_0x1913ca);!_0x1a9157[_0x5a8e54(0x190)](_0x1913ca)&&_0x1a9157['push'](_0x1913ca);}return _0x1a9157;}export function isRuntimeSkillScope(_0x5b5db6){const _0x17739a=a118_0x34df;return _0x5b5db6==='personal'||_0x5b5db6===_0x17739a(0x184)||_0x5b5db6===_0x17739a(0x188);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x52a746=a120_0x4eda;function a120_0x5858(){const _0x4fd8d6=['from','836UoZPDU','38390CjgcJD','1980-01-01T00:00:00.000Z','592810ZARDTn','name','validation','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','code','295iJLJAm','endsWith','map','object','234waPqiC','36763932mbxQnQ','length','2278oVXuXF','692972aWLpso','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','validation_error','2850NPJlIS','60FrZjTL','10389bgeKLs','sort','3640tsknDw','entries'];a120_0x5858=function(){return _0x4fd8d6;};return a120_0x5858();}(function(_0x4469b2,_0x4daced){const _0x58c4ae=a120_0x4eda,_0x18d7b8=_0x4469b2();while(!![]){try{const _0x5f2cfb=-parseInt(_0x58c4ae(0x11b))/0x1*(-parseInt(_0x58c4ae(0x108))/0x2)+parseInt(_0x58c4ae(0x10e))/0x3*(-parseInt(_0x58c4ae(0x113))/0x4)+-parseInt(_0x58c4ae(0x116))/0x5*(parseInt(_0x58c4ae(0x10d))/0x6)+parseInt(_0x58c4ae(0x109))/0x7+-parseInt(_0x58c4ae(0x110))/0x8*(-parseInt(_0x58c4ae(0x11f))/0x9)+-parseInt(_0x58c4ae(0x10c))/0xa*(parseInt(_0x58c4ae(0x114))/0xb)+parseInt(_0x58c4ae(0x106))/0xc;if(_0x5f2cfb===_0x4daced)break;else _0x18d7b8['push'](_0x18d7b8['shift']());}catch(_0x4024c5){_0x18d7b8['push'](_0x18d7b8['shift']());}}}(a120_0x5858,0x940f7));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a120_0x52a746(0x115));function a120_0x4eda(_0x19f6f7,_0x43078b){_0x19f6f7=_0x19f6f7-0x106;const _0x585839=a120_0x5858();let _0x4edae5=_0x585839[_0x19f6f7];return _0x4edae5;}export function createDeterministicZipPackage(_0x1082b8){const _0x1686bf=a120_0x52a746,_0x282999={};for(const _0x10cddb of normalizeLocalFiles(_0x1082b8)){_0x282999[_0x10cddb['path']]=fileContent(_0x10cddb);}return Buffer[_0x1686bf(0x112)](zipSync(_0x282999,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x11d6b8){const _0x3e7d3a=a120_0x52a746;if(_0x11d6b8[_0x3e7d3a(0x107)]<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x385d39;try{_0x385d39=unzipSync(_0x11d6b8,{'filter'(_0x36a141){const _0x83a98f=_0x3e7d3a,_0x211680=normalizeSkillRelativePath(_0x36a141[_0x83a98f(0x117)]);if(_0x211680[_0x83a98f(0x11c)]('/'))throw CliErrors[_0x83a98f(0x118)](_0x83a98f(0x119)+_0x211680);return!![];}});}catch(_0x1cfbc4){if(isRuntimeSkillValidationError(_0x1cfbc4))throw _0x1cfbc4;throw CliErrors[_0x3e7d3a(0x118)](_0x3e7d3a(0x10a));}return Object[_0x3e7d3a(0x111)](_0x385d39)[_0x3e7d3a(0x11d)](([_0x178dcc,_0x405345])=>({'path':normalizeSkillRelativePath(_0x178dcc),'bytes':Buffer[_0x3e7d3a(0x112)](_0x405345)}))[_0x3e7d3a(0x10f)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x2be14b){const _0x131d0d=a120_0x52a746;return typeof _0x2be14b===_0x131d0d(0x11e)&&_0x2be14b!==null&&_0x131d0d(0x11a)in _0x2be14b&&_0x2be14b['code']===_0x131d0d(0x10b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2af825,_0x41394b){const _0x1d9550=a121_0x1e3a,_0x486783=_0x2af825();while(!![]){try{const _0xeb553=parseInt(_0x1d9550(0x10e))/0x1+-parseInt(_0x1d9550(0x111))/0x2*(-parseInt(_0x1d9550(0x11e))/0x3)+-parseInt(_0x1d9550(0x108))/0x4*(-parseInt(_0x1d9550(0x10f))/0x5)+parseInt(_0x1d9550(0x118))/0x6+-parseInt(_0x1d9550(0x102))/0x7*(-parseInt(_0x1d9550(0x110))/0x8)+-parseInt(_0x1d9550(0x10d))/0x9+-parseInt(_0x1d9550(0x11c))/0xa;if(_0xeb553===_0x41394b)break;else _0x486783['push'](_0x486783['shift']());}catch(_0x33088a){_0x486783['push'](_0x486783['shift']());}}}(a121_0x1900,0x9bbd7));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';function a121_0x1900(){const _0x59ea54=['62FrTKlT','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Duplicate\x20Skill\x20package\x20entry:\x20','treeSha256','path','map','5007198dbGIrx','push','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','19809890IjfPaH','has','61623goQQVX','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','length','sha256','get','base64','string','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','zipSize','isSafeInteger','set','schemaVersion','bytes','validation','\x20in\x20Skill\x20file\x20package.','Missing\x20','toString','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','requireOssPath','357yCAusE','zipSha256','ossPath','files','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','44hECFtl','Runtime\x20Skill\x20package\x20size\x20mismatch.','toLowerCase','isArray','some','7227378HapSIP','480694tbOqnw','576565QVTLME','31608iWQgls'];a121_0x1900=function(){return _0x59ea54;};return a121_0x1900();}export function buildSkillPackage(_0x1de808){const _0x59e5fd=a121_0x1e3a,_0x325329=normalizeLocalFiles(_0x1de808);if(!_0x325329[_0x59e5fd(0x10c)](_0x4625d1=>_0x4625d1[_0x59e5fd(0x116)]===SKILL_FILE))throw CliErrors[_0x59e5fd(0xfb)](_0x59e5fd(0xfd)+SKILL_FILE+_0x59e5fd(0xfc));const _0x5512f8=localFilesToManifestFiles(_0x325329),_0x4875b2=createDeterministicZipPackage(_0x325329);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5512f8),'zipSha256':bufferSha256(_0x4875b2),'zipSize':_0x4875b2[_0x59e5fd(0x120)],'files':_0x5512f8},'packageBytes':_0x4875b2,'packageBase64':_0x4875b2[_0x59e5fd(0xfe)](_0x59e5fd(0xf3))};}function a121_0x1e3a(_0x23ec1e,_0x2c2751){_0x23ec1e=_0x23ec1e-0xf3;const _0x1900f6=a121_0x1900();let _0x1e3ab1=_0x1900f6[_0x23ec1e];return _0x1e3ab1;}export function verifyRuntimeSkillPackage(_0x5006fe,_0x38f1e9){const _0x590c04=a121_0x1e3a,_0x2fee16=normalizePackageManifest(_0x5006fe,{'requireOssPath':![]});if(!_0x2fee16)throw CliErrors[_0x590c04(0xfb)](_0x590c04(0x100));return extractAndVerifyPackage(_0x2fee16,_0x38f1e9);}export function verifyRuntimeSkillBundle(_0x58ff8d,_0x5ba31a){const _0x533169=a121_0x1e3a,_0x53853e=normalizePackageManifest(_0x58ff8d,{'requireOssPath':![]});if(!_0x53853e)throw CliErrors[_0x533169(0xfb)](_0x533169(0x100));return extractAndVerifyPackageFiles(_0x53853e,_0x5ba31a);}export function tryNormalizePackageManifest(_0x2544f5){return normalizePackageManifest(_0x2544f5,{'requireOssPath':![]});}export function requirePackageBytes(_0x1857a8,_0x126b4d){const _0x2e2ee9=a121_0x1e3a;if(!_0x126b4d||_0x126b4d[_0x2e2ee9(0x120)]===0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x1857a8);return _0x126b4d;}export function extractDownloadedPackage(_0x27e4a0){const _0x2ff521=a121_0x1e3a,_0x276610=parseZipPackage(_0x27e4a0)[_0x2ff521(0x117)](_0x14c9c0=>({'path':_0x14c9c0[_0x2ff521(0x116)],'bytes':_0x14c9c0['bytes']}));if(!_0x276610[_0x2ff521(0x10c)](_0x154613=>_0x154613[_0x2ff521(0x116)]===SKILL_FILE))throw CliErrors[_0x2ff521(0xfb)](_0x2ff521(0x11a)+SKILL_FILE+'.');return normalizeLocalFiles(_0x276610);}export function localFilesToManifestFiles(_0x277116){const _0x3d782d=a121_0x1e3a;return normalizeLocalFiles(_0x277116)[_0x3d782d(0x117)](_0x4523b2=>({'path':_0x4523b2[_0x3d782d(0x116)],'sha256':fileHash(_0x4523b2),'size':fileContent(_0x4523b2)[_0x3d782d(0x120)]}));}function normalizePackageManifest(_0x43d89f,_0x477fa7){const _0x187455=a121_0x1e3a;if(!_0x43d89f||typeof _0x43d89f!=='object'||Array[_0x187455(0x10b)](_0x43d89f))return undefined;const _0x3e7bb6=_0x43d89f,_0x3889b9=typeof _0x3e7bb6[_0x187455(0x104)]===_0x187455(0xf4)?_0x3e7bb6[_0x187455(0x104)]['trim']():undefined;if(_0x477fa7[_0x187455(0x101)]&&!_0x3889b9)return undefined;if(!Array[_0x187455(0x10b)](_0x3e7bb6[_0x187455(0x105)])||_0x3e7bb6[_0x187455(0x105)]['length']===0x0)return undefined;if(!isSha256Hex(_0x3e7bb6[_0x187455(0x115)]))throw CliErrors['validation'](_0x187455(0x107));if(!isSha256Hex(_0x3e7bb6[_0x187455(0x103)]))throw CliErrors[_0x187455(0xfb)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x187455(0xf7)](_0x3e7bb6[_0x187455(0xf6)])||_0x3e7bb6[_0x187455(0xf6)]<0x0)throw CliErrors[_0x187455(0xfb)](_0x187455(0x113));const _0x568d18=normalizeManifestFiles(_0x3e7bb6[_0x187455(0x105)]);if(!_0x568d18['some'](_0x1d2d1a=>_0x1d2d1a[_0x187455(0x116)]===SKILL_FILE))throw CliErrors['validation'](_0x187455(0x112)+SKILL_FILE+'.');const _0x55e4ea=fileTreeHash(_0x568d18);if(_0x55e4ea!==_0x3e7bb6[_0x187455(0x115)][_0x187455(0x10a)]())throw CliErrors[_0x187455(0xfb)](_0x187455(0x106));return{'schemaVersion':Number[_0x187455(0xf7)](_0x3e7bb6[_0x187455(0xf9)])?_0x3e7bb6[_0x187455(0xf9)]:0x2,'ossPath':_0x3889b9,'treeSha256':_0x55e4ea,'zipSha256':_0x3e7bb6[_0x187455(0x103)][_0x187455(0x10a)](),'zipSize':_0x3e7bb6[_0x187455(0xf6)],'files':_0x568d18};}function extractAndVerifyPackage(_0x4839e8,_0x5b334e){const _0x3f2fac=a121_0x1e3a,_0x2daa87=normalizePackageManifest(_0x4839e8,{'requireOssPath':![]});if(!_0x2daa87)throw CliErrors['validation'](_0x3f2fac(0x100));if(_0x5b334e['length']!==_0x2daa87[_0x3f2fac(0xf6)])throw CliErrors[_0x3f2fac(0xfb)](_0x3f2fac(0x109));const _0x1eeb0e=bufferSha256(_0x5b334e);if(_0x1eeb0e!==_0x2daa87[_0x3f2fac(0x103)])throw CliErrors[_0x3f2fac(0xfb)](_0x3f2fac(0x11b));return extractAndVerifyPackageFiles(_0x2daa87,_0x5b334e);}function extractAndVerifyPackageFiles(_0x35af32,_0x4209d1){const _0xd2258f=a121_0x1e3a,_0x54e0e3=parseZipPackage(_0x4209d1);if(_0x54e0e3[_0xd2258f(0x120)]!==_0x35af32[_0xd2258f(0x105)][_0xd2258f(0x120)])throw CliErrors[_0xd2258f(0xfb)](_0xd2258f(0x11f));const _0x3ca0a8=new Map();for(const _0x2e62ca of _0x54e0e3){if(_0x3ca0a8[_0xd2258f(0x11d)](_0x2e62ca['path']))throw CliErrors[_0xd2258f(0xfb)](_0xd2258f(0x114)+_0x2e62ca[_0xd2258f(0x116)]);_0x3ca0a8[_0xd2258f(0xf8)](_0x2e62ca[_0xd2258f(0x116)],_0x2e62ca);}const _0x4f2770=[];for(const _0x4a1611 of _0x35af32[_0xd2258f(0x105)]){const _0x4de50a=_0x3ca0a8[_0xd2258f(0x122)](_0x4a1611[_0xd2258f(0x116)]);if(!_0x4de50a)throw CliErrors['validation'](_0xd2258f(0xf5)+_0x4a1611[_0xd2258f(0x116)]);if(_0x4de50a[_0xd2258f(0xfa)][_0xd2258f(0x120)]!==_0x4a1611['size'])throw CliErrors[_0xd2258f(0xfb)](_0xd2258f(0xff)+_0x4a1611[_0xd2258f(0x116)]);const _0x3bbdf7=bufferSha256(_0x4de50a[_0xd2258f(0xfa)]);if(_0x3bbdf7!==_0x4a1611[_0xd2258f(0x121)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x4a1611[_0xd2258f(0x116)]);_0x4f2770[_0xd2258f(0x119)]({'path':_0x4a1611['path'],'bytes':_0x4de50a[_0xd2258f(0xfa)]});}return normalizeLocalFiles(_0x4f2770);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11acbf,_0x4d7948){var _0x5572cd=a122_0x1a5d,_0x1472d7=_0x11acbf();while(!![]){try{var _0x2062c9=parseInt(_0x5572cd(0xb4))/0x1*(-parseInt(_0x5572cd(0xae))/0x2)+parseInt(_0x5572cd(0xb1))/0x3*(-parseInt(_0x5572cd(0xb5))/0x4)+-parseInt(_0x5572cd(0xac))/0x5*(-parseInt(_0x5572cd(0xb2))/0x6)+-parseInt(_0x5572cd(0xb0))/0x7*(parseInt(_0x5572cd(0xb6))/0x8)+-parseInt(_0x5572cd(0xaf))/0x9*(parseInt(_0x5572cd(0xb8))/0xa)+-parseInt(_0x5572cd(0xad))/0xb+-parseInt(_0x5572cd(0xb7))/0xc*(-parseInt(_0x5572cd(0xb3))/0xd);if(_0x2062c9===_0x4d7948)break;else _0x1472d7['push'](_0x1472d7['shift']());}catch(_0xa72d33){_0x1472d7['push'](_0x1472d7['shift']());}}}(a122_0x4436,0xccf86));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';function a122_0x1a5d(_0x19a55a,_0x1c3fbd){_0x19a55a=_0x19a55a-0xac;var _0x443659=a122_0x4436();var _0x1a5d2d=_0x443659[_0x19a55a];return _0x1a5d2d;}export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a122_0x4436(){var _0x56df73=['4934040pTXhmA','5064sMJopc','9070IDpxRJ','206310PoHdIN','1809929zSEyvb','1158xaYxbp','11628UJQCYp','14Hneqlt','3621564FobCJi','120jaVhdB','127231nJWowI','585SGUHaW','4DAgSvL'];a122_0x4436=function(){return _0x56df73;};return a122_0x4436();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x16bc(){const _0x3cc0d6=['469umHxvN','20331bpDNvA','55758telYzV','1659110HtPWtW','1283512iHPmKg','1353480RglrpM','7296UpfnsA','192794hMrnzR','680475aMXFrR'];a123_0x16bc=function(){return _0x3cc0d6;};return a123_0x16bc();}(function(_0x4e4cd1,_0x4e0788){const _0x1c18ec=a123_0x5509,_0x582488=_0x4e4cd1();while(!![]){try{const _0xf93238=parseInt(_0x1c18ec(0x113))/0x1+parseInt(_0x1c18ec(0x112))/0x2+parseInt(_0x1c18ec(0x119))/0x3+parseInt(_0x1c18ec(0x118))/0x4+parseInt(_0x1c18ec(0x117))/0x5+parseInt(_0x1c18ec(0x116))/0x6*(parseInt(_0x1c18ec(0x114))/0x7)+parseInt(_0x1c18ec(0x111))/0x8*(-parseInt(_0x1c18ec(0x115))/0x9);if(_0xf93238===_0x4e0788)break;else _0x582488['push'](_0x582488['shift']());}catch(_0x3fdf79){_0x582488['push'](_0x582488['shift']());}}}(a123_0x16bc,0x6c313));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a123_0x5509(_0x33f326,_0x520641){_0x33f326=_0x33f326-0x111;const _0x16bcf0=a123_0x16bc();let _0x55094f=_0x16bcf0[_0x33f326];return _0x55094f;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x2aac6a=a124_0x4b2c;(function(_0x266ff1,_0x54ef4e){const _0x15b407=a124_0x4b2c,_0x3d197=_0x266ff1();while(!![]){try{const _0x5e248e=parseInt(_0x15b407(0x1f2))/0x1*(-parseInt(_0x15b407(0x1e5))/0x2)+-parseInt(_0x15b407(0x1fe))/0x3*(-parseInt(_0x15b407(0x1d5))/0x4)+parseInt(_0x15b407(0x1d6))/0x5*(parseInt(_0x15b407(0x1fb))/0x6)+parseInt(_0x15b407(0x1e2))/0x7*(parseInt(_0x15b407(0x209))/0x8)+-parseInt(_0x15b407(0x20b))/0x9+parseInt(_0x15b407(0x1d8))/0xa*(parseInt(_0x15b407(0x1fd))/0xb)+parseInt(_0x15b407(0x1df))/0xc;if(_0x5e248e===_0x54ef4e)break;else _0x3d197['push'](_0x3d197['shift']());}catch(_0x7f2bd6){_0x3d197['push'](_0x3d197['shift']());}}}(a124_0x35dd,0xa7300));function a124_0x35dd(){const _0x44128b=['200472gqnXnL','readLogs','command','Completed:\x20','existsSync','filter','log','unknown','rawCommand','errors','stringify','message','yellow','4XLtTeL','clearLogs','currentRawCommand','createLogger','success','parse','format','logFilePath','red','210Dyvttw','dirname','209vJSWly','284244jRtchj','clear','warn','File','getWinstonInstance','green','duration','split','printf','toISOString','details','71016oTEnil','initWinstonLogger','11158893fvNUFr','error','mkdirSync','now','timestamp','logTask','info','44saQmuV','62085xdbDAF','Failed\x20to\x20read\x20logs:','151610GysLum','setLogPath','setRawCommand','addColors','readFileSync','trim','logFileName','1722240TIkrRC','map','utf8','329hUVDUe','Failed\x20to\x20clear\x20logs:','winstonLogger'];a124_0x35dd=function(){return _0x44128b;};return a124_0x35dd();}import a124_0x383e89 from'winston';import a124_0x5d6290 from'node:fs';import a124_0x2819eb from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a124_0x2aac6a(0x1e4)];[a124_0x2aac6a(0x1f9)]='';[a124_0x2aac6a(0x1f4)]='';constructor(){}[a124_0x2aac6a(0x1da)](_0x59f610){const _0x5db644=a124_0x2aac6a;this[_0x5db644(0x1f4)]=_0x59f610;}[a124_0x2aac6a(0x1d9)](_0x9239e6){const _0x139779=a124_0x2aac6a;this[_0x139779(0x1f9)]=a124_0x2819eb['join'](_0x9239e6,PRODUCT_CONFIG[_0x139779(0x1de)]),this['winstonLogger']&&this[_0x139779(0x1e4)][_0x139779(0x1ff)](),this[_0x139779(0x20a)]();}[a124_0x2aac6a(0x20a)](){const _0xf6c3dc=a124_0x2aac6a,_0xabd571=a124_0x2819eb[_0xf6c3dc(0x1fc)](this['logFilePath']);!a124_0x5d6290['existsSync'](_0xabd571)&&a124_0x5d6290[_0xf6c3dc(0x20d)](_0xabd571,{'recursive':!![]});const _0x230ee8=a124_0x383e89[_0xf6c3dc(0x1f8)]['combine'](a124_0x383e89['format'][_0xf6c3dc(0x20f)](),a124_0x383e89[_0xf6c3dc(0x1f8)][_0xf6c3dc(0x1ee)]({'stack':!![]}),a124_0x383e89[_0xf6c3dc(0x1f8)][_0xf6c3dc(0x206)](_0x2fe3c7=>{const _0x3e8ad0=_0xf6c3dc,_0x125058={'timestamp':_0x2fe3c7['timestamp']||new Date()[_0x3e8ad0(0x207)](),'level':_0x2fe3c7['level']||_0x3e8ad0(0x1d4),'command':_0x2fe3c7[_0x3e8ad0(0x1e7)]||_0x3e8ad0(0x1ec),'rawCommand':_0x2fe3c7[_0x3e8ad0(0x1ed)]||this[_0x3e8ad0(0x1f4)]||undefined,'message':_0x2fe3c7[_0x3e8ad0(0x1f0)]||'','duration':_0x2fe3c7[_0x3e8ad0(0x204)]||undefined,'details':_0x2fe3c7[_0x3e8ad0(0x208)]||undefined};return JSON[_0x3e8ad0(0x1ef)](_0x125058);}));this[_0xf6c3dc(0x1e4)]=a124_0x383e89[_0xf6c3dc(0x1f5)]({'level':_0xf6c3dc(0x1d4),'format':_0x230ee8,'transports':[new a124_0x383e89['transports'][(_0xf6c3dc(0x201))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a124_0x383e89[_0xf6c3dc(0x1db)]({'success':_0xf6c3dc(0x203),'error':_0xf6c3dc(0x1fa),'warn':_0xf6c3dc(0x1f1),'info':'blue'});}['info'](_0x559ef7,_0xf5c134,_0xa172e1){const _0x4a6667=a124_0x2aac6a;if(!this[_0x4a6667(0x1f9)]||!this[_0x4a6667(0x1e4)])return;this[_0x4a6667(0x1e4)][_0x4a6667(0x1d4)](_0xf5c134,{'command':_0x559ef7,'details':_0xa172e1});}['success'](_0x2da72d,_0x4d755d,_0x5f0ff5,_0x57ff0a){const _0x443442=a124_0x2aac6a;if(!this[_0x443442(0x1f9)]||!this[_0x443442(0x1e4)])return;this[_0x443442(0x1e4)][_0x443442(0x1eb)](_0x443442(0x1d4),_0x4d755d,{'level':'success','command':_0x2da72d,'duration':_0x5f0ff5,'details':_0x57ff0a});}[a124_0x2aac6a(0x20c)](_0x11ca84,_0x193bfa,_0x4d3038){const _0x243473=a124_0x2aac6a;if(!this[_0x243473(0x1f9)]||!this[_0x243473(0x1e4)])return;this[_0x243473(0x1e4)][_0x243473(0x20c)](_0x193bfa,{'command':_0x11ca84,'details':_0x4d3038});}[a124_0x2aac6a(0x200)](_0x3eecf,_0x4f3671,_0x11e0a5){const _0x359e5c=a124_0x2aac6a;if(!this[_0x359e5c(0x1f9)]||!this[_0x359e5c(0x1e4)])return;this[_0x359e5c(0x1e4)][_0x359e5c(0x200)](_0x4f3671,{'command':_0x3eecf,'details':_0x11e0a5});}async[a124_0x2aac6a(0x210)](_0x370cf7,_0x50efe8,_0x1ce486){const _0x54601f=a124_0x2aac6a,_0x906ccb=Date['now']();this[_0x54601f(0x1d4)](_0x370cf7,'Starting:\x20'+_0x50efe8);try{const _0x4a5747=await _0x1ce486(),_0x501969=Date[_0x54601f(0x20e)]()-_0x906ccb;return this[_0x54601f(0x1f6)](_0x370cf7,_0x54601f(0x1e8)+_0x50efe8,_0x501969),_0x4a5747;}catch(_0x3312a0){const _0x4fcca1=Date['now']()-_0x906ccb;this[_0x54601f(0x20c)](_0x370cf7,'Failed:\x20'+_0x50efe8,{'error':_0x3312a0 instanceof Error?_0x3312a0[_0x54601f(0x1f0)]:String(_0x3312a0),'duration':_0x4fcca1});throw _0x3312a0;}}[a124_0x2aac6a(0x1e6)](){const _0xf11a2a=a124_0x2aac6a;try{if(!a124_0x5d6290[_0xf11a2a(0x1e9)](this['logFilePath']))return[];const _0x251ddb=a124_0x5d6290[_0xf11a2a(0x1dc)](this[_0xf11a2a(0x1f9)],_0xf11a2a(0x1e1));return _0x251ddb[_0xf11a2a(0x205)](/\r?\n/)[_0xf11a2a(0x1ea)](_0x49bd4c=>_0x49bd4c[_0xf11a2a(0x1dd)]())[_0xf11a2a(0x1e0)](_0x48bb68=>JSON[_0xf11a2a(0x1f7)](_0x48bb68));}catch(_0x3dcfa2){return console[_0xf11a2a(0x200)](_0xf11a2a(0x1d7),_0x3dcfa2),[];}}[a124_0x2aac6a(0x1f3)](){const _0x348d00=a124_0x2aac6a;try{a124_0x5d6290[_0x348d00(0x1e9)](this['logFilePath'])&&a124_0x5d6290['writeFileSync'](this['logFilePath'],'',_0x348d00(0x1e1));}catch(_0x33f200){console[_0x348d00(0x200)](_0x348d00(0x1e3),_0x33f200);}}[a124_0x2aac6a(0x202)](){const _0x3d26e5=a124_0x2aac6a;return this[_0x3d26e5(0x1e4)];}}function a124_0x4b2c(_0x1c5ef0,_0x31e86f){_0x1c5ef0=_0x1c5ef0-0x1d4;const _0x35dde7=a124_0x35dd();let _0x4b2c62=_0x35dde7[_0x1c5ef0];return _0x4b2c62;}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x5db6a4=a125_0xeb3b;(function(_0x1fd703,_0x507974){const _0x414834=a125_0xeb3b,_0x1c7544=_0x1fd703();while(!![]){try{const _0x349f5f=parseInt(_0x414834(0x121))/0x1*(-parseInt(_0x414834(0x11e))/0x2)+-parseInt(_0x414834(0x126))/0x3+-parseInt(_0x414834(0x11c))/0x4+parseInt(_0x414834(0x11d))/0x5*(parseInt(_0x414834(0x129))/0x6)+-parseInt(_0x414834(0x12d))/0x7+-parseInt(_0x414834(0x122))/0x8*(parseInt(_0x414834(0x12b))/0x9)+-parseInt(_0x414834(0x123))/0xa*(-parseInt(_0x414834(0x12c))/0xb);if(_0x349f5f===_0x507974)break;else _0x1c7544['push'](_0x1c7544['shift']());}catch(_0x360f3d){_0x1c7544['push'](_0x1c7544['shift']());}}}(a125_0x4a8d,0x93b4a));function a125_0xeb3b(_0x4985ed,_0x27d9a8){_0x4985ed=_0x4985ed-0x11c;const _0x4a8da4=a125_0x4a8d();let _0xeb3b20=_0x4a8da4[_0x4985ed];return _0xeb3b20;}function a125_0x4a8d(){const _0x1354fb=['text','876pHhZoy','prototype','33057YgNBSJ','3266791EVpkKo','6900565ifwAwm','json','defineProperty','3146404bDAnyJ','19120DqDXqz','1151618YTCQkK','MIN_SAFE_INTEGER','includes','1hBToDE','1816NWPnNr','130gOAvTO','undefined','getOwnPropertyDescriptor','1896237DtYUHc','length'];a125_0x4a8d=function(){return _0x1354fb;};return a125_0x4a8d();}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a125_0x5db6a4(0x11f)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x6a6778){const _0x561d16=a125_0x5db6a4;if(_0x6a6778[_0x561d16(0x120)]('.')||_0x6a6778[_0x561d16(0x120)]('e')||_0x6a6778[_0x561d16(0x120)]('E'))return![];const _0x59554b=BigInt(_0x6a6778);return _0x59554b>MAX_SAFE_INTEGER||_0x59554b<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x111af6){const _0x5305d1=a125_0x5db6a4;let _0x1b7652='',_0x1501ca=![],_0x493861=![];for(let _0x4416b0=0x0;_0x4416b0<_0x111af6['length'];){const _0x26368f=_0x111af6[_0x4416b0];if(_0x1501ca){_0x1b7652+=_0x26368f,_0x4416b0+=0x1;if(_0x493861)_0x493861=![];else{if(_0x26368f==='\x5c')_0x493861=!![];else _0x26368f==='\x22'&&(_0x1501ca=![]);}continue;}if(_0x26368f==='\x22'){_0x1501ca=!![],_0x1b7652+=_0x26368f,_0x4416b0+=0x1;continue;}if(_0x26368f==='-'||_0x26368f>='0'&&_0x26368f<='9'){const _0x4fa706=JSON_NUMBER_PATTERN['exec'](_0x111af6['slice'](_0x4416b0))?.[0x0];if(_0x4fa706){_0x1b7652+=isUnsafeIntegerLiteral(_0x4fa706)?'\x22'+_0x4fa706+'\x22':_0x4fa706,_0x4416b0+=_0x4fa706[_0x5305d1(0x127)];continue;}}_0x1b7652+=_0x26368f,_0x4416b0+=0x1;}return _0x1b7652;}export function parseLosslessJson(_0x4909e9){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x4909e9));}export function installLosslessJsonResponseParser(){const _0x3fbebc=a125_0x5db6a4;if(typeof Response===_0x3fbebc(0x124))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x3fbebc(0x12a)],originalResponseJsonDescriptor=Object[_0x3fbebc(0x125)](responseJsonPrototype,'json'),Object[_0x3fbebc(0x12f)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1f8af9(){const _0x1ebbec=_0x3fbebc;return parseLosslessJson(await this[_0x1ebbec(0x128)]());}}),restoreResponseJsonParser=()=>{const _0x3619df=_0x3fbebc;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x3619df(0x12e),originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fe1b4,_0x6c225){const _0x33f556=a126_0x40d6,_0x43eb4b=_0x2fe1b4();while(!![]){try{const _0x4af96f=parseInt(_0x33f556(0x15c))/0x1+parseInt(_0x33f556(0x15e))/0x2*(parseInt(_0x33f556(0x162))/0x3)+parseInt(_0x33f556(0x161))/0x4+parseInt(_0x33f556(0x14e))/0x5*(parseInt(_0x33f556(0x15f))/0x6)+parseInt(_0x33f556(0x160))/0x7+-parseInt(_0x33f556(0x163))/0x8+-parseInt(_0x33f556(0x153))/0x9;if(_0x4af96f===_0x6c225)break;else _0x43eb4b['push'](_0x43eb4b['shift']());}catch(_0x3bcf32){_0x43eb4b['push'](_0x43eb4b['shift']());}}}(a126_0x4e87,0x3748a));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x1a1a27){const _0x44bedc=a126_0x40d6;if(!_0x1a1a27)return undefined;try{return parseLosslessJson(_0x1a1a27);}catch{throw CliErrors[_0x44bedc(0x154)](_0x44bedc(0x151)+_0x1a1a27);}}export function parseJsonParamsValue(_0x11e674){const _0x366b48=a126_0x40d6;if(!_0x11e674)return undefined;try{return parseLosslessJson(_0x11e674);}catch{throw CliErrors['validation'](_0x366b48(0x151)+_0x11e674);}}export function parseBatchCreateItemsFromParams(_0xbb6173){const _0x3cc57c=a126_0x40d6;if(Array[_0x3cc57c(0x15b)](_0xbb6173))return _0xbb6173;if(_0xbb6173!==null&&_0xbb6173!==undefined&&typeof _0xbb6173==='object'&&Array['isArray'](_0xbb6173[_0x3cc57c(0x14d)]))return _0xbb6173[_0x3cc57c(0x14d)];throw CliErrors[_0x3cc57c(0x154)](_0x3cc57c(0x157),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x403174,_0x50e204){const _0x44bed4=a126_0x40d6;if(typeof _0x403174===_0x44bed4(0x156)&&Number['isSafeInteger'](_0x403174)&&_0x403174>0x0)return _0x403174;if(typeof _0x403174===_0x44bed4(0x152)){if(/^[1-9]\d*$/[_0x44bed4(0x159)](_0x403174))return _0x403174;}throw CliErrors[_0x44bed4(0x154)](_0x44bed4(0x158)+_0x50e204+_0x44bed4(0x15a));}function a126_0x4e87(){const _0x2a0b29=['data\x20update\x20--params.','test','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isArray','77844fIIFaj','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','88EYkOsv','24ZQlBWC','2656913YMekmp','1574340ZRGFfW','8841ncjoJV','508464WxvePq','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','items','393590HYQfCj','length','object','Invalid\x20JSON\x20for\x20--params:\x20','string','9049752gYExLo','validation','\x20records\x20per\x20call;\x20received\x20','number','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}'];a126_0x4e87=function(){return _0x2a0b29;};return a126_0x4e87();}function a126_0x40d6(_0x566b70,_0x1b5d2d){_0x566b70=_0x566b70-0x14b;const _0x4e87ea=a126_0x4e87();let _0x40d654=_0x4e87ea[_0x566b70];return _0x40d654;}export function parseUpdateIdsFromParams(_0x575e66){const _0x29038c=a126_0x40d6;if(_0x575e66===null||_0x575e66===undefined||typeof _0x575e66!==_0x29038c(0x150)||Array[_0x29038c(0x15b)](_0x575e66))throw CliErrors[_0x29038c(0x154)](_0x29038c(0x15d),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x5e0b65=_0x575e66['id'];if(_0x5e0b65===undefined||_0x5e0b65===null)throw CliErrors[_0x29038c(0x154)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x29038c(0x14b));const _0x21238b=Array['isArray'](_0x5e0b65)?_0x5e0b65:[_0x5e0b65];if(_0x21238b[_0x29038c(0x14f)]===0x0)throw CliErrors['validation'](_0x29038c(0x14c));if(_0x21238b[_0x29038c(0x14f)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x29038c(0x154)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x29038c(0x155)+_0x21238b[_0x29038c(0x14f)]+'.');return _0x21238b['map']((_0x5726e9,_0x5c2784)=>parseDataUpdateId(_0x5726e9,Array[_0x29038c(0x15b)](_0x5e0b65)?'id['+_0x5c2784+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x27bf89,_0x2dc866){const _0x5a7e70=a126_0x40d6;if(Array[_0x5a7e70(0x15b)](_0x27bf89['id'])&&_0x2dc866['length']>0x1)return{..._0x27bf89,'id':_0x2dc866['join'](',')};return _0x27bf89;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a127_0x1950(_0x497627,_0x1b40b7){_0x497627=_0x497627-0x12b;const _0x4e1072=a127_0x4e10();let _0x1950c5=_0x4e1072[_0x497627];return _0x1950c5;}const a127_0x166a45=a127_0x1950;function a127_0x4e10(){const _0x583487=['.cmd','8660YEWwbv','862585PhlkBr','16BEznVL','454EkaxMP','854704loLtSG','win32','11234800jzZcHm','platform','6rdnOLT','13381524MPZqGT','6325977FpASOt','4190868hfzbmV'];a127_0x4e10=function(){return _0x583487;};return a127_0x4e10();}(function(_0x5d4886,_0x42e5d6){const _0x5d5764=a127_0x1950,_0x359d82=_0x5d4886();while(!![]){try{const _0x2903ad=-parseInt(_0x5d5764(0x12e))/0x1*(-parseInt(_0x5d5764(0x131))/0x2)+-parseInt(_0x5d5764(0x12c))/0x3+-parseInt(_0x5d5764(0x132))/0x4+parseInt(_0x5d5764(0x12f))/0x5*(-parseInt(_0x5d5764(0x136))/0x6)+-parseInt(_0x5d5764(0x12b))/0x7*(parseInt(_0x5d5764(0x130))/0x8)+parseInt(_0x5d5764(0x137))/0x9+parseInt(_0x5d5764(0x134))/0xa;if(_0x2903ad===_0x42e5d6)break;else _0x359d82['push'](_0x359d82['shift']());}catch(_0x19b6f3){_0x359d82['push'](_0x359d82['shift']());}}}(a127_0x4e10,0xf09dd));export const isWindows=process[a127_0x166a45(0x135)]===a127_0x166a45(0x133);export function resolveNpmBin(_0x1efc16){const _0x4184fe=a127_0x166a45;return isWindows?_0x1efc16+_0x4184fe(0x12d):_0x1efc16;}
|