@lovrabet/lovrabet-cli 2.1.9 → 2.1.11-beta.1
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 a108_0xd21a(_0x292ba9,_0x44f0e0){_0x292ba9=_0x292ba9-0xb4;const _0x58d398=a108_0x58d3();let _0xd21a5=_0x58d398[_0x292ba9];return _0xd21a5;}(function(_0x3a63f5,_0x4e1b01){const _0x515b95=a108_0xd21a,_0xef3a7d=_0x3a63f5();while(!![]){try{const _0x1fda13=parseInt(_0x515b95(0xc4))/0x1*(parseInt(_0x515b95(0xd4))/0x2)+-parseInt(_0x515b95(0xda))/0x3+parseInt(_0x515b95(0xc3))/0x4+parseInt(_0x515b95(0xcb))/0x5+parseInt(_0x515b95(0xdc))/0x6*(parseInt(_0x515b95(0xdb))/0x7)+parseInt(_0x515b95(0xc5))/0x8*(parseInt(_0x515b95(0xdf))/0x9)+-parseInt(_0x515b95(0xde))/0xa*(-parseInt(_0x515b95(0xd9))/0xb);if(_0x1fda13===_0x4e1b01)break;else _0xef3a7d['push'](_0xef3a7d['shift']());}catch(_0x5ebc51){_0xef3a7d['push'](_0xef3a7d['shift']());}}}(a108_0x58d3,0xca17c));import{CliErrors}from'../../errors.js';import{SKILL_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';function a108_0x58d3(){const _0x4a8c59=['Runtime\x20Skill\x20package\x20size\x20mismatch.','bytes','size','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','path','Duplicate\x20Skill\x20package\x20entry:\x20','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','files','trim','407484juUxRA','639139NEybci','4916776NQRGSn','length','get','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','zipSize','string','606965NWnaTK','treeSha256','requireOssPath','some','\x20in\x20Skill\x20file\x20package.','sha256','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','isArray','2yknHAa','has','toLowerCase','validation','toString','1074227ahlfhb','3724638zEpyGB','728231YRdQgL','6pckEZo','map','50jOeJPq','9ExsqWb','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','zipSha256','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','ossPath'];a108_0x58d3=function(){return _0x4a8c59;};return a108_0x58d3();}import{fileContent,isSha256Hex,normalizeLocalFiles,normalizeManifestFiles}from'./local-files.js';import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x411cdb){const _0x52aec7=a108_0xd21a,_0x346518=normalizeLocalFiles(_0x411cdb);if(!_0x346518['some'](_0x5267ff=>_0x5267ff['path']===SKILL_FILE))throw CliErrors[_0x52aec7(0xd7)]('Missing\x20'+SKILL_FILE+_0x52aec7(0xcf));const _0x5eceaa=localFilesToManifestFiles(_0x346518),_0x3d1328=createDeterministicZipPackage(_0x346518);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x5eceaa),'zipSha256':bufferSha256(_0x3d1328),'zipSize':_0x3d1328[_0x52aec7(0xc6)],'files':_0x5eceaa},'packageBytes':_0x3d1328,'packageBase64':_0x3d1328[_0x52aec7(0xd8)]('base64')};}export function verifyRuntimeSkillPackage(_0x1de903,_0x33feee){const _0x54533b=a108_0xd21a,_0x7d6333=normalizePackageManifest(_0x1de903,{'requireOssPath':![]});if(!_0x7d6333)throw CliErrors[_0x54533b(0xd7)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackage(_0x7d6333,_0x33feee);}export function verifyRuntimeSkillBundle(_0x523697,_0xf51b64){const _0x29e091=a108_0xd21a,_0x4c6150=normalizePackageManifest(_0x523697,{'requireOssPath':![]});if(!_0x4c6150)throw CliErrors[_0x29e091(0xd7)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x4c6150,_0xf51b64);}export function tryNormalizePackageManifest(_0x17687c){return normalizePackageManifest(_0x17687c,{'requireOssPath':![]});}export function requirePackageBytes(_0x303ccf,_0x1647c9){const _0x447c85=a108_0xd21a;if(!_0x1647c9||_0x1647c9[_0x447c85(0xc6)]===0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x303ccf);return _0x1647c9;}export function extractDownloadedPackage(_0x248361){const _0x4a79b0=a108_0xd21a,_0xab8973=parseZipPackage(_0x248361)['map'](_0xf82bc9=>({'path':_0xf82bc9[_0x4a79b0(0xbc)],'bytes':_0xf82bc9['bytes']}));if(!_0xab8973[_0x4a79b0(0xce)](_0x47257f=>_0x47257f['path']===SKILL_FILE))throw CliErrors[_0x4a79b0(0xd7)](_0x4a79b0(0xb5)+SKILL_FILE+'.');return normalizeLocalFiles(_0xab8973);}export function localFilesToManifestFiles(_0x260e14){const _0x18d901=a108_0xd21a;return normalizeLocalFiles(_0x260e14)[_0x18d901(0xdd)](_0x3ab99c=>({'path':_0x3ab99c[_0x18d901(0xbc)],'sha256':fileHash(_0x3ab99c),'size':fileContent(_0x3ab99c)['length']}));}function normalizePackageManifest(_0x424cba,_0x1fe819){const _0x50aa14=a108_0xd21a;if(!_0x424cba||typeof _0x424cba!=='object'||Array['isArray'](_0x424cba))return undefined;const _0x25a82d=_0x424cba,_0xd9bd=typeof _0x25a82d[_0x50aa14(0xb7)]===_0x50aa14(0xca)?_0x25a82d[_0x50aa14(0xb7)][_0x50aa14(0xc2)]():undefined;if(_0x1fe819[_0x50aa14(0xcd)]&&!_0xd9bd)return undefined;if(!Array[_0x50aa14(0xd3)](_0x25a82d[_0x50aa14(0xc1)])||_0x25a82d[_0x50aa14(0xc1)][_0x50aa14(0xc6)]===0x0)return undefined;if(!isSha256Hex(_0x25a82d[_0x50aa14(0xcc)]))throw CliErrors[_0x50aa14(0xd7)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x25a82d['zipSha256']))throw CliErrors[_0x50aa14(0xd7)](_0x50aa14(0xbb));if(!Number['isSafeInteger'](_0x25a82d[_0x50aa14(0xc9)])||_0x25a82d[_0x50aa14(0xc9)]<0x0)throw CliErrors['validation'](_0x50aa14(0xd2));const _0x236e7e=normalizeManifestFiles(_0x25a82d[_0x50aa14(0xc1)]);if(!_0x236e7e[_0x50aa14(0xce)](_0xc2d758=>_0xc2d758[_0x50aa14(0xbc)]===SKILL_FILE))throw CliErrors[_0x50aa14(0xd7)](_0x50aa14(0xbe)+SKILL_FILE+'.');const _0x2638f3=fileTreeHash(_0x236e7e);if(_0x2638f3!==_0x25a82d['treeSha256'][_0x50aa14(0xd6)]())throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number['isSafeInteger'](_0x25a82d[_0x50aa14(0xbf)])?_0x25a82d[_0x50aa14(0xbf)]:0x2,'ossPath':_0xd9bd,'treeSha256':_0x2638f3,'zipSha256':_0x25a82d[_0x50aa14(0xb4)]['toLowerCase'](),'zipSize':_0x25a82d[_0x50aa14(0xc9)],'files':_0x236e7e};}function extractAndVerifyPackage(_0x532379,_0x22473b){const _0x1db377=a108_0xd21a,_0x544546=normalizePackageManifest(_0x532379,{'requireOssPath':![]});if(!_0x544546)throw CliErrors[_0x1db377(0xd7)](_0x1db377(0xe0));if(_0x22473b[_0x1db377(0xc6)]!==_0x544546['zipSize'])throw CliErrors['validation'](_0x1db377(0xb8));const _0x1ab6a9=bufferSha256(_0x22473b);if(_0x1ab6a9!==_0x544546[_0x1db377(0xb4)])throw CliErrors[_0x1db377(0xd7)](_0x1db377(0xc0));return extractAndVerifyPackageFiles(_0x544546,_0x22473b);}function extractAndVerifyPackageFiles(_0x191a64,_0x26b552){const _0x1d0dc4=a108_0xd21a,_0x43122a=parseZipPackage(_0x26b552);if(_0x43122a[_0x1d0dc4(0xc6)]!==_0x191a64[_0x1d0dc4(0xc1)]['length'])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x230e76=new Map();for(const _0x297fb5 of _0x43122a){if(_0x230e76[_0x1d0dc4(0xd5)](_0x297fb5[_0x1d0dc4(0xbc)]))throw CliErrors[_0x1d0dc4(0xd7)](_0x1d0dc4(0xbd)+_0x297fb5['path']);_0x230e76['set'](_0x297fb5[_0x1d0dc4(0xbc)],_0x297fb5);}const _0x23e04c=[];for(const _0x2ec702 of _0x191a64[_0x1d0dc4(0xc1)]){const _0x1dbe21=_0x230e76[_0x1d0dc4(0xc7)](_0x2ec702[_0x1d0dc4(0xbc)]);if(!_0x1dbe21)throw CliErrors[_0x1d0dc4(0xd7)](_0x1d0dc4(0xd1)+_0x2ec702[_0x1d0dc4(0xbc)]);if(_0x1dbe21[_0x1d0dc4(0xb9)][_0x1d0dc4(0xc6)]!==_0x2ec702[_0x1d0dc4(0xba)])throw CliErrors[_0x1d0dc4(0xd7)](_0x1d0dc4(0xb6)+_0x2ec702[_0x1d0dc4(0xbc)]);const _0x107006=bufferSha256(_0x1dbe21[_0x1d0dc4(0xb9)]);if(_0x107006!==_0x2ec702[_0x1d0dc4(0xd0)])throw CliErrors['validation'](_0x1d0dc4(0xc8)+_0x2ec702[_0x1d0dc4(0xbc)]);_0x23e04c['push']({'path':_0x2ec702['path'],'bytes':_0x1dbe21[_0x1d0dc4(0xb9)]});}return normalizeLocalFiles(_0x23e04c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a7ee4,_0x5c249a){var _0x39ea45=a109_0x1f56,_0x2c16ff=_0x4a7ee4();while(!![]){try{var _0x46f087=-parseInt(_0x39ea45(0x12e))/0x1*(-parseInt(_0x39ea45(0x12f))/0x2)+parseInt(_0x39ea45(0x12d))/0x3+parseInt(_0x39ea45(0x12a))/0x4+-parseInt(_0x39ea45(0x12c))/0x5*(-parseInt(_0x39ea45(0x130))/0x6)+-parseInt(_0x39ea45(0x127))/0x7+parseInt(_0x39ea45(0x128))/0x8*(-parseInt(_0x39ea45(0x129))/0x9)+-parseInt(_0x39ea45(0x12b))/0xa;if(_0x46f087===_0x5c249a)break;else _0x2c16ff['push'](_0x2c16ff['shift']());}catch(_0x49444b){_0x2c16ff['push'](_0x2c16ff['shift']());}}}(a109_0x3a44,0xa7ee4));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';function a109_0x3a44(){var _0x12d752=['1188102ADRTeZ','478yccqxU','1242iISfil','12EjHnrh','633206SpBeex','168sdxtcY','392211CcYwUl','3429560QGwBXt','10761890iKzfbS','3048470zzPXgc'];a109_0x3a44=function(){return _0x12d752;};return a109_0x3a44();}export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';export{deriveSkillCodeFromDirectory,readPushDirectory,refreshPushDirectoryMetadataFromRemote,recordPushedRuntimeSkill,resolvePushDirectoryIdentity}from'./runtime-skill-sync/push.js';function a109_0x1f56(_0x3875bf,_0x35f65b){_0x3875bf=_0x3875bf-0x127;var _0x3a4431=a109_0x3a44();var _0x1f56ba=_0x3a4431[_0x3875bf];return _0x1f56ba;}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52dd6e,_0x1cf13e){const _0x4961f4=a110_0xed2b,_0x31e22d=_0x52dd6e();while(!![]){try{const _0x705dd3=-parseInt(_0x4961f4(0x8a))/0x1+parseInt(_0x4961f4(0x87))/0x2+-parseInt(_0x4961f4(0x88))/0x3+-parseInt(_0x4961f4(0x85))/0x4+-parseInt(_0x4961f4(0x84))/0x5+-parseInt(_0x4961f4(0x89))/0x6+parseInt(_0x4961f4(0x86))/0x7;if(_0x705dd3===_0x1cf13e)break;else _0x31e22d['push'](_0x31e22d['shift']());}catch(_0x5d5110){_0x31e22d['push'](_0x31e22d['shift']());}}}(a110_0x204e,0x69868));function a110_0xed2b(_0x521bfb,_0xcb807d){_0x521bfb=_0x521bfb-0x84;const _0x204ee3=a110_0x204e();let _0xed2bbc=_0x204ee3[_0x521bfb];return _0xed2bbc;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a110_0x204e(){const _0x38a5c8=['3220530LKiIqx','1468488vrZEVL','17234210xUvSXt','1011950ieQGsl','1281768NZgrmn','2613672RVYuum','661677xzGary'];a110_0x204e=function(){return _0x38a5c8;};return a110_0x204e();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111_0x2ad771=a111_0x3e8a;(function(_0x3d68c0,_0x15beef){const _0x3d5bec=a111_0x3e8a,_0x40624b=_0x3d68c0();while(!![]){try{const _0xde9dec=parseInt(_0x3d5bec(0x1b6))/0x1+parseInt(_0x3d5bec(0x1a8))/0x2+-parseInt(_0x3d5bec(0x1ab))/0x3+parseInt(_0x3d5bec(0x1c5))/0x4*(-parseInt(_0x3d5bec(0x1bf))/0x5)+parseInt(_0x3d5bec(0x1aa))/0x6+parseInt(_0x3d5bec(0x1c7))/0x7+-parseInt(_0x3d5bec(0x198))/0x8*(parseInt(_0x3d5bec(0x19f))/0x9);if(_0xde9dec===_0x15beef)break;else _0x40624b['push'](_0x40624b['shift']());}catch(_0x3688da){_0x40624b['push'](_0x40624b['shift']());}}}(a111_0x305d,0x188c7));import a111_0x130024 from'winston';import a111_0x479b2e from'node:fs';import a111_0x2f87f4 from'node:path';function a111_0x3e8a(_0x5f0670,_0x3ff22b){_0x5f0670=_0x5f0670-0x194;const _0x305d4d=a111_0x305d();let _0x3e8a20=_0x305d4d[_0x5f0670];return _0x3e8a20;}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a111_0x2ad771(0x1c8)];[a111_0x2ad771(0x195)]='';[a111_0x2ad771(0x1b4)]='';constructor(){}[a111_0x2ad771(0x19e)](_0x5688eb){const _0x427cfe=a111_0x2ad771;this[_0x427cfe(0x1b4)]=_0x5688eb;}['setLogPath'](_0x431d4c){const _0x35378d=a111_0x2ad771;this['logFilePath']=a111_0x2f87f4['join'](_0x431d4c,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x35378d(0x1c8)][_0x35378d(0x1b0)](),this[_0x35378d(0x196)]();}[a111_0x2ad771(0x196)](){const _0x25cf3c=a111_0x2ad771,_0x229d78=a111_0x2f87f4[_0x25cf3c(0x199)](this[_0x25cf3c(0x195)]);!a111_0x479b2e[_0x25cf3c(0x1c1)](_0x229d78)&&a111_0x479b2e[_0x25cf3c(0x1b9)](_0x229d78,{'recursive':!![]});const _0x21c62f=a111_0x130024[_0x25cf3c(0x1bc)][_0x25cf3c(0x1ba)](a111_0x130024['format'][_0x25cf3c(0x197)](),a111_0x130024['format']['errors']({'stack':!![]}),a111_0x130024[_0x25cf3c(0x1bc)][_0x25cf3c(0x1a9)](_0x1f1044=>{const _0x14a68b=_0x25cf3c,_0x231dba={'timestamp':_0x1f1044['timestamp']||new Date()[_0x14a68b(0x1b1)](),'level':_0x1f1044['level']||_0x14a68b(0x1a5),'command':_0x1f1044['command']||_0x14a68b(0x1a1),'rawCommand':_0x1f1044[_0x14a68b(0x1b2)]||this['currentRawCommand']||undefined,'message':_0x1f1044[_0x14a68b(0x1c3)]||'','duration':_0x1f1044[_0x14a68b(0x1b5)]||undefined,'details':_0x1f1044[_0x14a68b(0x1c2)]||undefined};return JSON[_0x14a68b(0x194)](_0x231dba);}));this[_0x25cf3c(0x1c8)]=a111_0x130024[_0x25cf3c(0x1b7)]({'level':_0x25cf3c(0x1a5),'format':_0x21c62f,'transports':[new a111_0x130024[(_0x25cf3c(0x1be))]['File']({'filename':this[_0x25cf3c(0x195)],'level':_0x25cf3c(0x1a5)})],'silent':![]}),a111_0x130024[_0x25cf3c(0x1c4)]({'success':_0x25cf3c(0x1c6),'error':_0x25cf3c(0x1a7),'warn':'yellow','info':_0x25cf3c(0x1af)});}['info'](_0x4c6d10,_0x3e2e0a,_0x491e81){const _0xe23fd8=a111_0x2ad771;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0xe23fd8(0x1c8)][_0xe23fd8(0x1a5)](_0x3e2e0a,{'command':_0x4c6d10,'details':_0x491e81});}['success'](_0x1b6442,_0x36723a,_0x1c5c3c,_0x2ba875){const _0x3409dc=a111_0x2ad771;if(!this[_0x3409dc(0x195)]||!this[_0x3409dc(0x1c8)])return;this[_0x3409dc(0x1c8)]['log'](_0x3409dc(0x1a5),_0x36723a,{'level':_0x3409dc(0x19c),'command':_0x1b6442,'duration':_0x1c5c3c,'details':_0x2ba875});}['error'](_0x77dc2,_0x1e14cd,_0x3cd0ef){const _0x3379cf=a111_0x2ad771;if(!this['logFilePath']||!this[_0x3379cf(0x1c8)])return;this[_0x3379cf(0x1c8)][_0x3379cf(0x1b3)](_0x1e14cd,{'command':_0x77dc2,'details':_0x3cd0ef});}['warn'](_0x15588c,_0x127333,_0x373139){const _0x31cacc=a111_0x2ad771;if(!this[_0x31cacc(0x195)]||!this[_0x31cacc(0x1c8)])return;this['winstonLogger']['warn'](_0x127333,{'command':_0x15588c,'details':_0x373139});}async[a111_0x2ad771(0x1a0)](_0x3948ff,_0x300747,_0x35e1bb){const _0x4e20d8=a111_0x2ad771,_0x1b9573=Date['now']();this[_0x4e20d8(0x1a5)](_0x3948ff,_0x4e20d8(0x1ad)+_0x300747);try{const _0x233cb5=await _0x35e1bb(),_0x2b4bfc=Date[_0x4e20d8(0x1a6)]()-_0x1b9573;return this[_0x4e20d8(0x19c)](_0x3948ff,'Completed:\x20'+_0x300747,_0x2b4bfc),_0x233cb5;}catch(_0x3d9e32){const _0x12686f=Date['now']()-_0x1b9573;this['error'](_0x3948ff,_0x4e20d8(0x1ac)+_0x300747,{'error':_0x3d9e32 instanceof Error?_0x3d9e32[_0x4e20d8(0x1c3)]:String(_0x3d9e32),'duration':_0x12686f});throw _0x3d9e32;}}[a111_0x2ad771(0x19d)](){const _0xd40b34=a111_0x2ad771;try{if(!a111_0x479b2e[_0xd40b34(0x1c1)](this['logFilePath']))return[];const _0x270ecb=a111_0x479b2e[_0xd40b34(0x1a2)](this[_0xd40b34(0x195)],_0xd40b34(0x19a));return _0x270ecb['split'](/\r?\n/)[_0xd40b34(0x1c0)](_0x34cb44=>_0x34cb44[_0xd40b34(0x1bb)]())[_0xd40b34(0x19b)](_0x37da35=>JSON[_0xd40b34(0x1b8)](_0x37da35));}catch(_0x2c6e4d){return console[_0xd40b34(0x1bd)]('Failed\x20to\x20read\x20logs:',_0x2c6e4d),[];}}[a111_0x2ad771(0x1ae)](){const _0x2b9d87=a111_0x2ad771;try{a111_0x479b2e[_0x2b9d87(0x1c1)](this[_0x2b9d87(0x195)])&&a111_0x479b2e[_0x2b9d87(0x1a3)](this[_0x2b9d87(0x195)],'',_0x2b9d87(0x19a));}catch(_0xe0932b){console[_0x2b9d87(0x1bd)](_0x2b9d87(0x1a4),_0xe0932b);}}['getWinstonInstance'](){const _0x56cc77=a111_0x2ad771;return this[_0x56cc77(0x1c8)];}}export const logger=new Logger();function a111_0x305d(){const _0x590a29=['currentRawCommand','duration','34390LTefYI','createLogger','parse','mkdirSync','combine','trim','format','warn','transports','22515pZYKPj','filter','existsSync','details','message','addColors','44QZJScF','green','1158150aGRYMm','winstonLogger','stringify','logFilePath','initWinstonLogger','timestamp','1648mLnpWx','dirname','utf8','map','success','readLogs','setRawCommand','2826VWYPDM','logTask','unknown','readFileSync','writeFileSync','Failed\x20to\x20clear\x20logs:','info','now','red','25474CBhWOA','printf','26958IAbMbR','6906Zxeumf','Failed:\x20','Starting:\x20','clearLogs','blue','clear','toISOString','rawCommand','error'];a111_0x305d=function(){return _0x590a29;};return a111_0x305d();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x534346,_0x4e4e99){const _0x4b78e0=a112_0x3b1e,_0x3d36b9=_0x534346();while(!![]){try{const _0x20136e=-parseInt(_0x4b78e0(0x1b8))/0x1*(-parseInt(_0x4b78e0(0x1b9))/0x2)+parseInt(_0x4b78e0(0x1bb))/0x3*(-parseInt(_0x4b78e0(0x1bd))/0x4)+parseInt(_0x4b78e0(0x1c8))/0x5*(parseInt(_0x4b78e0(0x1ce))/0x6)+parseInt(_0x4b78e0(0x1ba))/0x7+parseInt(_0x4b78e0(0x1cc))/0x8*(-parseInt(_0x4b78e0(0x1c6))/0x9)+parseInt(_0x4b78e0(0x1c7))/0xa+-parseInt(_0x4b78e0(0x1c4))/0xb;if(_0x20136e===_0x4e4e99)break;else _0x3d36b9['push'](_0x3d36b9['shift']());}catch(_0x51df21){_0x3d36b9['push'](_0x3d36b9['shift']());}}}(a112_0x159d,0xd6c76));import{CliErrors}from'../errors.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x258a5e){const _0x7e789a=a112_0x3b1e;if(!_0x258a5e)return undefined;try{return JSON[_0x7e789a(0x1cd)](_0x258a5e);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x258a5e);}}function a112_0x159d(){const _0x32b3d1=['90BJCnJW','14089670veNRbo','20gEMVGY','map','id[','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','524056rIExRQ','parse','1377996UlMKsW','isArray','length','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','items','object','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','1576705mExRUA','2AfkQHy','12094502oomJQG','6KXGZch','validation','2700596PKocZz','string','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20can\x20update\x20at\x20most\x20','test','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','isSafeInteger','30217220fqScvH','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'];a112_0x159d=function(){return _0x32b3d1;};return a112_0x159d();}function a112_0x3b1e(_0x801863,_0x419f8a){_0x801863=_0x801863-0x1b6;const _0x159d23=a112_0x159d();let _0x3b1e1d=_0x159d23[_0x801863];return _0x3b1e1d;}export function parseJsonParamsValue(_0xca90b6){if(!_0xca90b6)return undefined;try{return JSON['parse'](_0xca90b6);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0xca90b6);}}export function parseBatchCreateItemsFromParams(_0x4a7e70){const _0x5c37ae=a112_0x3b1e;if(Array[_0x5c37ae(0x1cf)](_0x4a7e70))return _0x4a7e70;if(_0x4a7e70!==null&&_0x4a7e70!==undefined&&typeof _0x4a7e70==='object'&&Array[_0x5c37ae(0x1cf)](_0x4a7e70[_0x5c37ae(0x1d2)]))return _0x4a7e70[_0x5c37ae(0x1d2)];throw CliErrors[_0x5c37ae(0x1bc)](_0x5c37ae(0x1cb),_0x5c37ae(0x1c5));}function parseDataUpdateId(_0x7aa847,_0x1c13f2){const _0x20d8dc=a112_0x3b1e;if(typeof _0x7aa847==='number'&&Number[_0x20d8dc(0x1c3)](_0x7aa847)&&_0x7aa847>0x0)return _0x7aa847;if(typeof _0x7aa847===_0x20d8dc(0x1be)){if(/^[1-9]\d*$/[_0x20d8dc(0x1c1)](_0x7aa847))return _0x7aa847;}throw CliErrors[_0x20d8dc(0x1bc)]('data\x20update\x20--params.'+_0x1c13f2+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x1e36b5){const _0x60dfd8=a112_0x3b1e;if(_0x1e36b5===null||_0x1e36b5===undefined||typeof _0x1e36b5!==_0x60dfd8(0x1b6)||Array['isArray'](_0x1e36b5))throw CliErrors[_0x60dfd8(0x1bc)](_0x60dfd8(0x1b7),_0x60dfd8(0x1bf));const _0x4624fb=_0x1e36b5['id'];if(_0x4624fb===undefined||_0x4624fb===null)throw CliErrors['validation'](_0x60dfd8(0x1d1),_0x60dfd8(0x1bf));const _0x272e5b=Array[_0x60dfd8(0x1cf)](_0x4624fb)?_0x4624fb:[_0x4624fb];if(_0x272e5b[_0x60dfd8(0x1d0)]===0x0)throw CliErrors[_0x60dfd8(0x1bc)](_0x60dfd8(0x1c2));if(_0x272e5b['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x60dfd8(0x1bc)](_0x60dfd8(0x1c0)+MAX_DATA_UPDATE_IDS+'\x20records\x20per\x20call;\x20received\x20'+_0x272e5b[_0x60dfd8(0x1d0)]+'.');return _0x272e5b[_0x60dfd8(0x1c9)]((_0x4913c9,_0x5eb4e2)=>parseDataUpdateId(_0x4913c9,Array[_0x60dfd8(0x1cf)](_0x4624fb)?_0x60dfd8(0x1ca)+_0x5eb4e2+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x2ab6a8,_0x589cf4){const _0x7b3214=a112_0x3b1e;if(Array['isArray'](_0x2ab6a8['id'])&&_0x589cf4[_0x7b3214(0x1d0)]>0x1)return{..._0x2ab6a8,'id':_0x589cf4['join'](',')};return _0x2ab6a8;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x1d9068=a113_0x2711;(function(_0x1ac553,_0x4216eb){const _0x3eaf9f=a113_0x2711,_0x2b3410=_0x1ac553();while(!![]){try{const _0x3d50c1=-parseInt(_0x3eaf9f(0x1f1))/0x1+parseInt(_0x3eaf9f(0x1fb))/0x2*(-parseInt(_0x3eaf9f(0x1fa))/0x3)+parseInt(_0x3eaf9f(0x1fd))/0x4*(parseInt(_0x3eaf9f(0x1f3))/0x5)+parseInt(_0x3eaf9f(0x1f5))/0x6+parseInt(_0x3eaf9f(0x1fc))/0x7+parseInt(_0x3eaf9f(0x1f8))/0x8*(parseInt(_0x3eaf9f(0x1f9))/0x9)+-parseInt(_0x3eaf9f(0x1f7))/0xa;if(_0x3d50c1===_0x4216eb)break;else _0x2b3410['push'](_0x2b3410['shift']());}catch(_0x5baf88){_0x2b3410['push'](_0x2b3410['shift']());}}}(a113_0x2a8b,0x9e289));export const isWindows=process[a113_0x1d9068(0x1f6)]===a113_0x1d9068(0x1f4);function a113_0x2711(_0x3b011d,_0x46ec94){_0x3b011d=_0x3b011d-0x1f1;const _0x2a8b2d=a113_0x2a8b();let _0x2711e5=_0x2a8b2d[_0x3b011d];return _0x2711e5;}function a113_0x2a8b(){const _0x59e785=['257384HhIdCK','135JIaMki','1329GhiHvU','3902AsuGIY','5246451cKbilo','4yTzjIS','402216tpLCmb','.cmd','6166115xtOQZD','win32','5859918zLGdJi','platform','15276380DhqJhp'];a113_0x2a8b=function(){return _0x59e785;};return a113_0x2a8b();}export function resolveNpmBin(_0x59bf4b){const _0x5bb641=a113_0x1d9068;return isWindows?_0x59bf4b+_0x5bb641(0x1f2):_0x59bf4b;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a9d3f,_0x11b1e8){const _0x494261=a114_0x19ed,_0x33fb09=_0x4a9d3f();while(!![]){try{const _0xa125fe=parseInt(_0x494261(0x19d))/0x1+parseInt(_0x494261(0x1a1))/0x2+parseInt(_0x494261(0x1a5))/0x3*(-parseInt(_0x494261(0x18c))/0x4)+parseInt(_0x494261(0x192))/0x5*(-parseInt(_0x494261(0x1a8))/0x6)+parseInt(_0x494261(0x19b))/0x7*(parseInt(_0x494261(0x18e))/0x8)+parseInt(_0x494261(0x191))/0x9*(-parseInt(_0x494261(0x199))/0xa)+parseInt(_0x494261(0x1a3))/0xb;if(_0xa125fe===_0x11b1e8)break;else _0x33fb09['push'](_0x33fb09['shift']());}catch(_0x5cb0eb){_0x33fb09['push'](_0x33fb09['shift']());}}}(a114_0x4ef6,0x2259a));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';function a114_0x19ed(_0x7e87cb,_0x4d6a83){_0x7e87cb=_0x7e87cb-0x18c;const _0x4ef649=a114_0x4ef6();let _0x19ed2e=_0x4ef649[_0x7e87cb];return _0x19ed2e;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function parseSemver(_0x5045f7){const _0x2066cb=a114_0x19ed,_0x3a33c0=_0x5045f7['trim']()[_0x2066cb(0x1ae)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3a33c0)return null;return{'major':Number(_0x3a33c0[0x1]),'minor':Number(_0x3a33c0[0x2]),'patch':Number(_0x3a33c0[0x3]),'prerelease':_0x3a33c0[0x4]};}function compareSemver(_0x4bda0d,_0x4de0b4){const _0x3f232e=a114_0x19ed,_0x4eb9d6=parseSemver(_0x4bda0d),_0x3dac7a=parseSemver(_0x4de0b4);if(!_0x4eb9d6||!_0x3dac7a)throw new Error('Invalid\x20semver');for(const _0x1fec58 of[_0x3f232e(0x1ab),'minor','patch']){if(_0x4eb9d6[_0x1fec58]<_0x3dac7a[_0x1fec58])return-0x1;if(_0x4eb9d6[_0x1fec58]>_0x3dac7a[_0x1fec58])return 0x1;}if(!_0x4eb9d6[_0x3f232e(0x196)]&&!_0x3dac7a[_0x3f232e(0x196)])return 0x0;if(!_0x4eb9d6[_0x3f232e(0x196)])return 0x1;if(!_0x3dac7a[_0x3f232e(0x196)])return-0x1;if(_0x4eb9d6[_0x3f232e(0x196)]===_0x3dac7a[_0x3f232e(0x196)])return 0x0;return _0x4eb9d6[_0x3f232e(0x196)]<_0x3dac7a[_0x3f232e(0x196)]?-0x1:0x1;}function a114_0x4ef6(){const _0x559575=[',\x20run:\x20','prerelease','lastNotifiedAt','/-/package/','556430hvZELf','map','15757sCVwbm','/v/','197183MlACmR','checkedAt','trim','entries','219732hHFZIa','timeout','1140216HajazJ','json','24rKdZsN','string','number','189870ffesjm','true','now','major','latest','object','match','update-check.json','47704cHcqLk','https://www.npmjs.com/package/','760CtglCP','lovrabet-cli','\x20update','27sQlsti','35GcImyd','toLowerCase','.cache'];a114_0x4ef6=function(){return _0x559575;};return a114_0x4ef6();}function isUpdateNoticeDisabled(){const _0x3e6a15=a114_0x19ed,_0x4eb251=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x3e6a15(0x193)]();return _0x4eb251==='1'||_0x4eb251===_0x3e6a15(0x1a9)||_0x4eb251==='yes';}function cacheRoot(){const _0x18f682=a114_0x19ed;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x18f682(0x194));}export function getUpdateNoticeCachePath(){const _0x4d6563=a114_0x19ed;return join(cacheRoot(),_0x4d6563(0x18f),_0x4d6563(0x1af));}async function readUpdateNoticeCache(){const _0x55b6f2=a114_0x19ed;try{const _0x4c3583=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x5b6eb8=JSON['parse'](_0x4c3583);if(!_0x5b6eb8||typeof _0x5b6eb8!==_0x55b6f2(0x1ad))return{};return _0x5b6eb8;}catch{return{};}}async function writeUpdateNoticeCache(_0x5da2f8){try{const _0x10fc36=getUpdateNoticeCachePath();await mkdir(dirname(_0x10fc36),{'recursive':!![]}),await writeFile(_0x10fc36,JSON['stringify'](_0x5da2f8,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x453c62,_0x5d554c){const _0x3df9a5=a114_0x19ed;return typeof _0x453c62[_0x3df9a5(0x19e)]===_0x3df9a5(0x1a7)&&_0x5d554c-_0x453c62[_0x3df9a5(0x19e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x556d94,_0x57a962,_0x3d2127){const _0x51817d=a114_0x19ed;return _0x556d94['lastNotifiedVersion']===_0x57a962&&typeof _0x556d94[_0x51817d(0x197)]==='number'&&_0x3d2127-_0x556d94[_0x51817d(0x197)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x30cbd3=0x5dc){const _0xb68f8b=a114_0x19ed;try{const _0x4441a0=NPM_REGISTRY_BASE_URL+_0xb68f8b(0x198)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x357ca5=await fetch(_0x4441a0,{'signal':AbortSignal[_0xb68f8b(0x1a2)](_0x30cbd3)});if(!_0x357ca5['ok'])return null;const _0x508420=await _0x357ca5[_0xb68f8b(0x1a4)]();if(!_0x508420||typeof _0x508420!==_0xb68f8b(0x1ad))return null;return Object['fromEntries'](Object[_0xb68f8b(0x1a0)](_0x508420)['filter'](([,_0x447f40])=>typeof _0x447f40===_0xb68f8b(0x1a6)&&_0x447f40['trim']())[_0xb68f8b(0x19a)](([_0x3bf988,_0x3c8b9c])=>[_0x3bf988,String(_0x3c8b9c)[_0xb68f8b(0x19f)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x48daf9){const _0x525995=a114_0x19ed;return _0x525995(0x18d)+LOVRABET_NPM_PACKAGE_NAME+_0x525995(0x19c)+_0x48daf9;}export async function resolveLatestUpdateNotice(){const _0x41987f=a114_0x19ed;if(isUpdateNoticeDisabled())return null;try{const _0x475c8d=Date[_0x41987f(0x1aa)](),_0x3ce5d0=getCliVersion(),_0x9c9d19=await readUpdateNoticeCache();let _0x3cb1ef=isFreshCheck(_0x9c9d19,_0x475c8d)?_0x9c9d19[_0x41987f(0x1ac)]?.[_0x41987f(0x19f)]():undefined;if(!_0x3cb1ef&&!isFreshCheck(_0x9c9d19,_0x475c8d)){const _0xfa671e=await fetchNpmDistTags();_0x3cb1ef=_0xfa671e?.['latest']?.[_0x41987f(0x19f)](),await writeUpdateNoticeCache({..._0x9c9d19,'checkedAt':_0x475c8d,'latest':_0x3cb1ef,'failed':!_0x3cb1ef});}if(!_0x3cb1ef||compareSemver(_0x3ce5d0,_0x3cb1ef)>=0x0)return null;if(isRecentlyNotified(_0x9c9d19,_0x3cb1ef,_0x475c8d))return null;const _0x2f2c45=CLI_BIN_NAME+_0x41987f(0x190);return await writeUpdateNoticeCache({..._0x9c9d19,'checkedAt':isFreshCheck(_0x9c9d19,_0x475c8d)?_0x9c9d19[_0x41987f(0x19e)]:_0x475c8d,'latest':_0x3cb1ef,'failed':![],'lastNotifiedVersion':_0x3cb1ef,'lastNotifiedAt':_0x475c8d}),{'command':_0x2f2c45,'current':_0x3ce5d0,'latest':_0x3cb1ef,'url':buildNpmVersionUrl(_0x3cb1ef),'message':CLI_BIN_NAME+'\x20'+_0x3cb1ef+'\x20available,\x20current\x20'+_0x3ce5d0+_0x41987f(0x195)+_0x2f2c45};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f4714,_0xdd9fab){const _0x3a0392=a115_0x56d7,_0x476f6b=_0x4f4714();while(!![]){try{const _0x82e269=-parseInt(_0x3a0392(0x1eb))/0x1+parseInt(_0x3a0392(0x1e3))/0x2+-parseInt(_0x3a0392(0x1e4))/0x3*(parseInt(_0x3a0392(0x1e6))/0x4)+parseInt(_0x3a0392(0x1e8))/0x5+-parseInt(_0x3a0392(0x1e5))/0x6+parseInt(_0x3a0392(0x1ec))/0x7+parseInt(_0x3a0392(0x1ea))/0x8*(parseInt(_0x3a0392(0x1e2))/0x9);if(_0x82e269===_0xdd9fab)break;else _0x476f6b['push'](_0x476f6b['shift']());}catch(_0x4960a0){_0x476f6b['push'](_0x476f6b['shift']());}}}(a115_0x5921,0xcec9a));function a115_0x5921(){const _0x3b2ed7=['9620322EYafhg','3376QMJiUg','unknown','3717385nlNzGK','slice','3093432XDVFml','782388SvAVTp','11168437QVQtjs','36HnOmuy','166122kkallx','2616Ybzsst'];a115_0x5921=function(){return _0x3b2ed7;};return a115_0x5921();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a115_0x56d7(_0xe6bd34,_0x53ed2c){_0xe6bd34=_0xe6bd34-0x1e2;const _0x59217e=a115_0x5921();let _0x56d7ff=_0x59217e[_0xe6bd34];return _0x56d7ff;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x156b24=a115_0x56d7,_0x26ff49=String(GIT_COMMIT);return _0x26ff49&&_0x26ff49!==_0x156b24(0x1e7)?_0x26ff49:'';}export function getCliVersionDisplay(){const _0x175218=a115_0x56d7,_0x55e711=getCliGitCommit(),_0x3b3cd4=BUILD_TIME[_0x175218(0x1e9)](0x0,0xa);if(!_0x55e711||!_0x3b3cd4)return VERSION;return VERSION+'\x20('+_0x55e711+',\x20'+_0x3b3cd4+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1215a8,_0x57ec9c){var _0x38c77c=a116_0x8ca6,_0x1a557f=_0x1215a8();while(!![]){try{var _0x2f9fb9=parseInt(_0x38c77c(0xbe))/0x1+parseInt(_0x38c77c(0xbb))/0x2*(parseInt(_0x38c77c(0xb7))/0x3)+parseInt(_0x38c77c(0xc1))/0x4*(-parseInt(_0x38c77c(0xc0))/0x5)+-parseInt(_0x38c77c(0xc3))/0x6+parseInt(_0x38c77c(0xbd))/0x7*(-parseInt(_0x38c77c(0xc4))/0x8)+parseInt(_0x38c77c(0xb9))/0x9*(parseInt(_0x38c77c(0xbc))/0xa)+-parseInt(_0x38c77c(0xba))/0xb*(-parseInt(_0x38c77c(0xc2))/0xc);if(_0x2f9fb9===_0x57ec9c)break;else _0x1a557f['push'](_0x1a557f['shift']());}catch(_0x3eaf7c){_0x1a557f['push'](_0x1a557f['shift']());}}}(a116_0x448b,0xdf98b));function a116_0x448b(){var _0x4239d0=['1018499yrxrOP','write','180MmMvoE','161368rWwbKY','2064XQpqLU','5292630oPsqvs','360xZPPxc','87CzWrIl','stderr','18WRsAvz','130394wRBATx','69032hcwmbC','1330110rThmmQ','167083kxSatQ'];a116_0x448b=function(){return _0x4239d0;};return a116_0x448b();}function a116_0x8ca6(_0x5002d8,_0x2900c5){_0x5002d8=_0x5002d8-0xb7;var _0x448b9b=a116_0x448b();var _0x8ca620=_0x448b9b[_0x5002d8];return _0x8ca620;}export function writeCliSideChannelLine(_0x135301){var _0x1b782b=a116_0x8ca6;process[_0x1b782b(0xb8)][_0x1b782b(0xbf)](_0x135301+'\x0a');}
|