@lovrabet/lovrabet-cli 2.3.7 → 2.3.8-beta.2
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/README.md +1 -1
- 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 +20 -340
- 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 +7 -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 +3 -3
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet/guides/role-and-permission-workflow.md +3 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a172_0x44d1f5=a172_0xc987;(function(_0x453cb1,_0x1b0612){const _0x44503b=a172_0xc987,_0x5872fc=_0x453cb1();while(!![]){try{const _0x454050=parseInt(_0x44503b(0x19c))/0x1*(-parseInt(_0x44503b(0x194))/0x2)+parseInt(_0x44503b(0x198))/0x3+parseInt(_0x44503b(0x192))/0x4+parseInt(_0x44503b(0x193))/0x5+parseInt(_0x44503b(0x197))/0x6+-parseInt(_0x44503b(0x19b))/0x7+-parseInt(_0x44503b(0x18f))/0x8;if(_0x454050===_0x1b0612)break;else _0x5872fc['push'](_0x5872fc['shift']());}catch(_0x5b23e){_0x5872fc['push'](_0x5872fc['shift']());}}}(a172_0x2aaa,0x864e0));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a172_0x44d1f5(0x18b)]),MIN_SAFE_INTEGER=BigInt(Number[a172_0x44d1f5(0x191)]);function a172_0x2aaa(){const _0x1b5759=['MIN_SAFE_INTEGER','1330204seoboQ','2618325DvGQnb','2JEzcmx','text','undefined','872136blffKg','443331jNCMst','length','exec','988862kTruHl','383989ECdsSy','defineProperty','prototype','MAX_SAFE_INTEGER','getOwnPropertyDescriptor','includes','json','591856BsgfEL','slice'];a172_0x2aaa=function(){return _0x1b5759;};return a172_0x2aaa();}let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x4c348c){const _0x2d3a66=a172_0x44d1f5;if(_0x4c348c[_0x2d3a66(0x18d)]('.')||_0x4c348c[_0x2d3a66(0x18d)]('e')||_0x4c348c[_0x2d3a66(0x18d)]('E'))return![];const _0x2ed2d7=BigInt(_0x4c348c);return _0x2ed2d7>MAX_SAFE_INTEGER||_0x2ed2d7<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x513536){const _0x32421b=a172_0x44d1f5;let _0x1c3bcd='',_0x4f5671=![],_0x500b08=![];for(let _0x70a588=0x0;_0x70a588<_0x513536[_0x32421b(0x199)];){const _0xbec0bc=_0x513536[_0x70a588];if(_0x4f5671){_0x1c3bcd+=_0xbec0bc,_0x70a588+=0x1;if(_0x500b08)_0x500b08=![];else{if(_0xbec0bc==='\x5c')_0x500b08=!![];else _0xbec0bc==='\x22'&&(_0x4f5671=![]);}continue;}if(_0xbec0bc==='\x22'){_0x4f5671=!![],_0x1c3bcd+=_0xbec0bc,_0x70a588+=0x1;continue;}if(_0xbec0bc==='-'||_0xbec0bc>='0'&&_0xbec0bc<='9'){const _0x467666=JSON_NUMBER_PATTERN[_0x32421b(0x19a)](_0x513536[_0x32421b(0x190)](_0x70a588))?.[0x0];if(_0x467666){_0x1c3bcd+=isUnsafeIntegerLiteral(_0x467666)?'\x22'+_0x467666+'\x22':_0x467666,_0x70a588+=_0x467666[_0x32421b(0x199)];continue;}}_0x1c3bcd+=_0xbec0bc,_0x70a588+=0x1;}return _0x1c3bcd;}function a172_0xc987(_0x398426,_0x13a52a){_0x398426=_0x398426-0x189;const _0x2aaaed=a172_0x2aaa();let _0xc987fa=_0x2aaaed[_0x398426];return _0xc987fa;}export function parseLosslessJson(_0x195e46){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x195e46));}export function installLosslessJsonResponseParser(){const _0xd2d658=a172_0x44d1f5;if(typeof Response===_0xd2d658(0x196))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0xd2d658(0x18a)],originalResponseJsonDescriptor=Object[_0xd2d658(0x18c)](responseJsonPrototype,_0xd2d658(0x18e)),Object[_0xd2d658(0x189)](responseJsonPrototype,_0xd2d658(0x18e),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1883c8(){const _0x528365=_0xd2d658;return parseLosslessJson(await this[_0x528365(0x195)]());}}),restoreResponseJsonParser=()=>{const _0x5d9a29=_0xd2d658;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x5d9a29(0x18e),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x5d9a29(0x18e)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a173_0x29ba(){const _0x54587d=['validation','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','409050uQpIKQ','690063dhNBBS','object','1631648NMXGfu','length','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','21WtWkbU','246fmxXjw','210NllVkC','number','1918352GXgWlI','158463mlyPBu','items','map','12oqyWeq','data\x20update\x20--params.','\x20records\x20per\x20call;\x20received\x20','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','join','2415370xLOEBM','isArray','14132iCDHpt','string','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.'];a173_0x29ba=function(){return _0x54587d;};return a173_0x29ba();}(function(_0x577857,_0x524219){const _0x51817a=a173_0x4cfc,_0x11d09c=_0x577857();while(!![]){try{const _0x7fec92=parseInt(_0x51817a(0x10c))/0x1+-parseInt(_0x51817a(0x10f))/0x2+parseInt(_0x51817a(0x114))/0x3*(parseInt(_0x51817a(0x107))/0x4)+parseInt(_0x51817a(0x105))/0x5*(parseInt(_0x51817a(0x11b))/0x6)+-parseInt(_0x51817a(0x113))/0x7*(parseInt(_0x51817a(0x117))/0x8)+-parseInt(_0x51817a(0x118))/0x9*(-parseInt(_0x51817a(0x115))/0xa)+parseInt(_0x51817a(0x10d))/0xb;if(_0x7fec92===_0x524219)break;else _0x11d09c['push'](_0x11d09c['shift']());}catch(_0x318e55){_0x11d09c['push'](_0x11d09c['shift']());}}}(a173_0x29ba,0x89402));import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';export const MAX_DATA_UPDATE_IDS=0x3e8;function a173_0x4cfc(_0x12431a,_0x39aff6){_0x12431a=_0x12431a-0x101;const _0x29bad7=a173_0x29ba();let _0x4cfcbf=_0x29bad7[_0x12431a];return _0x4cfcbf;}export function parseJsonParams(_0x136edc){const _0x591eda=a173_0x4cfc;if(!_0x136edc)return undefined;try{return parseLosslessJson(_0x136edc);}catch{throw CliErrors[_0x591eda(0x10a)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x136edc);}}export function parseJsonParamsValue(_0x48b173){const _0x562e1f=a173_0x4cfc;if(!_0x48b173)return undefined;try{return parseLosslessJson(_0x48b173);}catch{throw CliErrors[_0x562e1f(0x10a)](_0x562e1f(0x111)+_0x48b173);}}export function parseBatchCreateItemsFromParams(_0x1ba90b){const _0x4c47b6=a173_0x4cfc;if(Array[_0x4c47b6(0x106)](_0x1ba90b))return _0x1ba90b;if(_0x1ba90b!==null&&_0x1ba90b!==undefined&&typeof _0x1ba90b===_0x4c47b6(0x10e)&&Array['isArray'](_0x1ba90b[_0x4c47b6(0x119)]))return _0x1ba90b[_0x4c47b6(0x119)];throw CliErrors[_0x4c47b6(0x10a)]('batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27');}function parseDataUpdateId(_0xc99527,_0x4ec0d){const _0x1967e5=a173_0x4cfc;if(typeof _0xc99527===_0x1967e5(0x116)&&Number['isSafeInteger'](_0xc99527)&&_0xc99527>0x0)return _0xc99527;if(typeof _0xc99527===_0x1967e5(0x108)){if(/^[1-9]\d*$/['test'](_0xc99527))return _0xc99527;}throw CliErrors[_0x1967e5(0x10a)](_0x1967e5(0x101)+_0x4ec0d+'\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.');}export function parseUpdateIdsFromParams(_0x11d0d0){const _0x5307eb=a173_0x4cfc;if(_0x11d0d0===null||_0x11d0d0===undefined||typeof _0x11d0d0!=='object'||Array['isArray'](_0x11d0d0))throw CliErrors[_0x5307eb(0x10a)](_0x5307eb(0x10b),_0x5307eb(0x112));const _0x10ae95=_0x11d0d0['id'];if(_0x10ae95===undefined||_0x10ae95===null)throw CliErrors[_0x5307eb(0x10a)](_0x5307eb(0x109),_0x5307eb(0x112));const _0x509a3c=Array['isArray'](_0x10ae95)?_0x10ae95:[_0x10ae95];if(_0x509a3c[_0x5307eb(0x110)]===0x0)throw CliErrors[_0x5307eb(0x10a)](_0x5307eb(0x103));if(_0x509a3c[_0x5307eb(0x110)]>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x5307eb(0x10a)]('data\x20update\x20can\x20update\x20at\x20most\x20'+MAX_DATA_UPDATE_IDS+_0x5307eb(0x102)+_0x509a3c[_0x5307eb(0x110)]+'.');return _0x509a3c[_0x5307eb(0x11a)]((_0x50c4f1,_0x5934c5)=>parseDataUpdateId(_0x50c4f1,Array[_0x5307eb(0x106)](_0x10ae95)?'id['+_0x5934c5+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x53b433,_0x446e2b){const _0x306720=a173_0x4cfc;if(Array[_0x306720(0x106)](_0x53b433['id'])&&_0x446e2b[_0x306720(0x110)]>0x1)return{..._0x53b433,'id':_0x446e2b[_0x306720(0x104)](',')};return _0x53b433;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a174_0xf9a6(_0x37c04e,_0x850d5b){_0x37c04e=_0x37c04e-0x99;const _0x566c8b=a174_0x566c();let _0xf9a635=_0x566c8b[_0x37c04e];return _0xf9a635;}(function(_0x1965ce,_0x12a0a9){const _0x4200cf=a174_0xf9a6,_0x310088=_0x1965ce();while(!![]){try{const _0x6b9d17=-parseInt(_0x4200cf(0x9a))/0x1+parseInt(_0x4200cf(0x9f))/0x2*(-parseInt(_0x4200cf(0x9b))/0x3)+parseInt(_0x4200cf(0x99))/0x4+-parseInt(_0x4200cf(0xa5))/0x5*(-parseInt(_0x4200cf(0x9d))/0x6)+parseInt(_0x4200cf(0xa2))/0x7+parseInt(_0x4200cf(0xa1))/0x8+-parseInt(_0x4200cf(0x9c))/0x9;if(_0x6b9d17===_0x12a0a9)break;else _0x310088['push'](_0x310088['shift']());}catch(_0x53a524){_0x310088['push'](_0x310088['shift']());}}}(a174_0x566c,0xe07e7));export function normalizePositiveSafeInteger(_0x5dd5de){const _0x4169a9=a174_0xf9a6;if(typeof _0x5dd5de===_0x4169a9(0xa3))return Number[_0x4169a9(0x9e)](_0x5dd5de)&&_0x5dd5de>0x0?_0x5dd5de:undefined;if(typeof _0x5dd5de!==_0x4169a9(0xa0)||!/^\d+$/[_0x4169a9(0xa4)](_0x5dd5de))return undefined;const _0x58640e=Number(_0x5dd5de);return Number[_0x4169a9(0x9e)](_0x58640e)&&_0x58640e>0x0?_0x58640e:undefined;}function a174_0x566c(){const _0x5e8d33=['15yWNbcu','7856397QMMjlT','5323662rKHgdw','isSafeInteger','243184XOSykD','string','7588600urXGOh','11314275xvQhHt','number','test','5NHGDmo','590280Cgibdb','1199327FJAIWg'];a174_0x566c=function(){return _0x5e8d33;};return a174_0x566c();}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a175_0x1e2ae8=a175_0x91ec;function a175_0x91ec(_0x164a32,_0x5911b6){_0x164a32=_0x164a32-0x97;const _0xbb5176=a175_0xbb51();let _0x91ec4=_0xbb5176[_0x164a32];return _0x91ec4;}(function(_0x40f68a,_0xa16fde){const _0x149f87=a175_0x91ec,_0x33c27e=_0x40f68a();while(!![]){try{const _0x40cf56=parseInt(_0x149f87(0x9e))/0x1+-parseInt(_0x149f87(0xac))/0x2+-parseInt(_0x149f87(0xa5))/0x3+-parseInt(_0x149f87(0x9c))/0x4*(parseInt(_0x149f87(0x9d))/0x5)+parseInt(_0x149f87(0xa9))/0x6+-parseInt(_0x149f87(0x9a))/0x7*(-parseInt(_0x149f87(0xa7))/0x8)+parseInt(_0x149f87(0xa0))/0x9*(parseInt(_0x149f87(0x9b))/0xa);if(_0x40cf56===_0xa16fde)break;else _0x33c27e['push'](_0x33c27e['shift']());}catch(_0x32d526){_0x33c27e['push'](_0x33c27e['shift']());}}}(a175_0xbb51,0x50db9));const REDACTED_VALUE='[REDACTED]',SENSITIVE_KEY_PATTERN=/(?:access.?key|api.?key|authorization|cookie|credential|password|passwd|private.?key|secret|token|webhook)/i,SENSITIVE_FLAG_NAMES=new Set([a175_0x1e2ae8(0xa3),'variables']),SENSITIVE_VALUE_KEYS=new Set([a175_0x1e2ae8(0xa3)]);export function isSensitiveKey(_0x3d0346){const _0x5bb7f4=a175_0x1e2ae8,_0x28107c=_0x3d0346[_0x5bb7f4(0xa1)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN[_0x5bb7f4(0x98)](_0x28107c);}export function isSensitiveFlagName(_0x56b1a7){const _0x32c30c=a175_0x1e2ae8,_0x416db1=_0x56b1a7[_0x32c30c(0xa1)](/_/g,'-')[_0x32c30c(0xa6)]();return isSensitiveKey(_0x416db1)||SENSITIVE_FLAG_NAMES[_0x32c30c(0xa2)](_0x416db1);}function redactVariableValues(_0x379865){const _0x34a201=a175_0x1e2ae8;if(Array['isArray'](_0x379865))return _0x379865[_0x34a201(0xa8)](_0xeba211=>redactVariableValues(_0xeba211));if(_0x379865&&typeof _0x379865===_0x34a201(0x99))return Object[_0x34a201(0x9f)](Object['entries'](_0x379865)[_0x34a201(0xa8)](([_0x126bd1,_0x11c7b3])=>[_0x126bd1,redactVariableValues(_0x11c7b3)]));return REDACTED_VALUE;}function a175_0xbb51(){const _0x283942=['object','35qjpQlc','4348290JMRcyG','244AxzAWE','18175aSqTGe','189211zhkOhi','fromEntries','9zBIicF','replace','has','comment','isArray','976218XNJMCh','toLowerCase','321032PsRnby','map','3806538csgprn','entries','variables','1161548UfkmpN','push','test'];a175_0xbb51=function(){return _0x283942;};return a175_0xbb51();}export function redactSensitiveValue(_0x17ca39){const _0x39e2a9=a175_0x1e2ae8;if(Array[_0x39e2a9(0xa4)](_0x17ca39))return _0x17ca39[_0x39e2a9(0xa8)](_0x257dc9=>redactSensitiveValue(_0x257dc9));if(!_0x17ca39||typeof _0x17ca39!=='object')return _0x17ca39;const _0x23a862={};for(const [_0x50f54a,_0x473dfa]of Object[_0x39e2a9(0xaa)](_0x17ca39)){const _0x51c2eb=_0x50f54a[_0x39e2a9(0xa1)](/_/g,'-')[_0x39e2a9(0xa6)]();_0x23a862[_0x50f54a]=_0x51c2eb===_0x39e2a9(0xab)?redactVariableValues(_0x473dfa):SENSITIVE_VALUE_KEYS[_0x39e2a9(0xa2)](_0x51c2eb)||isSensitiveKey(_0x50f54a)?REDACTED_VALUE:redactSensitiveValue(_0x473dfa);}return _0x23a862;}export function redactCommandArgv(_0x37c9da){const _0x2036f0=a175_0x1e2ae8,_0x573b66=[];let _0x4b19f4=![];for(const _0x35db02 of _0x37c9da){if(_0x4b19f4){_0x573b66['push'](REDACTED_VALUE),_0x4b19f4=![];continue;}const _0x48a1bb=_0x35db02['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x48a1bb||!isSensitiveFlagName(_0x48a1bb[0x1]??'')){_0x573b66[_0x2036f0(0x97)](_0x35db02);continue;}_0x573b66[_0x2036f0(0x97)]('--'+_0x48a1bb[0x1]+(_0x48a1bb[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x48a1bb[0x2]===undefined&&(_0x4b19f4=!![]);}return _0x573b66;}export{REDACTED_VALUE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a176_0xb79a(_0x1748e5,_0xab4b34){_0x1748e5=_0x1748e5-0x76;const _0x6b0393=a176_0x6b03();let _0xb79af7=_0x6b0393[_0x1748e5];return _0xb79af7;}(function(_0x1a1b60,_0x551b67){const _0xbf4610=a176_0xb79a,_0x159c82=_0x1a1b60();while(!![]){try{const _0x5534f5=parseInt(_0xbf4610(0x7f))/0x1+-parseInt(_0xbf4610(0x7d))/0x2*(parseInt(_0xbf4610(0x7e))/0x3)+parseInt(_0xbf4610(0x79))/0x4+parseInt(_0xbf4610(0x78))/0x5+-parseInt(_0xbf4610(0x7c))/0x6+-parseInt(_0xbf4610(0x80))/0x7+parseInt(_0xbf4610(0x82))/0x8;if(_0x5534f5===_0x551b67)break;else _0x159c82['push'](_0x159c82['shift']());}catch(_0x50cadb){_0x159c82['push'](_0x159c82['shift']());}}}(a176_0x6b03,0x3357b));function a176_0x6b03(){const _0x5dffac=['test','replace','135840Bdriyu','308352JgBkyH','number','string','673698qlyAcY','328dsDpHW','2199GzXNwq','310346HcpKlE','899724YtMzSr','isSafeInteger','1253792ZMOBVu'];a176_0x6b03=function(){return _0x5dffac;};return a176_0x6b03();}export function normalizeRuntimeUserId(_0x4c196a){const _0x34393e=a176_0xb79a;if(typeof _0x4c196a===_0x34393e(0x7a))return Number[_0x34393e(0x81)](_0x4c196a)&&_0x4c196a>0x0?String(_0x4c196a):undefined;if(typeof _0x4c196a!==_0x34393e(0x7b)||!/^\d+$/[_0x34393e(0x76)](_0x4c196a))return undefined;const _0x2aa493=_0x4c196a[_0x34393e(0x77)](/^0+/,'');return _0x2aa493||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x145db7,_0x19a0bf){const _0x45cb64=a177_0xcaa6,_0x4e2c1b=_0x145db7();while(!![]){try{const _0xcb22e2=parseInt(_0x45cb64(0x182))/0x1+-parseInt(_0x45cb64(0x17f))/0x2*(-parseInt(_0x45cb64(0x183))/0x3)+-parseInt(_0x45cb64(0x176))/0x4+parseInt(_0x45cb64(0x17d))/0x5+parseInt(_0x45cb64(0x178))/0x6*(parseInt(_0x45cb64(0x17a))/0x7)+-parseInt(_0x45cb64(0x189))/0x8+-parseInt(_0x45cb64(0x17c))/0x9;if(_0xcb22e2===_0x19a0bf)break;else _0x4e2c1b['push'](_0x4e2c1b['shift']());}catch(_0xceaac6){_0x4e2c1b['push'](_0x4e2c1b['shift']());}}}(a177_0x291d,0x2f62b));import{mkdir,readFile,writeFile}from'node:fs/promises';function a177_0x291d(){const _0x4b4065=['181115JXhzkL','number','88250JwVaEn','utf8','lastNotifiedVersion','109505xcDxLz','15ogqqVT','lovrabet-cli','update-check.json','join','.cache','filter','252792IhpGAd','/v/','lastNotifiedAt','yes','https://www.npmjs.com/package/',',\x20run:\x20','trim','168932haAOYK','upgradeMessage','4974lQoNqL','toLowerCase','2926vtECFF','needsUpgrade','4004568CWwIwH'];a177_0x291d=function(){return _0x4b4065;};return a177_0x291d();}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 _0x1a6635=a177_0xcaa6,_0x154de7=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x1a6635(0x175)]()[_0x1a6635(0x179)]();return _0x154de7==='1'||_0x154de7==='true'||_0x154de7===_0x1a6635(0x18c);}function cacheRoot(){const _0x4b6fc6=a177_0xcaa6;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4b6fc6(0x187));}function a177_0xcaa6(_0x25be0c,_0x187456){_0x25be0c=_0x25be0c-0x175;const _0x291dfc=a177_0x291d();let _0xcaa6b4=_0x291dfc[_0x25be0c];return _0xcaa6b4;}export function getUpdateNoticeCachePath(){const _0x3db03a=a177_0xcaa6;return join(cacheRoot(),_0x3db03a(0x184),_0x3db03a(0x185));}async function readUpdateNoticeCache(){const _0x54e8bc=a177_0xcaa6;try{const _0x1adf1c=await readFile(getUpdateNoticeCachePath(),_0x54e8bc(0x180)),_0x17f196=JSON['parse'](_0x1adf1c);if(!_0x17f196||typeof _0x17f196!=='object')return{};return _0x17f196;}catch{return{};}}async function writeUpdateNoticeCache(_0x216683){const _0x6b3c82=a177_0xcaa6;try{const _0x560648=getUpdateNoticeCachePath();await mkdir(dirname(_0x560648),{'recursive':!![]}),await writeFile(_0x560648,JSON['stringify'](_0x216683,null,0x2)+'\x0a',_0x6b3c82(0x180));}catch{}}function isRecentlyNotified(_0x4bd438,_0x18444e,_0x557d54){const _0x537d49=a177_0xcaa6;return _0x4bd438[_0x537d49(0x181)]===_0x18444e&&typeof _0x4bd438['lastNotifiedAt']===_0x537d49(0x17e)&&_0x557d54-_0x4bd438[_0x537d49(0x18b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xe3fd4){const _0x3bbed0=a177_0xcaa6;return _0x3bbed0(0x18d)+LOVRABET_NPM_PACKAGE_NAME+_0x3bbed0(0x18a)+_0xe3fd4;}export async function resolveLatestUpdateNotice(_0x101241){const _0x39707b=a177_0xcaa6;if(isUpdateNoticeDisabled())return null;try{const _0x1f180b=Date['now'](),_0x1b7a8f=_0x101241??await checkCliVersion(),_0x3d840a=_0x1b7a8f['currentVersion'],_0x246e75=_0x1b7a8f['stableVersion'],_0x4e7867=await readUpdateNoticeCache();if(!_0x246e75||!_0x1b7a8f[_0x39707b(0x17b)]||_0x1b7a8f['belowMinimum'])return null;if(isRecentlyNotified(_0x4e7867,_0x246e75,_0x1f180b))return null;const _0x4c1f17=getCliUpgradeCommand(_0x1b7a8f);return await writeUpdateNoticeCache({..._0x4e7867,'checkedAt':_0x1f180b,'latest':_0x246e75,'failed':![],'lastNotifiedVersion':_0x246e75,'lastNotifiedAt':_0x1f180b}),{'command':_0x4c1f17,'current':_0x3d840a,'latest':_0x246e75,'url':buildNpmVersionUrl(_0x246e75),'message':[_0x1b7a8f[_0x39707b(0x177)],CLI_BIN_NAME+'\x20'+_0x246e75+'\x20is\x20recommended,\x20current\x20'+_0x3d840a+_0x39707b(0x18e)+_0x4c1f17][_0x39707b(0x188)](Boolean)[_0x39707b(0x186)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd90263,_0x59ecc2){const _0xf2d9f4=a178_0x338c,_0x55a49c=_0xd90263();while(!![]){try{const _0x5595a4=parseInt(_0xf2d9f4(0xaf))/0x1*(parseInt(_0xf2d9f4(0xb6))/0x2)+-parseInt(_0xf2d9f4(0xad))/0x3*(-parseInt(_0xf2d9f4(0xb4))/0x4)+parseInt(_0xf2d9f4(0xae))/0x5+-parseInt(_0xf2d9f4(0xb2))/0x6+parseInt(_0xf2d9f4(0xab))/0x7+parseInt(_0xf2d9f4(0xac))/0x8*(-parseInt(_0xf2d9f4(0xb5))/0x9)+-parseInt(_0xf2d9f4(0xb3))/0xa*(parseInt(_0xf2d9f4(0xb1))/0xb);if(_0x5595a4===_0x59ecc2)break;else _0x55a49c['push'](_0x55a49c['shift']());}catch(_0x5c4d71){_0x55a49c['push'](_0x55a49c['shift']());}}}(a178_0x2aa6,0x838b5));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a178_0x338c(_0x5c8dea,_0x580a87){_0x5c8dea=_0x5c8dea-0xab;const _0x2aa661=a178_0x2aa6();let _0x338c86=_0x2aa661[_0x5c8dea];return _0x338c86;}function a178_0x2aa6(){const _0x4aaa04=['983169KbWGlu','193202qHGOMY','unknown','6461203scrJQN','16DgDbFM','30348flnatX','3034930UZAlYh','10HlGAsM','slice','1562kMvKio','6464016QJqZDF','47290dwgRAG','4moIgBD'];a178_0x2aa6=function(){return _0x4aaa04;};return a178_0x2aa6();}export function getCliGitCommit(){const _0x3d99c8=a178_0x338c,_0x19a37e=String(GIT_COMMIT);return _0x19a37e&&_0x19a37e!==_0x3d99c8(0xb7)?_0x19a37e:'';}export function getCliVersionDisplay(){const _0x462f0b=a178_0x338c,_0x34927a=getCliGitCommit(),_0x248f26=BUILD_TIME[_0x462f0b(0xb0)](0x0,0xa);if(!_0x34927a||!_0x248f26)return VERSION;return VERSION+'\x20('+_0x34927a+',\x20'+_0x248f26+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16476b,_0x48f35e){var _0x58495c=a179_0x47ae,_0x2ec9a9=_0x16476b();while(!![]){try{var _0x18c601=parseInt(_0x58495c(0x170))/0x1*(-parseInt(_0x58495c(0x171))/0x2)+-parseInt(_0x58495c(0x174))/0x3*(parseInt(_0x58495c(0x173))/0x4)+-parseInt(_0x58495c(0x178))/0x5+parseInt(_0x58495c(0x172))/0x6+-parseInt(_0x58495c(0x176))/0x7*(parseInt(_0x58495c(0x179))/0x8)+-parseInt(_0x58495c(0x17a))/0x9+parseInt(_0x58495c(0x175))/0xa;if(_0x18c601===_0x48f35e)break;else _0x2ec9a9['push'](_0x2ec9a9['shift']());}catch(_0x50e40c){_0x2ec9a9['push'](_0x2ec9a9['shift']());}}}(a179_0x5201,0xe508d));function a179_0x47ae(_0x561adb,_0x1eb41d){_0x561adb=_0x561adb-0x170;var _0x52010e=a179_0x5201();var _0x47ae39=_0x52010e[_0x561adb];return _0x47ae39;}export function writeCliSideChannelLine(_0x1920b4){var _0x242c9b=a179_0x47ae;process['stderr'][_0x242c9b(0x177)](_0x1920b4+'\x0a');}function a179_0x5201(){var _0x33dffd=['18971cPQJQu','132qSeZld','3648564XOfDUO','122236LSsRFy','87jGjHza','38933960cfhuhR','7CUjEST','write','2574850IdvlRe','3573424mdSTIO','4170780hhdhlr'];a179_0x5201=function(){return _0x33dffd;};return a179_0x5201();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/lovrabet-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.8-beta.2",
|
|
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": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=24.0.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
@@ -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.
|
|
89
|
+
"@lovrabet/sdk": "1.6.1-beta.3",
|
|
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,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lovrabet
|
|
3
3
|
displayName: Lovrabet 运行态 CLI
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.8-beta.2
|
|
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:
|
|
8
8
|
bins: ["lovrabet"]
|
|
9
|
-
node: ">=
|
|
9
|
+
node: ">=24.0.0"
|
|
10
10
|
cliHelp: "lovrabet --help"
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -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.
|
|
6
|
-
"skillVersion": "2.3.
|
|
5
|
+
"packageVersion": "2.3.8-beta.2",
|
|
6
|
+
"skillVersion": "2.3.8-beta.2",
|
|
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": "dea9c677da92cc166a9796d1f6a5a02ebf3cad33c9ac5ca84e74417c6fa130a4"
|
|
44
44
|
}
|