@lovrabet/lovrabet-cli 2.1.23-beta.4 → 2.1.23
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/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.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/common/local-file.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/file/index.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/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.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/rate-limit.js +1 -1
- package/lib/framework/raw-flags.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/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.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(_0x5f0df7,_0x2ca386){const _0x4e727d=a129_0x4667,_0x529d37=_0x5f0df7();while(!![]){try{const _0x21ab2a=-parseInt(_0x4e727d(0x141))/0x1*(parseInt(_0x4e727d(0x12b))/0x2)+parseInt(_0x4e727d(0x133))/0x3+-parseInt(_0x4e727d(0x12a))/0x4*(-parseInt(_0x4e727d(0x126))/0x5)+parseInt(_0x4e727d(0x136))/0x6*(-parseInt(_0x4e727d(0x130))/0x7)+-parseInt(_0x4e727d(0x129))/0x8*(parseInt(_0x4e727d(0x134))/0x9)+-parseInt(_0x4e727d(0x11c))/0xa*(parseInt(_0x4e727d(0x131))/0xb)+parseInt(_0x4e727d(0x12c))/0xc;if(_0x21ab2a===_0x2ca386)break;else _0x529d37['push'](_0x529d37['shift']());}catch(_0x573295){_0x529d37['push'](_0x529d37['shift']());}}}(a129_0x42c1,0x3258c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';function a129_0x4667(_0x4e6314,_0x54de16){_0x4e6314=_0x4e6314-0x11b;const _0x42c132=a129_0x42c1();let _0x4667a4=_0x42c132[_0x4e6314];return _0x4667a4;}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(_0x48fdb5){const _0x54c23f=a129_0x4667,_0x243850=_0x48fdb5[_0x54c23f(0x137)]()[_0x54c23f(0x124)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x243850)return null;return{'major':Number(_0x243850[0x1]),'minor':Number(_0x243850[0x2]),'patch':Number(_0x243850[0x3]),'prerelease':_0x243850[0x4]};}function a129_0x42c1(){const _0x54a0ab=['735735WZhLEx','327042vJujIP','now','90138fkCGxD','trim','fromEntries','\x20available,\x20current\x20','checkedAt','json','toLowerCase','timeout','latest','/-/package/','/dist-tags','87WtqopN',',\x20run:\x20','true','number','.cache','\x20update','update-check.json','1715650iyynUd','filter','patch','yes','entries','object','stringify','utf8','match','prerelease','1210645rLiiiS','lastNotifiedAt','major','88XeCtik','4drqLGQ','3818PzREWN','7457580KbQHEH','lovrabet-cli','string','Invalid\x20semver','77FFNeLb','11bQCXLP','lastNotifiedVersion'];a129_0x42c1=function(){return _0x54a0ab;};return a129_0x42c1();}function compareSemver(_0x360c0e,_0x2fd5f){const _0x1815b2=a129_0x4667,_0x194d16=parseSemver(_0x360c0e),_0xfbc557=parseSemver(_0x2fd5f);if(!_0x194d16||!_0xfbc557)throw new Error(_0x1815b2(0x12f));for(const _0x361354 of[_0x1815b2(0x128),'minor',_0x1815b2(0x11e)]){if(_0x194d16[_0x361354]<_0xfbc557[_0x361354])return-0x1;if(_0x194d16[_0x361354]>_0xfbc557[_0x361354])return 0x1;}if(!_0x194d16['prerelease']&&!_0xfbc557[_0x1815b2(0x125)])return 0x0;if(!_0x194d16[_0x1815b2(0x125)])return 0x1;if(!_0xfbc557[_0x1815b2(0x125)])return-0x1;if(_0x194d16['prerelease']===_0xfbc557[_0x1815b2(0x125)])return 0x0;return _0x194d16[_0x1815b2(0x125)]<_0xfbc557[_0x1815b2(0x125)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x33c6a0=a129_0x4667,_0x35f8e6=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x33c6a0(0x13c)]();return _0x35f8e6==='1'||_0x35f8e6===_0x33c6a0(0x143)||_0x35f8e6===_0x33c6a0(0x11f);}function cacheRoot(){const _0x2a8420=a129_0x4667;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2a8420(0x145));}export function getUpdateNoticeCachePath(){const _0xbffd3b=a129_0x4667;return join(cacheRoot(),_0xbffd3b(0x12d),_0xbffd3b(0x11b));}async function readUpdateNoticeCache(){const _0x4f66ad=a129_0x4667;try{const _0x139e11=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x193480=JSON['parse'](_0x139e11);if(!_0x193480||typeof _0x193480!==_0x4f66ad(0x121))return{};return _0x193480;}catch{return{};}}async function writeUpdateNoticeCache(_0x7e7c3f){const _0x37eecf=a129_0x4667;try{const _0x1bc498=getUpdateNoticeCachePath();await mkdir(dirname(_0x1bc498),{'recursive':!![]}),await writeFile(_0x1bc498,JSON[_0x37eecf(0x122)](_0x7e7c3f,null,0x2)+'\x0a',_0x37eecf(0x123));}catch{}}function isFreshCheck(_0x3d8b7c,_0x1b9f41){const _0x401453=a129_0x4667;return typeof _0x3d8b7c[_0x401453(0x13a)]===_0x401453(0x144)&&_0x1b9f41-_0x3d8b7c['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3b7485,_0x207397,_0x279d5b){const _0x3b818c=a129_0x4667;return _0x3b7485[_0x3b818c(0x132)]===_0x207397&&typeof _0x3b7485[_0x3b818c(0x127)]===_0x3b818c(0x144)&&_0x279d5b-_0x3b7485['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0xbd169=0x5dc){const _0x551a09=a129_0x4667;try{const _0xea2c=NPM_REGISTRY_BASE_URL+_0x551a09(0x13f)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x551a09(0x140),_0x543c93=await fetch(_0xea2c,{'signal':AbortSignal[_0x551a09(0x13d)](_0xbd169)});if(!_0x543c93['ok'])return null;const _0x2437d1=await _0x543c93[_0x551a09(0x13b)]();if(!_0x2437d1||typeof _0x2437d1!==_0x551a09(0x121))return null;return Object[_0x551a09(0x138)](Object[_0x551a09(0x120)](_0x2437d1)[_0x551a09(0x11d)](([,_0x250063])=>typeof _0x250063===_0x551a09(0x12e)&&_0x250063[_0x551a09(0x137)]())['map'](([_0x585ca2,_0x22f2d2])=>[_0x585ca2,String(_0x22f2d2)[_0x551a09(0x137)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x4ff711){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x4ff711;}export async function resolveLatestUpdateNotice(){const _0x86f6fb=a129_0x4667;if(isUpdateNoticeDisabled())return null;try{const _0x60923b=Date[_0x86f6fb(0x135)](),_0x2e9262=getCliVersion(),_0x4ff0bf=await readUpdateNoticeCache();let _0x3db6cc=isFreshCheck(_0x4ff0bf,_0x60923b)?_0x4ff0bf[_0x86f6fb(0x13e)]?.[_0x86f6fb(0x137)]():undefined;if(!_0x3db6cc&&!isFreshCheck(_0x4ff0bf,_0x60923b)){const _0x1afc1f=await fetchNpmDistTags();_0x3db6cc=_0x1afc1f?.[_0x86f6fb(0x13e)]?.[_0x86f6fb(0x137)](),await writeUpdateNoticeCache({..._0x4ff0bf,'checkedAt':_0x60923b,'latest':_0x3db6cc,'failed':!_0x3db6cc});}if(!_0x3db6cc||compareSemver(_0x2e9262,_0x3db6cc)>=0x0)return null;if(isRecentlyNotified(_0x4ff0bf,_0x3db6cc,_0x60923b))return null;const _0x1f9fdc=CLI_BIN_NAME+_0x86f6fb(0x146);return await writeUpdateNoticeCache({..._0x4ff0bf,'checkedAt':isFreshCheck(_0x4ff0bf,_0x60923b)?_0x4ff0bf[_0x86f6fb(0x13a)]:_0x60923b,'latest':_0x3db6cc,'failed':![],'lastNotifiedVersion':_0x3db6cc,'lastNotifiedAt':_0x60923b}),{'command':_0x1f9fdc,'current':_0x2e9262,'latest':_0x3db6cc,'url':buildNpmVersionUrl(_0x3db6cc),'message':CLI_BIN_NAME+'\x20'+_0x3db6cc+_0x86f6fb(0x139)+_0x2e9262+_0x86f6fb(0x142)+_0x1f9fdc};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x305d9c,_0x4920a7){const _0x2a30bb=a130_0x5aa0,_0x590d9b=_0x305d9c();while(!![]){try{const _0x18e40c=parseInt(_0x2a30bb(0xd5))/0x1+parseInt(_0x2a30bb(0xde))/0x2*(-parseInt(_0x2a30bb(0xda))/0x3)+-parseInt(_0x2a30bb(0xdb))/0x4*(parseInt(_0x2a30bb(0xdd))/0x5)+-parseInt(_0x2a30bb(0xd6))/0x6+parseInt(_0x2a30bb(0xd9))/0x7+parseInt(_0x2a30bb(0xd4))/0x8+-parseInt(_0x2a30bb(0xdc))/0x9*(-parseInt(_0x2a30bb(0xd8))/0xa);if(_0x18e40c===_0x4920a7)break;else _0x590d9b['push'](_0x590d9b['shift']());}catch(_0xb75485){_0x590d9b['push'](_0x590d9b['shift']());}}}(a130_0x2456,0xd25ef));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a130_0x2456(){const _0x200137=['unknown','33456KtnQiu','546308RSdSYz','5002596DLfIsW','slice','391480qzSxNz','2802464FlDlnY','3411SzlMLa','64oAbFAu','477OJGcRG','398290zktUXZ','98iIgZIW'];a130_0x2456=function(){return _0x200137;};return a130_0x2456();}export function getCliVersion(){return VERSION;}function a130_0x5aa0(_0x328dbb,_0x5667fd){_0x328dbb=_0x328dbb-0xd3;const _0x245653=a130_0x2456();let _0x5aa032=_0x245653[_0x328dbb];return _0x5aa032;}export function getCliGitCommit(){const _0xb45b8a=a130_0x5aa0,_0x1bc74d=String(GIT_COMMIT);return _0x1bc74d&&_0x1bc74d!==_0xb45b8a(0xd3)?_0x1bc74d:'';}export function getCliVersionDisplay(){const _0x5c111c=a130_0x5aa0,_0x1ca1d2=getCliGitCommit(),_0x4daf6e=BUILD_TIME[_0x5c111c(0xd7)](0x0,0xa);if(!_0x1ca1d2||!_0x4daf6e)return VERSION;return VERSION+'\x20('+_0x1ca1d2+',\x20'+_0x4daf6e+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe5d1a7,_0x11f7cc){var _0x1f4c68=a131_0x2d7e,_0x1cfebd=_0xe5d1a7();while(!![]){try{var _0x2137be=parseInt(_0x1f4c68(0xcb))/0x1+-parseInt(_0x1f4c68(0xc5))/0x2*(-parseInt(_0x1f4c68(0xc4))/0x3)+-parseInt(_0x1f4c68(0xca))/0x4+parseInt(_0x1f4c68(0xcc))/0x5+parseInt(_0x1f4c68(0xc9))/0x6*(-parseInt(_0x1f4c68(0xc3))/0x7)+parseInt(_0x1f4c68(0xc8))/0x8+parseInt(_0x1f4c68(0xc6))/0x9*(-parseInt(_0x1f4c68(0xc7))/0xa);if(_0x2137be===_0x11f7cc)break;else _0x1cfebd['push'](_0x1cfebd['shift']());}catch(_0x52e7cf){_0x1cfebd['push'](_0x1cfebd['shift']());}}}(a131_0x4836,0x60d7a));function a131_0x2d7e(_0x42ff90,_0x4ae3ff){_0x42ff90=_0x42ff90-0xc3;var _0x483622=a131_0x4836();var _0x2d7e38=_0x483622[_0x42ff90];return _0x2d7e38;}export function writeCliSideChannelLine(_0x2c0aaa){process['stderr']['write'](_0x2c0aaa+'\x0a');}function a131_0x4836(){var _0x3e4dd6=['335258CGrBwc','114QNOrGh','22808WLSsSK','4634046MHiejW','10fUftTH','4710552NtTouc','60JamFPU','796664shUuMW','158225FBcDZd','2046350BVNsdP'];a131_0x4836=function(){return _0x3e4dd6;};return a131_0x4836();}
|