@lovrabet/lovrabet-cli 2.2.1-beta.1 → 2.2.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/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/postinstall.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/builtin-skill.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
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x1ab7(_0x11729b,_0xbbda0b){_0x11729b=_0x11729b-0xf8;const _0x54741f=a129_0x5474();let _0x1ab7aa=_0x54741f[_0x11729b];return _0x1ab7aa;}(function(_0x284dc2,_0x2022b9){const _0x489839=a129_0x1ab7,_0x3f4e58=_0x284dc2();while(!![]){try{const _0x464add=parseInt(_0x489839(0x10b))/0x1*(-parseInt(_0x489839(0x105))/0x2)+-parseInt(_0x489839(0x102))/0x3*(parseInt(_0x489839(0x114))/0x4)+parseInt(_0x489839(0x10a))/0x5+-parseInt(_0x489839(0xfb))/0x6+parseInt(_0x489839(0x112))/0x7+parseInt(_0x489839(0x100))/0x8+-parseInt(_0x489839(0xfd))/0x9*(-parseInt(_0x489839(0xff))/0xa);if(_0x464add===_0x2022b9)break;else _0x3f4e58['push'](_0x3f4e58['shift']());}catch(_0x1bf918){_0x3f4e58['push'](_0x3f4e58['shift']());}}}(a129_0x5474,0x8fc83));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x190c8e){const _0x2121c8=a129_0x1ab7;if(!_0x190c8e)return undefined;try{return parseLosslessJson(_0x190c8e);}catch{throw CliErrors[_0x2121c8(0xfa)](_0x2121c8(0x113)+_0x190c8e);}}export function parseJsonParamsValue(_0x57e2c8){if(!_0x57e2c8)return undefined;try{return parseLosslessJson(_0x57e2c8);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x57e2c8);}}export function parseBatchCreateItemsFromParams(_0x5b56b3){const _0x117b0f=a129_0x1ab7;if(Array[_0x117b0f(0x115)](_0x5b56b3))return _0x5b56b3;if(_0x5b56b3!==null&&_0x5b56b3!==undefined&&typeof _0x5b56b3===_0x117b0f(0x101)&&Array[_0x117b0f(0x115)](_0x5b56b3['items']))return _0x5b56b3[_0x117b0f(0xfe)];throw CliErrors[_0x117b0f(0xfa)](_0x117b0f(0x117),_0x117b0f(0xf9));}function parseDataUpdateId(_0x576673,_0x3d348b){const _0x33d76a=a129_0x1ab7;if(typeof _0x576673===_0x33d76a(0x111)&&Number[_0x33d76a(0x116)](_0x576673)&&_0x576673>0x0)return _0x576673;if(typeof _0x576673===_0x33d76a(0x109)){if(/^[1-9]\d*$/[_0x33d76a(0x10c)](_0x576673))return _0x576673;}throw CliErrors[_0x33d76a(0xfa)](_0x33d76a(0xfc)+_0x3d348b+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x389a3c){const _0x44aca1=a129_0x1ab7;if(_0x389a3c===null||_0x389a3c===undefined||typeof _0x389a3c!==_0x44aca1(0x101)||Array[_0x44aca1(0x115)](_0x389a3c))throw CliErrors[_0x44aca1(0xfa)](_0x44aca1(0x10d),_0x44aca1(0x10f));const _0x49d568=_0x389a3c['id'];if(_0x49d568===undefined||_0x49d568===null)throw CliErrors[_0x44aca1(0xfa)](_0x44aca1(0xf8),_0x44aca1(0x10f));const _0x508190=Array[_0x44aca1(0x115)](_0x49d568)?_0x49d568:[_0x49d568];if(_0x508190['length']===0x0)throw CliErrors[_0x44aca1(0xfa)](_0x44aca1(0x103));if(_0x508190[_0x44aca1(0x110)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x44aca1(0xfa)](_0x44aca1(0x106)+MAX_DATA_UPDATE_IDS+_0x44aca1(0x10e)+_0x508190[_0x44aca1(0x110)]+'.');return _0x508190[_0x44aca1(0x104)]((_0x48730,_0xbe6929)=>parseDataUpdateId(_0x48730,Array[_0x44aca1(0x115)](_0x49d568)?_0x44aca1(0x107)+_0xbe6929+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x42df27,_0x4a4899){const _0x14d365=a129_0x1ab7;if(Array[_0x14d365(0x115)](_0x42df27['id'])&&_0x4a4899[_0x14d365(0x110)]>0x1)return{..._0x42df27,'id':_0x4a4899[_0x14d365(0x108)](',')};return _0x42df27;}function a129_0x5474(){const _0x11f817=['1889636ihXLRQ','Invalid\x20JSON\x20for\x20--params:\x20','4669712yGLNXX','isArray','isSafeInteger','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','validation','4740390EgVqIp','data\x20update\x20--params.','18277083ypfKUO','items','10DoMeVu','9398592ruvJCc','object','3TPyTMd','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','map','14458qYvXvp','data\x20update\x20can\x20update\x20at\x20most\x20','id[','join','string','378480hqGQSY','139nhOLaa','test','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','\x20records\x20per\x20call;\x20received\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','length','number'];a129_0x5474=function(){return _0x11f817;};return a129_0x5474();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a130_0x4316(_0x53ec3e,_0x37067c){_0x53ec3e=_0x53ec3e-0x1db;const _0x5ed329=a130_0x5ed3();let _0x431655=_0x5ed329[_0x53ec3e];return _0x431655;}const a130_0x175e9d=a130_0x4316;(function(_0x4be2d1,_0x36087f){const _0x2cab7e=a130_0x4316,_0x4ed378=_0x4be2d1();while(!![]){try{const _0x33d7d1=parseInt(_0x2cab7e(0x1e1))/0x1+parseInt(_0x2cab7e(0x1df))/0x2+parseInt(_0x2cab7e(0x1db))/0x3*(parseInt(_0x2cab7e(0x1dc))/0x4)+parseInt(_0x2cab7e(0x1e7))/0x5+parseInt(_0x2cab7e(0x1e5))/0x6*(-parseInt(_0x2cab7e(0x1e2))/0x7)+parseInt(_0x2cab7e(0x1e0))/0x8*(-parseInt(_0x2cab7e(0x1e3))/0x9)+parseInt(_0x2cab7e(0x1dd))/0xa;if(_0x33d7d1===_0x36087f)break;else _0x4ed378['push'](_0x4ed378['shift']());}catch(_0x43e366){_0x4ed378['push'](_0x4ed378['shift']());}}}(a130_0x5ed3,0xc81ee));export const isWindows=process[a130_0x175e9d(0x1de)]===a130_0x175e9d(0x1e6);export function resolveNpmBin(_0x11429b){const _0x39e79e=a130_0x175e9d;return isWindows?_0x11429b+_0x39e79e(0x1e4):_0x11429b;}function a130_0x5ed3(){const _0x138b4a=['419308KWOtrW','898093fMcyur','9piSjmm','.cmd','18rqTaAv','win32','1024115bVFgmq','3UasyzV','643508LipAnl','2808930HnroRW','platform','1196054tZIBxL','3674696YJPQYb'];a130_0x5ed3=function(){return _0x138b4a;};return a130_0x5ed3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2afe9f,_0x32437b){const _0xc12af7=a131_0x4d83,_0x16e295=_0x2afe9f();while(!![]){try{const _0x4a10b5=parseInt(_0xc12af7(0x1ea))/0x1+parseInt(_0xc12af7(0x1f1))/0x2*(parseInt(_0xc12af7(0x1d3))/0x3)+parseInt(_0xc12af7(0x1ee))/0x4+-parseInt(_0xc12af7(0x1cb))/0x5*(parseInt(_0xc12af7(0x1e3))/0x6)+-parseInt(_0xc12af7(0x1c9))/0x7+-parseInt(_0xc12af7(0x1d0))/0x8*(-parseInt(_0xc12af7(0x1e4))/0x9)+-parseInt(_0xc12af7(0x1df))/0xa;if(_0x4a10b5===_0x32437b)break;else _0x16e295['push'](_0x16e295['shift']());}catch(_0x311631){_0x16e295['push'](_0x16e295['shift']());}}}(a131_0x3690,0x9ff5f));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(_0x32b43b){const _0x1a2bae=a131_0x4d83,_0xcea0d1=_0x32b43b['trim']()[_0x1a2bae(0x1d8)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xcea0d1)return null;return{'major':Number(_0xcea0d1[0x1]),'minor':Number(_0xcea0d1[0x2]),'patch':Number(_0xcea0d1[0x3]),'prerelease':_0xcea0d1[0x4]};}function compareSemver(_0x3c8293,_0x1bcfb3){const _0x1d9913=a131_0x4d83,_0x5786a8=parseSemver(_0x3c8293),_0x57ae64=parseSemver(_0x1bcfb3);if(!_0x5786a8||!_0x57ae64)throw new Error(_0x1d9913(0x1cd));for(const _0xf0e73e of['major',_0x1d9913(0x1ca),_0x1d9913(0x1c8)]){if(_0x5786a8[_0xf0e73e]<_0x57ae64[_0xf0e73e])return-0x1;if(_0x5786a8[_0xf0e73e]>_0x57ae64[_0xf0e73e])return 0x1;}if(!_0x5786a8[_0x1d9913(0x1d5)]&&!_0x57ae64[_0x1d9913(0x1d5)])return 0x0;if(!_0x5786a8[_0x1d9913(0x1d5)])return 0x1;if(!_0x57ae64['prerelease'])return-0x1;if(_0x5786a8['prerelease']===_0x57ae64[_0x1d9913(0x1d5)])return 0x0;return _0x5786a8[_0x1d9913(0x1d5)]<_0x57ae64[_0x1d9913(0x1d5)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x5c78de=a131_0x4d83,_0x50ebea=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x5c78de(0x1db)]()[_0x5c78de(0x1ed)]();return _0x50ebea==='1'||_0x50ebea===_0x5c78de(0x1da)||_0x50ebea===_0x5c78de(0x1de);}function a131_0x3690(){const _0x25eb0f=['3KPVdBs','\x20available,\x20current\x20','prerelease','/v/','fromEntries','match','update-check.json','true','trim','number','.cache','yes','9755400FffgBa','\x20update','/-/package/','parse','48czZeor','9BQCMzH','filter','lastNotifiedAt','utf8','entries','string','1117041oklHgr','stringify','checkedAt','toLowerCase','1703304hIqphM','/dist-tags',',\x20run:\x20','2328242DNZalM','now','timeout','patch','1805552QOCFjm','minor','555600SLnZFh','lovrabet-cli','Invalid\x20semver','json','object','565176OzpPJH','latest','https://www.npmjs.com/package/'];a131_0x3690=function(){return _0x25eb0f;};return a131_0x3690();}function cacheRoot(){const _0x2f9775=a131_0x4d83;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2f9775(0x1dd));}export function getUpdateNoticeCachePath(){const _0x51a330=a131_0x4d83;return join(cacheRoot(),_0x51a330(0x1cc),_0x51a330(0x1d9));}async function readUpdateNoticeCache(){const _0x17179c=a131_0x4d83;try{const _0x5f1eb9=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x59dbb4=JSON[_0x17179c(0x1e2)](_0x5f1eb9);if(!_0x59dbb4||typeof _0x59dbb4!==_0x17179c(0x1cf))return{};return _0x59dbb4;}catch{return{};}}async function writeUpdateNoticeCache(_0x535323){const _0x4319ed=a131_0x4d83;try{const _0x275660=getUpdateNoticeCachePath();await mkdir(dirname(_0x275660),{'recursive':!![]}),await writeFile(_0x275660,JSON[_0x4319ed(0x1eb)](_0x535323,null,0x2)+'\x0a',_0x4319ed(0x1e7));}catch{}}function isFreshCheck(_0x1e6051,_0x4bc637){const _0x5148ca=a131_0x4d83;return typeof _0x1e6051[_0x5148ca(0x1ec)]==='number'&&_0x4bc637-_0x1e6051[_0x5148ca(0x1ec)]<UPDATE_CHECK_TTL_MS;}function a131_0x4d83(_0x3f0af8,_0x51bab4){_0x3f0af8=_0x3f0af8-0x1c7;const _0x36902f=a131_0x3690();let _0x4d8300=_0x36902f[_0x3f0af8];return _0x4d8300;}function isRecentlyNotified(_0x7aa077,_0x2e751d,_0x1e8084){const _0x3f1195=a131_0x4d83;return _0x7aa077['lastNotifiedVersion']===_0x2e751d&&typeof _0x7aa077[_0x3f1195(0x1e6)]===_0x3f1195(0x1dc)&&_0x1e8084-_0x7aa077['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x5134dc=0x5dc){const _0x3775ee=a131_0x4d83;try{const _0x24ca2a=NPM_REGISTRY_BASE_URL+_0x3775ee(0x1e1)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3775ee(0x1ef),_0x4475c9=await fetch(_0x24ca2a,{'signal':AbortSignal[_0x3775ee(0x1c7)](_0x5134dc)});if(!_0x4475c9['ok'])return null;const _0x268136=await _0x4475c9[_0x3775ee(0x1ce)]();if(!_0x268136||typeof _0x268136!==_0x3775ee(0x1cf))return null;return Object[_0x3775ee(0x1d7)](Object[_0x3775ee(0x1e8)](_0x268136)[_0x3775ee(0x1e5)](([,_0x51e9f9])=>typeof _0x51e9f9===_0x3775ee(0x1e9)&&_0x51e9f9[_0x3775ee(0x1db)]())['map'](([_0x93df7e,_0x3fbd0d])=>[_0x93df7e,String(_0x3fbd0d)[_0x3775ee(0x1db)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x25805d){const _0x23f00e=a131_0x4d83;return _0x23f00e(0x1d2)+LOVRABET_NPM_PACKAGE_NAME+_0x23f00e(0x1d6)+_0x25805d;}export async function resolveLatestUpdateNotice(){const _0x5273c8=a131_0x4d83;if(isUpdateNoticeDisabled())return null;try{const _0x3a4e77=Date[_0x5273c8(0x1f2)](),_0x1f908f=getCliVersion(),_0x595688=await readUpdateNoticeCache();let _0x37cfa3=isFreshCheck(_0x595688,_0x3a4e77)?_0x595688[_0x5273c8(0x1d1)]?.['trim']():undefined;if(!_0x37cfa3&&!isFreshCheck(_0x595688,_0x3a4e77)){const _0x126cee=await fetchNpmDistTags();_0x37cfa3=_0x126cee?.[_0x5273c8(0x1d1)]?.['trim'](),await writeUpdateNoticeCache({..._0x595688,'checkedAt':_0x3a4e77,'latest':_0x37cfa3,'failed':!_0x37cfa3});}if(!_0x37cfa3||compareSemver(_0x1f908f,_0x37cfa3)>=0x0)return null;if(isRecentlyNotified(_0x595688,_0x37cfa3,_0x3a4e77))return null;const _0x24050b=CLI_BIN_NAME+_0x5273c8(0x1e0);return await writeUpdateNoticeCache({..._0x595688,'checkedAt':isFreshCheck(_0x595688,_0x3a4e77)?_0x595688['checkedAt']:_0x3a4e77,'latest':_0x37cfa3,'failed':![],'lastNotifiedVersion':_0x37cfa3,'lastNotifiedAt':_0x3a4e77}),{'command':_0x24050b,'current':_0x1f908f,'latest':_0x37cfa3,'url':buildNpmVersionUrl(_0x37cfa3),'message':CLI_BIN_NAME+'\x20'+_0x37cfa3+_0x5273c8(0x1d4)+_0x1f908f+_0x5273c8(0x1f0)+_0x24050b};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47255b,_0x5795dd){const _0x333d8b=a132_0x4b5d,_0x4a86a4=_0x47255b();while(!![]){try{const _0x44e79c=parseInt(_0x333d8b(0x17e))/0x1*(parseInt(_0x333d8b(0x176))/0x2)+parseInt(_0x333d8b(0x177))/0x3*(-parseInt(_0x333d8b(0x178))/0x4)+-parseInt(_0x333d8b(0x179))/0x5+-parseInt(_0x333d8b(0x17a))/0x6*(-parseInt(_0x333d8b(0x17b))/0x7)+-parseInt(_0x333d8b(0x175))/0x8+-parseInt(_0x333d8b(0x17c))/0x9+parseInt(_0x333d8b(0x17d))/0xa;if(_0x44e79c===_0x5795dd)break;else _0x4a86a4['push'](_0x4a86a4['shift']());}catch(_0x42ed4e){_0x4a86a4['push'](_0x4a86a4['shift']());}}}(a132_0x75d6,0x225ff));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a132_0x4b5d(_0x533e96,_0x2a58ab){_0x533e96=_0x533e96-0x174;const _0x75d60b=a132_0x75d6();let _0x4b5d74=_0x75d60b[_0x533e96];return _0x4b5d74;}export function getCliVersion(){return VERSION;}function a132_0x75d6(){const _0x56e481=['6320280bdvEcx','51243nRCBGT','unknown','1875352CUPmox','2LTubED','606780oXezBE','4dWygvL','1058295nLjzwR','15474YxQLyq','308rtqPoj','68490lOGKNM'];a132_0x75d6=function(){return _0x56e481;};return a132_0x75d6();}export function getCliGitCommit(){const _0x59dbd6=a132_0x4b5d,_0x118cd6=String(GIT_COMMIT);return _0x118cd6&&_0x118cd6!==_0x59dbd6(0x174)?_0x118cd6:'';}export function getCliVersionDisplay(){const _0xace073=getCliGitCommit(),_0x2812df=BUILD_TIME['slice'](0x0,0xa);if(!_0xace073||!_0x2812df)return VERSION;return VERSION+'\x20('+_0xace073+',\x20'+_0x2812df+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25116f,_0x559a85){var _0x2f97d1=a133_0x219e,_0x5cfa18=_0x25116f();while(!![]){try{var _0x4e68f0=parseInt(_0x2f97d1(0xec))/0x1*(-parseInt(_0x2f97d1(0xee))/0x2)+-parseInt(_0x2f97d1(0xe9))/0x3+-parseInt(_0x2f97d1(0xe7))/0x4+-parseInt(_0x2f97d1(0xe5))/0x5+parseInt(_0x2f97d1(0xe3))/0x6*(parseInt(_0x2f97d1(0xe8))/0x7)+-parseInt(_0x2f97d1(0xea))/0x8+parseInt(_0x2f97d1(0xed))/0x9*(parseInt(_0x2f97d1(0xe6))/0xa);if(_0x4e68f0===_0x559a85)break;else _0x5cfa18['push'](_0x5cfa18['shift']());}catch(_0x3cbeb1){_0x5cfa18['push'](_0x5cfa18['shift']());}}}(a133_0x53fb,0x4d7f4));function a133_0x219e(_0x19e46d,_0x78fede){_0x19e46d=_0x19e46d-0xe3;var _0x53fb97=a133_0x53fb();var _0x219eb4=_0x53fb97[_0x19e46d];return _0x219eb4;}export function writeCliSideChannelLine(_0x4f1dbe){var _0x4b4da2=a133_0x219e;process[_0x4b4da2(0xeb)][_0x4b4da2(0xe4)](_0x4f1dbe+'\x0a');}function a133_0x53fb(){var _0x538106=['30zTTveX','923444QwTtrw','28myzkvY','1304187EgIuhZ','3317520EgLgUs','stderr','1IYIvjm','6736221KfNTwJ','1030894gHRHsT','134868JMivBG','write','2110820tBqiTS'];a133_0x53fb=function(){return _0x538106;};return a133_0x53fb();}
|
package/package.json
CHANGED
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.2.1
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、Custom SQL/Backend Function、personal BFF、文件上传、OCR 识别、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、service tree、业务服务树、api-doc、dataset、data filter、file upload、file query-url、ocr recognize、发票识别、图片识别、附件上传、personal-bff、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.2.1
|
|
6
|
-
"skillVersion": "2.2.1
|
|
5
|
+
"packageVersion": "2.2.1",
|
|
6
|
+
"skillVersion": "2.2.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"references/lovrabet-update.md",
|
|
35
35
|
"references/lovrabet-workspace.md"
|
|
36
36
|
],
|
|
37
|
-
"digest": "
|
|
37
|
+
"digest": "48b19fa759faf4570c3ba1ad3066159b5a2b5a4978a112d1c112ccc0f6d13920"
|
|
38
38
|
}
|