@lovrabet/lovrabet-cli 2.1.22 → 2.1.23-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.d.ts +4 -8
- 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.d.ts +1 -16
- 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.d.ts +2 -2
- 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.d.ts +4 -8
- 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.d.ts +6 -24
- 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.d.ts +7 -0
- 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.d.ts +5 -5
- 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.d.ts +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.d.ts +2 -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/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(_0x1eb5fd,_0x48f76e){const _0x5667b7=a128_0x11e5,_0x5eb017=_0x1eb5fd();while(!![]){try{const _0x1b4c93=parseInt(_0x5667b7(0xe1))/0x1*(-parseInt(_0x5667b7(0xd6))/0x2)+parseInt(_0x5667b7(0xdf))/0x3*(-parseInt(_0x5667b7(0xe7))/0x4)+parseInt(_0x5667b7(0xe4))/0x5*(-parseInt(_0x5667b7(0xe9))/0x6)+parseInt(_0x5667b7(0xde))/0x7*(parseInt(_0x5667b7(0xd4))/0x8)+parseInt(_0x5667b7(0xec))/0x9+parseInt(_0x5667b7(0xdb))/0xa*(parseInt(_0x5667b7(0xdc))/0xb)+parseInt(_0x5667b7(0xf6))/0xc;if(_0x1b4c93===_0x48f76e)break;else _0x5eb017['push'](_0x5eb017['shift']());}catch(_0x2afb42){_0x5eb017['push'](_0x5eb017['shift']());}}}(a128_0x3fd2,0x769ed));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a128_0x11e5(_0x82f226,_0x10c349){_0x82f226=_0x82f226-0xd3;const _0x3fd260=a128_0x3fd2();let _0x11e5dd=_0x3fd260[_0x82f226];return _0x11e5dd;}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(_0x52056a){const _0x5ddd7a=a128_0x11e5,_0x1b2a69=_0x52056a[_0x5ddd7a(0xed)]()[_0x5ddd7a(0xf1)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1b2a69)return null;return{'major':Number(_0x1b2a69[0x1]),'minor':Number(_0x1b2a69[0x2]),'patch':Number(_0x1b2a69[0x3]),'prerelease':_0x1b2a69[0x4]};}function compareSemver(_0x8f09e9,_0x3f3926){const _0x176db1=a128_0x11e5,_0x5a55b1=parseSemver(_0x8f09e9),_0x4ea2d1=parseSemver(_0x3f3926);if(!_0x5a55b1||!_0x4ea2d1)throw new Error(_0x176db1(0xfb));for(const _0x19d4e9 of['major',_0x176db1(0xf5),_0x176db1(0xe3)]){if(_0x5a55b1[_0x19d4e9]<_0x4ea2d1[_0x19d4e9])return-0x1;if(_0x5a55b1[_0x19d4e9]>_0x4ea2d1[_0x19d4e9])return 0x1;}if(!_0x5a55b1[_0x176db1(0xd8)]&&!_0x4ea2d1[_0x176db1(0xd8)])return 0x0;if(!_0x5a55b1[_0x176db1(0xd8)])return 0x1;if(!_0x4ea2d1[_0x176db1(0xd8)])return-0x1;if(_0x5a55b1[_0x176db1(0xd8)]===_0x4ea2d1[_0x176db1(0xd8)])return 0x0;return _0x5a55b1[_0x176db1(0xd8)]<_0x4ea2d1[_0x176db1(0xd8)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x27d6ca=a128_0x11e5,_0xb93473=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x27d6ca(0xe6)]();return _0xb93473==='1'||_0xb93473===_0x27d6ca(0xfe)||_0xb93473==='yes';}function a128_0x3fd2(){const _0x482820=['/v/','toLowerCase','2846708lSmOLp','checkedAt','114TaQoOQ','lastNotifiedAt','lovrabet-cli','8396667sPxcLD','trim','parse','\x20update','number','match','/-/package/','string','\x20available,\x20current\x20','minor','7123812mBtmqz','/dist-tags','entries',',\x20run:\x20','update-check.json','Invalid\x20semver','latest','utf8','true','now','1224oRvUtF','object','1717132mSraFP','timeout','prerelease','filter','fromEntries','1878990awccpl','33IwZnxP','json','5327jfTbNp','3QjTWew','lastNotifiedVersion','1FPoEJv','stringify','patch','39640TOcJfJ'];a128_0x3fd2=function(){return _0x482820;};return a128_0x3fd2();}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x84bb40=a128_0x11e5;return join(cacheRoot(),_0x84bb40(0xeb),_0x84bb40(0xfa));}async function readUpdateNoticeCache(){const _0x3d7b89=a128_0x11e5;try{const _0x12d31d=await readFile(getUpdateNoticeCachePath(),_0x3d7b89(0xfd)),_0x4a9036=JSON[_0x3d7b89(0xee)](_0x12d31d);if(!_0x4a9036||typeof _0x4a9036!==_0x3d7b89(0xd5))return{};return _0x4a9036;}catch{return{};}}async function writeUpdateNoticeCache(_0x47d72d){const _0x4254df=a128_0x11e5;try{const _0x69a5e5=getUpdateNoticeCachePath();await mkdir(dirname(_0x69a5e5),{'recursive':!![]}),await writeFile(_0x69a5e5,JSON[_0x4254df(0xe2)](_0x47d72d,null,0x2)+'\x0a',_0x4254df(0xfd));}catch{}}function isFreshCheck(_0x42ef46,_0x201fc3){const _0x57245d=a128_0x11e5;return typeof _0x42ef46[_0x57245d(0xe8)]===_0x57245d(0xf0)&&_0x201fc3-_0x42ef46['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x370b13,_0x1f33d9,_0x561929){const _0x5244c7=a128_0x11e5;return _0x370b13[_0x5244c7(0xe0)]===_0x1f33d9&&typeof _0x370b13[_0x5244c7(0xea)]===_0x5244c7(0xf0)&&_0x561929-_0x370b13[_0x5244c7(0xea)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x23952b=0x5dc){const _0x5d4452=a128_0x11e5;try{const _0x31f9c8=NPM_REGISTRY_BASE_URL+_0x5d4452(0xf2)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x5d4452(0xf7),_0x28b764=await fetch(_0x31f9c8,{'signal':AbortSignal[_0x5d4452(0xd7)](_0x23952b)});if(!_0x28b764['ok'])return null;const _0x5812b=await _0x28b764[_0x5d4452(0xdd)]();if(!_0x5812b||typeof _0x5812b!=='object')return null;return Object[_0x5d4452(0xda)](Object[_0x5d4452(0xf8)](_0x5812b)[_0x5d4452(0xd9)](([,_0x539b6f])=>typeof _0x539b6f===_0x5d4452(0xf3)&&_0x539b6f[_0x5d4452(0xed)]())['map'](([_0x3f6746,_0x249722])=>[_0x3f6746,String(_0x249722)[_0x5d4452(0xed)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x599c38){const _0x56488f=a128_0x11e5;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x56488f(0xe5)+_0x599c38;}export async function resolveLatestUpdateNotice(){const _0x574a17=a128_0x11e5;if(isUpdateNoticeDisabled())return null;try{const _0x385013=Date[_0x574a17(0xd3)](),_0x1caa71=getCliVersion(),_0x3d7673=await readUpdateNoticeCache();let _0x2eddb8=isFreshCheck(_0x3d7673,_0x385013)?_0x3d7673[_0x574a17(0xfc)]?.[_0x574a17(0xed)]():undefined;if(!_0x2eddb8&&!isFreshCheck(_0x3d7673,_0x385013)){const _0xfb1e7e=await fetchNpmDistTags();_0x2eddb8=_0xfb1e7e?.['latest']?.[_0x574a17(0xed)](),await writeUpdateNoticeCache({..._0x3d7673,'checkedAt':_0x385013,'latest':_0x2eddb8,'failed':!_0x2eddb8});}if(!_0x2eddb8||compareSemver(_0x1caa71,_0x2eddb8)>=0x0)return null;if(isRecentlyNotified(_0x3d7673,_0x2eddb8,_0x385013))return null;const _0x2bcc6d=CLI_BIN_NAME+_0x574a17(0xef);return await writeUpdateNoticeCache({..._0x3d7673,'checkedAt':isFreshCheck(_0x3d7673,_0x385013)?_0x3d7673[_0x574a17(0xe8)]:_0x385013,'latest':_0x2eddb8,'failed':![],'lastNotifiedVersion':_0x2eddb8,'lastNotifiedAt':_0x385013}),{'command':_0x2bcc6d,'current':_0x1caa71,'latest':_0x2eddb8,'url':buildNpmVersionUrl(_0x2eddb8),'message':CLI_BIN_NAME+'\x20'+_0x2eddb8+_0x574a17(0xf4)+_0x1caa71+_0x574a17(0xf9)+_0x2bcc6d};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5719b5,_0x3335b8){const _0x159939=a129_0x17c4,_0x3c6288=_0x5719b5();while(!![]){try{const _0x237f7a=-parseInt(_0x159939(0xe6))/0x1+-parseInt(_0x159939(0xe7))/0x2*(-parseInt(_0x159939(0xe8))/0x3)+parseInt(_0x159939(0xef))/0x4*(parseInt(_0x159939(0xed))/0x5)+parseInt(_0x159939(0xe5))/0x6*(-parseInt(_0x159939(0xeb))/0x7)+parseInt(_0x159939(0xee))/0x8+-parseInt(_0x159939(0xf0))/0x9*(-parseInt(_0x159939(0xec))/0xa)+parseInt(_0x159939(0xe9))/0xb;if(_0x237f7a===_0x3335b8)break;else _0x3c6288['push'](_0x3c6288['shift']());}catch(_0x2603fe){_0x3c6288['push'](_0x3c6288['shift']());}}}(a129_0x2951,0xc2234));function a129_0x17c4(_0x5da219,_0x313995){_0x5da219=_0x5da219-0xe5;const _0x295138=a129_0x2951();let _0x17c42d=_0x295138[_0x5da219];return _0x17c42d;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a129_0x2951(){const _0x4ec9bb=['136870GWxolE','5jlZQzC','7270512vNGPOX','1807532jQBfGW','63abYeKj','44394qEsewW','1007347wNBRLo','292212wyuXvl','6htMavG','13614227BrPShJ','unknown','1120mASSlL'];a129_0x2951=function(){return _0x4ec9bb;};return a129_0x2951();}export function getCliGitCommit(){const _0x39252e=a129_0x17c4,_0x13ef23=String(GIT_COMMIT);return _0x13ef23&&_0x13ef23!==_0x39252e(0xea)?_0x13ef23:'';}export function getCliVersionDisplay(){const _0x21192a=getCliGitCommit(),_0x18dd85=BUILD_TIME['slice'](0x0,0xa);if(!_0x21192a||!_0x18dd85)return VERSION;return VERSION+'\x20('+_0x21192a+',\x20'+_0x18dd85+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a130_0x3953(_0x3fe05f,_0x228e1a){_0x3fe05f=_0x3fe05f-0x1a9;var _0x36faf0=a130_0x36fa();var _0x3953d3=_0x36faf0[_0x3fe05f];return _0x3953d3;}(function(_0x63dcda,_0x3ae600){var _0x28c0cb=a130_0x3953,_0x227108=_0x63dcda();while(!![]){try{var _0x478bc5=parseInt(_0x28c0cb(0x1b0))/0x1*(parseInt(_0x28c0cb(0x1af))/0x2)+-parseInt(_0x28c0cb(0x1b4))/0x3+parseInt(_0x28c0cb(0x1ab))/0x4*(-parseInt(_0x28c0cb(0x1b2))/0x5)+parseInt(_0x28c0cb(0x1b3))/0x6+-parseInt(_0x28c0cb(0x1b1))/0x7+-parseInt(_0x28c0cb(0x1ae))/0x8+-parseInt(_0x28c0cb(0x1a9))/0x9*(-parseInt(_0x28c0cb(0x1aa))/0xa);if(_0x478bc5===_0x3ae600)break;else _0x227108['push'](_0x227108['shift']());}catch(_0x335a89){_0x227108['push'](_0x227108['shift']());}}}(a130_0x36fa,0xb0513));function a130_0x36fa(){var _0x42097f=['write','stderr','5490080RClgIG','114438ZGGRSg','6dzKsLE','9218783ZSZFqK','160uhdRuN','2702262FCQzcW','330042YYVbvG','171FJAHqc','1572170tvpmEI','118172jbjXXu'];a130_0x36fa=function(){return _0x42097f;};return a130_0x36fa();}export function writeCliSideChannelLine(_0x5e5aee){var _0x467bb5=a130_0x3953;process[_0x467bb5(0x1ad)][_0x467bb5(0x1ac)](_0x5e5aee+'\x0a');}
|