@lovrabet/lovrabet-cli 2.1.8 → 2.1.9-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.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/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/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(_0xa6a429,_0x10692d){const _0x1474e1=a108_0x4532,_0x3e76e8=_0xa6a429();while(!![]){try{const _0x5777ee=-parseInt(_0x1474e1(0x206))/0x1*(parseInt(_0x1474e1(0x1f6))/0x2)+-parseInt(_0x1474e1(0x213))/0x3*(-parseInt(_0x1474e1(0x1ea))/0x4)+parseInt(_0x1474e1(0x1f3))/0x5+-parseInt(_0x1474e1(0x20b))/0x6*(-parseInt(_0x1474e1(0x1e9))/0x7)+parseInt(_0x1474e1(0x1f7))/0x8*(-parseInt(_0x1474e1(0x1f4))/0x9)+-parseInt(_0x1474e1(0x1fd))/0xa+parseInt(_0x1474e1(0x1f1))/0xb*(parseInt(_0x1474e1(0x200))/0xc);if(_0x5777ee===_0x10692d)break;else _0x3e76e8['push'](_0x3e76e8['shift']());}catch(_0x3ff9e0){_0x3e76e8['push'](_0x3e76e8['shift']());}}}(a108_0x3d75,0x3adcd));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';function a108_0x4532(_0xd9c785,_0x13ba82){_0xd9c785=_0xd9c785-0x1e9;const _0x3d7522=a108_0x3d75();let _0x4532be=_0x3d7522[_0xd9c785];return _0x4532be;}import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';function a108_0x3d75(){const _0x3b78c9=['Runtime\x20Skill\x20package\x20is\x20missing\x20','14172vhDjkT','files','\x20in\x20Skill\x20file\x20package.','size','push','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','74DkzVSv','get','path','bytes','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','24LfdvXO','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','zipSize','zipSha256','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','isSafeInteger','requireOssPath','243jKjgmo','170919zWuxKo','16404HchzlP','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','validation','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','length','5137MSiyUO','has','388665VUbNps','9IsVuXo','isArray','9860OWjESC','2561480BcMrAS','map','schemaVersion','some','trim','base64','1330030pHrday','Runtime\x20Skill\x20package\x20size\x20mismatch.'];a108_0x3d75=function(){return _0x3b78c9;};return a108_0x3d75();}export function buildSkillPackage(_0x56699d){const _0xe7b5dd=a108_0x4532,_0x8a232c=normalizeLocalFiles(_0x56699d);if(!_0x8a232c[_0xe7b5dd(0x1fa)](_0x3fd37a=>_0x3fd37a[_0xe7b5dd(0x208)]===SKILL_FILE))throw CliErrors[_0xe7b5dd(0x1ed)]('Missing\x20'+SKILL_FILE+_0xe7b5dd(0x202));const _0xbfe1f=localFilesToManifestFiles(_0x8a232c),_0x182dff=createDeterministicZipPackage(_0x8a232c);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0xbfe1f),'zipSha256':bufferSha256(_0x182dff),'zipSize':_0x182dff[_0xe7b5dd(0x1f0)],'files':_0xbfe1f},'packageBytes':_0x182dff,'packageBase64':_0x182dff['toString'](_0xe7b5dd(0x1fc))};}export function verifyRuntimeSkillPackage(_0x551dff,_0xbbc962){const _0x3c0431=a108_0x4532,_0x44b793=normalizePackageManifest(_0x551dff,{'requireOssPath':![]});if(!_0x44b793)throw CliErrors[_0x3c0431(0x1ed)](_0x3c0431(0x1ec));return extractAndVerifyPackage(_0x44b793,_0xbbc962);}export function verifyRuntimeSkillBundle(_0x43367f,_0x1e640d){const _0x14273d=a108_0x4532,_0x4afbb2=normalizePackageManifest(_0x43367f,{'requireOssPath':![]});if(!_0x4afbb2)throw CliErrors['validation'](_0x14273d(0x1ec));return extractAndVerifyPackageFiles(_0x4afbb2,_0x1e640d);}export function tryNormalizePackageManifest(_0x1943a3){return normalizePackageManifest(_0x1943a3,{'requireOssPath':![]});}export function requirePackageBytes(_0x53e944,_0x55ed76){const _0x718617=a108_0x4532;if(!_0x55ed76||_0x55ed76['length']===0x0)throw CliErrors[_0x718617(0x1ed)](_0x718617(0x1eb)+_0x53e944);return _0x55ed76;}export function extractDownloadedPackage(_0x4c5db2){const _0x56ac51=a108_0x4532,_0x1213eb=parseZipPackage(_0x4c5db2)['map'](_0x54b8df=>({'path':_0x54b8df[_0x56ac51(0x208)],'bytes':_0x54b8df[_0x56ac51(0x209)]}));if(!_0x1213eb[_0x56ac51(0x1fa)](_0x2a156d=>_0x2a156d[_0x56ac51(0x208)]===SKILL_FILE))throw CliErrors[_0x56ac51(0x1ed)](_0x56ac51(0x1ff)+SKILL_FILE+'.');return normalizeLocalFiles(_0x1213eb);}export function localFilesToManifestFiles(_0x3d5424){const _0x546bd2=a108_0x4532;return normalizeLocalFiles(_0x3d5424)[_0x546bd2(0x1f8)](_0x14194c=>({'path':_0x14194c[_0x546bd2(0x208)],'sha256':fileHash(_0x14194c),'size':fileContent(_0x14194c)[_0x546bd2(0x1f0)]}));}function normalizePackageManifest(_0x2c6dc8,_0x1e9823){const _0x323ceb=a108_0x4532;if(!_0x2c6dc8||typeof _0x2c6dc8!=='object'||Array[_0x323ceb(0x1f5)](_0x2c6dc8))return undefined;const _0x40ba53=_0x2c6dc8,_0x49d4e5=typeof _0x40ba53['ossPath']==='string'?_0x40ba53['ossPath'][_0x323ceb(0x1fb)]():undefined;if(_0x1e9823[_0x323ceb(0x212)]&&!_0x49d4e5)return undefined;if(!Array[_0x323ceb(0x1f5)](_0x40ba53[_0x323ceb(0x201)])||_0x40ba53[_0x323ceb(0x201)]['length']===0x0)return undefined;if(!isSha256Hex(_0x40ba53['treeSha256']))throw CliErrors['validation'](_0x323ceb(0x20c));if(!isSha256Hex(_0x40ba53['zipSha256']))throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x1ef));if(!Number[_0x323ceb(0x211)](_0x40ba53[_0x323ceb(0x20d)])||_0x40ba53['zipSize']<0x0)throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x205));const _0xd34102=normalizeManifestFiles(_0x40ba53[_0x323ceb(0x201)]);if(!_0xd34102['some'](_0x34c7ec=>_0x34c7ec[_0x323ceb(0x208)]===SKILL_FILE))throw CliErrors['validation']('Runtime\x20Skill\x20manifest\x20is\x20missing\x20'+SKILL_FILE+'.');const _0x46f756=fileTreeHash(_0xd34102);if(_0x46f756!==_0x40ba53['treeSha256']['toLowerCase']())throw CliErrors[_0x323ceb(0x1ed)](_0x323ceb(0x1ee));return{'schemaVersion':Number['isSafeInteger'](_0x40ba53['schemaVersion'])?_0x40ba53[_0x323ceb(0x1f9)]:0x2,'ossPath':_0x49d4e5,'treeSha256':_0x46f756,'zipSha256':_0x40ba53[_0x323ceb(0x20e)]['toLowerCase'](),'zipSize':_0x40ba53[_0x323ceb(0x20d)],'files':_0xd34102};}function extractAndVerifyPackage(_0x3283ec,_0x398f46){const _0x26d2e4=a108_0x4532,_0x5a0249=normalizePackageManifest(_0x3283ec,{'requireOssPath':![]});if(!_0x5a0249)throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x1ec));if(_0x398f46[_0x26d2e4(0x1f0)]!==_0x5a0249[_0x26d2e4(0x20d)])throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x1fe));const _0x3c639a=bufferSha256(_0x398f46);if(_0x3c639a!==_0x5a0249['zipSha256'])throw CliErrors[_0x26d2e4(0x1ed)](_0x26d2e4(0x20f));return extractAndVerifyPackageFiles(_0x5a0249,_0x398f46);}function extractAndVerifyPackageFiles(_0x238a74,_0x3e2e87){const _0x3fea62=a108_0x4532,_0x1560ae=parseZipPackage(_0x3e2e87);if(_0x1560ae['length']!==_0x238a74[_0x3fea62(0x201)][_0x3fea62(0x1f0)])throw CliErrors[_0x3fea62(0x1ed)](_0x3fea62(0x20a));const _0x5cb483=new Map();for(const _0x4452f8 of _0x1560ae){if(_0x5cb483[_0x3fea62(0x1f2)](_0x4452f8[_0x3fea62(0x208)]))throw CliErrors[_0x3fea62(0x1ed)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x4452f8[_0x3fea62(0x208)]);_0x5cb483['set'](_0x4452f8[_0x3fea62(0x208)],_0x4452f8);}const _0x1fbd18=[];for(const _0x2a5fd2 of _0x238a74[_0x3fea62(0x201)]){const _0x598cfa=_0x5cb483[_0x3fea62(0x207)](_0x2a5fd2['path']);if(!_0x598cfa)throw CliErrors[_0x3fea62(0x1ed)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x2a5fd2[_0x3fea62(0x208)]);if(_0x598cfa['bytes']['length']!==_0x2a5fd2[_0x3fea62(0x203)])throw CliErrors[_0x3fea62(0x1ed)]('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x2a5fd2[_0x3fea62(0x208)]);const _0x4498e4=bufferSha256(_0x598cfa[_0x3fea62(0x209)]);if(_0x4498e4!==_0x2a5fd2['sha256'])throw CliErrors[_0x3fea62(0x1ed)](_0x3fea62(0x210)+_0x2a5fd2[_0x3fea62(0x208)]);_0x1fbd18[_0x3fea62(0x204)]({'path':_0x2a5fd2['path'],'bytes':_0x598cfa[_0x3fea62(0x209)]});}return normalizeLocalFiles(_0x1fbd18);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f301a,_0x1cbe5c){var _0x5da5bb=a109_0x7c91,_0x2b9bbd=_0x4f301a();while(!![]){try{var _0x272205=parseInt(_0x5da5bb(0xb2))/0x1+parseInt(_0x5da5bb(0xaa))/0x2*(parseInt(_0x5da5bb(0xb0))/0x3)+-parseInt(_0x5da5bb(0xac))/0x4*(parseInt(_0x5da5bb(0xad))/0x5)+-parseInt(_0x5da5bb(0xab))/0x6*(parseInt(_0x5da5bb(0xa7))/0x7)+-parseInt(_0x5da5bb(0xa9))/0x8+-parseInt(_0x5da5bb(0xae))/0x9*(parseInt(_0x5da5bb(0xb1))/0xa)+parseInt(_0x5da5bb(0xa8))/0xb*(parseInt(_0x5da5bb(0xaf))/0xc);if(_0x272205===_0x1cbe5c)break;else _0x2b9bbd['push'](_0x2b9bbd['shift']());}catch(_0xf7ebca){_0x2b9bbd['push'](_0x2b9bbd['shift']());}}}(a109_0x2691,0xbd55e));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';function a109_0x7c91(_0x544d9c,_0x2d19e5){_0x544d9c=_0x544d9c-0xa7;var _0x269179=a109_0x2691();var _0x7c91a4=_0x269179[_0x544d9c];return _0x7c91a4;}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a109_0x2691(){var _0x5c2a43=['9010312NHutvy','10wTZaDC','6HqzddA','8132Dparyp','3765uoCghv','9ikNLcs','273624JzwLMr','379275HqBWvw','11575250cpIOZk','321780WUOnPB','8224622UMMtEs','2321RFaodI'];a109_0x2691=function(){return _0x5c2a43;};return a109_0x2691();}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(_0x4ba075,_0x14ff44){const _0x5875ce=a110_0x3ae2,_0x270760=_0x4ba075();while(!![]){try{const _0x48b09f=-parseInt(_0x5875ce(0x11f))/0x1*(-parseInt(_0x5875ce(0x120))/0x2)+parseInt(_0x5875ce(0x122))/0x3*(parseInt(_0x5875ce(0x11b))/0x4)+parseInt(_0x5875ce(0x11c))/0x5+parseInt(_0x5875ce(0x11a))/0x6*(-parseInt(_0x5875ce(0x123))/0x7)+-parseInt(_0x5875ce(0x124))/0x8+parseInt(_0x5875ce(0x119))/0x9*(parseInt(_0x5875ce(0x11d))/0xa)+parseInt(_0x5875ce(0x121))/0xb*(-parseInt(_0x5875ce(0x11e))/0xc);if(_0x48b09f===_0x14ff44)break;else _0x270760['push'](_0x270760['shift']());}catch(_0x571188){_0x270760['push'](_0x270760['shift']());}}}(a110_0x28f7,0xdb5c5));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a110_0x28f7(){const _0x45ff49=['84469JkidTj','3837736SZgbBk','9oXAJtT','12oHOEOp','1113716zuydVk','359570YUDvSZ','9863310BLxmLX','36GZnlrZ','2833bCDPET','70lCQLdm','122749gRuqla','3hHDlgY'];a110_0x28f7=function(){return _0x45ff49;};return a110_0x28f7();}function a110_0x3ae2(_0x303b07,_0x5b0898){_0x303b07=_0x303b07-0x119;const _0x28f746=a110_0x28f7();let _0x3ae24c=_0x28f746[_0x303b07];return _0x3ae24c;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x3a70ee=a111_0x2e4e;(function(_0x57ad3d,_0x17a210){const _0x1725b6=a111_0x2e4e,_0x1ad3f8=_0x57ad3d();while(!![]){try{const _0x543f7f=parseInt(_0x1725b6(0x9b))/0x1+parseInt(_0x1725b6(0x97))/0x2+parseInt(_0x1725b6(0x8c))/0x3*(-parseInt(_0x1725b6(0x7f))/0x4)+parseInt(_0x1725b6(0xa8))/0x5*(-parseInt(_0x1725b6(0x7a))/0x6)+parseInt(_0x1725b6(0x99))/0x7+-parseInt(_0x1725b6(0xa0))/0x8+parseInt(_0x1725b6(0x88))/0x9;if(_0x543f7f===_0x17a210)break;else _0x1ad3f8['push'](_0x1ad3f8['shift']());}catch(_0x778098){_0x1ad3f8['push'](_0x1ad3f8['shift']());}}}(a111_0x14da,0xdd54e));import a111_0x41e5db from'winston';function a111_0x2e4e(_0x3acccc,_0x2108eb){_0x3acccc=_0x3acccc-0x78;const _0x14da54=a111_0x14da();let _0x2e4e69=_0x14da54[_0x3acccc];return _0x2e4e69;}import a111_0x4bffdf from'node:fs';function a111_0x14da(){const _0x438a9e=['red','format','error','utf8','winstonLogger','Completed:\x20','Failed\x20to\x20read\x20logs:','map','24162jlGMWz','split','8686776ZEbJxN','toISOString','1042341OWIKQc','setRawCommand','logFilePath','createLogger','rawCommand','6607656DnkAKe','trim','logTask','info','green','Starting:\x20','details','clearLogs','2593035fdPLlS','command','timestamp','success','12ddbTHZ','printf','File','dirname','now','292UjyNxc','getWinstonInstance','warn','readLogs','stringify','currentRawCommand','logFileName','message','initWinstonLogger','15419142DtzZhV','clear','errors','existsSync','50913uUwfnv','mkdirSync','log'];a111_0x14da=function(){return _0x438a9e;};return a111_0x14da();}import a111_0xe4d246 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a111_0x3a70ee(0x93)];[a111_0x3a70ee(0x9d)]='';[a111_0x3a70ee(0x84)]='';constructor(){}[a111_0x3a70ee(0x9c)](_0x5db1f6){const _0x4e9b63=a111_0x3a70ee;this[_0x4e9b63(0x84)]=_0x5db1f6;}['setLogPath'](_0x375089){const _0x57e1f5=a111_0x3a70ee;this[_0x57e1f5(0x9d)]=a111_0xe4d246['join'](_0x375089,PRODUCT_CONFIG[_0x57e1f5(0x85)]),this[_0x57e1f5(0x93)]&&this['winstonLogger'][_0x57e1f5(0x89)](),this[_0x57e1f5(0x87)]();}[a111_0x3a70ee(0x87)](){const _0x54dc5f=a111_0x3a70ee,_0x3e108c=a111_0xe4d246[_0x54dc5f(0x7d)](this[_0x54dc5f(0x9d)]);!a111_0x4bffdf[_0x54dc5f(0x8b)](_0x3e108c)&&a111_0x4bffdf[_0x54dc5f(0x8d)](_0x3e108c,{'recursive':!![]});const _0x33827f=a111_0x41e5db[_0x54dc5f(0x90)]['combine'](a111_0x41e5db['format']['timestamp'](),a111_0x41e5db['format'][_0x54dc5f(0x8a)]({'stack':!![]}),a111_0x41e5db['format'][_0x54dc5f(0x7b)](_0x5e1821=>{const _0x9c227=_0x54dc5f,_0x230262={'timestamp':_0x5e1821[_0x9c227(0x78)]||new Date()[_0x9c227(0x9a)](),'level':_0x5e1821['level']||_0x9c227(0xa3),'command':_0x5e1821[_0x9c227(0xa9)]||'unknown','rawCommand':_0x5e1821[_0x9c227(0x9f)]||this[_0x9c227(0x84)]||undefined,'message':_0x5e1821[_0x9c227(0x86)]||'','duration':_0x5e1821['duration']||undefined,'details':_0x5e1821[_0x9c227(0xa6)]||undefined};return JSON[_0x9c227(0x83)](_0x230262);}));this[_0x54dc5f(0x93)]=a111_0x41e5db[_0x54dc5f(0x9e)]({'level':'info','format':_0x33827f,'transports':[new a111_0x41e5db['transports'][(_0x54dc5f(0x7c))]({'filename':this[_0x54dc5f(0x9d)],'level':'info'})],'silent':![]}),a111_0x41e5db['addColors']({'success':_0x54dc5f(0xa4),'error':_0x54dc5f(0x8f),'warn':'yellow','info':'blue'});}[a111_0x3a70ee(0xa3)](_0xf06a48,_0x3a5a80,_0x1490d0){const _0x2ee13c=a111_0x3a70ee;if(!this[_0x2ee13c(0x9d)]||!this[_0x2ee13c(0x93)])return;this[_0x2ee13c(0x93)][_0x2ee13c(0xa3)](_0x3a5a80,{'command':_0xf06a48,'details':_0x1490d0});}[a111_0x3a70ee(0x79)](_0xeb5969,_0x49d92d,_0x4f0ab7,_0x387088){const _0xf09aae=a111_0x3a70ee;if(!this['logFilePath']||!this[_0xf09aae(0x93)])return;this[_0xf09aae(0x93)][_0xf09aae(0x8e)](_0xf09aae(0xa3),_0x49d92d,{'level':'success','command':_0xeb5969,'duration':_0x4f0ab7,'details':_0x387088});}['error'](_0x55a6cc,_0x4d228d,_0x196ea9){const _0x41c379=a111_0x3a70ee;if(!this[_0x41c379(0x9d)]||!this[_0x41c379(0x93)])return;this['winstonLogger'][_0x41c379(0x91)](_0x4d228d,{'command':_0x55a6cc,'details':_0x196ea9});}[a111_0x3a70ee(0x81)](_0x1f4510,_0x7f0a3b,_0x250cdc){const _0x367400=a111_0x3a70ee;if(!this[_0x367400(0x9d)]||!this['winstonLogger'])return;this['winstonLogger'][_0x367400(0x81)](_0x7f0a3b,{'command':_0x1f4510,'details':_0x250cdc});}async[a111_0x3a70ee(0xa2)](_0x2747dc,_0x44e665,_0x25183f){const _0x226070=a111_0x3a70ee,_0x5b86ea=Date[_0x226070(0x7e)]();this['info'](_0x2747dc,_0x226070(0xa5)+_0x44e665);try{const _0x40a157=await _0x25183f(),_0x202c95=Date[_0x226070(0x7e)]()-_0x5b86ea;return this[_0x226070(0x79)](_0x2747dc,_0x226070(0x94)+_0x44e665,_0x202c95),_0x40a157;}catch(_0x501eeb){const _0x45fc85=Date[_0x226070(0x7e)]()-_0x5b86ea;this[_0x226070(0x91)](_0x2747dc,'Failed:\x20'+_0x44e665,{'error':_0x501eeb instanceof Error?_0x501eeb['message']:String(_0x501eeb),'duration':_0x45fc85});throw _0x501eeb;}}[a111_0x3a70ee(0x82)](){const _0x27be7b=a111_0x3a70ee;try{if(!a111_0x4bffdf[_0x27be7b(0x8b)](this[_0x27be7b(0x9d)]))return[];const _0xc315b0=a111_0x4bffdf['readFileSync'](this['logFilePath'],_0x27be7b(0x92));return _0xc315b0[_0x27be7b(0x98)](/\r?\n/)['filter'](_0x2071b0=>_0x2071b0[_0x27be7b(0xa1)]())[_0x27be7b(0x96)](_0x5473ea=>JSON['parse'](_0x5473ea));}catch(_0x2d7685){return console[_0x27be7b(0x81)](_0x27be7b(0x95),_0x2d7685),[];}}[a111_0x3a70ee(0xa7)](){const _0x58eacc=a111_0x3a70ee;try{a111_0x4bffdf[_0x58eacc(0x8b)](this[_0x58eacc(0x9d)])&&a111_0x4bffdf['writeFileSync'](this[_0x58eacc(0x9d)],'','utf8');}catch(_0x75f52){console[_0x58eacc(0x81)]('Failed\x20to\x20clear\x20logs:',_0x75f52);}}[a111_0x3a70ee(0x80)](){const _0x4ea564=a111_0x3a70ee;return this[_0x4ea564(0x93)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12b1e9,_0xd8aeab){const _0x30634b=a112_0x1e60,_0x402b25=_0x12b1e9();while(!![]){try{const _0x16678e=parseInt(_0x30634b(0x160))/0x1+-parseInt(_0x30634b(0x155))/0x2*(-parseInt(_0x30634b(0x15c))/0x3)+parseInt(_0x30634b(0x166))/0x4*(parseInt(_0x30634b(0x14c))/0x5)+parseInt(_0x30634b(0x157))/0x6+-parseInt(_0x30634b(0x156))/0x7*(parseInt(_0x30634b(0x150))/0x8)+-parseInt(_0x30634b(0x14e))/0x9+-parseInt(_0x30634b(0x151))/0xa;if(_0x16678e===_0xd8aeab)break;else _0x402b25['push'](_0x402b25['shift']());}catch(_0x47918c){_0x402b25['push'](_0x402b25['shift']());}}}(a112_0x3f0e,0x61fba));import{CliErrors}from'../errors.js';function a112_0x3f0e(){const _0x552854=['1880850UqOcNP','Invalid\x20JSON\x20for\x20--params:\x20','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','isArray','7746YxnGbd','validation','test','id[','66391OIEQBv','isSafeInteger','number','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params.','parse','26900WgYagG','length','585SmmSyX','data\x20update\x20can\x20update\x20at\x20most\x20','2066148nstAAH','object','8wiyXkG','5090540KbbFvZ','items','map','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','122DWTTvt','1289603soQqlK'];a112_0x3f0e=function(){return _0x552854;};return a112_0x3f0e();}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x1e634a){const _0x3cefa5=a112_0x1e60;if(!_0x1e634a)return undefined;try{return JSON[_0x3cefa5(0x165)](_0x1e634a);}catch{throw CliErrors['validation'](_0x3cefa5(0x158)+_0x1e634a);}}export function parseJsonParamsValue(_0x40dbd8){const _0x5b7b16=a112_0x1e60;if(!_0x40dbd8)return undefined;try{return JSON['parse'](_0x40dbd8);}catch{throw CliErrors[_0x5b7b16(0x15d)](_0x5b7b16(0x158)+_0x40dbd8);}}function a112_0x1e60(_0x2ff22a,_0x3bf307){_0x2ff22a=_0x2ff22a-0x14c;const _0x3f0e1a=a112_0x3f0e();let _0x1e6019=_0x3f0e1a[_0x2ff22a];return _0x1e6019;}export function parseBatchCreateItemsFromParams(_0x4637d3){const _0x5377ef=a112_0x1e60;if(Array[_0x5377ef(0x15b)](_0x4637d3))return _0x4637d3;if(_0x4637d3!==null&&_0x4637d3!==undefined&&typeof _0x4637d3===_0x5377ef(0x14f)&&Array[_0x5377ef(0x15b)](_0x4637d3[_0x5377ef(0x152)]))return _0x4637d3['items'];throw CliErrors[_0x5377ef(0x15d)](_0x5377ef(0x154),'Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x1c7082,_0x43420d){const _0x2f193d=a112_0x1e60;if(typeof _0x1c7082===_0x2f193d(0x162)&&Number[_0x2f193d(0x161)](_0x1c7082)&&_0x1c7082>0x0)return _0x1c7082;if(typeof _0x1c7082==='string'){if(/^[1-9]\d*$/[_0x2f193d(0x15e)](_0x1c7082))return _0x1c7082;}throw CliErrors[_0x2f193d(0x15d)](_0x2f193d(0x164)+_0x43420d+_0x2f193d(0x159));}export function parseUpdateIdsFromParams(_0x4c0ab3){const _0x595e26=a112_0x1e60;if(_0x4c0ab3===null||_0x4c0ab3===undefined||typeof _0x4c0ab3!==_0x595e26(0x14f)||Array[_0x595e26(0x15b)](_0x4c0ab3))throw CliErrors[_0x595e26(0x15d)](_0x595e26(0x15a),_0x595e26(0x163));const _0x330c01=_0x4c0ab3['id'];if(_0x330c01===undefined||_0x330c01===null)throw CliErrors[_0x595e26(0x15d)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x155581=Array['isArray'](_0x330c01)?_0x330c01:[_0x330c01];if(_0x155581[_0x595e26(0x167)]===0x0)throw CliErrors[_0x595e26(0x15d)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x155581[_0x595e26(0x167)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x595e26(0x15d)](_0x595e26(0x14d)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x155581[_0x595e26(0x167)]+'.');return _0x155581[_0x595e26(0x153)]((_0x4f8a0c,_0x40743f)=>parseDataUpdateId(_0x4f8a0c,Array['isArray'](_0x330c01)?_0x595e26(0x15f)+_0x40743f+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x13d98c,_0x1ba283){const _0x2aba5e=a112_0x1e60;if(Array[_0x2aba5e(0x15b)](_0x13d98c['id'])&&_0x1ba283[_0x2aba5e(0x167)]>0x1)return{..._0x13d98c,'id':_0x1ba283['join'](',')};return _0x13d98c;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a113_0x5095(_0x397c9c,_0xb9db21){_0x397c9c=_0x397c9c-0x88;const _0x310139=a113_0x3101();let _0x509510=_0x310139[_0x397c9c];return _0x509510;}const a113_0x4ab335=a113_0x5095;(function(_0x24773d,_0x1f7aa4){const _0x17407d=a113_0x5095,_0x2a6e3a=_0x24773d();while(!![]){try{const _0x2cbcc3=-parseInt(_0x17407d(0x8f))/0x1*(parseInt(_0x17407d(0x97))/0x2)+parseInt(_0x17407d(0x8a))/0x3*(parseInt(_0x17407d(0x92))/0x4)+parseInt(_0x17407d(0x90))/0x5*(parseInt(_0x17407d(0x96))/0x6)+parseInt(_0x17407d(0x95))/0x7*(parseInt(_0x17407d(0x8d))/0x8)+parseInt(_0x17407d(0x8c))/0x9+-parseInt(_0x17407d(0x88))/0xa*(parseInt(_0x17407d(0x94))/0xb)+parseInt(_0x17407d(0x8e))/0xc*(-parseInt(_0x17407d(0x91))/0xd);if(_0x2cbcc3===_0x1f7aa4)break;else _0x2a6e3a['push'](_0x2a6e3a['shift']());}catch(_0x786367){_0x2a6e3a['push'](_0x2a6e3a['shift']());}}}(a113_0x3101,0xab1be));export const isWindows=process[a113_0x4ab335(0x89)]===a113_0x4ab335(0x93);export function resolveNpmBin(_0x5f4813){const _0x173424=a113_0x4ab335;return isWindows?_0x5f4813+_0x173424(0x8b):_0x5f4813;}function a113_0x3101(){const _0x2f95d5=['32gBTRti','3252948BQucWh','2531wXoeJa','2750mcydVM','13NpsUZb','2724sjWbDB','win32','77cyOAsx','1371881qNkAeL','2424BlsmsQ','862OIZCHx','738790IMeYoN','platform','3243BFJgvd','.cmd','7538958BJbfsc'];a113_0x3101=function(){return _0x2f95d5;};return a113_0x3101();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ca1d0,_0x1cf0b5){const _0x1cda6c=a114_0x3fbf,_0x5db9fc=_0x5ca1d0();while(!![]){try{const _0x5084bf=parseInt(_0x1cda6c(0xcb))/0x1+-parseInt(_0x1cda6c(0xbc))/0x2+parseInt(_0x1cda6c(0xd5))/0x3*(-parseInt(_0x1cda6c(0xbf))/0x4)+-parseInt(_0x1cda6c(0xc1))/0x5+-parseInt(_0x1cda6c(0xcd))/0x6*(parseInt(_0x1cda6c(0xc6))/0x7)+-parseInt(_0x1cda6c(0xd0))/0x8+-parseInt(_0x1cda6c(0xd8))/0x9*(-parseInt(_0x1cda6c(0xd6))/0xa);if(_0x5084bf===_0x1cf0b5)break;else _0x5db9fc['push'](_0x5db9fc['shift']());}catch(_0x10122f){_0x5db9fc['push'](_0x5db9fc['shift']());}}}(a114_0x30f7,0x7c17a));import{mkdir,readFile,writeFile}from'node:fs/promises';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(_0x386e49){const _0x15f5b1=a114_0x3fbf,_0x3e7790=_0x386e49[_0x15f5b1(0xd4)]()[_0x15f5b1(0xc5)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3e7790)return null;return{'major':Number(_0x3e7790[0x1]),'minor':Number(_0x3e7790[0x2]),'patch':Number(_0x3e7790[0x3]),'prerelease':_0x3e7790[0x4]};}function compareSemver(_0x53d7cd,_0x32d8e0){const _0x434b98=a114_0x3fbf,_0x3a053e=parseSemver(_0x53d7cd),_0x451ee4=parseSemver(_0x32d8e0);if(!_0x3a053e||!_0x451ee4)throw new Error('Invalid\x20semver');for(const _0x3092fc of[_0x434b98(0xce),_0x434b98(0xd1),'patch']){if(_0x3a053e[_0x3092fc]<_0x451ee4[_0x3092fc])return-0x1;if(_0x3a053e[_0x3092fc]>_0x451ee4[_0x3092fc])return 0x1;}if(!_0x3a053e[_0x434b98(0xc9)]&&!_0x451ee4[_0x434b98(0xc9)])return 0x0;if(!_0x3a053e[_0x434b98(0xc9)])return 0x1;if(!_0x451ee4[_0x434b98(0xc9)])return-0x1;if(_0x3a053e[_0x434b98(0xc9)]===_0x451ee4[_0x434b98(0xc9)])return 0x0;return _0x3a053e[_0x434b98(0xc9)]<_0x451ee4['prerelease']?-0x1:0x1;}function a114_0x3fbf(_0x51f5e1,_0x33e4bf){_0x51f5e1=_0x51f5e1-0xb6;const _0x30f796=a114_0x30f7();let _0x3fbfc8=_0x30f796[_0x51f5e1];return _0x3fbfc8;}function isUpdateNoticeDisabled(){const _0x1134a7=a114_0x3fbf,_0xea4f41=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x1134a7(0xc2)]();return _0xea4f41==='1'||_0xea4f41===_0x1134a7(0xd3)||_0xea4f41===_0x1134a7(0xcc);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x209fba=a114_0x3fbf;return join(cacheRoot(),_0x209fba(0xba),_0x209fba(0xc7));}async function readUpdateNoticeCache(){const _0x454047=a114_0x3fbf;try{const _0xea589e=await readFile(getUpdateNoticeCachePath(),_0x454047(0xb7)),_0x34a83e=JSON['parse'](_0xea589e);if(!_0x34a83e||typeof _0x34a83e!==_0x454047(0xc4))return{};return _0x34a83e;}catch{return{};}}function a114_0x30f7(){const _0x395971=['minor','number','true','trim','831Mlvyfa','10dsSpKU','/-/package/','14194809kThxss','filter','utf8','\x20available,\x20current\x20','https://www.npmjs.com/package/','lovrabet-cli','\x20update','41674DZriQl','map','entries','7640cRNBmd','json','1035920ackjvS','toLowerCase','string','object','match','221081JSuZpJ','update-check.json','timeout','prerelease','/v/','160490mfBFfZ','yes','24BUYaeY','major','lastNotifiedAt','2767888OniHNP'];a114_0x30f7=function(){return _0x395971;};return a114_0x30f7();}async function writeUpdateNoticeCache(_0x100d04){const _0x331240=a114_0x3fbf;try{const _0x4d0f04=getUpdateNoticeCachePath();await mkdir(dirname(_0x4d0f04),{'recursive':!![]}),await writeFile(_0x4d0f04,JSON['stringify'](_0x100d04,null,0x2)+'\x0a',_0x331240(0xb7));}catch{}}function isFreshCheck(_0x447b6a,_0x155c0d){const _0x27ee52=a114_0x3fbf;return typeof _0x447b6a['checkedAt']===_0x27ee52(0xd2)&&_0x155c0d-_0x447b6a['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xb8b0ac,_0x5d182b,_0x444533){const _0xf8062f=a114_0x3fbf;return _0xb8b0ac['lastNotifiedVersion']===_0x5d182b&&typeof _0xb8b0ac['lastNotifiedAt']===_0xf8062f(0xd2)&&_0x444533-_0xb8b0ac[_0xf8062f(0xcf)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x147236=0x5dc){const _0xc5ec48=a114_0x3fbf;try{const _0x37aa9d=NPM_REGISTRY_BASE_URL+_0xc5ec48(0xd7)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x9ca538=await fetch(_0x37aa9d,{'signal':AbortSignal[_0xc5ec48(0xc8)](_0x147236)});if(!_0x9ca538['ok'])return null;const _0x4cd9c7=await _0x9ca538[_0xc5ec48(0xc0)]();if(!_0x4cd9c7||typeof _0x4cd9c7!=='object')return null;return Object['fromEntries'](Object[_0xc5ec48(0xbe)](_0x4cd9c7)[_0xc5ec48(0xb6)](([,_0xf9555e])=>typeof _0xf9555e===_0xc5ec48(0xc3)&&_0xf9555e[_0xc5ec48(0xd4)]())[_0xc5ec48(0xbd)](([_0xdfb4fc,_0x50b88d])=>[_0xdfb4fc,String(_0x50b88d)[_0xc5ec48(0xd4)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x6d525c){const _0x33083f=a114_0x3fbf;return _0x33083f(0xb9)+LOVRABET_NPM_PACKAGE_NAME+_0x33083f(0xca)+_0x6d525c;}export async function resolveLatestUpdateNotice(){const _0x11150e=a114_0x3fbf;if(isUpdateNoticeDisabled())return null;try{const _0x3a2870=Date['now'](),_0x2dac55=getCliVersion(),_0x2d21c3=await readUpdateNoticeCache();let _0x4e1c69=isFreshCheck(_0x2d21c3,_0x3a2870)?_0x2d21c3['latest']?.['trim']():undefined;if(!_0x4e1c69&&!isFreshCheck(_0x2d21c3,_0x3a2870)){const _0x3c3146=await fetchNpmDistTags();_0x4e1c69=_0x3c3146?.['latest']?.['trim'](),await writeUpdateNoticeCache({..._0x2d21c3,'checkedAt':_0x3a2870,'latest':_0x4e1c69,'failed':!_0x4e1c69});}if(!_0x4e1c69||compareSemver(_0x2dac55,_0x4e1c69)>=0x0)return null;if(isRecentlyNotified(_0x2d21c3,_0x4e1c69,_0x3a2870))return null;const _0x396918=CLI_BIN_NAME+_0x11150e(0xbb);return await writeUpdateNoticeCache({..._0x2d21c3,'checkedAt':isFreshCheck(_0x2d21c3,_0x3a2870)?_0x2d21c3['checkedAt']:_0x3a2870,'latest':_0x4e1c69,'failed':![],'lastNotifiedVersion':_0x4e1c69,'lastNotifiedAt':_0x3a2870}),{'command':_0x396918,'current':_0x2dac55,'latest':_0x4e1c69,'url':buildNpmVersionUrl(_0x4e1c69),'message':CLI_BIN_NAME+'\x20'+_0x4e1c69+_0x11150e(0xb8)+_0x2dac55+',\x20run:\x20'+_0x396918};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a115_0x4d64(){const _0x243a2a=['305756UqRVLF','6iEfsGf','9258907WSIZWH','631123nzZQFV','1240VGvvda','5611536uqmsiS','1640056kHKMDw','2wOjOXV','380024ZgnmDL','unknown','1510899tZtZyO','slice','40rmwFNm'];a115_0x4d64=function(){return _0x243a2a;};return a115_0x4d64();}(function(_0x2c747a,_0x2c9c24){const _0xdabca1=a115_0x3154,_0x2b10e8=_0x2c747a();while(!![]){try{const _0x31de69=parseInt(_0xdabca1(0x1e4))/0x1*(parseInt(_0xdabca1(0x1e8))/0x2)+-parseInt(_0xdabca1(0x1eb))/0x3+parseInt(_0xdabca1(0x1e9))/0x4*(-parseInt(_0xdabca1(0x1e0))/0x5)+-parseInt(_0xdabca1(0x1e2))/0x6*(parseInt(_0xdabca1(0x1e3))/0x7)+-parseInt(_0xdabca1(0x1e7))/0x8+-parseInt(_0xdabca1(0x1e6))/0x9+-parseInt(_0xdabca1(0x1e5))/0xa*(-parseInt(_0xdabca1(0x1e1))/0xb);if(_0x31de69===_0x2c9c24)break;else _0x2b10e8['push'](_0x2b10e8['shift']());}catch(_0x1baf7a){_0x2b10e8['push'](_0x2b10e8['shift']());}}}(a115_0x4d64,0xa1d96));function a115_0x3154(_0x3be12d,_0x41d026){_0x3be12d=_0x3be12d-0x1e0;const _0x4d6413=a115_0x4d64();let _0x31547d=_0x4d6413[_0x3be12d];return _0x31547d;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4dd482=a115_0x3154,_0x296c5a=String(GIT_COMMIT);return _0x296c5a&&_0x296c5a!==_0x4dd482(0x1ea)?_0x296c5a:'';}export function getCliVersionDisplay(){const _0x18ec7f=a115_0x3154,_0x2c7ac1=getCliGitCommit(),_0x2b0ac5=BUILD_TIME[_0x18ec7f(0x1ec)](0x0,0xa);if(!_0x2c7ac1||!_0x2b0ac5)return VERSION;return VERSION+'\x20('+_0x2c7ac1+',\x20'+_0x2b0ac5+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a116_0x2bf6(_0x44974b,_0x1a2cb4){_0x44974b=_0x44974b-0xf8;var _0x46e6aa=a116_0x46e6();var _0x2bf6b0=_0x46e6aa[_0x44974b];return _0x2bf6b0;}function a116_0x46e6(){var _0x5dbfb3=['101439eYKabZ','stderr','1172574USjDcv','write','19148uSXMnj','2950800XfoEPT','74343tjsgNC','547425TTFecd','1332373UYWfma','16usZSuO','2xDmJaA','75IjjYjn'];a116_0x46e6=function(){return _0x5dbfb3;};return a116_0x46e6();}(function(_0x42a858,_0x2c8e5a){var _0x2a9145=a116_0x2bf6,_0x5a687f=_0x42a858();while(!![]){try{var _0x54d659=-parseInt(_0x2a9145(0x103))/0x1*(-parseInt(_0x2a9145(0xfb))/0x2)+parseInt(_0x2a9145(0xf8))/0x3+-parseInt(_0x2a9145(0x101))/0x4*(parseInt(_0x2a9145(0xfc))/0x5)+-parseInt(_0x2a9145(0xff))/0x6+-parseInt(_0x2a9145(0xf9))/0x7+parseInt(_0x2a9145(0xfa))/0x8*(parseInt(_0x2a9145(0xfd))/0x9)+parseInt(_0x2a9145(0x102))/0xa;if(_0x54d659===_0x2c8e5a)break;else _0x5a687f['push'](_0x5a687f['shift']());}catch(_0x1b705a){_0x5a687f['push'](_0x5a687f['shift']());}}}(a116_0x46e6,0x1c883));export function writeCliSideChannelLine(_0x4e33cf){var _0x5db7cc=a116_0x2bf6;process[_0x5db7cc(0xfe)][_0x5db7cc(0x100)](_0x4e33cf+'\x0a');}
|