@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8-beta.7
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/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/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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-sdk-errors.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/runtime-user-id.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 +3 -3
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1775d2,_0x8712d6){const _0xadb427=a181_0x1cf3,_0x5242f1=_0x1775d2();while(!![]){try{const _0x1eca3f=parseInt(_0xadb427(0xcc))/0x1+parseInt(_0xadb427(0xcf))/0x2*(-parseInt(_0xadb427(0xc2))/0x3)+parseInt(_0xadb427(0xd4))/0x4+parseInt(_0xadb427(0xd3))/0x5+-parseInt(_0xadb427(0xce))/0x6+parseInt(_0xadb427(0xd6))/0x7+-parseInt(_0xadb427(0xca))/0x8;if(_0x1eca3f===_0x8712d6)break;else _0x5242f1['push'](_0x5242f1['shift']());}catch(_0x499d1f){_0x5242f1['push'](_0x5242f1['shift']());}}}(a181_0xe36a,0x9dcc4));function a181_0x1cf3(_0x41330f,_0x7f7f79){_0x41330f=_0x41330f-0xbe;const _0xe36a4c=a181_0xe36a();let _0x1cf38f=_0xe36a4c[_0x41330f];return _0x1cf38f;}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 isUpdateNoticeDisabled(){const _0x3c733a=a181_0x1cf3,_0x1cb1a8=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x3c733a(0xd1)]()[_0x3c733a(0xc0)]();return _0x1cb1a8==='1'||_0x1cb1a8===_0x3c733a(0xbf)||_0x1cb1a8===_0x3c733a(0xc5);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x378e05=a181_0x1cf3;return join(cacheRoot(),'lovrabet-cli',_0x378e05(0xcb));}async function readUpdateNoticeCache(){const _0x15eb5c=a181_0x1cf3;try{const _0x48c7d1=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x359453=JSON[_0x15eb5c(0xd8)](_0x48c7d1);if(!_0x359453||typeof _0x359453!==_0x15eb5c(0xc8))return{};return _0x359453;}catch{return{};}}function a181_0xe36a(){const _0x1a8c50=['4851332FcLUtp','lastNotifiedVersion','3496199AyqmGA','upgradeMessage','parse','stableVersion','utf8','currentVersion','true','toLowerCase','stringify','951UOOxaO','number',',\x20run:\x20','yes','belowMinimum','lastNotifiedAt','object','needsUpgrade','8867424ZXBJry','update-check.json','727767aOSmbo','join','3993606UEXYMc','838tqmcMn','filter','trim','now','565675thkOUJ'];a181_0xe36a=function(){return _0x1a8c50;};return a181_0xe36a();}async function writeUpdateNoticeCache(_0x27104b){const _0x568891=a181_0x1cf3;try{const _0xe1fb63=getUpdateNoticeCachePath();await mkdir(dirname(_0xe1fb63),{'recursive':!![]}),await writeFile(_0xe1fb63,JSON[_0x568891(0xc1)](_0x27104b,null,0x2)+'\x0a',_0x568891(0xda));}catch{}}function isRecentlyNotified(_0x2174ed,_0x438dc1,_0x17e07d){const _0x37ba48=a181_0x1cf3;return _0x2174ed[_0x37ba48(0xd5)]===_0x438dc1&&typeof _0x2174ed[_0x37ba48(0xc7)]===_0x37ba48(0xc3)&&_0x17e07d-_0x2174ed[_0x37ba48(0xc7)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5402e3){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x5402e3;}export async function resolveLatestUpdateNotice(_0x267851){const _0x2a8f51=a181_0x1cf3;if(isUpdateNoticeDisabled())return null;try{const _0x27fe5b=Date[_0x2a8f51(0xd2)](),_0xb2f1bb=_0x267851??await checkCliVersion(),_0x1cc771=_0xb2f1bb[_0x2a8f51(0xbe)],_0x2bb309=_0xb2f1bb[_0x2a8f51(0xd9)],_0x1c9bfe=await readUpdateNoticeCache();if(!_0x2bb309||!_0xb2f1bb[_0x2a8f51(0xc9)]||_0xb2f1bb[_0x2a8f51(0xc6)])return null;if(isRecentlyNotified(_0x1c9bfe,_0x2bb309,_0x27fe5b))return null;const _0x21f2ee=getCliUpgradeCommand(_0xb2f1bb);return await writeUpdateNoticeCache({..._0x1c9bfe,'checkedAt':_0x27fe5b,'latest':_0x2bb309,'failed':![],'lastNotifiedVersion':_0x2bb309,'lastNotifiedAt':_0x27fe5b}),{'command':_0x21f2ee,'current':_0x1cc771,'latest':_0x2bb309,'url':buildNpmVersionUrl(_0x2bb309),'message':[_0xb2f1bb[_0x2a8f51(0xd7)],CLI_BIN_NAME+'\x20'+_0x2bb309+'\x20is\x20recommended,\x20current\x20'+_0x1cc771+_0x2a8f51(0xc4)+_0x21f2ee][_0x2a8f51(0xd0)](Boolean)[_0x2a8f51(0xcd)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fc3d4,_0x3cb44b){const _0x3f79e1=a182_0x1461,_0x843d5c=_0x2fc3d4();while(!![]){try{const _0x4fb708=-parseInt(_0x3f79e1(0xf1))/0x1+-parseInt(_0x3f79e1(0xf0))/0x2+parseInt(_0x3f79e1(0xec))/0x3+parseInt(_0x3f79e1(0xf2))/0x4*(parseInt(_0x3f79e1(0xf6))/0x5)+parseInt(_0x3f79e1(0xf3))/0x6+parseInt(_0x3f79e1(0xef))/0x7*(parseInt(_0x3f79e1(0xf4))/0x8)+-parseInt(_0x3f79e1(0xed))/0x9*(-parseInt(_0x3f79e1(0xeb))/0xa);if(_0x4fb708===_0x3cb44b)break;else _0x843d5c['push'](_0x843d5c['shift']());}catch(_0x2937e6){_0x843d5c['push'](_0x843d5c['shift']());}}}(a182_0x38a3,0x4f403));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a182_0x38a3(){const _0x4ca1cf=['125orkIlJ','39110RTFplF','420891cXrmrj','972lmLnJe','unknown','2082899tNliCp','1267094MPuItb','647716ymhWdl','67708GXlPFU','1934742NjaWcZ','8mTVXCP','slice'];a182_0x38a3=function(){return _0x4ca1cf;};return a182_0x38a3();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x33bb68=a182_0x1461,_0x155cd0=String(GIT_COMMIT);return _0x155cd0&&_0x155cd0!==_0x33bb68(0xee)?_0x155cd0:'';}function a182_0x1461(_0x43c3ad,_0x7170c2){_0x43c3ad=_0x43c3ad-0xeb;const _0x38a30d=a182_0x38a3();let _0x1461b6=_0x38a30d[_0x43c3ad];return _0x1461b6;}export function getCliVersionDisplay(){const _0x27fab2=a182_0x1461,_0x59127b=getCliGitCommit(),_0x24a037=BUILD_TIME[_0x27fab2(0xf5)](0x0,0xa);if(!_0x59127b||!_0x24a037)return VERSION;return VERSION+'\x20('+_0x59127b+',\x20'+_0x24a037+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d74e4,_0x4c3087){var _0x3cc66b=a183_0xd294,_0x3e3fbe=_0x2d74e4();while(!![]){try{var _0x316b1e=parseInt(_0x3cc66b(0x8a))/0x1*(-parseInt(_0x3cc66b(0x8e))/0x2)+-parseInt(_0x3cc66b(0x8b))/0x3+-parseInt(_0x3cc66b(0x8c))/0x4+parseInt(_0x3cc66b(0x8f))/0x5+-parseInt(_0x3cc66b(0x88))/0x6+parseInt(_0x3cc66b(0x90))/0x7+parseInt(_0x3cc66b(0x89))/0x8;if(_0x316b1e===_0x4c3087)break;else _0x3e3fbe['push'](_0x3e3fbe['shift']());}catch(_0xc9d847){_0x3e3fbe['push'](_0x3e3fbe['shift']());}}}(a183_0x14d8,0xc1b37));function a183_0xd294(_0xac2b59,_0x44c4df){_0xac2b59=_0xac2b59-0x88;var _0x14d839=a183_0x14d8();var _0xd294d9=_0x14d839[_0xac2b59];return _0xd294d9;}export function writeCliSideChannelLine(_0x19b582){var _0x512619=a183_0xd294;process[_0x512619(0x8d)]['write'](_0x19b582+'\x0a');}function a183_0x14d8(){var _0xbac611=['5354590VreLVG','8317526uSTaNW','3197382CPzgrz','187440CbseuM','30dxDhkN','38886zWVDTe','3445392sYAyPD','stderr','5464AwFrEB'];a183_0x14d8=function(){return _0xbac611;};return a183_0x14d8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.8-beta.
|
|
3
|
+
"version": "2.3.8-beta.7",
|
|
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": [
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
],
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@inquirer/prompts": "^8.6.0",
|
|
88
|
-
"@lovrabet/cli-framework": "1.0.
|
|
89
|
-
"@lovrabet/sdk": "1.6.1
|
|
88
|
+
"@lovrabet/cli-framework": "1.0.10",
|
|
89
|
+
"@lovrabet/sdk": "1.6.1",
|
|
90
90
|
"chalk": "^5.6.2",
|
|
91
91
|
"exceljs": "4.4.0",
|
|
92
92
|
"execa": "^9.6.0",
|
package/skills/lovrabet/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.8-beta.
|
|
4
|
+
version: 2.3.8-beta.7
|
|
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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "lovrabet",
|
|
4
4
|
"packageName": "@lovrabet/lovrabet-cli",
|
|
5
|
-
"packageVersion": "2.3.8-beta.
|
|
6
|
-
"skillVersion": "2.3.8-beta.
|
|
5
|
+
"packageVersion": "2.3.8-beta.7",
|
|
6
|
+
"skillVersion": "2.3.8-beta.7",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/app-resolution.md",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"references/lovrabet-user-account.md",
|
|
43
43
|
"references/lovrabet-workspace.md"
|
|
44
44
|
],
|
|
45
|
-
"digest": "
|
|
45
|
+
"digest": "f2aee96feedd94cc9fffaff668af2974f16084f73ef6d7f4984d95ddb87bb6f4"
|
|
46
46
|
}
|