@lovrabet/lovrabet-cli 2.1.0 → 2.1.1-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
|
-
(function(
|
|
1
|
+
(function(_0x2d5496,_0x114588){const _0xe55a67=a81_0x81d9,_0x2e34c5=_0x2d5496();while(!![]){try{const _0x2da56e=parseInt(_0xe55a67(0x131))/0x1+parseInt(_0xe55a67(0x14e))/0x2+-parseInt(_0xe55a67(0x133))/0x3+-parseInt(_0xe55a67(0x13d))/0x4+parseInt(_0xe55a67(0x135))/0x5*(parseInt(_0xe55a67(0x145))/0x6)+-parseInt(_0xe55a67(0x136))/0x7+-parseInt(_0xe55a67(0x153))/0x8*(-parseInt(_0xe55a67(0x138))/0x9);if(_0x2da56e===_0x114588)break;else _0x2e34c5['push'](_0x2e34c5['shift']());}catch(_0x29aa7a){_0x2e34c5['push'](_0x2e34c5['shift']());}}}(a81_0x41e3,0x42148));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(_0x2b2a07){const _0x490dc3=a81_0x81d9,_0x2403ca=_0x2b2a07[_0x490dc3(0x130)]()[_0x490dc3(0x14c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x2403ca)return null;return{'major':Number(_0x2403ca[0x1]),'minor':Number(_0x2403ca[0x2]),'patch':Number(_0x2403ca[0x3]),'prerelease':_0x2403ca[0x4]};}function compareSemver(_0x5b09db,_0x1e0378){const _0x3bbec6=a81_0x81d9,_0x572a07=parseSemver(_0x5b09db),_0x2eeb64=parseSemver(_0x1e0378);if(!_0x572a07||!_0x2eeb64)throw new Error('Invalid\x20semver');for(const _0xd5e29f of[_0x3bbec6(0x14b),_0x3bbec6(0x149),_0x3bbec6(0x141)]){if(_0x572a07[_0xd5e29f]<_0x2eeb64[_0xd5e29f])return-0x1;if(_0x572a07[_0xd5e29f]>_0x2eeb64[_0xd5e29f])return 0x1;}if(!_0x572a07[_0x3bbec6(0x12f)]&&!_0x2eeb64[_0x3bbec6(0x12f)])return 0x0;if(!_0x572a07[_0x3bbec6(0x12f)])return 0x1;if(!_0x2eeb64[_0x3bbec6(0x12f)])return-0x1;if(_0x572a07[_0x3bbec6(0x12f)]===_0x2eeb64['prerelease'])return 0x0;return _0x572a07[_0x3bbec6(0x12f)]<_0x2eeb64[_0x3bbec6(0x12f)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x4ac24f=a81_0x81d9,_0x4804fe=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x4ac24f(0x130)]()['toLowerCase']();return _0x4804fe==='1'||_0x4804fe===_0x4ac24f(0x14a)||_0x4804fe==='yes';}function cacheRoot(){const _0x345b2f=a81_0x81d9;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x345b2f(0x12e));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x38918c=a81_0x81d9;try{const _0xca4b8b=await readFile(getUpdateNoticeCachePath(),_0x38918c(0x140)),_0x35e2f9=JSON[_0x38918c(0x142)](_0xca4b8b);if(!_0x35e2f9||typeof _0x35e2f9!==_0x38918c(0x146))return{};return _0x35e2f9;}catch{return{};}}async function writeUpdateNoticeCache(_0x5a1f4e){const _0x216c46=a81_0x81d9;try{const _0x31b256=getUpdateNoticeCachePath();await mkdir(dirname(_0x31b256),{'recursive':!![]}),await writeFile(_0x31b256,JSON[_0x216c46(0x151)](_0x5a1f4e,null,0x2)+'\x0a',_0x216c46(0x140));}catch{}}function isFreshCheck(_0x149b1a,_0x2df520){const _0x178620=a81_0x81d9;return typeof _0x149b1a['checkedAt']===_0x178620(0x13c)&&_0x2df520-_0x149b1a[_0x178620(0x148)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5e31dc,_0x4c0480,_0x4234a3){const _0x42c778=a81_0x81d9;return _0x5e31dc[_0x42c778(0x134)]===_0x4c0480&&typeof _0x5e31dc[_0x42c778(0x14d)]===_0x42c778(0x13c)&&_0x4234a3-_0x5e31dc[_0x42c778(0x14d)]<UPDATE_NOTICE_TTL_MS;}function a81_0x81d9(_0x42a45a,_0x280cb3){_0x42a45a=_0x42a45a-0x12d;const _0x41e356=a81_0x41e3();let _0x81d951=_0x41e356[_0x42a45a];return _0x81d951;}function a81_0x41e3(){const _0x29a16a=['stringify','\x20available,\x20current\x20','8sVRMmv','map','.cache','prerelease','trim','37959viYMiG','/v/','1002933PLRVdz','lastNotifiedVersion','71405tVOcju','1179850oKakCp','https://www.npmjs.com/package/','776349gmdNEl',',\x20run:\x20','filter','/dist-tags','number','9784uxZONq','timeout','now','utf8','patch','parse','latest','/-/package/','138erwjqc','object','entries','checkedAt','minor','true','major','match','lastNotifiedAt','646576lIJJMn','json','string'];a81_0x41e3=function(){return _0x29a16a;};return a81_0x41e3();}async function fetchNpmDistTags(_0x2a224b=0x5dc){const _0x3cf2bf=a81_0x81d9;try{const _0x149b67=NPM_REGISTRY_BASE_URL+_0x3cf2bf(0x144)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3cf2bf(0x13b),_0x9b0959=await fetch(_0x149b67,{'signal':AbortSignal[_0x3cf2bf(0x13e)](_0x2a224b)});if(!_0x9b0959['ok'])return null;const _0x26603f=await _0x9b0959[_0x3cf2bf(0x14f)]();if(!_0x26603f||typeof _0x26603f!==_0x3cf2bf(0x146))return null;return Object['fromEntries'](Object[_0x3cf2bf(0x147)](_0x26603f)[_0x3cf2bf(0x13a)](([,_0x5e564c])=>typeof _0x5e564c===_0x3cf2bf(0x150)&&_0x5e564c[_0x3cf2bf(0x130)]())[_0x3cf2bf(0x12d)](([_0x3d4191,_0x148323])=>[_0x3d4191,String(_0x148323)[_0x3cf2bf(0x130)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x2761c2){const _0x141e84=a81_0x81d9;return _0x141e84(0x137)+LOVRABET_NPM_PACKAGE_NAME+_0x141e84(0x132)+_0x2761c2;}export async function resolveLatestUpdateNotice(){const _0x2fb291=a81_0x81d9;if(isUpdateNoticeDisabled())return null;try{const _0x11547b=Date[_0x2fb291(0x13f)](),_0x328c63=getCliVersion(),_0x3d25a7=await readUpdateNoticeCache();let _0x26de57=isFreshCheck(_0x3d25a7,_0x11547b)?_0x3d25a7['latest']?.['trim']():undefined;if(!_0x26de57&&!isFreshCheck(_0x3d25a7,_0x11547b)){const _0x434ea1=await fetchNpmDistTags();_0x26de57=_0x434ea1?.[_0x2fb291(0x143)]?.['trim'](),await writeUpdateNoticeCache({..._0x3d25a7,'checkedAt':_0x11547b,'latest':_0x26de57,'failed':!_0x26de57});}if(!_0x26de57||compareSemver(_0x328c63,_0x26de57)>=0x0)return null;if(isRecentlyNotified(_0x3d25a7,_0x26de57,_0x11547b))return null;const _0x27f167=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x3d25a7,'checkedAt':isFreshCheck(_0x3d25a7,_0x11547b)?_0x3d25a7['checkedAt']:_0x11547b,'latest':_0x26de57,'failed':![],'lastNotifiedVersion':_0x26de57,'lastNotifiedAt':_0x11547b}),{'command':_0x27f167,'current':_0x328c63,'latest':_0x26de57,'url':buildNpmVersionUrl(_0x26de57),'message':CLI_BIN_NAME+'\x20'+_0x26de57+_0x2fb291(0x152)+_0x328c63+_0x2fb291(0x139)+_0x27f167};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a82_0x25c0(){const _0x3165d0=['15OeQWgu','8990613uOWipH','448150HtbwAY','5669804kbRAhd','3396128VefQTf','692820adpCyN','3deruSr','538348sZdewN','2085944UmbSbv','unknown'];a82_0x25c0=function(){return _0x3165d0;};return a82_0x25c0();}function a82_0xf81b(_0x11bbc3,_0xf6ca64){_0x11bbc3=_0x11bbc3-0x92;const _0x25c0f5=a82_0x25c0();let _0xf81b93=_0x25c0f5[_0x11bbc3];return _0xf81b93;}(function(_0x6aa73a,_0xbf8ab2){const _0x4896cc=a82_0xf81b,_0xb72cc4=_0x6aa73a();while(!![]){try{const _0x34f117=-parseInt(_0x4896cc(0x92))/0x1+parseInt(_0x4896cc(0x97))/0x2*(parseInt(_0x4896cc(0x9b))/0x3)+-parseInt(_0x4896cc(0x99))/0x4+-parseInt(_0x4896cc(0x95))/0x5*(parseInt(_0x4896cc(0x9a))/0x6)+parseInt(_0x4896cc(0x98))/0x7+parseInt(_0x4896cc(0x93))/0x8+parseInt(_0x4896cc(0x96))/0x9;if(_0x34f117===_0xbf8ab2)break;else _0xb72cc4['push'](_0xb72cc4['shift']());}catch(_0x184e79){_0xb72cc4['push'](_0xb72cc4['shift']());}}}(a82_0x25c0,0x88b55));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xf203b6=a82_0xf81b,_0x29c538=String(GIT_COMMIT);return _0x29c538&&_0x29c538!==_0xf203b6(0x94)?_0x29c538:'';}export function getCliVersionDisplay(){const _0x15ffa9=getCliGitCommit(),_0x57ff9f=BUILD_TIME['slice'](0x0,0xa);if(!_0x15ffa9||!_0x57ff9f)return VERSION;return VERSION+'\x20('+_0x15ffa9+',\x20'+_0x57ff9f+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x373e83,_0x2a13e5){var _0xba2141=a83_0x1471,_0x3b663a=_0x373e83();while(!![]){try{var _0x4b5051=parseInt(_0xba2141(0x78))/0x1*(-parseInt(_0xba2141(0x75))/0x2)+-parseInt(_0xba2141(0x76))/0x3*(-parseInt(_0xba2141(0x6f))/0x4)+-parseInt(_0xba2141(0x74))/0x5+-parseInt(_0xba2141(0x77))/0x6*(parseInt(_0xba2141(0x72))/0x7)+-parseInt(_0xba2141(0x71))/0x8+parseInt(_0xba2141(0x70))/0x9+parseInt(_0xba2141(0x73))/0xa;if(_0x4b5051===_0x2a13e5)break;else _0x3b663a['push'](_0x3b663a['shift']());}catch(_0x299e68){_0x3b663a['push'](_0x3b663a['shift']());}}}(a83_0x5d5e,0xd9070));export function writeCliSideChannelLine(_0x13419b){process['stderr']['write'](_0x13419b+'\x0a');}function a83_0x1471(_0x34476c,_0x43ee47){_0x34476c=_0x34476c-0x6f;var _0x5d5e9b=a83_0x5d5e();var _0x1471e7=_0x5d5e9b[_0x34476c];return _0x1471e7;}function a83_0x5d5e(){var _0x15d4e3=['12867430vWrQiL','5340090ZWIpNX','2182sncbZH','2080248IaxPJU','437160dOhgFN','113rQnHIT','4rNrxVK','8326539CymXiX','6017800KkvnyW','7Xwhqhr'];a83_0x5d5e=function(){return _0x15d4e3;};return a83_0x5d5e();}
|