@lovrabet/lovrabet-cli 2.1.0-beta.2 → 2.1.0
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/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/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/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/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/index.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/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.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(_0x38eae6,_0x59df53){const _0x144ff1=a81_0x2b61,_0x386efb=_0x38eae6();while(!![]){try{const _0x3c9577=-parseInt(_0x144ff1(0xa9))/0x1*(parseInt(_0x144ff1(0x9b))/0x2)+-parseInt(_0x144ff1(0xa1))/0x3+-parseInt(_0x144ff1(0xa2))/0x4*(parseInt(_0x144ff1(0x9e))/0x5)+parseInt(_0x144ff1(0xb3))/0x6+-parseInt(_0x144ff1(0x96))/0x7+parseInt(_0x144ff1(0xa8))/0x8+parseInt(_0x144ff1(0x9a))/0x9;if(_0x3c9577===_0x59df53)break;else _0x386efb['push'](_0x386efb['shift']());}catch(_0x29efd5){_0x386efb['push'](_0x386efb['shift']());}}}(a81_0x2d25,0x22617));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 a81_0x2d25(){const _0x7afe9e=['176SvIDus','update-check.json','.cache','lastNotifiedAt','entries','match','1106344poMeNI','9743FvIPxw','stringify','lovrabet-cli','yes','checkedAt',',\x20run:\x20','fromEntries','number','string','patch','1333566SuRgiK','/-/package/','object','Invalid\x20semver','lastNotifiedVersion','latest','toLowerCase','https://www.npmjs.com/package/','now','1455384LZoryY','trim','major','utf8','2534823tdqhWA','2ddfkjh','prerelease','minor','1550htSlgz','parse','\x20update','810249fCqXlm'];a81_0x2d25=function(){return _0x7afe9e;};return a81_0x2d25();}function parseSemver(_0x223b80){const _0x6a4b6a=a81_0x2b61,_0x758353=_0x223b80['trim']()[_0x6a4b6a(0xa7)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x758353)return null;return{'major':Number(_0x758353[0x1]),'minor':Number(_0x758353[0x2]),'patch':Number(_0x758353[0x3]),'prerelease':_0x758353[0x4]};}function compareSemver(_0x1769ec,_0x4130f3){const _0x466920=a81_0x2b61,_0x33bac4=parseSemver(_0x1769ec),_0x22584c=parseSemver(_0x4130f3);if(!_0x33bac4||!_0x22584c)throw new Error(_0x466920(0xb6));for(const _0x1535d1 of[_0x466920(0x98),_0x466920(0x9d),_0x466920(0xb2)]){if(_0x33bac4[_0x1535d1]<_0x22584c[_0x1535d1])return-0x1;if(_0x33bac4[_0x1535d1]>_0x22584c[_0x1535d1])return 0x1;}if(!_0x33bac4[_0x466920(0x9c)]&&!_0x22584c['prerelease'])return 0x0;if(!_0x33bac4[_0x466920(0x9c)])return 0x1;if(!_0x22584c[_0x466920(0x9c)])return-0x1;if(_0x33bac4[_0x466920(0x9c)]===_0x22584c[_0x466920(0x9c)])return 0x0;return _0x33bac4[_0x466920(0x9c)]<_0x22584c[_0x466920(0x9c)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5e57fe=a81_0x2b61,_0xcc8c9=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5e57fe(0x93)]();return _0xcc8c9==='1'||_0xcc8c9==='true'||_0xcc8c9===_0x5e57fe(0xac);}function cacheRoot(){const _0x3e551e=a81_0x2b61;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3e551e(0xa4));}export function getUpdateNoticeCachePath(){const _0x15ba4d=a81_0x2b61;return join(cacheRoot(),_0x15ba4d(0xab),_0x15ba4d(0xa3));}async function readUpdateNoticeCache(){const _0x33855f=a81_0x2b61;try{const _0x13acfc=await readFile(getUpdateNoticeCachePath(),_0x33855f(0x99)),_0x5b8786=JSON[_0x33855f(0x9f)](_0x13acfc);if(!_0x5b8786||typeof _0x5b8786!==_0x33855f(0xb5))return{};return _0x5b8786;}catch{return{};}}async function writeUpdateNoticeCache(_0x4ce4fa){const _0x27e24b=a81_0x2b61;try{const _0x2b6c9f=getUpdateNoticeCachePath();await mkdir(dirname(_0x2b6c9f),{'recursive':!![]}),await writeFile(_0x2b6c9f,JSON[_0x27e24b(0xaa)](_0x4ce4fa,null,0x2)+'\x0a',_0x27e24b(0x99));}catch{}}function isFreshCheck(_0x4f7837,_0x56b47d){const _0x58f251=a81_0x2b61;return typeof _0x4f7837[_0x58f251(0xad)]==='number'&&_0x56b47d-_0x4f7837['checkedAt']<UPDATE_CHECK_TTL_MS;}function a81_0x2b61(_0x233174,_0x2c75fe){_0x233174=_0x233174-0x91;const _0x2d25d7=a81_0x2d25();let _0x2b617f=_0x2d25d7[_0x233174];return _0x2b617f;}function isRecentlyNotified(_0x3e18ca,_0x499bb9,_0x24a34b){const _0x4c9caa=a81_0x2b61;return _0x3e18ca[_0x4c9caa(0x91)]===_0x499bb9&&typeof _0x3e18ca[_0x4c9caa(0xa5)]===_0x4c9caa(0xb0)&&_0x24a34b-_0x3e18ca[_0x4c9caa(0xa5)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x19ef37=0x5dc){const _0x11dc65=a81_0x2b61;try{const _0x4f8aa8=NPM_REGISTRY_BASE_URL+_0x11dc65(0xb4)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x13039a=await fetch(_0x4f8aa8,{'signal':AbortSignal['timeout'](_0x19ef37)});if(!_0x13039a['ok'])return null;const _0x325b4a=await _0x13039a['json']();if(!_0x325b4a||typeof _0x325b4a!=='object')return null;return Object[_0x11dc65(0xaf)](Object[_0x11dc65(0xa6)](_0x325b4a)['filter'](([,_0x15b0c5])=>typeof _0x15b0c5===_0x11dc65(0xb1)&&_0x15b0c5[_0x11dc65(0x97)]())['map'](([_0x174def,_0x5b8eed])=>[_0x174def,String(_0x5b8eed)[_0x11dc65(0x97)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x53fb8d){const _0x4d0cec=a81_0x2b61;return _0x4d0cec(0x94)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x53fb8d;}export async function resolveLatestUpdateNotice(){const _0x3ae89c=a81_0x2b61;if(isUpdateNoticeDisabled())return null;try{const _0x932d89=Date[_0x3ae89c(0x95)](),_0x3b004d=getCliVersion(),_0x1f8512=await readUpdateNoticeCache();let _0x3a5bf7=isFreshCheck(_0x1f8512,_0x932d89)?_0x1f8512['latest']?.[_0x3ae89c(0x97)]():undefined;if(!_0x3a5bf7&&!isFreshCheck(_0x1f8512,_0x932d89)){const _0x40132d=await fetchNpmDistTags();_0x3a5bf7=_0x40132d?.[_0x3ae89c(0x92)]?.[_0x3ae89c(0x97)](),await writeUpdateNoticeCache({..._0x1f8512,'checkedAt':_0x932d89,'latest':_0x3a5bf7,'failed':!_0x3a5bf7});}if(!_0x3a5bf7||compareSemver(_0x3b004d,_0x3a5bf7)>=0x0)return null;if(isRecentlyNotified(_0x1f8512,_0x3a5bf7,_0x932d89))return null;const _0x3affe3=CLI_BIN_NAME+_0x3ae89c(0xa0);return await writeUpdateNoticeCache({..._0x1f8512,'checkedAt':isFreshCheck(_0x1f8512,_0x932d89)?_0x1f8512[_0x3ae89c(0xad)]:_0x932d89,'latest':_0x3a5bf7,'failed':![],'lastNotifiedVersion':_0x3a5bf7,'lastNotifiedAt':_0x932d89}),{'command':_0x3affe3,'current':_0x3b004d,'latest':_0x3a5bf7,'url':buildNpmVersionUrl(_0x3a5bf7),'message':CLI_BIN_NAME+'\x20'+_0x3a5bf7+'\x20available,\x20current\x20'+_0x3b004d+_0x3ae89c(0xae)+_0x3affe3};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x839dc1,_0x326b57){const _0x218d33=a82_0x12ef,_0x39e921=_0x839dc1();while(!![]){try{const _0x580d2f=-parseInt(_0x218d33(0x77))/0x1*(-parseInt(_0x218d33(0x76))/0x2)+parseInt(_0x218d33(0x72))/0x3+parseInt(_0x218d33(0x78))/0x4*(parseInt(_0x218d33(0x6f))/0x5)+parseInt(_0x218d33(0x75))/0x6*(-parseInt(_0x218d33(0x7a))/0x7)+parseInt(_0x218d33(0x70))/0x8+-parseInt(_0x218d33(0x71))/0x9*(-parseInt(_0x218d33(0x79))/0xa)+parseInt(_0x218d33(0x6d))/0xb*(-parseInt(_0x218d33(0x74))/0xc);if(_0x580d2f===_0x326b57)break;else _0x39e921['push'](_0x39e921['shift']());}catch(_0xc2f850){_0x39e921['push'](_0x39e921['shift']());}}}(a82_0x55b9,0x8ce2b));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a82_0x12ef(_0x221cd7,_0xe68aae){_0x221cd7=_0x221cd7-0x6d;const _0x55b92b=a82_0x55b9();let _0x12ef42=_0x55b92b[_0x221cd7];return _0x12ef42;}export function getCliGitCommit(){const _0x2f3509=a82_0x12ef,_0x5e90cc=String(GIT_COMMIT);return _0x5e90cc&&_0x5e90cc!==_0x2f3509(0x6e)?_0x5e90cc:'';}export function getCliVersionDisplay(){const _0x21deae=a82_0x12ef,_0x4aed6c=getCliGitCommit(),_0x59f902=BUILD_TIME[_0x21deae(0x73)](0x0,0xa);if(!_0x4aed6c||!_0x59f902)return VERSION;return VERSION+'\x20('+_0x4aed6c+',\x20'+_0x59f902+')';}function a82_0x55b9(){const _0x49e72b=['4636295jExoJs','664328iHWrUM','894420TEPxHw','704394TGSCKr','slice','19240548jkqSfY','489288JmoOYL','133870RPGcGf','4WRBgMh','4nSzYPU','100fCmqzt','28UFSQUX','11yZQkPW','unknown'];a82_0x55b9=function(){return _0x49e72b;};return a82_0x55b9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x1407(){var _0x10da89=['21149919pmoPDi','372330rSjAox','stderr','4491490gnvVso','1577049yYkefM','6329208TcxITI','write','2371640qDPbFF','2827408biRrbi'];a83_0x1407=function(){return _0x10da89;};return a83_0x1407();}(function(_0x2b38d0,_0x42b9ab){var _0x5f03d2=a83_0x12fb,_0xe0ee94=_0x2b38d0();while(!![]){try{var _0x39ffad=-parseInt(_0x5f03d2(0x12f))/0x1+parseInt(_0x5f03d2(0x135))/0x2+-parseInt(_0x5f03d2(0x132))/0x3+-parseInt(_0x5f03d2(0x12d))/0x4+-parseInt(_0x5f03d2(0x131))/0x5+-parseInt(_0x5f03d2(0x133))/0x6+parseInt(_0x5f03d2(0x12e))/0x7;if(_0x39ffad===_0x42b9ab)break;else _0xe0ee94['push'](_0xe0ee94['shift']());}catch(_0x134706){_0xe0ee94['push'](_0xe0ee94['shift']());}}}(a83_0x1407,0x9e7f6));function a83_0x12fb(_0x2f1cc1,_0x50c71a){_0x2f1cc1=_0x2f1cc1-0x12d;var _0x1407ee=a83_0x1407();var _0x12fb6e=_0x1407ee[_0x2f1cc1];return _0x12fb6e;}export function writeCliSideChannelLine(_0x2a1427){var _0x1c64ca=a83_0x12fb;process[_0x1c64ca(0x130)][_0x1c64ca(0x134)](_0x2a1427+'\x0a');}
|