@lovrabet/lovrabet-cli 2.1.0 → 2.1.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/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 a81_0x1ea5(_0xfc4f2a,_0x5276bb){_0xfc4f2a=_0xfc4f2a-0x12b;const _0x500080=a81_0x5000();let _0x1ea512=_0x500080[_0xfc4f2a];return _0x1ea512;}(function(_0x568d13,_0x1d9ab1){const _0x23835e=a81_0x1ea5,_0x49d12e=_0x568d13();while(!![]){try{const _0x30d5ca=parseInt(_0x23835e(0x13c))/0x1*(parseInt(_0x23835e(0x141))/0x2)+-parseInt(_0x23835e(0x138))/0x3*(parseInt(_0x23835e(0x12d))/0x4)+-parseInt(_0x23835e(0x13f))/0x5+-parseInt(_0x23835e(0x130))/0x6*(-parseInt(_0x23835e(0x147))/0x7)+-parseInt(_0x23835e(0x12e))/0x8*(parseInt(_0x23835e(0x156))/0x9)+parseInt(_0x23835e(0x143))/0xa*(-parseInt(_0x23835e(0x12f))/0xb)+parseInt(_0x23835e(0x132))/0xc*(parseInt(_0x23835e(0x148))/0xd);if(_0x30d5ca===_0x1d9ab1)break;else _0x49d12e['push'](_0x49d12e['shift']());}catch(_0x29bea2){_0x49d12e['push'](_0x49d12e['shift']());}}}(a81_0x5000,0x8f64a));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(_0x2ed9f4){const _0x582dbd=a81_0x1ea5,_0x4e3bec=_0x2ed9f4[_0x582dbd(0x146)]()[_0x582dbd(0x157)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4e3bec)return null;return{'major':Number(_0x4e3bec[0x1]),'minor':Number(_0x4e3bec[0x2]),'patch':Number(_0x4e3bec[0x3]),'prerelease':_0x4e3bec[0x4]};}function compareSemver(_0x7ba5ff,_0x24c8ff){const _0xbc3a31=a81_0x1ea5,_0x2b6dc5=parseSemver(_0x7ba5ff),_0x53950f=parseSemver(_0x24c8ff);if(!_0x2b6dc5||!_0x53950f)throw new Error(_0xbc3a31(0x142));for(const _0x594570 of[_0xbc3a31(0x151),_0xbc3a31(0x137),_0xbc3a31(0x14d)]){if(_0x2b6dc5[_0x594570]<_0x53950f[_0x594570])return-0x1;if(_0x2b6dc5[_0x594570]>_0x53950f[_0x594570])return 0x1;}if(!_0x2b6dc5[_0xbc3a31(0x13d)]&&!_0x53950f['prerelease'])return 0x0;if(!_0x2b6dc5['prerelease'])return 0x1;if(!_0x53950f['prerelease'])return-0x1;if(_0x2b6dc5[_0xbc3a31(0x13d)]===_0x53950f[_0xbc3a31(0x13d)])return 0x0;return _0x2b6dc5[_0xbc3a31(0x13d)]<_0x53950f[_0xbc3a31(0x13d)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x565b93=a81_0x1ea5,_0x2f5fb9=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x565b93(0x146)]()[_0x565b93(0x13b)]();return _0x2f5fb9==='1'||_0x2f5fb9==='true'||_0x2f5fb9===_0x565b93(0x13e);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x205371=a81_0x1ea5;return join(cacheRoot(),_0x205371(0x14c),_0x205371(0x13a));}function a81_0x5000(){const _0x4b3492=['json','https://www.npmjs.com/package/','333jlPfMF','match','map','now','4QEeQpe','126632ByfUhx','11vCaCFk','943518zONgYp','checkedAt','19593996YHjsHJ','timeout','\x20update','/v/','latest','minor','1028151nOBgXL','lastNotifiedAt','update-check.json','toLowerCase','392FGHTnc','prerelease','yes','5482470IbiKuS','filter','1544fGmxPg','Invalid\x20semver','11133210UgAebJ','utf8','number','trim','7BdCDtb','26OKrFww','/-/package/','string','stringify','lovrabet-cli','patch','\x20available,\x20current\x20',',\x20run:\x20','/dist-tags','major','entries','object'];a81_0x5000=function(){return _0x4b3492;};return a81_0x5000();}async function readUpdateNoticeCache(){try{const _0x3fc03a=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3f019e=JSON['parse'](_0x3fc03a);if(!_0x3f019e||typeof _0x3f019e!=='object')return{};return _0x3f019e;}catch{return{};}}async function writeUpdateNoticeCache(_0x13c8b5){const _0x65c337=a81_0x1ea5;try{const _0x88160d=getUpdateNoticeCachePath();await mkdir(dirname(_0x88160d),{'recursive':!![]}),await writeFile(_0x88160d,JSON[_0x65c337(0x14b)](_0x13c8b5,null,0x2)+'\x0a',_0x65c337(0x144));}catch{}}function isFreshCheck(_0x3b2fce,_0x25b681){const _0xac8fd1=a81_0x1ea5;return typeof _0x3b2fce['checkedAt']===_0xac8fd1(0x145)&&_0x25b681-_0x3b2fce[_0xac8fd1(0x131)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x468912,_0x2ef488,_0x1e3601){const _0x1ce5eb=a81_0x1ea5;return _0x468912['lastNotifiedVersion']===_0x2ef488&&typeof _0x468912[_0x1ce5eb(0x139)]===_0x1ce5eb(0x145)&&_0x1e3601-_0x468912['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x49f964=0x5dc){const _0x49399b=a81_0x1ea5;try{const _0x47f79d=NPM_REGISTRY_BASE_URL+_0x49399b(0x149)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x49399b(0x150),_0x304e56=await fetch(_0x47f79d,{'signal':AbortSignal[_0x49399b(0x133)](_0x49f964)});if(!_0x304e56['ok'])return null;const _0x3a88c0=await _0x304e56[_0x49399b(0x154)]();if(!_0x3a88c0||typeof _0x3a88c0!==_0x49399b(0x153))return null;return Object['fromEntries'](Object[_0x49399b(0x152)](_0x3a88c0)[_0x49399b(0x140)](([,_0x59b0ad])=>typeof _0x59b0ad===_0x49399b(0x14a)&&_0x59b0ad[_0x49399b(0x146)]())[_0x49399b(0x12b)](([_0x565a48,_0x79258b])=>[_0x565a48,String(_0x79258b)[_0x49399b(0x146)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x231991){const _0x3df51b=a81_0x1ea5;return _0x3df51b(0x155)+LOVRABET_NPM_PACKAGE_NAME+_0x3df51b(0x135)+_0x231991;}export async function resolveLatestUpdateNotice(){const _0x278f32=a81_0x1ea5;if(isUpdateNoticeDisabled())return null;try{const _0x539ddb=Date[_0x278f32(0x12c)](),_0x3ef7ab=getCliVersion(),_0x568515=await readUpdateNoticeCache();let _0x8f2176=isFreshCheck(_0x568515,_0x539ddb)?_0x568515[_0x278f32(0x136)]?.['trim']():undefined;if(!_0x8f2176&&!isFreshCheck(_0x568515,_0x539ddb)){const _0xc12470=await fetchNpmDistTags();_0x8f2176=_0xc12470?.[_0x278f32(0x136)]?.['trim'](),await writeUpdateNoticeCache({..._0x568515,'checkedAt':_0x539ddb,'latest':_0x8f2176,'failed':!_0x8f2176});}if(!_0x8f2176||compareSemver(_0x3ef7ab,_0x8f2176)>=0x0)return null;if(isRecentlyNotified(_0x568515,_0x8f2176,_0x539ddb))return null;const _0x133c5f=CLI_BIN_NAME+_0x278f32(0x134);return await writeUpdateNoticeCache({..._0x568515,'checkedAt':isFreshCheck(_0x568515,_0x539ddb)?_0x568515['checkedAt']:_0x539ddb,'latest':_0x8f2176,'failed':![],'lastNotifiedVersion':_0x8f2176,'lastNotifiedAt':_0x539ddb}),{'command':_0x133c5f,'current':_0x3ef7ab,'latest':_0x8f2176,'url':buildNpmVersionUrl(_0x8f2176),'message':CLI_BIN_NAME+'\x20'+_0x8f2176+_0x278f32(0x14e)+_0x3ef7ab+_0x278f32(0x14f)+_0x133c5f};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3be782,_0x41eda0){const _0x1767a5=a82_0x4bce,_0x43fdf6=_0x3be782();while(!![]){try{const _0x1e94fb=parseInt(_0x1767a5(0xb9))/0x1*(-parseInt(_0x1767a5(0xba))/0x2)+-parseInt(_0x1767a5(0xb7))/0x3+parseInt(_0x1767a5(0xb4))/0x4+parseInt(_0x1767a5(0xb3))/0x5+-parseInt(_0x1767a5(0xb5))/0x6+-parseInt(_0x1767a5(0xbb))/0x7+parseInt(_0x1767a5(0xb8))/0x8;if(_0x1e94fb===_0x41eda0)break;else _0x43fdf6['push'](_0x43fdf6['shift']());}catch(_0x4267d5){_0x43fdf6['push'](_0x43fdf6['shift']());}}}(a82_0x542f,0xdcad0));function a82_0x4bce(_0x1df5b3,_0x5a5d72){_0x1df5b3=_0x1df5b3-0xb3;const _0x542f06=a82_0x542f();let _0x4bce2f=_0x542f06[_0x1df5b3];return _0x4bce2f;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4fde14=String(GIT_COMMIT);return _0x4fde14&&_0x4fde14!=='unknown'?_0x4fde14:'';}export function getCliVersionDisplay(){const _0x44622e=a82_0x4bce,_0x16ec8e=getCliGitCommit(),_0x6c820f=BUILD_TIME[_0x44622e(0xb6)](0x0,0xa);if(!_0x16ec8e||!_0x6c820f)return VERSION;return VERSION+'\x20('+_0x16ec8e+',\x20'+_0x6c820f+')';}function a82_0x542f(){const _0x34cec2=['5116230GnwHDf','5808612YkCHwT','10329594syWjou','slice','4838823TspITR','26103744AwOjbs','414FidhEn','1286XIcpEs','8636159LALFQf'];a82_0x542f=function(){return _0x34cec2;};return a82_0x542f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x1897(_0x18da8a,_0x1b39fe){_0x18da8a=_0x18da8a-0xb2;var _0x406c40=a83_0x406c();var _0x18976d=_0x406c40[_0x18da8a];return _0x18976d;}(function(_0x429526,_0x468c04){var _0x53c24d=a83_0x1897,_0x521005=_0x429526();while(!![]){try{var _0x55595e=parseInt(_0x53c24d(0xbe))/0x1*(parseInt(_0x53c24d(0xbb))/0x2)+-parseInt(_0x53c24d(0xb6))/0x3*(-parseInt(_0x53c24d(0xb9))/0x4)+parseInt(_0x53c24d(0xb2))/0x5+parseInt(_0x53c24d(0xb7))/0x6+parseInt(_0x53c24d(0xbd))/0x7*(-parseInt(_0x53c24d(0xb3))/0x8)+parseInt(_0x53c24d(0xb5))/0x9+parseInt(_0x53c24d(0xb4))/0xa*(-parseInt(_0x53c24d(0xbc))/0xb);if(_0x55595e===_0x468c04)break;else _0x521005['push'](_0x521005['shift']());}catch(_0x369ccc){_0x521005['push'](_0x521005['shift']());}}}(a83_0x406c,0xce7de));export function writeCliSideChannelLine(_0x58f3ae){var _0x4adf78=a83_0x1897;process[_0x4adf78(0xba)][_0x4adf78(0xb8)](_0x58f3ae+'\x0a');}function a83_0x406c(){var _0x576f88=['36786GdEhWu','66845bYtUrP','616792NDatsV','121270EUzGke','2392902Juhhea','4075056pEDXdN','4420530iQjDMt','write','4rUUDgD','stderr','2toFLJg','231vmJIAX','119VASDzX'];a83_0x406c=function(){return _0x576f88;};return a83_0x406c();}
|