@lovrabet/lovrabet-cli 2.3.10-beta.1 → 2.3.10-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/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/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.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +6 -0
- 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.d.ts +3 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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
|
-
const
|
|
1
|
+
const a176_0x2f49ef=a176_0x213b;(function(_0x116462,_0x1c011e){const _0x1eb68e=a176_0x213b,_0x2d38d2=_0x116462();while(!![]){try{const _0x439e5c=-parseInt(_0x1eb68e(0x1a7))/0x1*(-parseInt(_0x1eb68e(0x1a2))/0x2)+parseInt(_0x1eb68e(0x198))/0x3*(-parseInt(_0x1eb68e(0x195))/0x4)+parseInt(_0x1eb68e(0x1a6))/0x5+-parseInt(_0x1eb68e(0x19d))/0x6*(-parseInt(_0x1eb68e(0x19c))/0x7)+-parseInt(_0x1eb68e(0x1a3))/0x8*(parseInt(_0x1eb68e(0x19e))/0x9)+-parseInt(_0x1eb68e(0x194))/0xa*(parseInt(_0x1eb68e(0x1a4))/0xb)+parseInt(_0x1eb68e(0x1aa))/0xc*(parseInt(_0x1eb68e(0x1ab))/0xd);if(_0x439e5c===_0x1c011e)break;else _0x2d38d2['push'](_0x2d38d2['shift']());}catch(_0x1df205){_0x2d38d2['push'](_0x2d38d2['shift']());}}}(a176_0x268b,0x8b0b6));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a176_0x2f49ef(0x19b)]),MIN_SAFE_INTEGER=BigInt(Number[a176_0x2f49ef(0x19f)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x1560fc){const _0x3a1469=a176_0x2f49ef;if(_0x1560fc[_0x3a1469(0x196)]('.')||_0x1560fc[_0x3a1469(0x196)]('e')||_0x1560fc[_0x3a1469(0x196)]('E'))return![];const _0x1aca57=BigInt(_0x1560fc);return _0x1aca57>MAX_SAFE_INTEGER||_0x1aca57<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0x360ecb){const _0x3f95d7=a176_0x2f49ef;let _0x2514e7='',_0x22837f=![],_0x3eca41=![];for(let _0x388445=0x0;_0x388445<_0x360ecb['length'];){const _0x46e3c3=_0x360ecb[_0x388445];if(_0x22837f){_0x2514e7+=_0x46e3c3,_0x388445+=0x1;if(_0x3eca41)_0x3eca41=![];else{if(_0x46e3c3==='\x5c')_0x3eca41=!![];else _0x46e3c3==='\x22'&&(_0x22837f=![]);}continue;}if(_0x46e3c3==='\x22'){_0x22837f=!![],_0x2514e7+=_0x46e3c3,_0x388445+=0x1;continue;}if(_0x46e3c3==='-'||_0x46e3c3>='0'&&_0x46e3c3<='9'){const _0x499ae8=JSON_NUMBER_PATTERN[_0x3f95d7(0x1a9)](_0x360ecb[_0x3f95d7(0x199)](_0x388445))?.[0x0];if(_0x499ae8){_0x2514e7+=isUnsafeIntegerLiteral(_0x499ae8)?'\x22'+_0x499ae8+'\x22':_0x499ae8,_0x388445+=_0x499ae8[_0x3f95d7(0x1a1)];continue;}}_0x2514e7+=_0x46e3c3,_0x388445+=0x1;}return _0x2514e7;}function a176_0x213b(_0x3f692b,_0x72cf6e){_0x3f692b=_0x3f692b-0x194;const _0x268b91=a176_0x268b();let _0x213ba7=_0x268b91[_0x3f692b];return _0x213ba7;}export function parseLosslessJson(_0x11754c){const _0x21e201=a176_0x2f49ef;return JSON[_0x21e201(0x197)](quoteUnsafeIntegerLiterals(_0x11754c));}export function installLosslessJsonResponseParser(){const _0x1d8dc3=a176_0x2f49ef;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1d8dc3(0x1a0)],originalResponseJsonDescriptor=Object[_0x1d8dc3(0x19a)](responseJsonPrototype,_0x1d8dc3(0x1a5)),Object['defineProperty'](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x1df9d0(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x284cd7=_0x1d8dc3;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x284cd7(0x1a8)](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}function a176_0x268b(){const _0x5a1350=['slice','getOwnPropertyDescriptor','MAX_SAFE_INTEGER','14asfhSj','1065096sAMoNb','9qNlfGy','MIN_SAFE_INTEGER','prototype','length','250YVvGYA','7814448PzCEaU','57222uYZMiU','json','3032010URxeHF','7907HMRmJJ','defineProperty','exec','12dXOuCX','11703614UzyiCg','1540LhQKti','12YupuyR','includes','parse','502647BOmXyc'];a176_0x268b=function(){return _0x5a1350;};return a176_0x268b();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x479726,_0x188998){const _0xc8968a=a177_0x40bd,_0x4e20ef=_0x479726();while(!![]){try{const _0xb3f8cc=-parseInt(_0xc8968a(0x12d))/0x1+parseInt(_0xc8968a(0x121))/0x2+parseInt(_0xc8968a(0x129))/0x3*(-parseInt(_0xc8968a(0x118))/0x4)+parseInt(_0xc8968a(0x11c))/0x5*(parseInt(_0xc8968a(0x138))/0x6)+parseInt(_0xc8968a(0x130))/0x7*(parseInt(_0xc8968a(0x132))/0x8)+parseInt(_0xc8968a(0x11f))/0x9+parseInt(_0xc8968a(0x134))/0xa*(-parseInt(_0xc8968a(0x11e))/0xb);if(_0xb3f8cc===_0x188998)break;else _0x4e20ef['push'](_0x4e20ef['shift']());}catch(_0x4e30aa){_0x4e20ef['push'](_0x4e20ef['shift']());}}}(a177_0x2b37,0xec0a6));function a177_0x40bd(_0x5f222a,_0x213036){_0x5f222a=_0x5f222a-0x118;const _0x2b3722=a177_0x2b37();let _0x40bdc5=_0x2b3722[_0x5f222a];return _0x40bdc5;}import{CliErrors}from'../errors.js';import{parseLosslessJson}from'../utils/lossless-json.js';function a177_0x2b37(){const _0x11fb33=['8097tANDWC','object','data\x20update\x20can\x20update\x20at\x20most\x20','\x20records\x20per\x20call;\x20received\x20','148810oqvgTC','id[','data\x20update\x20--params.','699013cOyujM','isSafeInteger','152gHVZkf','join','28943140jiSEJP','Example:\x20--params\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','map','items','324282pQCbCT','292UbMKMG','test','data\x20update\x20id\x20array\x20cannot\x20be\x20empty.','length','10srNlTX','batchCreate\x20--params\x20must\x20be\x20a\x20JSON\x20array\x20or\x20{\x22items\x22:[...]}','11ytNjpS','4237965EaJCLG','number','3461346TdXPUP','Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27','data\x20update\x20--params\x20must\x20be\x20a\x20JSON\x20object\x20with\x20id.','\x20must\x20be\x20a\x20positive\x20integer\x20or\x20numeric\x20string.','data\x20update\x20requires\x20\x22id\x22\x20in\x20--params.','validation','isArray','Invalid\x20JSON\x20for\x20--params:\x20'];a177_0x2b37=function(){return _0x11fb33;};return a177_0x2b37();}export const MAX_DATA_UPDATE_IDS=0x3e8;export function parseJsonParams(_0x466bfe){const _0x4a43ab=a177_0x40bd;if(!_0x466bfe)return undefined;try{return parseLosslessJson(_0x466bfe);}catch{throw CliErrors[_0x4a43ab(0x126)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x466bfe);}}export function parseJsonParamsValue(_0x36e996){const _0x5c46b5=a177_0x40bd;if(!_0x36e996)return undefined;try{return parseLosslessJson(_0x36e996);}catch{throw CliErrors[_0x5c46b5(0x126)](_0x5c46b5(0x128)+_0x36e996);}}export function parseBatchCreateItemsFromParams(_0x14ad9c){const _0x334948=a177_0x40bd;if(Array[_0x334948(0x127)](_0x14ad9c))return _0x14ad9c;if(_0x14ad9c!==null&&_0x14ad9c!==undefined&&typeof _0x14ad9c==='object'&&Array[_0x334948(0x127)](_0x14ad9c[_0x334948(0x137)]))return _0x14ad9c['items'];throw CliErrors['validation'](_0x334948(0x11d),_0x334948(0x135));}function parseDataUpdateId(_0x10abf6,_0x311c85){const _0x178295=a177_0x40bd;if(typeof _0x10abf6===_0x178295(0x120)&&Number[_0x178295(0x131)](_0x10abf6)&&_0x10abf6>0x0)return _0x10abf6;if(typeof _0x10abf6==='string'){if(/^[1-9]\d*$/[_0x178295(0x119)](_0x10abf6))return _0x10abf6;}throw CliErrors[_0x178295(0x126)](_0x178295(0x12f)+_0x311c85+_0x178295(0x124));}export function parseUpdateIdsFromParams(_0x438c68){const _0x19042b=a177_0x40bd;if(_0x438c68===null||_0x438c68===undefined||typeof _0x438c68!==_0x19042b(0x12a)||Array[_0x19042b(0x127)](_0x438c68))throw CliErrors[_0x19042b(0x126)](_0x19042b(0x123),'Example:\x20--params\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22done\x22}\x27');const _0x1dc7ed=_0x438c68['id'];if(_0x1dc7ed===undefined||_0x1dc7ed===null)throw CliErrors[_0x19042b(0x126)](_0x19042b(0x125),_0x19042b(0x122));const _0x48e35d=Array['isArray'](_0x1dc7ed)?_0x1dc7ed:[_0x1dc7ed];if(_0x48e35d[_0x19042b(0x11b)]===0x0)throw CliErrors['validation'](_0x19042b(0x11a));if(_0x48e35d['length']>MAX_DATA_UPDATE_IDS)throw CliErrors[_0x19042b(0x126)](_0x19042b(0x12b)+MAX_DATA_UPDATE_IDS+_0x19042b(0x12c)+_0x48e35d[_0x19042b(0x11b)]+'.');return _0x48e35d[_0x19042b(0x136)]((_0x181dbb,_0x51299a)=>parseDataUpdateId(_0x181dbb,Array[_0x19042b(0x127)](_0x1dc7ed)?_0x19042b(0x12e)+_0x51299a+']':'id'));}export function normalizeUpdateParamsForRuntime(_0x536735,_0x1129dc){const _0x1a029a=a177_0x40bd;if(Array[_0x1a029a(0x127)](_0x536735['id'])&&_0x1129dc[_0x1a029a(0x11b)]>0x1)return{..._0x536735,'id':_0x1129dc[_0x1a029a(0x133)](',')};return _0x536735;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0x1367(){const _0xee7f21=['9995520loqHAH','313868VdfVIV','5447745reEUPL','test','1191492mhizSg','442548AnPdtA','55veFWNi','402104ScnLYQ','string','isSafeInteger','35xOkkyC','9PShOhO','437434mBPZtH'];a178_0x1367=function(){return _0xee7f21;};return a178_0x1367();}(function(_0x5c3b52,_0x4a79bb){const _0x15a9e1=a178_0x54ca,_0x363cce=_0x5c3b52();while(!![]){try{const _0x5b52f6=parseInt(_0x15a9e1(0xd6))/0x1+-parseInt(_0x15a9e1(0xdd))/0x2*(parseInt(_0x15a9e1(0xdc))/0x3)+parseInt(_0x15a9e1(0xd2))/0x4*(-parseInt(_0x15a9e1(0xd7))/0x5)+-parseInt(_0x15a9e1(0xd5))/0x6+parseInt(_0x15a9e1(0xdb))/0x7*(parseInt(_0x15a9e1(0xd8))/0x8)+parseInt(_0x15a9e1(0xd3))/0x9+parseInt(_0x15a9e1(0xd1))/0xa;if(_0x5b52f6===_0x4a79bb)break;else _0x363cce['push'](_0x363cce['shift']());}catch(_0x4fc9dd){_0x363cce['push'](_0x363cce['shift']());}}}(a178_0x1367,0x8dcf2));function a178_0x54ca(_0xe4cf1e,_0x4e84bd){_0xe4cf1e=_0xe4cf1e-0xd1;const _0x136757=a178_0x1367();let _0x54ca7b=_0x136757[_0xe4cf1e];return _0x54ca7b;}export function normalizePositiveSafeInteger(_0x52a3c6){const _0x33057a=a178_0x54ca;if(typeof _0x52a3c6==='number')return Number[_0x33057a(0xda)](_0x52a3c6)&&_0x52a3c6>0x0?_0x52a3c6:undefined;if(typeof _0x52a3c6!==_0x33057a(0xd9)||!/^\d+$/[_0x33057a(0xd4)](_0x52a3c6))return undefined;const _0x38a754=Number(_0x52a3c6);return Number[_0x33057a(0xda)](_0x38a754)&&_0x38a754>0x0?_0x38a754:undefined;}
|
package/lib/utils/redaction.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x2d2b21=a179_0x5357;(function(_0x1d7cfb,_0x3a4410){const _0x5eaf0b=a179_0x5357,_0x4144e4=_0x1d7cfb();while(!![]){try{const _0x5aade8=parseInt(_0x5eaf0b(0x13f))/0x1+parseInt(_0x5eaf0b(0x142))/0x2+parseInt(_0x5eaf0b(0x141))/0x3+parseInt(_0x5eaf0b(0x13a))/0x4+-parseInt(_0x5eaf0b(0x139))/0x5+-parseInt(_0x5eaf0b(0x145))/0x6+-parseInt(_0x5eaf0b(0x13d))/0x7;if(_0x5aade8===_0x3a4410)break;else _0x4144e4['push'](_0x4144e4['shift']());}catch(_0x2b5860){_0x4144e4['push'](_0x4144e4['shift']());}}}(a179_0x3f20,0xea2b1));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(['comment',a179_0x2d2b21(0x13c)]),SENSITIVE_VALUE_KEYS=new Set([a179_0x2d2b21(0x140)]);function a179_0x5357(_0x1d2477,_0x2c3b1f){_0x1d2477=_0x1d2477-0x139;const _0x3f20d7=a179_0x3f20();let _0x53573b=_0x3f20d7[_0x1d2477];return _0x53573b;}export function isSensitiveKey(_0x39b21a){const _0x5dc8d7=a179_0x2d2b21,_0x4f674a=_0x39b21a[_0x5dc8d7(0x13b)](/_/g,'-')['toLowerCase']();return SENSITIVE_KEY_PATTERN['test'](_0x4f674a);}export function isSensitiveFlagName(_0x47db98){const _0x4ff5b=a179_0x2d2b21,_0x188b9c=_0x47db98[_0x4ff5b(0x13b)](/_/g,'-')['toLowerCase']();return isSensitiveKey(_0x188b9c)||SENSITIVE_FLAG_NAMES[_0x4ff5b(0x144)](_0x188b9c);}function redactVariableValues(_0x5f3fa6){const _0x3d50ad=a179_0x2d2b21;if(Array['isArray'](_0x5f3fa6))return _0x5f3fa6[_0x3d50ad(0x148)](_0x30302f=>redactVariableValues(_0x30302f));if(_0x5f3fa6&&typeof _0x5f3fa6===_0x3d50ad(0x149))return Object[_0x3d50ad(0x147)](Object[_0x3d50ad(0x13e)](_0x5f3fa6)[_0x3d50ad(0x148)](([_0x28e1ee,_0x3cd654])=>[_0x28e1ee,redactVariableValues(_0x3cd654)]));return REDACTED_VALUE;}export function redactSensitiveValue(_0x134e75){const _0x3a9a55=a179_0x2d2b21;if(Array['isArray'](_0x134e75))return _0x134e75[_0x3a9a55(0x148)](_0x184588=>redactSensitiveValue(_0x184588));if(!_0x134e75||typeof _0x134e75!==_0x3a9a55(0x149))return _0x134e75;const _0x54d45e={};for(const [_0x179738,_0xe95828]of Object['entries'](_0x134e75)){const _0x26f4cb=_0x179738[_0x3a9a55(0x13b)](/_/g,'-')[_0x3a9a55(0x143)]();_0x54d45e[_0x179738]=_0x26f4cb===_0x3a9a55(0x13c)?redactVariableValues(_0xe95828):SENSITIVE_VALUE_KEYS[_0x3a9a55(0x144)](_0x26f4cb)||isSensitiveKey(_0x179738)?REDACTED_VALUE:redactSensitiveValue(_0xe95828);}return _0x54d45e;}export function redactCommandArgv(_0x283171){const _0x4f47f3=a179_0x2d2b21,_0x3de91b=[];let _0x1e8b9f=![];for(const _0x49e227 of _0x283171){if(_0x1e8b9f){_0x3de91b[_0x4f47f3(0x146)](REDACTED_VALUE),_0x1e8b9f=![];continue;}const _0x401244=_0x49e227['match'](/^--([^=]+)(?:=(.*))?$/);if(!_0x401244||!isSensitiveFlagName(_0x401244[0x1]??'')){_0x3de91b[_0x4f47f3(0x146)](_0x49e227);continue;}_0x3de91b[_0x4f47f3(0x146)]('--'+_0x401244[0x1]+(_0x401244[0x2]===undefined?'':'='+REDACTED_VALUE)),_0x401244[0x2]===undefined&&(_0x1e8b9f=!![]);}return _0x3de91b;}export{REDACTED_VALUE};function a179_0x3f20(){const _0x4e76c5=['4163148SrrLLB','3274020iMkThg','toLowerCase','has','11364762KBNviZ','push','fromEntries','map','object','742660hyVBaG','165848ZUSUWl','replace','variables','6298824jflJrG','entries','835456JpWByT','comment'];a179_0x3f20=function(){return _0x4e76c5;};return a179_0x3f20();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45259e,_0xfe7389){const _0x4d20df=a180_0x1d47,_0x27f260=_0x45259e();while(!![]){try{const _0x277e6d=-parseInt(_0x4d20df(0x128))/0x1*(-parseInt(_0x4d20df(0x12f))/0x2)+parseInt(_0x4d20df(0x12c))/0x3*(parseInt(_0x4d20df(0x127))/0x4)+-parseInt(_0x4d20df(0x12d))/0x5*(parseInt(_0x4d20df(0x125))/0x6)+parseInt(_0x4d20df(0x12a))/0x7+parseInt(_0x4d20df(0x12b))/0x8+-parseInt(_0x4d20df(0x131))/0x9*(parseInt(_0x4d20df(0x130))/0xa)+-parseInt(_0x4d20df(0x12e))/0xb;if(_0x277e6d===_0xfe7389)break;else _0x27f260['push'](_0x27f260['shift']());}catch(_0x36c9bc){_0x27f260['push'](_0x27f260['shift']());}}}(a180_0x54b9,0x631a4));function a180_0x1d47(_0x457c64,_0x32ae88){_0x457c64=_0x457c64-0x125;const _0x54b9a6=a180_0x54b9();let _0x1d470b=_0x54b9a6[_0x457c64];return _0x1d470b;}function a180_0x54b9(){const _0x3b7f89=['number','3083178HKKKbs','892120njPEXh','3fcPFcA','11560YekYnh','4051025GWpOPY','4ttHrCA','90mQpuUC','653751KIqlRG','84vYaLYX','isSafeInteger','2941564GvdJjI','86479ncXHGz'];a180_0x54b9=function(){return _0x3b7f89;};return a180_0x54b9();}export function normalizeRuntimeUserId(_0x900712){const _0x20cca8=a180_0x1d47;if(typeof _0x900712===_0x20cca8(0x129))return Number[_0x20cca8(0x126)](_0x900712)&&_0x900712>0x0?String(_0x900712):undefined;if(typeof _0x900712!=='string'||!/^\d+$/['test'](_0x900712))return undefined;const _0x152f3e=_0x900712['replace'](/^0+/,'');return _0x152f3e||undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c8881,_0x34c141){const _0x25aa97=a181_0x1ee5,_0x526222=_0x2c8881();while(!![]){try{const _0x2669d4=-parseInt(_0x25aa97(0x15a))/0x1+parseInt(_0x25aa97(0x158))/0x2*(parseInt(_0x25aa97(0x16d))/0x3)+-parseInt(_0x25aa97(0x16f))/0x4+parseInt(_0x25aa97(0x170))/0x5*(parseInt(_0x25aa97(0x167))/0x6)+-parseInt(_0x25aa97(0x16a))/0x7+parseInt(_0x25aa97(0x15c))/0x8+parseInt(_0x25aa97(0x15d))/0x9*(-parseInt(_0x25aa97(0x169))/0xa);if(_0x2669d4===_0x34c141)break;else _0x526222['push'](_0x526222['shift']());}catch(_0x5bbe68){_0x526222['push'](_0x526222['shift']());}}}(a181_0x35d2,0x6e707));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';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function a181_0x1ee5(_0x308c79,_0x3d1c32){_0x308c79=_0x308c79-0x157;const _0x35d2b5=a181_0x35d2();let _0x1ee58f=_0x35d2b5[_0x308c79];return _0x1ee58f;}function isUpdateNoticeDisabled(){const _0xf11e30=a181_0x1ee5,_0x27e841=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x27e841==='1'||_0x27e841===_0xf11e30(0x157)||_0x27e841===_0xf11e30(0x15e);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a181_0x35d2(){const _0x227841=['618045JAeRMQ','lastNotifiedAt','lastNotifiedVersion','true','181234MFSkkK','belowMinimum','137541DWfzgh','join','2537480cSDgAU','495oXnueH','yes','now',',\x20run:\x20','currentVersion','lovrabet-cli','number','object','stableVersion','stringify','36Wwzyhh','parse','49730QJXoxG','2262260hEiBBR','utf8','update-check.json','27nBWkQu','https://www.npmjs.com/package/','2751188HhTBRw'];a181_0x35d2=function(){return _0x227841;};return a181_0x35d2();}export function getUpdateNoticeCachePath(){const _0x54e14f=a181_0x1ee5;return join(cacheRoot(),_0x54e14f(0x162),_0x54e14f(0x16c));}async function readUpdateNoticeCache(){const _0x3a3532=a181_0x1ee5;try{const _0x4a15f3=await readFile(getUpdateNoticeCachePath(),_0x3a3532(0x16b)),_0x200744=JSON[_0x3a3532(0x168)](_0x4a15f3);if(!_0x200744||typeof _0x200744!==_0x3a3532(0x164))return{};return _0x200744;}catch{return{};}}async function writeUpdateNoticeCache(_0x26f62d){const _0x19d86a=a181_0x1ee5;try{const _0x489823=getUpdateNoticeCachePath();await mkdir(dirname(_0x489823),{'recursive':!![]}),await writeFile(_0x489823,JSON[_0x19d86a(0x166)](_0x26f62d,null,0x2)+'\x0a',_0x19d86a(0x16b));}catch{}}function isRecentlyNotified(_0x4dfc14,_0x3c35f2,_0x32c348){const _0x3e96e5=a181_0x1ee5;return _0x4dfc14[_0x3e96e5(0x172)]===_0x3c35f2&&typeof _0x4dfc14[_0x3e96e5(0x171)]===_0x3e96e5(0x163)&&_0x32c348-_0x4dfc14[_0x3e96e5(0x171)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x2bbc87){const _0xaac9f5=a181_0x1ee5;return _0xaac9f5(0x16e)+LOVRABET_NPM_PACKAGE_NAME+'/v/'+_0x2bbc87;}export async function resolveLatestUpdateNotice(_0x539b0d){const _0x197de7=a181_0x1ee5;if(isUpdateNoticeDisabled())return null;try{const _0x37c8a2=Date[_0x197de7(0x15f)](),_0x4ef005=_0x539b0d??await checkCliVersion(),_0x13d51e=_0x4ef005[_0x197de7(0x161)],_0x32f451=_0x4ef005[_0x197de7(0x165)],_0x4f84f0=await readUpdateNoticeCache();if(!_0x32f451||!_0x4ef005['needsUpgrade']||_0x4ef005[_0x197de7(0x159)])return null;if(isRecentlyNotified(_0x4f84f0,_0x32f451,_0x37c8a2))return null;const _0x50fda9=getCliUpgradeCommand(_0x4ef005);return await writeUpdateNoticeCache({..._0x4f84f0,'checkedAt':_0x37c8a2,'latest':_0x32f451,'failed':![],'lastNotifiedVersion':_0x32f451,'lastNotifiedAt':_0x37c8a2}),{'command':_0x50fda9,'current':_0x13d51e,'latest':_0x32f451,'url':buildNpmVersionUrl(_0x32f451),'message':[_0x4ef005['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x32f451+'\x20is\x20recommended,\x20current\x20'+_0x13d51e+_0x197de7(0x160)+_0x50fda9]['filter'](Boolean)[_0x197de7(0x15b)]('\x20')};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e0c60,_0xa585eb){const _0x1e453b=a182_0x129c,_0x33a3bd=_0x3e0c60();while(!![]){try{const _0xa55d2f=parseInt(_0x1e453b(0xaa))/0x1+-parseInt(_0x1e453b(0xa9))/0x2*(parseInt(_0x1e453b(0xa8))/0x3)+-parseInt(_0x1e453b(0xa1))/0x4+-parseInt(_0x1e453b(0xa5))/0x5+-parseInt(_0x1e453b(0xa4))/0x6+-parseInt(_0x1e453b(0xa7))/0x7*(-parseInt(_0x1e453b(0xa2))/0x8)+parseInt(_0x1e453b(0xa0))/0x9*(parseInt(_0x1e453b(0xab))/0xa);if(_0xa55d2f===_0xa585eb)break;else _0x33a3bd['push'](_0x33a3bd['shift']());}catch(_0x5716d9){_0x33a3bd['push'](_0x33a3bd['shift']());}}}(a182_0x52c5,0xbb52d));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a182_0x52c5(){const _0x5536c2=['9VotDFw','323126dGZnXf','1500848dGUQCl','291580rjsnTq','189vqxOKl','193224ttxhXs','40yGQtrv','unknown','1086546BpueyR','7561315YyAXHa','slice','1232644JNemuq'];a182_0x52c5=function(){return _0x5536c2;};return a182_0x52c5();}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x357876=a182_0x129c,_0x44e09c=String(GIT_COMMIT);return _0x44e09c&&_0x44e09c!==_0x357876(0xa3)?_0x44e09c:'';}function a182_0x129c(_0x4ad3cf,_0x1b7bf9){_0x4ad3cf=_0x4ad3cf-0xa0;const _0x52c5bd=a182_0x52c5();let _0x129c7c=_0x52c5bd[_0x4ad3cf];return _0x129c7c;}export function getCliVersionDisplay(){const _0x1c0108=a182_0x129c,_0x884122=getCliGitCommit(),_0x208e6b=BUILD_TIME[_0x1c0108(0xa6)](0x0,0xa);if(!_0x884122||!_0x208e6b)return VERSION;return VERSION+'\x20('+_0x884122+',\x20'+_0x208e6b+')';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a183_0x4cbe(_0x513da0,_0x33cc57){_0x513da0=_0x513da0-0x12e;var _0x17c1b7=a183_0x17c1();var _0x4cbe0=_0x17c1b7[_0x513da0];return _0x4cbe0;}function a183_0x17c1(){var _0x490ac7=['7873020XLJKmA','7325TFFgde','664572idBltN','10987249qrNxSq','write','stderr','10vgiVtH','2622wUWfBR','24cQlfBE','81727qVSwbD','8mNiHtp','14288994NuKPwf','10707884IHXKZY'];a183_0x17c1=function(){return _0x490ac7;};return a183_0x17c1();}(function(_0x6b3b97,_0x524004){var _0x4d876b=a183_0x4cbe,_0x220b92=_0x6b3b97();while(!![]){try{var _0x73e4a9=parseInt(_0x4d876b(0x131))/0x1*(parseInt(_0x4d876b(0x12e))/0x2)+-parseInt(_0x4d876b(0x130))/0x3*(-parseInt(_0x4d876b(0x137))/0x4)+parseInt(_0x4d876b(0x136))/0x5*(parseInt(_0x4d876b(0x12f))/0x6)+-parseInt(_0x4d876b(0x138))/0x7*(parseInt(_0x4d876b(0x132))/0x8)+-parseInt(_0x4d876b(0x133))/0x9+parseInt(_0x4d876b(0x135))/0xa+parseInt(_0x4d876b(0x134))/0xb;if(_0x73e4a9===_0x524004)break;else _0x220b92['push'](_0x220b92['shift']());}catch(_0xf257a){_0x220b92['push'](_0x220b92['shift']());}}}(a183_0x17c1,0xef9d1));export function writeCliSideChannelLine(_0x29737e){var _0x218764=a183_0x4cbe;process[_0x218764(0x13a)][_0x218764(0x139)](_0x29737e+'\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-beta.
|
|
4
|
+
version: 2.3.10-beta.2
|
|
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-beta.
|
|
6
|
-
"skillVersion": "2.3.10-beta.
|
|
5
|
+
"packageVersion": "2.3.10-beta.2",
|
|
6
|
+
"skillVersion": "2.3.10-beta.2",
|
|
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": "26fc71766c0fdf82260fa7216b6b670c55dd0c6ce7b062309d898296921501be"
|
|
46
46
|
}
|