@lovrabet/lovrabet-cli 2.3.8-beta.2 → 2.3.8-beta.4
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/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.d.ts +6 -18
- 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.d.ts +3 -0
- package/lib/core/kb-sdk-errors.js +1 -0
- package/lib/core/kb-search-client.d.ts +3 -21
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +2 -0
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b3db8,_0xe858f2){const _0x4d38b3=a178_0x40ae,_0x30f436=_0x1b3db8();while(!![]){try{const _0x4fdae8=parseInt(_0x4d38b3(0x148))/0x1+-parseInt(_0x4d38b3(0x133))/0x2*(parseInt(_0x4d38b3(0x141))/0x3)+-parseInt(_0x4d38b3(0x144))/0x4*(-parseInt(_0x4d38b3(0x142))/0x5)+-parseInt(_0x4d38b3(0x13a))/0x6*(parseInt(_0x4d38b3(0x146))/0x7)+-parseInt(_0x4d38b3(0x136))/0x8*(-parseInt(_0x4d38b3(0x147))/0x9)+-parseInt(_0x4d38b3(0x139))/0xa+parseInt(_0x4d38b3(0x12e))/0xb*(parseInt(_0x4d38b3(0x13d))/0xc);if(_0x4fdae8===_0xe858f2)break;else _0x30f436['push'](_0x30f436['shift']());}catch(_0x5b2e32){_0x30f436['push'](_0x30f436['shift']());}}}(a178_0x329d,0xce78e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a178_0x40ae(_0x5f587e,_0x5e0da9){_0x5f587e=_0x5f587e-0x12d;const _0x329d43=a178_0x329d();let _0x40aef3=_0x329d43[_0x5f587e];return _0x40aef3;}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 _0x1e5d1f=a178_0x40ae,_0x4f34b=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x1e5d1f(0x135)]()['toLowerCase']();return _0x4f34b==='1'||_0x4f34b===_0x1e5d1f(0x13b)||_0x4f34b===_0x1e5d1f(0x143);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a178_0x329d(){const _0x391cec=['number','418ypzqRr','stableVersion','currentVersion','object','belowMinimum','297580DuYTYq','\x20is\x20recommended,\x20current\x20','trim','1215352ynWHRb',',\x20run:\x20','lastNotifiedAt','8989880diFkRg','1518koDngL','true','parse','911352PXXHLA','needsUpgrade','/v/','filter','30hRIdpu','1370Waefnk','yes','3728tQbJth','stringify','33551hjBzWJ','63oWCtVB','240478FiDLYN','now'];a178_0x329d=function(){return _0x391cec;};return a178_0x329d();}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x3020ab=a178_0x40ae;try{const _0x38ef19=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4db27b=JSON[_0x3020ab(0x13c)](_0x38ef19);if(!_0x4db27b||typeof _0x4db27b!==_0x3020ab(0x131))return{};return _0x4db27b;}catch{return{};}}async function writeUpdateNoticeCache(_0x5e1236){const _0x26adfa=a178_0x40ae;try{const _0x57ca0b=getUpdateNoticeCachePath();await mkdir(dirname(_0x57ca0b),{'recursive':!![]}),await writeFile(_0x57ca0b,JSON[_0x26adfa(0x145)](_0x5e1236,null,0x2)+'\x0a','utf8');}catch{}}function isRecentlyNotified(_0x2750b7,_0x5672bc,_0xe3bc7d){const _0xea4f93=a178_0x40ae;return _0x2750b7['lastNotifiedVersion']===_0x5672bc&&typeof _0x2750b7['lastNotifiedAt']===_0xea4f93(0x12d)&&_0xe3bc7d-_0x2750b7[_0xea4f93(0x138)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x12cb03){const _0x12d37c=a178_0x40ae;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x12d37c(0x13f)+_0x12cb03;}export async function resolveLatestUpdateNotice(_0x56341c){const _0x1780ae=a178_0x40ae;if(isUpdateNoticeDisabled())return null;try{const _0x273f73=Date[_0x1780ae(0x149)](),_0x379d47=_0x56341c??await checkCliVersion(),_0x3a5606=_0x379d47[_0x1780ae(0x130)],_0x2bbe91=_0x379d47[_0x1780ae(0x12f)],_0x24ba9b=await readUpdateNoticeCache();if(!_0x2bbe91||!_0x379d47[_0x1780ae(0x13e)]||_0x379d47[_0x1780ae(0x132)])return null;if(isRecentlyNotified(_0x24ba9b,_0x2bbe91,_0x273f73))return null;const _0x83c3f4=getCliUpgradeCommand(_0x379d47);return await writeUpdateNoticeCache({..._0x24ba9b,'checkedAt':_0x273f73,'latest':_0x2bbe91,'failed':![],'lastNotifiedVersion':_0x2bbe91,'lastNotifiedAt':_0x273f73}),{'command':_0x83c3f4,'current':_0x3a5606,'latest':_0x2bbe91,'url':buildNpmVersionUrl(_0x2bbe91),'message':[_0x379d47['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x2bbe91+_0x1780ae(0x134)+_0x3a5606+_0x1780ae(0x137)+_0x83c3f4][_0x1780ae(0x140)](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a179_0x528b(_0x37de92,_0x4957af){_0x37de92=_0x37de92-0xdb;const _0x37ad59=a179_0x37ad();let _0x528b95=_0x37ad59[_0x37de92];return _0x528b95;}(function(_0x3e1aef,_0x56382f){const _0xc2a818=a179_0x528b,_0x525610=_0x3e1aef();while(!![]){try{const _0xeb266b=parseInt(_0xc2a818(0xdc))/0x1+-parseInt(_0xc2a818(0xe4))/0x2*(parseInt(_0xc2a818(0xe1))/0x3)+parseInt(_0xc2a818(0xe5))/0x4*(-parseInt(_0xc2a818(0xde))/0x5)+-parseInt(_0xc2a818(0xdb))/0x6+-parseInt(_0xc2a818(0xe0))/0x7+parseInt(_0xc2a818(0xdf))/0x8+parseInt(_0xc2a818(0xe3))/0x9;if(_0xeb266b===_0x56382f)break;else _0x525610['push'](_0x525610['shift']());}catch(_0x166ca1){_0x525610['push'](_0x525610['shift']());}}}(a179_0x37ad,0x60ee1));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x211e1c=a179_0x528b,_0x8997cc=String(GIT_COMMIT);return _0x8997cc&&_0x8997cc!==_0x211e1c(0xdd)?_0x8997cc:'';}function a179_0x37ad(){const _0xd4920=['2829912umiyLL','697601vtZhqV','unknown','475fHrWep','5655224crDHTn','4848291HcSHsL','96oloZQp','slice','8846622hwVkrC','19882JEDxrT','21392ZoPWtZ'];a179_0x37ad=function(){return _0xd4920;};return a179_0x37ad();}export function getCliVersionDisplay(){const _0x489698=a179_0x528b,_0x31fd7f=getCliGitCommit(),_0x2d30b8=BUILD_TIME[_0x489698(0xe2)](0x0,0xa);if(!_0x31fd7f||!_0x2d30b8)return VERSION;return VERSION+'\x20('+_0x31fd7f+',\x20'+_0x2d30b8+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a180_0x1883(){var _0x56ac9b=['116yqAIDV','7DkXczn','74472iyzVls','6392970aEWpst','3037850RoDycy','212984cLJArQ','12ivFPzz','stderr','234586DScCUA','370lCvdhr','write','52602wbcdbw','3189210uEzKqh'];a180_0x1883=function(){return _0x56ac9b;};return a180_0x1883();}function a180_0x457d(_0x413a8e,_0x2178d3){_0x413a8e=_0x413a8e-0x130;var _0x188389=a180_0x1883();var _0x457d5e=_0x188389[_0x413a8e];return _0x457d5e;}(function(_0x2744c2,_0x1b4986){var _0x7e9ece=a180_0x457d,_0x36afa3=_0x2744c2();while(!![]){try{var _0x2fc400=parseInt(_0x7e9ece(0x132))/0x1*(-parseInt(_0x7e9ece(0x136))/0x2)+-parseInt(_0x7e9ece(0x13b))/0x3*(-parseInt(_0x7e9ece(0x130))/0x4)+-parseInt(_0x7e9ece(0x134))/0x5+parseInt(_0x7e9ece(0x13c))/0x6*(-parseInt(_0x7e9ece(0x131))/0x7)+parseInt(_0x7e9ece(0x135))/0x8+parseInt(_0x7e9ece(0x133))/0x9+parseInt(_0x7e9ece(0x139))/0xa*(parseInt(_0x7e9ece(0x138))/0xb);if(_0x2fc400===_0x1b4986)break;else _0x36afa3['push'](_0x36afa3['shift']());}catch(_0x453721){_0x36afa3['push'](_0x36afa3['shift']());}}}(a180_0x1883,0x6d834));export function writeCliSideChannelLine(_0x5109e1){var _0x1320fd=a180_0x457d;process[_0x1320fd(0x137)][_0x1320fd(0x13a)](_0x5109e1+'\x0a');}
|
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.4",
|
|
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": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@inquirer/prompts": "^8.6.0",
|
|
88
88
|
"@lovrabet/cli-framework": "1.0.5",
|
|
89
|
-
"@lovrabet/sdk": "1.6.1-beta.
|
|
89
|
+
"@lovrabet/sdk": "1.6.1-beta.5",
|
|
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.4
|
|
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.4",
|
|
6
|
+
"skillVersion": "2.3.8-beta.4",
|
|
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": "14c5bdf9be78b9ddcab0585e96880cc0e9fc2827bbc364d90b006209c2aa4310"
|
|
44
44
|
}
|