@lovrabet/lovrabet-cli 2.1.11-beta.2 → 2.1.11
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/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.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/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/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.js +1 -1
- package/lib/help.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/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 -0
- 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(_0x122f43,_0x7b9a7a){const _0x547c26=a106_0xd8b1,_0x2b89bc=_0x122f43();while(!![]){try{const _0x4d869e=-parseInt(_0x547c26(0x1e5))/0x1*(parseInt(_0x547c26(0x1dd))/0x2)+parseInt(_0x547c26(0x1e8))/0x3*(parseInt(_0x547c26(0x1e9))/0x4)+parseInt(_0x547c26(0x1e4))/0x5*(-parseInt(_0x547c26(0x1e1))/0x6)+-parseInt(_0x547c26(0x1de))/0x7*(parseInt(_0x547c26(0x1e0))/0x8)+-parseInt(_0x547c26(0x1e3))/0x9*(parseInt(_0x547c26(0x1d7))/0xa)+parseInt(_0x547c26(0x1df))/0xb+-parseInt(_0x547c26(0x1da))/0xc*(-parseInt(_0x547c26(0x1e7))/0xd);if(_0x4d869e===_0x7b9a7a)break;else _0x2b89bc['push'](_0x2b89bc['shift']());}catch(_0xfdf613){_0x2b89bc['push'](_0x2b89bc['shift']());}}}(a106_0x7afa,0x8c0a7));import{CliErrors}from'../../errors.js';function a106_0xd8b1(_0x396fb9,_0x4beb1a){_0x396fb9=_0x396fb9-0x1d6;const _0x7afa99=a106_0x7afa();let _0xd8b19c=_0x7afa99[_0x396fb9];return _0xd8b19c;}export function normalizeRuntimeSkillScopes(_0x342e2d){const _0x4f4332=a106_0xd8b1,_0x5b3d45=_0x342e2d&&_0x342e2d[_0x4f4332(0x1e2)]>0x0?_0x342e2d:['personal',_0x4f4332(0x1db),_0x4f4332(0x1d6)],_0x566334=[];for(const _0x53c942 of _0x5b3d45){if(!isRuntimeSkillScope(_0x53c942))throw CliErrors[_0x4f4332(0x1d8)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x53c942);!_0x566334[_0x4f4332(0x1e6)](_0x53c942)&&_0x566334[_0x4f4332(0x1dc)](_0x53c942);}return _0x566334;}function a106_0x7afa(){const _0x342c1e=['23075HcMAmH','3rwyIuK','4532908UyYeqS','builtin','154250AujAzf','validation','personal','10740uIRCLg','company','push','64oXbeVU','4278218PrBpHs','2194742vlMLmF','8uozRFF','4350246ASRRsf','length','576BYoynS','5EKSqYS','761jYwKgp','includes'];a106_0x7afa=function(){return _0x342c1e;};return a106_0x7afa();}export function isRuntimeSkillScope(_0x50f2f2){const _0x56cf62=a106_0xd8b1;return _0x50f2f2===_0x56cf62(0x1d9)||_0x50f2f2==='company'||_0x50f2f2==='builtin';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a108_0x2fbc(_0x310722,_0x535207){_0x310722=_0x310722-0x1ed;const _0x438999=a108_0x4389();let _0x2fbc43=_0x438999[_0x310722];return _0x2fbc43;}const a108_0x52c580=a108_0x2fbc;(function(_0x3fc789,_0x48fcb2){const _0x3c669d=a108_0x2fbc,_0x4a7588=_0x3fc789();while(!![]){try{const _0x517d05=parseInt(_0x3c669d(0x1f9))/0x1*(parseInt(_0x3c669d(0x1f5))/0x2)+parseInt(_0x3c669d(0x1ed))/0x3+parseInt(_0x3c669d(0x1fa))/0x4+parseInt(_0x3c669d(0x1f2))/0x5+parseInt(_0x3c669d(0x1f8))/0x6+-parseInt(_0x3c669d(0x1ee))/0x7*(-parseInt(_0x3c669d(0x1f6))/0x8)+-parseInt(_0x3c669d(0x1f7))/0x9;if(_0x517d05===_0x48fcb2)break;else _0x4a7588['push'](_0x4a7588['shift']());}catch(_0x1c2699){_0x4a7588['push'](_0x4a7588['shift']());}}}(a108_0x4389,0x80489));import{unzipSync,zipSync}from'fflate';function a108_0x4389(){const _0x7752a5=['Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','path','1980-01-01T00:00:00.000Z','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','sort','371301qyjHMb','5529083BiZpMc','validation_error','code','endsWith','3765310tYnadW','name','validation','45076FtCFDp','8yznZhJ','15130548sEFBsp','2166840uinAKM','7ufyLLd','84068rpXkWT','from','entries'];a108_0x4389=function(){return _0x7752a5;};return a108_0x4389();}import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a108_0x52c580(0x1ff));export function createDeterministicZipPackage(_0x38edbd){const _0x5c7302=a108_0x52c580,_0x566c1c={};for(const _0x5b7e69 of normalizeLocalFiles(_0x38edbd)){_0x566c1c[_0x5b7e69[_0x5c7302(0x1fe)]]=fileContent(_0x5b7e69);}return Buffer[_0x5c7302(0x1fb)](zipSync(_0x566c1c,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x48b821){const _0x15ce12=a108_0x52c580;if(_0x48b821['length']<0x16)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x1e1a58;try{_0x1e1a58=unzipSync(_0x48b821,{'filter'(_0x269ae3){const _0x802340=a108_0x2fbc,_0x1414f1=normalizeSkillRelativePath(_0x269ae3[_0x802340(0x1f3)]);if(_0x1414f1[_0x802340(0x1f1)]('/'))throw CliErrors[_0x802340(0x1f4)](_0x802340(0x200)+_0x1414f1);return!![];}});}catch(_0x3183f8){if(isRuntimeSkillValidationError(_0x3183f8))throw _0x3183f8;throw CliErrors[_0x15ce12(0x1f4)](_0x15ce12(0x1fd));}return Object[_0x15ce12(0x1fc)](_0x1e1a58)['map'](([_0x378862,_0x2e3619])=>({'path':normalizeSkillRelativePath(_0x378862),'bytes':Buffer[_0x15ce12(0x1fb)](_0x2e3619)}))[_0x15ce12(0x201)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x515eb0){const _0x5a7660=a108_0x52c580;return typeof _0x515eb0==='object'&&_0x515eb0!==null&&_0x5a7660(0x1f0)in _0x515eb0&&_0x515eb0[_0x5a7660(0x1f0)]===_0x5a7660(0x1ef);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3700f8,_0x4099d3){const _0x49d373=a109_0x1cbc,_0x5fd215=_0x3700f8();while(!![]){try{const _0xfbb098=parseInt(_0x49d373(0xf2))/0x1*(parseInt(_0x49d373(0x11d))/0x2)+parseInt(_0x49d373(0x118))/0x3+-parseInt(_0x49d373(0x10e))/0x4*(parseInt(_0x49d373(0xfb))/0x5)+parseInt(_0x49d373(0x10d))/0x6*(parseInt(_0x49d373(0x119))/0x7)+-parseInt(_0x49d373(0x104))/0x8*(parseInt(_0x49d373(0x108))/0x9)+-parseInt(_0x49d373(0x10a))/0xa*(parseInt(_0x49d373(0xf4))/0xb)+parseInt(_0x49d373(0xf9))/0xc*(-parseInt(_0x49d373(0x11a))/0xd);if(_0xfbb098===_0x4099d3)break;else _0x5fd215['push'](_0x5fd215['shift']());}catch(_0x4e2ca5){_0x5fd215['push'](_0x5fd215['shift']());}}}(a109_0x2fbf,0x9e25a));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';function a109_0x2fbf(){const _0x4020fb=['files','object','trim','schemaVersion','isArray','length','ossPath','string','2831730gmtsed','147QOsBDb','39oPSkOP','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','isSafeInteger','6770sFfNYB','push','262dckpOC','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','143WKKuWh','requireOssPath','bytes','map','Runtime\x20Skill\x20package\x20is\x20missing\x20','736176rFJIsi','sha256','1330570cvOTnM','treeSha256','zipSize','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','zipSha256','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','get','856ZdfWXp','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','some','65133owikyM','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','484300PpexIv','toLowerCase','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','191742BBWHMt','4WCLMva','path'];a109_0x2fbf=function(){return _0x4020fb;};return a109_0x2fbf();}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1ce72b){const _0x100934=a109_0x1cbc,_0x30c56f=normalizeLocalFiles(_0x1ce72b);if(!_0x30c56f[_0x100934(0x107)](_0x585d51=>_0x585d51[_0x100934(0x10f)]===SKILL_FILE))throw CliErrors[_0x100934(0x101)]('Missing\x20'+SKILL_FILE+'\x20in\x20Skill\x20file\x20package.');const _0x2b0266=localFilesToManifestFiles(_0x30c56f),_0x57c00f=createDeterministicZipPackage(_0x30c56f);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x2b0266),'zipSha256':bufferSha256(_0x57c00f),'zipSize':_0x57c00f[_0x100934(0x115)],'files':_0x2b0266},'packageBytes':_0x57c00f,'packageBase64':_0x57c00f['toString']('base64')};}export function verifyRuntimeSkillPackage(_0x4dc138,_0x4d1f29){const _0x2723eb=a109_0x1cbc,_0x3958fb=normalizePackageManifest(_0x4dc138,{'requireOssPath':![]});if(!_0x3958fb)throw CliErrors['validation'](_0x2723eb(0x106));return extractAndVerifyPackage(_0x3958fb,_0x4d1f29);}export function verifyRuntimeSkillBundle(_0x53f07b,_0x5663c1){const _0x54ea9e=a109_0x1cbc,_0x40211a=normalizePackageManifest(_0x53f07b,{'requireOssPath':![]});if(!_0x40211a)throw CliErrors[_0x54ea9e(0x101)](_0x54ea9e(0x106));return extractAndVerifyPackageFiles(_0x40211a,_0x5663c1);}export function tryNormalizePackageManifest(_0x3b8ffe){return normalizePackageManifest(_0x3b8ffe,{'requireOssPath':![]});}function a109_0x1cbc(_0x52ba14,_0x41ed21){_0x52ba14=_0x52ba14-0xf1;const _0x2fbf8e=a109_0x2fbf();let _0x1cbc3a=_0x2fbf8e[_0x52ba14];return _0x1cbc3a;}export function requirePackageBytes(_0x11dafe,_0x325b30){const _0x73ab9a=a109_0x1cbc;if(!_0x325b30||_0x325b30[_0x73ab9a(0x115)]===0x0)throw CliErrors[_0x73ab9a(0x101)](_0x73ab9a(0xf3)+_0x11dafe);return _0x325b30;}export function extractDownloadedPackage(_0x19c244){const _0x1d78ff=a109_0x1cbc,_0x2e7537=parseZipPackage(_0x19c244)['map'](_0x585a96=>({'path':_0x585a96[_0x1d78ff(0x10f)],'bytes':_0x585a96[_0x1d78ff(0xf6)]}));if(!_0x2e7537['some'](_0x314b5a=>_0x314b5a[_0x1d78ff(0x10f)]===SKILL_FILE))throw CliErrors['validation'](_0x1d78ff(0xf8)+SKILL_FILE+'.');return normalizeLocalFiles(_0x2e7537);}export function localFilesToManifestFiles(_0x50482f){const _0x1b8621=a109_0x1cbc;return normalizeLocalFiles(_0x50482f)[_0x1b8621(0xf7)](_0x4d0e4a=>({'path':_0x4d0e4a[_0x1b8621(0x10f)],'sha256':fileHash(_0x4d0e4a),'size':fileContent(_0x4d0e4a)[_0x1b8621(0x115)]}));}function normalizePackageManifest(_0x45be1b,_0x287851){const _0x22c0b4=a109_0x1cbc;if(!_0x45be1b||typeof _0x45be1b!==_0x22c0b4(0x111)||Array[_0x22c0b4(0x114)](_0x45be1b))return undefined;const _0xc3228=_0x45be1b,_0x536013=typeof _0xc3228[_0x22c0b4(0x116)]===_0x22c0b4(0x117)?_0xc3228[_0x22c0b4(0x116)][_0x22c0b4(0x112)]():undefined;if(_0x287851[_0x22c0b4(0xf5)]&&!_0x536013)return undefined;if(!Array['isArray'](_0xc3228[_0x22c0b4(0x110)])||_0xc3228[_0x22c0b4(0x110)]['length']===0x0)return undefined;if(!isSha256Hex(_0xc3228[_0x22c0b4(0xfc)]))throw CliErrors['validation'](_0x22c0b4(0x11b));if(!isSha256Hex(_0xc3228[_0x22c0b4(0xff)]))throw CliErrors[_0x22c0b4(0x101)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x22c0b4(0x11c)](_0xc3228[_0x22c0b4(0xfd)])||_0xc3228[_0x22c0b4(0xfd)]<0x0)throw CliErrors['validation'](_0x22c0b4(0x10c));const _0x4a3bd9=normalizeManifestFiles(_0xc3228[_0x22c0b4(0x110)]);if(!_0x4a3bd9[_0x22c0b4(0x107)](_0x4f78b1=>_0x4f78b1['path']===SKILL_FILE))throw CliErrors[_0x22c0b4(0x101)](_0x22c0b4(0x109)+SKILL_FILE+'.');const _0xd7a241=fileTreeHash(_0x4a3bd9);if(_0xd7a241!==_0xc3228[_0x22c0b4(0xfc)][_0x22c0b4(0x10b)]())throw CliErrors[_0x22c0b4(0x101)](_0x22c0b4(0x102));return{'schemaVersion':Number[_0x22c0b4(0x11c)](_0xc3228[_0x22c0b4(0x113)])?_0xc3228[_0x22c0b4(0x113)]:0x2,'ossPath':_0x536013,'treeSha256':_0xd7a241,'zipSha256':_0xc3228['zipSha256']['toLowerCase'](),'zipSize':_0xc3228['zipSize'],'files':_0x4a3bd9};}function extractAndVerifyPackage(_0x8ff12d,_0x263a3){const _0x2e21cd=a109_0x1cbc,_0xa1dda4=normalizePackageManifest(_0x8ff12d,{'requireOssPath':![]});if(!_0xa1dda4)throw CliErrors[_0x2e21cd(0x101)](_0x2e21cd(0x106));if(_0x263a3[_0x2e21cd(0x115)]!==_0xa1dda4[_0x2e21cd(0xfd)])throw CliErrors[_0x2e21cd(0x101)]('Runtime\x20Skill\x20package\x20size\x20mismatch.');const _0x9cf241=bufferSha256(_0x263a3);if(_0x9cf241!==_0xa1dda4[_0x2e21cd(0xff)])throw CliErrors[_0x2e21cd(0x101)](_0x2e21cd(0x105));return extractAndVerifyPackageFiles(_0xa1dda4,_0x263a3);}function extractAndVerifyPackageFiles(_0x5f2b31,_0x461a57){const _0x42ef08=a109_0x1cbc,_0x31f46f=parseZipPackage(_0x461a57);if(_0x31f46f[_0x42ef08(0x115)]!==_0x5f2b31[_0x42ef08(0x110)][_0x42ef08(0x115)])throw CliErrors[_0x42ef08(0x101)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x196dfb=new Map();for(const _0x142501 of _0x31f46f){if(_0x196dfb['has'](_0x142501['path']))throw CliErrors[_0x42ef08(0x101)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x142501[_0x42ef08(0x10f)]);_0x196dfb['set'](_0x142501[_0x42ef08(0x10f)],_0x142501);}const _0x11eed9=[];for(const _0x25d202 of _0x5f2b31[_0x42ef08(0x110)]){const _0x3b0969=_0x196dfb[_0x42ef08(0x103)](_0x25d202[_0x42ef08(0x10f)]);if(!_0x3b0969)throw CliErrors[_0x42ef08(0x101)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x25d202[_0x42ef08(0x10f)]);if(_0x3b0969[_0x42ef08(0xf6)][_0x42ef08(0x115)]!==_0x25d202['size'])throw CliErrors[_0x42ef08(0x101)](_0x42ef08(0xfe)+_0x25d202['path']);const _0x241c11=bufferSha256(_0x3b0969[_0x42ef08(0xf6)]);if(_0x241c11!==_0x25d202[_0x42ef08(0xfa)])throw CliErrors[_0x42ef08(0x101)](_0x42ef08(0x100)+_0x25d202['path']);_0x11eed9[_0x42ef08(0xf1)]({'path':_0x25d202[_0x42ef08(0x10f)],'bytes':_0x3b0969[_0x42ef08(0xf6)]});}return normalizeLocalFiles(_0x11eed9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b83e4,_0x3b94a7){var _0x958649=a110_0x2788,_0x9479d4=_0x1b83e4();while(!![]){try{var _0x13e0fb=-parseInt(_0x958649(0x1a0))/0x1+parseInt(_0x958649(0x199))/0x2*(parseInt(_0x958649(0x19b))/0x3)+parseInt(_0x958649(0x19e))/0x4+parseInt(_0x958649(0x198))/0x5*(-parseInt(_0x958649(0x19a))/0x6)+parseInt(_0x958649(0x19f))/0x7+-parseInt(_0x958649(0x19d))/0x8*(-parseInt(_0x958649(0x19c))/0x9)+parseInt(_0x958649(0x197))/0xa*(-parseInt(_0x958649(0x1a1))/0xb);if(_0x13e0fb===_0x3b94a7)break;else _0x9479d4['push'](_0x9479d4['shift']());}catch(_0x51dee2){_0x9479d4['push'](_0x9479d4['shift']());}}}(a110_0x5e27,0x9423d));function a110_0x5e27(){var _0x7fda78=['6220487DRlPRC','502956ABlQIf','22vJEQYE','6948420kgGrIz','234640YqFKIf','5198DOSXzW','132zIwRyj','1191ELezTt','450yqHpwr','183688NZaqqZ','1853372eCXfSe'];a110_0x5e27=function(){return _0x7fda78;};return a110_0x5e27();}function a110_0x2788(_0x6773c6,_0xcc8fc4){_0x6773c6=_0x6773c6-0x197;var _0x5e270b=a110_0x5e27();var _0x2788e6=_0x5e270b[_0x6773c6];return _0x2788e6;}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';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 a111_0x4e03(){const _0x617ed6=['7536296urzmmH','2772504opvOVY','1136385uMkfeo','3253228rWsNsw','5jIniVd','7813645bKDKgq','609190Yssxpl','18UyDBPj','6357336ejfFbk'];a111_0x4e03=function(){return _0x617ed6;};return a111_0x4e03();}(function(_0x4c9b6e,_0x3e2a27){const _0x4e48c4=a111_0x3783,_0x31c3cf=_0x4c9b6e();while(!![]){try{const _0x3e554f=-parseInt(_0x4e48c4(0x86))/0x1+parseInt(_0x4e48c4(0x81))/0x2+parseInt(_0x4e48c4(0x85))/0x3+-parseInt(_0x4e48c4(0x87))/0x4*(-parseInt(_0x4e48c4(0x7f))/0x5)+-parseInt(_0x4e48c4(0x83))/0x6+-parseInt(_0x4e48c4(0x80))/0x7+-parseInt(_0x4e48c4(0x84))/0x8*(-parseInt(_0x4e48c4(0x82))/0x9);if(_0x3e554f===_0x3e2a27)break;else _0x31c3cf['push'](_0x31c3cf['shift']());}catch(_0x40e3e8){_0x31c3cf['push'](_0x31c3cf['shift']());}}}(a111_0x4e03,0x95e50));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a111_0x3783(_0x214643,_0x5dc0b5){_0x214643=_0x214643-0x7f;const _0x4e03ea=a111_0x4e03();let _0x3783bf=_0x4e03ea[_0x214643];return _0x3783bf;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x5d8cf8=a112_0x3951;(function(_0x1dc812,_0x595a9b){const _0x2504c6=a112_0x3951,_0x5ad101=_0x1dc812();while(!![]){try{const _0x566456=parseInt(_0x2504c6(0x1f0))/0x1*(parseInt(_0x2504c6(0x1d6))/0x2)+parseInt(_0x2504c6(0x1ce))/0x3*(parseInt(_0x2504c6(0x1f9))/0x4)+parseInt(_0x2504c6(0x1d0))/0x5*(-parseInt(_0x2504c6(0x1cf))/0x6)+parseInt(_0x2504c6(0x204))/0x7*(parseInt(_0x2504c6(0x1d9))/0x8)+-parseInt(_0x2504c6(0x1df))/0x9*(-parseInt(_0x2504c6(0x1ee))/0xa)+-parseInt(_0x2504c6(0x1da))/0xb+parseInt(_0x2504c6(0x1cb))/0xc;if(_0x566456===_0x595a9b)break;else _0x5ad101['push'](_0x5ad101['shift']());}catch(_0x175873){_0x5ad101['push'](_0x5ad101['shift']());}}}(a112_0x16b3,0xc3a46));function a112_0x3951(_0x4732ca,_0x45470d){_0x4732ca=_0x4732ca-0x1cb;const _0x16b3e7=a112_0x16b3();let _0x3951e9=_0x16b3e7[_0x4732ca];return _0x3951e9;}import a112_0x2e1fdc from'winston';import a112_0x22a61c from'node:fs';import a112_0xd294fa from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a112_0x16b3(){const _0x2dc873=['logTask','setRawCommand','12dYcqgN','394866odPtoS','95gsBHRq','timestamp','join','message','error','initWinstonLogger','317698zDHRNK','warn','details','120cSSXBT','12035243MjHTRM','log','yellow','Failed:\x20','transports','1282410YQEFQD','map','toISOString','duration','readFileSync','winstonLogger','parse','Failed\x20to\x20clear\x20logs:','currentRawCommand','rawCommand','filter','blue','info','logFilePath','File','20ONtzWw','readLogs','7Efwwmx','unknown','utf8','Failed\x20to\x20read\x20logs:','red','errors','green','setLogPath','success','935932CXpgnq','command','printf','trim','split','level','logFileName','addColors','format','now','combine','45983ljsSYf','8573784nRCZvY'];a112_0x16b3=function(){return _0x2dc873;};return a112_0x16b3();}class Logger{[a112_0x5d8cf8(0x1e4)];[a112_0x5d8cf8(0x1ec)]='';['currentRawCommand']='';constructor(){}[a112_0x5d8cf8(0x1cd)](_0x54202b){const _0x313b8f=a112_0x5d8cf8;this[_0x313b8f(0x1e7)]=_0x54202b;}[a112_0x5d8cf8(0x1f7)](_0x2df687){const _0x293cc6=a112_0x5d8cf8;this['logFilePath']=a112_0xd294fa[_0x293cc6(0x1d2)](_0x2df687,PRODUCT_CONFIG[_0x293cc6(0x1ff)]),this['winstonLogger']&&this[_0x293cc6(0x1e4)]['clear'](),this['initWinstonLogger']();}[a112_0x5d8cf8(0x1d5)](){const _0x10d965=a112_0x5d8cf8,_0x2f62f3=a112_0xd294fa['dirname'](this[_0x10d965(0x1ec)]);!a112_0x22a61c['existsSync'](_0x2f62f3)&&a112_0x22a61c['mkdirSync'](_0x2f62f3,{'recursive':!![]});const _0x3098ba=a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x203)](a112_0x2e1fdc['format'][_0x10d965(0x1d1)](),a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x1f5)]({'stack':!![]}),a112_0x2e1fdc[_0x10d965(0x201)][_0x10d965(0x1fb)](_0x3fc7fe=>{const _0x194dc1=_0x10d965,_0x5ec1b9={'timestamp':_0x3fc7fe[_0x194dc1(0x1d1)]||new Date()[_0x194dc1(0x1e1)](),'level':_0x3fc7fe[_0x194dc1(0x1fe)]||_0x194dc1(0x1eb),'command':_0x3fc7fe[_0x194dc1(0x1fa)]||_0x194dc1(0x1f1),'rawCommand':_0x3fc7fe[_0x194dc1(0x1e8)]||this[_0x194dc1(0x1e7)]||undefined,'message':_0x3fc7fe[_0x194dc1(0x1d3)]||'','duration':_0x3fc7fe[_0x194dc1(0x1e2)]||undefined,'details':_0x3fc7fe[_0x194dc1(0x1d8)]||undefined};return JSON['stringify'](_0x5ec1b9);}));this[_0x10d965(0x1e4)]=a112_0x2e1fdc['createLogger']({'level':'info','format':_0x3098ba,'transports':[new a112_0x2e1fdc[(_0x10d965(0x1de))][(_0x10d965(0x1ed))]({'filename':this[_0x10d965(0x1ec)],'level':'info'})],'silent':![]}),a112_0x2e1fdc[_0x10d965(0x200)]({'success':_0x10d965(0x1f6),'error':_0x10d965(0x1f4),'warn':_0x10d965(0x1dc),'info':_0x10d965(0x1ea)});}[a112_0x5d8cf8(0x1eb)](_0x28de1d,_0x21cfbe,_0x34f5f6){const _0x296187=a112_0x5d8cf8;if(!this[_0x296187(0x1ec)]||!this[_0x296187(0x1e4)])return;this[_0x296187(0x1e4)]['info'](_0x21cfbe,{'command':_0x28de1d,'details':_0x34f5f6});}[a112_0x5d8cf8(0x1f8)](_0x55abe7,_0xd1cb81,_0x2c2237,_0x4a47a0){const _0x50e2cd=a112_0x5d8cf8;if(!this[_0x50e2cd(0x1ec)]||!this[_0x50e2cd(0x1e4)])return;this[_0x50e2cd(0x1e4)][_0x50e2cd(0x1db)]('info',_0xd1cb81,{'level':_0x50e2cd(0x1f8),'command':_0x55abe7,'duration':_0x2c2237,'details':_0x4a47a0});}[a112_0x5d8cf8(0x1d4)](_0x2d5492,_0xe7ea2a,_0x331aed){const _0x35bce6=a112_0x5d8cf8;if(!this[_0x35bce6(0x1ec)]||!this[_0x35bce6(0x1e4)])return;this[_0x35bce6(0x1e4)][_0x35bce6(0x1d4)](_0xe7ea2a,{'command':_0x2d5492,'details':_0x331aed});}[a112_0x5d8cf8(0x1d7)](_0x7ca95,_0x4e108c,_0x2ec5fc){const _0x18d933=a112_0x5d8cf8;if(!this[_0x18d933(0x1ec)]||!this[_0x18d933(0x1e4)])return;this[_0x18d933(0x1e4)][_0x18d933(0x1d7)](_0x4e108c,{'command':_0x7ca95,'details':_0x2ec5fc});}async[a112_0x5d8cf8(0x1cc)](_0x1be41f,_0x548922,_0x2d4cb7){const _0x135299=a112_0x5d8cf8,_0x4fc79b=Date[_0x135299(0x202)]();this[_0x135299(0x1eb)](_0x1be41f,'Starting:\x20'+_0x548922);try{const _0x93d5b7=await _0x2d4cb7(),_0x551b5a=Date[_0x135299(0x202)]()-_0x4fc79b;return this[_0x135299(0x1f8)](_0x1be41f,'Completed:\x20'+_0x548922,_0x551b5a),_0x93d5b7;}catch(_0x2b879e){const _0x2f7bc0=Date[_0x135299(0x202)]()-_0x4fc79b;this[_0x135299(0x1d4)](_0x1be41f,_0x135299(0x1dd)+_0x548922,{'error':_0x2b879e instanceof Error?_0x2b879e[_0x135299(0x1d3)]:String(_0x2b879e),'duration':_0x2f7bc0});throw _0x2b879e;}}[a112_0x5d8cf8(0x1ef)](){const _0x23312b=a112_0x5d8cf8;try{if(!a112_0x22a61c['existsSync'](this[_0x23312b(0x1ec)]))return[];const _0x4fcb33=a112_0x22a61c[_0x23312b(0x1e3)](this['logFilePath'],_0x23312b(0x1f2));return _0x4fcb33[_0x23312b(0x1fd)](/\r?\n/)[_0x23312b(0x1e9)](_0x18864b=>_0x18864b[_0x23312b(0x1fc)]())[_0x23312b(0x1e0)](_0x4b2527=>JSON[_0x23312b(0x1e5)](_0x4b2527));}catch(_0x2ee246){return console[_0x23312b(0x1d7)](_0x23312b(0x1f3),_0x2ee246),[];}}['clearLogs'](){const _0x19fb13=a112_0x5d8cf8;try{a112_0x22a61c['existsSync'](this[_0x19fb13(0x1ec)])&&a112_0x22a61c['writeFileSync'](this['logFilePath'],'',_0x19fb13(0x1f2));}catch(_0x2994af){console['warn'](_0x19fb13(0x1e6),_0x2994af);}}['getWinstonInstance'](){const _0x4a6698=a112_0x5d8cf8;return this[_0x4a6698(0x1e4)];}}export const logger=new Logger();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a113_0x1c9d7b=a113_0x26c9;function a113_0x3236(){const _0x5511af=['parse','prototype','includes','186973aMqhHI','736vdgYfc','12999kVcEao','exec','1150710totdNS','slice','length','MAX_SAFE_INTEGER','25683fQhDjy','3632436xCjVEq','text','json','getOwnPropertyDescriptor','647646XEhDQZ','14453220KsFzof','2gRLNjj','defineProperty','388AHIDLk'];a113_0x3236=function(){return _0x5511af;};return a113_0x3236();}(function(_0x5e525e,_0x4683eb){const _0x486e10=a113_0x26c9,_0x5be319=_0x5e525e();while(!![]){try{const _0x29dc6d=-parseInt(_0x486e10(0x169))/0x1*(parseInt(_0x486e10(0x163))/0x2)+parseInt(_0x486e10(0x16b))/0x3*(-parseInt(_0x486e10(0x165))/0x4)+parseInt(_0x486e10(0x16d))/0x5+-parseInt(_0x486e10(0x161))/0x6+parseInt(_0x486e10(0x15c))/0x7*(-parseInt(_0x486e10(0x16a))/0x8)+-parseInt(_0x486e10(0x15d))/0x9+parseInt(_0x486e10(0x162))/0xa;if(_0x29dc6d===_0x4683eb)break;else _0x5be319['push'](_0x5be319['shift']());}catch(_0x55956f){_0x5be319['push'](_0x5be319['shift']());}}}(a113_0x3236,0x357d9));function a113_0x26c9(_0xe6cd94,_0x39b6ee){_0xe6cd94=_0xe6cd94-0x15a;const _0x323612=a113_0x3236();let _0x26c972=_0x323612[_0xe6cd94];return _0x26c972;}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a113_0x1c9d7b(0x15b)]),MIN_SAFE_INTEGER=BigInt(Number['MIN_SAFE_INTEGER']);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x31410e){const _0x2b564e=a113_0x1c9d7b;if(_0x31410e[_0x2b564e(0x168)]('.')||_0x31410e[_0x2b564e(0x168)]('e')||_0x31410e['includes']('E'))return![];const _0x1816b0=BigInt(_0x31410e);return _0x1816b0>MAX_SAFE_INTEGER||_0x1816b0<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xc3cde0){const _0x4e13c3=a113_0x1c9d7b;let _0x26ea30='',_0x27561b=![],_0x395eb2=![];for(let _0x35dced=0x0;_0x35dced<_0xc3cde0[_0x4e13c3(0x15a)];){const _0x2bf3f5=_0xc3cde0[_0x35dced];if(_0x27561b){_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;if(_0x395eb2)_0x395eb2=![];else{if(_0x2bf3f5==='\x5c')_0x395eb2=!![];else _0x2bf3f5==='\x22'&&(_0x27561b=![]);}continue;}if(_0x2bf3f5==='\x22'){_0x27561b=!![],_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;continue;}if(_0x2bf3f5==='-'||_0x2bf3f5>='0'&&_0x2bf3f5<='9'){const _0xede7ac=JSON_NUMBER_PATTERN[_0x4e13c3(0x16c)](_0xc3cde0[_0x4e13c3(0x16e)](_0x35dced))?.[0x0];if(_0xede7ac){_0x26ea30+=isUnsafeIntegerLiteral(_0xede7ac)?'\x22'+_0xede7ac+'\x22':_0xede7ac,_0x35dced+=_0xede7ac[_0x4e13c3(0x15a)];continue;}}_0x26ea30+=_0x2bf3f5,_0x35dced+=0x1;}return _0x26ea30;}export function parseLosslessJson(_0x1266c8){const _0x13773d=a113_0x1c9d7b;return JSON[_0x13773d(0x166)](quoteUnsafeIntegerLiterals(_0x1266c8));}export function installLosslessJsonResponseParser(){const _0x4ca693=a113_0x1c9d7b;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x4ca693(0x167)],originalResponseJsonDescriptor=Object[_0x4ca693(0x160)](responseJsonPrototype,_0x4ca693(0x15f)),Object[_0x4ca693(0x164)](responseJsonPrototype,_0x4ca693(0x15f),{'configurable':!![],'enumerable':![],'value':async function _0x53c2c2(){const _0x1f18b4=_0x4ca693;return parseLosslessJson(await this[_0x1f18b4(0x15e)]());},'writable':!![]}),restoreResponseJsonParser=()=>{const _0xca6e0a=_0x4ca693;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0xca6e0a(0x164)](responseJsonPrototype,_0xca6e0a(0x15f),originalResponseJsonDescriptor):delete responseJsonPrototype[_0xca6e0a(0x15f)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24b080,_0x55f136){const _0x2bf05b=a114_0x4086,_0x3fb133=_0x24b080();while(!![]){try{const _0x2b9c52=parseInt(_0x2bf05b(0x1ee))/0x1*(parseInt(_0x2bf05b(0x1da))/0x2)+parseInt(_0x2bf05b(0x1ec))/0x3*(parseInt(_0x2bf05b(0x1ed))/0x4)+parseInt(_0x2bf05b(0x1e0))/0x5+-parseInt(_0x2bf05b(0x1ef))/0x6+parseInt(_0x2bf05b(0x1d8))/0x7+parseInt(_0x2bf05b(0x1df))/0x8*(parseInt(_0x2bf05b(0x1e4))/0x9)+-parseInt(_0x2bf05b(0x1e7))/0xa*(parseInt(_0x2bf05b(0x1d5))/0xb);if(_0x2b9c52===_0x55f136)break;else _0x3fb133['push'](_0x3fb133['shift']());}catch(_0x2af01c){_0x3fb133['push'](_0x3fb133['shift']());}}}(a114_0x1cc8,0x93627));import{CliErrors}from'../errors.js';function a114_0x4086(_0x36e9ff,_0x4f5103){_0x36e9ff=_0x36e9ff-0x1d4;const _0x1cc8fb=a114_0x1cc8();let _0x408635=_0x1cc8fb[_0x36e9ff];return _0x408635;}import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x5408da){const _0x59221f=a114_0x4086;if(!_0x5408da)return undefined;try{return parseLosslessJson(_0x5408da);}catch{throw CliErrors[_0x59221f(0x1dd)](_0x59221f(0x1e6)+_0x5408da);}}export function parseJsonParamsValue(_0x5e6e38){const _0x43dc08=a114_0x4086;if(!_0x5e6e38)return undefined;try{return parseLosslessJson(_0x5e6e38);}catch{throw CliErrors[_0x43dc08(0x1dd)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5e6e38);}}export function parseBatchCreateItemsFromParams(_0x843019){const _0x128afe=a114_0x4086;if(Array[_0x128afe(0x1eb)](_0x843019))return _0x843019;if(_0x843019!==null&&_0x843019!==undefined&&typeof _0x843019===_0x128afe(0x1ea)&&Array[_0x128afe(0x1eb)](_0x843019['items']))return _0x843019[_0x128afe(0x1d6)];throw CliErrors[_0x128afe(0x1dd)](_0x128afe(0x1d4),_0x128afe(0x1e3));}function parseDataUpdateId(_0x586635,_0x16f6ec){const _0x5a98e9=a114_0x4086;if(typeof _0x586635==='number'&&Number['isSafeInteger'](_0x586635)&&_0x586635>0x0)return _0x586635;if(typeof _0x586635==='string'){if(/^[1-9]\d*$/[_0x5a98e9(0x1e8)](_0x586635))return _0x586635;}throw CliErrors[_0x5a98e9(0x1dd)](_0x5a98e9(0x1e9)+_0x16f6ec+_0x5a98e9(0x1e2));}function a114_0x1cc8(){const _0x4418f1=['1123048NbSCqy','33638vitmwa','4268412jWCrFv','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','481404ymOvuY','items','id[','7771043DqNpyI','join','64rwLxwO','data\x20update\x20can\x20update\x20at\x20most\x20','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','validation','length','679088FLhJAZ','4038620gGGYhz','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','117SGvUpD','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','Invalid\x20JSON\x20for\x20--params:\x20','700UIpCnU','test','data\x20update\x20--params.','object','isArray','3mEbAEw'];a114_0x1cc8=function(){return _0x4418f1;};return a114_0x1cc8();}export function parseUpdateIdsFromParams(_0x16852d){const _0x3e044f=a114_0x4086;if(_0x16852d===null||_0x16852d===undefined||typeof _0x16852d!==_0x3e044f(0x1ea)||Array['isArray'](_0x16852d))throw CliErrors['validation']('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x3e044f(0x1e5));const _0x48b9aa=_0x16852d['id'];if(_0x48b9aa===undefined||_0x48b9aa===null)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1dc),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x41fea6=Array['isArray'](_0x48b9aa)?_0x48b9aa:[_0x48b9aa];if(_0x41fea6[_0x3e044f(0x1de)]===0x0)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1e1));if(_0x41fea6[_0x3e044f(0x1de)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x3e044f(0x1dd)](_0x3e044f(0x1db)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x41fea6['length']+'.');return _0x41fea6['map']((_0x388d3d,_0x13e177)=>parseDataUpdateId(_0x388d3d,Array['isArray'](_0x48b9aa)?_0x3e044f(0x1d7)+_0x13e177+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x1e3a76,_0x550146){const _0x2ccdeb=a114_0x4086;if(Array['isArray'](_0x1e3a76['id'])&&_0x550146[_0x2ccdeb(0x1de)]>0x1)return{..._0x1e3a76,'id':_0x550146[_0x2ccdeb(0x1d9)](',')};return _0x1e3a76;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a115_0x54f1(_0x4c44d8,_0x36d0ca){_0x4c44d8=_0x4c44d8-0x1ad;const _0x41cafe=a115_0x41ca();let _0x54f1d6=_0x41cafe[_0x4c44d8];return _0x54f1d6;}const a115_0x69b6b8=a115_0x54f1;(function(_0x26eaa7,_0x54f3d7){const _0x517012=a115_0x54f1,_0x487c8c=_0x26eaa7();while(!![]){try{const _0x444b7e=-parseInt(_0x517012(0x1b3))/0x1*(parseInt(_0x517012(0x1b4))/0x2)+-parseInt(_0x517012(0x1b9))/0x3*(-parseInt(_0x517012(0x1b2))/0x4)+parseInt(_0x517012(0x1b7))/0x5+-parseInt(_0x517012(0x1b8))/0x6+parseInt(_0x517012(0x1b0))/0x7*(-parseInt(_0x517012(0x1b5))/0x8)+parseInt(_0x517012(0x1af))/0x9+parseInt(_0x517012(0x1b6))/0xa;if(_0x444b7e===_0x54f3d7)break;else _0x487c8c['push'](_0x487c8c['shift']());}catch(_0x194781){_0x487c8c['push'](_0x487c8c['shift']());}}}(a115_0x41ca,0xdca0b));function a115_0x41ca(){const _0x39d2be=['win32','platform','6526161SUsqVj','2107puSSrx','.cmd','4kXHwha','1MXtakn','958610QHGZUJ','27672CafAaB','13109840VoSJkT','7540885SxTRwO','7410024OwUnze','344607eDvOOw'];a115_0x41ca=function(){return _0x39d2be;};return a115_0x41ca();}export const isWindows=process[a115_0x69b6b8(0x1ae)]===a115_0x69b6b8(0x1ad);export function resolveNpmBin(_0x33cbad){const _0x59e549=a115_0x69b6b8;return isWindows?_0x33cbad+_0x59e549(0x1b1):_0x33cbad;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe20fee,_0x2042e4){const _0x11f35b=a116_0x38f5,_0x11d122=_0xe20fee();while(!![]){try{const _0x505522=-parseInt(_0x11f35b(0xb1))/0x1+-parseInt(_0x11f35b(0xc8))/0x2+parseInt(_0x11f35b(0xc0))/0x3*(parseInt(_0x11f35b(0xb9))/0x4)+-parseInt(_0x11f35b(0xc7))/0x5+parseInt(_0x11f35b(0xb7))/0x6*(-parseInt(_0x11f35b(0xc5))/0x7)+-parseInt(_0x11f35b(0xc9))/0x8+parseInt(_0x11f35b(0xcb))/0x9;if(_0x505522===_0x2042e4)break;else _0x11d122['push'](_0x11d122['shift']());}catch(_0x367b1b){_0x11d122['push'](_0x11d122['shift']());}}}(a116_0xc616,0x6a544));import{mkdir,readFile,writeFile}from'node:fs/promises';function a116_0xc616(){const _0x497894=['/dist-tags','/-/package/',',\x20run:\x20','lastNotifiedVersion','filter','440278XnbvrX','number','patch','utf8','.cache','latest','12cQXuFA','toLowerCase','176FPwjpM','\x20update','true','/v/','Invalid\x20semver','entries','timeout','41118IsNjFA','stringify','object','prerelease','\x20available,\x20current\x20','942508hWrJxF','trim','1448145vbHHJR','1019304kKFbeN','2033856zOPOHw','checkedAt','14359851sZkwpn','match','update-check.json','yes'];a116_0xc616=function(){return _0x497894;};return a116_0xc616();}import{homedir}from'node:os';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 parseSemver(_0x595747){const _0x3fef50=a116_0x38f5,_0x5811b1=_0x595747[_0x3fef50(0xc6)]()[_0x3fef50(0xcc)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5811b1)return null;return{'major':Number(_0x5811b1[0x1]),'minor':Number(_0x5811b1[0x2]),'patch':Number(_0x5811b1[0x3]),'prerelease':_0x5811b1[0x4]};}function compareSemver(_0x584953,_0x5b23e9){const _0x50acd4=a116_0x38f5,_0x1cfe05=parseSemver(_0x584953),_0x155eab=parseSemver(_0x5b23e9);if(!_0x1cfe05||!_0x155eab)throw new Error(_0x50acd4(0xbd));for(const _0x1bf678 of['major','minor',_0x50acd4(0xb3)]){if(_0x1cfe05[_0x1bf678]<_0x155eab[_0x1bf678])return-0x1;if(_0x1cfe05[_0x1bf678]>_0x155eab[_0x1bf678])return 0x1;}if(!_0x1cfe05[_0x50acd4(0xc3)]&&!_0x155eab[_0x50acd4(0xc3)])return 0x0;if(!_0x1cfe05[_0x50acd4(0xc3)])return 0x1;if(!_0x155eab[_0x50acd4(0xc3)])return-0x1;if(_0x1cfe05[_0x50acd4(0xc3)]===_0x155eab[_0x50acd4(0xc3)])return 0x0;return _0x1cfe05[_0x50acd4(0xc3)]<_0x155eab[_0x50acd4(0xc3)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0xd665d7=a116_0x38f5,_0xf1de4e=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0xd665d7(0xc6)]()[_0xd665d7(0xb8)]();return _0xf1de4e==='1'||_0xf1de4e===_0xd665d7(0xbb)||_0xf1de4e===_0xd665d7(0xce);}function a116_0x38f5(_0x332d99,_0x3168be){_0x332d99=_0x332d99-0xaf;const _0xc61664=a116_0xc616();let _0x38f59e=_0xc61664[_0x332d99];return _0x38f59e;}function cacheRoot(){const _0x174a97=a116_0x38f5;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x174a97(0xb5));}export function getUpdateNoticeCachePath(){const _0x4505a4=a116_0x38f5;return join(cacheRoot(),'lovrabet-cli',_0x4505a4(0xcd));}async function readUpdateNoticeCache(){const _0x491dce=a116_0x38f5;try{const _0x30bd52=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x12b11a=JSON['parse'](_0x30bd52);if(!_0x12b11a||typeof _0x12b11a!==_0x491dce(0xc2))return{};return _0x12b11a;}catch{return{};}}async function writeUpdateNoticeCache(_0x2a0576){const _0x3e5609=a116_0x38f5;try{const _0x4ad5c6=getUpdateNoticeCachePath();await mkdir(dirname(_0x4ad5c6),{'recursive':!![]}),await writeFile(_0x4ad5c6,JSON[_0x3e5609(0xc1)](_0x2a0576,null,0x2)+'\x0a',_0x3e5609(0xb4));}catch{}}function isFreshCheck(_0x2dafa6,_0x76fa49){const _0x234499=a116_0x38f5;return typeof _0x2dafa6[_0x234499(0xca)]===_0x234499(0xb2)&&_0x76fa49-_0x2dafa6[_0x234499(0xca)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x522cf4,_0x26be68,_0x2e94ed){const _0x1e7b90=a116_0x38f5;return _0x522cf4[_0x1e7b90(0xaf)]===_0x26be68&&typeof _0x522cf4['lastNotifiedAt']===_0x1e7b90(0xb2)&&_0x2e94ed-_0x522cf4['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x189c93=0x5dc){const _0x1cb431=a116_0x38f5;try{const _0x392a5d=NPM_REGISTRY_BASE_URL+_0x1cb431(0xd0)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1cb431(0xcf),_0x3b84e2=await fetch(_0x392a5d,{'signal':AbortSignal[_0x1cb431(0xbf)](_0x189c93)});if(!_0x3b84e2['ok'])return null;const _0x424b66=await _0x3b84e2['json']();if(!_0x424b66||typeof _0x424b66!==_0x1cb431(0xc2))return null;return Object['fromEntries'](Object[_0x1cb431(0xbe)](_0x424b66)[_0x1cb431(0xb0)](([,_0x2e6191])=>typeof _0x2e6191==='string'&&_0x2e6191[_0x1cb431(0xc6)]())['map'](([_0xa52301,_0x1e2141])=>[_0xa52301,String(_0x1e2141)[_0x1cb431(0xc6)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x402915){const _0x5e5b04=a116_0x38f5;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x5e5b04(0xbc)+_0x402915;}export async function resolveLatestUpdateNotice(){const _0x31b928=a116_0x38f5;if(isUpdateNoticeDisabled())return null;try{const _0x1bb153=Date['now'](),_0xa912ee=getCliVersion(),_0x57c385=await readUpdateNoticeCache();let _0x481ddc=isFreshCheck(_0x57c385,_0x1bb153)?_0x57c385[_0x31b928(0xb6)]?.[_0x31b928(0xc6)]():undefined;if(!_0x481ddc&&!isFreshCheck(_0x57c385,_0x1bb153)){const _0x33429a=await fetchNpmDistTags();_0x481ddc=_0x33429a?.['latest']?.[_0x31b928(0xc6)](),await writeUpdateNoticeCache({..._0x57c385,'checkedAt':_0x1bb153,'latest':_0x481ddc,'failed':!_0x481ddc});}if(!_0x481ddc||compareSemver(_0xa912ee,_0x481ddc)>=0x0)return null;if(isRecentlyNotified(_0x57c385,_0x481ddc,_0x1bb153))return null;const _0x481fb4=CLI_BIN_NAME+_0x31b928(0xba);return await writeUpdateNoticeCache({..._0x57c385,'checkedAt':isFreshCheck(_0x57c385,_0x1bb153)?_0x57c385[_0x31b928(0xca)]:_0x1bb153,'latest':_0x481ddc,'failed':![],'lastNotifiedVersion':_0x481ddc,'lastNotifiedAt':_0x1bb153}),{'command':_0x481fb4,'current':_0xa912ee,'latest':_0x481ddc,'url':buildNpmVersionUrl(_0x481ddc),'message':CLI_BIN_NAME+'\x20'+_0x481ddc+_0x31b928(0xc4)+_0xa912ee+_0x31b928(0xd1)+_0x481fb4};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe57584,_0x2ac567){const _0x43eef4=a117_0x13ab,_0x248c2e=_0xe57584();while(!![]){try{const _0x1cce21=parseInt(_0x43eef4(0xa3))/0x1+-parseInt(_0x43eef4(0xa1))/0x2*(-parseInt(_0x43eef4(0x99))/0x3)+parseInt(_0x43eef4(0x9b))/0x4*(parseInt(_0x43eef4(0x9e))/0x5)+parseInt(_0x43eef4(0xa0))/0x6+parseInt(_0x43eef4(0xa2))/0x7+parseInt(_0x43eef4(0x9d))/0x8+-parseInt(_0x43eef4(0x9c))/0x9;if(_0x1cce21===_0x2ac567)break;else _0x248c2e['push'](_0x248c2e['shift']());}catch(_0x30e25f){_0x248c2e['push'](_0x248c2e['shift']());}}}(a117_0x25d0,0x8f892));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a117_0x25d0(){const _0x428ff3=['4635844SrkNyZ','41477058JCmgpJ','5446568hVONIi','5XKlSvy','unknown','5015106ROomMV','934CfoKjS','4119640mFMFDS','1030554URerFt','5793EFrrcQ','slice'];a117_0x25d0=function(){return _0x428ff3;};return a117_0x25d0();}function a117_0x13ab(_0x477409,_0x4bdc7a){_0x477409=_0x477409-0x99;const _0x25d051=a117_0x25d0();let _0x13aba0=_0x25d051[_0x477409];return _0x13aba0;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x132fb9=a117_0x13ab,_0x5837c8=String(GIT_COMMIT);return _0x5837c8&&_0x5837c8!==_0x132fb9(0x9f)?_0x5837c8:'';}export function getCliVersionDisplay(){const _0x23a86b=a117_0x13ab,_0x3b3846=getCliGitCommit(),_0x331501=BUILD_TIME[_0x23a86b(0x9a)](0x0,0xa);if(!_0x3b3846||!_0x331501)return VERSION;return VERSION+'\x20('+_0x3b3846+',\x20'+_0x331501+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x256c74,_0x7c08f6){var _0xa9e847=a118_0x2849,_0x259d2e=_0x256c74();while(!![]){try{var _0x4c4e60=-parseInt(_0xa9e847(0xc8))/0x1*(parseInt(_0xa9e847(0xca))/0x2)+-parseInt(_0xa9e847(0xce))/0x3*(parseInt(_0xa9e847(0xcb))/0x4)+-parseInt(_0xa9e847(0xcd))/0x5*(-parseInt(_0xa9e847(0xc9))/0x6)+parseInt(_0xa9e847(0xc6))/0x7*(-parseInt(_0xa9e847(0xcf))/0x8)+parseInt(_0xa9e847(0xc5))/0x9+-parseInt(_0xa9e847(0xc7))/0xa+-parseInt(_0xa9e847(0xd0))/0xb*(-parseInt(_0xa9e847(0xcc))/0xc);if(_0x4c4e60===_0x7c08f6)break;else _0x259d2e['push'](_0x259d2e['shift']());}catch(_0x325407){_0x259d2e['push'](_0x259d2e['shift']());}}}(a118_0x2e03,0x8bff0));export function writeCliSideChannelLine(_0xfeb819){process['stderr']['write'](_0xfeb819+'\x0a');}function a118_0x2849(_0x179621,_0x1c8755){_0x179621=_0x179621-0xc5;var _0x2e03f1=a118_0x2e03();var _0x284979=_0x2e03f1[_0x179621];return _0x284979;}function a118_0x2e03(){var _0x1fd40a=['42775WTSQkV','24VAOtQK','8cllaqc','77raVlUz','9549432marxQh','3511907UrLqMU','3632170CHGGpX','458572olgeZB','480SoVFoZ','4mhwGcE','455188loaZcr','2606424tfriKx'];a118_0x2e03=function(){return _0x1fd40a;};return a118_0x2e03();}
|