@lovrabet/lovrabet-cli 2.3.8-beta.1 → 2.3.8-beta.3
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.d.ts +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.d.ts +32 -6
- 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.d.ts +2 -4
- 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 +26 -358
- 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.d.ts +9 -10
- 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.d.ts +2 -0
- package/lib/utils/runtime-user-id.js +1 -0
- 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/guides/role-and-permission-workflow.md +3 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x52c092=a172_0x30a1;(function(_0x39eceb,_0x36c103){const _0x4fac7d=a172_0x30a1,_0x2efe06=_0x39eceb();while(!![]){try{const _0x3d0481=parseInt(_0x4fac7d(0x176))/0x1+-parseInt(_0x4fac7d(0x17b))/0x2+-parseInt(_0x4fac7d(0x17d))/0x3+-parseInt(_0x4fac7d(0x178))/0x4+parseInt(_0x4fac7d(0x17e))/0x5*(-parseInt(_0x4fac7d(0x177))/0x6)+parseInt(_0x4fac7d(0x17f))/0x7*(parseInt(_0x4fac7d(0x17a))/0x8)+parseInt(_0x4fac7d(0x17c))/0x9*(parseInt(_0x4fac7d(0x188))/0xa);if(_0x3d0481===_0x36c103)break;else _0x2efe06['push'](_0x2efe06['shift']());}catch(_0xc7dd83){_0x2efe06['push'](_0x2efe06['shift']());}}}(a172_0x16f9,0x19d26));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x52c092(0x185)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x52c092(0x181)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function a172_0x16f9(){const _0x30ff5b=['getOwnPropertyDescriptor','includes','184395QZpWqZ','870mwSpMw','605852zMyrHV','json','8jTvtog','190480zBtDUG','2988954sukOUj','179508ZPAogQ','6985ndNpiK','688583Vgnnhx','length','MIN_SAFE_INTEGER','defineProperty','exec','prototype','MAX_SAFE_INTEGER','parse','text','10WQgxJU'];a172_0x16f9=function(){return _0x30ff5b;};return a172_0x16f9();}function a172_0x30a1(_0x3203d3,_0x5eca56){_0x3203d3=_0x3203d3-0x176;const _0x16f902=a172_0x16f9();let _0x30a126=_0x16f902[_0x3203d3];return _0x30a126;}function isUnsafeIntegerLiteral(_0x2a7073){const _0x51de91=a172_0x52c092;if(_0x2a7073[_0x51de91(0x18a)]('.')||_0x2a7073['includes']('e')||_0x2a7073[_0x51de91(0x18a)]('E'))return![];const _0x5e5ad6=BigInt(_0x2a7073);return _0x5e5ad6>MAX_SAFE_INTEGER||_0x5e5ad6<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x4ab5fe){const _0xf67009=a172_0x52c092;let _0x3ae81a='',_0x444f42=![],_0x57cb63=![];for(let _0x772fd8=0x0;_0x772fd8<_0x4ab5fe[_0xf67009(0x180)];){const _0x3225ad=_0x4ab5fe[_0x772fd8];if(_0x444f42){_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;if(_0x57cb63)_0x57cb63=![];else{if(_0x3225ad==='\x5c')_0x57cb63=!![];else _0x3225ad==='\x22'&&(_0x444f42=![]);}continue;}if(_0x3225ad==='\x22'){_0x444f42=!![],_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;continue;}if(_0x3225ad==='-'||_0x3225ad>='0'&&_0x3225ad<='9'){const _0x3d6e3d=JSON_NUMBER_PATTERN[_0xf67009(0x183)](_0x4ab5fe['slice'](_0x772fd8))?.[0x0];if(_0x3d6e3d){_0x3ae81a+=isUnsafeIntegerLiteral(_0x3d6e3d)?'\x22'+_0x3d6e3d+'\x22':_0x3d6e3d,_0x772fd8+=_0x3d6e3d[_0xf67009(0x180)];continue;}}_0x3ae81a+=_0x3225ad,_0x772fd8+=0x1;}return _0x3ae81a;}export function parseLosslessJson(_0x5530ca){const _0x50fefd=a172_0x52c092;return JSON[_0x50fefd(0x186)](quoteUnsafeIntegerLiterals(_0x5530ca));}export function installLosslessJsonResponseParser(){const _0x418dce=a172_0x52c092;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x418dce(0x184)],originalResponseJsonDescriptor=Object[_0x418dce(0x189)](responseJsonPrototype,_0x418dce(0x179)),Object[_0x418dce(0x182)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4f084d(){const _0x24ea02=_0x418dce;return parseLosslessJson(await this[_0x24ea02(0x187)]());}}),restoreResponseJsonParser=()=>{const _0x552707=_0x418dce;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x552707(0x182)](responseJsonPrototype,_0x552707(0x179),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x552707(0x179)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3c9c80,_0x7f0941){const _0x23c20a=a173_0x5e68,_0x12a343=_0x3c9c80();while(!![]){try{const _0x2396d8=-parseInt(_0x23c20a(0x1c8))/0x1+-parseInt(_0x23c20a(0x1d2))/0x2*(-parseInt(_0x23c20a(0x1ca))/0x3)+parseInt(_0x23c20a(0x1c1))/0x4+parseInt(_0x23c20a(0x1d7))/0x5+parseInt(_0x23c20a(0x1c4))/0x6*(parseInt(_0x23c20a(0x1c2))/0x7)+-parseInt(_0x23c20a(0x1c5))/0x8+-parseInt(_0x23c20a(0x1c9))/0x9;if(_0x2396d8===_0x7f0941)break;else _0x12a343['push'](_0x12a343['shift']());}catch(_0x44587a){_0x12a343['push'](_0x12a343['shift']());}}}(a173_0x2aae,0x543f2));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x31560a){const _0x5ef167=a173_0x5e68;if(!_0x31560a)return undefined;try{return parseLosslessJson(_0x31560a);}catch{throw CliErrors[_0x5ef167(0x1bf)](_0x5ef167(0x1d4)+_0x31560a);}}function a173_0x5e68(_0x34f737,_0xc3c712){_0x34f737=_0x34f737-0x1be;const _0x2aae4e=a173_0x2aae();let _0x5e6862=_0x2aae4e[_0x34f737];return _0x5e6862;}export function parseJsonParamsValue(_0xd7fef3){const _0x179502=a173_0x5e68;if(!_0xd7fef3)return undefined;try{return parseLosslessJson(_0xd7fef3);}catch{throw CliErrors[_0x179502(0x1bf)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0xd7fef3);}}function a173_0x2aae(){const _0x546837=['number','validation','\x20records\x20per\x20call;\x20received\x20','1870420TiiXSU','1920709DACZPu','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','6GzspmR','3825464Qfhosj','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','items','550629eLJqMc','2455722oWOoxg','3681rikfZP','object','length','test','id[','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','isArray','584ArnddE','join','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','2732340JhTGdr','map'];a173_0x2aae=function(){return _0x546837;};return a173_0x2aae();}export function parseBatchCreateItemsFromParams(_0x4cca38){const _0x3068bd=a173_0x5e68;if(Array[_0x3068bd(0x1d1)](_0x4cca38))return _0x4cca38;if(_0x4cca38!==null&&_0x4cca38!==undefined&&typeof _0x4cca38===_0x3068bd(0x1cb)&&Array[_0x3068bd(0x1d1)](_0x4cca38[_0x3068bd(0x1c7)]))return _0x4cca38[_0x3068bd(0x1c7)];throw CliErrors[_0x3068bd(0x1bf)](_0x3068bd(0x1d0),_0x3068bd(0x1d5));}function parseDataUpdateId(_0x31e25b,_0x3bc75e){const _0x19045c=a173_0x5e68;if(typeof _0x31e25b===_0x19045c(0x1be)&&Number['isSafeInteger'](_0x31e25b)&&_0x31e25b>0x0)return _0x31e25b;if(typeof _0x31e25b==='string'){if(/^[1-9]\d*$/[_0x19045c(0x1cd)](_0x31e25b))return _0x31e25b;}throw CliErrors['validation']('data\x20update\x20--params.'+_0x3bc75e+_0x19045c(0x1c6));}export function parseUpdateIdsFromParams(_0x527c73){const _0x273d16=a173_0x5e68;if(_0x527c73===null||_0x527c73===undefined||typeof _0x527c73!=='object'||Array[_0x273d16(0x1d1)](_0x527c73))throw CliErrors[_0x273d16(0x1bf)](_0x273d16(0x1cf),_0x273d16(0x1d6));const _0xf173cc=_0x527c73['id'];if(_0xf173cc===undefined||_0xf173cc===null)throw CliErrors[_0x273d16(0x1bf)](_0x273d16(0x1c3),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x2602f1=Array[_0x273d16(0x1d1)](_0xf173cc)?_0xf173cc:[_0xf173cc];if(_0x2602f1['length']===0x0)throw CliErrors[_0x273d16(0x1bf)]('data\x20update\x20id\x20array\x20cannot\x20be\x20empty.');if(_0x2602f1[_0x273d16(0x1cc)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x273d16(0x1bf)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x273d16(0x1c0)+_0x2602f1[_0x273d16(0x1cc)]+'.');return _0x2602f1[_0x273d16(0x1d8)]((_0x2ed8b7,_0x33d63e)=>parseDataUpdateId(_0x2ed8b7,Array['isArray'](_0xf173cc)?_0x273d16(0x1ce)+_0x33d63e+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x3e3881,_0xa25bef){const _0x1182e9=a173_0x5e68;if(Array['isArray'](_0x3e3881['id'])&&_0xa25bef['length']>0x1)return{..._0x3e3881,'id':_0xa25bef[_0x1182e9(0x1d3)](',')};return _0x3e3881;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x54971c,_0x1b7db3){const _0x2e77c0=a174_0x1615,_0x5524c9=_0x54971c();while(!![]){try{const _0x4974e5=-parseInt(_0x2e77c0(0x142))/0x1+parseInt(_0x2e77c0(0x13e))/0x2*(parseInt(_0x2e77c0(0x13f))/0x3)+-parseInt(_0x2e77c0(0x144))/0x4+-parseInt(_0x2e77c0(0x146))/0x5+parseInt(_0x2e77c0(0x147))/0x6*(parseInt(_0x2e77c0(0x145))/0x7)+-parseInt(_0x2e77c0(0x13d))/0x8+-parseInt(_0x2e77c0(0x149))/0x9*(-parseInt(_0x2e77c0(0x140))/0xa);if(_0x4974e5===_0x1b7db3)break;else _0x5524c9['push'](_0x5524c9['shift']());}catch(_0x5830d4){_0x5524c9['push'](_0x5524c9['shift']());}}}(a174_0x559b,0x386a4));export function normalizePositiveSafeInteger(_0x476084){const _0x3461b4=a174_0x1615;if(typeof _0x476084==='number')return Number[_0x3461b4(0x143)](_0x476084)&&_0x476084>0x0?_0x476084:undefined;if(typeof _0x476084!==_0x3461b4(0x141)||!/^\d+$/[_0x3461b4(0x148)](_0x476084))return undefined;const _0x1301d0=Number(_0x476084);return Number[_0x3461b4(0x143)](_0x1301d0)&&_0x1301d0>0x0?_0x1301d0:undefined;}function a174_0x1615(_0x1bad85,_0x2db6f0){_0x1bad85=_0x1bad85-0x13d;const _0x559b1a=a174_0x559b();let _0x161594=_0x559b1a[_0x1bad85];return _0x161594;}function a174_0x559b(){const _0x4c4c24=['976764NGkhwt','test','1647711TaUgdl','3466456SfvvjI','20002TQjcfQ','6JgootU','50KrmuiR','string','130066fybVpj','isSafeInteger','102636rLtGCM','7yZQbvy','1390415EbMaej'];a174_0x559b=function(){return _0x4c4c24;};return a174_0x559b();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x114e6f=a175_0x4cb2;(function(_0x3c3028,_0x5d59fd){const _0x46449d=a175_0x4cb2,_0x4d3cc8=_0x3c3028();while(!![]){try{const _0x5b7ea3=-parseInt(_0x46449d(0xbf))/0x1+parseInt(_0x46449d(0xbe))/0x2+parseInt(_0x46449d(0xc4))/0x3*(-parseInt(_0x46449d(0xcd))/0x4)+parseInt(_0x46449d(0xc8))/0x5+parseInt(_0x46449d(0xcc))/0x6*(-parseInt(_0x46449d(0xc5))/0x7)+parseInt(_0x46449d(0xc6))/0x8*(parseInt(_0x46449d(0xd2))/0x9)+-parseInt(_0x46449d(0xc1))/0xa*(-parseInt(_0x46449d(0xc2))/0xb);if(_0x5b7ea3===_0x5d59fd)break;else _0x4d3cc8['push'](_0x4d3cc8['shift']());}catch(_0x2a638e){_0x4d3cc8['push'](_0x4d3cc8['shift']());}}}(a175_0x4a81,0x395d2));const REDACTED_VALUE=a175_0x114e6f(0xbd),SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x114e6f(0xd1),a175_0x114e6f(0xcf)]),SENSITIVE_VALUE_KEYS=new Set([a175_0x114e6f(0xd1)]);export function isSensitiveKey(_0x460043){const _0x564d63=a175_0x114e6f,_0xcc4aaf=_0x460043['replace'](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x564d63(0xce)](_0xcc4aaf);}export function isSensitiveFlagName(_0x558c86){const _0x199f43=a175_0x114e6f,_0x434afa=_0x558c86[_0x199f43(0xcb)](/_/g,'-')[_0x199f43(0xbc)]();return isSensitiveKey(_0x434afa)||SENSITIVE_FLAG_NAMES['has'](_0x434afa);}function a175_0x4a81(){const _0x354fe5=['701534vaceOQ','292044QbEzPq','push','220qkXTOv','122639QXPUBO','entries','67806PxjlGy','28126iFAfup','16yuVoRF','map','1979285gNJLND','fromEntries','match','replace','642hIgubE','28xoFMJJ','test','variables','object','comment','554598ENMoxH','toLowerCase','[REDACTED]'];a175_0x4a81=function(){return _0x354fe5;};return a175_0x4a81();}function redactVariableValues(_0x423b98){const _0x3fc99a=a175_0x114e6f;if(Array['isArray'](_0x423b98))return _0x423b98[_0x3fc99a(0xc7)](_0xbe7d5d=>redactVariableValues(_0xbe7d5d));if(_0x423b98&&typeof _0x423b98==='object')return Object[_0x3fc99a(0xc9)](Object[_0x3fc99a(0xc3)](_0x423b98)[_0x3fc99a(0xc7)](([_0x590100,_0x46b9a5])=>[_0x590100,redactVariableValues(_0x46b9a5)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x3a0ed7){const _0x41fba1=a175_0x114e6f;if(Array['isArray'](_0x3a0ed7))return _0x3a0ed7[_0x41fba1(0xc7)](_0x4ac2f5=>redactSensitiveValue(_0x4ac2f5));if(!_0x3a0ed7||typeof _0x3a0ed7!==_0x41fba1(0xd0))return _0x3a0ed7;const _0x3e4b0b={};for(const [_0x1f201a,_0x4997b0]of Object['entries'](_0x3a0ed7)){const _0x4da8f2=_0x1f201a[_0x41fba1(0xcb)](/_/g,'-')[_0x41fba1(0xbc)]();_0x3e4b0b[_0x1f201a]=_0x4da8f2==='variables'?redactVariableValues(_0x4997b0):SENSITIVE_VALUE_KEYS['has'](_0x4da8f2)||isSensitiveKey(_0x1f201a)?REDACTED_VALUE:redactSensitiveValue(_0x4997b0);}return _0x3e4b0b;}export function redactCommandArgv(_0x513516){const _0x50b2ac=a175_0x114e6f,_0x408919=[];let _0x54e7eb=![];for(const _0x2a3909 of _0x513516){if(_0x54e7eb){_0x408919[_0x50b2ac(0xc0)](REDACTED_VALUE),_0x54e7eb=![];continue;}const _0xad916f=_0x2a3909[_0x50b2ac(0xca)](/^--([^=]+)(?:=(.*))?$/);if(!_0xad916f||!isSensitiveFlagName(_0xad916f[0x1]??'')){_0x408919['push'](_0x2a3909);continue;}_0x408919[_0x50b2ac(0xc0)]('--'+_0xad916f[0x1]+(_0xad916f[0x2]===undefined?'':'='+REDACTED_VALUE)),_0xad916f[0x2]===undefined&&(_0x54e7eb=!![]);}return _0x408919;}function a175_0x4cb2(_0x480c8f,_0x3cf2ee){_0x480c8f=_0x480c8f-0xbc;const _0x4a81b1=a175_0x4a81();let _0x4cb28a=_0x4a81b1[_0x480c8f];return _0x4cb28a;}export{REDACTED_VALUE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a176_0x538a(_0x316323,_0x234c25){_0x316323=_0x316323-0x194;const _0x38742b=a176_0x3874();let _0x538acf=_0x38742b[_0x316323];return _0x538acf;}(function(_0x3934c5,_0x3dd264){const _0xf65dbb=a176_0x538a,_0x5d32c8=_0x3934c5();while(!![]){try{const _0x54f235=-parseInt(_0xf65dbb(0x1a1))/0x1+-parseInt(_0xf65dbb(0x198))/0x2*(parseInt(_0xf65dbb(0x19e))/0x3)+-parseInt(_0xf65dbb(0x1a0))/0x4+parseInt(_0xf65dbb(0x195))/0x5*(-parseInt(_0xf65dbb(0x19a))/0x6)+parseInt(_0xf65dbb(0x19d))/0x7+parseInt(_0xf65dbb(0x194))/0x8+parseInt(_0xf65dbb(0x199))/0x9;if(_0x54f235===_0x3dd264)break;else _0x5d32c8['push'](_0x5d32c8['shift']());}catch(_0x1f78fd){_0x5d32c8['push'](_0x5d32c8['shift']());}}}(a176_0x3874,0x89f45));export function normalizeRuntimeUserId(_0x7e0d87){const _0x19e619=a176_0x538a;if(typeof _0x7e0d87===_0x19e619(0x19b))return Number[_0x19e619(0x19c)](_0x7e0d87)&&_0x7e0d87>0x0?String(_0x7e0d87):undefined;if(typeof _0x7e0d87!==_0x19e619(0x196)||!/^\d+$/[_0x19e619(0x197)](_0x7e0d87))return undefined;const _0x12778f=_0x7e0d87[_0x19e619(0x19f)](/^0+/,'');return _0x12778f||undefined;}function a176_0x3874(){const _0x328a56=['isSafeInteger','7084007tnPiLI','4137RLXiGE','replace','1716424kufeTQ','114041IjakgW','3195136qjgGWG','5UwUYoC','string','test','1352klQMPv','5945814LHZTVj','189762hbjEhM','number'];a176_0x3874=function(){return _0x328a56;};return a176_0x3874();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a940,_0x2cda5e){const _0x5df900=a177_0x5a62,_0x110abb=_0x1a940();while(!![]){try{const _0x2a14c4=-parseInt(_0x5df900(0xdb))/0x1+parseInt(_0x5df900(0xe6))/0x2*(-parseInt(_0x5df900(0xe3))/0x3)+-parseInt(_0x5df900(0xd7))/0x4*(-parseInt(_0x5df900(0xd6))/0x5)+-parseInt(_0x5df900(0xe9))/0x6*(parseInt(_0x5df900(0xd8))/0x7)+parseInt(_0x5df900(0xe4))/0x8+parseInt(_0x5df900(0xe8))/0x9*(-parseInt(_0x5df900(0xe1))/0xa)+parseInt(_0x5df900(0xd0))/0xb;if(_0x2a14c4===_0x2cda5e)break;else _0x110abb['push'](_0x110abb['shift']());}catch(_0x74d93a){_0x110abb['push'](_0x110abb['shift']());}}}(a177_0x5e2b,0x7963e));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';function a177_0x5e2b(){const _0x239343=['4mwKgwb','861CCXgBx','toLowerCase','parse','906616ansGyV','.cache','lastNotifiedVersion',',\x20run:\x20','needsUpgrade','/v/','460MxFdaD','lastNotifiedAt','2094HARMJk','2257680luBLLn','upgradeMessage','1316IlbJYh','utf8','60309ZcKJfr','14070cuppFH','join','belowMinimum','stableVersion','yes','20760784cysBTO','currentVersion','true','number','update-check.json','object','1451205VwqrPd'];a177_0x5e2b=function(){return _0x239343;};return a177_0x5e2b();}import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x306911=a177_0x5a62,_0x8f1ccd=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x306911(0xd9)]();return _0x8f1ccd==='1'||_0x8f1ccd===_0x306911(0xd2)||_0x8f1ccd===_0x306911(0xcf);}function cacheRoot(){const _0x3f5085=a177_0x5a62;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3f5085(0xdc));}export function getUpdateNoticeCachePath(){const _0x1e3d76=a177_0x5a62;return join(cacheRoot(),'lovrabet-cli',_0x1e3d76(0xd4));}async function readUpdateNoticeCache(){const _0x2f8924=a177_0x5a62;try{const _0x92c58a=await readFile(getUpdateNoticeCachePath(),_0x2f8924(0xe7)),_0x1eefc0=JSON[_0x2f8924(0xda)](_0x92c58a);if(!_0x1eefc0||typeof _0x1eefc0!==_0x2f8924(0xd5))return{};return _0x1eefc0;}catch{return{};}}function a177_0x5a62(_0x2fb47c,_0x48e692){_0x2fb47c=_0x2fb47c-0xce;const _0x5e2b64=a177_0x5e2b();let _0x5a62c0=_0x5e2b64[_0x2fb47c];return _0x5a62c0;}async function writeUpdateNoticeCache(_0x3aa485){const _0x253c2b=a177_0x5a62;try{const _0x41460d=getUpdateNoticeCachePath();await mkdir(dirname(_0x41460d),{'recursive':!![]}),await writeFile(_0x41460d,JSON['stringify'](_0x3aa485,null,0x2)+'\x0a',_0x253c2b(0xe7));}catch{}}function isRecentlyNotified(_0x3640a4,_0x268e1a,_0x3e4657){const _0x56ab4e=a177_0x5a62;return _0x3640a4[_0x56ab4e(0xdd)]===_0x268e1a&&typeof _0x3640a4['lastNotifiedAt']===_0x56ab4e(0xd3)&&_0x3e4657-_0x3640a4[_0x56ab4e(0xe2)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1fedf1){const _0x59ef7c=a177_0x5a62;return'https://www.npmjs.com/package/'+LOVRABET_NPM_PACKAGE_NAME+_0x59ef7c(0xe0)+_0x1fedf1;}export async function resolveLatestUpdateNotice(_0x47f25f){const _0x39c029=a177_0x5a62;if(isUpdateNoticeDisabled())return null;try{const _0x130d8a=Date['now'](),_0x5d29a8=_0x47f25f??await checkCliVersion(),_0x3d5c18=_0x5d29a8[_0x39c029(0xd1)],_0x36932b=_0x5d29a8[_0x39c029(0xce)],_0x13d35e=await readUpdateNoticeCache();if(!_0x36932b||!_0x5d29a8[_0x39c029(0xdf)]||_0x5d29a8[_0x39c029(0xeb)])return null;if(isRecentlyNotified(_0x13d35e,_0x36932b,_0x130d8a))return null;const _0xfe1b5b=getCliUpgradeCommand(_0x5d29a8);return await writeUpdateNoticeCache({..._0x13d35e,'checkedAt':_0x130d8a,'latest':_0x36932b,'failed':![],'lastNotifiedVersion':_0x36932b,'lastNotifiedAt':_0x130d8a}),{'command':_0xfe1b5b,'current':_0x3d5c18,'latest':_0x36932b,'url':buildNpmVersionUrl(_0x36932b),'message':[_0x5d29a8[_0x39c029(0xe5)],CLI_BIN_NAME+'\x20'+_0x36932b+'\x20is\x20recommended,\x20current\x20'+_0x3d5c18+_0x39c029(0xde)+_0xfe1b5b]['filter'](Boolean)[_0x39c029(0xea)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a611f,_0x321968){const _0x56e6fa=a178_0x3ddb,_0x27d7ed=_0x4a611f();while(!![]){try{const _0x344383=-parseInt(_0x56e6fa(0x121))/0x1+-parseInt(_0x56e6fa(0x120))/0x2*(parseInt(_0x56e6fa(0x12c))/0x3)+-parseInt(_0x56e6fa(0x12b))/0x4*(-parseInt(_0x56e6fa(0x123))/0x5)+-parseInt(_0x56e6fa(0x129))/0x6*(parseInt(_0x56e6fa(0x125))/0x7)+-parseInt(_0x56e6fa(0x124))/0x8*(parseInt(_0x56e6fa(0x11f))/0x9)+parseInt(_0x56e6fa(0x122))/0xa+-parseInt(_0x56e6fa(0x128))/0xb*(-parseInt(_0x56e6fa(0x12a))/0xc);if(_0x344383===_0x321968)break;else _0x27d7ed['push'](_0x27d7ed['shift']());}catch(_0x4910dd){_0x27d7ed['push'](_0x27d7ed['shift']());}}}(a178_0x4d26,0x7bfde));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x2966cc=a178_0x3ddb,_0x7f59b3=String(GIT_COMMIT);return _0x7f59b3&&_0x7f59b3!==_0x2966cc(0x126)?_0x7f59b3:'';}export function getCliVersionDisplay(){const _0x175ccc=a178_0x3ddb,_0x3b336e=getCliGitCommit(),_0x58d9c5=BUILD_TIME[_0x175ccc(0x127)](0x0,0xa);if(!_0x3b336e||!_0x58d9c5)return VERSION;return VERSION+'\x20('+_0x3b336e+',\x20'+_0x58d9c5+')';}function a178_0x3ddb(_0x34fa2b,_0xfc913f){_0x34fa2b=_0x34fa2b-0x11f;const _0x4d269a=a178_0x4d26();let _0x3ddb57=_0x4d269a[_0x34fa2b];return _0x3ddb57;}function a178_0x4d26(){const _0x323d66=['4759050EIKhID','45aHYDGp','8CdPLFr','121590JGqOjY','unknown','slice','38995qoiHrQ','228gjFeUK','7092fQadxo','98876BLIOmW','559947orOfrz','8050356yJNVsb','2sOjpQO','544408igISmW'];a178_0x4d26=function(){return _0x323d66;};return a178_0x4d26();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xcdbf71,_0x2c2684){var _0x2e2a3b=a179_0x391f,_0x4dc3ec=_0xcdbf71();while(!![]){try{var _0x139266=-parseInt(_0x2e2a3b(0x1f8))/0x1*(-parseInt(_0x2e2a3b(0x1fb))/0x2)+parseInt(_0x2e2a3b(0x1f9))/0x3+-parseInt(_0x2e2a3b(0x1f7))/0x4*(parseInt(_0x2e2a3b(0x1fa))/0x5)+-parseInt(_0x2e2a3b(0x1f3))/0x6*(-parseInt(_0x2e2a3b(0x1f6))/0x7)+-parseInt(_0x2e2a3b(0x1f2))/0x8+-parseInt(_0x2e2a3b(0x1f1))/0x9*(parseInt(_0x2e2a3b(0x1f0))/0xa)+parseInt(_0x2e2a3b(0x1f5))/0xb*(parseInt(_0x2e2a3b(0x1f4))/0xc);if(_0x139266===_0x2c2684)break;else _0x4dc3ec['push'](_0x4dc3ec['shift']());}catch(_0x109ece){_0x4dc3ec['push'](_0x4dc3ec['shift']());}}}(a179_0x5a5f,0x6f17d));export function writeCliSideChannelLine(_0xf5d9d6){var _0x33bade=a179_0x391f;process[_0x33bade(0x1fc)][_0x33bade(0x1ef)](_0xf5d9d6+'\x0a');}function a179_0x391f(_0x4ec78c,_0x404c3d){_0x4ec78c=_0x4ec78c-0x1ef;var _0x5a5f76=a179_0x5a5f();var _0x391f82=_0x5a5f76[_0x4ec78c];return _0x391f82;}function a179_0x5a5f(){var _0x12c8da=['stderr','write','10xDxFdf','5843538QiHfLn','4158864wAytoS','6RpFIvH','8193756bwfNmW','11SUZsfa','2519146StLihA','1139604KJReUG','1fohOnn','2271474jMOHEK','5BjDxyt','218458HqYTfo'];a179_0x5a5f=function(){return _0x12c8da;};return a179_0x5a5f();}
|
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.3",
|
|
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.4
|
|
89
|
+
"@lovrabet/sdk": "1.6.1-beta.4",
|
|
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.3
|
|
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:
|
|
@@ -54,11 +54,12 @@ lovrabet role user-remove --role <roleId|exactName> --user <userId> --expect-use
|
|
|
54
54
|
lovrabet role user-remove --role <roleId|exactName> --user <userId> --expect-user-count <count> --yes --format compress
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
- `--user`
|
|
57
|
+
- `--user` 使用用户 ID(字符串);添加时该人员必须已经属于目标应用。
|
|
58
|
+
- `selector.userId` 和 `before/after.userIds` 均输出字符串。
|
|
58
59
|
- `--expect-user-count` 用于防止读取后成员数量已变化,建议每次写入都提供。
|
|
59
60
|
- 重复添加已有成员或移出不存在的成员不会重复写入。
|
|
60
61
|
- OWNER 成员不能用这些命令调整。
|
|
61
|
-
-
|
|
62
|
+
- 如果人员身份不明确,停止写入并要求用户确认用户 ID。
|
|
62
63
|
|
|
63
64
|
## 页面权限
|
|
64
65
|
|
|
@@ -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.3",
|
|
6
|
+
"skillVersion": "2.3.8-beta.3",
|
|
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": "7452039ebc27c9acc609e3afce43312d342d7846ba6d0683c8e6f55ac05e505f"
|
|
44
44
|
}
|