@lovrabet/lovrabet-cli 2.1.22-beta.2 → 2.1.22-beta.4
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/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.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
|
-
|
|
1
|
+
function a113_0x485c(){const _0x11464d=['2620FIPtIi','validation','errors','fileHashes','entries','test','skillName','contents','72XdZbMB','replace','length','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','toString','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','trim','map','slice','utf8','223674EMPsDP','name','displayName','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','---','isFile','contentHash','149755HInKCP','set','join','630XcJYoF','appCode','filter','description:\x20','4LrjVBD','description','.\x20Changed\x20file:\x20','2318170zeEfVo','Runtime\x20Skill\x20package\x20is\x20missing\x20','packageBytes','\x0a---\x0a\x0a','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','accessKey','pulledAt','168sJQkAd','trimEnd','4027824rPTpQn','has','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','3796998HgFPwQ','1404yJDzTw','path','101576hIrgPg','find'];a113_0x485c=function(){return _0x11464d;};return a113_0x485c();}(function(_0x278d0a,_0x2111bf){const _0x5adf27=a113_0x2012,_0x4559d6=_0x278d0a();while(!![]){try{const _0x1dfb26=parseInt(_0x5adf27(0x14c))/0x1*(-parseInt(_0x5adf27(0x169))/0x2)+parseInt(_0x5adf27(0x147))/0x3*(-parseInt(_0x5adf27(0x138))/0x4)+-parseInt(_0x5adf27(0x166))/0x5*(parseInt(_0x5adf27(0x154))/0x6)+-parseInt(_0x5adf27(0x142))/0x7*(-parseInt(_0x5adf27(0x14a))/0x8)+parseInt(_0x5adf27(0x144))/0x9+parseInt(_0x5adf27(0x13b))/0xa+parseInt(_0x5adf27(0x15f))/0xb*(parseInt(_0x5adf27(0x148))/0xc);if(_0x1dfb26===_0x2111bf)break;else _0x4559d6['push'](_0x4559d6['shift']());}catch(_0x5a4ca1){_0x4559d6['push'](_0x4559d6['shift']());}}}(a113_0x485c,0xded8d));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(_0xa378cb,_0x4ee86f,_0x4ceb4c){const _0x4f31a0=a113_0x2012,_0xcd2ad7=requireSkillCode(_0xa378cb),_0x2b7057=requirePackageBytes(_0xcd2ad7,_0x4ceb4c[_0x4f31a0(0x13d)]),_0x4f5f87=extractDownloadedPackage(_0x2b7057),_0x3eb6af=_0x4f5f87['find'](_0x7badcf=>_0x7badcf[_0x4f31a0(0x149)]===SKILL_FILE);if(!_0x3eb6af)throw CliErrors['validation'](_0x4f31a0(0x13c)+SKILL_FILE+':\x20'+_0xcd2ad7);const _0x50ead3=withMaterializedSkillFrontmatter(_0x4f5f87,_0xa378cb,_0xcd2ad7),_0x5b58e4=_0x50ead3[_0x4f31a0(0x14b)](_0x40f39c=>_0x40f39c[_0x4f31a0(0x149)]===SKILL_FILE),_0x387ae1=fileText(_0x5b58e4),_0x734e8c=getRuntimeSkillDir(_0x4ceb4c['env'],_0x4ceb4c[_0x4f31a0(0x140)],_0x4ceb4c[_0x4f31a0(0x16a)],_0x4ee86f,_0xcd2ad7,_0x4ceb4c['paths']),_0x3484d6=resolve(_0x734e8c,SKILL_FILE),_0x6a2dd5=resolve(_0x734e8c,METADATA_FILE),_0x5de698=contentHash(_0x387ae1),_0x25e6a5=readMetadataIfPresent(_0x6a2dd5)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x734e8c,_0x6a2dd5,_0x50ead3,_0x4ceb4c['force']===!![]),mkdirSync(_0x734e8c,{'recursive':!![],'mode':0x1c0});const _0x2dfdf5=existsSync(_0x3484d6)?readFileSync(_0x3484d6,_0x4f31a0(0x15e)):undefined;return materializeFiles(_0x734e8c,_0x50ead3),removeStaleManagedFiles(_0x734e8c,_0x25e6a5,_0x50ead3),writeJsonAtomic(_0x6a2dd5,buildMetadata(_0xa378cb,_0x4ee86f,_0x4ceb4c[_0x4f31a0(0x16a)],_0x5de698,_0x4ceb4c[_0x4f31a0(0x141)],_0x50ead3,_0x2b7057)),{'skill':_0xa378cb,'scope':_0x4ee86f,'dir':_0x734e8c,'skillMdPath':_0x3484d6,'metadataPath':_0x6a2dd5,'contentHash':_0x5de698,'changed':_0x2dfdf5!==_0x387ae1};}function withMaterializedSkillFrontmatter(_0x33c23b,_0x398e4b,_0x21010c){const _0x358a32=a113_0x2012,_0x13133e=skillDisplayName(_0x398e4b,_0x21010c),_0x106e2e=_0x398e4b['description']?.[_0x358a32(0x15b)]()||_0x13133e||_0x21010c;return normalizeLocalFiles(_0x33c23b)[_0x358a32(0x15c)](_0x41a65f=>{const _0x25bb46=_0x358a32,_0x271fc2=fileText(_0x41a65f);if(_0x41a65f[_0x25bb46(0x149)]!==SKILL_FILE)return _0x41a65f;if(hasYamlFrontmatter(_0x271fc2))return{'path':_0x41a65f[_0x25bb46(0x149)],'content':withSyncedDisplayName(_0x271fc2,_0x13133e)};return{'path':_0x41a65f[_0x25bb46(0x149)],'content':prependSkillFrontmatter(_0x271fc2,{'name':_0x21010c,'displayName':_0x13133e,'description':_0x106e2e})};});}function hasYamlFrontmatter(_0x5df968){const _0x4f9535=a113_0x2012;return/^\uFEFF?---\s*\r?\n/[_0x4f9535(0x151)](_0x5df968);}function prependSkillFrontmatter(_0xa33063,_0x333c00){const _0x1d7cf4=a113_0x2012,_0xcd0e70=_0xa33063['replace'](/^\uFEFF/,'');return[_0x1d7cf4(0x163),'name:\x20'+yamlString(_0x333c00[_0x1d7cf4(0x160)]),_0x333c00[_0x1d7cf4(0x161)]?'displayName:\x20'+yamlString(_0x333c00['displayName']):undefined,_0x1d7cf4(0x16c)+yamlString(_0x333c00[_0x1d7cf4(0x139)]),_0x1d7cf4(0x163),'',_0xcd0e70][_0x1d7cf4(0x16b)](_0x3c2e7a=>_0x3c2e7a!==undefined)[_0x1d7cf4(0x168)]('\x0a');}function yamlString(_0xe8d130){const _0x10fc1d=a113_0x2012;return JSON['stringify'](_0xe8d130['replace'](/\r/g,'')[_0x10fc1d(0x15b)]());}function skillDisplayName(_0x1660e5,_0x4d0df0){const _0x16b078=a113_0x2012,_0x1bcf06=_0x1660e5[_0x16b078(0x152)]?.[_0x16b078(0x15b)]();return _0x1bcf06||_0x4d0df0;}function withSyncedDisplayName(_0x291efa,_0x388a0a){const _0x10ff07=a113_0x2012,_0x5c8c83=_0x291efa['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5c8c83)return _0x291efa;const _0xabadbe=_0x5c8c83[0x1]??'',_0x49a02c=_0x5c8c83[0x2]??'',_0xe606a0=parseDocument(_0x49a02c);if(_0xe606a0[_0x10ff07(0x14e)][_0x10ff07(0x156)]>0x0||!isMap(_0xe606a0[_0x10ff07(0x153)]))return _0x291efa;if(_0x388a0a)_0xe606a0[_0x10ff07(0x167)](_0x10ff07(0x161),_0x388a0a);else{if(_0xe606a0[_0x10ff07(0x145)](_0x10ff07(0x161)))_0xe606a0['delete'](_0x10ff07(0x161));else return _0x291efa;}forceBlockCollections(_0xe606a0[_0x10ff07(0x153)]);const _0x333efe=_0xe606a0[_0x10ff07(0x159)]({'lineWidth':0x0})[_0x10ff07(0x143)](),_0x5bc4f8=_0x291efa[_0x10ff07(0x15d)](_0x5c8c83[0x0][_0x10ff07(0x156)])[_0x10ff07(0x155)](/^\r?\n/,'');return _0xabadbe+'---\x0a'+_0x333efe+_0x10ff07(0x13e)+_0x5bc4f8;}function forceBlockCollections(_0x3137c7){if(!isNode(_0x3137c7))return;visit(_0x3137c7,(_0x2cef5a,_0x2fc133)=>{isCollection(_0x2fc133)&&(_0x2fc133['flow']=![]);});}function ensurePulledFilesCanBeOverwritten(_0x486a8e,_0x594e7e,_0x340175,_0x55777d){const _0x23f530=a113_0x2012;if(_0x55777d||!existsSync(_0x594e7e))return;const _0x10b634=readMetadataIfPresent(_0x594e7e);if(!_0x10b634)return;const _0x4cbc7a=_0x10b634[_0x23f530(0x14f)]&&Object['keys'](_0x10b634[_0x23f530(0x14f)])[_0x23f530(0x156)]>0x0?_0x10b634[_0x23f530(0x14f)]:undefined;if(_0x4cbc7a)for(const [_0x3c6369,_0x30763d]of Object[_0x23f530(0x150)](_0x4cbc7a)){const _0x2f4c96=resolveManagedFilePath(_0x486a8e,_0x3c6369);if(!existsSync(_0x2f4c96))throw CliErrors[_0x23f530(0x14d)](_0x23f530(0x146)+_0x486a8e,_0x23f530(0x158)+_0x3c6369);const _0x4471f2=lstatSync(_0x2f4c96);if(!_0x4471f2[_0x23f530(0x164)]())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x486a8e,_0x23f530(0x157)+_0x3c6369);const _0x5322f9=bufferSha256(readFileSync(_0x2f4c96));if(_0x5322f9!==_0x30763d)throw CliErrors[_0x23f530(0x14d)](_0x23f530(0x146)+_0x486a8e+_0x23f530(0x13a)+_0x3c6369,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x3c6369);}else{const _0xb444ee=resolve(_0x486a8e,SKILL_FILE);if(existsSync(_0xb444ee)&&_0x10b634[_0x23f530(0x165)]){const _0x4c94ce=contentHash(readFileSync(_0xb444ee,_0x23f530(0x15e)));if(_0x4c94ce!==_0x10b634[_0x23f530(0x165)])throw CliErrors['validation'](_0x23f530(0x15a)+_0xb444ee,_0x23f530(0x13f));}}for(const _0x1210f2 of normalizeLocalFiles(_0x340175)){if(_0x4cbc7a?.[_0x1210f2['path']])continue;if(!_0x4cbc7a&&_0x1210f2[_0x23f530(0x149)]===SKILL_FILE)continue;const _0x496f68=resolveManagedFilePath(_0x486a8e,_0x1210f2[_0x23f530(0x149)]);if(!existsSync(_0x496f68))continue;const _0x55f445=lstatSync(_0x496f68);if(!_0x55f445[_0x23f530(0x164)]())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x486a8e,_0x23f530(0x162)+_0x1210f2[_0x23f530(0x149)]);const _0xd10beb=bufferSha256(readFileSync(_0x496f68));if(_0xd10beb!==fileHash(_0x1210f2))throw CliErrors[_0x23f530(0x14d)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x486a8e,'Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20'+_0x1210f2[_0x23f530(0x149)]);}}function a113_0x2012(_0x2ca76d,_0x4ecd1f){_0x2ca76d=_0x2ca76d-0x138;const _0x485c3c=a113_0x485c();let _0x20128a=_0x485c3c[_0x2ca76d];return _0x20128a;}function materializeFiles(_0x18394e,_0x3f3af2){for(const _0x79a637 of normalizeLocalFiles(_0x3f3af2)){const _0x2e06bc=resolveManagedFilePath(_0x18394e,_0x79a637['path']);mkdirSync(dirname(_0x2e06bc),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x2e06bc,fileContent(_0x79a637),0x180);}}function removeStaleManagedFiles(_0x43d6cf,_0x41ce76,_0x1acb0c){const _0x2bdcae=a113_0x2012;if(!_0x41ce76)return;const _0x5870cd=new Set(normalizeLocalFiles(_0x1acb0c)[_0x2bdcae(0x15c)](_0x2642e6=>_0x2642e6[_0x2bdcae(0x149)]));for(const _0x392941 of Object['keys'](_0x41ce76)){if(_0x5870cd[_0x2bdcae(0x145)](_0x392941))continue;const _0x4aa41f=resolveManagedFilePath(_0x43d6cf,_0x392941);existsSync(_0x4aa41f)&&lstatSync(_0x4aa41f)[_0x2bdcae(0x164)]()&&rmSync(_0x4aa41f,{'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a2526,_0x17c135){const _0x303da1=a114_0x5655,_0x4e182b=_0x3a2526();while(!![]){try{const _0x31cba8=parseInt(_0x303da1(0x1f6))/0x1*(parseInt(_0x303da1(0x202))/0x2)+parseInt(_0x303da1(0x216))/0x3+parseInt(_0x303da1(0x20b))/0x4*(parseInt(_0x303da1(0x1fc))/0x5)+parseInt(_0x303da1(0x215))/0x6*(parseInt(_0x303da1(0x1fe))/0x7)+-parseInt(_0x303da1(0x1f2))/0x8*(-parseInt(_0x303da1(0x200))/0x9)+-parseInt(_0x303da1(0x1f9))/0xa*(-parseInt(_0x303da1(0x1fa))/0xb)+-parseInt(_0x303da1(0x213))/0xc;if(_0x31cba8===_0x17c135)break;else _0x4e182b['push'](_0x4e182b['shift']());}catch(_0xf26137){_0x4e182b['push'](_0x4e182b['shift']());}}}(a114_0x16ed,0xe69b6));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';function a114_0x5655(_0x250f9c,_0x46a8da){_0x250f9c=_0x250f9c-0x1f2;const _0x16ed02=a114_0x16ed();let _0x5655ff=_0x16ed02[_0x250f9c];return _0x5655ff;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x5d891e,_0x41a578,_0x249c71,_0x382074,_0x35258a,_0x347c46,_0x59b6e0){const _0x150de2=a114_0x5655,_0x3291a2=_0x347c46?normalizeLocalFiles(_0x347c46):[],_0x237d4b=!_0x59b6e0&&_0x3291a2['length']>0x0?buildSkillPackage(_0x3291a2):undefined,_0x1a25c1=_0x59b6e0?bufferSha256(_0x59b6e0):_0x237d4b?.['manifest']['zipSha256'],_0xf5d324=_0x59b6e0?.[_0x150de2(0x20a)]??_0x237d4b?.[_0x150de2(0x1fd)][_0x150de2(0x211)],_0x8ef3ae=_0x3291a2[_0x150de2(0x20a)]>0x0?Object[_0x150de2(0x214)](_0x3291a2[_0x150de2(0x209)](_0x1a7b85=>[_0x1a7b85[_0x150de2(0x20e)],fileHash(_0x1a7b85)])):undefined;return{'schemaVersion':_0x3291a2[_0x150de2(0x20a)]>0x0?0x2:0x1,'id':_0x5d891e['id'],'appCode':_0x249c71,'skillCode':requireSkillCode(_0x5d891e),'skillName':_0x5d891e[_0x150de2(0x218)],'description':_0x5d891e[_0x150de2(0x1f4)],'scope':_0x41a578,'readonly':_0x41a578!==_0x150de2(0x217)||_0x5d891e[_0x150de2(0x212)]===!![],'tenantCode':_0x5d891e['tenantCode'],'userId':_0x5d891e[_0x150de2(0x20c)],'version':_0x5d891e[_0x150de2(0x1f7)],'status':_0x5d891e[_0x150de2(0x1f5)],'tags':Array[_0x150de2(0x204)](_0x5d891e['tags'])?_0x5d891e[_0x150de2(0x206)]:[],'hasUpstreamUpdate':_0x5d891e[_0x150de2(0x1fb)],'forkedFromSkillId':_0x5d891e[_0x150de2(0x1ff)],'forkedFromVersion':_0x5d891e[_0x150de2(0x201)],'sourceSessionId':_0x5d891e[_0x150de2(0x1f3)],'contentHash':_0x382074,'fileHashes':_0x8ef3ae,'treeHash':_0x3291a2['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x3291a2)):undefined,'ossPath':remoteManifestOssPath(_0x5d891e['files']),'zipSha256':_0x1a25c1,'zipSize':_0xf5d324,'files':_0x3291a2[_0x150de2(0x20a)]>0x0?_0x3291a2[_0x150de2(0x209)](_0x45fdb0=>({'path':_0x45fdb0[_0x150de2(0x20e)],'hash':fileHash(_0x45fdb0),'size':fileContent(_0x45fdb0)[_0x150de2(0x20a)]})):undefined,'pulledAt':_0x35258a??new Date()[_0x150de2(0x207)]()};}function a114_0x16ed(){const _0x31befe=['readonly','52509972huyPWt','fromEntries','12ebqQOg','4192035WzBmQP','personal','skillName','224104wZBVfq','sourceSessionId','description','status','684176TPLTmV','version','trim','3070aqNQLD','4818tgRJza','hasUpstreamUpdate','5YpXjnr','manifest','4090639qxdaNe','forkedFromSkillId','63nSCRwc','forkedFromVersion','4cJbRBW','skillCode','isArray','string','tags','toISOString','parse','map','length','4221556waasiW','userId','validation','path','utf8','Runtime\x20Skill\x20is\x20missing\x20skillCode.','zipSize'];a114_0x16ed=function(){return _0x31befe;};return a114_0x16ed();}export function requireSkillCode(_0x31561b){const _0x1635cf=a114_0x5655,_0x3e8cad=_0x31561b[_0x1635cf(0x203)]?.[_0x1635cf(0x1f8)]();if(!_0x3e8cad)throw CliErrors['validation'](_0x1635cf(0x210));return _0x3e8cad;}export function readMetadataIfPresent(_0x21f126){const _0x28038a=a114_0x5655;if(!existsSync(_0x21f126))return undefined;try{const _0x2922bb=JSON[_0x28038a(0x208)](readFileSync(_0x21f126,_0x28038a(0x20f)));return _0x2922bb;}catch{throw CliErrors[_0x28038a(0x20d)]('Invalid\x20'+METADATA_FILE+':\x20'+_0x21f126);}}function remoteManifestOssPath(_0x497bac){const _0x3399d0=a114_0x5655;if(!_0x497bac||typeof _0x497bac!=='object'||Array['isArray'](_0x497bac))return undefined;const _0x21f7df=_0x497bac['ossPath'];return typeof _0x21f7df===_0x3399d0(0x205)&&_0x21f7df[_0x3399d0(0x1f8)]()?_0x21f7df[_0x3399d0(0x1f8)]():undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0xaa0ea3=a115_0x4e56;(function(_0x5c4d0e,_0xe836a0){const _0x4319bd=a115_0x4e56,_0x602bd=_0x5c4d0e();while(!![]){try{const _0x3faf27=parseInt(_0x4319bd(0x1c5))/0x1+parseInt(_0x4319bd(0x1b6))/0x2+parseInt(_0x4319bd(0x1c4))/0x3+parseInt(_0x4319bd(0x1ca))/0x4+-parseInt(_0x4319bd(0x1b2))/0x5+-parseInt(_0x4319bd(0x1cc))/0x6*(-parseInt(_0x4319bd(0x1d0))/0x7)+parseInt(_0x4319bd(0x1be))/0x8*(-parseInt(_0x4319bd(0x1c8))/0x9);if(_0x3faf27===_0xe836a0)break;else _0x602bd['push'](_0x602bd['shift']());}catch(_0xe2a785){_0x602bd['push'](_0x602bd['shift']());}}}(a115_0xc553,0x2cc76));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';function a115_0x4e56(_0x2ba318,_0xca8d11){_0x2ba318=_0x2ba318-0x1b2;const _0xc55338=a115_0xc553();let _0x4e5626=_0xc55338[_0x2ba318];return _0x4e5626;}import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';function a115_0xc553(){const _0x1045ea=['claudeSkillsDir','364018tWMkpS','skillCode','.workbuddy','agentsSkillsDir','path\x20segment','filter','trim','Unsafe\x20','8LPCKMH','validation','appCode','.claude','SKILL_ROOT','.agents','714060fMXQju','154163kUOrac','\x20for\x20local\x20path:\x20','includes','5203053wfXego','CLAUDE_SKILL_ROOT','1037064lVPAeY','cacheRoot','156AdmCuH','workbuddySkillsDir','skills','homeDirName','14567aWfmpK','630165NBAOkZ','cache','homeDir'];a115_0xc553=function(){return _0x1045ea;};return a115_0xc553();}export function resolveSkillSyncPaths(_0x694363={}){const _0x2f9817=a115_0x4e56,_0x5a6afb=_0x694363[_0x2f9817(0x1b4)]??homedir(),_0x4af0df=resolve(_0x5a6afb,PRODUCT_CONFIG[_0x2f9817(0x1cf)],_0x2f9817(0x1b3)),_0x53e12e=trimmedEnv(_0x2f9817(0x1c2)),_0xe8b58d=trimmedEnv(_0x2f9817(0x1c9)),_0x2eb992=resolve(_0x5a6afb,_0x2f9817(0x1b8)),_0xdb5bc4=_0x694363[_0x2f9817(0x1cd)]??(existsSync(_0x2eb992)?resolve(_0x2eb992,_0x2f9817(0x1ce)):undefined);return{'homeDir':_0x5a6afb,'cacheRoot':_0x4af0df,'managedRoot':resolve(_0x5a6afb,PRODUCT_CONFIG[_0x2f9817(0x1cf)]),'agentsSkillsDir':_0x694363[_0x2f9817(0x1b9)]??_0x53e12e??resolve(_0x5a6afb,_0x2f9817(0x1c3),_0x2f9817(0x1ce)),'claudeSkillsDir':_0x694363[_0x2f9817(0x1b5)]??_0xe8b58d??resolve(_0x5a6afb,_0x2f9817(0x1c1),_0x2f9817(0x1ce)),'workbuddySkillsDir':_0xdb5bc4};}export function runtimeAgentSkillRoots(_0x46c24c){const _0x527e0f=a115_0x4e56;return[_0x46c24c[_0x527e0f(0x1b9)],_0x46c24c['claudeSkillsDir'],_0x46c24c[_0x527e0f(0x1cd)]][_0x527e0f(0x1bb)](_0x2e27e9=>Boolean(_0x2e27e9));}export function getRuntimeSkillCacheRoot(_0x5ab84f,_0x5ce620,_0x33bcaf={}){const _0x260a0f=a115_0x4e56,_0x20e318=resolveSkillSyncPaths(_0x33bcaf);return resolve(_0x20e318[_0x260a0f(0x1cb)],_0x5ab84f,fingerprintAccessKey(_0x5ce620),_0x260a0f(0x1ce));}export function getRuntimeSkillDir(_0x2053d4,_0x24e57a,_0x39b885,_0x242fd1,_0x243058,_0x1cfb60={}){const _0x2e61c7=a115_0x4e56;return resolve(getRuntimeSkillCacheRoot(_0x2053d4,_0x24e57a,_0x1cfb60),safePathSegment(_0x39b885,_0x2e61c7(0x1c0)),_0x242fd1,safePathSegment(_0x243058,_0x2e61c7(0x1b7)));}export function safePathSegment(_0x59f08c,_0x36851f=a115_0xaa0ea3(0x1ba)){const _0x9c27b0=a115_0xaa0ea3;if(!_0x59f08c||_0x59f08c[_0x9c27b0(0x1c7)]('/')||_0x59f08c['includes']('\x5c')||_0x59f08c[_0x9c27b0(0x1c7)]('..'))throw CliErrors[_0x9c27b0(0x1bf)](_0x9c27b0(0x1bd)+_0x36851f+_0x9c27b0(0x1c6)+_0x59f08c);return _0x59f08c;}function trimmedEnv(_0x3df629){const _0x465f16=a115_0xaa0ea3,_0x5427fa=productEnv(_0x3df629)?.[_0x465f16(0x1bc)]();return _0x5427fa?_0x5427fa:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d94cd,_0x3209d7){const _0x38ece2=a116_0x4ef1,_0xfb8de0=_0x5d94cd();while(!![]){try{const _0x81d5ef=-parseInt(_0x38ece2(0x186))/0x1*(parseInt(_0x38ece2(0x1af))/0x2)+parseInt(_0x38ece2(0x1a3))/0x3*(parseInt(_0x38ece2(0x1a6))/0x4)+-parseInt(_0x38ece2(0x1ad))/0x5+-parseInt(_0x38ece2(0x19c))/0x6+-parseInt(_0x38ece2(0x1b0))/0x7+parseInt(_0x38ece2(0x190))/0x8+parseInt(_0x38ece2(0x18d))/0x9;if(_0x81d5ef===_0x3209d7)break;else _0xfb8de0['push'](_0xfb8de0['shift']());}catch(_0x2d94f3){_0xfb8de0['push'](_0xfb8de0['shift']());}}}(a116_0x5eb8,0xa615c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a116_0x3ee954}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(_0x4a10a2,_0x178ffa,_0x4a6d10={}){const _0x3f3e8d=a116_0x4ef1,_0x2670d0=resolvePushDirectoryRoot(_0x4a10a2),_0x3fffa4=readPushMetadataIfPresent(resolve(_0x2670d0,METADATA_FILE),{'ignoreInvalidMetadata':_0x4a6d10[_0x3f3e8d(0x1b1)]});if(_0x3fffa4?.[_0x3f3e8d(0x185)]&&_0x3fffa4[_0x3f3e8d(0x185)]!==_0x178ffa&&!_0x4a6d10[_0x3f3e8d(0x180)]&&!_0x4a6d10['ignoreMetadataAppCodeMismatch'])throw CliErrors[_0x3f3e8d(0x1b5)](_0x3f3e8d(0x1a7)+_0x3fffa4[_0x3f3e8d(0x185)]+_0x3f3e8d(0x1a5)+_0x178ffa+'\x22.');const _0x2fba72=resolvePushSkillCode(_0x2670d0,_0x178ffa,_0x3fffa4,_0x4a6d10);if(!_0x2fba72)throw CliErrors[_0x3f3e8d(0x1b5)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x3f3e8d(0x177));return{'dir':_0x2670d0,'skillCode':_0x2fba72,'metadata':_0x3fffa4};}export function readPushDirectory(_0x5940cc,_0x4251f3,_0xf946a1={}){const _0x52cefe=a116_0x4ef1,_0x4c924b=resolvePushDirectoryIdentity(_0x5940cc,_0x4251f3,_0xf946a1),_0x19f399=_0x4c924b[_0x52cefe(0x198)],_0xad5cee=resolve(_0x19f399,SKILL_FILE);if(!existsSync(_0xad5cee)||!lstatSync(_0xad5cee)[_0x52cefe(0x18e)]())throw CliErrors[_0x52cefe(0x1b5)](_0x52cefe(0x179)+SKILL_FILE+':\x20'+_0xad5cee);const _0x5a87c7=_0x4c924b[_0x52cefe(0x1a2)],_0x130144=_0xf946a1[_0x52cefe(0x1b2)]??'personal';if(!_0xf946a1['ignoreMetadataScope']&&_0x5a87c7?.['scope']===_0x52cefe(0x192))throw CliErrors[_0x52cefe(0x1b5)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x5a87c7[_0x52cefe(0x176)]+'\x22.');if(!_0xf946a1[_0x52cefe(0x187)]&&_0x130144===_0x52cefe(0x188)&&_0x5a87c7?.[_0x52cefe(0x176)]&&_0x5a87c7[_0x52cefe(0x176)]!==_0x52cefe(0x188))throw CliErrors['validation'](_0x52cefe(0x19e)+METADATA_FILE+_0x52cefe(0x1aa)+_0x5a87c7[_0x52cefe(0x176)]+'\x22.',_0x52cefe(0x178)+_0x19f399+_0x52cefe(0x19d));const _0x2ca268=scanSkillDirectory(_0x19f399),_0x586fea=buildSkillPackage(_0x2ca268),_0x54afe8=readFileSync(_0xad5cee,_0x52cefe(0x1a8)),_0x53da84=_0x4c924b[_0x52cefe(0x18b)],_0x720293=_0xf946a1['ignoreMetadataForPayload']?undefined:_0x5a87c7,_0x5749a6=readSkillDisplayName(_0x54afe8);return{'skillCode':_0x53da84,'metadata':_0x5a87c7,'frontmatterDisplayName':_0x5749a6,'input':{'skillCode':_0x53da84,'skillName':_0x5749a6??_0x720293?.[_0x52cefe(0x17b)],'description':_0x720293?.['description'],'content':_0x54afe8,'files':_0x586fea[_0x52cefe(0x1b3)],'packageBase64':_0x586fea[_0x52cefe(0x195)],'tags':_0x720293?.[_0x52cefe(0x1ab)],'version':_0x720293?.['version'],'sourceSessionId':_0x720293?.[_0x52cefe(0x191)]}};}function a116_0x4ef1(_0x3ca8fe,_0x22c49e){_0x3ca8fe=_0x3ca8fe-0x175;const _0x5eb8ed=a116_0x5eb8();let _0x4ef117=_0x5eb8ed[_0x3ca8fe];return _0x4ef117;}export function refreshPushDirectoryMetadataFromRemote(_0x3acb95,_0x3e76ce,_0x3bbd66,_0x49893c={}){const _0xde5bba=a116_0x4ef1,_0x51223a=resolvePushDirectoryRoot(_0x3acb95),_0x3674cf=readPushMetadataIfPresent(resolve(_0x51223a,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x48d59f=requireRemoteScope(_0x3e76ce),_0x5bb728=readLocalSkillContent(_0x51223a),_0x4a519f={..._0x3e76ce,'appCode':_0x3e76ce['appCode']??_0x3bbd66,'skillName':_0x3e76ce[_0xde5bba(0x17b)]??_0x3674cf?.[_0xde5bba(0x17b)],'description':_0x3e76ce['description']??_0x3674cf?.[_0xde5bba(0x196)],'tags':Array[_0xde5bba(0x175)](_0x3e76ce[_0xde5bba(0x1ab)])?_0x3e76ce[_0xde5bba(0x1ab)]:_0x3674cf?.[_0xde5bba(0x1ab)],'sourceSessionId':_0x3e76ce['sourceSessionId']??_0x3674cf?.[_0xde5bba(0x191)],'content':_0x3e76ce[_0xde5bba(0x181)]??_0x5bb728},_0xb424d9=buildMetadata(_0x4a519f,_0x48d59f,_0x3bbd66,contentHash(_0x5bb728),_0x49893c[_0xde5bba(0x197)]);writeJsonAtomic(resolve(_0x51223a,METADATA_FILE),_0xb424d9);}export function recordPushedRuntimeSkill(_0x593767,_0x22afd1,_0x1a9d2c,_0x432e2b={}){const _0x2e5082=a116_0x4ef1,_0x5aca0f=resolvePushDirectoryRoot(_0x593767),_0x3a2641=scanSkillDirectory(_0x5aca0f),_0x162f3=_0x3a2641[_0x2e5082(0x18a)](_0x1c6a6e=>_0x1c6a6e[_0x2e5082(0x1ac)]===SKILL_FILE),_0x464624=_0x162f3?fileText(_0x162f3):'',_0x1f8e8b=tryNormalizePackageManifest(_0x22afd1[_0x2e5082(0x18f)]),_0x57ed0a={..._0x22afd1,'content':_0x22afd1[_0x2e5082(0x181)]??_0x464624,'files':_0x1f8e8b},_0x46579d=_0x1f8e8b?normalizeLocalFiles(_0x3a2641)[_0x2e5082(0x194)](_0x12c15f=>_0x1f8e8b[_0x2e5082(0x18f)][_0x2e5082(0x17e)](_0x391984=>_0x391984[_0x2e5082(0x1ac)]===_0x12c15f['path'])):undefined,_0x4a6a65=buildMetadata(_0x57ed0a,_0x432e2b[_0x2e5082(0x176)]??_0x2e5082(0x188),_0x1a9d2c,contentHash(_0x57ed0a[_0x2e5082(0x181)]??''),_0x432e2b[_0x2e5082(0x17c)],_0x46579d);writeJsonAtomic(resolve(_0x5aca0f,METADATA_FILE),_0x4a6a65);}export function deriveSkillCodeFromDirectory(_0x56c14f,_0x544879){const _0x4d4d73=a116_0x4ef1,_0xe87b02=basename(resolve(_0x56c14f)),_0x24dbd3=_0x544879+'--';return _0xe87b02[_0x4d4d73(0x19f)](_0x24dbd3)?_0xe87b02[_0x4d4d73(0x193)](_0x24dbd3[_0x4d4d73(0x19b)]):_0xe87b02;}function a116_0x5eb8(){const _0x432e86=['utf8','ignoreMetadataSkillCode','\x20has\x20scope=\x22','tags','path','1724575KoLRkr','object','1233330LmOgHD','341138khFVRo','ignoreInvalidMetadata','targetScope','manifest','company','validation','isArray','scope',',\x20or\x20directory\x20name.','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','Missing\x20','match','skillName','pushedAt','isDirectory','some','Skill\x20directory\x20not\x20found:\x20','allowAppCodeRetarget','content','isSymbolicLink','name','\x20has\x20unsupported\x20scope\x20\x22','appCode','1vcpSZl','ignoreMetadataScope','personal','replace','find','skillCode','displayName','4196592dDoFif','isFile','files','2408088dFUptA','sourceSessionId','builtin','slice','filter','packageBase64','description','refreshedAt','dir','(unknown)','unknown','length','1876488YshQDZ','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','startsWith','trim','toLowerCase','metadata','3057hIenFd','Invalid\x20','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','4852DHCTHK','Skill\x20metadata\x20appCode\x20\x22'];a116_0x5eb8=function(){return _0x432e86;};return a116_0x5eb8();}function resolvePushSkillCode(_0x2b2cc9,_0xaa8a6,_0x5ad974,_0x521521){const _0xe67d43=a116_0x4ef1,_0x4f233b=deriveSkillCodeFromSkillFile(_0x2b2cc9)||deriveSkillCodeFromDirectory(_0x2b2cc9,_0xaa8a6);if(_0x521521[_0xe67d43(0x1a9)])return _0x4f233b;return _0x5ad974?.[_0xe67d43(0x18b)]?.[_0xe67d43(0x1a0)]()||_0x4f233b;}function deriveSkillCodeFromSkillFile(_0x21fef1){const _0x1eb0fe=a116_0x4ef1,_0xeca6ac=resolve(_0x21fef1,SKILL_FILE);if(!existsSync(_0xeca6ac)||!lstatSync(_0xeca6ac)[_0x1eb0fe(0x18e)]())return undefined;const _0x3f856b=readFileSync(_0xeca6ac,_0x1eb0fe(0x1a8)),_0x19fad2=_0x3f856b[_0x1eb0fe(0x17a)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x19fad2)return undefined;const _0x419199=parseFrontmatterObject(_0x19fad2[0x1]??''),_0x257779=scalarToString(_0x419199?.[_0x1eb0fe(0x183)]);return _0x257779?slugifySkillName(_0x257779):undefined;}function readSkillDisplayName(_0x1e7eb1){const _0x497447=a116_0x4ef1,_0x530bd4=_0x1e7eb1[_0x497447(0x17a)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x530bd4)return undefined;const _0x43c283=parseFrontmatterObject(_0x530bd4[0x1]??'');return scalarToString(_0x43c283?.[_0x497447(0x18c)]);}function slugifySkillName(_0x4b672a){const _0xae025=a116_0x4ef1,_0x114df0=_0x4b672a['trim']()[_0xae025(0x1a1)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')[_0xae025(0x189)](/-+$/,'')[_0xae025(0x189)](/-{2,}/g,'-');if(!_0x114df0)throw CliErrors[_0xae025(0x1b5)](_0xae025(0x1a4)+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x114df0;}function parseFrontmatterObject(_0x5c01a6){const _0x295380=a116_0x4ef1;try{const _0x18db07=a116_0x3ee954(_0x5c01a6);return _0x18db07&&typeof _0x18db07===_0x295380(0x1ae)&&!Array[_0x295380(0x175)](_0x18db07)?_0x18db07:undefined;}catch{return undefined;}}function scalarToString(_0x9f9b41){const _0x89544b=a116_0x4ef1;if(typeof _0x9f9b41==='string')return _0x9f9b41[_0x89544b(0x1a0)]();if(typeof _0x9f9b41==='number'||typeof _0x9f9b41==='boolean')return String(_0x9f9b41);return undefined;}function resolvePushDirectoryRoot(_0x588502){const _0x4a9f80=a116_0x4ef1,_0x350c69=resolve(_0x588502);if(!existsSync(_0x350c69))throw CliErrors[_0x4a9f80(0x1b5)](_0x4a9f80(0x17f)+_0x588502);const _0x22e78c=lstatSync(_0x350c69);if(_0x22e78c[_0x4a9f80(0x17d)]())return _0x350c69;if(_0x22e78c[_0x4a9f80(0x182)]()){const _0x4c7586=realpathSync(_0x350c69);if(lstatSync(_0x4c7586)['isDirectory']())return _0x4c7586;}throw CliErrors[_0x4a9f80(0x1b5)](_0x4a9f80(0x17f)+_0x588502);}function requireRemoteScope(_0xdfc5f7){const _0x45ebc1=a116_0x4ef1;if(_0xdfc5f7[_0x45ebc1(0x176)]===_0x45ebc1(0x188)||_0xdfc5f7[_0x45ebc1(0x176)]===_0x45ebc1(0x1b4)||_0xdfc5f7['scope']===_0x45ebc1(0x192))return _0xdfc5f7[_0x45ebc1(0x176)];throw CliErrors[_0x45ebc1(0x1b5)]('Remote\x20Skill\x20'+(_0xdfc5f7['skillCode']||_0x45ebc1(0x199))+_0x45ebc1(0x184)+(_0xdfc5f7[_0x45ebc1(0x176)]??_0x45ebc1(0x19a))+'\x22.');}function readLocalSkillContent(_0xdfabc){const _0x344dd1=a116_0x4ef1,_0x4834e9=resolve(_0xdfabc,SKILL_FILE);return existsSync(_0x4834e9)&&lstatSync(_0x4834e9)[_0x344dd1(0x18e)]()?readFileSync(_0x4834e9,_0x344dd1(0x1a8)):'';}function readPushMetadataIfPresent(_0x4a01fe,_0x9271fd={}){const _0x5151d3=a116_0x4ef1;try{return readMetadataIfPresent(_0x4a01fe);}catch(_0x382b90){if(_0x9271fd[_0x5151d3(0x1b1)])return undefined;throw _0x382b90;}}
|
|
1
|
+
function a116_0x1563(){const _0x4dc2ba=['find','path','boolean','scope','ignoreMetadataScope','number','2010240KvHRlB','skillName','\x20name\x20for\x20SkillHub\x20slug\x20generation.','company','1405rZVFvt','files','10700OiXpPa','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','string','\x20has\x20scope=\x22','Skill\x20metadata\x20appCode\x20\x22','isFile','4714254Xypzca','pushedAt','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','isArray','packageBase64','targetScope','(unknown)','ignoreMetadataAppCodeMismatch','tags','Remote\x20Skill\x20','builtin','personal','23173000tMOvQd','skillCode','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','\x20has\x20unsupported\x20scope\x20\x22','isSymbolicLink','slice','Missing\x20','filter','content','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','validation','dir','manifest','name','object','toLowerCase','Skill\x20directory\x20not\x20found:\x20','1235261EUpTMe','length','utf8','allowAppCodeRetarget','isDirectory','displayName','description','trim','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22',',\x20or\x20directory\x20name.','some','match','refreshedAt','ignoreMetadataSkillCode','appCode','sourceSessionId','Unable\x20to\x20resolve\x20skillCode\x20from\x20','2472549wycgXf','replace','5520641AlaqMQ','ignoreInvalidMetadata'];a116_0x1563=function(){return _0x4dc2ba;};return a116_0x1563();}(function(_0x5f3e01,_0x506304){const _0x4ce5bb=a116_0x3e84,_0x26597d=_0x5f3e01();while(!![]){try{const _0x1b9b59=-parseInt(_0x4ce5bb(0x121))/0x1+-parseInt(_0x4ce5bb(0x13c))/0x2+parseInt(_0x4ce5bb(0x132))/0x3+-parseInt(_0x4ce5bb(0x142))/0x4*(-parseInt(_0x4ce5bb(0x140))/0x5)+-parseInt(_0x4ce5bb(0x148))/0x6+-parseInt(_0x4ce5bb(0x134))/0x7+parseInt(_0x4ce5bb(0x154))/0x8;if(_0x1b9b59===_0x506304)break;else _0x26597d['push'](_0x26597d['shift']());}catch(_0x38e706){_0x26597d['push'](_0x26597d['shift']());}}}(a116_0x1563,0xa0942));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a116_0x13c828}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(_0x2fe8a0,_0x62856b,_0x4301af={}){const _0xbf3792=a116_0x3e84,_0x579742=resolvePushDirectoryRoot(_0x2fe8a0),_0xe50d=readPushMetadataIfPresent(resolve(_0x579742,METADATA_FILE),{'ignoreInvalidMetadata':_0x4301af[_0xbf3792(0x135)]});if(_0xe50d?.[_0xbf3792(0x12f)]&&_0xe50d[_0xbf3792(0x12f)]!==_0x62856b&&!_0x4301af[_0xbf3792(0x124)]&&!_0x4301af[_0xbf3792(0x14f)])throw CliErrors[_0xbf3792(0x11a)](_0xbf3792(0x146)+_0xe50d['appCode']+_0xbf3792(0x129)+_0x62856b+'\x22.');const _0x34a61e=resolvePushSkillCode(_0x579742,_0x62856b,_0xe50d,_0x4301af);if(!_0x34a61e)throw CliErrors['validation'](_0xbf3792(0x131)+SKILL_FILE+',\x20'+METADATA_FILE+_0xbf3792(0x12a));return{'dir':_0x579742,'skillCode':_0x34a61e,'metadata':_0xe50d};}export function readPushDirectory(_0x116048,_0x31c325,_0x2e4c59={}){const _0x35ad16=a116_0x3e84,_0x599d14=resolvePushDirectoryIdentity(_0x116048,_0x31c325,_0x2e4c59),_0xb1dc8a=_0x599d14[_0x35ad16(0x11b)],_0x48ef4a=resolve(_0xb1dc8a,SKILL_FILE);if(!existsSync(_0x48ef4a)||!lstatSync(_0x48ef4a)[_0x35ad16(0x147)]())throw CliErrors['validation'](_0x35ad16(0x15a)+SKILL_FILE+':\x20'+_0x48ef4a);const _0x1d76f7=_0x599d14['metadata'],_0x592de9=_0x2e4c59[_0x35ad16(0x14d)]??_0x35ad16(0x153);if(!_0x2e4c59[_0x35ad16(0x13a)]&&_0x1d76f7?.['scope']===_0x35ad16(0x152))throw CliErrors[_0x35ad16(0x11a)](_0x35ad16(0x119)+METADATA_FILE+_0x35ad16(0x145)+_0x1d76f7[_0x35ad16(0x139)]+'\x22.');if(!_0x2e4c59[_0x35ad16(0x13a)]&&_0x592de9===_0x35ad16(0x153)&&_0x1d76f7?.['scope']&&_0x1d76f7[_0x35ad16(0x139)]!=='personal')throw CliErrors[_0x35ad16(0x11a)](_0x35ad16(0x143)+METADATA_FILE+_0x35ad16(0x145)+_0x1d76f7[_0x35ad16(0x139)]+'\x22.',_0x35ad16(0x156)+_0xb1dc8a+_0x35ad16(0x14a));const _0xe8b5ef=scanSkillDirectory(_0xb1dc8a),_0x35e662=buildSkillPackage(_0xe8b5ef),_0x3abe09=readFileSync(_0x48ef4a,_0x35ad16(0x123)),_0x3c7fd7=_0x599d14[_0x35ad16(0x155)],_0x5d8794=_0x2e4c59['ignoreMetadataForPayload']?undefined:_0x1d76f7,_0x26e87d=readSkillDisplayName(_0x3abe09);return{'skillCode':_0x3c7fd7,'metadata':_0x1d76f7,'frontmatterDisplayName':_0x26e87d,'input':{'skillCode':_0x3c7fd7,'skillName':_0x26e87d??_0x5d8794?.[_0x35ad16(0x13d)],'description':_0x5d8794?.['description'],'content':_0x3abe09,'files':_0x35e662[_0x35ad16(0x11c)],'packageBase64':_0x35e662[_0x35ad16(0x14c)],'tags':_0x5d8794?.[_0x35ad16(0x150)],'version':_0x5d8794?.['version'],'sourceSessionId':_0x5d8794?.[_0x35ad16(0x130)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x379119,_0x555997,_0x435291,_0x2519e0={}){const _0x7027b4=a116_0x3e84,_0x386314=resolvePushDirectoryRoot(_0x379119),_0x32260d=readPushMetadataIfPresent(resolve(_0x386314,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x295e04=requireRemoteScope(_0x555997),_0x415a61=readLocalSkillContent(_0x386314),_0x4e487d={..._0x555997,'appCode':_0x555997[_0x7027b4(0x12f)]??_0x435291,'skillName':_0x555997['skillName']??_0x32260d?.[_0x7027b4(0x13d)],'description':_0x555997['description']??_0x32260d?.[_0x7027b4(0x127)],'tags':Array[_0x7027b4(0x14b)](_0x555997[_0x7027b4(0x150)])?_0x555997['tags']:_0x32260d?.[_0x7027b4(0x150)],'sourceSessionId':_0x555997['sourceSessionId']??_0x32260d?.[_0x7027b4(0x130)],'content':_0x555997['content']??_0x415a61},_0x43572a=buildMetadata(_0x4e487d,_0x295e04,_0x435291,contentHash(_0x415a61),_0x2519e0[_0x7027b4(0x12d)]);writeJsonAtomic(resolve(_0x386314,METADATA_FILE),_0x43572a);}export function recordPushedRuntimeSkill(_0x5e6a34,_0x34ccd8,_0x4b08f8,_0x580970={}){const _0x2240a3=a116_0x3e84,_0x2fb1fb=resolvePushDirectoryRoot(_0x5e6a34),_0x14c4e6=scanSkillDirectory(_0x2fb1fb),_0xfaa9b4=_0x14c4e6[_0x2240a3(0x136)](_0x522af2=>_0x522af2[_0x2240a3(0x137)]===SKILL_FILE),_0x3e9975=_0xfaa9b4?fileText(_0xfaa9b4):'',_0x35ddb7=tryNormalizePackageManifest(_0x34ccd8[_0x2240a3(0x141)]),_0x5aae71={..._0x34ccd8,'content':_0x34ccd8[_0x2240a3(0x15c)]??_0x3e9975,'files':_0x35ddb7},_0x489fa8=_0x35ddb7?normalizeLocalFiles(_0x14c4e6)[_0x2240a3(0x15b)](_0x1f7a53=>_0x35ddb7[_0x2240a3(0x141)][_0x2240a3(0x12b)](_0x2acc03=>_0x2acc03[_0x2240a3(0x137)]===_0x1f7a53[_0x2240a3(0x137)])):undefined,_0x40f26d=buildMetadata(_0x5aae71,_0x580970[_0x2240a3(0x139)]??_0x2240a3(0x153),_0x4b08f8,contentHash(_0x5aae71[_0x2240a3(0x15c)]??''),_0x580970[_0x2240a3(0x149)],_0x489fa8);writeJsonAtomic(resolve(_0x2fb1fb,METADATA_FILE),_0x40f26d);}export function deriveSkillCodeFromDirectory(_0x1b3a85,_0x25513b){const _0x24d27a=a116_0x3e84,_0x4309c2=basename(resolve(_0x1b3a85)),_0x153e31=_0x25513b+'--';return _0x4309c2['startsWith'](_0x153e31)?_0x4309c2[_0x24d27a(0x159)](_0x153e31[_0x24d27a(0x122)]):_0x4309c2;}function resolvePushSkillCode(_0x33a55c,_0x14188b,_0x4c31db,_0x1809b1){const _0x1d0ad2=a116_0x3e84,_0x23133b=deriveSkillCodeFromSkillFile(_0x33a55c)||deriveSkillCodeFromDirectory(_0x33a55c,_0x14188b);if(_0x1809b1[_0x1d0ad2(0x12e)])return _0x23133b;return _0x4c31db?.[_0x1d0ad2(0x155)]?.['trim']()||_0x23133b;}function deriveSkillCodeFromSkillFile(_0x5944cc){const _0x8f2bdf=a116_0x3e84,_0x2549a1=resolve(_0x5944cc,SKILL_FILE);if(!existsSync(_0x2549a1)||!lstatSync(_0x2549a1)[_0x8f2bdf(0x147)]())return undefined;const _0x13a6ce=readFileSync(_0x2549a1,'utf8'),_0x3c4c8a=_0x13a6ce[_0x8f2bdf(0x12c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3c4c8a)return undefined;const _0xad66e9=parseFrontmatterObject(_0x3c4c8a[0x1]??''),_0x315480=scalarToString(_0xad66e9?.[_0x8f2bdf(0x11d)]);return _0x315480?slugifySkillName(_0x315480):undefined;}function readSkillDisplayName(_0x3cf9c7){const _0x53dbc3=a116_0x3e84,_0x508bfd=_0x3cf9c7[_0x53dbc3(0x12c)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x508bfd)return undefined;const _0x314d4b=parseFrontmatterObject(_0x508bfd[0x1]??'');return scalarToString(_0x314d4b?.[_0x53dbc3(0x126)]);}function a116_0x3e84(_0x58277d,_0x36572a){_0x58277d=_0x58277d-0x119;const _0x15630a=a116_0x1563();let _0x3e848a=_0x15630a[_0x58277d];return _0x3e848a;}function slugifySkillName(_0x103d51){const _0xba4852=a116_0x3e84,_0x28e296=_0x103d51[_0xba4852(0x128)]()[_0xba4852(0x11f)]()[_0xba4852(0x133)](/[^\p{L}\p{N}\p{So}]+/gu,'-')['replace'](/^-+/,'')['replace'](/-+$/,'')[_0xba4852(0x133)](/-{2,}/g,'-');if(!_0x28e296)throw CliErrors[_0xba4852(0x11a)]('Invalid\x20'+SKILL_FILE+_0xba4852(0x13e));return _0x28e296;}function parseFrontmatterObject(_0x26a6cd){const _0x3f3ef5=a116_0x3e84;try{const _0x8dc9=a116_0x13c828(_0x26a6cd);return _0x8dc9&&typeof _0x8dc9===_0x3f3ef5(0x11e)&&!Array['isArray'](_0x8dc9)?_0x8dc9:undefined;}catch{return undefined;}}function scalarToString(_0x183a2f){const _0x392eef=a116_0x3e84;if(typeof _0x183a2f===_0x392eef(0x144))return _0x183a2f[_0x392eef(0x128)]();if(typeof _0x183a2f===_0x392eef(0x13b)||typeof _0x183a2f===_0x392eef(0x138))return String(_0x183a2f);return undefined;}function resolvePushDirectoryRoot(_0x118d50){const _0x626c6a=a116_0x3e84,_0x3fad00=resolve(_0x118d50);if(!existsSync(_0x3fad00))throw CliErrors['validation'](_0x626c6a(0x120)+_0x118d50);const _0x553689=lstatSync(_0x3fad00);if(_0x553689['isDirectory']())return _0x3fad00;if(_0x553689[_0x626c6a(0x158)]()){const _0x5ab2d5=realpathSync(_0x3fad00);if(lstatSync(_0x5ab2d5)[_0x626c6a(0x125)]())return _0x5ab2d5;}throw CliErrors[_0x626c6a(0x11a)](_0x626c6a(0x120)+_0x118d50);}function requireRemoteScope(_0x5e4f66){const _0x334eac=a116_0x3e84;if(_0x5e4f66[_0x334eac(0x139)]===_0x334eac(0x153)||_0x5e4f66[_0x334eac(0x139)]===_0x334eac(0x13f)||_0x5e4f66[_0x334eac(0x139)]===_0x334eac(0x152))return _0x5e4f66[_0x334eac(0x139)];throw CliErrors[_0x334eac(0x11a)](_0x334eac(0x151)+(_0x5e4f66[_0x334eac(0x155)]||_0x334eac(0x14e))+_0x334eac(0x157)+(_0x5e4f66[_0x334eac(0x139)]??'unknown')+'\x22.');}function readLocalSkillContent(_0xc0bf21){const _0x147fbc=a116_0x3e84,_0x4cd8df=resolve(_0xc0bf21,SKILL_FILE);return existsSync(_0x4cd8df)&&lstatSync(_0x4cd8df)[_0x147fbc(0x147)]()?readFileSync(_0x4cd8df,_0x147fbc(0x123)):'';}function readPushMetadataIfPresent(_0x3cda7e,_0x26b57f={}){const _0x2e59b1=a116_0x3e84;try{return readMetadataIfPresent(_0x3cda7e);}catch(_0x12c86d){if(_0x26b57f[_0x2e59b1(0x135)])return undefined;throw _0x12c86d;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5bd6ea,_0x164713){const _0x13fb14=a117_0x2ee9,_0x3c1cf9=_0x5bd6ea();while(!![]){try{const _0x363548=parseInt(_0x13fb14(0x7f))/0x1*(parseInt(_0x13fb14(0x86))/0x2)+-parseInt(_0x13fb14(0x7b))/0x3*(-parseInt(_0x13fb14(0x79))/0x4)+-parseInt(_0x13fb14(0x85))/0x5*(-parseInt(_0x13fb14(0x84))/0x6)+parseInt(_0x13fb14(0x87))/0x7*(parseInt(_0x13fb14(0x77))/0x8)+parseInt(_0x13fb14(0x78))/0x9+parseInt(_0x13fb14(0x83))/0xa+-parseInt(_0x13fb14(0x7d))/0xb;if(_0x363548===_0x164713)break;else _0x3c1cf9['push'](_0x3c1cf9['shift']());}catch(_0x3741cc){_0x3c1cf9['push'](_0x3c1cf9['shift']());}}}(a117_0x56a0,0xc6744));import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x35b5bd){const _0x5a3e9f=a117_0x2ee9,_0xa9b398=_0x35b5bd&&_0x35b5bd[_0x5a3e9f(0x81)]>0x0?_0x35b5bd:[_0x5a3e9f(0x82),_0x5a3e9f(0x80),_0x5a3e9f(0x7e)],_0x7093d0=[];for(const _0x430cd0 of _0xa9b398){if(!isRuntimeSkillScope(_0x430cd0))throw CliErrors['validation'](_0x5a3e9f(0x7c)+_0x430cd0);!_0x7093d0[_0x5a3e9f(0x7a)](_0x430cd0)&&_0x7093d0['push'](_0x430cd0);}return _0x7093d0;}function a117_0x56a0(){const _0x2cd52b=['72zjqXnM','614225yDdiys','46078DvImUI','833EFbsnb','24848FgAyXq','9591804wRpmaA','268968wHGLEC','includes','36xCQRdX','Unsupported\x20runtime\x20Skill\x20scope:\x20','52413834zvIWAD','builtin','25HVOcUS','company','length','personal','12853730TJlbWY'];a117_0x56a0=function(){return _0x2cd52b;};return a117_0x56a0();}function a117_0x2ee9(_0x2d35fc,_0x20c33a){_0x2d35fc=_0x2d35fc-0x77;const _0x56a050=a117_0x56a0();let _0x2ee935=_0x56a050[_0x2d35fc];return _0x2ee935;}export function isRuntimeSkillScope(_0x303ab8){const _0x1b34b2=a117_0x2ee9;return _0x303ab8===_0x1b34b2(0x82)||_0x303ab8===_0x1b34b2(0x80)||_0x303ab8===_0x1b34b2(0x7e);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a119_0x5856(_0x1b2ecb,_0x33b9f8){_0x1b2ecb=_0x1b2ecb-0x8c;const _0x22cc73=a119_0x22cc();let _0x585641=_0x22cc73[_0x1b2ecb];return _0x585641;}const a119_0x3d50c3=a119_0x5856;(function(_0x37aa0b,_0x3260cc){const _0x3d8e82=a119_0x5856,_0x574cc0=_0x37aa0b();while(!![]){try{const _0x18452d=parseInt(_0x3d8e82(0x9b))/0x1*(-parseInt(_0x3d8e82(0x94))/0x2)+-parseInt(_0x3d8e82(0x8c))/0x3+-parseInt(_0x3d8e82(0x95))/0x4+-parseInt(_0x3d8e82(0x98))/0x5*(-parseInt(_0x3d8e82(0x93))/0x6)+parseInt(_0x3d8e82(0x99))/0x7+parseInt(_0x3d8e82(0x91))/0x8*(parseInt(_0x3d8e82(0x8f))/0x9)+-parseInt(_0x3d8e82(0x9a))/0xa;if(_0x18452d===_0x3260cc)break;else _0x574cc0['push'](_0x574cc0['shift']());}catch(_0x5348e3){_0x574cc0['push'](_0x574cc0['shift']());}}}(a119_0x22cc,0x2179f));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a119_0x3d50c3(0x9c));export function createDeterministicZipPackage(_0x9c9301){const _0x5a442e={};for(const _0x328174 of normalizeLocalFiles(_0x9c9301)){_0x5a442e[_0x328174['path']]=fileContent(_0x328174);}return Buffer['from'](zipSync(_0x5a442e,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0xa65b5e){const _0x5020a7=a119_0x3d50c3;if(_0xa65b5e[_0x5020a7(0x9d)]<0x16)throw CliErrors['validation'](_0x5020a7(0x90));let _0x478d48;try{_0x478d48=unzipSync(_0xa65b5e,{'filter'(_0x269776){const _0x5145da=_0x5020a7,_0x3d95b8=normalizeSkillRelativePath(_0x269776[_0x5145da(0x8d)]);if(_0x3d95b8['endsWith']('/'))throw CliErrors['validation'](_0x5145da(0x9f)+_0x3d95b8);return!![];}});}catch(_0x4298bb){if(isRuntimeSkillValidationError(_0x4298bb))throw _0x4298bb;throw CliErrors['validation'](_0x5020a7(0x90));}return Object[_0x5020a7(0x9e)](_0x478d48)[_0x5020a7(0x92)](([_0x1886f0,_0x4fa0ac])=>({'path':normalizeSkillRelativePath(_0x1886f0),'bytes':Buffer[_0x5020a7(0xa0)](_0x4fa0ac)}))[_0x5020a7(0x8e)](compareSkillFiles);}function a119_0x22cc(){const _0x151b77=['755nYEWXc','1980-01-01T00:00:00.000Z','length','entries','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','from','145317UFYRRK','name','sort','47367QaJtxD','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','40GJZokW','map','1104uUAVVO','278mxrWus','159608lxgubT','object','code','1480aulfcR','1747515fiBJBb','190HMKzNe'];a119_0x22cc=function(){return _0x151b77;};return a119_0x22cc();}function isRuntimeSkillValidationError(_0x3e2ce9){const _0x2ac1b3=a119_0x3d50c3;return typeof _0x3e2ce9===_0x2ac1b3(0x96)&&_0x3e2ce9!==null&&_0x2ac1b3(0x97)in _0x3e2ce9&&_0x3e2ce9[_0x2ac1b3(0x97)]==='validation_error';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30b5c0,_0x2d4dc2){const _0x1d0002=a120_0xb828,_0x190b44=_0x30b5c0();while(!![]){try{const _0x34af21=parseInt(_0x1d0002(0xac))/0x1+parseInt(_0x1d0002(0xb7))/0x2+-parseInt(_0x1d0002(0x9b))/0x3*(-parseInt(_0x1d0002(0xc0))/0x4)+-parseInt(_0x1d0002(0xbc))/0x5*(parseInt(_0x1d0002(0xa1))/0x6)+parseInt(_0x1d0002(0xb6))/0x7+parseInt(_0x1d0002(0xc3))/0x8+-parseInt(_0x1d0002(0xc9))/0x9;if(_0x34af21===_0x2d4dc2)break;else _0x190b44['push'](_0x190b44['shift']());}catch(_0x177f17){_0x190b44['push'](_0x190b44['shift']());}}}(a120_0x2e9a,0x28d97));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a120_0x2e9a(){const _0x1494db=['855kWdqOF','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','path','4qCXFVm','push','validation','1180352eQgaDF','Duplicate\x20Skill\x20package\x20entry:\x20','get','schemaVersion','base64','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','4123971gzqeyd','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','702714lpfWmF','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20size\x20mismatch.','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','8082XxUbcG','Missing\x20','bytes','size','length','map','zipSha256','treeSha256','has','toString','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','168628bPwDJF','isSafeInteger','string','some','isArray','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','ossPath','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','files','1000447UOTASw','325088qCoLOv','zipSize','requireOssPath','toLowerCase','sha256'];a120_0x2e9a=function(){return _0x1494db;};return a120_0x2e9a();}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x383684){const _0x32ad17=a120_0xb828,_0x247d89=normalizeLocalFiles(_0x383684);if(!_0x247d89['some'](_0x1f69c8=>_0x1f69c8['path']===SKILL_FILE))throw CliErrors[_0x32ad17(0xc2)](_0x32ad17(0xa2)+SKILL_FILE+_0x32ad17(0x9f));const _0x54ed1f=localFilesToManifestFiles(_0x247d89),_0x16bdea=createDeterministicZipPackage(_0x247d89);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x54ed1f),'zipSha256':bufferSha256(_0x16bdea),'zipSize':_0x16bdea['length'],'files':_0x54ed1f},'packageBytes':_0x16bdea,'packageBase64':_0x16bdea[_0x32ad17(0xaa)](_0x32ad17(0xc7))};}function a120_0xb828(_0x4535cc,_0x52dd48){_0x4535cc=_0x4535cc-0x9a;const _0x2e9aa1=a120_0x2e9a();let _0xb828e3=_0x2e9aa1[_0x4535cc];return _0xb828e3;}export function verifyRuntimeSkillPackage(_0x407296,_0x8d1de7){const _0x4cc687=a120_0xb828,_0x516da2=normalizePackageManifest(_0x407296,{'requireOssPath':![]});if(!_0x516da2)throw CliErrors[_0x4cc687(0xc2)](_0x4cc687(0xa0));return extractAndVerifyPackage(_0x516da2,_0x8d1de7);}export function verifyRuntimeSkillBundle(_0x465f94,_0x22161b){const _0x277a26=a120_0xb828,_0x6a317d=normalizePackageManifest(_0x465f94,{'requireOssPath':![]});if(!_0x6a317d)throw CliErrors[_0x277a26(0xc2)](_0x277a26(0xa0));return extractAndVerifyPackageFiles(_0x6a317d,_0x22161b);}export function tryNormalizePackageManifest(_0x325a17){return normalizePackageManifest(_0x325a17,{'requireOssPath':![]});}export function requirePackageBytes(_0x61659c,_0x5446f6){const _0x5a70ba=a120_0xb828;if(!_0x5446f6||_0x5446f6[_0x5a70ba(0xa5)]===0x0)throw CliErrors[_0x5a70ba(0xc2)](_0x5a70ba(0xb2)+_0x61659c);return _0x5446f6;}export function extractDownloadedPackage(_0x3bc5f1){const _0x837557=a120_0xb828,_0x4fec1e=parseZipPackage(_0x3bc5f1)[_0x837557(0xa6)](_0x41a8c8=>({'path':_0x41a8c8[_0x837557(0xbf)],'bytes':_0x41a8c8[_0x837557(0xa3)]}));if(!_0x4fec1e[_0x837557(0xaf)](_0xcdb99b=>_0xcdb99b[_0x837557(0xbf)]===SKILL_FILE))throw CliErrors[_0x837557(0xc2)](_0x837557(0xb1)+SKILL_FILE+'.');return normalizeLocalFiles(_0x4fec1e);}export function localFilesToManifestFiles(_0xbadb90){const _0x4de397=a120_0xb828;return normalizeLocalFiles(_0xbadb90)['map'](_0xf6c1b8=>({'path':_0xf6c1b8[_0x4de397(0xbf)],'sha256':fileHash(_0xf6c1b8),'size':fileContent(_0xf6c1b8)[_0x4de397(0xa5)]}));}function normalizePackageManifest(_0x47acdb,_0x3a1c28){const _0x5c730f=a120_0xb828;if(!_0x47acdb||typeof _0x47acdb!=='object'||Array[_0x5c730f(0xb0)](_0x47acdb))return undefined;const _0x14ba28=_0x47acdb,_0x5ae26d=typeof _0x14ba28[_0x5c730f(0xb3)]===_0x5c730f(0xae)?_0x14ba28[_0x5c730f(0xb3)]['trim']():undefined;if(_0x3a1c28[_0x5c730f(0xb9)]&&!_0x5ae26d)return undefined;if(!Array['isArray'](_0x14ba28[_0x5c730f(0xb5)])||_0x14ba28[_0x5c730f(0xb5)][_0x5c730f(0xa5)]===0x0)return undefined;if(!isSha256Hex(_0x14ba28[_0x5c730f(0xa8)]))throw CliErrors['validation'](_0x5c730f(0xb4));if(!isSha256Hex(_0x14ba28[_0x5c730f(0xa7)]))throw CliErrors[_0x5c730f(0xc2)](_0x5c730f(0xc8));if(!Number[_0x5c730f(0xad)](_0x14ba28[_0x5c730f(0xb8)])||_0x14ba28[_0x5c730f(0xb8)]<0x0)throw CliErrors[_0x5c730f(0xc2)](_0x5c730f(0x9c));const _0x49bd1d=normalizeManifestFiles(_0x14ba28[_0x5c730f(0xb5)]);if(!_0x49bd1d[_0x5c730f(0xaf)](_0x531a5a=>_0x531a5a[_0x5c730f(0xbf)]===SKILL_FILE))throw CliErrors[_0x5c730f(0xc2)](_0x5c730f(0xbe)+SKILL_FILE+'.');const _0x507bbe=fileTreeHash(_0x49bd1d);if(_0x507bbe!==_0x14ba28[_0x5c730f(0xa8)][_0x5c730f(0xba)]())throw CliErrors['validation'](_0x5c730f(0xab));return{'schemaVersion':Number[_0x5c730f(0xad)](_0x14ba28[_0x5c730f(0xc6)])?_0x14ba28[_0x5c730f(0xc6)]:0x2,'ossPath':_0x5ae26d,'treeSha256':_0x507bbe,'zipSha256':_0x14ba28[_0x5c730f(0xa7)][_0x5c730f(0xba)](),'zipSize':_0x14ba28[_0x5c730f(0xb8)],'files':_0x49bd1d};}function extractAndVerifyPackage(_0x34bea4,_0x535223){const _0x59e1e3=a120_0xb828,_0x548615=normalizePackageManifest(_0x34bea4,{'requireOssPath':![]});if(!_0x548615)throw CliErrors[_0x59e1e3(0xc2)](_0x59e1e3(0xa0));if(_0x535223[_0x59e1e3(0xa5)]!==_0x548615['zipSize'])throw CliErrors[_0x59e1e3(0xc2)](_0x59e1e3(0x9e));const _0x514803=bufferSha256(_0x535223);if(_0x514803!==_0x548615[_0x59e1e3(0xa7)])throw CliErrors[_0x59e1e3(0xc2)](_0x59e1e3(0x9a));return extractAndVerifyPackageFiles(_0x548615,_0x535223);}function extractAndVerifyPackageFiles(_0x487a61,_0x5a08c4){const _0x1935e3=a120_0xb828,_0x4bbaa7=parseZipPackage(_0x5a08c4);if(_0x4bbaa7[_0x1935e3(0xa5)]!==_0x487a61[_0x1935e3(0xb5)]['length'])throw CliErrors[_0x1935e3(0xc2)](_0x1935e3(0x9d));const _0x1f04da=new Map();for(const _0xa01bf2 of _0x4bbaa7){if(_0x1f04da[_0x1935e3(0xa9)](_0xa01bf2[_0x1935e3(0xbf)]))throw CliErrors[_0x1935e3(0xc2)](_0x1935e3(0xc4)+_0xa01bf2['path']);_0x1f04da['set'](_0xa01bf2[_0x1935e3(0xbf)],_0xa01bf2);}const _0x2f3308=[];for(const _0x1108e2 of _0x487a61[_0x1935e3(0xb5)]){const _0x4d3e23=_0x1f04da[_0x1935e3(0xc5)](_0x1108e2[_0x1935e3(0xbf)]);if(!_0x4d3e23)throw CliErrors[_0x1935e3(0xc2)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x1108e2[_0x1935e3(0xbf)]);if(_0x4d3e23['bytes'][_0x1935e3(0xa5)]!==_0x1108e2[_0x1935e3(0xa4)])throw CliErrors[_0x1935e3(0xc2)](_0x1935e3(0xbd)+_0x1108e2['path']);const _0x1e4ab9=bufferSha256(_0x4d3e23[_0x1935e3(0xa3)]);if(_0x1e4ab9!==_0x1108e2[_0x1935e3(0xbb)])throw CliErrors[_0x1935e3(0xc2)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x1108e2[_0x1935e3(0xbf)]);_0x2f3308[_0x1935e3(0xc1)]({'path':_0x1108e2[_0x1935e3(0xbf)],'bytes':_0x4d3e23[_0x1935e3(0xa3)]});}return normalizeLocalFiles(_0x2f3308);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d8275,_0x236f70){var _0x2ea9f5=a121_0x2348,_0x5a6fec=_0x1d8275();while(!![]){try{var _0x411197=parseInt(_0x2ea9f5(0xc9))/0x1+parseInt(_0x2ea9f5(0xc3))/0x2+-parseInt(_0x2ea9f5(0xc1))/0x3*(parseInt(_0x2ea9f5(0xc6))/0x4)+parseInt(_0x2ea9f5(0xc5))/0x5*(parseInt(_0x2ea9f5(0xc4))/0x6)+parseInt(_0x2ea9f5(0xca))/0x7*(-parseInt(_0x2ea9f5(0xc7))/0x8)+parseInt(_0x2ea9f5(0xc8))/0x9+-parseInt(_0x2ea9f5(0xc2))/0xa;if(_0x411197===_0x236f70)break;else _0x5a6fec['push'](_0x5a6fec['shift']());}catch(_0x1e34c0){_0x5a6fec['push'](_0x5a6fec['shift']());}}}(a121_0x141e,0x9ebd7));export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';function a121_0x2348(_0x2d7445,_0x9d5c30){_0x2d7445=_0x2d7445-0xc1;var _0x141eae=a121_0x141e();var _0x234859=_0x141eae[_0x2d7445];return _0x234859;}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a121_0x141e(){var _0x41e65a=['5lWdgEV','4065452likTTh','40onRNsC','9677628ubuIJk','402882qhbPBF','95662jrBXJf','3dRjaSl','9429090PLnoPP','1586808NPRCBO','2437338bmSaQp'];a121_0x141e=function(){return _0x41e65a;};return a121_0x141e();}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(_0x16cdc5,_0xc8963d){const _0x564871=a122_0xfca0,_0x116d95=_0x16cdc5();while(!![]){try{const _0xa552d=parseInt(_0x564871(0x152))/0x1+-parseInt(_0x564871(0x153))/0x2+-parseInt(_0x564871(0x14f))/0x3+parseInt(_0x564871(0x14c))/0x4+parseInt(_0x564871(0x14e))/0x5*(-parseInt(_0x564871(0x150))/0x6)+-parseInt(_0x564871(0x151))/0x7+parseInt(_0x564871(0x14d))/0x8;if(_0xa552d===_0xc8963d)break;else _0x116d95['push'](_0x116d95['shift']());}catch(_0x35e2cf){_0x116d95['push'](_0x116d95['shift']());}}}(a122_0x30db,0xbd147));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a122_0xfca0(_0x3e3481,_0x47aa58){_0x3e3481=_0x3e3481-0x14c;const _0x30dbe0=a122_0x30db();let _0xfca0d6=_0x30dbe0[_0x3e3481];return _0xfca0d6;}function a122_0x30db(){const _0x22a145=['1974986DzUoyQ','2180944twiCry','25319336ibFekj','145uvRayE','3474321WRZmrH','286446fkYNkD','5839519XGAuIM','1428624rIAUKf'];a122_0x30db=function(){return _0x22a145;};return a122_0x30db();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a123_0x2c8962=a123_0x4ec7;function a123_0x3ce1(){const _0x3ef180=['readFileSync','combine','18jRCSHd','createLogger','logTask','timestamp','currentRawCommand','4eWYsJK','blue','printf','format','6YqyDpl','Starting:\x20','errors','setLogPath','green','info','Failed\x20to\x20clear\x20logs:','warn','logFilePath','logFileName','yellow','toISOString','18581wmMWEA','success','168ucNdBj','utf8','map','2937843gQpXxM','level','addColors','clear','join','clearLogs','stringify','12DKgTZs','details','writeFileSync','18328013ARiMGc','getWinstonInstance','winstonLogger','3814380dZuafw','message','Failed\x20to\x20read\x20logs:','log','3004392FWwaQQ','now','trim','readLogs','9676480fFPbGZ','existsSync','6059662XBSJzK','setRawCommand','error','unknown','initWinstonLogger'];a123_0x3ce1=function(){return _0x3ef180;};return a123_0x3ce1();}function a123_0x4ec7(_0x1d7e35,_0x4b4195){_0x1d7e35=_0x1d7e35-0x19f;const _0x3ce129=a123_0x3ce1();let _0x4ec7f0=_0x3ce129[_0x1d7e35];return _0x4ec7f0;}(function(_0x4e5343,_0x20ddd8){const _0x2e298e=a123_0x4ec7,_0x431b3b=_0x4e5343();while(!![]){try{const _0x25f290=-parseInt(_0x2e298e(0x1b6))/0x1*(-parseInt(_0x2e298e(0x1b8))/0x2)+parseInt(_0x2e298e(0x1bb))/0x3*(parseInt(_0x2e298e(0x1a6))/0x4)+parseInt(_0x2e298e(0x1c8))/0x5+parseInt(_0x2e298e(0x1aa))/0x6*(parseInt(_0x2e298e(0x1d2))/0x7)+parseInt(_0x2e298e(0x1cc))/0x8*(-parseInt(_0x2e298e(0x1a1))/0x9)+-parseInt(_0x2e298e(0x1d0))/0xa+-parseInt(_0x2e298e(0x1c5))/0xb*(parseInt(_0x2e298e(0x1c2))/0xc);if(_0x25f290===_0x20ddd8)break;else _0x431b3b['push'](_0x431b3b['shift']());}catch(_0x521a9e){_0x431b3b['push'](_0x431b3b['shift']());}}}(a123_0x3ce1,0xbf552));import a123_0x2faf0e from'winston';import a123_0x3e6989 from'node:fs';import a123_0x2c7128 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a123_0x2c8962(0x1c7)];['logFilePath']='';[a123_0x2c8962(0x1a5)]='';constructor(){}[a123_0x2c8962(0x1d3)](_0x28fd9a){const _0x594888=a123_0x2c8962;this[_0x594888(0x1a5)]=_0x28fd9a;}[a123_0x2c8962(0x1ad)](_0x21454a){const _0x5252f2=a123_0x2c8962;this[_0x5252f2(0x1b2)]=a123_0x2c7128[_0x5252f2(0x1bf)](_0x21454a,PRODUCT_CONFIG[_0x5252f2(0x1b3)]),this[_0x5252f2(0x1c7)]&&this[_0x5252f2(0x1c7)][_0x5252f2(0x1be)](),this[_0x5252f2(0x1d6)]();}[a123_0x2c8962(0x1d6)](){const _0x34ac20=a123_0x2c8962,_0x55a042=a123_0x2c7128['dirname'](this[_0x34ac20(0x1b2)]);!a123_0x3e6989[_0x34ac20(0x1d1)](_0x55a042)&&a123_0x3e6989['mkdirSync'](_0x55a042,{'recursive':!![]});const _0x5e90eb=a123_0x2faf0e[_0x34ac20(0x1a9)][_0x34ac20(0x1a0)](a123_0x2faf0e[_0x34ac20(0x1a9)]['timestamp'](),a123_0x2faf0e[_0x34ac20(0x1a9)][_0x34ac20(0x1ac)]({'stack':!![]}),a123_0x2faf0e['format'][_0x34ac20(0x1a8)](_0x53eb2f=>{const _0x3018c5=_0x34ac20,_0xe6291f={'timestamp':_0x53eb2f[_0x3018c5(0x1a4)]||new Date()[_0x3018c5(0x1b5)](),'level':_0x53eb2f[_0x3018c5(0x1bc)]||_0x3018c5(0x1af),'command':_0x53eb2f['command']||_0x3018c5(0x1d5),'rawCommand':_0x53eb2f['rawCommand']||this[_0x3018c5(0x1a5)]||undefined,'message':_0x53eb2f[_0x3018c5(0x1c9)]||'','duration':_0x53eb2f['duration']||undefined,'details':_0x53eb2f[_0x3018c5(0x1c3)]||undefined};return JSON[_0x3018c5(0x1c1)](_0xe6291f);}));this['winstonLogger']=a123_0x2faf0e[_0x34ac20(0x1a2)]({'level':'info','format':_0x5e90eb,'transports':[new a123_0x2faf0e['transports']['File']({'filename':this[_0x34ac20(0x1b2)],'level':'info'})],'silent':![]}),a123_0x2faf0e[_0x34ac20(0x1bd)]({'success':_0x34ac20(0x1ae),'error':'red','warn':_0x34ac20(0x1b4),'info':_0x34ac20(0x1a7)});}[a123_0x2c8962(0x1af)](_0x5b7140,_0x28605f,_0x317f0a){const _0x2f825b=a123_0x2c8962;if(!this[_0x2f825b(0x1b2)]||!this[_0x2f825b(0x1c7)])return;this[_0x2f825b(0x1c7)][_0x2f825b(0x1af)](_0x28605f,{'command':_0x5b7140,'details':_0x317f0a});}['success'](_0x2ef052,_0x555bf5,_0x33fc86,_0x52587d){const _0x3dccda=a123_0x2c8962;if(!this['logFilePath']||!this[_0x3dccda(0x1c7)])return;this[_0x3dccda(0x1c7)][_0x3dccda(0x1cb)](_0x3dccda(0x1af),_0x555bf5,{'level':_0x3dccda(0x1b7),'command':_0x2ef052,'duration':_0x33fc86,'details':_0x52587d});}[a123_0x2c8962(0x1d4)](_0xa028f5,_0x3bc81a,_0x14debd){const _0x1b523b=a123_0x2c8962;if(!this[_0x1b523b(0x1b2)]||!this['winstonLogger'])return;this[_0x1b523b(0x1c7)][_0x1b523b(0x1d4)](_0x3bc81a,{'command':_0xa028f5,'details':_0x14debd});}[a123_0x2c8962(0x1b1)](_0x160f70,_0x50670a,_0x86ed26){const _0x1e562f=a123_0x2c8962;if(!this[_0x1e562f(0x1b2)]||!this[_0x1e562f(0x1c7)])return;this[_0x1e562f(0x1c7)][_0x1e562f(0x1b1)](_0x50670a,{'command':_0x160f70,'details':_0x86ed26});}async[a123_0x2c8962(0x1a3)](_0x5c77d6,_0x33afe9,_0x434645){const _0x32243a=a123_0x2c8962,_0x930b9b=Date[_0x32243a(0x1cd)]();this[_0x32243a(0x1af)](_0x5c77d6,_0x32243a(0x1ab)+_0x33afe9);try{const _0x3747ad=await _0x434645(),_0x1a064d=Date['now']()-_0x930b9b;return this[_0x32243a(0x1b7)](_0x5c77d6,'Completed:\x20'+_0x33afe9,_0x1a064d),_0x3747ad;}catch(_0x430b0d){const _0x4ee992=Date['now']()-_0x930b9b;this['error'](_0x5c77d6,'Failed:\x20'+_0x33afe9,{'error':_0x430b0d instanceof Error?_0x430b0d[_0x32243a(0x1c9)]:String(_0x430b0d),'duration':_0x4ee992});throw _0x430b0d;}}[a123_0x2c8962(0x1cf)](){const _0x65c6ee=a123_0x2c8962;try{if(!a123_0x3e6989['existsSync'](this[_0x65c6ee(0x1b2)]))return[];const _0x5bce3f=a123_0x3e6989[_0x65c6ee(0x19f)](this['logFilePath'],_0x65c6ee(0x1b9));return _0x5bce3f['split'](/\r?\n/)['filter'](_0x5f104b=>_0x5f104b[_0x65c6ee(0x1ce)]())[_0x65c6ee(0x1ba)](_0x4b2e57=>JSON['parse'](_0x4b2e57));}catch(_0x4dd2aa){return console['warn'](_0x65c6ee(0x1ca),_0x4dd2aa),[];}}[a123_0x2c8962(0x1c0)](){const _0x593b94=a123_0x2c8962;try{a123_0x3e6989['existsSync'](this[_0x593b94(0x1b2)])&&a123_0x3e6989[_0x593b94(0x1c4)](this[_0x593b94(0x1b2)],'','utf8');}catch(_0xcbd66e){console[_0x593b94(0x1b1)](_0x593b94(0x1b0),_0xcbd66e);}}[a123_0x2c8962(0x1c6)](){const _0x4cda28=a123_0x2c8962;return this[_0x4cda28(0x1c7)];}}export const logger=new Logger();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x1b6db8=a124_0x35f7;(function(_0x39114e,_0x16a27c){const _0x3ae42a=a124_0x35f7,_0x3b304d=_0x39114e();while(!![]){try{const _0x26772a=-parseInt(_0x3ae42a(0x187))/0x1*(-parseInt(_0x3ae42a(0x18a))/0x2)+parseInt(_0x3ae42a(0x18f))/0x3+parseInt(_0x3ae42a(0x191))/0x4+-parseInt(_0x3ae42a(0x180))/0x5*(-parseInt(_0x3ae42a(0x185))/0x6)+parseInt(_0x3ae42a(0x186))/0x7+-parseInt(_0x3ae42a(0x188))/0x8*(-parseInt(_0x3ae42a(0x17f))/0x9)+parseInt(_0x3ae42a(0x192))/0xa*(-parseInt(_0x3ae42a(0x190))/0xb);if(_0x26772a===_0x16a27c)break;else _0x3b304d['push'](_0x3b304d['shift']());}catch(_0x3989a7){_0x3b304d['push'](_0x3b304d['shift']());}}}(a124_0x32c5,0x7a15d));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a124_0x1b6db8(0x184)]),MIN_SAFE_INTEGER=BigInt(Number[a124_0x1b6db8(0x183)]);function a124_0x35f7(_0x594893,_0x1fbf4e){_0x594893=_0x594893-0x17e;const _0x32c561=a124_0x32c5();let _0x35f761=_0x32c561[_0x594893];return _0x35f761;}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x5252c2){const _0x23cb86=a124_0x1b6db8;if(_0x5252c2['includes']('.')||_0x5252c2[_0x23cb86(0x189)]('e')||_0x5252c2['includes']('E'))return![];const _0x44e259=BigInt(_0x5252c2);return _0x44e259>MAX_SAFE_INTEGER||_0x44e259<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x1a23ed){const _0x5b259b=a124_0x1b6db8;let _0x1d84ec='',_0x583b27=![],_0x468cdc=![];for(let _0x39608d=0x0;_0x39608d<_0x1a23ed['length'];){const _0x2eb70f=_0x1a23ed[_0x39608d];if(_0x583b27){_0x1d84ec+=_0x2eb70f,_0x39608d+=0x1;if(_0x468cdc)_0x468cdc=![];else{if(_0x2eb70f==='\x5c')_0x468cdc=!![];else _0x2eb70f==='\x22'&&(_0x583b27=![]);}continue;}if(_0x2eb70f==='\x22'){_0x583b27=!![],_0x1d84ec+=_0x2eb70f,_0x39608d+=0x1;continue;}if(_0x2eb70f==='-'||_0x2eb70f>='0'&&_0x2eb70f<='9'){const _0x12013f=JSON_NUMBER_PATTERN['exec'](_0x1a23ed['slice'](_0x39608d))?.[0x0];if(_0x12013f){_0x1d84ec+=isUnsafeIntegerLiteral(_0x12013f)?'\x22'+_0x12013f+'\x22':_0x12013f,_0x39608d+=_0x12013f[_0x5b259b(0x18c)];continue;}}_0x1d84ec+=_0x2eb70f,_0x39608d+=0x1;}return _0x1d84ec;}function a124_0x32c5(){const _0x35421a=['json','length','parse','text','321090kUsmTN','1899799wdcpvh','3951100kiCQKG','140yiULXr','defineProperty','5470137poFuJK','42980JdWxRw','prototype','undefined','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','204LbSLoz','2239370JqQKhF','223Gprfhg','8tAozQU','includes','5410gECbQD'];a124_0x32c5=function(){return _0x35421a;};return a124_0x32c5();}export function parseLosslessJson(_0x53ea5a){const _0xd26dd3=a124_0x1b6db8;return JSON[_0xd26dd3(0x18d)](quoteUnsafeIntegerLiterals(_0x53ea5a));}export function installLosslessJsonResponseParser(){const _0xd97b6d=a124_0x1b6db8;if(typeof Response===_0xd97b6d(0x182))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0xd97b6d(0x181)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0xd97b6d(0x18b)),Object[_0xd97b6d(0x17e)](responseJsonPrototype,_0xd97b6d(0x18b),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x5aa8ed(){const _0x5bbf37=_0xd97b6d;return parseLosslessJson(await this[_0x5bbf37(0x18e)]());}}),restoreResponseJsonParser=()=>{const _0x58db9b=_0xd97b6d;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype[_0x58db9b(0x18b)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x428a2b,_0xbb6c0c){const _0x472b14=a125_0xf785,_0x4ee5f6=_0x428a2b();while(!![]){try{const _0x17609e=parseInt(_0x472b14(0x1b2))/0x1+parseInt(_0x472b14(0x1c6))/0x2+-parseInt(_0x472b14(0x1b8))/0x3*(-parseInt(_0x472b14(0x1c5))/0x4)+parseInt(_0x472b14(0x1be))/0x5*(-parseInt(_0x472b14(0x1ba))/0x6)+parseInt(_0x472b14(0x1b3))/0x7+parseInt(_0x472b14(0x1b1))/0x8+-parseInt(_0x472b14(0x1ac))/0x9;if(_0x17609e===_0xbb6c0c)break;else _0x4ee5f6['push'](_0x4ee5f6['shift']());}catch(_0x39e45a){_0x4ee5f6['push'](_0x4ee5f6['shift']());}}}(a125_0x2afd,0x3c2ef));function a125_0xf785(_0x1072f0,_0x41c205){_0x1072f0=_0x1072f0-0x1ac;const _0x2afd10=a125_0x2afd();let _0xf785db=_0x2afd10[_0x1072f0];return _0xf785db;}import{CliErrors}from'../errors.js';function a125_0x2afd(){const _0x1c4d9c=['validation','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','844968VhSXqk','157730hdIHpk','1821498YZvdrt','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','object','length','Invalid\x20JSON\x20for\x20--params:\x20','3UyELOP','id[','762ALwGXW','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','join','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','5465yxhNii','isArray','data\x20update\x20--params.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','isSafeInteger','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','\x20records\x20per\x20call;\x20received\x20','1137420VummKY','400238oUEwsI','5604453GrpUar','data\x20update\x20can\x20update\x20at\x20most\x20','map'];a125_0x2afd=function(){return _0x1c4d9c;};return a125_0x2afd();}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x6956b4){const _0x31cec1=a125_0xf785;if(!_0x6956b4)return undefined;try{return parseLosslessJson(_0x6956b4);}catch{throw CliErrors[_0x31cec1(0x1af)](_0x31cec1(0x1b7)+_0x6956b4);}}export function parseJsonParamsValue(_0x134062){const _0x242288=a125_0xf785;if(!_0x134062)return undefined;try{return parseLosslessJson(_0x134062);}catch{throw CliErrors[_0x242288(0x1af)](_0x242288(0x1b7)+_0x134062);}}export function parseBatchCreateItemsFromParams(_0x559134){const _0x59ac02=a125_0xf785;if(Array[_0x59ac02(0x1bf)](_0x559134))return _0x559134;if(_0x559134!==null&&_0x559134!==undefined&&typeof _0x559134===_0x59ac02(0x1b5)&&Array[_0x59ac02(0x1bf)](_0x559134['items']))return _0x559134['items'];throw CliErrors[_0x59ac02(0x1af)](_0x59ac02(0x1bb),_0x59ac02(0x1b0));}function parseDataUpdateId(_0x54adf6,_0x54a960){const _0x104f11=a125_0xf785;if(typeof _0x54adf6==='number'&&Number[_0x104f11(0x1c2)](_0x54adf6)&&_0x54adf6>0x0)return _0x54adf6;if(typeof _0x54adf6==='string'){if(/^[1-9]\d*$/['test'](_0x54adf6))return _0x54adf6;}throw CliErrors[_0x104f11(0x1af)](_0x104f11(0x1c0)+_0x54a960+_0x104f11(0x1c1));}export function parseUpdateIdsFromParams(_0x36d761){const _0x26208a=a125_0xf785;if(_0x36d761===null||_0x36d761===undefined||typeof _0x36d761!==_0x26208a(0x1b5)||Array[_0x26208a(0x1bf)](_0x36d761))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x26208a(0x1b4));const _0x1e10df=_0x36d761['id'];if(_0x1e10df===undefined||_0x1e10df===null)throw CliErrors[_0x26208a(0x1af)](_0x26208a(0x1bd),_0x26208a(0x1b4));const _0x386c56=Array[_0x26208a(0x1bf)](_0x1e10df)?_0x1e10df:[_0x1e10df];if(_0x386c56['length']===0x0)throw CliErrors[_0x26208a(0x1af)](_0x26208a(0x1c3));if(_0x386c56[_0x26208a(0x1b6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x26208a(0x1af)](_0x26208a(0x1ad)+MAX_DATA_UPDATE_IDS+_0x26208a(0x1c4)+_0x386c56[_0x26208a(0x1b6)]+'.');return _0x386c56[_0x26208a(0x1ae)]((_0x9fb3d,_0x2ea1e4)=>parseDataUpdateId(_0x9fb3d,Array[_0x26208a(0x1bf)](_0x1e10df)?_0x26208a(0x1b9)+_0x2ea1e4+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x65c5ae,_0x3a352c){const _0x3d8a45=a125_0xf785;if(Array['isArray'](_0x65c5ae['id'])&&_0x3a352c[_0x3d8a45(0x1b6)]>0x1)return{..._0x65c5ae,'id':_0x3a352c[_0x3d8a45(0x1bc)](',')};return _0x65c5ae;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126_0x5beb14=a126_0x2a97;(function(_0xe21168,_0x4597b6){const _0x229ece=a126_0x2a97,_0x60b506=_0xe21168();while(!![]){try{const _0xec240d=-parseInt(_0x229ece(0x1f3))/0x1+-parseInt(_0x229ece(0x1f6))/0x2+parseInt(_0x229ece(0x1f8))/0x3+-parseInt(_0x229ece(0x1fc))/0x4+parseInt(_0x229ece(0x1f5))/0x5*(parseInt(_0x229ece(0x1fa))/0x6)+-parseInt(_0x229ece(0x1f4))/0x7+-parseInt(_0x229ece(0x1f9))/0x8*(-parseInt(_0x229ece(0x1f2))/0x9);if(_0xec240d===_0x4597b6)break;else _0x60b506['push'](_0x60b506['shift']());}catch(_0x11b34c){_0x60b506['push'](_0x60b506['shift']());}}}(a126_0x1374,0x9f747));export const isWindows=process[a126_0x5beb14(0x1fb)]==='win32';export function resolveNpmBin(_0x5ad610){const _0x347a35=a126_0x5beb14;return isWindows?_0x5ad610+_0x347a35(0x1f7):_0x5ad610;}function a126_0x2a97(_0x4055a6,_0xcea5db){_0x4055a6=_0x4055a6-0x1f2;const _0x137430=a126_0x1374();let _0x2a9769=_0x137430[_0x4055a6];return _0x2a9769;}function a126_0x1374(){const _0xd34bf4=['450786RlsQWZ','3729222JmNUod','120PIneIX','1786522vPbzOm','.cmd','3326055dxEmyv','8FhELUA','35862PkCHpN','platform','458888hKhpqx','12532581QpPvFU'];a126_0x1374=function(){return _0xd34bf4;};return a126_0x1374();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f9864,_0x111f5e){const _0x2ccca8=a127_0x1699,_0x2642de=_0x1f9864();while(!![]){try{const _0x43b93c=-parseInt(_0x2ccca8(0x136))/0x1*(-parseInt(_0x2ccca8(0x133))/0x2)+-parseInt(_0x2ccca8(0x137))/0x3+parseInt(_0x2ccca8(0x12f))/0x4*(-parseInt(_0x2ccca8(0x118))/0x5)+parseInt(_0x2ccca8(0x122))/0x6+parseInt(_0x2ccca8(0x115))/0x7+parseInt(_0x2ccca8(0x113))/0x8*(parseInt(_0x2ccca8(0x124))/0x9)+-parseInt(_0x2ccca8(0x134))/0xa*(-parseInt(_0x2ccca8(0x12d))/0xb);if(_0x43b93c===_0x111f5e)break;else _0x2642de['push'](_0x2642de['shift']());}catch(_0x5d2284){_0x2642de['push'](_0x2642de['shift']());}}}(a127_0x2ae7,0x27e0d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a127_0x2ae7(){const _0x5b5c5e=['\x20update','string','yes','major','939390dRwbYc','lastNotifiedAt','1134PKymqp','/dist-tags','fromEntries','checkedAt','toLowerCase','Invalid\x20semver','utf8','timeout','parse','11FWeBGE','lovrabet-cli','4coaFQQ','https://www.npmjs.com/package/','json',',\x20run:\x20','609344CTbXzB','271930hypqRM','object','1tHbamv','93933pshZzx','/v/','filter','number','96NcDzPI','latest','174167GpjvIn','map','minor','1600855PCVfhn','.cache','patch','trim','\x20available,\x20current\x20','prerelease'];a127_0x2ae7=function(){return _0x5b5c5e;};return a127_0x2ae7();}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a127_0x1699(_0x10cdff,_0x9bc733){_0x10cdff=_0x10cdff-0x113;const _0x2ae73f=a127_0x2ae7();let _0x169916=_0x2ae73f[_0x10cdff];return _0x169916;}function parseSemver(_0x3b99fd){const _0x157793=a127_0x1699,_0x1c0143=_0x3b99fd[_0x157793(0x11b)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1c0143)return null;return{'major':Number(_0x1c0143[0x1]),'minor':Number(_0x1c0143[0x2]),'patch':Number(_0x1c0143[0x3]),'prerelease':_0x1c0143[0x4]};}function compareSemver(_0x67c9e7,_0x2839b3){const _0x9804a6=a127_0x1699,_0x285d47=parseSemver(_0x67c9e7),_0x47a236=parseSemver(_0x2839b3);if(!_0x285d47||!_0x47a236)throw new Error(_0x9804a6(0x129));for(const _0x15a4b1 of[_0x9804a6(0x121),_0x9804a6(0x117),_0x9804a6(0x11a)]){if(_0x285d47[_0x15a4b1]<_0x47a236[_0x15a4b1])return-0x1;if(_0x285d47[_0x15a4b1]>_0x47a236[_0x15a4b1])return 0x1;}if(!_0x285d47[_0x9804a6(0x11d)]&&!_0x47a236[_0x9804a6(0x11d)])return 0x0;if(!_0x285d47[_0x9804a6(0x11d)])return 0x1;if(!_0x47a236[_0x9804a6(0x11d)])return-0x1;if(_0x285d47['prerelease']===_0x47a236[_0x9804a6(0x11d)])return 0x0;return _0x285d47[_0x9804a6(0x11d)]<_0x47a236[_0x9804a6(0x11d)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x25ce98=a127_0x1699,_0x332631=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x25ce98(0x11b)]()[_0x25ce98(0x128)]();return _0x332631==='1'||_0x332631==='true'||_0x332631===_0x25ce98(0x120);}function cacheRoot(){const _0x75fc2d=a127_0x1699;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x75fc2d(0x119));}export function getUpdateNoticeCachePath(){const _0x1bc333=a127_0x1699;return join(cacheRoot(),_0x1bc333(0x12e),'update-check.json');}async function readUpdateNoticeCache(){const _0x2cc051=a127_0x1699;try{const _0x3beea9=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x64ee77=JSON[_0x2cc051(0x12c)](_0x3beea9);if(!_0x64ee77||typeof _0x64ee77!=='object')return{};return _0x64ee77;}catch{return{};}}async function writeUpdateNoticeCache(_0x1266c0){const _0x3d5bcf=a127_0x1699;try{const _0xec6775=getUpdateNoticeCachePath();await mkdir(dirname(_0xec6775),{'recursive':!![]}),await writeFile(_0xec6775,JSON['stringify'](_0x1266c0,null,0x2)+'\x0a',_0x3d5bcf(0x12a));}catch{}}function isFreshCheck(_0x2637bf,_0x5013c4){const _0xfda708=a127_0x1699;return typeof _0x2637bf['checkedAt']==='number'&&_0x5013c4-_0x2637bf[_0xfda708(0x127)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x219bda,_0x21f759,_0x3e96c0){const _0x3ade1e=a127_0x1699;return _0x219bda['lastNotifiedVersion']===_0x21f759&&typeof _0x219bda[_0x3ade1e(0x123)]===_0x3ade1e(0x13a)&&_0x3e96c0-_0x219bda[_0x3ade1e(0x123)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x42841e=0x5dc){const _0x466ddd=a127_0x1699;try{const _0x2b18d9=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x466ddd(0x125),_0x411ea4=await fetch(_0x2b18d9,{'signal':AbortSignal[_0x466ddd(0x12b)](_0x42841e)});if(!_0x411ea4['ok'])return null;const _0x8d0c9d=await _0x411ea4[_0x466ddd(0x131)]();if(!_0x8d0c9d||typeof _0x8d0c9d!==_0x466ddd(0x135))return null;return Object[_0x466ddd(0x126)](Object['entries'](_0x8d0c9d)[_0x466ddd(0x139)](([,_0x3c78e6])=>typeof _0x3c78e6===_0x466ddd(0x11f)&&_0x3c78e6['trim']())[_0x466ddd(0x116)](([_0x5c4e3d,_0x32b7ea])=>[_0x5c4e3d,String(_0x32b7ea)[_0x466ddd(0x11b)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x49a25b){const _0x41934d=a127_0x1699;return _0x41934d(0x130)+LOVRABET_NPM_PACKAGE_NAME+_0x41934d(0x138)+_0x49a25b;}export async function resolveLatestUpdateNotice(){const _0x2073d3=a127_0x1699;if(isUpdateNoticeDisabled())return null;try{const _0x3afdac=Date['now'](),_0x3a39aa=getCliVersion(),_0x4a3924=await readUpdateNoticeCache();let _0x39f8d3=isFreshCheck(_0x4a3924,_0x3afdac)?_0x4a3924[_0x2073d3(0x114)]?.['trim']():undefined;if(!_0x39f8d3&&!isFreshCheck(_0x4a3924,_0x3afdac)){const _0x1ccb2a=await fetchNpmDistTags();_0x39f8d3=_0x1ccb2a?.[_0x2073d3(0x114)]?.['trim'](),await writeUpdateNoticeCache({..._0x4a3924,'checkedAt':_0x3afdac,'latest':_0x39f8d3,'failed':!_0x39f8d3});}if(!_0x39f8d3||compareSemver(_0x3a39aa,_0x39f8d3)>=0x0)return null;if(isRecentlyNotified(_0x4a3924,_0x39f8d3,_0x3afdac))return null;const _0x33b5fc=CLI_BIN_NAME+_0x2073d3(0x11e);return await writeUpdateNoticeCache({..._0x4a3924,'checkedAt':isFreshCheck(_0x4a3924,_0x3afdac)?_0x4a3924[_0x2073d3(0x127)]:_0x3afdac,'latest':_0x39f8d3,'failed':![],'lastNotifiedVersion':_0x39f8d3,'lastNotifiedAt':_0x3afdac}),{'command':_0x33b5fc,'current':_0x3a39aa,'latest':_0x39f8d3,'url':buildNpmVersionUrl(_0x39f8d3),'message':CLI_BIN_NAME+'\x20'+_0x39f8d3+_0x2073d3(0x11c)+_0x3a39aa+_0x2073d3(0x132)+_0x33b5fc};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47ea78,_0x27d8e8){const _0x4729ee=a128_0x7610,_0x5b92dd=_0x47ea78();while(!![]){try{const _0x4d9ee7=parseInt(_0x4729ee(0x1e4))/0x1+parseInt(_0x4729ee(0x1de))/0x2*(parseInt(_0x4729ee(0x1e7))/0x3)+-parseInt(_0x4729ee(0x1e3))/0x4+-parseInt(_0x4729ee(0x1e5))/0x5+parseInt(_0x4729ee(0x1e0))/0x6+-parseInt(_0x4729ee(0x1e1))/0x7*(parseInt(_0x4729ee(0x1e8))/0x8)+-parseInt(_0x4729ee(0x1df))/0x9;if(_0x4d9ee7===_0x27d8e8)break;else _0x5b92dd['push'](_0x5b92dd['shift']());}catch(_0x457d7a){_0x5b92dd['push'](_0x5b92dd['shift']());}}}(a128_0x4ecb,0xbc1d7));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a128_0x7610(_0xca32c4,_0x33251f){_0xca32c4=_0xca32c4-0x1de;const _0x4ecbe8=a128_0x4ecb();let _0x76108c=_0x4ecbe8[_0xca32c4];return _0x76108c;}export function getCliGitCommit(){const _0x300787=a128_0x7610,_0x4d78a6=String(GIT_COMMIT);return _0x4d78a6&&_0x4d78a6!==_0x300787(0x1e2)?_0x4d78a6:'';}function a128_0x4ecb(){const _0x3789ed=['6060365yjodFl','slice','2323479PHtyBY','8JtAJTu','2RlTgKx','1091610LcxRpM','6129822JlUDYx','872543IOINKW','unknown','143816zLmeFp','468355FxMgpD'];a128_0x4ecb=function(){return _0x3789ed;};return a128_0x4ecb();}export function getCliVersionDisplay(){const _0x14d994=a128_0x7610,_0x148e68=getCliGitCommit(),_0x51f913=BUILD_TIME[_0x14d994(0x1e6)](0x0,0xa);if(!_0x148e68||!_0x51f913)return VERSION;return VERSION+'\x20('+_0x148e68+',\x20'+_0x51f913+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e8d55,_0x5d95a2){var _0x489338=a129_0x4a03,_0x520102=_0x4e8d55();while(!![]){try{var _0x31f71f=-parseInt(_0x489338(0x15a))/0x1+-parseInt(_0x489338(0x14f))/0x2*(-parseInt(_0x489338(0x158))/0x3)+parseInt(_0x489338(0x150))/0x4+parseInt(_0x489338(0x157))/0x5+-parseInt(_0x489338(0x159))/0x6*(parseInt(_0x489338(0x156))/0x7)+-parseInt(_0x489338(0x151))/0x8+parseInt(_0x489338(0x152))/0x9*(parseInt(_0x489338(0x155))/0xa);if(_0x31f71f===_0x5d95a2)break;else _0x520102['push'](_0x520102['shift']());}catch(_0x3ccb2b){_0x520102['push'](_0x520102['shift']());}}}(a129_0x5ee6,0x86301));function a129_0x4a03(_0x1e52a2,_0x10b633){_0x1e52a2=_0x1e52a2-0x14f;var _0x5ee685=a129_0x5ee6();var _0x4a0313=_0x5ee685[_0x1e52a2];return _0x4a0313;}function a129_0x5ee6(){var _0x24a439=['1954761JVlHgu','52872bjbwSm','927116EEcXEi','2YsztwV','229864XSCMrF','4107448owQLQk','3132PtQtwq','write','stderr','42400KlaEsI','203Ovbedr','305775piezjc'];a129_0x5ee6=function(){return _0x24a439;};return a129_0x5ee6();}export function writeCliSideChannelLine(_0x1699c6){var _0x59f5de=a129_0x4a03;process[_0x59f5de(0x154)][_0x59f5de(0x153)](_0x1699c6+'\x0a');}
|
package/package.json
CHANGED