@lovrabet/lovrabet-cli 2.1.1 → 2.1.2-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/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
|
-
|
|
1
|
+
(function(_0x1d4573,_0x18a4b6){const _0x57b284=a81_0x2c43,_0x1c69e6=_0x1d4573();while(!![]){try{const _0x117359=-parseInt(_0x57b284(0xac))/0x1+-parseInt(_0x57b284(0xbb))/0x2+-parseInt(_0x57b284(0xa5))/0x3+-parseInt(_0x57b284(0xb1))/0x4+parseInt(_0x57b284(0xa7))/0x5*(-parseInt(_0x57b284(0x9f))/0x6)+-parseInt(_0x57b284(0xab))/0x7+-parseInt(_0x57b284(0xa0))/0x8*(-parseInt(_0x57b284(0x9e))/0x9);if(_0x117359===_0x18a4b6)break;else _0x1c69e6['push'](_0x1c69e6['shift']());}catch(_0x45bea2){_0x1c69e6['push'](_0x1c69e6['shift']());}}}(a81_0x4c3b,0x465e4));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_0x4c3b(){const _0x3f0cd7=['timeout','475798qGNQPw','utf8','/-/package/','map','fromEntries','latest','https://www.npmjs.com/package/','match','parse','lastNotifiedAt','21224169YGsfzU','2703504ZnrYjF','8kOtpIf','now','trim','\x20update',',\x20run:\x20','246030pXcnGg','number','5keuFhI','filter','minor','lastNotifiedVersion','3100594kJeybr','537802EDzJHH','/dist-tags','patch','toLowerCase','.cache','1275104PnYack','prerelease','major','json','Invalid\x20semver','lovrabet-cli','checkedAt','object','true'];a81_0x4c3b=function(){return _0x3f0cd7;};return a81_0x4c3b();}function parseSemver(_0xb8e154){const _0x4709f5=a81_0x2c43,_0x151cfb=_0xb8e154[_0x4709f5(0xa2)]()[_0x4709f5(0x9b)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x151cfb)return null;return{'major':Number(_0x151cfb[0x1]),'minor':Number(_0x151cfb[0x2]),'patch':Number(_0x151cfb[0x3]),'prerelease':_0x151cfb[0x4]};}function compareSemver(_0x5c24ae,_0x2dad89){const _0x2865b4=a81_0x2c43,_0x21f4cc=parseSemver(_0x5c24ae),_0xff78fd=parseSemver(_0x2dad89);if(!_0x21f4cc||!_0xff78fd)throw new Error(_0x2865b4(0xb5));for(const _0x4cae2e of[_0x2865b4(0xb3),_0x2865b4(0xa9),_0x2865b4(0xae)]){if(_0x21f4cc[_0x4cae2e]<_0xff78fd[_0x4cae2e])return-0x1;if(_0x21f4cc[_0x4cae2e]>_0xff78fd[_0x4cae2e])return 0x1;}if(!_0x21f4cc['prerelease']&&!_0xff78fd['prerelease'])return 0x0;if(!_0x21f4cc[_0x2865b4(0xb2)])return 0x1;if(!_0xff78fd['prerelease'])return-0x1;if(_0x21f4cc['prerelease']===_0xff78fd[_0x2865b4(0xb2)])return 0x0;return _0x21f4cc['prerelease']<_0xff78fd[_0x2865b4(0xb2)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5bcc2d=a81_0x2c43,_0xc0cd67=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5bcc2d(0xa2)]()[_0x5bcc2d(0xaf)]();return _0xc0cd67==='1'||_0xc0cd67===_0x5bcc2d(0xb9)||_0xc0cd67==='yes';}function cacheRoot(){const _0x5164a0=a81_0x2c43;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5164a0(0xb0));}export function getUpdateNoticeCachePath(){const _0x3c316b=a81_0x2c43;return join(cacheRoot(),_0x3c316b(0xb6),'update-check.json');}async function readUpdateNoticeCache(){const _0xd1ac2b=a81_0x2c43;try{const _0x143690=await readFile(getUpdateNoticeCachePath(),_0xd1ac2b(0xbc)),_0x441158=JSON[_0xd1ac2b(0x9c)](_0x143690);if(!_0x441158||typeof _0x441158!==_0xd1ac2b(0xb8))return{};return _0x441158;}catch{return{};}}async function writeUpdateNoticeCache(_0x3c3315){const _0x60257a=a81_0x2c43;try{const _0x3a5c87=getUpdateNoticeCachePath();await mkdir(dirname(_0x3a5c87),{'recursive':!![]}),await writeFile(_0x3a5c87,JSON['stringify'](_0x3c3315,null,0x2)+'\x0a',_0x60257a(0xbc));}catch{}}function isFreshCheck(_0x493d78,_0x2907dc){const _0xc8ec8d=a81_0x2c43;return typeof _0x493d78[_0xc8ec8d(0xb7)]===_0xc8ec8d(0xa6)&&_0x2907dc-_0x493d78['checkedAt']<UPDATE_CHECK_TTL_MS;}function a81_0x2c43(_0x3c7373,_0x2ee7e4){_0x3c7373=_0x3c7373-0x99;const _0x4c3b17=a81_0x4c3b();let _0x2c43e5=_0x4c3b17[_0x3c7373];return _0x2c43e5;}function isRecentlyNotified(_0x210487,_0xf2bf88,_0x5038bb){const _0x3abc41=a81_0x2c43;return _0x210487[_0x3abc41(0xaa)]===_0xf2bf88&&typeof _0x210487[_0x3abc41(0x9d)]===_0x3abc41(0xa6)&&_0x5038bb-_0x210487[_0x3abc41(0x9d)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x22a435=0x5dc){const _0x3143a1=a81_0x2c43;try{const _0x4eac28=NPM_REGISTRY_BASE_URL+_0x3143a1(0xbd)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3143a1(0xad),_0x1e9100=await fetch(_0x4eac28,{'signal':AbortSignal[_0x3143a1(0xba)](_0x22a435)});if(!_0x1e9100['ok'])return null;const _0x57bd4c=await _0x1e9100[_0x3143a1(0xb4)]();if(!_0x57bd4c||typeof _0x57bd4c!=='object')return null;return Object[_0x3143a1(0xbf)](Object['entries'](_0x57bd4c)[_0x3143a1(0xa8)](([,_0x39404a])=>typeof _0x39404a==='string'&&_0x39404a[_0x3143a1(0xa2)]())[_0x3143a1(0xbe)](([_0x504252,_0x2a291c])=>[_0x504252,String(_0x2a291c)['trim']()]));}catch{return null;}}export function buildNpmVersionUrl(_0x10f476){const _0x3f0c6a=a81_0x2c43;return _0x3f0c6a(0x9a)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x10f476;}export async function resolveLatestUpdateNotice(){const _0x59eae0=a81_0x2c43;if(isUpdateNoticeDisabled())return null;try{const _0x7d664e=Date[_0x59eae0(0xa1)](),_0xa5c904=getCliVersion(),_0x17ec8f=await readUpdateNoticeCache();let _0x23dc57=isFreshCheck(_0x17ec8f,_0x7d664e)?_0x17ec8f[_0x59eae0(0x99)]?.[_0x59eae0(0xa2)]():undefined;if(!_0x23dc57&&!isFreshCheck(_0x17ec8f,_0x7d664e)){const _0x2da91a=await fetchNpmDistTags();_0x23dc57=_0x2da91a?.['latest']?.[_0x59eae0(0xa2)](),await writeUpdateNoticeCache({..._0x17ec8f,'checkedAt':_0x7d664e,'latest':_0x23dc57,'failed':!_0x23dc57});}if(!_0x23dc57||compareSemver(_0xa5c904,_0x23dc57)>=0x0)return null;if(isRecentlyNotified(_0x17ec8f,_0x23dc57,_0x7d664e))return null;const _0x533484=CLI_BIN_NAME+_0x59eae0(0xa3);return await writeUpdateNoticeCache({..._0x17ec8f,'checkedAt':isFreshCheck(_0x17ec8f,_0x7d664e)?_0x17ec8f[_0x59eae0(0xb7)]:_0x7d664e,'latest':_0x23dc57,'failed':![],'lastNotifiedVersion':_0x23dc57,'lastNotifiedAt':_0x7d664e}),{'command':_0x533484,'current':_0xa5c904,'latest':_0x23dc57,'url':buildNpmVersionUrl(_0x23dc57),'message':CLI_BIN_NAME+'\x20'+_0x23dc57+'\x20available,\x20current\x20'+_0xa5c904+_0x59eae0(0xa4)+_0x533484};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a82_0xdb1c(){const _0x462f0c=['21395sEPLkG','55476SnEqpt','74cdVKjx','522495olGeas','4aKteVz','832FoGMXC','12770ZoQaFG','794877UOaZeT','1386726Aotpwf','7620SWFnik','slice','6897730xqSOjn','7wBVcdP'];a82_0xdb1c=function(){return _0x462f0c;};return a82_0xdb1c();}(function(_0x3e5772,_0x145658){const _0x29f5aa=a82_0x2519,_0x559b05=_0x3e5772();while(!![]){try{const _0x559e9d=parseInt(_0x29f5aa(0xdc))/0x1*(-parseInt(_0x29f5aa(0xd3))/0x2)+-parseInt(_0x29f5aa(0xd4))/0x3*(parseInt(_0x29f5aa(0xde))/0x4)+parseInt(_0x29f5aa(0xdd))/0x5+parseInt(_0x29f5aa(0xd5))/0x6*(-parseInt(_0x29f5aa(0xd9))/0x7)+parseInt(_0x29f5aa(0xd2))/0x8*(-parseInt(_0x29f5aa(0xdb))/0x9)+parseInt(_0x29f5aa(0xd8))/0xa+-parseInt(_0x29f5aa(0xda))/0xb*(-parseInt(_0x29f5aa(0xd6))/0xc);if(_0x559e9d===_0x145658)break;else _0x559b05['push'](_0x559b05['shift']());}catch(_0x122a57){_0x559b05['push'](_0x559b05['shift']());}}}(a82_0xdb1c,0x66789));function a82_0x2519(_0x522742,_0x370f09){_0x522742=_0x522742-0xd2;const _0xdb1ca0=a82_0xdb1c();let _0x251915=_0xdb1ca0[_0x522742];return _0x251915;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x3ac5e3=String(GIT_COMMIT);return _0x3ac5e3&&_0x3ac5e3!=='unknown'?_0x3ac5e3:'';}export function getCliVersionDisplay(){const _0x2047fe=a82_0x2519,_0x1c980a=getCliGitCommit(),_0x895d84=BUILD_TIME[_0x2047fe(0xd7)](0x0,0xa);if(!_0x1c980a||!_0x895d84)return VERSION;return VERSION+'\x20('+_0x1c980a+',\x20'+_0x895d84+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12c175,_0x3a641d){var _0x472b5b=a83_0x50ca,_0x3d4b18=_0x12c175();while(!![]){try{var _0x2fcb38=parseInt(_0x472b5b(0x183))/0x1+-parseInt(_0x472b5b(0x184))/0x2*(parseInt(_0x472b5b(0x182))/0x3)+parseInt(_0x472b5b(0x17f))/0x4*(-parseInt(_0x472b5b(0x17a))/0x5)+-parseInt(_0x472b5b(0x181))/0x6+-parseInt(_0x472b5b(0x185))/0x7+parseInt(_0x472b5b(0x17d))/0x8*(parseInt(_0x472b5b(0x17c))/0x9)+parseInt(_0x472b5b(0x17b))/0xa*(parseInt(_0x472b5b(0x180))/0xb);if(_0x2fcb38===_0x3a641d)break;else _0x3d4b18['push'](_0x3d4b18['shift']());}catch(_0x2763a1){_0x3d4b18['push'](_0x3d4b18['shift']());}}}(a83_0x2af6,0x5f0a3));function a83_0x50ca(_0x465800,_0x305de6){_0x465800=_0x465800-0x17a;var _0x2af63c=a83_0x2af6();var _0x50cad8=_0x2af63c[_0x465800];return _0x50cad8;}export function writeCliSideChannelLine(_0x5353fc){var _0x143464=a83_0x50ca;process[_0x143464(0x17e)]['write'](_0x5353fc+'\x0a');}function a83_0x2af6(){var _0x2315bb=['43258pLAmuL','4110246FgVnZN','365FuNijv','780fUKqZK','99UoRqMP','88952eanruO','stderr','39860TttRUI','262691qbwykG','70524wWbdGT','81ArtBYL','314616KJQgFK'];a83_0x2af6=function(){return _0x2315bb;};return a83_0x2af6();}
|