@lovrabet/lovrabet-cli 2.3.7 → 2.3.8-beta.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/README.md +1 -1
- 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/approval/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/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.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/domain-config.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/region.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/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.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/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.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 +2 -2
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42c2d8,_0x3bb072){const _0x55584b=a176_0x5596,_0x354b0b=_0x42c2d8();while(!![]){try{const _0x5930d0=-parseInt(_0x55584b(0x1df))/0x1+parseInt(_0x55584b(0x1e8))/0x2+-parseInt(_0x55584b(0x1d3))/0x3*(-parseInt(_0x55584b(0x1da))/0x4)+parseInt(_0x55584b(0x1d8))/0x5+-parseInt(_0x55584b(0x1e7))/0x6*(parseInt(_0x55584b(0x1e2))/0x7)+parseInt(_0x55584b(0x1d7))/0x8*(parseInt(_0x55584b(0x1e6))/0x9)+-parseInt(_0x55584b(0x1d4))/0xa;if(_0x5930d0===_0x3bb072)break;else _0x354b0b['push'](_0x354b0b['shift']());}catch(_0x5ed400){_0x354b0b['push'](_0x354b0b['shift']());}}}(a176_0x564c,0xa04e3));function a176_0x5596(_0x5403a6,_0x383193){_0x5403a6=_0x5403a6-0x1cf;const _0x564cef=a176_0x564c();let _0x559670=_0x564cef[_0x5403a6];return _0x559670;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a176_0x564c(){const _0x3f4db5=['object','currentVersion','utf8','join','70914GKzucQ','16119600IMUYTr','.cache','yes','176LFHkTB','4512085YXebVr','stableVersion','212WsioZU','update-check.json',',\x20run:\x20','belowMinimum','toLowerCase','1085819uCPWFT','number','lastNotifiedAt','20755WSpUcE','filter','needsUpgrade','upgradeMessage','463041eCIlom','498ofMlah','626752cxJFia','trim'];a176_0x564c=function(){return _0x3f4db5;};return a176_0x564c();}function isUpdateNoticeDisabled(){const _0x318c75=a176_0x5596,_0x2fb824=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x318c75(0x1e9)]()[_0x318c75(0x1de)]();return _0x2fb824==='1'||_0x2fb824==='true'||_0x2fb824===_0x318c75(0x1d6);}function cacheRoot(){const _0x174b0e=a176_0x5596;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x174b0e(0x1d5));}export function getUpdateNoticeCachePath(){const _0x534422=a176_0x5596;return join(cacheRoot(),'lovrabet-cli',_0x534422(0x1db));}async function readUpdateNoticeCache(){const _0x154497=a176_0x5596;try{const _0x11336a=await readFile(getUpdateNoticeCachePath(),_0x154497(0x1d1)),_0x379a2e=JSON['parse'](_0x11336a);if(!_0x379a2e||typeof _0x379a2e!==_0x154497(0x1cf))return{};return _0x379a2e;}catch{return{};}}async function writeUpdateNoticeCache(_0x3f71a8){const _0x341849=a176_0x5596;try{const _0x153519=getUpdateNoticeCachePath();await mkdir(dirname(_0x153519),{'recursive':!![]}),await writeFile(_0x153519,JSON['stringify'](_0x3f71a8,null,0x2)+'\x0a',_0x341849(0x1d1));}catch{}}function isRecentlyNotified(_0x520789,_0x29a70d,_0x1d55b6){const _0x263ac9=a176_0x5596;return _0x520789['lastNotifiedVersion']===_0x29a70d&&typeof _0x520789[_0x263ac9(0x1e1)]===_0x263ac9(0x1e0)&&_0x1d55b6-_0x520789[_0x263ac9(0x1e1)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x819e51){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x819e51;}export async function resolveLatestUpdateNotice(_0x1de7b5){const _0x2c5e2d=a176_0x5596;if(isUpdateNoticeDisabled())return null;try{const _0x3af539=Date['now'](),_0x282ca7=_0x1de7b5??await checkCliVersion(),_0x266afa=_0x282ca7[_0x2c5e2d(0x1d0)],_0x28563d=_0x282ca7[_0x2c5e2d(0x1d9)],_0x259b27=await readUpdateNoticeCache();if(!_0x28563d||!_0x282ca7[_0x2c5e2d(0x1e4)]||_0x282ca7[_0x2c5e2d(0x1dd)])return null;if(isRecentlyNotified(_0x259b27,_0x28563d,_0x3af539))return null;const _0x466907=getCliUpgradeCommand(_0x282ca7);return await writeUpdateNoticeCache({..._0x259b27,'checkedAt':_0x3af539,'latest':_0x28563d,'failed':![],'lastNotifiedVersion':_0x28563d,'lastNotifiedAt':_0x3af539}),{'command':_0x466907,'current':_0x266afa,'latest':_0x28563d,'url':buildNpmVersionUrl(_0x28563d),'message':[_0x282ca7[_0x2c5e2d(0x1e5)],CLI_BIN_NAME+'\x20'+_0x28563d+'\x20is\x20recommended,\x20current\x20'+_0x266afa+_0x2c5e2d(0x1dc)+_0x466907][_0x2c5e2d(0x1e3)](Boolean)[_0x2c5e2d(0x1d2)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50cd58,_0x273d3b){const _0x9074f0=a177_0x25fb,_0x52238f=_0x50cd58();while(!![]){try{const _0x16db86=parseInt(_0x9074f0(0x81))/0x1+-parseInt(_0x9074f0(0x78))/0x2+parseInt(_0x9074f0(0x7a))/0x3*(-parseInt(_0x9074f0(0x77))/0x4)+-parseInt(_0x9074f0(0x80))/0x5*(-parseInt(_0x9074f0(0x7c))/0x6)+parseInt(_0x9074f0(0x7f))/0x7+-parseInt(_0x9074f0(0x79))/0x8*(-parseInt(_0x9074f0(0x7e))/0x9)+-parseInt(_0x9074f0(0x7b))/0xa*(parseInt(_0x9074f0(0x7d))/0xb);if(_0x16db86===_0x273d3b)break;else _0x52238f['push'](_0x52238f['shift']());}catch(_0x4298b2){_0x52238f['push'](_0x52238f['shift']());}}}(a177_0x359d,0x49f56));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x4f8cd9=a177_0x25fb,_0x3836b7=String(GIT_COMMIT);return _0x3836b7&&_0x3836b7!==_0x4f8cd9(0x75)?_0x3836b7:'';}export function getCliVersionDisplay(){const _0xf12398=a177_0x25fb,_0x376890=getCliGitCommit(),_0x23f04c=BUILD_TIME[_0xf12398(0x76)](0x0,0xa);if(!_0x376890||!_0x23f04c)return VERSION;return VERSION+'\x20('+_0x376890+',\x20'+_0x23f04c+')';}function a177_0x25fb(_0x2db7ce,_0x43b4f6){_0x2db7ce=_0x2db7ce-0x75;const _0x359d1a=a177_0x359d();let _0x25fbc8=_0x359d1a[_0x2db7ce];return _0x25fbc8;}function a177_0x359d(){const _0x195493=['slice','1249004hPQijj','35390kLuwSz','687704rfaOeu','3enSICY','585910cwHpUs','48olYmWs','11QuWaDl','45lmrjXq','412230GnzigS','92030JUGCcP','55518QZZaog','unknown'];a177_0x359d=function(){return _0x195493;};return a177_0x359d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a178_0xfed7(){var _0x25c5b0=['2739213CCamUT','write','5192zNDBfd','2699300bkiscB','59imwBDV','268648PAMRLu','55QaoSIh','5613849qkncof','stderr','882287GYxFci','12DMrNHr','10ZhOmFd','6461200ZSwpeA'];a178_0xfed7=function(){return _0x25c5b0;};return a178_0xfed7();}function a178_0x5804(_0x4a9295,_0x318314){_0x4a9295=_0x4a9295-0xa7;var _0xfed75=a178_0xfed7();var _0x580422=_0xfed75[_0x4a9295];return _0x580422;}(function(_0xbbca7d,_0x20bf40){var _0x4cc548=a178_0x5804,_0x1bd467=_0xbbca7d();while(!![]){try{var _0x5776fb=-parseInt(_0x4cc548(0xab))/0x1*(parseInt(_0x4cc548(0xa9))/0x2)+-parseInt(_0x4cc548(0xa7))/0x3+parseInt(_0x4cc548(0xac))/0x4*(-parseInt(_0x4cc548(0xb2))/0x5)+-parseInt(_0x4cc548(0xb1))/0x6*(-parseInt(_0x4cc548(0xb0))/0x7)+parseInt(_0x4cc548(0xb3))/0x8+-parseInt(_0x4cc548(0xae))/0x9+-parseInt(_0x4cc548(0xaa))/0xa*(-parseInt(_0x4cc548(0xad))/0xb);if(_0x5776fb===_0x20bf40)break;else _0x1bd467['push'](_0x1bd467['shift']());}catch(_0x40926d){_0x1bd467['push'](_0x1bd467['shift']());}}}(a178_0xfed7,0x8ed66));export function writeCliSideChannelLine(_0x12eb7a){var _0x45b055=a178_0x5804;process[_0x45b055(0xaf)][_0x45b055(0xa8)](_0x12eb7a+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8-beta.1",
|
|
4
4
|
"description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=24.0.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.8-beta.1
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、Service Tree 业务命令、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、service tree、业务服务树、api-doc、dataset、data filter、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
|
|
6
6
|
metadata:
|
|
7
7
|
requires:
|
|
8
8
|
bins: ["lovrabet"]
|
|
9
|
-
node: ">=
|
|
9
|
+
node: ">=24.0.0"
|
|
10
10
|
cliHelp: "lovrabet --help"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.
|
|
6
|
-
"skillVersion": "2.3.
|
|
5
|
+
"packageVersion": "2.3.8-beta.1",
|
|
6
|
+
"skillVersion": "2.3.8-beta.1",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"references/lovrabet-user-account.md",
|
|
41
41
|
"references/lovrabet-workspace.md"
|
|
42
42
|
],
|
|
43
|
-
"digest": "
|
|
43
|
+
"digest": "eff5dad531db2b3a864dc67dead9c562ffa390920882329225c3303bc87aa13a"
|
|
44
44
|
}
|