@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8
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(_0x1ea5ae,_0x5690c6){const _0x2268bf=a181_0x63fe,_0x3ca80f=_0x1ea5ae();while(!![]){try{const _0x9c1ca9=-parseInt(_0x2268bf(0x19f))/0x1+-parseInt(_0x2268bf(0x1ae))/0x2*(parseInt(_0x2268bf(0x1b9))/0x3)+parseInt(_0x2268bf(0x1a8))/0x4+-parseInt(_0x2268bf(0x1b8))/0x5*(parseInt(_0x2268bf(0x1ac))/0x6)+parseInt(_0x2268bf(0x1a3))/0x7*(parseInt(_0x2268bf(0x1a4))/0x8)+-parseInt(_0x2268bf(0x1a9))/0x9*(parseInt(_0x2268bf(0x1a7))/0xa)+parseInt(_0x2268bf(0x1b3))/0xb*(parseInt(_0x2268bf(0x1b4))/0xc);if(_0x9c1ca9===_0x5690c6)break;else _0x3ca80f['push'](_0x3ca80f['shift']());}catch(_0x415f54){_0x3ca80f['push'](_0x3ca80f['shift']());}}}(a181_0x33f9,0xbd018));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a181_0x33f9(){const _0x2f511e=['utf8','upgradeMessage','9779ZlLhwG','7736BBaiVl','trim',',\x20run:\x20','50dQdbtw','247092tvvNki','2765061ljpMup','lastNotifiedAt','.cache','54JTeEih','yes','70802pzoMax','currentVersion','/v/','https://www.npmjs.com/package/','lastNotifiedVersion','28281eQqkBb','15804JGtMlx','stableVersion','\x20is\x20recommended,\x20current\x20','stringify','245335EuVven','66xrdipR','belowMinimum','1267941RxnWfo','now'];a181_0x33f9=function(){return _0x2f511e;};return a181_0x33f9();}import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a181_0x63fe(_0x39e180,_0x521118){_0x39e180=_0x39e180-0x19e;const _0x33f914=a181_0x33f9();let _0x63fe75=_0x33f914[_0x39e180];return _0x63fe75;}import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x44a075=a181_0x63fe,_0x713b4=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x44a075(0x1a5)]()['toLowerCase']();return _0x713b4==='1'||_0x713b4==='true'||_0x713b4===_0x44a075(0x1ad);}function cacheRoot(){const _0x2d11ac=a181_0x63fe;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2d11ac(0x1ab));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'lovrabet-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x58b917=a181_0x63fe;try{const _0x253711=await readFile(getUpdateNoticeCachePath(),_0x58b917(0x1a1)),_0xdda03e=JSON['parse'](_0x253711);if(!_0xdda03e||typeof _0xdda03e!=='object')return{};return _0xdda03e;}catch{return{};}}async function writeUpdateNoticeCache(_0x24adc3){const _0x14dfd=a181_0x63fe;try{const _0x57dec3=getUpdateNoticeCachePath();await mkdir(dirname(_0x57dec3),{'recursive':!![]}),await writeFile(_0x57dec3,JSON[_0x14dfd(0x1b7)](_0x24adc3,null,0x2)+'\x0a',_0x14dfd(0x1a1));}catch{}}function isRecentlyNotified(_0x5394dc,_0x5be65d,_0x3b58ef){const _0x1f6813=a181_0x63fe;return _0x5394dc[_0x1f6813(0x1b2)]===_0x5be65d&&typeof _0x5394dc[_0x1f6813(0x1aa)]==='number'&&_0x3b58ef-_0x5394dc['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x56b0e2){const _0x14fac2=a181_0x63fe;return _0x14fac2(0x1b1)+LOVRABET_NPM_PACKAGE_NAME+_0x14fac2(0x1b0)+_0x56b0e2;}export async function resolveLatestUpdateNotice(_0xca21de){const _0x3c82b8=a181_0x63fe;if(isUpdateNoticeDisabled())return null;try{const _0xc25e6=Date[_0x3c82b8(0x1a0)](),_0x16c0a4=_0xca21de??await checkCliVersion(),_0x2ddc24=_0x16c0a4[_0x3c82b8(0x1af)],_0x5655ff=_0x16c0a4[_0x3c82b8(0x1b5)],_0x293a09=await readUpdateNoticeCache();if(!_0x5655ff||!_0x16c0a4['needsUpgrade']||_0x16c0a4[_0x3c82b8(0x19e)])return null;if(isRecentlyNotified(_0x293a09,_0x5655ff,_0xc25e6))return null;const _0x171746=getCliUpgradeCommand(_0x16c0a4);return await writeUpdateNoticeCache({..._0x293a09,'checkedAt':_0xc25e6,'latest':_0x5655ff,'failed':![],'lastNotifiedVersion':_0x5655ff,'lastNotifiedAt':_0xc25e6}),{'command':_0x171746,'current':_0x2ddc24,'latest':_0x5655ff,'url':buildNpmVersionUrl(_0x5655ff),'message':[_0x16c0a4[_0x3c82b8(0x1a2)],CLI_BIN_NAME+'\x20'+_0x5655ff+_0x3c82b8(0x1b6)+_0x2ddc24+_0x3c82b8(0x1a6)+_0x171746]['filter'](Boolean)['join']('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fa269,_0x51154f){const _0x28864f=a182_0x201a,_0x3816be=_0x3fa269();while(!![]){try{const _0x1adae3=parseInt(_0x28864f(0x145))/0x1+parseInt(_0x28864f(0x14d))/0x2+-parseInt(_0x28864f(0x14a))/0x3*(-parseInt(_0x28864f(0x149))/0x4)+-parseInt(_0x28864f(0x147))/0x5+-parseInt(_0x28864f(0x14b))/0x6+-parseInt(_0x28864f(0x148))/0x7+parseInt(_0x28864f(0x14c))/0x8;if(_0x1adae3===_0x51154f)break;else _0x3816be['push'](_0x3816be['shift']());}catch(_0x4679b7){_0x3816be['push'](_0x3816be['shift']());}}}(a182_0x3406,0xdb4dc));function a182_0x3406(){const _0x49ed18=['538242tBILEp','slice','1213802oYQTnM','unknown','2936210BjlUVY','10521875JTWIJe','24juqKZp','312567FqkAWv','5945934RSFgSi','14972536oXbqWt'];a182_0x3406=function(){return _0x49ed18;};return a182_0x3406();}function a182_0x201a(_0x245faa,_0x577a68){_0x245faa=_0x245faa-0x144;const _0x3406c4=a182_0x3406();let _0x201ad2=_0x3406c4[_0x245faa];return _0x201ad2;}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x360d5a=a182_0x201a,_0x5b1bb0=String(GIT_COMMIT);return _0x5b1bb0&&_0x5b1bb0!==_0x360d5a(0x146)?_0x5b1bb0:'';}export function getCliVersionDisplay(){const _0x2d3c11=a182_0x201a,_0x3dbe7c=getCliGitCommit(),_0x326f3d=BUILD_TIME[_0x2d3c11(0x144)](0x0,0xa);if(!_0x3dbe7c||!_0x326f3d)return VERSION;return VERSION+'\x20('+_0x3dbe7c+',\x20'+_0x326f3d+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x268269,_0x2ee082){var _0x21c95b=a183_0x4dff,_0x237ebf=_0x268269();while(!![]){try{var _0xaef3d8=parseInt(_0x21c95b(0x6c))/0x1+parseInt(_0x21c95b(0x72))/0x2*(parseInt(_0x21c95b(0x75))/0x3)+parseInt(_0x21c95b(0x76))/0x4+parseInt(_0x21c95b(0x6d))/0x5*(-parseInt(_0x21c95b(0x6f))/0x6)+-parseInt(_0x21c95b(0x70))/0x7*(parseInt(_0x21c95b(0x74))/0x8)+parseInt(_0x21c95b(0x71))/0x9+parseInt(_0x21c95b(0x73))/0xa;if(_0xaef3d8===_0x2ee082)break;else _0x237ebf['push'](_0x237ebf['shift']());}catch(_0x502888){_0x237ebf['push'](_0x237ebf['shift']());}}}(a183_0xd4d9,0xace55));function a183_0x4dff(_0x5215e5,_0x5ae65b){_0x5215e5=_0x5215e5-0x6c;var _0xd4d99e=a183_0xd4d9();var _0x4dff37=_0xd4d99e[_0x5215e5];return _0x4dff37;}export function writeCliSideChannelLine(_0x2edbfe){var _0x4e9263=a183_0x4dff;process[_0x4e9263(0x6e)]['write'](_0x2edbfe+'\x0a');}function a183_0xd4d9(){var _0x5db784=['953660fWjbFQ','8lzClKB','3fUyVGQ','1171268fOqOAH','603262aAuSfO','5eVTzCY','stderr','5384094RSRwio','715526qopyjW','2663280idvlrc','840766wTPfHa'];a183_0xd4d9=function(){return _0x5db784;};return a183_0xd4d9();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.8
|
|
3
|
+
"version": "2.3.8",
|
|
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
|
|
4
|
+
version: 2.3.8
|
|
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
|
|
6
|
-
"skillVersion": "2.3.8
|
|
5
|
+
"packageVersion": "2.3.8",
|
|
6
|
+
"skillVersion": "2.3.8",
|
|
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": "a3be3024377a3e796dfd648638856f56638bda07353195ba8c46480e976474de"
|
|
46
46
|
}
|