@lovrabet/lovrabet-cli 2.3.10-beta.3 → 2.3.10
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 +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d7579,_0x190424){const _0x40d13b=a181_0x20ef,_0x3270d9=_0x1d7579();while(!![]){try{const _0x2d3686=parseInt(_0x40d13b(0xc4))/0x1*(-parseInt(_0x40d13b(0xb8))/0x2)+parseInt(_0x40d13b(0xb9))/0x3+-parseInt(_0x40d13b(0xc3))/0x4*(-parseInt(_0x40d13b(0xb4))/0x5)+parseInt(_0x40d13b(0xc1))/0x6*(parseInt(_0x40d13b(0xad))/0x7)+parseInt(_0x40d13b(0xae))/0x8*(-parseInt(_0x40d13b(0xb3))/0x9)+-parseInt(_0x40d13b(0xaf))/0xa+parseInt(_0x40d13b(0xbd))/0xb;if(_0x2d3686===_0x190424)break;else _0x3270d9['push'](_0x3270d9['shift']());}catch(_0x532085){_0x3270d9['push'](_0x3270d9['shift']());}}}(a181_0x2e66,0x542ba));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';function a181_0x20ef(_0x47b9da,_0xa3b510){_0x47b9da=_0x47b9da-0xaa;const _0x2e6665=a181_0x2e66();let _0x20ef61=_0x2e6665[_0x47b9da];return _0x20ef61;}const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5f703=a181_0x20ef,_0x1d97bd=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5f703(0xb2)]();return _0x1d97bd==='1'||_0x1d97bd===_0x5f703(0xc7)||_0x1d97bd===_0x5f703(0xbc);}function cacheRoot(){const _0x5ae35d=a181_0x20ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5ae35d(0xb7));}export function getUpdateNoticeCachePath(){const _0x37286a=a181_0x20ef;return join(cacheRoot(),'lovrabet-cli',_0x37286a(0xac));}async function readUpdateNoticeCache(){const _0x25c564=a181_0x20ef;try{const _0x570abe=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x400749=JSON['parse'](_0x570abe);if(!_0x400749||typeof _0x400749!==_0x25c564(0xba))return{};return _0x400749;}catch{return{};}}async function writeUpdateNoticeCache(_0x243afa){const _0x4548ff=a181_0x20ef;try{const _0x2ea056=getUpdateNoticeCachePath();await mkdir(dirname(_0x2ea056),{'recursive':!![]}),await writeFile(_0x2ea056,JSON[_0x4548ff(0xb1)](_0x243afa,null,0x2)+'\x0a',_0x4548ff(0xbf));}catch{}}function isRecentlyNotified(_0x2130ef,_0x384890,_0x884930){const _0x566081=a181_0x20ef;return _0x2130ef['lastNotifiedVersion']===_0x384890&&typeof _0x2130ef[_0x566081(0xc5)]==='number'&&_0x884930-_0x2130ef[_0x566081(0xc5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x26e572){const _0x40d763=a181_0x20ef;return _0x40d763(0xb0)+LOVRABET_NPM_PACKAGE_NAME+_0x40d763(0xc2)+_0x26e572;}export async function resolveLatestUpdateNotice(_0x1ec113){const _0x5b447b=a181_0x20ef;if(isUpdateNoticeDisabled())return null;try{const _0xcb5a39=Date[_0x5b447b(0xc6)](),_0x2e1a15=_0x1ec113??await checkCliVersion(),_0xcb5617=_0x2e1a15[_0x5b447b(0xb6)],_0x1b0a53=_0x2e1a15[_0x5b447b(0xaa)],_0x32de54=await readUpdateNoticeCache();if(!_0x1b0a53||!_0x2e1a15['needsUpgrade']||_0x2e1a15[_0x5b447b(0xc0)])return null;if(isRecentlyNotified(_0x32de54,_0x1b0a53,_0xcb5a39))return null;const _0x43b89a=getCliUpgradeCommand(_0x2e1a15);return await writeUpdateNoticeCache({..._0x32de54,'checkedAt':_0xcb5a39,'latest':_0x1b0a53,'failed':![],'lastNotifiedVersion':_0x1b0a53,'lastNotifiedAt':_0xcb5a39}),{'command':_0x43b89a,'current':_0xcb5617,'latest':_0x1b0a53,'url':buildNpmVersionUrl(_0x1b0a53),'message':[_0x2e1a15['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x1b0a53+_0x5b447b(0xbb)+_0xcb5617+_0x5b447b(0xbe)+_0x43b89a][_0x5b447b(0xb5)](Boolean)[_0x5b447b(0xab)]('\x20')};}catch{return null;}}function a181_0x2e66(){const _0x485bc1=['now','true','stableVersion','join','update-check.json','54579dJqmgi','6712CxFRwY','1858540cWRYjX','https://www.npmjs.com/package/','stringify','toLowerCase','6147TVKpTR','5umSTmx','filter','currentVersion','.cache','4934cubZyy','1302324YHpzlS','object','\x20is\x20recommended,\x20current\x20','yes','3535279JsbDZk',',\x20run:\x20','utf8','belowMinimum','24ZtJqOi','/v/','1277740KQwxUo','1nanJsq','lastNotifiedAt'];a181_0x2e66=function(){return _0x485bc1;};return a181_0x2e66();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6ba6f1,_0x161769){const _0x3c88a8=a182_0x2e9a,_0x271541=_0x6ba6f1();while(!![]){try{const _0x2e1076=-parseInt(_0x3c88a8(0x174))/0x1*(-parseInt(_0x3c88a8(0x173))/0x2)+-parseInt(_0x3c88a8(0x171))/0x3+parseInt(_0x3c88a8(0x172))/0x4+-parseInt(_0x3c88a8(0x16d))/0x5+-parseInt(_0x3c88a8(0x16e))/0x6*(-parseInt(_0x3c88a8(0x16b))/0x7)+-parseInt(_0x3c88a8(0x170))/0x8+-parseInt(_0x3c88a8(0x16c))/0x9*(parseInt(_0x3c88a8(0x16f))/0xa);if(_0x2e1076===_0x161769)break;else _0x271541['push'](_0x271541['shift']());}catch(_0x90fbfd){_0x271541['push'](_0x271541['shift']());}}}(a182_0xcba7,0xf128e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xa873de=String(GIT_COMMIT);return _0xa873de&&_0xa873de!=='unknown'?_0xa873de:'';}export function getCliVersionDisplay(){const _0x21dcd0=getCliGitCommit(),_0xb64acd=BUILD_TIME['slice'](0x0,0xa);if(!_0x21dcd0||!_0xb64acd)return VERSION;return VERSION+'\x20('+_0x21dcd0+',\x20'+_0xb64acd+')';}function a182_0x2e9a(_0x4ebcc1,_0x700bc5){_0x4ebcc1=_0x4ebcc1-0x16b;const _0xcba77a=a182_0xcba7();let _0x2e9a0b=_0xcba77a[_0x4ebcc1];return _0x2e9a0b;}function a182_0xcba7(){const _0x21973e=['3146946QSZRdG','7048196IJKpom','1052LrmGQa','1801lJWVJE','7zuzMAf','45iXNLqN','2921920kpUBkn','11757468WmYkVq','1705390bthQRE','9560816cBApdm'];a182_0xcba7=function(){return _0x21973e;};return a182_0xcba7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ef2a2,_0x27ff3f){var _0x3378a1=a183_0x22d2,_0x34a102=_0x2ef2a2();while(!![]){try{var _0x56278a=parseInt(_0x3378a1(0x1c9))/0x1+parseInt(_0x3378a1(0x1c3))/0x2*(-parseInt(_0x3378a1(0x1c7))/0x3)+-parseInt(_0x3378a1(0x1c5))/0x4*(parseInt(_0x3378a1(0x1c2))/0x5)+-parseInt(_0x3378a1(0x1c1))/0x6+parseInt(_0x3378a1(0x1ca))/0x7*(parseInt(_0x3378a1(0x1cc))/0x8)+parseInt(_0x3378a1(0x1cb))/0x9+-parseInt(_0x3378a1(0x1c8))/0xa*(parseInt(_0x3378a1(0x1c6))/0xb);if(_0x56278a===_0x27ff3f)break;else _0x34a102['push'](_0x34a102['shift']());}catch(_0x1bc4d9){_0x34a102['push'](_0x34a102['shift']());}}}(a183_0x34e8,0xba7eb));function a183_0x34e8(){var _0x4dec33=['1180234myvmqQ','14nFMpUr','11316177oAVdyd','5982536GXAzqz','8692734iBtHMI','40ZRwJfl','2wjvrNj','write','73252hsvHbm','2634269GWpyKV','4003698RECGBZ','10bNJseQ'];a183_0x34e8=function(){return _0x4dec33;};return a183_0x34e8();}function a183_0x22d2(_0xb836d7,_0x25107f){_0xb836d7=_0xb836d7-0x1c1;var _0x34e864=a183_0x34e8();var _0x22d249=_0x34e864[_0xb836d7];return _0x22d249;}export function writeCliSideChannelLine(_0x1f06e5){var _0xb1bce6=a183_0x22d2;process['stderr'][_0xb1bce6(0x1c4)](_0x1f06e5+'\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.3.10
|
|
4
|
+
version: 2.3.10
|
|
5
5
|
description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、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.10
|
|
6
|
-
"skillVersion": "2.3.10
|
|
5
|
+
"packageVersion": "2.3.10",
|
|
6
|
+
"skillVersion": "2.3.10",
|
|
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": "4bddbdf38b4cc81bb05d23c697ebf0736cd1d8bcb286f347a4427900de8e5b4a"
|
|
46
46
|
}
|