@lovrabet/lovrabet-cli 2.1.0-beta.1 → 2.1.0-beta.2
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(_0x441bc2,_0x28fa69){const _0x307193=a81_0x3131,_0x4766e5=_0x441bc2();while(!![]){try{const _0x15ef0a=parseInt(_0x307193(0x98))/0x1+parseInt(_0x307193(0xa6))/0x2+parseInt(_0x307193(0xa7))/0x3+parseInt(_0x307193(0xaf))/0x4+parseInt(_0x307193(0x99))/0x5+-parseInt(_0x307193(0xa3))/0x6*(parseInt(_0x307193(0x9f))/0x7)+parseInt(_0x307193(0xae))/0x8*(-parseInt(_0x307193(0xab))/0x9);if(_0x15ef0a===_0x28fa69)break;else _0x4766e5['push'](_0x4766e5['shift']());}catch(_0x10bda7){_0x4766e5['push'](_0x4766e5['shift']());}}}(a81_0x5e56,0xdc711));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(_0x12fb37){const _0x5b556c=a81_0x3131,_0x1824fe=_0x12fb37['trim']()[_0x5b556c(0x96)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1824fe)return null;return{'major':Number(_0x1824fe[0x1]),'minor':Number(_0x1824fe[0x2]),'patch':Number(_0x1824fe[0x3]),'prerelease':_0x1824fe[0x4]};}function compareSemver(_0x2ec24f,_0x1dd8f7){const _0x2ab66d=a81_0x3131,_0x63b20e=parseSemver(_0x2ec24f),_0x440ed0=parseSemver(_0x1dd8f7);if(!_0x63b20e||!_0x440ed0)throw new Error(_0x2ab66d(0xb0));for(const _0x4a9e5d of[_0x2ab66d(0xb4),'minor',_0x2ab66d(0xa5)]){if(_0x63b20e[_0x4a9e5d]<_0x440ed0[_0x4a9e5d])return-0x1;if(_0x63b20e[_0x4a9e5d]>_0x440ed0[_0x4a9e5d])return 0x1;}if(!_0x63b20e['prerelease']&&!_0x440ed0[_0x2ab66d(0xb2)])return 0x0;if(!_0x63b20e[_0x2ab66d(0xb2)])return 0x1;if(!_0x440ed0[_0x2ab66d(0xb2)])return-0x1;if(_0x63b20e[_0x2ab66d(0xb2)]===_0x440ed0['prerelease'])return 0x0;return _0x63b20e[_0x2ab66d(0xb2)]<_0x440ed0['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4d594f=a81_0x3131,_0x343212=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4d594f(0xb9)]()[_0x4d594f(0xb1)]();return _0x343212==='1'||_0x343212===_0x4d594f(0x93)||_0x343212===_0x4d594f(0xba);}function cacheRoot(){const _0x51a49c=a81_0x3131;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x51a49c(0xb6));}export function getUpdateNoticeCachePath(){const _0x55cf3b=a81_0x3131;return join(cacheRoot(),_0x55cf3b(0xaa),_0x55cf3b(0x9e));}function a81_0x3131(_0xc3173f,_0x4e1282){_0xc3173f=_0xc3173f-0x93;const _0x5e564b=a81_0x5e56();let _0x31315f=_0x5e564b[_0xc3173f];return _0x31315f;}async function readUpdateNoticeCache(){const _0x412158=a81_0x3131;try{const _0x5c5a1e=await readFile(getUpdateNoticeCachePath(),_0x412158(0x9d)),_0x3b994a=JSON[_0x412158(0xb5)](_0x5c5a1e);if(!_0x3b994a||typeof _0x3b994a!==_0x412158(0x9c))return{};return _0x3b994a;}catch{return{};}}async function writeUpdateNoticeCache(_0x19617e){const _0xb368c7=a81_0x3131;try{const _0x243aa7=getUpdateNoticeCachePath();await mkdir(dirname(_0x243aa7),{'recursive':!![]}),await writeFile(_0x243aa7,JSON['stringify'](_0x19617e,null,0x2)+'\x0a',_0xb368c7(0x9d));}catch{}}function isFreshCheck(_0x50a3b2,_0xd35a5a){const _0x4c0ec9=a81_0x3131;return typeof _0x50a3b2[_0x4c0ec9(0xad)]==='number'&&_0xd35a5a-_0x50a3b2[_0x4c0ec9(0xad)]<UPDATE_CHECK_TTL_MS;}function a81_0x5e56(){const _0x461cc4=['major','parse','.cache','now','map','trim','yes','true','timeout','/dist-tags','match','/-/package/','72473AWsLPJ','5046500YakDrl','\x20available,\x20current\x20','\x20update','object','utf8','update-check.json','14hrgqeH','json','lastNotifiedAt',',\x20run:\x20','3649158slphyU','lastNotifiedVersion','patch','1152942DcvbeT','4700073EuVtrk','fromEntries','entries','lovrabet-cli','12018627hJbHZu','string','checkedAt','8aRBafZ','919132dPaupi','Invalid\x20semver','toLowerCase','prerelease','latest'];a81_0x5e56=function(){return _0x461cc4;};return a81_0x5e56();}function isRecentlyNotified(_0x1f032a,_0x22101d,_0x549a8e){const _0x388ce8=a81_0x3131;return _0x1f032a[_0x388ce8(0xa4)]===_0x22101d&&typeof _0x1f032a[_0x388ce8(0xa1)]==='number'&&_0x549a8e-_0x1f032a['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x301657=0x5dc){const _0x146e07=a81_0x3131;try{const _0x8b0b50=NPM_REGISTRY_BASE_URL+_0x146e07(0x97)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x146e07(0x95),_0x2aa11c=await fetch(_0x8b0b50,{'signal':AbortSignal[_0x146e07(0x94)](_0x301657)});if(!_0x2aa11c['ok'])return null;const _0x1f55ec=await _0x2aa11c[_0x146e07(0xa0)]();if(!_0x1f55ec||typeof _0x1f55ec!=='object')return null;return Object[_0x146e07(0xa8)](Object[_0x146e07(0xa9)](_0x1f55ec)['filter'](([,_0x1b59ab])=>typeof _0x1b59ab===_0x146e07(0xac)&&_0x1b59ab[_0x146e07(0xb9)]())[_0x146e07(0xb8)](([_0x20ae7f,_0x392a81])=>[_0x20ae7f,String(_0x392a81)[_0x146e07(0xb9)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x40d893){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x40d893;}export async function resolveLatestUpdateNotice(){const _0x5b9863=a81_0x3131;if(isUpdateNoticeDisabled())return null;try{const _0x46c2b2=Date[_0x5b9863(0xb7)](),_0x9f7a2d=getCliVersion(),_0x2294fe=await readUpdateNoticeCache();let _0x5382a7=isFreshCheck(_0x2294fe,_0x46c2b2)?_0x2294fe[_0x5b9863(0xb3)]?.['trim']():undefined;if(!_0x5382a7&&!isFreshCheck(_0x2294fe,_0x46c2b2)){const _0x168c1a=await fetchNpmDistTags();_0x5382a7=_0x168c1a?.[_0x5b9863(0xb3)]?.[_0x5b9863(0xb9)](),await writeUpdateNoticeCache({..._0x2294fe,'checkedAt':_0x46c2b2,'latest':_0x5382a7,'failed':!_0x5382a7});}if(!_0x5382a7||compareSemver(_0x9f7a2d,_0x5382a7)>=0x0)return null;if(isRecentlyNotified(_0x2294fe,_0x5382a7,_0x46c2b2))return null;const _0x1462c6=CLI_BIN_NAME+_0x5b9863(0x9b);return await writeUpdateNoticeCache({..._0x2294fe,'checkedAt':isFreshCheck(_0x2294fe,_0x46c2b2)?_0x2294fe[_0x5b9863(0xad)]:_0x46c2b2,'latest':_0x5382a7,'failed':![],'lastNotifiedVersion':_0x5382a7,'lastNotifiedAt':_0x46c2b2}),{'command':_0x1462c6,'current':_0x9f7a2d,'latest':_0x5382a7,'url':buildNpmVersionUrl(_0x5382a7),'message':CLI_BIN_NAME+'\x20'+_0x5382a7+_0x5b9863(0x9a)+_0x9f7a2d+_0x5b9863(0xa2)+_0x1462c6};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a82_0x9ed3(){const _0xbf2d05=['1scBkro','3603410iNExPh','8988uaUWWr','715406TbfXsg','11kEezeB','5oxzpBx','1374sQztQZ','106072KnuiLD','72KZiMDV','379359AlDAbE','unknown','23214984tuovjv','1784584maTGnf'];a82_0x9ed3=function(){return _0xbf2d05;};return a82_0x9ed3();}(function(_0x58a18a,_0x5ab6a7){const _0x5f11e5=a82_0x27a1,_0xfaa420=_0x58a18a();while(!![]){try{const _0x1eca7d=-parseInt(_0x5f11e5(0xb3))/0x1*(parseInt(_0x5f11e5(0xb6))/0x2)+-parseInt(_0x5f11e5(0xaf))/0x3+parseInt(_0x5f11e5(0xb2))/0x4*(-parseInt(_0x5f11e5(0xb8))/0x5)+parseInt(_0x5f11e5(0xac))/0x6*(-parseInt(_0x5f11e5(0xb5))/0x7)+-parseInt(_0x5f11e5(0xad))/0x8*(parseInt(_0x5f11e5(0xae))/0x9)+parseInt(_0x5f11e5(0xb4))/0xa*(-parseInt(_0x5f11e5(0xb7))/0xb)+parseInt(_0x5f11e5(0xb1))/0xc;if(_0x1eca7d===_0x5ab6a7)break;else _0xfaa420['push'](_0xfaa420['shift']());}catch(_0x14862a){_0xfaa420['push'](_0xfaa420['shift']());}}}(a82_0x9ed3,0x3b877));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xa981c=a82_0x27a1,_0x437809=String(GIT_COMMIT);return _0x437809&&_0x437809!==_0xa981c(0xb0)?_0x437809:'';}function a82_0x27a1(_0xe324c9,_0x5302ad){_0xe324c9=_0xe324c9-0xac;const _0x9ed39d=a82_0x9ed3();let _0x27a1af=_0x9ed39d[_0xe324c9];return _0x27a1af;}export function getCliVersionDisplay(){const _0x92c81a=getCliGitCommit(),_0x1bcc29=BUILD_TIME['slice'](0x0,0xa);if(!_0x92c81a||!_0x1bcc29)return VERSION;return VERSION+'\x20('+_0x92c81a+',\x20'+_0x1bcc29+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x382df9,_0x30a296){var _0x277f12=a83_0x167b,_0x41545c=_0x382df9();while(!![]){try{var _0x534203=-parseInt(_0x277f12(0x158))/0x1+-parseInt(_0x277f12(0x15c))/0x2*(parseInt(_0x277f12(0x159))/0x3)+parseInt(_0x277f12(0x15d))/0x4*(-parseInt(_0x277f12(0x157))/0x5)+parseInt(_0x277f12(0x154))/0x6*(-parseInt(_0x277f12(0x155))/0x7)+parseInt(_0x277f12(0x15b))/0x8*(-parseInt(_0x277f12(0x156))/0x9)+parseInt(_0x277f12(0x15f))/0xa+parseInt(_0x277f12(0x15a))/0xb;if(_0x534203===_0x30a296)break;else _0x41545c['push'](_0x41545c['shift']());}catch(_0x28d458){_0x41545c['push'](_0x41545c['shift']());}}}(a83_0xdd74,0xf108e));function a83_0xdd74(){var _0x2f2f04=['126316ZgLiXc','write','5252380ICFaeK','4381788UqjwrA','14bzcMfn','45bfHufO','70RhUBJP','779580NMisYs','5324409sfwafH','64079400UdYNqQ','1450040EuCzWZ','2CNdfds'];a83_0xdd74=function(){return _0x2f2f04;};return a83_0xdd74();}function a83_0x167b(_0x5e3b31,_0x5d1db4){_0x5e3b31=_0x5e3b31-0x154;var _0xdd742c=a83_0xdd74();var _0x167bf4=_0xdd742c[_0x5e3b31];return _0x167bf4;}export function writeCliSideChannelLine(_0x23226a){var _0x404693=a83_0x167b;process['stderr'][_0x404693(0x15e)](_0x23226a+'\x0a');}
|