@lovrabet/lovrabet-cli 2.1.10 → 2.1.11-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/rate-limit.js +1 -0
- 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(_0x5f3094,_0x5dbd08){const _0x524fda=a109_0x17b2,_0x58ddb0=_0x5f3094();while(!![]){try{const _0x5d88db=parseInt(_0x524fda(0xba))/0x1*(-parseInt(_0x524fda(0xb6))/0x2)+-parseInt(_0x524fda(0xd8))/0x3+-parseInt(_0x524fda(0xcc))/0x4+parseInt(_0x524fda(0xbe))/0x5+parseInt(_0x524fda(0xca))/0x6*(parseInt(_0x524fda(0xb8))/0x7)+parseInt(_0x524fda(0xd6))/0x8+-parseInt(_0x524fda(0xe0))/0x9*(-parseInt(_0x524fda(0xd0))/0xa);if(_0x5d88db===_0x5dbd08)break;else _0x58ddb0['push'](_0x58ddb0['shift']());}catch(_0x619b57){_0x58ddb0['push'](_0x58ddb0['shift']());}}}(a109_0x1d45,0xbecd6));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x36bd3e){const _0x3d1f31=a109_0x17b2,_0x31b028=normalizeLocalFiles(_0x36bd3e);if(!_0x31b028['some'](_0x56da2a=>_0x56da2a[_0x3d1f31(0xdd)]===SKILL_FILE))throw CliErrors[_0x3d1f31(0xb7)](_0x3d1f31(0xc2)+SKILL_FILE+_0x3d1f31(0xc9));const _0x45be0a=localFilesToManifestFiles(_0x31b028),_0x5f39d3=createDeterministicZipPackage(_0x31b028);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x45be0a),'zipSha256':bufferSha256(_0x5f39d3),'zipSize':_0x5f39d3[_0x3d1f31(0xc3)],'files':_0x45be0a},'packageBytes':_0x5f39d3,'packageBase64':_0x5f39d3[_0x3d1f31(0xda)]('base64')};}export function verifyRuntimeSkillPackage(_0x47acf7,_0x21cc9b){const _0xa1a0d3=a109_0x17b2,_0x5d586f=normalizePackageManifest(_0x47acf7,{'requireOssPath':![]});if(!_0x5d586f)throw CliErrors[_0xa1a0d3(0xb7)](_0xa1a0d3(0xc7));return extractAndVerifyPackage(_0x5d586f,_0x21cc9b);}function a109_0x1d45(){const _0x4f2eed=['Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20','path','zipSize','zipSha256','1845765azyKJX','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','schemaVersion','2CENKJN','validation','7648424HQcUIi','some','1020619DOByjh','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','ossPath','string','1962730SngzaV','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','isArray','treeSha256','Missing\x20','length','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','set','isSafeInteger','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','toLowerCase','\x20in\x20Skill\x20file\x20package.','6nObIat','size','798164ShNuBj','get','map','sha256','10yoHGBR','push','requireOssPath','bytes','files','object','2622144iFWNSJ','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','49035IWaosJ','Runtime\x20Skill\x20package\x20size\x20mismatch.','toString'];a109_0x1d45=function(){return _0x4f2eed;};return a109_0x1d45();}export function verifyRuntimeSkillBundle(_0x1a87cd,_0x9616a8){const _0x44dba8=a109_0x17b2,_0x8081bf=normalizePackageManifest(_0x1a87cd,{'requireOssPath':![]});if(!_0x8081bf)throw CliErrors['validation'](_0x44dba8(0xc7));return extractAndVerifyPackageFiles(_0x8081bf,_0x9616a8);}export function tryNormalizePackageManifest(_0x6fa2bb){return normalizePackageManifest(_0x6fa2bb,{'requireOssPath':![]});}export function requirePackageBytes(_0x572e49,_0xd9a5a5){const _0x5caff5=a109_0x17b2;if(!_0xd9a5a5||_0xd9a5a5[_0x5caff5(0xc3)]===0x0)throw CliErrors[_0x5caff5(0xb7)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x572e49);return _0xd9a5a5;}export function extractDownloadedPackage(_0x1348d1){const _0x34da18=a109_0x17b2,_0x166b43=parseZipPackage(_0x1348d1)['map'](_0x331d7e=>({'path':_0x331d7e[_0x34da18(0xdd)],'bytes':_0x331d7e[_0x34da18(0xd3)]}));if(!_0x166b43[_0x34da18(0xb9)](_0x215ad5=>_0x215ad5[_0x34da18(0xdd)]===SKILL_FILE))throw CliErrors['validation'](_0x34da18(0xdc)+SKILL_FILE+'.');return normalizeLocalFiles(_0x166b43);}export function localFilesToManifestFiles(_0x48ac1e){const _0x2a397a=a109_0x17b2;return normalizeLocalFiles(_0x48ac1e)[_0x2a397a(0xce)](_0x40ec22=>({'path':_0x40ec22[_0x2a397a(0xdd)],'sha256':fileHash(_0x40ec22),'size':fileContent(_0x40ec22)[_0x2a397a(0xc3)]}));}function normalizePackageManifest(_0x5f3aef,_0x2470fe){const _0x3b48bd=a109_0x17b2;if(!_0x5f3aef||typeof _0x5f3aef!==_0x3b48bd(0xd5)||Array['isArray'](_0x5f3aef))return undefined;const _0x4923dd=_0x5f3aef,_0x135bbe=typeof _0x4923dd[_0x3b48bd(0xbc)]===_0x3b48bd(0xbd)?_0x4923dd[_0x3b48bd(0xbc)]['trim']():undefined;if(_0x2470fe[_0x3b48bd(0xd2)]&&!_0x135bbe)return undefined;if(!Array[_0x3b48bd(0xc0)](_0x4923dd[_0x3b48bd(0xd4)])||_0x4923dd[_0x3b48bd(0xd4)][_0x3b48bd(0xc3)]===0x0)return undefined;if(!isSha256Hex(_0x4923dd[_0x3b48bd(0xc1)]))throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x4923dd['zipSha256']))throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number[_0x3b48bd(0xc6)](_0x4923dd[_0x3b48bd(0xde)])||_0x4923dd['zipSize']<0x0)throw CliErrors[_0x3b48bd(0xb7)](_0x3b48bd(0xbf));const _0x377c45=normalizeManifestFiles(_0x4923dd[_0x3b48bd(0xd4)]);if(!_0x377c45[_0x3b48bd(0xb9)](_0x406fd6=>_0x406fd6[_0x3b48bd(0xdd)]===SKILL_FILE))throw CliErrors[_0x3b48bd(0xb7)](_0x3b48bd(0xd7)+SKILL_FILE+'.');const _0x314a71=fileTreeHash(_0x377c45);if(_0x314a71!==_0x4923dd[_0x3b48bd(0xc1)]['toLowerCase']())throw CliErrors[_0x3b48bd(0xb7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x3b48bd(0xc6)](_0x4923dd[_0x3b48bd(0xb5)])?_0x4923dd[_0x3b48bd(0xb5)]:0x2,'ossPath':_0x135bbe,'treeSha256':_0x314a71,'zipSha256':_0x4923dd[_0x3b48bd(0xdf)][_0x3b48bd(0xc8)](),'zipSize':_0x4923dd[_0x3b48bd(0xde)],'files':_0x377c45};}function extractAndVerifyPackage(_0x583eda,_0x141f0c){const _0x62067=a109_0x17b2,_0x1317ca=normalizePackageManifest(_0x583eda,{'requireOssPath':![]});if(!_0x1317ca)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x141f0c[_0x62067(0xc3)]!==_0x1317ca['zipSize'])throw CliErrors['validation'](_0x62067(0xd9));const _0x1f7661=bufferSha256(_0x141f0c);if(_0x1f7661!==_0x1317ca['zipSha256'])throw CliErrors[_0x62067(0xb7)]('Runtime\x20Skill\x20package\x20sha256\x20mismatch.');return extractAndVerifyPackageFiles(_0x1317ca,_0x141f0c);}function a109_0x17b2(_0x589a6e,_0x1f9bb7){_0x589a6e=_0x589a6e-0xb5;const _0x1d4559=a109_0x1d45();let _0x17b277=_0x1d4559[_0x589a6e];return _0x17b277;}function extractAndVerifyPackageFiles(_0x19ef95,_0x29b3e7){const _0x4802d0=a109_0x17b2,_0x1eeb53=parseZipPackage(_0x29b3e7);if(_0x1eeb53[_0x4802d0(0xc3)]!==_0x19ef95[_0x4802d0(0xd4)][_0x4802d0(0xc3)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x343679=new Map();for(const _0xa8a7e0 of _0x1eeb53){if(_0x343679['has'](_0xa8a7e0[_0x4802d0(0xdd)]))throw CliErrors[_0x4802d0(0xb7)](_0x4802d0(0xdb)+_0xa8a7e0[_0x4802d0(0xdd)]);_0x343679[_0x4802d0(0xc5)](_0xa8a7e0[_0x4802d0(0xdd)],_0xa8a7e0);}const _0x2738ce=[];for(const _0x2c80ef of _0x19ef95[_0x4802d0(0xd4)]){const _0x474df6=_0x343679[_0x4802d0(0xcd)](_0x2c80ef[_0x4802d0(0xdd)]);if(!_0x474df6)throw CliErrors['validation'](_0x4802d0(0xbb)+_0x2c80ef[_0x4802d0(0xdd)]);if(_0x474df6[_0x4802d0(0xd3)][_0x4802d0(0xc3)]!==_0x2c80ef[_0x4802d0(0xcb)])throw CliErrors['validation'](_0x4802d0(0xc4)+_0x2c80ef[_0x4802d0(0xdd)]);const _0x13915a=bufferSha256(_0x474df6[_0x4802d0(0xd3)]);if(_0x13915a!==_0x2c80ef[_0x4802d0(0xcf)])throw CliErrors[_0x4802d0(0xb7)](_0x4802d0(0xe1)+_0x2c80ef[_0x4802d0(0xdd)]);_0x2738ce[_0x4802d0(0xd1)]({'path':_0x2c80ef[_0x4802d0(0xdd)],'bytes':_0x474df6[_0x4802d0(0xd3)]});}return normalizeLocalFiles(_0x2738ce);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b8a7,_0x4f0856){var _0x56ed94=a110_0x1af2,_0x6c0e8a=_0x49b8a7();while(!![]){try{var _0x498fe1=parseInt(_0x56ed94(0x145))/0x1+parseInt(_0x56ed94(0x143))/0x2+parseInt(_0x56ed94(0x142))/0x3*(parseInt(_0x56ed94(0x144))/0x4)+parseInt(_0x56ed94(0x146))/0x5+parseInt(_0x56ed94(0x13d))/0x6+parseInt(_0x56ed94(0x13e))/0x7*(-parseInt(_0x56ed94(0x141))/0x8)+-parseInt(_0x56ed94(0x13f))/0x9*(parseInt(_0x56ed94(0x140))/0xa);if(_0x498fe1===_0x4f0856)break;else _0x6c0e8a['push'](_0x6c0e8a['shift']());}catch(_0x360ca2){_0x6c0e8a['push'](_0x6c0e8a['shift']());}}}(a110_0x51f5,0x2c41f));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 a110_0x51f5(){var _0x312f7d=['413290vSKJir','1939002YWsTiH','1077083SuSDPZ','45kXUeqL','1194550DqItLD','16IhtvhY','76323ychzNa','472556fJWHkn','56jsJgzg','88015QIJOgM'];a110_0x51f5=function(){return _0x312f7d;};return a110_0x51f5();}export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';function a110_0x1af2(_0x2c5209,_0x4ebf5d){_0x2c5209=_0x2c5209-0x13d;var _0x51f5a2=a110_0x51f5();var _0x1af21f=_0x51f5a2[_0x2c5209];return _0x1af21f;}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(_0x3d2162,_0x1437b8){const _0x3e5712=a111_0x5aac,_0x4e0870=_0x3d2162();while(!![]){try{const _0x2b1e17=parseInt(_0x3e5712(0x150))/0x1+-parseInt(_0x3e5712(0x152))/0x2*(parseInt(_0x3e5712(0x156))/0x3)+-parseInt(_0x3e5712(0x151))/0x4+parseInt(_0x3e5712(0x153))/0x5*(parseInt(_0x3e5712(0x159))/0x6)+parseInt(_0x3e5712(0x157))/0x7+-parseInt(_0x3e5712(0x155))/0x8*(parseInt(_0x3e5712(0x158))/0x9)+parseInt(_0x3e5712(0x154))/0xa*(parseInt(_0x3e5712(0x15a))/0xb);if(_0x2b1e17===_0x1437b8)break;else _0x4e0870['push'](_0x4e0870['shift']());}catch(_0x4ea351){_0x4e0870['push'](_0x4e0870['shift']());}}}(a111_0x102e,0x25989));function a111_0x5aac(_0x3f5f93,_0x436477){_0x3f5f93=_0x3f5f93-0x150;const _0x102e75=a111_0x102e();let _0x5aac93=_0x102e75[_0x3f5f93];return _0x5aac93;}function a111_0x102e(){const _0x1da4ad=['33831xwqPpz','1744925ENnxon','9emqKbh','3222HgcPCs','22vdicEk','2565hvbRXg','417016aCApBI','48WQKVFc','2380JYGTPe','1342910ECubUC','1977112kfHaxn'];a111_0x102e=function(){return _0x1da4ad;};return a111_0x102e();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x2adce3=a112_0x4d7c;(function(_0xf32b8c,_0x4f3530){const _0x11ce6e=a112_0x4d7c,_0x1876a9=_0xf32b8c();while(!![]){try{const _0x21f109=-parseInt(_0x11ce6e(0x1ea))/0x1+-parseInt(_0x11ce6e(0x1c3))/0x2+parseInt(_0x11ce6e(0x1dc))/0x3*(parseInt(_0x11ce6e(0x1c1))/0x4)+parseInt(_0x11ce6e(0x1e0))/0x5+-parseInt(_0x11ce6e(0x1ce))/0x6+-parseInt(_0x11ce6e(0x1db))/0x7+parseInt(_0x11ce6e(0x1c0))/0x8;if(_0x21f109===_0x4f3530)break;else _0x1876a9['push'](_0x1876a9['shift']());}catch(_0x2db3ee){_0x1876a9['push'](_0x1876a9['shift']());}}}(a112_0x3dcf,0x20063));import a112_0x192bfd from'winston';function a112_0x3dcf(){const _0x2138f1=['warn','currentRawCommand','Failed\x20to\x20read\x20logs:','Starting:\x20','trim','unknown','initWinstonLogger','1201980lBEyiY','combine','createLogger','stringify','readFileSync','success','winstonLogger','writeFileSync','addColors','Failed\x20to\x20clear\x20logs:','level','map','toISOString','1281833HYHGts','6xydDvd','log','format','now','491650oWGEfg','rawCommand','utf8','timestamp','dirname','blue','readLogs','details','info','message','201767FcBJKY','duration','join','logFilePath','File','4784768HNwSXT','512476jIKbNg','existsSync','472554gwkeLl','setRawCommand','error','clear'];a112_0x3dcf=function(){return _0x2138f1;};return a112_0x3dcf();}import a112_0x355594 from'node:fs';import a112_0x45198e from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a112_0x4d7c(_0x38302a,_0x2dc761){_0x38302a=_0x38302a-0x1bf;const _0x3dcf95=a112_0x3dcf();let _0x4d7ccc=_0x3dcf95[_0x38302a];return _0x4d7ccc;}class Logger{[a112_0x2adce3(0x1d4)];[a112_0x2adce3(0x1ed)]='';[a112_0x2adce3(0x1c8)]='';constructor(){}[a112_0x2adce3(0x1c4)](_0x18cb1e){const _0x1025fb=a112_0x2adce3;this[_0x1025fb(0x1c8)]=_0x18cb1e;}['setLogPath'](_0x3e35bb){const _0x430866=a112_0x2adce3;this[_0x430866(0x1ed)]=a112_0x45198e[_0x430866(0x1ec)](_0x3e35bb,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x430866(0x1d4)][_0x430866(0x1c6)](),this[_0x430866(0x1cd)]();}[a112_0x2adce3(0x1cd)](){const _0x3d98c0=a112_0x2adce3,_0x576f5e=a112_0x45198e[_0x3d98c0(0x1e4)](this[_0x3d98c0(0x1ed)]);!a112_0x355594['existsSync'](_0x576f5e)&&a112_0x355594['mkdirSync'](_0x576f5e,{'recursive':!![]});const _0xe2c6ec=a112_0x192bfd[_0x3d98c0(0x1de)][_0x3d98c0(0x1cf)](a112_0x192bfd['format'][_0x3d98c0(0x1e3)](),a112_0x192bfd[_0x3d98c0(0x1de)]['errors']({'stack':!![]}),a112_0x192bfd[_0x3d98c0(0x1de)]['printf'](_0xe10c18=>{const _0x1808f7=_0x3d98c0,_0x2535e9={'timestamp':_0xe10c18[_0x1808f7(0x1e3)]||new Date()[_0x1808f7(0x1da)](),'level':_0xe10c18[_0x1808f7(0x1d8)]||'info','command':_0xe10c18['command']||_0x1808f7(0x1cc),'rawCommand':_0xe10c18[_0x1808f7(0x1e1)]||this['currentRawCommand']||undefined,'message':_0xe10c18[_0x1808f7(0x1e9)]||'','duration':_0xe10c18[_0x1808f7(0x1eb)]||undefined,'details':_0xe10c18[_0x1808f7(0x1e7)]||undefined};return JSON[_0x1808f7(0x1d1)](_0x2535e9);}));this['winstonLogger']=a112_0x192bfd[_0x3d98c0(0x1d0)]({'level':_0x3d98c0(0x1e8),'format':_0xe2c6ec,'transports':[new a112_0x192bfd['transports'][(_0x3d98c0(0x1bf))]({'filename':this[_0x3d98c0(0x1ed)],'level':_0x3d98c0(0x1e8)})],'silent':![]}),a112_0x192bfd[_0x3d98c0(0x1d6)]({'success':'green','error':'red','warn':'yellow','info':_0x3d98c0(0x1e5)});}['info'](_0x22b5c5,_0x3f6e5d,_0x565071){const _0xf0a72f=a112_0x2adce3;if(!this[_0xf0a72f(0x1ed)]||!this[_0xf0a72f(0x1d4)])return;this[_0xf0a72f(0x1d4)][_0xf0a72f(0x1e8)](_0x3f6e5d,{'command':_0x22b5c5,'details':_0x565071});}[a112_0x2adce3(0x1d3)](_0xb993ee,_0x47e60b,_0x4c7918,_0x28a5ec){const _0x3ba5d2=a112_0x2adce3;if(!this['logFilePath']||!this[_0x3ba5d2(0x1d4)])return;this[_0x3ba5d2(0x1d4)][_0x3ba5d2(0x1dd)](_0x3ba5d2(0x1e8),_0x47e60b,{'level':_0x3ba5d2(0x1d3),'command':_0xb993ee,'duration':_0x4c7918,'details':_0x28a5ec});}[a112_0x2adce3(0x1c5)](_0x4b8902,_0x2cad39,_0xc62d76){const _0x376079=a112_0x2adce3;if(!this['logFilePath']||!this[_0x376079(0x1d4)])return;this[_0x376079(0x1d4)]['error'](_0x2cad39,{'command':_0x4b8902,'details':_0xc62d76});}['warn'](_0x237422,_0x354cea,_0x38e503){const _0x2d2726=a112_0x2adce3;if(!this[_0x2d2726(0x1ed)]||!this['winstonLogger'])return;this[_0x2d2726(0x1d4)][_0x2d2726(0x1c7)](_0x354cea,{'command':_0x237422,'details':_0x38e503});}async['logTask'](_0x3d9c46,_0x196b25,_0x5181ed){const _0x2a7a52=a112_0x2adce3,_0x503a49=Date[_0x2a7a52(0x1df)]();this[_0x2a7a52(0x1e8)](_0x3d9c46,_0x2a7a52(0x1ca)+_0x196b25);try{const _0x26b4ba=await _0x5181ed(),_0x1badf0=Date[_0x2a7a52(0x1df)]()-_0x503a49;return this['success'](_0x3d9c46,'Completed:\x20'+_0x196b25,_0x1badf0),_0x26b4ba;}catch(_0x1da75e){const _0x51edcd=Date[_0x2a7a52(0x1df)]()-_0x503a49;this[_0x2a7a52(0x1c5)](_0x3d9c46,'Failed:\x20'+_0x196b25,{'error':_0x1da75e instanceof Error?_0x1da75e[_0x2a7a52(0x1e9)]:String(_0x1da75e),'duration':_0x51edcd});throw _0x1da75e;}}[a112_0x2adce3(0x1e6)](){const _0x5c49c9=a112_0x2adce3;try{if(!a112_0x355594[_0x5c49c9(0x1c2)](this[_0x5c49c9(0x1ed)]))return[];const _0x258fb2=a112_0x355594[_0x5c49c9(0x1d2)](this['logFilePath'],_0x5c49c9(0x1e2));return _0x258fb2['split'](/\r?\n/)['filter'](_0x2d48d5=>_0x2d48d5[_0x5c49c9(0x1cb)]())[_0x5c49c9(0x1d9)](_0x3d6231=>JSON['parse'](_0x3d6231));}catch(_0x5de471){return console[_0x5c49c9(0x1c7)](_0x5c49c9(0x1c9),_0x5de471),[];}}['clearLogs'](){const _0x4f5f35=a112_0x2adce3;try{a112_0x355594['existsSync'](this['logFilePath'])&&a112_0x355594[_0x4f5f35(0x1d5)](this[_0x4f5f35(0x1ed)],'',_0x4f5f35(0x1e2));}catch(_0xa0188c){console[_0x4f5f35(0x1c7)](_0x4f5f35(0x1d7),_0xa0188c);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32d425,_0x473d7b){const _0x53d90e=a113_0x4f32,_0x3f3c6e=_0x32d425();while(!![]){try{const _0x3b7cb5=parseInt(_0x53d90e(0xe7))/0x1+parseInt(_0x53d90e(0xf1))/0x2*(-parseInt(_0x53d90e(0xec))/0x3)+-parseInt(_0x53d90e(0xf0))/0x4*(-parseInt(_0x53d90e(0xee))/0x5)+parseInt(_0x53d90e(0xe1))/0x6+parseInt(_0x53d90e(0xeb))/0x7+parseInt(_0x53d90e(0xe5))/0x8+-parseInt(_0x53d90e(0xf3))/0x9;if(_0x3b7cb5===_0x473d7b)break;else _0x3f3c6e['push'](_0x3f3c6e['shift']());}catch(_0x3135aa){_0x3f3c6e['push'](_0x3f3c6e['shift']());}}}(a113_0x5c45,0x806ba));import{CliErrors}from'../errors.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x10502b){const _0x4b27da=a113_0x4f32;if(!_0x10502b)return undefined;try{return JSON[_0x4b27da(0xea)](_0x10502b);}catch{throw CliErrors[_0x4b27da(0xe4)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x10502b);}}export function parseJsonParamsValue(_0x1d5a84){const _0x52367e=a113_0x4f32;if(!_0x1d5a84)return undefined;try{return JSON['parse'](_0x1d5a84);}catch{throw CliErrors[_0x52367e(0xe4)](_0x52367e(0xf8)+_0x1d5a84);}}function a113_0x4f32(_0x254481,_0x53f368){_0x254481=_0x254481-0xe1;const _0x5c4531=a113_0x5c45();let _0x4f320b=_0x5c4531[_0x254481];return _0x4f320b;}function a113_0x5c45(){const _0x3b7569=['validation','1611408emRyfa','length','634658fVujWJ','map','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','parse','4522546mDvrNf','210eCyQCR','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','158605iWzVxq','\x20records\x20per\x20call;\x20received\x20','4ZTUsYQ','1582mwgrdT','items','15584292dANsDU','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','object','isSafeInteger','Invalid\x20JSON\x20for\x20--params:\x20','4794510jMZGsh','join','isArray'];a113_0x5c45=function(){return _0x3b7569;};return a113_0x5c45();}export function parseBatchCreateItemsFromParams(_0x46d048){const _0x39b28d=a113_0x4f32;if(Array[_0x39b28d(0xe3)](_0x46d048))return _0x46d048;if(_0x46d048!==null&&_0x46d048!==undefined&&typeof _0x46d048==='object'&&Array[_0x39b28d(0xe3)](_0x46d048[_0x39b28d(0xf2)]))return _0x46d048[_0x39b28d(0xf2)];throw CliErrors[_0x39b28d(0xe4)](_0x39b28d(0xf5),_0x39b28d(0xe9));}function parseDataUpdateId(_0x374d4c,_0x53ae95){const _0x3f7a29=a113_0x4f32;if(typeof _0x374d4c==='number'&&Number[_0x3f7a29(0xf7)](_0x374d4c)&&_0x374d4c>0x0)return _0x374d4c;if(typeof _0x374d4c==='string'){if(/^[1-9]\d*$/['test'](_0x374d4c))return _0x374d4c;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x53ae95+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x540ef9){const _0x199627=a113_0x4f32;if(_0x540ef9===null||_0x540ef9===undefined||typeof _0x540ef9!==_0x199627(0xf6)||Array['isArray'](_0x540ef9))throw CliErrors[_0x199627(0xe4)]('data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.',_0x199627(0xed));const _0x5345ea=_0x540ef9['id'];if(_0x5345ea===undefined||_0x5345ea===null)throw CliErrors[_0x199627(0xe4)]('data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.',_0x199627(0xed));const _0x27a7c2=Array[_0x199627(0xe3)](_0x5345ea)?_0x5345ea:[_0x5345ea];if(_0x27a7c2[_0x199627(0xe6)]===0x0)throw CliErrors[_0x199627(0xe4)](_0x199627(0xf4));if(_0x27a7c2[_0x199627(0xe6)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x199627(0xe4)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x199627(0xef)+_0x27a7c2[_0x199627(0xe6)]+'.');return _0x27a7c2[_0x199627(0xe8)]((_0x22aeb1,_0x2ac262)=>parseDataUpdateId(_0x22aeb1,Array[_0x199627(0xe3)](_0x5345ea)?'id['+_0x2ac262+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3cfc61,_0x51c0b1){const _0x4597f9=a113_0x4f32;if(Array['isArray'](_0x3cfc61['id'])&&_0x51c0b1['length']>0x1)return{..._0x3cfc61,'id':_0x51c0b1[_0x4597f9(0xe2)](',')};return _0x3cfc61;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x216c37=a114_0xe129;function a114_0x4928(){const _0x3087c6=['.cmd','18WKjGQV','468txAphZ','265160bXlERb','618505NznbIw','13434830fwsnQW','99483HHkCxD','win32','7104078nyEXlv','40OZijbM','18gnNcGe','2ECqvfj','36531VEPSGe','570283SZbBiI'];a114_0x4928=function(){return _0x3087c6;};return a114_0x4928();}function a114_0xe129(_0x1c1744,_0x40c4ec){_0x1c1744=_0x1c1744-0x19a;const _0x492818=a114_0x4928();let _0xe1299b=_0x492818[_0x1c1744];return _0xe1299b;}(function(_0x32c12d,_0x2b00d0){const _0x4b6823=a114_0xe129,_0x18226c=_0x32c12d();while(!![]){try{const _0x463c9c=parseInt(_0x4b6823(0x1a0))/0x1*(-parseInt(_0x4b6823(0x1a5))/0x2)+parseInt(_0x4b6823(0x19b))/0x3*(parseInt(_0x4b6823(0x19d))/0x4)+-parseInt(_0x4b6823(0x19e))/0x5*(-parseInt(_0x4b6823(0x1a4))/0x6)+-parseInt(_0x4b6823(0x1a7))/0x7*(parseInt(_0x4b6823(0x1a3))/0x8)+-parseInt(_0x4b6823(0x1a2))/0x9+parseInt(_0x4b6823(0x19f))/0xa+parseInt(_0x4b6823(0x1a6))/0xb*(-parseInt(_0x4b6823(0x19c))/0xc);if(_0x463c9c===_0x2b00d0)break;else _0x18226c['push'](_0x18226c['shift']());}catch(_0x37dfdf){_0x18226c['push'](_0x18226c['shift']());}}}(a114_0x4928,0xa7a2d));export const isWindows=process['platform']===a114_0x216c37(0x1a1);export function resolveNpmBin(_0x144453){const _0x5c5872=a114_0x216c37;return isWindows?_0x144453+_0x5c5872(0x19a):_0x144453;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7ccf6f,_0x275de8){const _0x698dcc=a115_0xaccb,_0x4cf5df=_0x7ccf6f();while(!![]){try{const _0x5027a0=parseInt(_0x698dcc(0x96))/0x1+-parseInt(_0x698dcc(0x93))/0x2*(-parseInt(_0x698dcc(0x87))/0x3)+-parseInt(_0x698dcc(0x79))/0x4*(parseInt(_0x698dcc(0x92))/0x5)+parseInt(_0x698dcc(0x8e))/0x6*(-parseInt(_0x698dcc(0x99))/0x7)+parseInt(_0x698dcc(0x84))/0x8+parseInt(_0x698dcc(0x91))/0x9*(-parseInt(_0x698dcc(0x85))/0xa)+parseInt(_0x698dcc(0x90))/0xb;if(_0x5027a0===_0x275de8)break;else _0x4cf5df['push'](_0x4cf5df['shift']());}catch(_0x2b808e){_0x4cf5df['push'](_0x4cf5df['shift']());}}}(a115_0x18fb,0xcdb7a));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(_0x20cd70){const _0xe41201=a115_0xaccb,_0xbe783a=_0x20cd70['trim']()[_0xe41201(0x7a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xbe783a)return null;return{'major':Number(_0xbe783a[0x1]),'minor':Number(_0xbe783a[0x2]),'patch':Number(_0xbe783a[0x3]),'prerelease':_0xbe783a[0x4]};}function compareSemver(_0x4092c3,_0x582f30){const _0x548015=a115_0xaccb,_0x5a454f=parseSemver(_0x4092c3),_0x1527bd=parseSemver(_0x582f30);if(!_0x5a454f||!_0x1527bd)throw new Error(_0x548015(0x8c));for(const _0x4417cc of[_0x548015(0x98),_0x548015(0x7c),'patch']){if(_0x5a454f[_0x4417cc]<_0x1527bd[_0x4417cc])return-0x1;if(_0x5a454f[_0x4417cc]>_0x1527bd[_0x4417cc])return 0x1;}if(!_0x5a454f[_0x548015(0x8b)]&&!_0x1527bd[_0x548015(0x8b)])return 0x0;if(!_0x5a454f['prerelease'])return 0x1;if(!_0x1527bd[_0x548015(0x8b)])return-0x1;if(_0x5a454f[_0x548015(0x8b)]===_0x1527bd['prerelease'])return 0x0;return _0x5a454f[_0x548015(0x8b)]<_0x1527bd[_0x548015(0x8b)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x286712=a115_0xaccb,_0x422b4c=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x286712(0x7b)]()[_0x286712(0x7f)]();return _0x422b4c==='1'||_0x422b4c===_0x286712(0x88)||_0x422b4c==='yes';}function a115_0xaccb(_0xd40462,_0x1b2498){_0xd40462=_0xd40462-0x77;const _0x18fbd4=a115_0x18fb();let _0xaccbed=_0x18fbd4[_0xd40462];return _0xaccbed;}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x102eef=a115_0xaccb;return join(cacheRoot(),'lovrabet-cli',_0x102eef(0x8d));}async function readUpdateNoticeCache(){const _0x17fe8c=a115_0xaccb;try{const _0x4e9f31=await readFile(getUpdateNoticeCachePath(),_0x17fe8c(0x97)),_0xabb4de=JSON[_0x17fe8c(0x9a)](_0x4e9f31);if(!_0xabb4de||typeof _0xabb4de!=='object')return{};return _0xabb4de;}catch{return{};}}async function writeUpdateNoticeCache(_0x5bc16c){try{const _0x4f4932=getUpdateNoticeCachePath();await mkdir(dirname(_0x4f4932),{'recursive':!![]}),await writeFile(_0x4f4932,JSON['stringify'](_0x5bc16c,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x147348,_0x2b0a38){const _0x881704=a115_0xaccb;return typeof _0x147348[_0x881704(0x89)]===_0x881704(0x7d)&&_0x2b0a38-_0x147348[_0x881704(0x89)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3f23e6,_0x348807,_0x365814){const _0x523947=a115_0xaccb;return _0x3f23e6[_0x523947(0x7e)]===_0x348807&&typeof _0x3f23e6['lastNotifiedAt']===_0x523947(0x7d)&&_0x365814-_0x3f23e6[_0x523947(0x95)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2373d7=0x5dc){const _0x41e51a=a115_0xaccb;try{const _0x3db117=NPM_REGISTRY_BASE_URL+_0x41e51a(0x9d)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x41e51a(0x82),_0x5722dc=await fetch(_0x3db117,{'signal':AbortSignal['timeout'](_0x2373d7)});if(!_0x5722dc['ok'])return null;const _0x3eccf0=await _0x5722dc[_0x41e51a(0x8a)]();if(!_0x3eccf0||typeof _0x3eccf0!==_0x41e51a(0x80))return null;return Object[_0x41e51a(0x83)](Object[_0x41e51a(0x8f)](_0x3eccf0)['filter'](([,_0x8743e3])=>typeof _0x8743e3==='string'&&_0x8743e3[_0x41e51a(0x7b)]())['map'](([_0x387ddc,_0x15dc2a])=>[_0x387ddc,String(_0x15dc2a)[_0x41e51a(0x7b)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x3c4b9b){const _0x366eda=a115_0xaccb;return _0x366eda(0x94)+LOVRABET_NPM_PACKAGE_NAME+_0x366eda(0x77)+_0x3c4b9b;}function a115_0x18fb(){const _0x50fb75=['759tcPURF','true','checkedAt','json','prerelease','Invalid\x20semver','update-check.json','2964474YmeFoY','entries','8316572IfwfJr','12978261miWSVv','35ISACnm','12646MoMNxI','https://www.npmjs.com/package/','lastNotifiedAt','446110idbhnC','utf8','major','7CbOvqZ','parse','\x20available,\x20current\x20','latest','/-/package/','/v/','\x20update','225628cVXnPf','match','trim','minor','number','lastNotifiedVersion','toLowerCase','object','now','/dist-tags','fromEntries','2973552IInChb','10leeEOF',',\x20run:\x20'];a115_0x18fb=function(){return _0x50fb75;};return a115_0x18fb();}export async function resolveLatestUpdateNotice(){const _0x5f136e=a115_0xaccb;if(isUpdateNoticeDisabled())return null;try{const _0x25c0cb=Date[_0x5f136e(0x81)](),_0x54a6fb=getCliVersion(),_0x445931=await readUpdateNoticeCache();let _0x58b037=isFreshCheck(_0x445931,_0x25c0cb)?_0x445931[_0x5f136e(0x9c)]?.['trim']():undefined;if(!_0x58b037&&!isFreshCheck(_0x445931,_0x25c0cb)){const _0x5112da=await fetchNpmDistTags();_0x58b037=_0x5112da?.[_0x5f136e(0x9c)]?.['trim'](),await writeUpdateNoticeCache({..._0x445931,'checkedAt':_0x25c0cb,'latest':_0x58b037,'failed':!_0x58b037});}if(!_0x58b037||compareSemver(_0x54a6fb,_0x58b037)>=0x0)return null;if(isRecentlyNotified(_0x445931,_0x58b037,_0x25c0cb))return null;const _0x1ab98b=CLI_BIN_NAME+_0x5f136e(0x78);return await writeUpdateNoticeCache({..._0x445931,'checkedAt':isFreshCheck(_0x445931,_0x25c0cb)?_0x445931['checkedAt']:_0x25c0cb,'latest':_0x58b037,'failed':![],'lastNotifiedVersion':_0x58b037,'lastNotifiedAt':_0x25c0cb}),{'command':_0x1ab98b,'current':_0x54a6fb,'latest':_0x58b037,'url':buildNpmVersionUrl(_0x58b037),'message':CLI_BIN_NAME+'\x20'+_0x58b037+_0x5f136e(0x9b)+_0x54a6fb+_0x5f136e(0x86)+_0x1ab98b};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50fc57,_0x59fb06){const _0x116cf6=a116_0x2273,_0x243a4b=_0x50fc57();while(!![]){try{const _0x401623=-parseInt(_0x116cf6(0x193))/0x1*(parseInt(_0x116cf6(0x199))/0x2)+parseInt(_0x116cf6(0x19a))/0x3*(parseInt(_0x116cf6(0x19b))/0x4)+-parseInt(_0x116cf6(0x191))/0x5*(-parseInt(_0x116cf6(0x18f))/0x6)+parseInt(_0x116cf6(0x194))/0x7+parseInt(_0x116cf6(0x190))/0x8+parseInt(_0x116cf6(0x196))/0x9*(parseInt(_0x116cf6(0x192))/0xa)+-parseInt(_0x116cf6(0x198))/0xb;if(_0x401623===_0x59fb06)break;else _0x243a4b['push'](_0x243a4b['shift']());}catch(_0x55dc51){_0x243a4b['push'](_0x243a4b['shift']());}}}(a116_0x576f,0x22c1c));function a116_0x576f(){const _0x35b8e3=['1499778hxBjzh','slice','80478oYWPNU','unknown','2029808YepBbe','56MjDqiu','6bRUYIu','320548FhFbkk','90LnIFKW','429888WQWCyP','2870zMmhor','170RzJjlN','9357ZDRVgW'];a116_0x576f=function(){return _0x35b8e3;};return a116_0x576f();}function a116_0x2273(_0x170a97,_0x2f7964){_0x170a97=_0x170a97-0x18f;const _0x576f5c=a116_0x576f();let _0x227338=_0x576f5c[_0x170a97];return _0x227338;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x1cd62b=a116_0x2273,_0x7d291=String(GIT_COMMIT);return _0x7d291&&_0x7d291!==_0x1cd62b(0x197)?_0x7d291:'';}export function getCliVersionDisplay(){const _0x393268=a116_0x2273,_0x2a3db0=getCliGitCommit(),_0x9753e7=BUILD_TIME[_0x393268(0x195)](0x0,0xa);if(!_0x2a3db0||!_0x9753e7)return VERSION;return VERSION+'\x20('+_0x2a3db0+',\x20'+_0x9753e7+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52211e,_0x1e2dda){var _0x366d96=a117_0x2ba9,_0xf9a43=_0x52211e();while(!![]){try{var _0x170b3f=parseInt(_0x366d96(0x1c6))/0x1+-parseInt(_0x366d96(0x1c7))/0x2*(-parseInt(_0x366d96(0x1cc))/0x3)+parseInt(_0x366d96(0x1c2))/0x4*(parseInt(_0x366d96(0x1c5))/0x5)+-parseInt(_0x366d96(0x1cd))/0x6*(parseInt(_0x366d96(0x1c9))/0x7)+parseInt(_0x366d96(0x1ca))/0x8+parseInt(_0x366d96(0x1c3))/0x9+-parseInt(_0x366d96(0x1c8))/0xa*(parseInt(_0x366d96(0x1c1))/0xb);if(_0x170b3f===_0x1e2dda)break;else _0xf9a43['push'](_0xf9a43['shift']());}catch(_0x343857){_0xf9a43['push'](_0xf9a43['shift']());}}}(a117_0x1fef,0x91502));function a117_0x1fef(){var _0x1ee93b=['stderr','1742810hEVdKU','563394khlSNc','587042PPDPWw','17084980mmKCEv','7BjVBSC','3594128dsNklw','write','3PbKqZu','5139294mBPOXr','11XUCVIE','8pAkRGI','10412496WelPbQ'];a117_0x1fef=function(){return _0x1ee93b;};return a117_0x1fef();}function a117_0x2ba9(_0x485604,_0x4bf05b){_0x485604=_0x485604-0x1c1;var _0x1fef4a=a117_0x1fef();var _0x2ba9ac=_0x1fef4a[_0x485604];return _0x2ba9ac;}export function writeCliSideChannelLine(_0xa5f8c2){var _0x5c6dc9=a117_0x2ba9;process[_0x5c6dc9(0x1c4)][_0x5c6dc9(0x1cb)](_0xa5f8c2+'\x0a');}
|