@lovrabet/lovrabet-cli 2.0.14-beta.2 → 2.0.14-beta.4
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/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/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/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/config/schema.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(_0x55d3e3,_0x374e93){const _0x8d5075=a74_0xbf4a,_0x39a37c=_0x55d3e3();while(!![]){try{const _0x451a73=parseInt(_0x8d5075(0x1c3))/0x1+-parseInt(_0x8d5075(0x1e8))/0x2+-parseInt(_0x8d5075(0x1c5))/0x3*(parseInt(_0x8d5075(0x1c1))/0x4)+parseInt(_0x8d5075(0x1e4))/0x5+parseInt(_0x8d5075(0x1ce))/0x6+-parseInt(_0x8d5075(0x1d9))/0x7+parseInt(_0x8d5075(0x1d1))/0x8*(-parseInt(_0x8d5075(0x1c4))/0x9);if(_0x451a73===_0x374e93)break;else _0x39a37c['push'](_0x39a37c['shift']());}catch(_0x464112){_0x39a37c['push'](_0x39a37c['shift']());}}}(a74_0x40ba,0xe7a9f));import{mkdir,readFile,writeFile}from'node:fs/promises';function a74_0xbf4a(_0x2f16ed,_0x423535){_0x2f16ed=_0x2f16ed-0x1c1;const _0x40bac3=a74_0x40ba();let _0xbf4abf=_0x40bac3[_0x2f16ed];return _0xbf4abf;}import{homedir}from'node:os';import{dirname,join}from'node:path';function a74_0x40ba(){const _0xbf3b0c=['1705808tSxgNG','2367gYWOUZ','32742JoVVDn','update-check.json','yes','true','checkedAt','trim','.cache','/-/package/','/dist-tags','4979544CTAxrB','\x20available,\x20current\x20','prerelease','4536PYtglT','lastNotifiedVersion','toLowerCase','https://www.npmjs.com/package/','parse','json','entries','object','5471109kmEUrW','minor','Invalid\x20semver','now','patch','/v/','lastNotifiedAt','match','stringify','filter','latest','2699410fFTCAj','number','map','utf8','274706DqMwjC','388jIBPaK','major'];a74_0x40ba=function(){return _0xbf3b0c;};return a74_0x40ba();}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(_0x29bb6d){const _0x4b2600=a74_0xbf4a,_0x214a3a=_0x29bb6d[_0x4b2600(0x1ca)]()[_0x4b2600(0x1e0)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x214a3a)return null;return{'major':Number(_0x214a3a[0x1]),'minor':Number(_0x214a3a[0x2]),'patch':Number(_0x214a3a[0x3]),'prerelease':_0x214a3a[0x4]};}function compareSemver(_0x2c9802,_0x513b8f){const _0x2f18c4=a74_0xbf4a,_0x30582e=parseSemver(_0x2c9802),_0x1346f3=parseSemver(_0x513b8f);if(!_0x30582e||!_0x1346f3)throw new Error(_0x2f18c4(0x1db));for(const _0x32eb44 of[_0x2f18c4(0x1c2),_0x2f18c4(0x1da),_0x2f18c4(0x1dd)]){if(_0x30582e[_0x32eb44]<_0x1346f3[_0x32eb44])return-0x1;if(_0x30582e[_0x32eb44]>_0x1346f3[_0x32eb44])return 0x1;}if(!_0x30582e['prerelease']&&!_0x1346f3['prerelease'])return 0x0;if(!_0x30582e['prerelease'])return 0x1;if(!_0x1346f3['prerelease'])return-0x1;if(_0x30582e[_0x2f18c4(0x1d0)]===_0x1346f3['prerelease'])return 0x0;return _0x30582e[_0x2f18c4(0x1d0)]<_0x1346f3['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x2b374e=a74_0xbf4a,_0x1a8506=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x2b374e(0x1ca)]()[_0x2b374e(0x1d3)]();return _0x1a8506==='1'||_0x1a8506===_0x2b374e(0x1c8)||_0x1a8506===_0x2b374e(0x1c7);}function cacheRoot(){const _0x4e3de6=a74_0xbf4a;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4e3de6(0x1cb));}export function getUpdateNoticeCachePath(){const _0x23fdf3=a74_0xbf4a;return join(cacheRoot(),'lovrabet-cli',_0x23fdf3(0x1c6));}async function readUpdateNoticeCache(){const _0xab4dae=a74_0xbf4a;try{const _0x153e7a=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x5357b8=JSON[_0xab4dae(0x1d5)](_0x153e7a);if(!_0x5357b8||typeof _0x5357b8!==_0xab4dae(0x1d8))return{};return _0x5357b8;}catch{return{};}}async function writeUpdateNoticeCache(_0x2745ae){const _0x4d6261=a74_0xbf4a;try{const _0x2e6956=getUpdateNoticeCachePath();await mkdir(dirname(_0x2e6956),{'recursive':!![]}),await writeFile(_0x2e6956,JSON[_0x4d6261(0x1e1)](_0x2745ae,null,0x2)+'\x0a',_0x4d6261(0x1e7));}catch{}}function isFreshCheck(_0x3aa2dd,_0x3618c7){const _0x566f9d=a74_0xbf4a;return typeof _0x3aa2dd[_0x566f9d(0x1c9)]==='number'&&_0x3618c7-_0x3aa2dd[_0x566f9d(0x1c9)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xc74c93,_0x381898,_0x36c6ec){const _0x10ec49=a74_0xbf4a;return _0xc74c93[_0x10ec49(0x1d2)]===_0x381898&&typeof _0xc74c93[_0x10ec49(0x1df)]===_0x10ec49(0x1e5)&&_0x36c6ec-_0xc74c93[_0x10ec49(0x1df)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x2fc760=0x5dc){const _0x4432bb=a74_0xbf4a;try{const _0x10b1b7=NPM_REGISTRY_BASE_URL+_0x4432bb(0x1cc)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x4432bb(0x1cd),_0x3a72a8=await fetch(_0x10b1b7,{'signal':AbortSignal['timeout'](_0x2fc760)});if(!_0x3a72a8['ok'])return null;const _0x301a0b=await _0x3a72a8[_0x4432bb(0x1d6)]();if(!_0x301a0b||typeof _0x301a0b!=='object')return null;return Object['fromEntries'](Object[_0x4432bb(0x1d7)](_0x301a0b)[_0x4432bb(0x1e2)](([,_0x32c19a])=>typeof _0x32c19a==='string'&&_0x32c19a[_0x4432bb(0x1ca)]())[_0x4432bb(0x1e6)](([_0x6fe8e7,_0x8145cf])=>[_0x6fe8e7,String(_0x8145cf)[_0x4432bb(0x1ca)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x5a7840){const _0x10b6f6=a74_0xbf4a;return _0x10b6f6(0x1d4)+LOVRABET_NPM_PACKAGE_NAME+_0x10b6f6(0x1de)+_0x5a7840;}export async function resolveLatestUpdateNotice(){const _0x35d99f=a74_0xbf4a;if(isUpdateNoticeDisabled())return null;try{const _0xafd789=Date[_0x35d99f(0x1dc)](),_0x54149b=getCliVersion(),_0x59b925=await readUpdateNoticeCache();let _0x555e2a=isFreshCheck(_0x59b925,_0xafd789)?_0x59b925[_0x35d99f(0x1e3)]?.['trim']():undefined;if(!_0x555e2a&&!isFreshCheck(_0x59b925,_0xafd789)){const _0x311d33=await fetchNpmDistTags();_0x555e2a=_0x311d33?.[_0x35d99f(0x1e3)]?.['trim'](),await writeUpdateNoticeCache({..._0x59b925,'checkedAt':_0xafd789,'latest':_0x555e2a,'failed':!_0x555e2a});}if(!_0x555e2a||compareSemver(_0x54149b,_0x555e2a)>=0x0)return null;if(isRecentlyNotified(_0x59b925,_0x555e2a,_0xafd789))return null;const _0x405b7b=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x59b925,'checkedAt':isFreshCheck(_0x59b925,_0xafd789)?_0x59b925[_0x35d99f(0x1c9)]:_0xafd789,'latest':_0x555e2a,'failed':![],'lastNotifiedVersion':_0x555e2a,'lastNotifiedAt':_0xafd789}),{'command':_0x405b7b,'current':_0x54149b,'latest':_0x555e2a,'url':buildNpmVersionUrl(_0x555e2a),'message':CLI_BIN_NAME+'\x20'+_0x555e2a+_0x35d99f(0x1cf)+_0x54149b+',\x20run:\x20'+_0x405b7b};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3343c0,_0x142c90){const _0x5be29d=a75_0x32d7,_0x27e18b=_0x3343c0();while(!![]){try{const _0x273f04=parseInt(_0x5be29d(0xb7))/0x1*(parseInt(_0x5be29d(0xbf))/0x2)+-parseInt(_0x5be29d(0xb6))/0x3*(parseInt(_0x5be29d(0xba))/0x4)+parseInt(_0x5be29d(0xbb))/0x5+parseInt(_0x5be29d(0xb8))/0x6+parseInt(_0x5be29d(0xbe))/0x7+-parseInt(_0x5be29d(0xbd))/0x8+parseInt(_0x5be29d(0xb5))/0x9;if(_0x273f04===_0x142c90)break;else _0x27e18b['push'](_0x27e18b['shift']());}catch(_0x5e0d19){_0x27e18b['push'](_0x27e18b['shift']());}}}(a75_0x3398,0xbc700));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a75_0x3398(){const _0x567adb=['3EmcBgi','1qKWspG','2793060CEbppE','slice','5728476WaVYJq','3231205JcaDvv','unknown','4270352WhigoK','1389836LjoGow','2455538qYLecw','1797165JGWPJK'];a75_0x3398=function(){return _0x567adb;};return a75_0x3398();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x5744d7=a75_0x32d7,_0x57d238=String(GIT_COMMIT);return _0x57d238&&_0x57d238!==_0x5744d7(0xbc)?_0x57d238:'';}function a75_0x32d7(_0x27c89c,_0x33e879){_0x27c89c=_0x27c89c-0xb5;const _0x33989c=a75_0x3398();let _0x32d741=_0x33989c[_0x27c89c];return _0x32d741;}export function getCliVersionDisplay(){const _0x7800ab=a75_0x32d7,_0x16fbd8=getCliGitCommit(),_0x51502e=BUILD_TIME[_0x7800ab(0xb9)](0x0,0xa);if(!_0x16fbd8||!_0x51502e)return VERSION;return VERSION+'\x20('+_0x16fbd8+',\x20'+_0x51502e+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19ab6e,_0x141885){var _0x59ae33=a76_0x89d1,_0x2987d8=_0x19ab6e();while(!![]){try{var _0x2dfc70=parseInt(_0x59ae33(0x67))/0x1+parseInt(_0x59ae33(0x70))/0x2*(-parseInt(_0x59ae33(0x66))/0x3)+parseInt(_0x59ae33(0x69))/0x4+-parseInt(_0x59ae33(0x68))/0x5*(-parseInt(_0x59ae33(0x6c))/0x6)+parseInt(_0x59ae33(0x6d))/0x7*(parseInt(_0x59ae33(0x71))/0x8)+parseInt(_0x59ae33(0x6e))/0x9*(-parseInt(_0x59ae33(0x6f))/0xa)+-parseInt(_0x59ae33(0x6a))/0xb;if(_0x2dfc70===_0x141885)break;else _0x2987d8['push'](_0x2987d8['shift']());}catch(_0x130c0d){_0x2987d8['push'](_0x2987d8['shift']());}}}(a76_0x1741,0xb6732));export function writeCliSideChannelLine(_0x5f1fe0){var _0x209edb=a76_0x89d1;process[_0x209edb(0x6b)]['write'](_0x5f1fe0+'\x0a');}function a76_0x89d1(_0x233ab4,_0xd85f84){_0x233ab4=_0x233ab4-0x66;var _0x1741bb=a76_0x1741();var _0x89d12c=_0x1741bb[_0x233ab4];return _0x89d12c;}function a76_0x1741(){var _0x11a08a=['10054737EVKmFP','10cZXZyU','6xioijt','500984fzJTWy','1264413GQhQgE','589360thhOZT','140IANokh','163356WAYXkL','2272963qVJUHW','stderr','284496qkKVnf','154FCjZaK'];a76_0x1741=function(){return _0x11a08a;};return a76_0x1741();}
|