@lovrabet/lovrabet-cli 2.1.0-beta.2 → 2.1.0-beta.3
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(_0x38e127,_0x35d57a){const _0xa2821=a81_0x44af,_0x4286d8=_0x38e127();while(!![]){try{const _0x3d5c12=-parseInt(_0xa2821(0xa8))/0x1+parseInt(_0xa2821(0xb5))/0x2+parseInt(_0xa2821(0xae))/0x3+-parseInt(_0xa2821(0x96))/0x4*(parseInt(_0xa2821(0xb4))/0x5)+-parseInt(_0xa2821(0xa2))/0x6*(-parseInt(_0xa2821(0x95))/0x7)+-parseInt(_0xa2821(0xa7))/0x8+parseInt(_0xa2821(0xab))/0x9;if(_0x3d5c12===_0x35d57a)break;else _0x4286d8['push'](_0x4286d8['shift']());}catch(_0x4417bf){_0x4286d8['push'](_0x4286d8['shift']());}}}(a81_0x4692,0xf0941));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';function a81_0x4692(){const _0x150169=['\x20update','timeout','.cache','1393drKaci','877660rdmQLD','update-check.json','latest','major','\x20available,\x20current\x20','parse','yes','json','/-/package/','object','minor','lastNotifiedAt','49206GJgYWm','filter','utf8','lastNotifiedVersion','lovrabet-cli','13924576fMkSYd','1596179QoYtgy','checkedAt','prerelease','4452633DzuxoG','/dist-tags','stringify','2681025CuyNiv',',\x20run:\x20','/v/','number','trim','string','10dDsbsQ','3481158XarqVR','entries','map'];a81_0x4692=function(){return _0x150169;};return a81_0x4692();}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(_0x47b4f6){const _0x34b9c8=_0x47b4f6['trim']()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x34b9c8)return null;return{'major':Number(_0x34b9c8[0x1]),'minor':Number(_0x34b9c8[0x2]),'patch':Number(_0x34b9c8[0x3]),'prerelease':_0x34b9c8[0x4]};}function compareSemver(_0x2f1768,_0x3b0d50){const _0x352524=a81_0x44af,_0x235e4e=parseSemver(_0x2f1768),_0x302789=parseSemver(_0x3b0d50);if(!_0x235e4e||!_0x302789)throw new Error('Invalid\x20semver');for(const _0x2d0654 of[_0x352524(0x99),_0x352524(0xa0),'patch']){if(_0x235e4e[_0x2d0654]<_0x302789[_0x2d0654])return-0x1;if(_0x235e4e[_0x2d0654]>_0x302789[_0x2d0654])return 0x1;}if(!_0x235e4e[_0x352524(0xaa)]&&!_0x302789[_0x352524(0xaa)])return 0x0;if(!_0x235e4e[_0x352524(0xaa)])return 0x1;if(!_0x302789['prerelease'])return-0x1;if(_0x235e4e['prerelease']===_0x302789[_0x352524(0xaa)])return 0x0;return _0x235e4e[_0x352524(0xaa)]<_0x302789['prerelease']?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x223c03=a81_0x44af,_0x312fc1=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x223c03(0xb2)]()['toLowerCase']();return _0x312fc1==='1'||_0x312fc1==='true'||_0x312fc1===_0x223c03(0x9c);}function cacheRoot(){const _0x2d16c1=a81_0x44af;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2d16c1(0x94));}export function getUpdateNoticeCachePath(){const _0x43c817=a81_0x44af;return join(cacheRoot(),_0x43c817(0xa6),_0x43c817(0x97));}async function readUpdateNoticeCache(){const _0x1a2041=a81_0x44af;try{const _0x39946c=await readFile(getUpdateNoticeCachePath(),_0x1a2041(0xa4)),_0x3eefa1=JSON[_0x1a2041(0x9b)](_0x39946c);if(!_0x3eefa1||typeof _0x3eefa1!==_0x1a2041(0x9f))return{};return _0x3eefa1;}catch{return{};}}async function writeUpdateNoticeCache(_0xe4714c){const _0x5e626e=a81_0x44af;try{const _0x4d93a8=getUpdateNoticeCachePath();await mkdir(dirname(_0x4d93a8),{'recursive':!![]}),await writeFile(_0x4d93a8,JSON[_0x5e626e(0xad)](_0xe4714c,null,0x2)+'\x0a',_0x5e626e(0xa4));}catch{}}function isFreshCheck(_0x39eb2d,_0x5c2dc2){const _0x2fcc52=a81_0x44af;return typeof _0x39eb2d[_0x2fcc52(0xa9)]==='number'&&_0x5c2dc2-_0x39eb2d['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x190a14,_0x4b214b,_0x55d1a6){const _0x40706a=a81_0x44af;return _0x190a14[_0x40706a(0xa5)]===_0x4b214b&&typeof _0x190a14[_0x40706a(0xa1)]===_0x40706a(0xb1)&&_0x55d1a6-_0x190a14[_0x40706a(0xa1)]<UPDATE_NOTICE_TTL_MS;}function a81_0x44af(_0x3e81ff,_0x57102d){_0x3e81ff=_0x3e81ff-0x91;const _0x4692c4=a81_0x4692();let _0x44af03=_0x4692c4[_0x3e81ff];return _0x44af03;}async function fetchNpmDistTags(_0x393504=0x5dc){const _0x1760af=a81_0x44af;try{const _0x650a37=NPM_REGISTRY_BASE_URL+_0x1760af(0x9e)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1760af(0xac),_0x799fb2=await fetch(_0x650a37,{'signal':AbortSignal[_0x1760af(0x93)](_0x393504)});if(!_0x799fb2['ok'])return null;const _0x420814=await _0x799fb2[_0x1760af(0x9d)]();if(!_0x420814||typeof _0x420814!==_0x1760af(0x9f))return null;return Object['fromEntries'](Object[_0x1760af(0xb6)](_0x420814)[_0x1760af(0xa3)](([,_0x20fa40])=>typeof _0x20fa40===_0x1760af(0xb3)&&_0x20fa40[_0x1760af(0xb2)]())[_0x1760af(0x91)](([_0x50957f,_0x44d7e0])=>[_0x50957f,String(_0x44d7e0)[_0x1760af(0xb2)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x409cd1){const _0x1c9698=a81_0x44af;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x1c9698(0xb0)+_0x409cd1;}export async function resolveLatestUpdateNotice(){const _0x132666=a81_0x44af;if(isUpdateNoticeDisabled())return null;try{const _0x2e3f7b=Date['now'](),_0xbc2653=getCliVersion(),_0x177966=await readUpdateNoticeCache();let _0x1c4e0d=isFreshCheck(_0x177966,_0x2e3f7b)?_0x177966[_0x132666(0x98)]?.[_0x132666(0xb2)]():undefined;if(!_0x1c4e0d&&!isFreshCheck(_0x177966,_0x2e3f7b)){const _0x5ba4bb=await fetchNpmDistTags();_0x1c4e0d=_0x5ba4bb?.[_0x132666(0x98)]?.[_0x132666(0xb2)](),await writeUpdateNoticeCache({..._0x177966,'checkedAt':_0x2e3f7b,'latest':_0x1c4e0d,'failed':!_0x1c4e0d});}if(!_0x1c4e0d||compareSemver(_0xbc2653,_0x1c4e0d)>=0x0)return null;if(isRecentlyNotified(_0x177966,_0x1c4e0d,_0x2e3f7b))return null;const _0x86edfc=CLI_BIN_NAME+_0x132666(0x92);return await writeUpdateNoticeCache({..._0x177966,'checkedAt':isFreshCheck(_0x177966,_0x2e3f7b)?_0x177966[_0x132666(0xa9)]:_0x2e3f7b,'latest':_0x1c4e0d,'failed':![],'lastNotifiedVersion':_0x1c4e0d,'lastNotifiedAt':_0x2e3f7b}),{'command':_0x86edfc,'current':_0xbc2653,'latest':_0x1c4e0d,'url':buildNpmVersionUrl(_0x1c4e0d),'message':CLI_BIN_NAME+'\x20'+_0x1c4e0d+_0x132666(0x9a)+_0xbc2653+_0x132666(0xaf)+_0x86edfc};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41b454,_0x306649){const _0x20b75a=a82_0x42fe,_0x3a58f5=_0x41b454();while(!![]){try{const _0x2a7f2a=-parseInt(_0x20b75a(0xe5))/0x1+-parseInt(_0x20b75a(0xeb))/0x2+-parseInt(_0x20b75a(0xef))/0x3*(-parseInt(_0x20b75a(0xe9))/0x4)+parseInt(_0x20b75a(0xed))/0x5*(parseInt(_0x20b75a(0xe7))/0x6)+parseInt(_0x20b75a(0xec))/0x7+-parseInt(_0x20b75a(0xe8))/0x8+parseInt(_0x20b75a(0xee))/0x9;if(_0x2a7f2a===_0x306649)break;else _0x3a58f5['push'](_0x3a58f5['shift']());}catch(_0x13b97c){_0x3a58f5['push'](_0x3a58f5['shift']());}}}(a82_0x1789,0xbd6c4));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a82_0x1789(){const _0x128157=['1188pueMwB','7438104gfCBEY','4EfmCBS','slice','2400684BuHiPT','9377732sijSwA','38330GgtivI','4086621BrsQJZ','23463DnkxGb','413453RECnFI','unknown'];a82_0x1789=function(){return _0x128157;};return a82_0x1789();}export function getCliGitCommit(){const _0x28748c=a82_0x42fe,_0x366137=String(GIT_COMMIT);return _0x366137&&_0x366137!==_0x28748c(0xe6)?_0x366137:'';}function a82_0x42fe(_0x3d108e,_0x4c8b92){_0x3d108e=_0x3d108e-0xe5;const _0x178950=a82_0x1789();let _0x42fef0=_0x178950[_0x3d108e];return _0x42fef0;}export function getCliVersionDisplay(){const _0x1561fb=a82_0x42fe,_0x5c7bf6=getCliGitCommit(),_0x3e25d2=BUILD_TIME[_0x1561fb(0xea)](0x0,0xa);if(!_0x5c7bf6||!_0x3e25d2)return VERSION;return VERSION+'\x20('+_0x5c7bf6+',\x20'+_0x3e25d2+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x2f0b(){var _0x2126d6=['8874048lWNnLu','1063042XCbwBv','stderr','2575VgMgOq','write','1914TSYyzR','660Heoisv','47778gwntwl','74448XNJnwf','16agTNeN','154314VKfmWW','2lNfRVT','2327388RdLokI','760CNeRgU'];a83_0x2f0b=function(){return _0x2126d6;};return a83_0x2f0b();}(function(_0x55e982,_0x516e51){var _0x3d4588=a83_0x2d29,_0x5935de=_0x55e982();while(!![]){try{var _0x5c62b4=-parseInt(_0x3d4588(0x197))/0x1*(-parseInt(_0x3d4588(0x193))/0x2)+parseInt(_0x3d4588(0x19d))/0x3*(-parseInt(_0x3d4588(0x191))/0x4)+parseInt(_0x3d4588(0x199))/0x5*(-parseInt(_0x3d4588(0x19b))/0x6)+-parseInt(_0x3d4588(0x194))/0x7+parseInt(_0x3d4588(0x196))/0x8+-parseInt(_0x3d4588(0x192))/0x9*(parseInt(_0x3d4588(0x195))/0xa)+parseInt(_0x3d4588(0x190))/0xb*(parseInt(_0x3d4588(0x19c))/0xc);if(_0x5c62b4===_0x516e51)break;else _0x5935de['push'](_0x5935de['shift']());}catch(_0x5c61c6){_0x5935de['push'](_0x5935de['shift']());}}}(a83_0x2f0b,0xa6409));function a83_0x2d29(_0x5d7e25,_0x37872d){_0x5d7e25=_0x5d7e25-0x190;var _0x2f0b53=a83_0x2f0b();var _0x2d29b6=_0x2f0b53[_0x5d7e25];return _0x2d29b6;}export function writeCliSideChannelLine(_0x2dd2c9){var _0xb8d78=a83_0x2d29;process[_0xb8d78(0x198)][_0xb8d78(0x19a)](_0x2dd2c9+'\x0a');}
|