@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.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/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 +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31ff3a,_0x129a14){const _0x1dd232=a176_0xb97c,_0x166343=_0x31ff3a();while(!![]){try{const _0x208eb1=parseInt(_0x1dd232(0xb7))/0x1*(-parseInt(_0x1dd232(0xa7))/0x2)+parseInt(_0x1dd232(0xaf))/0x3*(parseInt(_0x1dd232(0xad))/0x4)+-parseInt(_0x1dd232(0xa0))/0x5+-parseInt(_0x1dd232(0xbc))/0x6+parseInt(_0x1dd232(0xa4))/0x7+parseInt(_0x1dd232(0xb4))/0x8*(-parseInt(_0x1dd232(0xb1))/0x9)+-parseInt(_0x1dd232(0xa3))/0xa*(-parseInt(_0x1dd232(0xa2))/0xb);if(_0x208eb1===_0x129a14)break;else _0x166343['push'](_0x166343['shift']());}catch(_0x3589dd){_0x166343['push'](_0x166343['shift']());}}}(a176_0x3f6e,0x76133));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 a176_0x3f6e(){const _0x447b91=['lovrabet-cli','number','486360lxlKQp','update-check.json','.cache','1309455RDPNho',',\x20run:\x20','2013HxiMbr','37790ocDdJp','3108630oqPbxL','join','toLowerCase','29906THGBOp','filter','stableVersion','\x20is\x20recommended,\x20current\x20','parse','currentVersion','488dUNBps','belowMinimum','11091WBdoBA','stringify','126306cRfInr','lastNotifiedVersion','now','152MCHEWS','object','yes','33azcrJE','trim','true'];a176_0x3f6e=function(){return _0x447b91;};return a176_0x3f6e();}const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x11ee1f=a176_0xb97c,_0x16efc4=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x11ee1f(0xb8)]()[_0x11ee1f(0xa6)]();return _0x16efc4==='1'||_0x16efc4===_0x11ee1f(0xb9)||_0x16efc4===_0x11ee1f(0xb6);}function cacheRoot(){const _0x585486=a176_0xb97c;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x585486(0x9f));}export function getUpdateNoticeCachePath(){const _0x561b63=a176_0xb97c;return join(cacheRoot(),_0x561b63(0xba),_0x561b63(0x9e));}async function readUpdateNoticeCache(){const _0x1cae34=a176_0xb97c;try{const _0x40ae5f=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x13e572=JSON[_0x1cae34(0xab)](_0x40ae5f);if(!_0x13e572||typeof _0x13e572!==_0x1cae34(0xb5))return{};return _0x13e572;}catch{return{};}}async function writeUpdateNoticeCache(_0x1c2fe4){const _0x1ee5e0=a176_0xb97c;try{const _0x2044af=getUpdateNoticeCachePath();await mkdir(dirname(_0x2044af),{'recursive':!![]}),await writeFile(_0x2044af,JSON[_0x1ee5e0(0xb0)](_0x1c2fe4,null,0x2)+'\x0a','utf8');}catch{}}function a176_0xb97c(_0x470ad1,_0x195464){_0x470ad1=_0x470ad1-0x9e;const _0x3f6ed3=a176_0x3f6e();let _0xb97c7a=_0x3f6ed3[_0x470ad1];return _0xb97c7a;}function isRecentlyNotified(_0x34902f,_0x18d953,_0x261e8e){const _0x5316b8=a176_0xb97c;return _0x34902f[_0x5316b8(0xb2)]===_0x18d953&&typeof _0x34902f['lastNotifiedAt']===_0x5316b8(0xbb)&&_0x261e8e-_0x34902f['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x301ae6){return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x301ae6;}export async function resolveLatestUpdateNotice(_0x2afabe){const _0x51a494=a176_0xb97c;if(isUpdateNoticeDisabled())return null;try{const _0x1c817b=Date[_0x51a494(0xb3)](),_0x3cdfdd=_0x2afabe??await checkCliVersion(),_0x4c1e49=_0x3cdfdd[_0x51a494(0xac)],_0x43cffd=_0x3cdfdd[_0x51a494(0xa9)],_0xe1cb76=await readUpdateNoticeCache();if(!_0x43cffd||!_0x3cdfdd['needsUpgrade']||_0x3cdfdd[_0x51a494(0xae)])return null;if(isRecentlyNotified(_0xe1cb76,_0x43cffd,_0x1c817b))return null;const _0xc8191d=getCliUpgradeCommand(_0x3cdfdd);return await writeUpdateNoticeCache({..._0xe1cb76,'checkedAt':_0x1c817b,'latest':_0x43cffd,'failed':![],'lastNotifiedVersion':_0x43cffd,'lastNotifiedAt':_0x1c817b}),{'command':_0xc8191d,'current':_0x4c1e49,'latest':_0x43cffd,'url':buildNpmVersionUrl(_0x43cffd),'message':[_0x3cdfdd['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x43cffd+_0x51a494(0xaa)+_0x4c1e49+_0x51a494(0xa1)+_0xc8191d][_0x51a494(0xa8)](Boolean)[_0x51a494(0xa5)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a177_0x43e3(_0x41596e,_0x9ffe51){_0x41596e=_0x41596e-0x93;const _0x42b85a=a177_0x42b8();let _0x43e392=_0x42b85a[_0x41596e];return _0x43e392;}(function(_0x4805c6,_0x1a8bb8){const _0x3ed3ec=a177_0x43e3,_0x3aea48=_0x4805c6();while(!![]){try{const _0x95ac59=-parseInt(_0x3ed3ec(0x9f))/0x1+parseInt(_0x3ed3ec(0x94))/0x2+-parseInt(_0x3ed3ec(0x95))/0x3+parseInt(_0x3ed3ec(0x96))/0x4*(-parseInt(_0x3ed3ec(0x99))/0x5)+-parseInt(_0x3ed3ec(0x9a))/0x6*(-parseInt(_0x3ed3ec(0x9e))/0x7)+-parseInt(_0x3ed3ec(0x9c))/0x8*(parseInt(_0x3ed3ec(0x9b))/0x9)+-parseInt(_0x3ed3ec(0x93))/0xa*(-parseInt(_0x3ed3ec(0x9d))/0xb);if(_0x95ac59===_0x1a8bb8)break;else _0x3aea48['push'](_0x3aea48['shift']());}catch(_0x1511db){_0x3aea48['push'](_0x3aea48['shift']());}}}(a177_0x42b8,0xe9f11));function a177_0x42b8(){const _0x34d50b=['29373289jtzOHw','812vjZyoL','1229186nsGuzr','10hzKexI','2474802yiZgIv','3794652DWKTPX','1412RysIef','slice','unknown','6850ypUjdN','21846esCmOq','154233EgnmdC','184zWAvfo'];a177_0x42b8=function(){return _0x34d50b;};return a177_0x42b8();}import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x144045=a177_0x43e3,_0x3878bb=String(GIT_COMMIT);return _0x3878bb&&_0x3878bb!==_0x144045(0x98)?_0x3878bb:'';}export function getCliVersionDisplay(){const _0x1ef2f8=a177_0x43e3,_0x1ce49d=getCliGitCommit(),_0x383dd9=BUILD_TIME[_0x1ef2f8(0x97)](0x0,0xa);if(!_0x1ce49d||!_0x383dd9)return VERSION;return VERSION+'\x20('+_0x1ce49d+',\x20'+_0x383dd9+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0x5ec3(_0x28c223,_0x225ce0){_0x28c223=_0x28c223-0x161;var _0x3d0dff=a178_0x3d0d();var _0x5ec3fb=_0x3d0dff[_0x28c223];return _0x5ec3fb;}function a178_0x3d0d(){var _0x4aa8c1=['119fkWfJy','1206XFxEdQ','123248ylFAmF','14290uCXBdn','11000fxQncc','90QakiNX','67481FsMdpg','2026750tGsHyC','450896rKcswa','948EltXlN','write','15702gkXLhs'];a178_0x3d0d=function(){return _0x4aa8c1;};return a178_0x3d0d();}(function(_0x4269da,_0x393f0e){var _0x517c5e=a178_0x5ec3,_0x36023c=_0x4269da();while(!![]){try{var _0x434c61=parseInt(_0x517c5e(0x16b))/0x1+parseInt(_0x517c5e(0x162))/0x2*(-parseInt(_0x517c5e(0x166))/0x3)+-parseInt(_0x517c5e(0x167))/0x4+-parseInt(_0x517c5e(0x16c))/0x5+-parseInt(_0x517c5e(0x164))/0x6*(-parseInt(_0x517c5e(0x165))/0x7)+-parseInt(_0x517c5e(0x161))/0x8*(parseInt(_0x517c5e(0x16a))/0x9)+parseInt(_0x517c5e(0x168))/0xa*(parseInt(_0x517c5e(0x169))/0xb);if(_0x434c61===_0x393f0e)break;else _0x36023c['push'](_0x36023c['shift']());}catch(_0x1d6e30){_0x36023c['push'](_0x36023c['shift']());}}}(a178_0x3d0d,0x559b0));export function writeCliSideChannelLine(_0xf67476){var _0x1f22dd=a178_0x5ec3;process['stderr'][_0x1f22dd(0x163)](_0xf67476+'\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.7
|
|
4
|
+
version: 2.3.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.7
|
|
6
|
-
"skillVersion": "2.3.7
|
|
5
|
+
"packageVersion": "2.3.7",
|
|
6
|
+
"skillVersion": "2.3.7",
|
|
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": "aa4c0c6f86bc9d3c3cfcb1f46bc98ed0c1dcd32a529ba22bb07e5bcbc261dc8a"
|
|
44
44
|
}
|