@lovrabet/lovrabet-cli 2.2.3-beta.2 → 2.2.3
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/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.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 a131_0x527a(){const _0x1730be=['length','Invalid\x20JSON\x20for\x20--params:\x20','4982944RKslgT','join','isSafeInteger','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','items','id[','1156458MSXPXX','\x20records\x20per\x20call;\x20received\x20','number','61092828RcvTIh','4972389CdSrfZ','map','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','data\x20update\x20--params.','validation','364zCrabK','9128bgQvfI','isArray','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','96040UxnIjO','object','string','1915546BxmLUf','7158LSsohg','test','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27'];a131_0x527a=function(){return _0x1730be;};return a131_0x527a();}(function(_0x4cbc5c,_0x463680){const _0x82ca=a131_0x3b3f,_0x5df818=_0x4cbc5c();while(!![]){try{const _0x2be2d9=parseInt(_0x82ca(0x1c6))/0x1+parseInt(_0x82ca(0x1d6))/0x2+parseInt(_0x82ca(0x1ca))/0x3+-parseInt(_0x82ca(0x1cf))/0x4*(-parseInt(_0x82ca(0x1d3))/0x5)+-parseInt(_0x82ca(0x1d7))/0x6*(-parseInt(_0x82ca(0x1d0))/0x7)+parseInt(_0x82ca(0x1c0))/0x8+-parseInt(_0x82ca(0x1c9))/0x9;if(_0x2be2d9===_0x463680)break;else _0x5df818['push'](_0x5df818['shift']());}catch(_0x56e00d){_0x5df818['push'](_0x5df818['shift']());}}}(a131_0x527a,0xde2f6));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x2588df){const _0x46c763=a131_0x3b3f;if(!_0x2588df)return undefined;try{return parseLosslessJson(_0x2588df);}catch{throw CliErrors['validation'](_0x46c763(0x1bf)+_0x2588df);}}export function parseJsonParamsValue(_0x26f86c){const _0x201bca=a131_0x3b3f;if(!_0x26f86c)return undefined;try{return parseLosslessJson(_0x26f86c);}catch{throw CliErrors[_0x201bca(0x1ce)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x26f86c);}}export function parseBatchCreateItemsFromParams(_0x12028b){const _0x24c502=a131_0x3b3f;if(Array[_0x24c502(0x1d1)](_0x12028b))return _0x12028b;if(_0x12028b!==null&&_0x12028b!==undefined&&typeof _0x12028b===_0x24c502(0x1d4)&&Array[_0x24c502(0x1d1)](_0x12028b[_0x24c502(0x1c4)]))return _0x12028b[_0x24c502(0x1c4)];throw CliErrors[_0x24c502(0x1ce)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0x2e21e0,_0x5e16f1){const _0x2d5dda=a131_0x3b3f;if(typeof _0x2e21e0===_0x2d5dda(0x1c8)&&Number[_0x2d5dda(0x1c2)](_0x2e21e0)&&_0x2e21e0>0x0)return _0x2e21e0;if(typeof _0x2e21e0===_0x2d5dda(0x1d5)){if(/^[1-9]\d*$/[_0x2d5dda(0x1bb)](_0x2e21e0))return _0x2e21e0;}throw CliErrors[_0x2d5dda(0x1ce)](_0x2d5dda(0x1cd)+_0x5e16f1+_0x2d5dda(0x1c3));}function a131_0x3b3f(_0x565a3e,_0x1f242a){_0x565a3e=_0x565a3e-0x1bb;const _0x527aba=a131_0x527a();let _0x3b3fe5=_0x527aba[_0x565a3e];return _0x3b3fe5;}export function parseUpdateIdsFromParams(_0x1d6df8){const _0x1f6d55=a131_0x3b3f;if(_0x1d6df8===null||_0x1d6df8===undefined||typeof _0x1d6df8!==_0x1f6d55(0x1d4)||Array[_0x1f6d55(0x1d1)](_0x1d6df8))throw CliErrors['validation'](_0x1f6d55(0x1d2),_0x1f6d55(0x1bd));const _0x1b2197=_0x1d6df8['id'];if(_0x1b2197===undefined||_0x1b2197===null)throw CliErrors[_0x1f6d55(0x1ce)](_0x1f6d55(0x1bc),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x482225=Array['isArray'](_0x1b2197)?_0x1b2197:[_0x1b2197];if(_0x482225[_0x1f6d55(0x1be)]===0x0)throw CliErrors[_0x1f6d55(0x1ce)](_0x1f6d55(0x1cc));if(_0x482225[_0x1f6d55(0x1be)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x1f6d55(0x1ce)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x1f6d55(0x1c7)+_0x482225['length']+'.');return _0x482225[_0x1f6d55(0x1cb)]((_0x41f3d8,_0x5b6809)=>parseDataUpdateId(_0x41f3d8,Array[_0x1f6d55(0x1d1)](_0x1b2197)?_0x1f6d55(0x1c5)+_0x5b6809+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x41e3a0,_0x307236){const _0x24a1be=a131_0x3b3f;if(Array[_0x24a1be(0x1d1)](_0x41e3a0['id'])&&_0x307236[_0x24a1be(0x1be)]>0x1)return{..._0x41e3a0,'id':_0x307236[_0x24a1be(0x1c1)](',')};return _0x41e3a0;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x433aa1=a132_0x2e15;(function(_0x2b0cd3,_0x323f87){const _0x3483aa=a132_0x2e15,_0x4a4444=_0x2b0cd3();while(!![]){try{const _0x2cda10=parseInt(_0x3483aa(0x148))/0x1*(parseInt(_0x3483aa(0x146))/0x2)+-parseInt(_0x3483aa(0x14c))/0x3+parseInt(_0x3483aa(0x14d))/0x4*(parseInt(_0x3483aa(0x147))/0x5)+parseInt(_0x3483aa(0x149))/0x6*(parseInt(_0x3483aa(0x144))/0x7)+parseInt(_0x3483aa(0x14b))/0x8+-parseInt(_0x3483aa(0x14f))/0x9+-parseInt(_0x3483aa(0x143))/0xa;if(_0x2cda10===_0x323f87)break;else _0x4a4444['push'](_0x4a4444['shift']());}catch(_0x57c205){_0x4a4444['push'](_0x4a4444['shift']());}}}(a132_0x5e45,0x234c6));function a132_0x5e45(){const _0x36c6e6=['1523250thpXUd','381353rrTKmX','win32','270046XxhdpP','1120295glPDed','1JwhnAX','12uXjnci','.cmd','1544904aQYziQ','341121eHqoIu','4scBiMS','platform','2254851ZZYcLw'];a132_0x5e45=function(){return _0x36c6e6;};return a132_0x5e45();}function a132_0x2e15(_0x3e1ade,_0xc1ab16){_0x3e1ade=_0x3e1ade-0x143;const _0x5e45a2=a132_0x5e45();let _0x2e1509=_0x5e45a2[_0x3e1ade];return _0x2e1509;}export const isWindows=process[a132_0x433aa1(0x14e)]===a132_0x433aa1(0x145);export function resolveNpmBin(_0x535866){const _0x52777c=a132_0x433aa1;return isWindows?_0x535866+_0x52777c(0x14a):_0x535866;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a133_0x3b78(){const _0x106e6c=['Invalid\x20semver',',\x20run:\x20','30920XvpoVw','stringify','parse','true','https://www.npmjs.com/package/','major','match','patch','json','4UwCVNp','toLowerCase','625342BBrWHj','3519402nyiRsk','6322168lDLgGN','map','5157gkiqYO','1022320fHtBZO','entries','checkedAt','/dist-tags','filter','string','\x20update','.cache','1615910yWRzGr','\x20available,\x20current\x20','object','7OiCMBr','lastNotifiedVersion','number','utf8','/v/','prerelease','fromEntries','1828665xPGSIc','minor','update-check.json','lastNotifiedAt','trim'];a133_0x3b78=function(){return _0x106e6c;};return a133_0x3b78();}(function(_0x3f408e,_0x583887){const _0x483fcd=a133_0x185b,_0x4bb5a7=_0x3f408e();while(!![]){try{const _0xfb3f02=parseInt(_0x483fcd(0x121))/0x1+parseInt(_0x483fcd(0x126))/0x2+-parseInt(_0x483fcd(0x138))/0x3*(-parseInt(_0x483fcd(0x11f))/0x4)+parseInt(_0x483fcd(0x12e))/0x5+-parseInt(_0x483fcd(0x122))/0x6+parseInt(_0x483fcd(0x131))/0x7*(parseInt(_0x483fcd(0x123))/0x8)+parseInt(_0x483fcd(0x125))/0x9*(-parseInt(_0x483fcd(0x116))/0xa);if(_0xfb3f02===_0x583887)break;else _0x4bb5a7['push'](_0x4bb5a7['shift']());}catch(_0x33b6ac){_0x4bb5a7['push'](_0x4bb5a7['shift']());}}}(a133_0x3b78,0x7a5eb));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 a133_0x185b(_0x102e4f,_0xc1b057){_0x102e4f=_0x102e4f-0x116;const _0x3b78d2=a133_0x3b78();let _0x185b54=_0x3b78d2[_0x102e4f];return _0x185b54;}function parseSemver(_0x3df74e){const _0x2dcbcd=a133_0x185b,_0x124d63=_0x3df74e[_0x2dcbcd(0x13c)]()[_0x2dcbcd(0x11c)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x124d63)return null;return{'major':Number(_0x124d63[0x1]),'minor':Number(_0x124d63[0x2]),'patch':Number(_0x124d63[0x3]),'prerelease':_0x124d63[0x4]};}function compareSemver(_0x2d1837,_0x2774e0){const _0x44c2b2=a133_0x185b,_0x36a3a9=parseSemver(_0x2d1837),_0x92e68e=parseSemver(_0x2774e0);if(!_0x36a3a9||!_0x92e68e)throw new Error(_0x44c2b2(0x13d));for(const _0x1ebcce of[_0x44c2b2(0x11b),_0x44c2b2(0x139),_0x44c2b2(0x11d)]){if(_0x36a3a9[_0x1ebcce]<_0x92e68e[_0x1ebcce])return-0x1;if(_0x36a3a9[_0x1ebcce]>_0x92e68e[_0x1ebcce])return 0x1;}if(!_0x36a3a9['prerelease']&&!_0x92e68e['prerelease'])return 0x0;if(!_0x36a3a9['prerelease'])return 0x1;if(!_0x92e68e[_0x44c2b2(0x136)])return-0x1;if(_0x36a3a9['prerelease']===_0x92e68e['prerelease'])return 0x0;return _0x36a3a9[_0x44c2b2(0x136)]<_0x92e68e[_0x44c2b2(0x136)]?-0x1:0x1;}function isUpdateNoticeDisabled(){const _0x341465=a133_0x185b,_0x1e7f27=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x341465(0x13c)]()[_0x341465(0x120)]();return _0x1e7f27==='1'||_0x1e7f27===_0x341465(0x119)||_0x1e7f27==='yes';}function cacheRoot(){const _0x5b0082=a133_0x185b;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5b0082(0x12d));}export function getUpdateNoticeCachePath(){const _0x250e24=a133_0x185b;return join(cacheRoot(),'lovrabet-cli',_0x250e24(0x13a));}async function readUpdateNoticeCache(){const _0x300f91=a133_0x185b;try{const _0x38bb99=await readFile(getUpdateNoticeCachePath(),_0x300f91(0x134)),_0x4f6d2b=JSON[_0x300f91(0x118)](_0x38bb99);if(!_0x4f6d2b||typeof _0x4f6d2b!==_0x300f91(0x130))return{};return _0x4f6d2b;}catch{return{};}}async function writeUpdateNoticeCache(_0x14abc5){const _0x21d730=a133_0x185b;try{const _0x2c91b7=getUpdateNoticeCachePath();await mkdir(dirname(_0x2c91b7),{'recursive':!![]}),await writeFile(_0x2c91b7,JSON[_0x21d730(0x117)](_0x14abc5,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0xc7d1fe,_0x34db9a){const _0x52af96=a133_0x185b;return typeof _0xc7d1fe[_0x52af96(0x128)]===_0x52af96(0x133)&&_0x34db9a-_0xc7d1fe['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2868db,_0x1c9b38,_0xb5c386){const _0x951f8=a133_0x185b;return _0x2868db[_0x951f8(0x132)]===_0x1c9b38&&typeof _0x2868db['lastNotifiedAt']===_0x951f8(0x133)&&_0xb5c386-_0x2868db[_0x951f8(0x13b)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x582be4=0x5dc){const _0x1b7d00=a133_0x185b;try{const _0x2d82cd=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1b7d00(0x129),_0xc77b74=await fetch(_0x2d82cd,{'signal':AbortSignal['timeout'](_0x582be4)});if(!_0xc77b74['ok'])return null;const _0x112fec=await _0xc77b74[_0x1b7d00(0x11e)]();if(!_0x112fec||typeof _0x112fec!==_0x1b7d00(0x130))return null;return Object[_0x1b7d00(0x137)](Object[_0x1b7d00(0x127)](_0x112fec)[_0x1b7d00(0x12a)](([,_0x1a680c])=>typeof _0x1a680c===_0x1b7d00(0x12b)&&_0x1a680c['trim']())[_0x1b7d00(0x124)](([_0x533f70,_0x7c6ac4])=>[_0x533f70,String(_0x7c6ac4)[_0x1b7d00(0x13c)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x45daa7){const _0x5270d3=a133_0x185b;return _0x5270d3(0x11a)+LOVRABET_NPM_PACKAGE_NAME+_0x5270d3(0x135)+_0x45daa7;}export async function resolveLatestUpdateNotice(){const _0x2a8942=a133_0x185b;if(isUpdateNoticeDisabled())return null;try{const _0x340b9e=Date['now'](),_0x58bfdf=getCliVersion(),_0x1a377f=await readUpdateNoticeCache();let _0x17738b=isFreshCheck(_0x1a377f,_0x340b9e)?_0x1a377f['latest']?.[_0x2a8942(0x13c)]():undefined;if(!_0x17738b&&!isFreshCheck(_0x1a377f,_0x340b9e)){const _0x589718=await fetchNpmDistTags();_0x17738b=_0x589718?.['latest']?.[_0x2a8942(0x13c)](),await writeUpdateNoticeCache({..._0x1a377f,'checkedAt':_0x340b9e,'latest':_0x17738b,'failed':!_0x17738b});}if(!_0x17738b||compareSemver(_0x58bfdf,_0x17738b)>=0x0)return null;if(isRecentlyNotified(_0x1a377f,_0x17738b,_0x340b9e))return null;const _0x12379b=CLI_BIN_NAME+_0x2a8942(0x12c);return await writeUpdateNoticeCache({..._0x1a377f,'checkedAt':isFreshCheck(_0x1a377f,_0x340b9e)?_0x1a377f[_0x2a8942(0x128)]:_0x340b9e,'latest':_0x17738b,'failed':![],'lastNotifiedVersion':_0x17738b,'lastNotifiedAt':_0x340b9e}),{'command':_0x12379b,'current':_0x58bfdf,'latest':_0x17738b,'url':buildNpmVersionUrl(_0x17738b),'message':CLI_BIN_NAME+'\x20'+_0x17738b+_0x2a8942(0x12f)+_0x58bfdf+_0x2a8942(0x13e)+_0x12379b};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a134_0x500f(){const _0x46b9ed=['8TXaWkI','6148255lLUdds','8471848nJoIqZ','1459799aSHwWK','unknown','989846zhAtTf','219368IWopuF','3612sdFMFV','6ySFuwI','7870XYJKmt','1263XpTSAa','72yANtXB','13401CaXwjv'];a134_0x500f=function(){return _0x46b9ed;};return a134_0x500f();}(function(_0x5f798e,_0x3c62a0){const _0x2909df=a134_0x83d5,_0x366da8=_0x5f798e();while(!![]){try{const _0x30bddf=-parseInt(_0x2909df(0x1d6))/0x1+parseInt(_0x2909df(0x1d7))/0x2+-parseInt(_0x2909df(0x1db))/0x3*(parseInt(_0x2909df(0x1d8))/0x4)+-parseInt(_0x2909df(0x1df))/0x5*(parseInt(_0x2909df(0x1d9))/0x6)+parseInt(_0x2909df(0x1e0))/0x7*(parseInt(_0x2909df(0x1de))/0x8)+parseInt(_0x2909df(0x1dd))/0x9*(parseInt(_0x2909df(0x1da))/0xa)+parseInt(_0x2909df(0x1e1))/0xb*(parseInt(_0x2909df(0x1dc))/0xc);if(_0x30bddf===_0x3c62a0)break;else _0x366da8['push'](_0x366da8['shift']());}catch(_0x2d6893){_0x366da8['push'](_0x366da8['shift']());}}}(a134_0x500f,0xa8101));function a134_0x83d5(_0x487911,_0x22fe8a){_0x487911=_0x487911-0x1d5;const _0x500f53=a134_0x500f();let _0x83d5be=_0x500f53[_0x487911];return _0x83d5be;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x314542=a134_0x83d5,_0x2aa4e9=String(GIT_COMMIT);return _0x2aa4e9&&_0x2aa4e9!==_0x314542(0x1d5)?_0x2aa4e9:'';}export function getCliVersionDisplay(){const _0x420b57=getCliGitCommit(),_0x26638a=BUILD_TIME['slice'](0x0,0xa);if(!_0x420b57||!_0x26638a)return VERSION;return VERSION+'\x20('+_0x420b57+',\x20'+_0x26638a+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a135_0x4297(){var _0x62cdcc=['4330452eRRcMi','185cCojGC','86252PaaKdL','18InyzAe','146067VmjWQJ','stderr','5721450bjKZYa','5988682yvBQOt','24jviFfs','406953AxSapN','99616JlYSfv'];a135_0x4297=function(){return _0x62cdcc;};return a135_0x4297();}(function(_0x4066b1,_0x231856){var _0x14096c=a135_0x5882,_0x7a5d7f=_0x4066b1();while(!![]){try{var _0x3e0f88=-parseInt(_0x14096c(0x1ba))/0x1*(-parseInt(_0x14096c(0x1c4))/0x2)+parseInt(_0x14096c(0x1bb))/0x3+-parseInt(_0x14096c(0x1c1))/0x4*(parseInt(_0x14096c(0x1c3))/0x5)+parseInt(_0x14096c(0x1c2))/0x6+-parseInt(_0x14096c(0x1be))/0x7+parseInt(_0x14096c(0x1bf))/0x8*(parseInt(_0x14096c(0x1c0))/0x9)+parseInt(_0x14096c(0x1bd))/0xa;if(_0x3e0f88===_0x231856)break;else _0x7a5d7f['push'](_0x7a5d7f['shift']());}catch(_0x35c16b){_0x7a5d7f['push'](_0x7a5d7f['shift']());}}}(a135_0x4297,0x74951));function a135_0x5882(_0x4f43a7,_0x190f20){_0x4f43a7=_0x4f43a7-0x1ba;var _0x429718=a135_0x4297();var _0x5882ff=_0x429718[_0x4f43a7];return _0x5882ff;}export function writeCliSideChannelLine(_0x3303a9){var _0x2be6c4=a135_0x5882;process[_0x2be6c4(0x1bc)]['write'](_0x3303a9+'\x0a');}
|
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.3
|
|
4
|
+
version: 2.2.3
|
|
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、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、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.3
|
|
6
|
-
"skillVersion": "2.2.3
|
|
5
|
+
"packageVersion": "2.2.3",
|
|
6
|
+
"skillVersion": "2.2.3",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"references/lovrabet-user-account.md",
|
|
36
36
|
"references/lovrabet-workspace.md"
|
|
37
37
|
],
|
|
38
|
-
"digest": "
|
|
38
|
+
"digest": "095bd8ee3bc9034fbd076f8bf96dcbc15f053e6391bc6065075db94b68282f92"
|
|
39
39
|
}
|