@lovrabet/lovrabet-cli 2.1.2-beta.1 → 2.1.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
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a80_0x43d8(_0x45c2b9,_0x1107f2){_0x45c2b9=_0x45c2b9-0xcd;const _0x593d0e=a80_0x593d();let _0x43d888=_0x593d0e[_0x45c2b9];return _0x43d888;}const a80_0x4cb91f=a80_0x43d8;(function(_0x7af7c,_0x5bec76){const _0x15dbbe=a80_0x43d8,_0x1f1c29=_0x7af7c();while(!![]){try{const _0x915187=parseInt(_0x15dbbe(0xcf))/0x1+parseInt(_0x15dbbe(0xd6))/0x2*(parseInt(_0x15dbbe(0xd0))/0x3)+-parseInt(_0x15dbbe(0xd3))/0x4+-parseInt(_0x15dbbe(0xce))/0x5+-parseInt(_0x15dbbe(0xd4))/0x6+parseInt(_0x15dbbe(0xd5))/0x7+parseInt(_0x15dbbe(0xd1))/0x8;if(_0x915187===_0x5bec76)break;else _0x1f1c29['push'](_0x1f1c29['shift']());}catch(_0x23cea1){_0x1f1c29['push'](_0x1f1c29['shift']());}}}(a80_0x593d,0x1e33f));function a80_0x593d(){const _0x34413c=['258siFwvS','784216vXpBnh','win32','636424ZBJhpa','229500CHfSfB','682185EJTvRK','3890bCYGda','.cmd','747660qSGbwa','107847cHKiaW'];a80_0x593d=function(){return _0x34413c;};return a80_0x593d();}export const isWindows=process['platform']===a80_0x4cb91f(0xd2);export function resolveNpmBin(_0x4cc9c7){const _0x4e7ad9=a80_0x4cb91f;return isWindows?_0x4cc9c7+_0x4e7ad9(0xcd):_0x4cc9c7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55b2bb,_0xb20f2a){const _0x276411=a81_0x3951,_0x5455fd=_0x55b2bb();while(!![]){try{const _0xd779c8=-parseInt(_0x276411(0x171))/0x1*(parseInt(_0x276411(0x180))/0x2)+parseInt(_0x276411(0x174))/0x3*(parseInt(_0x276411(0x186))/0x4)+parseInt(_0x276411(0x18d))/0x5*(-parseInt(_0x276411(0x172))/0x6)+-parseInt(_0x276411(0x175))/0x7*(parseInt(_0x276411(0x16f))/0x8)+-parseInt(_0x276411(0x188))/0x9*(parseInt(_0x276411(0x182))/0xa)+-parseInt(_0x276411(0x17a))/0xb+parseInt(_0x276411(0x179))/0xc;if(_0xd779c8===_0xb20f2a)break;else _0x5455fd['push'](_0x5455fd['shift']());}catch(_0x3a7a29){_0x5455fd['push'](_0x5455fd['shift']());}}}(a81_0x864a,0x3afc9));import{mkdir,readFile,writeFile}from'node:fs/promises';function a81_0x3951(_0x479b2d,_0xe1be9d){_0x479b2d=_0x479b2d-0x16b;const _0x864a73=a81_0x864a();let _0x395141=_0x864a73[_0x479b2d];return _0x395141;}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_0x864a(){const _0x179e75=['/dist-tags','134cCshwX','/-/package/','10IkrnHF','match','entries','number','27848LYKROd','utf8','2234511ZbcESg','fromEntries','object','major','yes','16115vnzPTa','.cache','json','filter','minor','parse','true','lastNotifiedAt','64YgLBJj','checkedAt','401FUVffE','48LLRWmW','toLowerCase','3dzVORf','71897EcXqvt','stringify','https://www.npmjs.com/package/','trim','9279312PsLEui','1710841KkuVIg','lovrabet-cli','latest','string','prerelease'];a81_0x864a=function(){return _0x179e75;};return a81_0x864a();}function parseSemver(_0x373814){const _0x9b812b=a81_0x3951,_0x5304ba=_0x373814[_0x9b812b(0x178)]()[_0x9b812b(0x183)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x5304ba)return null;return{'major':Number(_0x5304ba[0x1]),'minor':Number(_0x5304ba[0x2]),'patch':Number(_0x5304ba[0x3]),'prerelease':_0x5304ba[0x4]};}function compareSemver(_0x5ce259,_0x3149bb){const _0x5f540c=a81_0x3951,_0x2aaf00=parseSemver(_0x5ce259),_0x35ba6f=parseSemver(_0x3149bb);if(!_0x2aaf00||!_0x35ba6f)throw new Error('Invalid\x20semver');for(const _0x1f3fae of[_0x5f540c(0x18b),_0x5f540c(0x16b),'patch']){if(_0x2aaf00[_0x1f3fae]<_0x35ba6f[_0x1f3fae])return-0x1;if(_0x2aaf00[_0x1f3fae]>_0x35ba6f[_0x1f3fae])return 0x1;}if(!_0x2aaf00[_0x5f540c(0x17e)]&&!_0x35ba6f[_0x5f540c(0x17e)])return 0x0;if(!_0x2aaf00[_0x5f540c(0x17e)])return 0x1;if(!_0x35ba6f[_0x5f540c(0x17e)])return-0x1;if(_0x2aaf00[_0x5f540c(0x17e)]===_0x35ba6f[_0x5f540c(0x17e)])return 0x0;return _0x2aaf00[_0x5f540c(0x17e)]<_0x35ba6f[_0x5f540c(0x17e)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x3f678f=a81_0x3951,_0x51fcab=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3f678f(0x178)]()[_0x3f678f(0x173)]();return _0x51fcab==='1'||_0x51fcab===_0x3f678f(0x16d)||_0x51fcab===_0x3f678f(0x18c);}function cacheRoot(){const _0x2ba966=a81_0x3951;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2ba966(0x18e));}export function getUpdateNoticeCachePath(){const _0x533214=a81_0x3951;return join(cacheRoot(),_0x533214(0x17b),'update-check.json');}async function readUpdateNoticeCache(){const _0x301448=a81_0x3951;try{const _0x1f1caf=await readFile(getUpdateNoticeCachePath(),_0x301448(0x187)),_0x2c3b4b=JSON[_0x301448(0x16c)](_0x1f1caf);if(!_0x2c3b4b||typeof _0x2c3b4b!==_0x301448(0x18a))return{};return _0x2c3b4b;}catch{return{};}}async function writeUpdateNoticeCache(_0xd676db){const _0x3dd5d8=a81_0x3951;try{const _0x56eb23=getUpdateNoticeCachePath();await mkdir(dirname(_0x56eb23),{'recursive':!![]}),await writeFile(_0x56eb23,JSON[_0x3dd5d8(0x176)](_0xd676db,null,0x2)+'\x0a',_0x3dd5d8(0x187));}catch{}}function isFreshCheck(_0x4c6466,_0x1c11f3){const _0x6ce429=a81_0x3951;return typeof _0x4c6466[_0x6ce429(0x170)]==='number'&&_0x1c11f3-_0x4c6466[_0x6ce429(0x170)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x537d55,_0x524bf2,_0x46eee2){const _0x42acb9=a81_0x3951;return _0x537d55['lastNotifiedVersion']===_0x524bf2&&typeof _0x537d55[_0x42acb9(0x16e)]===_0x42acb9(0x185)&&_0x46eee2-_0x537d55[_0x42acb9(0x16e)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x31a405=0x5dc){const _0x6c48cc=a81_0x3951;try{const _0x3a0545=NPM_REGISTRY_BASE_URL+_0x6c48cc(0x181)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x6c48cc(0x17f),_0xe7b382=await fetch(_0x3a0545,{'signal':AbortSignal['timeout'](_0x31a405)});if(!_0xe7b382['ok'])return null;const _0x232860=await _0xe7b382[_0x6c48cc(0x18f)]();if(!_0x232860||typeof _0x232860!==_0x6c48cc(0x18a))return null;return Object[_0x6c48cc(0x189)](Object[_0x6c48cc(0x184)](_0x232860)[_0x6c48cc(0x190)](([,_0x4556d9])=>typeof _0x4556d9===_0x6c48cc(0x17d)&&_0x4556d9['trim']())['map'](([_0x12678e,_0x5bf651])=>[_0x12678e,String(_0x5bf651)[_0x6c48cc(0x178)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x22fff6){const _0x53f4a5=a81_0x3951;return _0x53f4a5(0x177)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x22fff6;}export async function resolveLatestUpdateNotice(){const _0x34b79e=a81_0x3951;if(isUpdateNoticeDisabled())return null;try{const _0x182aea=Date['now'](),_0x2876c6=getCliVersion(),_0x1f98a3=await readUpdateNoticeCache();let _0x25c20b=isFreshCheck(_0x1f98a3,_0x182aea)?_0x1f98a3[_0x34b79e(0x17c)]?.['trim']():undefined;if(!_0x25c20b&&!isFreshCheck(_0x1f98a3,_0x182aea)){const _0x37bf24=await fetchNpmDistTags();_0x25c20b=_0x37bf24?.[_0x34b79e(0x17c)]?.[_0x34b79e(0x178)](),await writeUpdateNoticeCache({..._0x1f98a3,'checkedAt':_0x182aea,'latest':_0x25c20b,'failed':!_0x25c20b});}if(!_0x25c20b||compareSemver(_0x2876c6,_0x25c20b)>=0x0)return null;if(isRecentlyNotified(_0x1f98a3,_0x25c20b,_0x182aea))return null;const _0x675921=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1f98a3,'checkedAt':isFreshCheck(_0x1f98a3,_0x182aea)?_0x1f98a3[_0x34b79e(0x170)]:_0x182aea,'latest':_0x25c20b,'failed':![],'lastNotifiedVersion':_0x25c20b,'lastNotifiedAt':_0x182aea}),{'command':_0x675921,'current':_0x2876c6,'latest':_0x25c20b,'url':buildNpmVersionUrl(_0x25c20b),'message':CLI_BIN_NAME+'\x20'+_0x25c20b+'\x20available,\x20current\x20'+_0x2876c6+',\x20run:\x20'+_0x675921};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a82_0x526c(_0x53ad8d,_0x207ad2){_0x53ad8d=_0x53ad8d-0x16e;const _0x23b216=a82_0x23b2();let _0x526ce9=_0x23b216[_0x53ad8d];return _0x526ce9;}(function(_0x282eee,_0x35b6a0){const _0x46fb=a82_0x526c,_0x306bb9=_0x282eee();while(!![]){try{const _0x3ff864=-parseInt(_0x46fb(0x170))/0x1*(-parseInt(_0x46fb(0x173))/0x2)+parseInt(_0x46fb(0x174))/0x3+parseInt(_0x46fb(0x175))/0x4+parseInt(_0x46fb(0x172))/0x5*(-parseInt(_0x46fb(0x16f))/0x6)+-parseInt(_0x46fb(0x179))/0x7+-parseInt(_0x46fb(0x177))/0x8+parseInt(_0x46fb(0x176))/0x9*(-parseInt(_0x46fb(0x16e))/0xa);if(_0x3ff864===_0x35b6a0)break;else _0x306bb9['push'](_0x306bb9['shift']());}catch(_0x344caf){_0x306bb9['push'](_0x306bb9['shift']());}}}(a82_0x23b2,0x9a19e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a82_0x23b2(){const _0x4ed678=['9xFJHMK','877792MUgOXJ','unknown','6031662kklZIu','837180kievoM','6YazfrZ','14143PvCtez','slice','1108505RIvNWp','102YoJerv','2031798GmaNGS','2037792jfUDOq'];a82_0x23b2=function(){return _0x4ed678;};return a82_0x23b2();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x51044d=a82_0x526c,_0x2ae1b1=String(GIT_COMMIT);return _0x2ae1b1&&_0x2ae1b1!==_0x51044d(0x178)?_0x2ae1b1:'';}export function getCliVersionDisplay(){const _0x4c1d81=a82_0x526c,_0x445dd6=getCliGitCommit(),_0x16c9bd=BUILD_TIME[_0x4c1d81(0x171)](0x0,0xa);if(!_0x445dd6||!_0x16c9bd)return VERSION;return VERSION+'\x20('+_0x445dd6+',\x20'+_0x16c9bd+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfdf0b5,_0xbe3ed0){var _0x8ef329=a83_0x14ac,_0x1d154f=_0xfdf0b5();while(!![]){try{var _0x15e75b=-parseInt(_0x8ef329(0x144))/0x1*(-parseInt(_0x8ef329(0x145))/0x2)+-parseInt(_0x8ef329(0x141))/0x3*(-parseInt(_0x8ef329(0x13f))/0x4)+parseInt(_0x8ef329(0x142))/0x5+-parseInt(_0x8ef329(0x146))/0x6*(parseInt(_0x8ef329(0x13d))/0x7)+-parseInt(_0x8ef329(0x13c))/0x8+parseInt(_0x8ef329(0x140))/0x9*(-parseInt(_0x8ef329(0x143))/0xa)+parseInt(_0x8ef329(0x13e))/0xb;if(_0x15e75b===_0xbe3ed0)break;else _0x1d154f['push'](_0x1d154f['shift']());}catch(_0x543dda){_0x1d154f['push'](_0x1d154f['shift']());}}}(a83_0x4ad8,0xd05d5));function a83_0x14ac(_0x34cad3,_0x3a130c){_0x34cad3=_0x34cad3-0x13c;var _0x4ad8d2=a83_0x4ad8();var _0x14ac0c=_0x4ad8d2[_0x34cad3];return _0x14ac0c;}function a83_0x4ad8(){var _0x1d0417=['2210960YYayRi','15090WlluHl','4fufZzT','86732Xzgsgt','6OpVObs','stderr','5652120KHbfnN','11002887VPsfZi','21561815ZDbjLJ','156cTMWVe','4923cMTGtS','106263opNHfT'];a83_0x4ad8=function(){return _0x1d0417;};return a83_0x4ad8();}export function writeCliSideChannelLine(_0xb289e){var _0x2811c6=a83_0x14ac;process[_0x2811c6(0x147)]['write'](_0xb289e+'\x0a');}
|